router_ui.dist.index.js Maven / Gradle / Ivy
!function(t){var n={};function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(n){return t[n]}.bind(null,i));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=33)}([function(t,n,e){var r;try{r=e(13)}catch(t){}r||(r=window._),t.exports=r},function(t,n,e){"use strict";var r=e(0),i=e(5).Graph;function o(t,n,e,i){var o;do{o=r.uniqueId(i)}while(t.hasNode(o));return e.dummy=n,t.setNode(o,e),o}function u(t){return r.max(r.map(t.nodes(),function(n){var e=t.node(n).rank;if(!r.isUndefined(e))return e}))}t.exports={addDummyNode:o,simplify:function(t){var n=(new i).setGraph(t.graph());return r.forEach(t.nodes(),function(e){n.setNode(e,t.node(e))}),r.forEach(t.edges(),function(e){var r=n.edge(e.v,e.w)||{weight:0,minlen:1},i=t.edge(e);n.setEdge(e.v,e.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})}),n},asNonCompoundGraph:function(t){var n=new i({multigraph:t.isMultigraph()}).setGraph(t.graph());return r.forEach(t.nodes(),function(e){t.children(e).length||n.setNode(e,t.node(e))}),r.forEach(t.edges(),function(e){n.setEdge(e,t.edge(e))}),n},successorWeights:function(t){var n=r.map(t.nodes(),function(n){var e={};return r.forEach(t.outEdges(n),function(n){e[n.w]=(e[n.w]||0)+t.edge(n).weight}),e});return r.zipObject(t.nodes(),n)},predecessorWeights:function(t){var n=r.map(t.nodes(),function(n){var e={};return r.forEach(t.inEdges(n),function(n){e[n.v]=(e[n.v]||0)+t.edge(n).weight}),e});return r.zipObject(t.nodes(),n)},intersectRect:function(t,n){var e,r,i=t.x,o=t.y,u=n.x-i,a=n.y-o,c=t.width/2,s=t.height/2;if(!u&&!a)throw new Error("Not possible to find intersection inside of the rectangle");Math.abs(a)*c>Math.abs(u)*s?(a<0&&(s=-s),e=s*u/a,r=s):(u<0&&(c=-c),e=c,r=c*a/u);return{x:i+e,y:o+r}},buildLayerMatrix:function(t){var n=r.map(r.range(u(t)+1),function(){return[]});return r.forEach(t.nodes(),function(e){var i=t.node(e),o=i.rank;r.isUndefined(o)||(n[o][i.order]=e)}),n},normalizeRanks:function(t){var n=r.minBy(r.map(t.nodes(),function(n){return t.node(n).rank}));r.forEach(t.nodes(),function(e){var i=t.node(e);r.has(i,"rank")&&(i.rank-=n)})},removeEmptyRanks:function(t){var n=r.minBy(r.map(t.nodes(),function(n){return t.node(n).rank})),e=[];r.forEach(t.nodes(),function(r){var i=t.node(r).rank-n;e[i]||(e[i]=[]),e[i].push(r)});var i=0,o=t.graph().nodeRankFactor;r.forEach(e,function(n,e){r.isUndefined(n)&&e%o!=0?--i:i&&r.forEach(n,function(n){t.node(n).rank+=i})})},addBorderNode:function(t,n,e,r){var i={width:0,height:0};arguments.length>=4&&(i.rank=e,i.order=r);return o(t,"border",i,n)},maxRank:u,partition:function(t,n){var e={lhs:[],rhs:[]};return r.forEach(t,function(t){n(t)?e.lhs.push(t):e.rhs.push(t)}),e},time:function(t,n){var e=r.now();try{return n()}finally{console.log(t+" time: "+(r.now()-e)+"ms")}},notime:function(t,n){return n()}}},function(t,n,e){"use strict";var r={value:function(){}};function i(){for(var t,n=0,e=arguments.length,r={};n=0&&(e=t.slice(r+1),t=t.slice(0,r)),t&&!n.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}})}(t+"",r),o=-1,c=i.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++o0)for(var e,r,i=new Array(e),o=0;o=r.length)return null!=t&&e.sort(t),null!=n?n(e):e;for(var s,f,l,h=-1,d=e.length,p=r[i++],v=o(),g=a();++hr.length)return e;var u,a=i[o-1];return null!=n&&o>=r.length?u=e.entries():(u=[],e.each(function(n,e){u.push({key:e,values:t(n,o)})})),null!=a?u.sort(function(t,n){return a(t.key,n.key)}):u}(u(t,0,s,f),0)},key:function(t){return r.push(t),e},sortKeys:function(t){return i[r.length-1]=t,e},sortValues:function(n){return t=n,e},rollup:function(t){return n=t,e}}};function a(){return{}}function c(t,n,e){t[n]=e}function s(){return o()}function f(t,n,e){t.set(n,e)}function l(){}var h=o.prototype;function d(t,n){var e=new l;if(t instanceof l)t.each(function(t){e.add(t)});else if(t){var r=-1,i=t.length;if(null==n)for(;++r=f?d=!0:(c=t.charCodeAt(l++))===u?p=!0:c===a&&(p=!0,t.charCodeAt(l)===u&&++l),t.slice(s+1,n-1).replace(/""/g,'"')}for(;lc){var s=a;a=c,c=s}return a+u+c+u+(r.isUndefined(o)?i:o)}function l(t,n){return f(t,n.v,n.w,n.name)}a.prototype._nodeCount=0,a.prototype._edgeCount=0,a.prototype.isDirected=function(){return this._isDirected},a.prototype.isMultigraph=function(){return this._isMultigraph},a.prototype.isCompound=function(){return this._isCompound},a.prototype.setGraph=function(t){return this._label=t,this},a.prototype.graph=function(){return this._label},a.prototype.setDefaultNodeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultNodeLabelFn=t,this},a.prototype.nodeCount=function(){return this._nodeCount},a.prototype.nodes=function(){return r.keys(this._nodes)},a.prototype.sources=function(){var t=this;return r.filter(this.nodes(),function(n){return r.isEmpty(t._in[n])})},a.prototype.sinks=function(){var t=this;return r.filter(this.nodes(),function(n){return r.isEmpty(t._out[n])})},a.prototype.setNodes=function(t,n){var e=arguments,i=this;return r.each(t,function(t){e.length>1?i.setNode(t,n):i.setNode(t)}),this},a.prototype.setNode=function(t,n){return r.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=n),this):(this._nodes[t]=arguments.length>1?n:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=o,this._children[t]={},this._children[o][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},a.prototype.node=function(t){return this._nodes[t]},a.prototype.hasNode=function(t){return r.has(this._nodes,t)},a.prototype.removeNode=function(t){var n=this;if(r.has(this._nodes,t)){var e=function(t){n.removeEdge(n._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],r.each(this.children(t),function(t){n.setParent(t)}),delete this._children[t]),r.each(r.keys(this._in[t]),e),delete this._in[t],delete this._preds[t],r.each(r.keys(this._out[t]),e),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},a.prototype.setParent=function(t,n){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(n))n=o;else{for(var e=n+="";!r.isUndefined(e);e=this.parent(e))if(e===t)throw new Error("Setting "+n+" as parent of "+t+" would create a cycle");this.setNode(n)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=n,this._children[n][t]=!0,this},a.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},a.prototype.parent=function(t){if(this._isCompound){var n=this._parent[t];if(n!==o)return n}},a.prototype.children=function(t){if(r.isUndefined(t)&&(t=o),this._isCompound){var n=this._children[t];if(n)return r.keys(n)}else{if(t===o)return this.nodes();if(this.hasNode(t))return[]}},a.prototype.predecessors=function(t){var n=this._preds[t];if(n)return r.keys(n)},a.prototype.successors=function(t){var n=this._sucs[t];if(n)return r.keys(n)},a.prototype.neighbors=function(t){var n=this.predecessors(t);if(n)return r.union(n,this.successors(t))},a.prototype.isLeaf=function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length},a.prototype.filterNodes=function(t){var n=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});n.setGraph(this.graph());var e=this;r.each(this._nodes,function(e,r){t(r)&&n.setNode(r,e)}),r.each(this._edgeObjs,function(t){n.hasNode(t.v)&&n.hasNode(t.w)&&n.setEdge(t,e.edge(t))});var i={};return this._isCompound&&r.each(n.nodes(),function(t){n.setParent(t,function t(r){var o=e.parent(r);return void 0===o||n.hasNode(o)?(i[r]=o,o):o in i?i[o]:t(o)}(t))}),n},a.prototype.setDefaultEdgeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultEdgeLabelFn=t,this},a.prototype.edgeCount=function(){return this._edgeCount},a.prototype.edges=function(){return r.values(this._edgeObjs)},a.prototype.setPath=function(t,n){var e=this,i=arguments;return r.reduce(t,function(t,r){return i.length>1?e.setEdge(t,r,n):e.setEdge(t,r),r}),this},a.prototype.setEdge=function(){var t,n,e,i,o=!1,u=arguments[0];"object"==typeof u&&null!==u&&"v"in u?(t=u.v,n=u.w,e=u.name,2===arguments.length&&(i=arguments[1],o=!0)):(t=u,n=arguments[1],e=arguments[3],arguments.length>2&&(i=arguments[2],o=!0)),t=""+t,n=""+n,r.isUndefined(e)||(e=""+e);var a=f(this._isDirected,t,n,e);if(r.has(this._edgeLabels,a))return o&&(this._edgeLabels[a]=i),this;if(!r.isUndefined(e)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(n),this._edgeLabels[a]=o?i:this._defaultEdgeLabelFn(t,n,e);var s=function(t,n,e,r){var i=""+n,o=""+e;if(!t&&i>o){var u=i;i=o,o=u}var a={v:i,w:o};r&&(a.name=r);return a}(this._isDirected,t,n,e);return t=s.v,n=s.w,Object.freeze(s),this._edgeObjs[a]=s,c(this._preds[n],t),c(this._sucs[t],n),this._in[n][a]=s,this._out[t][a]=s,this._edgeCount++,this},a.prototype.edge=function(t,n,e){var r=1===arguments.length?l(this._isDirected,arguments[0]):f(this._isDirected,t,n,e);return this._edgeLabels[r]},a.prototype.hasEdge=function(t,n,e){var i=1===arguments.length?l(this._isDirected,arguments[0]):f(this._isDirected,t,n,e);return r.has(this._edgeLabels,i)},a.prototype.removeEdge=function(t,n,e){var r=1===arguments.length?l(this._isDirected,arguments[0]):f(this._isDirected,t,n,e),i=this._edgeObjs[r];return i&&(t=i.v,n=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],s(this._preds[n],t),s(this._sucs[t],n),delete this._in[n][r],delete this._out[t][r],this._edgeCount--),this},a.prototype.inEdges=function(t,n){var e=this._in[t];if(e){var i=r.values(e);return n?r.filter(i,function(t){return t.v===n}):i}},a.prototype.outEdges=function(t,n){var e=this._out[t];if(e){var i=r.values(e);return n?r.filter(i,function(t){return t.w===n}):i}},a.prototype.nodeEdges=function(t,n){var e=this.inEdges(t,n);if(e)return e.concat(this.outEdges(t,n))}},function(t,n,e){(function(t,r){var i;
/**
* @license
* Lodash
* Copyright OpenJS Foundation and other contributors
* Released under MIT license
* Based on Underscore.js 1.8.3
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/(function(){var o,u=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",s="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",l=500,h="__lodash_placeholder__",d=1,p=2,v=4,g=1,y=2,m=1,_=2,b=4,w=8,x=16,M=32,E=64,k=128,N=256,T=512,S=30,C="...",A=800,P=16,R=1,I=2,L=1/0,O=9007199254740991,D=1.7976931348623157e308,U=NaN,z=4294967295,F=z-1,q=z>>>1,j=[["ary",k],["bind",m],["bindKey",_],["curry",w],["curryRight",x],["flip",T],["partial",M],["partialRight",E],["rearg",N]],B="[object Arguments]",H="[object Array]",Y="[object AsyncFunction]",$="[object Boolean]",V="[object Date]",X="[object DOMException]",W="[object Error]",G="[object Function]",Q="[object GeneratorFunction]",Z="[object Map]",K="[object Number]",J="[object Null]",tt="[object Object]",nt="[object Proxy]",et="[object RegExp]",rt="[object Set]",it="[object String]",ot="[object Symbol]",ut="[object Undefined]",at="[object WeakMap]",ct="[object WeakSet]",st="[object ArrayBuffer]",ft="[object DataView]",lt="[object Float32Array]",ht="[object Float64Array]",dt="[object Int8Array]",pt="[object Int16Array]",vt="[object Int32Array]",gt="[object Uint8Array]",yt="[object Uint8ClampedArray]",mt="[object Uint16Array]",_t="[object Uint32Array]",bt=/\b__p \+= '';/g,wt=/\b(__p \+=) '' \+/g,xt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Mt=/&(?:amp|lt|gt|quot|#39);/g,Et=/[&<>"']/g,kt=RegExp(Mt.source),Nt=RegExp(Et.source),Tt=/<%-([\s\S]+?)%>/g,St=/<%([\s\S]+?)%>/g,Ct=/<%=([\s\S]+?)%>/g,At=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pt=/^\w*$/,Rt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,It=/[\\^$.*+?()[\]{}|]/g,Lt=RegExp(It.source),Ot=/^\s+/,Dt=/\s/,Ut=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,zt=/\{\n\/\* \[wrapped with (.+)\] \*/,Ft=/,? & /,qt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,jt=/[()=,{}\[\]\/\s]/,Bt=/\\(\\)?/g,Ht=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Yt=/\w*$/,$t=/^[-+]0x[0-9a-f]+$/i,Vt=/^0b[01]+$/i,Xt=/^\[object .+?Constructor\]$/,Wt=/^0o[0-7]+$/i,Gt=/^(?:0|[1-9]\d*)$/,Qt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Zt=/($^)/,Kt=/['\n\r\u2028\u2029\\]/g,Jt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",tn="\\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",nn="[\\ud800-\\udfff]",en="["+tn+"]",rn="["+Jt+"]",on="\\d+",un="[\\u2700-\\u27bf]",an="[a-z\\xdf-\\xf6\\xf8-\\xff]",cn="[^\\ud800-\\udfff"+tn+on+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",sn="\\ud83c[\\udffb-\\udfff]",fn="[^\\ud800-\\udfff]",ln="(?:\\ud83c[\\udde6-\\uddff]){2}",hn="[\\ud800-\\udbff][\\udc00-\\udfff]",dn="[A-Z\\xc0-\\xd6\\xd8-\\xde]",pn="(?:"+an+"|"+cn+")",vn="(?:"+dn+"|"+cn+")",gn="(?:"+rn+"|"+sn+")"+"?",yn="[\\ufe0e\\ufe0f]?"+gn+("(?:\\u200d(?:"+[fn,ln,hn].join("|")+")[\\ufe0e\\ufe0f]?"+gn+")*"),mn="(?:"+[un,ln,hn].join("|")+")"+yn,_n="(?:"+[fn+rn+"?",rn,ln,hn,nn].join("|")+")",bn=RegExp("['’]","g"),wn=RegExp(rn,"g"),xn=RegExp(sn+"(?="+sn+")|"+_n+yn,"g"),Mn=RegExp([dn+"?"+an+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[en,dn,"$"].join("|")+")",vn+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[en,dn+pn,"$"].join("|")+")",dn+"?"+pn+"+(?:['’](?:d|ll|m|re|s|t|ve))?",dn+"+(?:['’](?: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_])",on,mn].join("|"),"g"),En=RegExp("[\\u200d\\ud800-\\udfff"+Jt+"\\ufe0e\\ufe0f]"),kn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Nn=["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"],Tn=-1,Sn={};Sn[lt]=Sn[ht]=Sn[dt]=Sn[pt]=Sn[vt]=Sn[gt]=Sn[yt]=Sn[mt]=Sn[_t]=!0,Sn[B]=Sn[H]=Sn[st]=Sn[$]=Sn[ft]=Sn[V]=Sn[W]=Sn[G]=Sn[Z]=Sn[K]=Sn[tt]=Sn[et]=Sn[rt]=Sn[it]=Sn[at]=!1;var Cn={};Cn[B]=Cn[H]=Cn[st]=Cn[ft]=Cn[$]=Cn[V]=Cn[lt]=Cn[ht]=Cn[dt]=Cn[pt]=Cn[vt]=Cn[Z]=Cn[K]=Cn[tt]=Cn[et]=Cn[rt]=Cn[it]=Cn[ot]=Cn[gt]=Cn[yt]=Cn[mt]=Cn[_t]=!0,Cn[W]=Cn[G]=Cn[at]=!1;var An={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Pn=parseFloat,Rn=parseInt,In="object"==typeof t&&t&&t.Object===Object&&t,Ln="object"==typeof self&&self&&self.Object===Object&&self,On=In||Ln||Function("return this")(),Dn="object"==typeof n&&n&&!n.nodeType&&n,Un=Dn&&"object"==typeof r&&r&&!r.nodeType&&r,zn=Un&&Un.exports===Dn,Fn=zn&&In.process,qn=function(){try{var t=Un&&Un.require&&Un.require("util").types;return t||Fn&&Fn.binding&&Fn.binding("util")}catch(t){}}(),jn=qn&&qn.isArrayBuffer,Bn=qn&&qn.isDate,Hn=qn&&qn.isMap,Yn=qn&&qn.isRegExp,$n=qn&&qn.isSet,Vn=qn&&qn.isTypedArray;function Xn(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}function Wn(t,n,e,r){for(var i=-1,o=null==t?0:t.length;++i-1}function te(t,n,e){for(var r=-1,i=null==t?0:t.length;++r-1;);return e}function Me(t,n){for(var e=t.length;e--&&se(n,t[e],0)>-1;);return e}var Ee=pe({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),ke=pe({"&":"&","<":"<",">":">",'"':""","'":"'"});function Ne(t){return"\\"+An[t]}function Te(t){return En.test(t)}function Se(t){var n=-1,e=Array(t.size);return t.forEach(function(t,r){e[++n]=[r,t]}),e}function Ce(t,n){return function(e){return t(n(e))}}function Ae(t,n){for(var e=-1,r=t.length,i=0,o=[];++e",""":'"',"'":"'"});var Ue=function t(n){var e=(n=null==n?On:Ue.defaults(On.Object(),n,Ue.pick(On,Nn))).Array,r=n.Date,i=n.Error,Dt=n.Function,Jt=n.Math,tn=n.Object,nn=n.RegExp,en=n.String,rn=n.TypeError,on=e.prototype,un=Dt.prototype,an=tn.prototype,cn=n["__core-js_shared__"],sn=un.toString,fn=an.hasOwnProperty,ln=0,hn=function(){var t=/[^.]+$/.exec(cn&&cn.keys&&cn.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),dn=an.toString,pn=sn.call(tn),vn=On._,gn=nn("^"+sn.call(fn).replace(It,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),yn=zn?n.Buffer:o,mn=n.Symbol,_n=n.Uint8Array,xn=yn?yn.allocUnsafe:o,En=Ce(tn.getPrototypeOf,tn),An=tn.create,In=an.propertyIsEnumerable,Ln=on.splice,Dn=mn?mn.isConcatSpreadable:o,Un=mn?mn.iterator:o,Fn=mn?mn.toStringTag:o,qn=function(){try{var t=qo(tn,"defineProperty");return t({},"",{}),t}catch(t){}}(),ue=n.clearTimeout!==On.clearTimeout&&n.clearTimeout,pe=r&&r.now!==On.Date.now&&r.now,ze=n.setTimeout!==On.setTimeout&&n.setTimeout,Fe=Jt.ceil,qe=Jt.floor,je=tn.getOwnPropertySymbols,Be=yn?yn.isBuffer:o,He=n.isFinite,Ye=on.join,$e=Ce(tn.keys,tn),Ve=Jt.max,Xe=Jt.min,We=r.now,Ge=n.parseInt,Qe=Jt.random,Ze=on.reverse,Ke=qo(n,"DataView"),Je=qo(n,"Map"),tr=qo(n,"Promise"),nr=qo(n,"Set"),er=qo(n,"WeakMap"),rr=qo(tn,"create"),ir=er&&new er,or={},ur=hu(Ke),ar=hu(Je),cr=hu(tr),sr=hu(nr),fr=hu(er),lr=mn?mn.prototype:o,hr=lr?lr.valueOf:o,dr=lr?lr.toString:o;function pr(t){if(Ca(t)&&!ma(t)&&!(t instanceof mr)){if(t instanceof yr)return t;if(fn.call(t,"__wrapped__"))return du(t)}return new yr(t)}var vr=function(){function t(){}return function(n){if(!Sa(n))return{};if(An)return An(n);t.prototype=n;var e=new t;return t.prototype=o,e}}();function gr(){}function yr(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=o}function mr(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=z,this.__views__=[]}function _r(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n=n?t:n)),t}function Dr(t,n,e,r,i,u){var a,c=n&d,s=n&p,f=n&v;if(e&&(a=i?e(t,r,i,u):e(t)),a!==o)return a;if(!Sa(t))return t;var l=ma(t);if(l){if(a=function(t){var n=t.length,e=new t.constructor(n);return n&&"string"==typeof t[0]&&fn.call(t,"index")&&(e.index=t.index,e.input=t.input),e}(t),!c)return ro(t,a)}else{var h=Ho(t),g=h==G||h==Q;if(xa(t))return Zi(t,c);if(h==tt||h==B||g&&!i){if(a=s||g?{}:$o(t),!c)return s?function(t,n){return io(t,Bo(t),n)}(t,function(t,n){return t&&io(n,uc(n),t)}(a,t)):function(t,n){return io(t,jo(t),n)}(t,Rr(a,t))}else{if(!Cn[h])return i?t:{};a=function(t,n,e){var r=t.constructor;switch(n){case st:return Ki(t);case $:case V:return new r(+t);case ft:return function(t,n){var e=n?Ki(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.byteLength)}(t,e);case lt:case ht:case dt:case pt:case vt:case gt:case yt:case mt:case _t:return Ji(t,e);case Z:return new r;case K:case it:return new r(t);case et:return function(t){var n=new t.constructor(t.source,Yt.exec(t));return n.lastIndex=t.lastIndex,n}(t);case rt:return new r;case ot:return function(t){return hr?tn(hr.call(t)):{}}(t)}}(t,h,c)}}u||(u=new Mr);var y=u.get(t);if(y)return y;u.set(t,a),La(t)?t.forEach(function(r){a.add(Dr(r,n,e,r,t,u))}):Aa(t)&&t.forEach(function(r,i){a.set(i,Dr(r,n,e,i,t,u))});var m=l?o:(f?s?Io:Ro:s?uc:oc)(t);return Gn(m||t,function(r,i){m&&(r=t[i=r]),Cr(a,i,Dr(r,n,e,i,t,u))}),a}function Ur(t,n,e){var r=e.length;if(null==t)return!r;for(t=tn(t);r--;){var i=e[r],u=n[i],a=t[i];if(a===o&&!(i in t)||!u(a))return!1}return!0}function zr(t,n,e){if("function"!=typeof t)throw new rn(c);return ou(function(){t.apply(o,e)},n)}function Fr(t,n,e,r){var i=-1,o=Jn,a=!0,c=t.length,s=[],f=n.length;if(!c)return s;e&&(n=ne(n,_e(e))),r?(o=te,a=!1):n.length>=u&&(o=we,a=!1,n=new xr(n));t:for(;++i-1},br.prototype.set=function(t,n){var e=this.__data__,r=Ar(e,t);return r<0?(++this.size,e.push([t,n])):e[r][1]=n,this},wr.prototype.clear=function(){this.size=0,this.__data__={hash:new _r,map:new(Je||br),string:new _r}},wr.prototype.delete=function(t){var n=zo(this,t).delete(t);return this.size-=n?1:0,n},wr.prototype.get=function(t){return zo(this,t).get(t)},wr.prototype.has=function(t){return zo(this,t).has(t)},wr.prototype.set=function(t,n){var e=zo(this,t),r=e.size;return e.set(t,n),this.size+=e.size==r?0:1,this},xr.prototype.add=xr.prototype.push=function(t){return this.__data__.set(t,f),this},xr.prototype.has=function(t){return this.__data__.has(t)},Mr.prototype.clear=function(){this.__data__=new br,this.size=0},Mr.prototype.delete=function(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e},Mr.prototype.get=function(t){return this.__data__.get(t)},Mr.prototype.has=function(t){return this.__data__.has(t)},Mr.prototype.set=function(t,n){var e=this.__data__;if(e instanceof br){var r=e.__data__;if(!Je||r.length0&&e(a)?n>1?$r(a,n-1,e,r,i):ee(i,a):r||(i[i.length]=a)}return i}var Vr=co(),Xr=co(!0);function Wr(t,n){return t&&Vr(t,n,oc)}function Gr(t,n){return t&&Xr(t,n,oc)}function Qr(t,n){return Kn(n,function(n){return ka(t[n])})}function Zr(t,n){for(var e=0,r=(n=Xi(n,t)).length;null!=t&&en}function ni(t,n){return null!=t&&fn.call(t,n)}function ei(t,n){return null!=t&&n in tn(t)}function ri(t,n,r){for(var i=r?te:Jn,u=t[0].length,a=t.length,c=a,s=e(a),f=1/0,l=[];c--;){var h=t[c];c&&n&&(h=ne(h,_e(n))),f=Xe(h.length,f),s[c]=!r&&(n||u>=120&&h.length>=120)?new xr(c&&h):o}h=t[0];var d=-1,p=s[0];t:for(;++d=a)return c;var s=e[r];return c*("desc"==s?-1:1)}}return t.index-n.index}(t,n,e)})}function _i(t,n,e){for(var r=-1,i=n.length,o={};++r-1;)a!==t&&Ln.call(a,c,1),Ln.call(t,c,1);return t}function wi(t,n){for(var e=t?n.length:0,r=e-1;e--;){var i=n[e];if(e==r||i!==o){var o=i;Xo(i)?Ln.call(t,i,1):Fi(t,i)}}return t}function xi(t,n){return t+qe(Qe()*(n-t+1))}function Mi(t,n){var e="";if(!t||n<1||n>O)return e;do{n%2&&(e+=t),(n=qe(n/2))&&(t+=t)}while(n);return e}function Ei(t,n){return uu(nu(t,n,Pc),t+"")}function ki(t){return kr(pc(t))}function Ni(t,n){var e=pc(t);return su(e,Or(n,0,e.length))}function Ti(t,n,e,r){if(!Sa(t))return t;for(var i=-1,u=(n=Xi(n,t)).length,a=u-1,c=t;null!=c&&++io?0:o+n),(r=r>o?o:r)<0&&(r+=o),o=n>r?0:r-n>>>0,n>>>=0;for(var u=e(o);++i>>1,u=t[o];null!==u&&!Da(u)&&(e?u<=n:u=u){var f=n?null:Eo(t);if(f)return Pe(f);a=!1,i=we,s=new xr}else s=n?[]:c;t:for(;++r=r?t:Pi(t,n,e)}var Qi=ue||function(t){return On.clearTimeout(t)};function Zi(t,n){if(n)return t.slice();var e=t.length,r=xn?xn(e):new t.constructor(e);return t.copy(r),r}function Ki(t){var n=new t.constructor(t.byteLength);return new _n(n).set(new _n(t)),n}function Ji(t,n){var e=n?Ki(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)}function to(t,n){if(t!==n){var e=t!==o,r=null===t,i=t==t,u=Da(t),a=n!==o,c=null===n,s=n==n,f=Da(n);if(!c&&!f&&!u&&t>n||u&&a&&s&&!c&&!f||r&&a&&s||!e&&s||!i)return 1;if(!r&&!u&&!f&&t1?e[i-1]:o,a=i>2?e[2]:o;for(u=t.length>3&&"function"==typeof u?(i--,u):o,a&&Wo(e[0],e[1],a)&&(u=i<3?o:u,i=1),n=tn(n);++r-1?i[u?n[a]:a]:o}}function po(t){return Po(function(n){var e=n.length,r=e,i=yr.prototype.thru;for(t&&n.reverse();r--;){var u=n[r];if("function"!=typeof u)throw new rn(c);if(i&&!a&&"wrapper"==Oo(u))var a=new yr([],!0)}for(r=a?r:e;++r1&&b.reverse(),h&&f<_&&(b.length=f),this&&this!==On&&this instanceof m&&(N=y||lo(N)),N.apply(k,b)}}function go(t,n){return function(e,r){return function(t,n,e,r){return Wr(t,function(t,i,o){n(r,e(t),i,o)}),r}(e,t,n(r),{})}}function yo(t,n){return function(e,r){var i;if(e===o&&r===o)return n;if(e!==o&&(i=e),r!==o){if(i===o)return r;"string"==typeof e||"string"==typeof r?(e=Ui(e),r=Ui(r)):(e=Di(e),r=Di(r)),i=t(e,r)}return i}}function mo(t){return Po(function(n){return n=ne(n,_e(Uo())),Ei(function(e){var r=this;return t(n,function(t){return Xn(t,r,e)})})})}function _o(t,n){var e=(n=n===o?" ":Ui(n)).length;if(e<2)return e?Mi(n,t):n;var r=Mi(n,Fe(t/Ie(n)));return Te(n)?Gi(Le(r),0,t).join(""):r.slice(0,t)}function bo(t){return function(n,r,i){return i&&"number"!=typeof i&&Wo(n,r,i)&&(r=i=o),n=ja(n),r===o?(r=n,n=0):r=ja(r),function(t,n,r,i){for(var o=-1,u=Ve(Fe((n-t)/(r||1)),0),a=e(u);u--;)a[i?u:++o]=t,t+=r;return a}(n,r,i=i===o?nc))return!1;var f=u.get(t),l=u.get(n);if(f&&l)return f==n&&l==t;var h=-1,d=!0,p=e&y?new xr:o;for(u.set(t,n),u.set(n,t);++h-1&&t%1==0&&t1?"& ":"")+n[r],n=n.join(e>2?", ":" "),t.replace(Ut,"{\n/* [wrapped with "+n+"] */\n")}(r,function(t,n){return Gn(j,function(e){var r="_."+e[0];n&e[1]&&!Jn(t,r)&&t.push(r)}),t.sort()}(function(t){var n=t.match(zt);return n?n[1].split(Ft):[]}(r),e)))}function cu(t){var n=0,e=0;return function(){var r=We(),i=P-(r-e);if(e=r,i>0){if(++n>=A)return arguments[0]}else n=0;return t.apply(o,arguments)}}function su(t,n){var e=-1,r=t.length,i=r-1;for(n=n===o?r:n;++e1?t[n-1]:o;return Iu(t,e="function"==typeof e?(t.pop(),e):o)});function qu(t){var n=pr(t);return n.__chain__=!0,n}function ju(t,n){return n(t)}var Bu=Po(function(t){var n=t.length,e=n?t[0]:0,r=this.__wrapped__,i=function(n){return Lr(n,t)};return!(n>1||this.__actions__.length)&&r instanceof mr&&Xo(e)?((r=r.slice(e,+e+(n?1:0))).__actions__.push({func:ju,args:[i],thisArg:o}),new yr(r,this.__chain__).thru(function(t){return n&&!t.length&&t.push(o),t})):this.thru(i)});var Hu=oo(function(t,n,e){fn.call(t,e)?++t[e]:Ir(t,e,1)});var Yu=ho(yu),$u=ho(mu);function Vu(t,n){return(ma(t)?Gn:qr)(t,Uo(n,3))}function Xu(t,n){return(ma(t)?Qn:jr)(t,Uo(n,3))}var Wu=oo(function(t,n,e){fn.call(t,e)?t[e].push(n):Ir(t,e,[n])});var Gu=Ei(function(t,n,r){var i=-1,o="function"==typeof n,u=ba(t)?e(t.length):[];return qr(t,function(t){u[++i]=o?Xn(n,t,r):ii(t,n,r)}),u}),Qu=oo(function(t,n,e){Ir(t,e,n)});function Zu(t,n){return(ma(t)?ne:di)(t,Uo(n,3))}var Ku=oo(function(t,n,e){t[e?0:1].push(n)},function(){return[[],[]]});var Ju=Ei(function(t,n){if(null==t)return[];var e=n.length;return e>1&&Wo(t,n[0],n[1])?n=[]:e>2&&Wo(n[0],n[1],n[2])&&(n=[n[0]]),mi(t,$r(n,1),[])}),ta=pe||function(){return On.Date.now()};function na(t,n,e){return n=e?o:n,n=t&&null==n?t.length:n,No(t,k,o,o,o,o,n)}function ea(t,n){var e;if("function"!=typeof n)throw new rn(c);return t=Ba(t),function(){return--t>0&&(e=n.apply(this,arguments)),t<=1&&(n=o),e}}var ra=Ei(function(t,n,e){var r=m;if(e.length){var i=Ae(e,Do(ra));r|=M}return No(t,r,n,e,i)}),ia=Ei(function(t,n,e){var r=m|_;if(e.length){var i=Ae(e,Do(ia));r|=M}return No(n,r,t,e,i)});function oa(t,n,e){var r,i,u,a,s,f,l=0,h=!1,d=!1,p=!0;if("function"!=typeof t)throw new rn(c);function v(n){var e=r,u=i;return r=i=o,l=n,a=t.apply(u,e)}function g(t){var e=t-f;return f===o||e>=n||e<0||d&&t-l>=u}function y(){var t=ta();if(g(t))return m(t);s=ou(y,function(t){var e=n-(t-f);return d?Xe(e,u-(t-l)):e}(t))}function m(t){return s=o,p&&r?v(t):(r=i=o,a)}function _(){var t=ta(),e=g(t);if(r=arguments,i=this,f=t,e){if(s===o)return function(t){return l=t,s=ou(y,n),h?v(t):a}(f);if(d)return Qi(s),s=ou(y,n),v(f)}return s===o&&(s=ou(y,n)),a}return n=Ya(n)||0,Sa(e)&&(h=!!e.leading,u=(d="maxWait"in e)?Ve(Ya(e.maxWait)||0,n):u,p="trailing"in e?!!e.trailing:p),_.cancel=function(){s!==o&&Qi(s),l=0,r=f=i=s=o},_.flush=function(){return s===o?a:m(ta())},_}var ua=Ei(function(t,n){return zr(t,1,n)}),aa=Ei(function(t,n,e){return zr(t,Ya(n)||0,e)});function ca(t,n){if("function"!=typeof t||null!=n&&"function"!=typeof n)throw new rn(c);var e=function(){var r=arguments,i=n?n.apply(this,r):r[0],o=e.cache;if(o.has(i))return o.get(i);var u=t.apply(this,r);return e.cache=o.set(i,u)||o,u};return e.cache=new(ca.Cache||wr),e}function sa(t){if("function"!=typeof t)throw new rn(c);return function(){var n=arguments;switch(n.length){case 0:return!t.call(this);case 1:return!t.call(this,n[0]);case 2:return!t.call(this,n[0],n[1]);case 3:return!t.call(this,n[0],n[1],n[2])}return!t.apply(this,n)}}ca.Cache=wr;var fa=Wi(function(t,n){var e=(n=1==n.length&&ma(n[0])?ne(n[0],_e(Uo())):ne($r(n,1),_e(Uo()))).length;return Ei(function(r){for(var i=-1,o=Xe(r.length,e);++i=n}),ya=oi(function(){return arguments}())?oi:function(t){return Ca(t)&&fn.call(t,"callee")&&!In.call(t,"callee")},ma=e.isArray,_a=jn?_e(jn):function(t){return Ca(t)&&Jr(t)==st};function ba(t){return null!=t&&Ta(t.length)&&!ka(t)}function wa(t){return Ca(t)&&ba(t)}var xa=Be||Yc,Ma=Bn?_e(Bn):function(t){return Ca(t)&&Jr(t)==V};function Ea(t){if(!Ca(t))return!1;var n=Jr(t);return n==W||n==X||"string"==typeof t.message&&"string"==typeof t.name&&!Ra(t)}function ka(t){if(!Sa(t))return!1;var n=Jr(t);return n==G||n==Q||n==Y||n==nt}function Na(t){return"number"==typeof t&&t==Ba(t)}function Ta(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=O}function Sa(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}function Ca(t){return null!=t&&"object"==typeof t}var Aa=Hn?_e(Hn):function(t){return Ca(t)&&Ho(t)==Z};function Pa(t){return"number"==typeof t||Ca(t)&&Jr(t)==K}function Ra(t){if(!Ca(t)||Jr(t)!=tt)return!1;var n=En(t);if(null===n)return!0;var e=fn.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&sn.call(e)==pn}var Ia=Yn?_e(Yn):function(t){return Ca(t)&&Jr(t)==et};var La=$n?_e($n):function(t){return Ca(t)&&Ho(t)==rt};function Oa(t){return"string"==typeof t||!ma(t)&&Ca(t)&&Jr(t)==it}function Da(t){return"symbol"==typeof t||Ca(t)&&Jr(t)==ot}var Ua=Vn?_e(Vn):function(t){return Ca(t)&&Ta(t.length)&&!!Sn[Jr(t)]};var za=wo(hi),Fa=wo(function(t,n){return t<=n});function qa(t){if(!t)return[];if(ba(t))return Oa(t)?Le(t):ro(t);if(Un&&t[Un])return function(t){for(var n,e=[];!(n=t.next()).done;)e.push(n.value);return e}(t[Un]());var n=Ho(t);return(n==Z?Se:n==rt?Pe:pc)(t)}function ja(t){return t?(t=Ya(t))===L||t===-L?(t<0?-1:1)*D:t==t?t:0:0===t?t:0}function Ba(t){var n=ja(t),e=n%1;return n==n?e?n-e:n:0}function Ha(t){return t?Or(Ba(t),0,z):0}function Ya(t){if("number"==typeof t)return t;if(Da(t))return U;if(Sa(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=Sa(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=me(t);var e=Vt.test(t);return e||Wt.test(t)?Rn(t.slice(2),e?2:8):$t.test(t)?U:+t}function $a(t){return io(t,uc(t))}function Va(t){return null==t?"":Ui(t)}var Xa=uo(function(t,n){if(Ko(n)||ba(n))io(n,oc(n),t);else for(var e in n)fn.call(n,e)&&Cr(t,e,n[e])}),Wa=uo(function(t,n){io(n,uc(n),t)}),Ga=uo(function(t,n,e,r){io(n,uc(n),t,r)}),Qa=uo(function(t,n,e,r){io(n,oc(n),t,r)}),Za=Po(Lr);var Ka=Ei(function(t,n){t=tn(t);var e=-1,r=n.length,i=r>2?n[2]:o;for(i&&Wo(n[0],n[1],i)&&(r=1);++e1),n}),io(t,Io(t),e),r&&(e=Dr(e,d|p|v,Co));for(var i=n.length;i--;)Fi(e,n[i]);return e});var fc=Po(function(t,n){return null==t?{}:function(t,n){return _i(t,n,function(n,e){return nc(t,e)})}(t,n)});function lc(t,n){if(null==t)return{};var e=ne(Io(t),function(t){return[t]});return n=Uo(n),_i(t,e,function(t,e){return n(t,e[0])})}var hc=ko(oc),dc=ko(uc);function pc(t){return null==t?[]:be(t,oc(t))}var vc=fo(function(t,n,e){return n=n.toLowerCase(),t+(e?gc(n):n)});function gc(t){return Ec(Va(t).toLowerCase())}function yc(t){return(t=Va(t))&&t.replace(Qt,Ee).replace(wn,"")}var mc=fo(function(t,n,e){return t+(e?"-":"")+n.toLowerCase()}),_c=fo(function(t,n,e){return t+(e?" ":"")+n.toLowerCase()}),bc=so("toLowerCase");var wc=fo(function(t,n,e){return t+(e?"_":"")+n.toLowerCase()});var xc=fo(function(t,n,e){return t+(e?" ":"")+Ec(n)});var Mc=fo(function(t,n,e){return t+(e?" ":"")+n.toUpperCase()}),Ec=so("toUpperCase");function kc(t,n,e){return t=Va(t),(n=e?o:n)===o?function(t){return kn.test(t)}(t)?function(t){return t.match(Mn)||[]}(t):function(t){return t.match(qt)||[]}(t):t.match(n)||[]}var Nc=Ei(function(t,n){try{return Xn(t,o,n)}catch(t){return Ea(t)?t:new i(t)}}),Tc=Po(function(t,n){return Gn(n,function(n){n=lu(n),Ir(t,n,ra(t[n],t))}),t});function Sc(t){return function(){return t}}var Cc=po(),Ac=po(!0);function Pc(t){return t}function Rc(t){return si("function"==typeof t?t:Dr(t,d))}var Ic=Ei(function(t,n){return function(e){return ii(e,t,n)}}),Lc=Ei(function(t,n){return function(e){return ii(t,e,n)}});function Oc(t,n,e){var r=oc(n),i=Qr(n,r);null!=e||Sa(n)&&(i.length||!r.length)||(e=n,n=t,t=this,i=Qr(n,oc(n)));var o=!(Sa(e)&&"chain"in e&&!e.chain),u=ka(t);return Gn(i,function(e){var r=n[e];t[e]=r,u&&(t.prototype[e]=function(){var n=this.__chain__;if(o||n){var e=t(this.__wrapped__);return(e.__actions__=ro(this.__actions__)).push({func:r,args:arguments,thisArg:t}),e.__chain__=n,e}return r.apply(t,ee([this.value()],arguments))})}),t}function Dc(){}var Uc=mo(ne),zc=mo(Zn),Fc=mo(oe);function qc(t){return Go(t)?de(lu(t)):function(t){return function(n){return Zr(n,t)}}(t)}var jc=bo(),Bc=bo(!0);function Hc(){return[]}function Yc(){return!1}var $c=yo(function(t,n){return t+n},0),Vc=Mo("ceil"),Xc=yo(function(t,n){return t/n},1),Wc=Mo("floor");var Gc=yo(function(t,n){return t*n},1),Qc=Mo("round"),Zc=yo(function(t,n){return t-n},0);return pr.after=function(t,n){if("function"!=typeof n)throw new rn(c);return t=Ba(t),function(){if(--t<1)return n.apply(this,arguments)}},pr.ary=na,pr.assign=Xa,pr.assignIn=Wa,pr.assignInWith=Ga,pr.assignWith=Qa,pr.at=Za,pr.before=ea,pr.bind=ra,pr.bindAll=Tc,pr.bindKey=ia,pr.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return ma(t)?t:[t]},pr.chain=qu,pr.chunk=function(t,n,r){n=(r?Wo(t,n,r):n===o)?1:Ve(Ba(n),0);var i=null==t?0:t.length;if(!i||n<1)return[];for(var u=0,a=0,c=e(Fe(i/n));ui?0:i+e),(r=r===o||r>i?i:Ba(r))<0&&(r+=i),r=e>r?0:Ha(r);e>>0)?(t=Va(t))&&("string"==typeof n||null!=n&&!Ia(n))&&!(n=Ui(n))&&Te(t)?Gi(Le(t),0,e):t.split(n,e):[]},pr.spread=function(t,n){if("function"!=typeof t)throw new rn(c);return n=null==n?0:Ve(Ba(n),0),Ei(function(e){var r=e[n],i=Gi(e,0,n);return r&&ee(i,r),Xn(t,this,i)})},pr.tail=function(t){var n=null==t?0:t.length;return n?Pi(t,1,n):[]},pr.take=function(t,n,e){return t&&t.length?Pi(t,0,(n=e||n===o?1:Ba(n))<0?0:n):[]},pr.takeRight=function(t,n,e){var r=null==t?0:t.length;return r?Pi(t,(n=r-(n=e||n===o?1:Ba(n)))<0?0:n,r):[]},pr.takeRightWhile=function(t,n){return t&&t.length?ji(t,Uo(n,3),!1,!0):[]},pr.takeWhile=function(t,n){return t&&t.length?ji(t,Uo(n,3)):[]},pr.tap=function(t,n){return n(t),t},pr.throttle=function(t,n,e){var r=!0,i=!0;if("function"!=typeof t)throw new rn(c);return Sa(e)&&(r="leading"in e?!!e.leading:r,i="trailing"in e?!!e.trailing:i),oa(t,n,{leading:r,maxWait:n,trailing:i})},pr.thru=ju,pr.toArray=qa,pr.toPairs=hc,pr.toPairsIn=dc,pr.toPath=function(t){return ma(t)?ne(t,lu):Da(t)?[t]:ro(fu(Va(t)))},pr.toPlainObject=$a,pr.transform=function(t,n,e){var r=ma(t),i=r||xa(t)||Ua(t);if(n=Uo(n,4),null==e){var o=t&&t.constructor;e=i?r?new o:[]:Sa(t)&&ka(o)?vr(En(t)):{}}return(i?Gn:Wr)(t,function(t,r,i){return n(e,t,r,i)}),e},pr.unary=function(t){return na(t,1)},pr.union=Cu,pr.unionBy=Au,pr.unionWith=Pu,pr.uniq=function(t){return t&&t.length?zi(t):[]},pr.uniqBy=function(t,n){return t&&t.length?zi(t,Uo(n,2)):[]},pr.uniqWith=function(t,n){return n="function"==typeof n?n:o,t&&t.length?zi(t,o,n):[]},pr.unset=function(t,n){return null==t||Fi(t,n)},pr.unzip=Ru,pr.unzipWith=Iu,pr.update=function(t,n,e){return null==t?t:qi(t,n,Vi(e))},pr.updateWith=function(t,n,e,r){return r="function"==typeof r?r:o,null==t?t:qi(t,n,Vi(e),r)},pr.values=pc,pr.valuesIn=function(t){return null==t?[]:be(t,uc(t))},pr.without=Lu,pr.words=kc,pr.wrap=function(t,n){return la(Vi(n),t)},pr.xor=Ou,pr.xorBy=Du,pr.xorWith=Uu,pr.zip=zu,pr.zipObject=function(t,n){return Yi(t||[],n||[],Cr)},pr.zipObjectDeep=function(t,n){return Yi(t||[],n||[],Ti)},pr.zipWith=Fu,pr.entries=hc,pr.entriesIn=dc,pr.extend=Wa,pr.extendWith=Ga,Oc(pr,pr),pr.add=$c,pr.attempt=Nc,pr.camelCase=vc,pr.capitalize=gc,pr.ceil=Vc,pr.clamp=function(t,n,e){return e===o&&(e=n,n=o),e!==o&&(e=(e=Ya(e))==e?e:0),n!==o&&(n=(n=Ya(n))==n?n:0),Or(Ya(t),n,e)},pr.clone=function(t){return Dr(t,v)},pr.cloneDeep=function(t){return Dr(t,d|v)},pr.cloneDeepWith=function(t,n){return Dr(t,d|v,n="function"==typeof n?n:o)},pr.cloneWith=function(t,n){return Dr(t,v,n="function"==typeof n?n:o)},pr.conformsTo=function(t,n){return null==n||Ur(t,n,oc(n))},pr.deburr=yc,pr.defaultTo=function(t,n){return null==t||t!=t?n:t},pr.divide=Xc,pr.endsWith=function(t,n,e){t=Va(t),n=Ui(n);var r=t.length,i=e=e===o?r:Or(Ba(e),0,r);return(e-=n.length)>=0&&t.slice(e,i)==n},pr.eq=pa,pr.escape=function(t){return(t=Va(t))&&Nt.test(t)?t.replace(Et,ke):t},pr.escapeRegExp=function(t){return(t=Va(t))&&Lt.test(t)?t.replace(It,"\\$&"):t},pr.every=function(t,n,e){var r=ma(t)?Zn:Br;return e&&Wo(t,n,e)&&(n=o),r(t,Uo(n,3))},pr.find=Yu,pr.findIndex=yu,pr.findKey=function(t,n){return ae(t,Uo(n,3),Wr)},pr.findLast=$u,pr.findLastIndex=mu,pr.findLastKey=function(t,n){return ae(t,Uo(n,3),Gr)},pr.floor=Wc,pr.forEach=Vu,pr.forEachRight=Xu,pr.forIn=function(t,n){return null==t?t:Vr(t,Uo(n,3),uc)},pr.forInRight=function(t,n){return null==t?t:Xr(t,Uo(n,3),uc)},pr.forOwn=function(t,n){return t&&Wr(t,Uo(n,3))},pr.forOwnRight=function(t,n){return t&&Gr(t,Uo(n,3))},pr.get=tc,pr.gt=va,pr.gte=ga,pr.has=function(t,n){return null!=t&&Yo(t,n,ni)},pr.hasIn=nc,pr.head=bu,pr.identity=Pc,pr.includes=function(t,n,e,r){t=ba(t)?t:pc(t),e=e&&!r?Ba(e):0;var i=t.length;return e<0&&(e=Ve(i+e,0)),Oa(t)?e<=i&&t.indexOf(n,e)>-1:!!i&&se(t,n,e)>-1},pr.indexOf=function(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var i=null==e?0:Ba(e);return i<0&&(i=Ve(r+i,0)),se(t,n,i)},pr.inRange=function(t,n,e){return n=ja(n),e===o?(e=n,n=0):e=ja(e),function(t,n,e){return t>=Xe(n,e)&&t=-O&&t<=O},pr.isSet=La,pr.isString=Oa,pr.isSymbol=Da,pr.isTypedArray=Ua,pr.isUndefined=function(t){return t===o},pr.isWeakMap=function(t){return Ca(t)&&Ho(t)==at},pr.isWeakSet=function(t){return Ca(t)&&Jr(t)==ct},pr.join=function(t,n){return null==t?"":Ye.call(t,n)},pr.kebabCase=mc,pr.last=Eu,pr.lastIndexOf=function(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var i=r;return e!==o&&(i=(i=Ba(e))<0?Ve(r+i,0):Xe(i,r-1)),n==n?function(t,n,e){for(var r=e+1;r--;)if(t[r]===n)return r;return r}(t,n,i):ce(t,le,i,!0)},pr.lowerCase=_c,pr.lowerFirst=bc,pr.lt=za,pr.lte=Fa,pr.max=function(t){return t&&t.length?Hr(t,Pc,ti):o},pr.maxBy=function(t,n){return t&&t.length?Hr(t,Uo(n,2),ti):o},pr.mean=function(t){return he(t,Pc)},pr.meanBy=function(t,n){return he(t,Uo(n,2))},pr.min=function(t){return t&&t.length?Hr(t,Pc,hi):o},pr.minBy=function(t,n){return t&&t.length?Hr(t,Uo(n,2),hi):o},pr.stubArray=Hc,pr.stubFalse=Yc,pr.stubObject=function(){return{}},pr.stubString=function(){return""},pr.stubTrue=function(){return!0},pr.multiply=Gc,pr.nth=function(t,n){return t&&t.length?yi(t,Ba(n)):o},pr.noConflict=function(){return On._===this&&(On._=vn),this},pr.noop=Dc,pr.now=ta,pr.pad=function(t,n,e){t=Va(t);var r=(n=Ba(n))?Ie(t):0;if(!n||r>=n)return t;var i=(n-r)/2;return _o(qe(i),e)+t+_o(Fe(i),e)},pr.padEnd=function(t,n,e){t=Va(t);var r=(n=Ba(n))?Ie(t):0;return n&&rn){var r=t;t=n,n=r}if(e||t%1||n%1){var i=Qe();return Xe(t+i*(n-t+Pn("1e-"+((i+"").length-1))),n)}return xi(t,n)},pr.reduce=function(t,n,e){var r=ma(t)?re:ve,i=arguments.length<3;return r(t,Uo(n,4),e,i,qr)},pr.reduceRight=function(t,n,e){var r=ma(t)?ie:ve,i=arguments.length<3;return r(t,Uo(n,4),e,i,jr)},pr.repeat=function(t,n,e){return n=(e?Wo(t,n,e):n===o)?1:Ba(n),Mi(Va(t),n)},pr.replace=function(){var t=arguments,n=Va(t[0]);return t.length<3?n:n.replace(t[1],t[2])},pr.result=function(t,n,e){var r=-1,i=(n=Xi(n,t)).length;for(i||(i=1,t=o);++rO)return[];var e=z,r=Xe(t,z);n=Uo(n),t-=z;for(var i=ye(r,n);++e=u)return t;var c=e-Ie(r);if(c<1)return r;var s=a?Gi(a,0,c).join(""):t.slice(0,c);if(i===o)return s+r;if(a&&(c+=s.length-c),Ia(i)){if(t.slice(c).search(i)){var f,l=s;for(i.global||(i=nn(i.source,Va(Yt.exec(i))+"g")),i.lastIndex=0;f=i.exec(l);)var h=f.index;s=s.slice(0,h===o?c:h)}}else if(t.indexOf(Ui(i),c)!=c){var d=s.lastIndexOf(i);d>-1&&(s=s.slice(0,d))}return s+r},pr.unescape=function(t){return(t=Va(t))&&kt.test(t)?t.replace(Mt,De):t},pr.uniqueId=function(t){var n=++ln;return Va(t)+n},pr.upperCase=Mc,pr.upperFirst=Ec,pr.each=Vu,pr.eachRight=Xu,pr.first=bu,Oc(pr,function(){var t={};return Wr(pr,function(n,e){fn.call(pr.prototype,e)||(t[e]=n)}),t}(),{chain:!1}),pr.VERSION="4.17.21",Gn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){pr[t].placeholder=pr}),Gn(["drop","take"],function(t,n){mr.prototype[t]=function(e){e=e===o?1:Ve(Ba(e),0);var r=this.__filtered__&&!n?new mr(this):this.clone();return r.__filtered__?r.__takeCount__=Xe(e,r.__takeCount__):r.__views__.push({size:Xe(e,z),type:t+(r.__dir__<0?"Right":"")}),r},mr.prototype[t+"Right"]=function(n){return this.reverse()[t](n).reverse()}}),Gn(["filter","map","takeWhile"],function(t,n){var e=n+1,r=e==R||3==e;mr.prototype[t]=function(t){var n=this.clone();return n.__iteratees__.push({iteratee:Uo(t,3),type:e}),n.__filtered__=n.__filtered__||r,n}}),Gn(["head","last"],function(t,n){var e="take"+(n?"Right":"");mr.prototype[t]=function(){return this[e](1).value()[0]}}),Gn(["initial","tail"],function(t,n){var e="drop"+(n?"":"Right");mr.prototype[t]=function(){return this.__filtered__?new mr(this):this[e](1)}}),mr.prototype.compact=function(){return this.filter(Pc)},mr.prototype.find=function(t){return this.filter(t).head()},mr.prototype.findLast=function(t){return this.reverse().find(t)},mr.prototype.invokeMap=Ei(function(t,n){return"function"==typeof t?new mr(this):this.map(function(e){return ii(e,t,n)})}),mr.prototype.reject=function(t){return this.filter(sa(Uo(t)))},mr.prototype.slice=function(t,n){t=Ba(t);var e=this;return e.__filtered__&&(t>0||n<0)?new mr(e):(t<0?e=e.takeRight(-t):t&&(e=e.drop(t)),n!==o&&(e=(n=Ba(n))<0?e.dropRight(-n):e.take(n-t)),e)},mr.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},mr.prototype.toArray=function(){return this.take(z)},Wr(mr.prototype,function(t,n){var e=/^(?:filter|find|map|reject)|While$/.test(n),r=/^(?:head|last)$/.test(n),i=pr[r?"take"+("last"==n?"Right":""):n],u=r||/^find/.test(n);i&&(pr.prototype[n]=function(){var n=this.__wrapped__,a=r?[1]:arguments,c=n instanceof mr,s=a[0],f=c||ma(n),l=function(t){var n=i.apply(pr,ee([t],a));return r&&h?n[0]:n};f&&e&&"function"==typeof s&&1!=s.length&&(c=f=!1);var h=this.__chain__,d=!!this.__actions__.length,p=u&&!h,v=c&&!d;if(!u&&f){n=v?n:new mr(this);var g=t.apply(n,a);return g.__actions__.push({func:ju,args:[l],thisArg:o}),new yr(g,h)}return p&&v?t.apply(this,a):(g=this.thru(l),p?r?g.value()[0]:g.value():g)})}),Gn(["pop","push","shift","sort","splice","unshift"],function(t){var n=on[t],e=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);pr.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return n.apply(ma(i)?i:[],t)}return this[e](function(e){return n.apply(ma(e)?e:[],t)})}}),Wr(mr.prototype,function(t,n){var e=pr[n];if(e){var r=e.name+"";fn.call(or,r)||(or[r]=[]),or[r].push({name:n,func:e})}}),or[vo(o,_).name]=[{name:"wrapper",func:o}],mr.prototype.clone=function(){var t=new mr(this.__wrapped__);return t.__actions__=ro(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=ro(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=ro(this.__views__),t},mr.prototype.reverse=function(){if(this.__filtered__){var t=new mr(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},mr.prototype.value=function(){var t=this.__wrapped__.value(),n=this.__dir__,e=ma(t),r=n<0,i=e?t.length:0,o=function(t,n,e){for(var r=-1,i=e.length;++r=this.__values__.length;return{done:t,value:t?o:this.__values__[this.__index__++]}},pr.prototype.plant=function(t){for(var n,e=this;e instanceof gr;){var r=du(e);r.__index__=0,r.__values__=o,n?i.__wrapped__=r:n=r;var i=r;e=e.__wrapped__}return i.__wrapped__=t,n},pr.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof mr){var n=t;return this.__actions__.length&&(n=new mr(this)),(n=n.reverse()).__actions__.push({func:ju,args:[Su],thisArg:o}),new yr(n,this.__chain__)}return this.thru(Su)},pr.prototype.toJSON=pr.prototype.valueOf=pr.prototype.value=function(){return Bi(this.__wrapped__,this.__actions__)},pr.prototype.first=pr.prototype.head,Un&&(pr.prototype[Un]=function(){return this}),pr}();On._=Ue,(i=function(){return Ue}.call(n,e,n,r))===o||(r.exports=i)}).call(this)}).call(this,e(47),e(48)(t))},function(t,n){t.exports=function(t,n,e,r){var i=t.x,o=t.y,u=i-r.x,a=o-r.y,c=Math.sqrt(n*n*a*a+e*e*u*u),s=Math.abs(n*e*u/c);r.x-1},n.addToHistory=function(t,n){if(0===n.length)return n.concat([t]);return n.concat([t]).slice(Math.max(n.length-s,0))},n.addExponentiallyWeightedToHistory=function(t,n){if(0===n.length)return n.concat([t]);var e=t*f+n[n.length-1]*(1-f);t<1&&(e=0);return n.concat([e]).slice(Math.max(n.length-s,0))},n.initializeGraph=function(){return new r.graphlib.Graph({compound:!0}).setGraph({rankdir:"BT"}).setDefaultEdgeLabel(function(){return{}})},n.initializeSvg=function(t){var n=i.select(t);return n.append("g"),n},n.getChildren=function(t){switch(t["@type"]){case"output":case"explainAnalyze":case"project":case"filter":case"aggregation":case"sort":case"markDistinct":case"window":case"rowNumber":case"topnRowNumber":case"limit":case"distinctlimit":case"topn":case"sample":case"tablewriter":case"delete":case"metadatadelete":case"tablecommit":case"groupid":case"unnest":case"scalar":return[t.source];case"join":return[t.left,t.right];case"semijoin":return[t.source,t.filteringSource];case"spatialjoin":return[t.left,t.right];case"indexjoin":return[t.probeSource,t.indexSource];case"union":case"exchange":return t.sources;case"remoteSource":case"tablescan":case"values":case"indexsource":break;default:console.log("NOTE: Unhandled PlanNode: "+t["@type"])}return[]},n.truncateString=function(t,n){if(t&&t.length>n)return t.substring(0,n)+"...";return t},n.getStageNumber=function(t){return Number.parseInt(t.slice(t.indexOf(".")+1,t.length))},n.getTaskIdSuffix=l,n.getTaskNumber=function(t){return Number.parseInt(l(l(t)))},n.getFirstParameter=function(t){var n=t.substring(1);if(-1!==n.indexOf("&"))return n.substring(0,n.indexOf("&"));return n},n.getHostname=function(t){var n=new URL(t).hostname;"["===n.charAt(0)&&"]"===n.charAt(n.length-1)&&(n=n.substr(1,n.length-2));return n},n.getPort=function(t){return new URL(t).port},n.getHostAndPort=function(t){var n=new URL(t);return n.hostname+":"+n.port},n.computeRate=function(t,n){if(0===n)return 0;return t/n*1e3},n.precisionRound=h,n.formatDuration=function(t){var n="ms";t>1e3&&(t/=1e3,n="s");"s"===n&&t>60&&(t/=60,n="m");"m"===n&&t>60&&(t/=60,n="h");"h"===n&&t>24&&(t/=24,n="d");"d"===n&&t>7&&(t/=7,n="w");return h(t)+n},n.formatRows=function(t){if(1===t)return"1 row";return d(t)+" rows"},n.formatCount=d,n.formatDataSizeBytes=function(t){return p(t,"")},n.formatDataSize=function(t){return p(t,"B")},n.parseDataSize=function(t){var n=/^\s*(\d+(?:\.\d+)?)\s*([a-zA-Z]+)\s*$/.exec(t);if(null===n)return null;var e=parseFloat(n[1]);switch(n[2]){case"B":return e;case"kB":return e*Math.pow(2,10);case"MB":return e*Math.pow(2,20);case"GB":return e*Math.pow(2,30);case"TB":return e*Math.pow(2,40);case"PB":return e*Math.pow(2,50);default:return null}},n.parseDuration=function(t){var n=/^\s*(\d+(?:\.\d+)?)\s*([a-zA-Z]+)\s*$/.exec(t);if(null===n)return null;var e=parseFloat(n[1]);switch(n[2]){case"ns":return e/1e6;case"us":return e/1e3;case"ms":return e;case"s":return 1e3*e;case"m":return 1e3*e*60;case"h":return 1e3*e*60*60;case"d":return 1e3*e*60*60*24;default:return null}},n.formatShortTime=v,n.formatShortDateTime=function(t){var n=t.getFullYear(),e=""+(t.getMonth()+1),r=""+t.getDate();return n+"-"+(e[1]?e:"0"+e[0])+"-"+(r[1]?r:"0"+r[0])+" "+v(t)};var r=o(e(44)),i=o(e(104));function o(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n.default=t,n}n.GLYPHICON_DEFAULT={color:"#1edcff"},n.GLYPHICON_HIGHLIGHT={color:"#999999"};var u={QUEUED:"#1b8f72",RUNNING:"#19874e",PLANNING:"#674f98",FINISHED:"#1a4629",BLOCKED:"#61003b",USER_ERROR:"#9a7d66",CANCELED:"#858959",INSUFFICIENT_RESOURCES:"#7f5b72",EXTERNAL_ERROR:"#ca7640",UNKNOWN_ERROR:"#943524"};function a(t){if("RUNNING"===t.state){var n="RUNNING";if(t.scheduled&&t.queryStats.totalDrivers>0&&t.queryStats.runningDrivers>=0)return t.queryStats.fullyBlocked&&(n="BLOCKED",t.queryStats.blockedReasons&&t.queryStats.blockedReasons.length>0&&(n+=" ("+t.queryStats.blockedReasons.join(", ")+")")),"reserved"===t.memoryPool&&(n+=" (RESERVED)"),n}if("FAILED"===t.state)switch(t.errorType){case"USER_ERROR":return"USER_CANCELED"===t.errorCode.name?"USER CANCELED":"USER ERROR";case"INTERNAL_ERROR":return"INTERNAL ERROR";case"INSUFFICIENT_RESOURCES":return"INSUFFICIENT RESOURCES";case"EXTERNAL":return"EXTERNAL ERROR"}return t.state}function c(t){var n=t.queryStats.progressPercentage;return n&&"RUNNING"===t.state?Math.round(n):100}var s=300,f=.2;function l(t){return t.slice(t.indexOf(".")+1,t.length)}function h(t){return t<10?t.toFixed(2):t<100?t.toFixed(1):Math.round(t).toString()}function d(t){var n="";return t>1e3&&(t/=1e3,n="K"),t>1e3&&(t/=1e3,n="M"),t>1e3&&(t/=1e3,n="B"),t>1e3&&(t/=1e3,n="T"),t>1e3&&(t/=1e3,n="Q"),h(t)+n}function p(t,n){var e=n;return 0===t?"0"+e:(t>=1024&&(t/=1024,e="K"+n),t>=1024&&(t/=1024,e="M"+n),t>=1024&&(t/=1024,e="G"+n),t>=1024&&(t/=1024,e="T"+n),t>=1024&&(t/=1024,e="P"+n),h(t)+e)}function v(t){return(t.getHours()%12||12)+":"+((t.getMinutes()<10?"0":"")+t.getMinutes())+(t.getHours()>=12?"pm":"am")}},function(t,n,e){var r=e(46);t.exports={Graph:r.Graph,json:e(50),alg:e(51),version:r.version}},function(t,n,e){var r=e(3),i=e(23);t.exports=function(t,n,e,r){return function(t,n,e,r){var o,u,a={},c=new i,s=function(t){var n=t.v!==o?t.v:t.w,r=a[n],i=e(t),s=u.distance+i;if(i<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+i);s0&&(o=c.removeMin(),(u=a[o]).distance!==Number.POSITIVE_INFINITY);)r(o).forEach(s);return a}(t,String(n),e||o,r||function(n){return t.outEdges(n)})};var o=r.constant(1)},function(t,n,e){var r=e(3);function i(){this._arr=[],this._keyIndices={}}t.exports=i,i.prototype.size=function(){return this._arr.length},i.prototype.keys=function(){return this._arr.map(function(t){return t.key})},i.prototype.has=function(t){return r.has(this._keyIndices,t)},i.prototype.priority=function(t){var n=this._keyIndices[t];if(void 0!==n)return this._arr[n].priority},i.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},i.prototype.add=function(t,n){var e=this._keyIndices;if(t=String(t),!r.has(e,t)){var i=this._arr,o=i.length;return e[t]=o,i.push({key:t,priority:n}),this._decrease(o),!0}return!1},i.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},i.prototype.decrease=function(t,n){var e=this._keyIndices[t];if(n>this._arr[e].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[e].priority+" New: "+n);this._arr[e].priority=n,this._decrease(e)},i.prototype._heapify=function(t){var n=this._arr,e=2*t,r=e+1,i=t;e>1].priority1&&u.sort(function(t,n){var r=t.x-e.x,i=t.y-e.y,o=Math.sqrt(r*r+i*i),u=n.x-e.x,a=n.y-e.y,c=Math.sqrt(u*u+a*a);return oMath.abs(u)*s?(a<0&&(s=-s),e=0===a?0:s*u/a,r=s):(u<0&&(c=-c),e=c,r=0===u?0:c*a/u);return{x:i+e,y:o+r}}},function(t,n,e){"use strict";var r=c(e(10)),i=c(e(35)),o=e(43),u=e(101),a=e(102);function c(t){return t&&t.__esModule?t:{default:t}}i.default.render(r.default.createElement(a.PageTitle,{title:"Cluster Overview"}),document.getElementById("title")),i.default.render(r.default.createElement(o.ClusterHUD,null),document.getElementById("cluster-hud")),i.default.render(r.default.createElement(u.QueryList,null),document.getElementById("query-list"))},function(t,n,e){"use strict";
/** @license React v16.4.1
* react.production.min.js
*
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var r=e(16),i=e(17),o=e(18),u=e(19),a="function"==typeof Symbol&&Symbol.for,c=a?Symbol.for("react.element"):60103,s=a?Symbol.for("react.portal"):60106,f=a?Symbol.for("react.fragment"):60107,l=a?Symbol.for("react.strict_mode"):60108,h=a?Symbol.for("react.profiler"):60114,d=a?Symbol.for("react.provider"):60109,p=a?Symbol.for("react.context"):60110,v=a?Symbol.for("react.async_mode"):60111,g=a?Symbol.for("react.forward_ref"):60112;a&&Symbol.for("react.timeout");var y="function"==typeof Symbol&&Symbol.iterator;function m(t){for(var n=arguments.length-1,e="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=0;rA.length&&A.push(t)}function I(t,n,e,r){var i=typeof t;"undefined"!==i&&"boolean"!==i||(t=null);var o=!1;if(null===t)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(t.$$typeof){case c:case s:o=!0}}if(o)return e(r,t,""===n?"."+L(t,0):n),1;if(o=0,n=""===n?".":n+":",Array.isArray(t))for(var u=0;uthis.eventPool.length&&this.eventPool.push(t)}function Mt(t){t.eventPool=[],t.getPooled=wt,t.release=xt}u(bt.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():"unknown"!=typeof t.returnValue&&(t.returnValue=!1),this.isDefaultPrevented=a.thatReturnsTrue)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():"unknown"!=typeof t.cancelBubble&&(t.cancelBubble=!0),this.isPropagationStopped=a.thatReturnsTrue)},persist:function(){this.isPersistent=a.thatReturnsTrue},isPersistent:a.thatReturnsFalse,destructor:function(){var t,n=this.constructor.Interface;for(t in n)this[t]=null;for(n=0;n=St),Pt=String.fromCharCode(32),Rt={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},It=!1;function Lt(t,n){switch(t){case"keyup":return-1!==Nt.indexOf(n.keyCode);case"keydown":return 229!==n.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function Ot(t){return"object"==typeof(t=t.detail)&&"data"in t?t.data:null}var Dt=!1;var Ut={eventTypes:Rt,extractEvents:function(t,n,e,r){var i=void 0,o=void 0;if(Tt)t:{switch(t){case"compositionstart":i=Rt.compositionStart;break t;case"compositionend":i=Rt.compositionEnd;break t;case"compositionupdate":i=Rt.compositionUpdate;break t}i=void 0}else Dt?Lt(t,e)&&(i=Rt.compositionEnd):"keydown"===t&&229===e.keyCode&&(i=Rt.compositionStart);return i?(At&&(Dt||i!==Rt.compositionStart?i===Rt.compositionEnd&&Dt&&(o=gt()):(vt._root=r,vt._startText=yt(),Dt=!0)),i=Et.getPooled(i,n,e,r),o?i.data=o:null!==(o=Ot(e))&&(i.data=o),tt(i),o=i):o=null,(t=Ct?function(t,n){switch(t){case"compositionend":return Ot(n);case"keypress":return 32!==n.which?null:(It=!0,Pt);case"textInput":return(t=n.data)===Pt&&It?null:t;default:return null}}(t,e):function(t,n){if(Dt)return"compositionend"===t||!Tt&&Lt(t,n)?(t=gt(),vt._root=null,vt._startText=null,vt._fallbackText=null,Dt=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1n}return!1}(n,e,i,r)&&(e=null),r||null===i?function(t){return!!En.hasOwnProperty(t)||!Mn.hasOwnProperty(t)&&(xn.test(t)?En[t]=!0:(Mn[t]=!0,!1))}(n)&&(null===e?t.removeAttribute(n):t.setAttribute(n,""+e)):i.mustUseProperty?t[i.propertyName]=null===e?3!==i.type&&"":e:(n=i.attributeName,r=i.attributeNamespace,null===e?t.removeAttribute(n):(e=3===(i=i.type)||4===i&&!0===e?"":""+e,r?t.setAttributeNS(r,n,e):t.setAttribute(n,e))))}function An(t,n){var e=n.checked;return u({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=e?e:t._wrapperState.initialChecked})}function Pn(t,n){var e=null==n.defaultValue?"":n.defaultValue,r=null!=n.checked?n.checked:n.defaultChecked;e=Dn(null!=n.value?n.value:e),t._wrapperState={initialChecked:r,initialValue:e,controlled:"checkbox"===n.type||"radio"===n.type?null!=n.checked:null!=n.value}}function Rn(t,n){null!=(n=n.checked)&&Cn(t,"checked",n,!1)}function In(t,n){Rn(t,n);var e=Dn(n.value);null!=e&&("number"===n.type?(0===e&&""===t.value||t.value!=e)&&(t.value=""+e):t.value!==""+e&&(t.value=""+e)),n.hasOwnProperty("value")?On(t,n.type,e):n.hasOwnProperty("defaultValue")&&On(t,n.type,Dn(n.defaultValue)),null==n.checked&&null!=n.defaultChecked&&(t.defaultChecked=!!n.defaultChecked)}function Ln(t,n,e){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){n=""+t._wrapperState.initialValue;var r=t.value;e||n===r||(t.value=n),t.defaultValue=n}""!==(e=t.name)&&(t.name=""),t.defaultChecked=!t.defaultChecked,t.defaultChecked=!t.defaultChecked,""!==e&&(t.name=e)}function On(t,n,e){"number"===n&&t.ownerDocument.activeElement===t||(null==e?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+e&&(t.defaultValue=""+e))}function Dn(t){switch(typeof t){case"boolean":case"number":case"object":case"string":case"undefined":return t;default:return""}}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var n=t.replace(Tn,Sn);Nn[n]=new kn(n,1,!1,t,null)}),"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var n=t.replace(Tn,Sn);Nn[n]=new kn(n,1,!1,t,"http://www.w3.org/1999/xlink")}),["xml:base","xml:lang","xml:space"].forEach(function(t){var n=t.replace(Tn,Sn);Nn[n]=new kn(n,1,!1,t,"http://www.w3.org/XML/1998/namespace")}),Nn.tabIndex=new kn("tabIndex",1,!1,"tabindex",null);var Un={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function zn(t,n,e){return(t=bt.getPooled(Un.change,t,n,e)).type="change",Ht(e),tt(t),t}var Fn=null,qn=null;function jn(t){U(t,!1)}function Bn(t){if(on(Y(t)))return t}function Hn(t,n){if("change"===t)return n}var Yn=!1;function $n(){Fn&&(Fn.detachEvent("onpropertychange",Vn),qn=Fn=null)}function Vn(t){"value"===t.propertyName&&Bn(qn)&&Zt(jn,t=zn(qn,t,tn(t)))}function Xn(t,n,e){"focus"===t?($n(),qn=e,(Fn=n).attachEvent("onpropertychange",Vn)):"blur"===t&&$n()}function Wn(t){if("selectionchange"===t||"keyup"===t||"keydown"===t)return Bn(qn)}function Gn(t,n){if("click"===t)return Bn(n)}function Qn(t,n){if("input"===t||"change"===t)return Bn(n)}o.canUseDOM&&(Yn=nn("input")&&(!document.documentMode||9Te.length&&Te.push(t)}}}var Oe={get _enabled(){return Ce},setEnabled:Ae,isEnabled:function(){return Ce},trapBubbledEvent:Pe,trapCapturedEvent:Re,dispatchEvent:Le},De={},Ue=0,ze="_reactListenersID"+(""+Math.random()).slice(2);function Fe(t){return Object.prototype.hasOwnProperty.call(t,ze)||(t[ze]=Ue++,De[t[ze]]={}),De[t[ze]]}function qe(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function je(t,n){var e,r=qe(t);for(t=0;r;){if(3===r.nodeType){if(e=t+r.textContent.length,t<=n&&e>=n)return{node:r,offset:n-t};t=e}t:{for(;r;){if(r.nextSibling){r=r.nextSibling;break t}r=r.parentNode}r=void 0}r=qe(r)}}function Be(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n&&("input"===n&&("text"===t.type||"search"===t.type||"tel"===t.type||"url"===t.type||"password"===t.type)||"textarea"===n||"true"===t.contentEditable)}var He=o.canUseDOM&&"documentMode"in document&&11>=document.documentMode,Ye={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu focus keydown keyup mousedown mouseup selectionchange".split(" ")}},$e=null,Ve=null,Xe=null,We=!1;function Ge(t,n){if(We||null==$e||$e!==c())return null;var e=$e;return"selectionStart"in e&&Be(e)?e={start:e.selectionStart,end:e.selectionEnd}:window.getSelection?e={anchorNode:(e=window.getSelection()).anchorNode,anchorOffset:e.anchorOffset,focusNode:e.focusNode,focusOffset:e.focusOffset}:e=void 0,Xe&&s(Xe,e)?null:(Xe=e,(t=bt.getPooled(Ye.select,Ve,t,n)).type="select",t.target=$e,tt(t),t)}var Qe={eventTypes:Ye,extractEvents:function(t,n,e,r){var i,o=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!(i=!o)){t:{o=Fe(o),i=w.onSelect;for(var u=0;un)){t=-1;for(var e=[],r=ur;null!==r;){var i=r.timeoutTime;-1!==i&&i<=n?e.push(r):-1!==i&&(-1===t||in&&(n=8),dr=n
=n.length||h("93"),n=n[0]),e=""+n),null==e&&(e="")),t._wrapperState={initialValue:""+e}}function Er(t,n){var e=n.value;null!=e&&((e=""+e)!==t.value&&(t.value=e),null==n.defaultValue&&(t.defaultValue=e)),null!=n.defaultValue&&(t.defaultValue=n.defaultValue)}function kr(t){var n=t.textContent;n===t._wrapperState.initialValue&&(t.value=n)}var Nr={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function Tr(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Sr(t,n){return null==t||"http://www.w3.org/1999/xhtml"===t?Tr(n):"http://www.w3.org/2000/svg"===t&&"foreignObject"===n?"http://www.w3.org/1999/xhtml":t}var Cr=void 0,Ar=function(t){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(n,e,r,i){MSApp.execUnsafeLocalFunction(function(){return t(n,e)})}:t}(function(t,n){if(t.namespaceURI!==Nr.svg||"innerHTML"in t)t.innerHTML=n;else{for((Cr=Cr||document.createElement("div")).innerHTML="",n=Cr.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;n.firstChild;)t.appendChild(n.firstChild)}});function Pr(t,n){if(n){var e=t.firstChild;if(e&&e===t.lastChild&&3===e.nodeType)return void(e.nodeValue=n)}t.textContent=n}var Rr={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ir=["Webkit","ms","Moz","O"];function Lr(t,n){for(var e in t=t.style,n)if(n.hasOwnProperty(e)){var r=0===e.indexOf("--"),i=e,o=n[e];i=null==o||"boolean"==typeof o||""===o?"":r||"number"!=typeof o||0===o||Rr.hasOwnProperty(i)&&Rr[i]?(""+o).trim():o+"px","float"===e&&(e="cssFloat"),r?t.setProperty(e,i):t[e]=i}}Object.keys(Rr).forEach(function(t){Ir.forEach(function(n){n=n+t.charAt(0).toUpperCase()+t.substring(1),Rr[n]=Rr[t]})});var Or=u({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Dr(t,n,e){n&&(Or[t]&&(null!=n.children||null!=n.dangerouslySetInnerHTML)&&h("137",t,e()),null!=n.dangerouslySetInnerHTML&&(null!=n.children&&h("60"),"object"==typeof n.dangerouslySetInnerHTML&&"__html"in n.dangerouslySetInnerHTML||h("61")),null!=n.style&&"object"!=typeof n.style&&h("62",e()))}function Ur(t,n){if(-1===t.indexOf("-"))return"string"==typeof n.is;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var zr=a.thatReturns("");function Fr(t,n){var e=Fe(t=9===t.nodeType||11===t.nodeType?t:t.ownerDocument);n=w[n];for(var r=0;r<\/script>",t=t.removeChild(t.firstChild)):t="string"==typeof n.is?e.createElement(t,{is:n.is}):e.createElement(t):t=e.createElementNS(r,t),t}function jr(t,n){return(9===n.nodeType?n:n.ownerDocument).createTextNode(t)}function Br(t,n,e,r){var i=Ur(n,e);switch(n){case"iframe":case"object":Pe("load",t);var o=e;break;case"video":case"audio":for(o=0;oii||(t.current=ri[ii],ri[ii]=null,ii--)}function ai(t,n){ri[++ii]=t.current,t.current=n}var ci=oi(l),si=oi(!1),fi=l;function li(t){return di(t)?fi:ci.current}function hi(t,n){var e=t.type.contextTypes;if(!e)return l;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in e)o[i]=n[i];return r&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=n,t.__reactInternalMemoizedMaskedChildContext=o),o}function di(t){return 2===t.tag&&null!=t.type.childContextTypes}function pi(t){di(t)&&(ui(si),ui(ci))}function vi(t){ui(si),ui(ci)}function gi(t,n,e){ci.current!==l&&h("168"),ai(ci,n),ai(si,e)}function yi(t,n){var e=t.stateNode,r=t.type.childContextTypes;if("function"!=typeof e.getChildContext)return n;for(var i in e=e.getChildContext())i in r||h("108",bn(t)||"Unknown",i);return u({},n,e)}function mi(t){if(!di(t))return!1;var n=t.stateNode;return n=n&&n.__reactInternalMemoizedMergedChildContext||l,fi=ci.current,ai(ci,n),ai(si,si.current),!0}function _i(t,n){var e=t.stateNode;if(e||h("169"),n){var r=yi(t,fi);e.__reactInternalMemoizedMergedChildContext=r,ui(si),ui(ci),ai(ci,r)}else ui(si);ai(si,n)}function bi(t,n,e,r){this.tag=t,this.key=e,this.sibling=this.child=this.return=this.stateNode=this.type=null,this.index=0,this.ref=null,this.pendingProps=n,this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.expirationTime=0,this.alternate=null}function wi(t,n,e){var r=t.alternate;return null===r?((r=new bi(t.tag,n,t.key,t.mode)).type=t.type,r.stateNode=t.stateNode,r.alternate=t,t.alternate=r):(r.pendingProps=n,r.effectTag=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.expirationTime=e,r.child=t.child,r.memoizedProps=t.memoizedProps,r.memoizedState=t.memoizedState,r.updateQueue=t.updateQueue,r.sibling=t.sibling,r.index=t.index,r.ref=t.ref,r}function xi(t,n,e){var r=t.type,i=t.key;if(t=t.props,"function"==typeof r)var o=r.prototype&&r.prototype.isReactComponent?2:0;else if("string"==typeof r)o=5;else switch(r){case fn:return Mi(t.children,n,e,i);case vn:o=11,n|=3;break;case ln:o=11,n|=2;break;case hn:return(r=new bi(15,t,i,4|n)).type=hn,r.expirationTime=e,r;case yn:o=16,n|=2;break;default:t:{switch("object"==typeof r&&null!==r?r.$$typeof:null){case dn:o=13;break t;case pn:o=12;break t;case gn:o=14;break t;default:h("130",null==r?r:typeof r,"")}o=void 0}}return(n=new bi(o,t,i,n)).type=r,n.expirationTime=e,n}function Mi(t,n,e,r){return(t=new bi(10,t,r,n)).expirationTime=e,t}function Ei(t,n,e){return(t=new bi(6,t,null,n)).expirationTime=e,t}function ki(t,n,e){return(n=new bi(4,null!==t.children?t.children:[],t.key,n)).expirationTime=e,n.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},n}function Ni(t,n,e){return t={current:n=new bi(3,null,null,n?3:0),containerInfo:t,pendingChildren:null,earliestPendingTime:0,latestPendingTime:0,earliestSuspendedTime:0,latestSuspendedTime:0,latestPingedTime:0,pendingCommitExpirationTime:0,finishedWork:null,context:null,pendingContext:null,hydrate:e,remainingExpirationTime:0,firstBatch:null,nextScheduledRoot:null},n.stateNode=t}var Ti=null,Si=null;function Ci(t){return function(n){try{return t(n)}catch(t){}}}function Ai(t){"function"==typeof Ti&&Ti(t)}function Pi(t){"function"==typeof Si&&Si(t)}var Ri=!1;function Ii(t){return{expirationTime:0,baseState:t,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Li(t){return{expirationTime:t.expirationTime,baseState:t.baseState,firstUpdate:t.firstUpdate,lastUpdate:t.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Oi(t){return{expirationTime:t,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function Di(t,n,e){null===t.lastUpdate?t.firstUpdate=t.lastUpdate=n:(t.lastUpdate.next=n,t.lastUpdate=n),(0===t.expirationTime||t.expirationTime>e)&&(t.expirationTime=e)}function Ui(t,n,e){var r=t.alternate;if(null===r){var i=t.updateQueue,o=null;null===i&&(i=t.updateQueue=Ii(t.memoizedState))}else i=t.updateQueue,o=r.updateQueue,null===i?null===o?(i=t.updateQueue=Ii(t.memoizedState),o=r.updateQueue=Ii(r.memoizedState)):i=t.updateQueue=Li(o):null===o&&(o=r.updateQueue=Li(i));null===o||i===o?Di(i,n,e):null===i.lastUpdate||null===o.lastUpdate?(Di(i,n,e),Di(o,n,e)):(Di(i,n,e),o.lastUpdate=n)}function zi(t,n,e){var r=t.updateQueue;null===(r=null===r?t.updateQueue=Ii(t.memoizedState):Fi(t,r)).lastCapturedUpdate?r.firstCapturedUpdate=r.lastCapturedUpdate=n:(r.lastCapturedUpdate.next=n,r.lastCapturedUpdate=n),(0===r.expirationTime||r.expirationTime>e)&&(r.expirationTime=e)}function Fi(t,n){var e=t.alternate;return null!==e&&n===e.updateQueue&&(n=t.updateQueue=Li(n)),n}function qi(t,n,e,r,i,o){switch(e.tag){case 1:return"function"==typeof(t=e.payload)?t.call(o,r,i):t;case 3:t.effectTag=-1025&t.effectTag|64;case 0:if(null===(i="function"==typeof(t=e.payload)?t.call(o,r,i):t)||void 0===i)break;return u({},r,i);case 2:Ri=!0}return r}function ji(t,n,e,r,i){if(Ri=!1,!(0===n.expirationTime||n.expirationTime>i)){for(var o=(n=Fi(t,n)).baseState,u=null,a=0,c=n.firstUpdate,s=o;null!==c;){var f=c.expirationTime;f>i?(null===u&&(u=c,o=s),(0===a||a>f)&&(a=f)):(s=qi(t,0,c,s,e,r),null!==c.callback&&(t.effectTag|=32,c.nextEffect=null,null===n.lastEffect?n.firstEffect=n.lastEffect=c:(n.lastEffect.nextEffect=c,n.lastEffect=c))),c=c.next}for(f=null,c=n.firstCapturedUpdate;null!==c;){var l=c.expirationTime;l>i?(null===f&&(f=c,null===u&&(o=s)),(0===a||a>l)&&(a=l)):(s=qi(t,0,c,s,e,r),null!==c.callback&&(t.effectTag|=32,c.nextEffect=null,null===n.lastCapturedEffect?n.firstCapturedEffect=n.lastCapturedEffect=c:(n.lastCapturedEffect.nextEffect=c,n.lastCapturedEffect=c))),c=c.next}null===u&&(n.lastUpdate=null),null===f?n.lastCapturedUpdate=null:t.effectTag|=32,null===u&&null===f&&(o=s),n.baseState=o,n.firstUpdate=u,n.firstCapturedUpdate=f,n.expirationTime=a,t.memoizedState=s}}function Bi(t,n){"function"!=typeof t&&h("191",t),t.call(n)}function Hi(t,n,e){for(null!==n.firstCapturedUpdate&&(null!==n.lastUpdate&&(n.lastUpdate.next=n.firstCapturedUpdate,n.lastUpdate=n.lastCapturedUpdate),n.firstCapturedUpdate=n.lastCapturedUpdate=null),t=n.firstEffect,n.firstEffect=n.lastEffect=null;null!==t;){var r=t.callback;null!==r&&(t.callback=null,Bi(r,e)),t=t.nextEffect}for(t=n.firstCapturedEffect,n.firstCapturedEffect=n.lastCapturedEffect=null;null!==t;)null!==(n=t.callback)&&(t.callback=null,Bi(n,e)),t=t.nextEffect}function Yi(t,n){return{value:t,source:n,stack:wn(n)}}var $i=oi(null),Vi=oi(null),Xi=oi(0);function Wi(t){var n=t.type._context;ai(Xi,n._changedBits),ai(Vi,n._currentValue),ai($i,t),n._currentValue=t.pendingProps.value,n._changedBits=t.stateNode}function Gi(t){var n=Xi.current,e=Vi.current;ui($i),ui(Vi),ui(Xi),(t=t.type._context)._currentValue=e,t._changedBits=n}var Qi={},Zi=oi(Qi),Ki=oi(Qi),Ji=oi(Qi);function to(t){return t===Qi&&h("174"),t}function no(t,n){ai(Ji,n),ai(Ki,t),ai(Zi,Qi);var e=n.nodeType;switch(e){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:Sr(null,"");break;default:n=Sr(n=(e=8===e?n.parentNode:n).namespaceURI||null,e=e.tagName)}ui(Zi),ai(Zi,n)}function eo(t){ui(Zi),ui(Ki),ui(Ji)}function ro(t){Ki.current===t&&(ui(Zi),ui(Ki))}function io(t,n,e){var r=t.memoizedState;r=null===(n=n(e,r))||void 0===n?r:u({},r,n),t.memoizedState=r,null!==(t=t.updateQueue)&&0===t.expirationTime&&(t.baseState=r)}var oo={isMounted:function(t){return!!(t=t._reactInternalFiber)&&2===ue(t)},enqueueSetState:function(t,n,e){t=t._reactInternalFiber;var r=mu(),i=Oi(r=gu(r,t));i.payload=n,void 0!==e&&null!==e&&(i.callback=e),Ui(t,i,r),yu(t,r)},enqueueReplaceState:function(t,n,e){t=t._reactInternalFiber;var r=mu(),i=Oi(r=gu(r,t));i.tag=1,i.payload=n,void 0!==e&&null!==e&&(i.callback=e),Ui(t,i,r),yu(t,r)},enqueueForceUpdate:function(t,n){t=t._reactInternalFiber;var e=mu(),r=Oi(e=gu(e,t));r.tag=2,void 0!==n&&null!==n&&(r.callback=n),Ui(t,r,e),yu(t,e)}};function uo(t,n,e,r,i,o){var u=t.stateNode;return t=t.type,"function"==typeof u.shouldComponentUpdate?u.shouldComponentUpdate(e,i,o):!t.prototype||!t.prototype.isPureReactComponent||(!s(n,e)||!s(r,i))}function ao(t,n,e,r){t=n.state,"function"==typeof n.componentWillReceiveProps&&n.componentWillReceiveProps(e,r),"function"==typeof n.UNSAFE_componentWillReceiveProps&&n.UNSAFE_componentWillReceiveProps(e,r),n.state!==t&&oo.enqueueReplaceState(n,n.state,null)}function co(t,n){var e=t.type,r=t.stateNode,i=t.pendingProps,o=li(t);r.props=i,r.state=t.memoizedState,r.refs=l,r.context=hi(t,o),null!==(o=t.updateQueue)&&(ji(t,o,i,r,n),r.state=t.memoizedState),"function"==typeof(o=t.type.getDerivedStateFromProps)&&(io(t,o,i),r.state=t.memoizedState),"function"==typeof e.getDerivedStateFromProps||"function"==typeof r.getSnapshotBeforeUpdate||"function"!=typeof r.UNSAFE_componentWillMount&&"function"!=typeof r.componentWillMount||(e=r.state,"function"==typeof r.componentWillMount&&r.componentWillMount(),"function"==typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount(),e!==r.state&&oo.enqueueReplaceState(r,r.state,null),null!==(o=t.updateQueue)&&(ji(t,o,i,r,n),r.state=t.memoizedState)),"function"==typeof r.componentDidMount&&(t.effectTag|=4)}var so=Array.isArray;function fo(t,n,e){if(null!==(t=e.ref)&&"function"!=typeof t&&"object"!=typeof t){if(e._owner){var r=void 0;(e=e._owner)&&(2!==e.tag&&h("110"),r=e.stateNode),r||h("147",t);var i=""+t;return null!==n&&null!==n.ref&&"function"==typeof n.ref&&n.ref._stringRef===i?n.ref:((n=function(t){var n=r.refs===l?r.refs={}:r.refs;null===t?delete n[i]:n[i]=t})._stringRef=i,n)}"string"!=typeof t&&h("148"),e._owner||h("254",t)}return t}function lo(t,n){"textarea"!==t.type&&h("31","[object Object]"===Object.prototype.toString.call(n)?"object with keys {"+Object.keys(n).join(", ")+"}":n,"")}function ho(t){function n(n,e){if(t){var r=n.lastEffect;null!==r?(r.nextEffect=e,n.lastEffect=e):n.firstEffect=n.lastEffect=e,e.nextEffect=null,e.effectTag=8}}function e(e,r){if(!t)return null;for(;null!==r;)n(e,r),r=r.sibling;return null}function r(t,n){for(t=new Map;null!==n;)null!==n.key?t.set(n.key,n):t.set(n.index,n),n=n.sibling;return t}function i(t,n,e){return(t=wi(t,n,e)).index=0,t.sibling=null,t}function o(n,e,r){return n.index=r,t?null!==(r=n.alternate)?(r=r.index)v?(g=h,h=null):g=h.sibling;var y=d(i,h,a[v],c);if(null===y){null===h&&(h=g);break}t&&h&&null===y.alternate&&n(i,h),u=o(y,u,v),null===f?s=y:f.sibling=y,f=y,h=g}if(v===a.length)return e(i,h),s;if(null===h){for(;vg?(y=v,v=null):y=v.sibling;var _=d(i,v,m.value,c);if(null===_){v||(v=y);break}t&&v&&null===_.alternate&&n(i,v),u=o(_,u,g),null===f?s=_:f.sibling=_,f=_,v=y}if(m.done)return e(i,v),s;if(null===v){for(;!m.done;g++,m=a.next())null!==(m=l(i,m.value,c))&&(u=o(m,u,g),null===f?s=m:f.sibling=m,f=m);return s}for(v=r(i,v);!m.done;g++,m=a.next())null!==(m=p(v,i,g,m.value,c))&&(t&&null!==m.alternate&&v.delete(null===m.key?g:m.key),u=o(m,u,g),null===f?s=m:f.sibling=m,f=m);return t&&v.forEach(function(t){return n(i,t)}),s}return function(t,r,o,a){var c="object"==typeof o&&null!==o&&o.type===fn&&null===o.key;c&&(o=o.props.children);var s="object"==typeof o&&null!==o;if(s)switch(o.$$typeof){case cn:t:{for(s=o.key,c=r;null!==c;){if(c.key===s){if(10===c.tag?o.type===fn:c.type===o.type){e(t,c.sibling),(r=i(c,o.type===fn?o.props.children:o.props,a)).ref=fo(t,c,o),r.return=t,t=r;break t}e(t,c);break}n(t,c),c=c.sibling}o.type===fn?((r=Mi(o.props.children,t.mode,a,o.key)).return=t,t=r):((a=xi(o,t.mode,a)).ref=fo(t,r,o),a.return=t,t=a)}return u(t);case sn:t:{for(c=o.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){e(t,r.sibling),(r=i(r,o.children||[],a)).return=t,t=r;break t}e(t,r);break}n(t,r),r=r.sibling}(r=ki(o,t.mode,a)).return=t,t=r}return u(t)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&6===r.tag?(e(t,r.sibling),(r=i(r,o,a)).return=t,t=r):(e(t,r),(r=Ei(o,t.mode,a)).return=t,t=r),u(t);if(so(o))return v(t,r,o,a);if(_n(o))return g(t,r,o,a);if(s&&lo(t,o),void 0===o&&!c)switch(t.tag){case 2:case 1:h("152",(a=t.type).displayName||a.name||"Component")}return e(t,r)}}var po=ho(!0),vo=ho(!1),go=null,yo=null,mo=!1;function _o(t,n){var e=new bi(5,null,null,0);e.type="DELETED",e.stateNode=n,e.return=t,e.effectTag=8,null!==t.lastEffect?(t.lastEffect.nextEffect=e,t.lastEffect=e):t.firstEffect=t.lastEffect=e}function bo(t,n){switch(t.tag){case 5:var e=t.type;return null!==(n=1!==n.nodeType||e.toLowerCase()!==n.nodeName.toLowerCase()?null:n)&&(t.stateNode=n,!0);case 6:return null!==(n=""===t.pendingProps||3!==n.nodeType?null:n)&&(t.stateNode=n,!0);default:return!1}}function wo(t){if(mo){var n=yo;if(n){var e=n;if(!bo(t,n)){if(!(n=ni(e))||!bo(t,n))return t.effectTag|=2,mo=!1,void(go=t);_o(go,e)}go=t,yo=ei(n)}else t.effectTag|=2,mo=!1,go=t}}function xo(t){for(t=t.return;null!==t&&5!==t.tag&&3!==t.tag;)t=t.return;go=t}function Mo(t){if(t!==go)return!1;if(!mo)return xo(t),mo=!0,!1;var n=t.type;if(5!==t.tag||"head"!==n&&"body"!==n&&!Zr(n,t.memoizedProps))for(n=yo;n;)_o(t,n),n=ni(n);return xo(t),yo=go?ni(t.stateNode):null,!0}function Eo(){yo=go=null,mo=!1}function ko(t,n,e){No(t,n,e,n.expirationTime)}function No(t,n,e,r){n.child=null===t?vo(n,null,e,r):po(n,t.child,e,r)}function To(t,n){var e=n.ref;(null===t&&null!==e||null!==t&&t.ref!==e)&&(n.effectTag|=128)}function So(t,n,e,r,i){To(t,n);var o=0!=(64&n.effectTag);if(!e&&!o)return r&&_i(n,!1),Po(t,n);e=n.stateNode,un.current=n;var u=o?null:e.render();return n.effectTag|=1,o&&(No(t,n,null,i),n.child=null),No(t,n,u,i),n.memoizedState=e.state,n.memoizedProps=e.props,r&&_i(n,!0),n.child}function Co(t){var n=t.stateNode;n.pendingContext?gi(0,n.pendingContext,n.pendingContext!==n.context):n.context&&gi(0,n.context,!1),no(t,n.containerInfo)}function Ao(t,n,e,r){var i=t.child;for(null!==i&&(i.return=t);null!==i;){switch(i.tag){case 12:var o=0|i.stateNode;if(i.type===n&&0!=(o&e)){for(o=i;null!==o;){var u=o.alternate;if(0===o.expirationTime||o.expirationTime>r)o.expirationTime=r,null!==u&&(0===u.expirationTime||u.expirationTime>r)&&(u.expirationTime=r);else{if(null===u||!(0===u.expirationTime||u.expirationTime>r))break;u.expirationTime=r}o=o.return}o=null}else o=i.child;break;case 13:o=i.type===t.type?null:i.child;break;default:o=i.child}if(null!==o)o.return=i;else for(o=i;null!==o;){if(o===t){o=null;break}if(null!==(i=o.sibling)){i.return=o.return,o=i;break}o=o.return}i=o}}function Po(t,n){if(null!==t&&n.child!==t.child&&h("153"),null!==n.child){var e=wi(t=n.child,t.pendingProps,t.expirationTime);for(n.child=e,e.return=n;null!==t.sibling;)t=t.sibling,(e=e.sibling=wi(t,t.pendingProps,t.expirationTime)).return=n;e.sibling=null}return n.child}function Ro(t,n,e){if(0===n.expirationTime||n.expirationTime>e){switch(n.tag){case 3:Co(n);break;case 2:mi(n);break;case 4:no(n,n.stateNode.containerInfo);break;case 13:Wi(n)}return null}switch(n.tag){case 0:null!==t&&h("155");var r=n.type,i=n.pendingProps,o=li(n);return r=r(i,o=hi(n,o)),n.effectTag|=1,"object"==typeof r&&null!==r&&"function"==typeof r.render&&void 0===r.$$typeof?(o=n.type,n.tag=2,n.memoizedState=null!==r.state&&void 0!==r.state?r.state:null,"function"==typeof(o=o.getDerivedStateFromProps)&&io(n,o,i),i=mi(n),r.updater=oo,n.stateNode=r,r._reactInternalFiber=n,co(n,e),t=So(t,n,!0,i,e)):(n.tag=1,ko(t,n,r),n.memoizedProps=i,t=n.child),t;case 1:return i=n.type,e=n.pendingProps,si.current||n.memoizedProps!==e?(i=i(e,r=hi(n,r=li(n))),n.effectTag|=1,ko(t,n,i),n.memoizedProps=e,t=n.child):t=Po(t,n),t;case 2:if(i=mi(n),null===t)if(null===n.stateNode){var u=n.pendingProps,a=n.type;r=li(n);var c=2===n.tag&&null!=n.type.contextTypes;u=new a(u,o=c?hi(n,r):l),n.memoizedState=null!==u.state&&void 0!==u.state?u.state:null,u.updater=oo,n.stateNode=u,u._reactInternalFiber=n,c&&((c=n.stateNode).__reactInternalMemoizedUnmaskedChildContext=r,c.__reactInternalMemoizedMaskedChildContext=o),co(n,e),r=!0}else{a=n.type,r=n.stateNode,c=n.memoizedProps,o=n.pendingProps,r.props=c;var s=r.context;u=hi(n,u=li(n));var f=a.getDerivedStateFromProps;(a="function"==typeof f||"function"==typeof r.getSnapshotBeforeUpdate)||"function"!=typeof r.UNSAFE_componentWillReceiveProps&&"function"!=typeof r.componentWillReceiveProps||(c!==o||s!==u)&&ao(n,r,o,u),Ri=!1;var d=n.memoizedState;s=r.state=d;var p=n.updateQueue;null!==p&&(ji(n,p,o,r,e),s=n.memoizedState),c!==o||d!==s||si.current||Ri?("function"==typeof f&&(io(n,f,o),s=n.memoizedState),(c=Ri||uo(n,c,o,d,s,u))?(a||"function"!=typeof r.UNSAFE_componentWillMount&&"function"!=typeof r.componentWillMount||("function"==typeof r.componentWillMount&&r.componentWillMount(),"function"==typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount()),"function"==typeof r.componentDidMount&&(n.effectTag|=4)):("function"==typeof r.componentDidMount&&(n.effectTag|=4),n.memoizedProps=o,n.memoizedState=s),r.props=o,r.state=s,r.context=u,r=c):("function"==typeof r.componentDidMount&&(n.effectTag|=4),r=!1)}else a=n.type,r=n.stateNode,o=n.memoizedProps,c=n.pendingProps,r.props=o,s=r.context,u=hi(n,u=li(n)),(a="function"==typeof(f=a.getDerivedStateFromProps)||"function"==typeof r.getSnapshotBeforeUpdate)||"function"!=typeof r.UNSAFE_componentWillReceiveProps&&"function"!=typeof r.componentWillReceiveProps||(o!==c||s!==u)&&ao(n,r,c,u),Ri=!1,s=n.memoizedState,d=r.state=s,null!==(p=n.updateQueue)&&(ji(n,p,c,r,e),d=n.memoizedState),o!==c||s!==d||si.current||Ri?("function"==typeof f&&(io(n,f,c),d=n.memoizedState),(f=Ri||uo(n,o,c,s,d,u))?(a||"function"!=typeof r.UNSAFE_componentWillUpdate&&"function"!=typeof r.componentWillUpdate||("function"==typeof r.componentWillUpdate&&r.componentWillUpdate(c,d,u),"function"==typeof r.UNSAFE_componentWillUpdate&&r.UNSAFE_componentWillUpdate(c,d,u)),"function"==typeof r.componentDidUpdate&&(n.effectTag|=4),"function"==typeof r.getSnapshotBeforeUpdate&&(n.effectTag|=256)):("function"!=typeof r.componentDidUpdate||o===t.memoizedProps&&s===t.memoizedState||(n.effectTag|=4),"function"!=typeof r.getSnapshotBeforeUpdate||o===t.memoizedProps&&s===t.memoizedState||(n.effectTag|=256),n.memoizedProps=c,n.memoizedState=d),r.props=c,r.state=d,r.context=u,r=f):("function"!=typeof r.componentDidUpdate||o===t.memoizedProps&&s===t.memoizedState||(n.effectTag|=4),"function"!=typeof r.getSnapshotBeforeUpdate||o===t.memoizedProps&&s===t.memoizedState||(n.effectTag|=256),r=!1);return So(t,n,r,i,e);case 3:return Co(n),null!==(i=n.updateQueue)?(r=null!==(r=n.memoizedState)?r.element:null,ji(n,i,n.pendingProps,null,e),(i=n.memoizedState.element)===r?(Eo(),t=Po(t,n)):(r=n.stateNode,(r=(null===t||null===t.child)&&r.hydrate)&&(yo=ei(n.stateNode.containerInfo),go=n,r=mo=!0),r?(n.effectTag|=2,n.child=vo(n,null,i,e)):(Eo(),ko(t,n,i)),t=n.child)):(Eo(),t=Po(t,n)),t;case 5:return to(Ji.current),(i=to(Zi.current))!==(r=Sr(i,n.type))&&(ai(Ki,n),ai(Zi,r)),null===t&&wo(n),i=n.type,c=n.memoizedProps,r=n.pendingProps,o=null!==t?t.memoizedProps:null,si.current||c!==r||((c=1&n.mode&&!!r.hidden)&&(n.expirationTime=1073741823),c&&1073741823===e)?(c=r.children,Zr(i,r)?c=null:o&&Zr(i,o)&&(n.effectTag|=16),To(t,n),1073741823!==e&&1&n.mode&&r.hidden?(n.expirationTime=1073741823,n.memoizedProps=r,t=null):(ko(t,n,c),n.memoizedProps=r,t=n.child)):t=Po(t,n),t;case 6:return null===t&&wo(n),n.memoizedProps=n.pendingProps,null;case 16:return null;case 4:return no(n,n.stateNode.containerInfo),i=n.pendingProps,si.current||n.memoizedProps!==i?(null===t?n.child=po(n,null,i,e):ko(t,n,i),n.memoizedProps=i,t=n.child):t=Po(t,n),t;case 14:return i=n.type.render,e=n.pendingProps,r=n.ref,si.current||n.memoizedProps!==e||r!==(null!==t?t.ref:null)?(ko(t,n,i=i(e,r)),n.memoizedProps=e,t=n.child):t=Po(t,n),t;case 10:return e=n.pendingProps,si.current||n.memoizedProps!==e?(ko(t,n,e),n.memoizedProps=e,t=n.child):t=Po(t,n),t;case 11:return e=n.pendingProps.children,si.current||null!==e&&n.memoizedProps!==e?(ko(t,n,e),n.memoizedProps=e,t=n.child):t=Po(t,n),t;case 15:return e=n.pendingProps,n.memoizedProps===e?t=Po(t,n):(ko(t,n,e.children),n.memoizedProps=e,t=n.child),t;case 13:return function(t,n,e){var r=n.type._context,i=n.pendingProps,o=n.memoizedProps,u=!0;if(si.current)u=!1;else if(o===i)return n.stateNode=0,Wi(n),Po(t,n);var a=i.value;if(n.memoizedProps=i,null===o)a=1073741823;else if(o.value===i.value){if(o.children===i.children&&u)return n.stateNode=0,Wi(n),Po(t,n);a=0}else{var c=o.value;if(c===a&&(0!==c||1/c==1/a)||c!=c&&a!=a){if(o.children===i.children&&u)return n.stateNode=0,Wi(n),Po(t,n);a=0}else if(a="function"==typeof r._calculateChangedBits?r._calculateChangedBits(c,a):1073741823,0==(a|=0)){if(o.children===i.children&&u)return n.stateNode=0,Wi(n),Po(t,n)}else Ao(n,r,a,e)}return n.stateNode=a,Wi(n),ko(t,n,i.children),n.child}(t,n,e);case 12:t:if(r=n.type,o=n.pendingProps,c=n.memoizedProps,i=r._currentValue,u=r._changedBits,si.current||0!==u||c!==o){if(n.memoizedProps=o,void 0!==(a=o.unstable_observedBits)&&null!==a||(a=1073741823),n.stateNode=a,0!=(u&a))Ao(n,r,u,e);else if(c===o){t=Po(t,n);break t}e=(e=o.children)(i),n.effectTag|=1,ko(t,n,e),t=n.child}else t=Po(t,n);return t;default:h("156")}}function Io(t){t.effectTag|=4}var Lo=void 0,Oo=void 0,Do=void 0;function Uo(t,n){var e=n.pendingProps;switch(n.tag){case 1:return null;case 2:return pi(n),null;case 3:eo(),vi();var r=n.stateNode;return r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==t&&null!==t.child||(Mo(n),n.effectTag&=-3),Lo(n),null;case 5:ro(n),r=to(Ji.current);var i=n.type;if(null!==t&&null!=n.stateNode){var o=t.memoizedProps,u=n.stateNode,a=to(Zi.current);u=Hr(u,i,o,e,r),Oo(t,n,u,i,o,e,r,a),t.ref!==n.ref&&(n.effectTag|=128)}else{if(!e)return null===n.stateNode&&h("166"),null;if(t=to(Zi.current),Mo(n))e=n.stateNode,i=n.type,o=n.memoizedProps,e[j]=n,e[B]=o,r=$r(e,i,o,t,r),n.updateQueue=r,null!==r&&Io(n);else{(t=qr(i,e,r,t))[j]=n,t[B]=e;t:for(o=n.child;null!==o;){if(5===o.tag||6===o.tag)t.appendChild(o.stateNode);else if(4!==o.tag&&null!==o.child){o.child.return=o,o=o.child;continue}if(o===n)break;for(;null===o.sibling;){if(null===o.return||o.return===n)break t;o=o.return}o.sibling.return=o.return,o=o.sibling}Br(t,i,e,r),Qr(i,e)&&Io(n),n.stateNode=t}null!==n.ref&&(n.effectTag|=128)}return null;case 6:if(t&&null!=n.stateNode)Do(t,n,t.memoizedProps,e);else{if("string"!=typeof e)return null===n.stateNode&&h("166"),null;r=to(Ji.current),to(Zi.current),Mo(n)?(r=n.stateNode,e=n.memoizedProps,r[j]=n,Vr(r,e)&&Io(n)):((r=jr(e,r))[j]=n,n.stateNode=r)}return null;case 14:case 16:case 10:case 11:case 15:return null;case 4:return eo(),Lo(n),null;case 13:return Gi(n),null;case 12:return null;case 0:h("167");default:h("156")}}function zo(t,n){var e=n.source;null===n.stack&&null!==e&&wn(e),null!==e&&bn(e),n=n.value,null!==t&&2===t.tag&&bn(t);try{n&&n.suppressReactErrorLogging||console.error(n)}catch(t){t&&t.suppressReactErrorLogging||console.error(t)}}function Fo(t){var n=t.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){pu(t,n)}else n.current=null}function qo(t){switch(Pi(t),t.tag){case 2:Fo(t);var n=t.stateNode;if("function"==typeof n.componentWillUnmount)try{n.props=t.memoizedProps,n.state=t.memoizedState,n.componentWillUnmount()}catch(n){pu(t,n)}break;case 5:Fo(t);break;case 4:Ho(t)}}function jo(t){return 5===t.tag||3===t.tag||4===t.tag}function Bo(t){t:{for(var n=t.return;null!==n;){if(jo(n)){var e=n;break t}n=n.return}h("160"),e=void 0}var r=n=void 0;switch(e.tag){case 5:n=e.stateNode,r=!1;break;case 3:case 4:n=e.stateNode.containerInfo,r=!0;break;default:h("161")}16&e.effectTag&&(Pr(n,""),e.effectTag&=-17);t:n:for(e=t;;){for(;null===e.sibling;){if(null===e.return||jo(e.return)){e=null;break t}e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag;){if(2&e.effectTag)continue n;if(null===e.child||4===e.tag)continue n;e.child.return=e,e=e.child}if(!(2&e.effectTag)){e=e.stateNode;break t}}for(var i=t;;){if(5===i.tag||6===i.tag)if(e)if(r){var o=n,u=i.stateNode,a=e;8===o.nodeType?o.parentNode.insertBefore(u,a):o.insertBefore(u,a)}else n.insertBefore(i.stateNode,e);else r?(o=n,u=i.stateNode,8===o.nodeType?o.parentNode.insertBefore(u,o):o.appendChild(u)):n.appendChild(i.stateNode);else if(4!==i.tag&&null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;i=i.return}i.sibling.return=i.return,i=i.sibling}}function Ho(t){for(var n=t,e=!1,r=void 0,i=void 0;;){if(!e){e=n.return;t:for(;;){switch(null===e&&h("160"),e.tag){case 5:r=e.stateNode,i=!1;break t;case 3:case 4:r=e.stateNode.containerInfo,i=!0;break t}e=e.return}e=!0}if(5===n.tag||6===n.tag){t:for(var o=n,u=o;;)if(qo(u),null!==u.child&&4!==u.tag)u.child.return=u,u=u.child;else{if(u===o)break;for(;null===u.sibling;){if(null===u.return||u.return===o)break t;u=u.return}u.sibling.return=u.return,u=u.sibling}i?(o=r,u=n.stateNode,8===o.nodeType?o.parentNode.removeChild(u):o.removeChild(u)):r.removeChild(n.stateNode)}else if(4===n.tag?r=n.stateNode.containerInfo:qo(n),null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;4===(n=n.return).tag&&(e=!1)}n.sibling.return=n.return,n=n.sibling}}function Yo(t,n){switch(n.tag){case 2:break;case 5:var e=n.stateNode;if(null!=e){var r=n.memoizedProps;t=null!==t?t.memoizedProps:r;var i=n.type,o=n.updateQueue;n.updateQueue=null,null!==o&&(e[B]=r,Yr(e,o,i,t,r))}break;case 6:null===n.stateNode&&h("162"),n.stateNode.nodeValue=n.memoizedProps;break;case 3:case 15:case 16:break;default:h("163")}}function $o(t,n,e){(e=Oi(e)).tag=3,e.payload={element:null};var r=n.value;return e.callback=function(){Zu(r),zo(t,n)},e}function Vo(t,n,e){(e=Oi(e)).tag=3;var r=t.stateNode;return null!==r&&"function"==typeof r.componentDidCatch&&(e.callback=function(){null===su?su=new Set([this]):su.add(this);var e=n.value,r=n.stack;zo(t,n),this.componentDidCatch(e,{componentStack:null!==r?r:""})}),e}function Xo(t,n,e,r,i,o){e.effectTag|=512,e.firstEffect=e.lastEffect=null,r=Yi(r,e),t=n;do{switch(t.tag){case 3:return t.effectTag|=1024,void zi(t,r=$o(t,r,o),o);case 2:if(n=r,e=t.stateNode,0==(64&t.effectTag)&&null!==e&&"function"==typeof e.componentDidCatch&&(null===su||!su.has(e)))return t.effectTag|=1024,void zi(t,r=Vo(t,n,o),o)}t=t.return}while(null!==t)}function Wo(t){switch(t.tag){case 2:pi(t);var n=t.effectTag;return 1024&n?(t.effectTag=-1025&n|64,t):null;case 3:return eo(),vi(),1024&(n=t.effectTag)?(t.effectTag=-1025&n|64,t):null;case 5:return ro(t),null;case 16:return 1024&(n=t.effectTag)?(t.effectTag=-1025&n|64,t):null;case 4:return eo(),null;case 13:return Gi(t),null;default:return null}}Lo=function(){},Oo=function(t,n,e){(n.updateQueue=e)&&Io(n)},Do=function(t,n,e,r){e!==r&&Io(n)};var Go=Kr(),Qo=2,Zo=Go,Ko=0,Jo=0,tu=!1,nu=null,eu=null,ru=0,iu=-1,ou=!1,uu=null,au=!1,cu=!1,su=null;function fu(){if(null!==nu)for(var t=nu.return;null!==t;){var n=t;switch(n.tag){case 2:pi(n);break;case 3:eo(),vi();break;case 5:ro(n);break;case 4:eo();break;case 13:Gi(n)}t=t.return}eu=null,ru=0,iu=-1,ou=!1,nu=null,cu=!1}function lu(t){for(;;){var n=t.alternate,e=t.return,r=t.sibling;if(0==(512&t.effectTag)){n=Uo(n,t);var i=t;if(1073741823===ru||1073741823!==i.expirationTime){var o=0;switch(i.tag){case 3:case 2:var u=i.updateQueue;null!==u&&(o=u.expirationTime)}for(u=i.child;null!==u;)0!==u.expirationTime&&(0===o||o>u.expirationTime)&&(o=u.expirationTime),u=u.sibling;i.expirationTime=o}if(null!==n)return n;if(null!==e&&0==(512&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1Su)&&(Su=t),t}function yu(t,n){for(;null!==t;){if((0===t.expirationTime||t.expirationTime>n)&&(t.expirationTime=n),null!==t.alternate&&(0===t.alternate.expirationTime||t.alternate.expirationTime>n)&&(t.alternate.expirationTime=n),null===t.return){if(3!==t.tag)break;var e=t.stateNode;!tu&&0!==ru&&nUu&&h("185")}t=t.return}}function mu(){return Zo=Kr()-Go,Qo=2+(Zo/10|0)}function _u(t){var n=Jo;Jo=2+25*(1+((mu()-2+500)/25|0));try{return t()}finally{Jo=n}}function bu(t,n,e,r,i){var o=Jo;Jo=1;try{return t(n,e,r,i)}finally{Jo=o}}var wu=null,xu=null,Mu=0,Eu=void 0,ku=!1,Nu=null,Tu=0,Su=0,Cu=!1,Au=!1,Pu=null,Ru=null,Iu=!1,Lu=!1,Ou=!1,Du=null,Uu=1e3,zu=0,Fu=1;function qu(t){if(0!==Mu){if(t>Mu)return;null!==Eu&&ti(Eu)}var n=Kr()-Go;Mu=t,Eu=Jr(Hu,{timeout:10*(t-2)-n})}function ju(t,n){if(null===t.nextScheduledRoot)t.remainingExpirationTime=n,null===xu?(wu=xu=t,t.nextScheduledRoot=t):(xu=xu.nextScheduledRoot=t).nextScheduledRoot=wu;else{var e=t.remainingExpirationTime;(0===e||n=Tu)&&(!Cu||mu()>=Tu);)mu(),Wu(Nu,Tu,!Cu),Bu();else for(;null!==Nu&&0!==Tu&&(0===t||t>=Tu);)Wu(Nu,Tu,!1),Bu();null!==Ru&&(Mu=0,Eu=null),0!==Tu&&qu(Tu),Ru=null,Cu=!1,Xu()}function Vu(t,n){ku&&h("253"),Nu=t,Tu=n,Wu(t,n,!1),Yu(),Xu()}function Xu(){if(zu=0,null!==Du){var t=Du;Du=null;for(var n=0;nw&&(x=w,w=S,S=x),x=je(N,S),M=je(N,w),x&&M&&(1!==T.rangeCount||T.anchorNode!==x.node||T.anchorOffset!==x.offset||T.focusNode!==M.node||T.focusOffset!==M.offset)&&((E=document.createRange()).setStart(x.node,x.offset),T.removeAllRanges(),S>w?(T.addRange(E),T.extend(M.node,M.offset)):(E.setEnd(M.node,M.offset),T.addRange(E))))),T=[];for(S=N;S=S.parentNode;)1===S.nodeType&&T.push({element:S,left:S.scrollLeft,top:S.scrollTop});for("function"==typeof N.focus&&N.focus(),N=0;NFu)&&(Cu=!0)}function Zu(t){null===Nu&&h("246"),Nu.remainingExpirationTime=0,Au||(Au=!0,Pu=t)}function Ku(t,n){var e=Iu;Iu=!0;try{return t(n)}finally{(Iu=e)||ku||Yu()}}function Ju(t,n){if(Iu&&!Lu){Lu=!0;try{return t(n)}finally{Lu=!1}}return t(n)}function ta(t,n){ku&&h("187");var e=Iu;Iu=!0;try{return bu(t,n)}finally{Iu=e,Yu()}}function na(t,n,e){if(Ou)return t(n,e);Iu||ku||0===Su||($u(Su,!1,null),Su=0);var r=Ou,i=Iu;Iu=Ou=!0;try{return t(n,e)}finally{Ou=r,(Iu=i)||ku||Yu()}}function ea(t){var n=Iu;Iu=!0;try{bu(t)}finally{(Iu=n)||ku||$u(1,!1,null)}}function ra(t,n,e,r,i){var o=n.current;if(e){var u;e=e._reactInternalFiber;t:{for(2===ue(e)&&2===e.tag||h("170"),u=e;3!==u.tag;){if(di(u)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}(u=u.return)||h("171")}u=u.stateNode.context}e=di(e)?yi(e,u):u}else e=l;return null===n.context?n.context=e:n.pendingContext=e,n=i,(i=Oi(r)).payload={element:t},null!==(n=void 0===n?null:n)&&(i.callback=n),Ui(o,i,r),yu(o,r),r}function ia(t){var n=t._reactInternalFiber;return void 0===n&&("function"==typeof t.render?h("188"):h("268",Object.keys(t))),null===(t=se(n))?null:t.stateNode}function oa(t,n,e,r){var i=n.current;return ra(t,n,e,i=gu(mu(),i),r)}function ua(t){if(!(t=t.current).child)return null;switch(t.child.tag){case 5:default:return t.child.stateNode}}function aa(t){var n=t.findFiberByHostInstance;return function(t){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var n=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(n.isDisabled||!n.supportsFiber)return!0;try{var e=n.inject(t);Ti=Ci(function(t){return n.onCommitFiberRoot(e,t)}),Si=Ci(function(t){return n.onCommitFiberUnmount(e,t)})}catch(t){}return!0}(u({},t,{findHostInstanceByFiber:function(t){return null===(t=se(t))?null:t.stateNode},findFiberByHostInstance:function(t){return n?n(t):null}}))}var ca=Ku,sa=na,fa=function(){ku||0===Su||($u(Su,!1,null),Su=0)};function la(t){this._expirationTime=vu(),this._root=t,this._callbacks=this._next=null,this._hasChildren=this._didComplete=!1,this._children=null,this._defer=!0}function ha(){this._callbacks=null,this._didCommit=!1,this._onCommit=this._onCommit.bind(this)}function da(t,n,e){this._internalRoot=Ni(t,n,e)}function pa(t){return!(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType&&(8!==t.nodeType||" react-mount-point-unstable "!==t.nodeValue))}function va(t,n,e,r,i){pa(e)||h("200");var o=e._reactRootContainer;if(o){if("function"==typeof i){var u=i;i=function(){var t=ua(o._internalRoot);u.call(t)}}null!=t?o.legacy_renderSubtreeIntoContainer(t,n,i):o.render(n,i)}else{if(o=e._reactRootContainer=function(t,n){if(n||(n=!(!(n=t?9===t.nodeType?t.documentElement:t.firstChild:null)||1!==n.nodeType||!n.hasAttribute("data-reactroot"))),!n)for(var e;e=t.lastChild;)t.removeChild(e);return new da(t,!1,n)}(e,r),"function"==typeof i){var a=i;i=function(){var t=ua(o._internalRoot);a.call(t)}}Ju(function(){null!=t?o.legacy_renderSubtreeIntoContainer(t,n,i):o.render(n,i)})}return ua(o._internalRoot)}function ga(t,n){var e=2=1e3){var t=Date.now();$("#running-queries-sparkline").sparkline(this.state.runningQueries,$.extend({},u,{chartRangeMin:0})),$("#blocked-queries-sparkline").sparkline(this.state.blockedQueries,$.extend({},u,{chartRangeMin:0})),$("#queued-queries-sparkline").sparkline(this.state.queuedQueries,$.extend({},u,{chartRangeMin:0})),$("#active-workers-sparkline").sparkline(this.state.activeWorkers,$.extend({},u,{chartRangeMin:0})),$("#cluster-count-sparkline").sparkline(this.state.clusterCount,$.extend({},u,{chartRangeMin:0})),$("#running-drivers-sparkline").sparkline(this.state.runningDrivers,$.extend({},u,{numberFormatter:o.precisionRound})),$("#reserved-memory-sparkline").sparkline(this.state.reservedMemory,$.extend({},u,{numberFormatter:o.formatDataSizeBytes})),$("#row-input-rate-sparkline").sparkline(this.state.rowInputRate,$.extend({},u,{numberFormatter:o.formatCount})),$("#byte-input-rate-sparkline").sparkline(this.state.byteInputRate,$.extend({},u,{numberFormatter:o.formatDataSizeBytes})),$("#cpu-time-rate-sparkline").sparkline(this.state.perWorkerCpuTimeRate,$.extend({},u,{numberFormatter:o.precisionRound})),this.setState({lastRender:t})}$('[data-toggle="tooltip"]').tooltip()}},{key:"render",value:function(){return i.default.createElement("div",{className:"row"},i.default.createElement("div",{className:"col-xs-12"},i.default.createElement("div",{className:"row"},i.default.createElement("div",{className:"col-xs-6"},i.default.createElement("div",{className:"stat-title"},i.default.createElement("span",{className:"text","data-toggle":"tooltip","data-placement":"right",title:"Total number of queries currently running"},"Running queries"))),i.default.createElement("div",{className:"col-xs-6"},i.default.createElement("div",{className:"stat-title"},i.default.createElement("span",{className:"text","data-toggle":"tooltip","data-placement":"right",title:"Total number of active cluster"},"Cluster Count")))),i.default.createElement("div",{className:"row stat-line-end"},i.default.createElement("div",{className:"col-xs-6"},i.default.createElement("div",{className:"stat stat-large"},i.default.createElement("span",{className:"stat-text"},this.state.runningQueries[this.state.runningQueries.length-1]),i.default.createElement("span",{className:"sparkline",id:"running-queries-sparkline"},i.default.createElement("div",{className:"loader"},"Loading ...")))),i.default.createElement("div",{className:"col-xs-6"},i.default.createElement("div",{className:"stat stat-large"},i.default.createElement("span",{className:"stat-text"},this.state.clusterCount[this.state.clusterCount.length-1]),i.default.createElement("span",{className:"sparkline",id:"cluster-count-sparkline"},i.default.createElement("div",{className:"loader"},"Loading ..."))))),i.default.createElement("div",{className:"row"},i.default.createElement("div",{className:"col-xs-6"},i.default.createElement("div",{className:"stat-title"},i.default.createElement("span",{className:"text","data-toggle":"tooltip","data-placement":"right",title:"Total number of queries currently queued and awaiting execution"},"Queued queries"))),i.default.createElement("div",{className:"col-xs-6"},i.default.createElement("div",{className:"stat-title"},i.default.createElement("span",{className:"text","data-toggle":"tooltip","data-placement":"right",title:"Total number of active worker nodes"},"Active Workers")))),i.default.createElement("div",{className:"row stat-line-end"},i.default.createElement("div",{className:"col-xs-6"},i.default.createElement("div",{className:"stat stat-large"},i.default.createElement("span",{className:"stat-text"},this.state.queuedQueries[this.state.queuedQueries.length-1]),i.default.createElement("span",{className:"sparkline",id:"queued-queries-sparkline"},i.default.createElement("div",{className:"loader"},"Loading ...")))),i.default.createElement("div",{className:"col-xs-6"},i.default.createElement("div",{className:"stat stat-large"},i.default.createElement("span",{className:"stat-text"},this.state.activeWorkers[this.state.activeWorkers.length-1]),i.default.createElement("span",{className:"sparkline",id:"active-workers-sparkline"},i.default.createElement("div",{className:"loader"},"Loading ..."))))),i.default.createElement("div",{className:"row"},i.default.createElement("div",{className:"col-xs-6"},i.default.createElement("div",{className:"stat-title"},i.default.createElement("span",{className:"text","data-toggle":"tooltip","data-placement":"right",title:"Total number of queries currently blocked and unable to make progress"},"Blocked Queries"))),i.default.createElement("div",{className:"col-xs-6"},i.default.createElement("div",{className:"stat-title"},i.default.createElement("span",{className:"text","data-toggle":"tooltip","data-placement":"right",title:"Moving average of total running drivers"},"Running Drivers")))),i.default.createElement("div",{className:"row stat-line-end"},i.default.createElement("div",{className:"col-xs-6"},i.default.createElement("div",{className:"stat stat-large"},i.default.createElement("span",{className:"stat-text"},this.state.blockedQueries[this.state.blockedQueries.length-1]),i.default.createElement("span",{className:"sparkline",id:"blocked-queries-sparkline"},i.default.createElement("div",{className:"loader"},"Loading ...")))),i.default.createElement("div",{className:"col-xs-6"},i.default.createElement("div",{className:"stat stat-large"},i.default.createElement("span",{className:"stat-text"},(0,o.formatCount)(this.state.runningDrivers[this.state.runningDrivers.length-1])),i.default.createElement("span",{className:"sparkline",id:"running-drivers-sparkline"},i.default.createElement("div",{className:"loader"},"Loading ...")))))))}}]),n}()},function(t,n,e){
/**
* @license
* Copyright (c) 2012-2013 Chris Pettitt
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
t.exports={graphlib:e(45),dagre:e(27),intersect:e(85),render:e(87),util:e(4),version:e(100)}},function(t,n,e){var r;try{r=e(21)}catch(t){}r||(r=window.graphlib),t.exports=r},function(t,n,e){t.exports={Graph:e(12),version:e(49)}},function(t,n){var e;e=function(){return this}();try{e=e||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,n){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,n){t.exports="2.1.5"},function(t,n,e){var r=e(3),i=e(12);t.exports={write:function(t){var n={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:function(t){return r.map(t.nodes(),function(n){var e=t.node(n),i=t.parent(n),o={v:n};return r.isUndefined(e)||(o.value=e),r.isUndefined(i)||(o.parent=i),o})}(t),edges:function(t){return r.map(t.edges(),function(n){var e=t.edge(n),i={v:n.v,w:n.w};return r.isUndefined(n.name)||(i.name=n.name),r.isUndefined(e)||(i.value=e),i})}(t)};r.isUndefined(t.graph())||(n.value=r.clone(t.graph()));return n},read:function(t){var n=new i(t.options).setGraph(t.value);return r.each(t.nodes,function(t){n.setNode(t.v,t.value),t.parent&&n.setParent(t.v,t.parent)}),r.each(t.edges,function(t){n.setEdge({v:t.v,w:t.w,name:t.name},t.value)}),n}}},function(t,n,e){t.exports={components:e(52),dijkstra:e(22),dijkstraAll:e(53),findCycles:e(54),floydWarshall:e(55),isAcyclic:e(56),postorder:e(57),preorder:e(58),prim:e(59),tarjan:e(24),topsort:e(25)}},function(t,n,e){var r=e(3);t.exports=function(t){var n,e={},i=[];function o(i){r.has(e,i)||(e[i]=!0,n.push(i),r.each(t.successors(i),o),r.each(t.predecessors(i),o))}return r.each(t.nodes(),function(t){n=[],o(t),n.length&&i.push(n)}),i}},function(t,n,e){var r=e(22),i=e(3);t.exports=function(t,n,e){return i.transform(t.nodes(),function(i,o){i[o]=r(t,o,n,e)},{})}},function(t,n,e){var r=e(3),i=e(24);t.exports=function(t){return r.filter(i(t),function(n){return n.length>1||1===n.length&&t.hasEdge(n[0],n[0])})}},function(t,n,e){var r=e(3);t.exports=function(t,n,e){return function(t,n,e){var r={},i=t.nodes();return i.forEach(function(t){r[t]={},r[t][t]={distance:0},i.forEach(function(n){t!==n&&(r[t][n]={distance:Number.POSITIVE_INFINITY})}),e(t).forEach(function(e){var i=e.v===t?e.w:e.v,o=n(e);r[t][i]={distance:o,predecessor:t}})}),i.forEach(function(t){var n=r[t];i.forEach(function(e){var o=r[e];i.forEach(function(e){var r=o[t],i=n[e],u=o[e],a=r.distance+i.distance;a0;){if(e=c.removeMin(),r.has(a,e))u.setEdge(e,a[e]);else{if(f)throw new Error("Input graph is not connected: "+t);f=!0}t.nodeEdges(e).forEach(s)}return u}},function(t,n,e){t.exports={graphlib:e(5),layout:e(61),debug:e(83),util:{time:e(1).time,notime:e(1).notime},version:e(84)}},function(t,n,e){"use strict";var r=e(0),i=e(62),o=e(65),u=e(66),a=e(1).normalizeRanks,c=e(68),s=e(1).removeEmptyRanks,f=e(69),l=e(70),h=e(71),d=e(72),p=e(81),v=e(1),g=e(5).Graph;t.exports=function(t,n){var e=n&&n.debugTiming?v.time:v.notime;e("layout",function(){var n=e(" buildLayoutGraph",function(){return function(t){var n=new g({multigraph:!0,compound:!0}),e=N(t.graph());return n.setGraph(r.merge({},m,k(e,y),r.pick(e,_))),r.forEach(t.nodes(),function(e){var i=N(t.node(e));n.setNode(e,r.defaults(k(i,b),w)),n.setParent(e,t.parent(e))}),r.forEach(t.edges(),function(e){var i=N(t.edge(e));n.setEdge(e,r.merge({},M,k(i,x),r.pick(i,E)))}),n}(t)});e(" runLayout",function(){!function(t,n){n(" makeSpaceForEdgeLabels",function(){!function(t){var n=t.graph();n.ranksep/=2,r.forEach(t.edges(),function(e){var r=t.edge(e);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===n.rankdir||"BT"===n.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)})}(t)}),n(" removeSelfEdges",function(){!function(t){r.forEach(t.edges(),function(n){if(n.v===n.w){var e=t.node(n.v);e.selfEdges||(e.selfEdges=[]),e.selfEdges.push({e:n,label:t.edge(n)}),t.removeEdge(n)}})}(t)}),n(" acyclic",function(){i.run(t)}),n(" nestingGraph.run",function(){f.run(t)}),n(" rank",function(){u(v.asNonCompoundGraph(t))}),n(" injectEdgeLabelProxies",function(){!function(t){r.forEach(t.edges(),function(n){var e=t.edge(n);if(e.width&&e.height){var r=t.node(n.v),i=t.node(n.w),o={rank:(i.rank-r.rank)/2+r.rank,e:n};v.addDummyNode(t,"edge-proxy",o,"_ep")}})}(t)}),n(" removeEmptyRanks",function(){s(t)}),n(" nestingGraph.cleanup",function(){f.cleanup(t)}),n(" normalizeRanks",function(){a(t)}),n(" assignRankMinMax",function(){!function(t){var n=0;r.forEach(t.nodes(),function(e){var i=t.node(e);i.borderTop&&(i.minRank=t.node(i.borderTop).rank,i.maxRank=t.node(i.borderBottom).rank,n=r.max(n,i.maxRank))}),t.graph().maxRank=n}(t)}),n(" removeEdgeLabelProxies",function(){!function(t){r.forEach(t.nodes(),function(n){var e=t.node(n);"edge-proxy"===e.dummy&&(t.edge(e.e).labelRank=e.rank,t.removeNode(n))})}(t)}),n(" normalize.run",function(){o.run(t)}),n(" parentDummyChains",function(){c(t)}),n(" addBorderSegments",function(){l(t)}),n(" order",function(){d(t)}),n(" insertSelfEdges",function(){!function(t){var n=v.buildLayerMatrix(t);r.forEach(n,function(n){var e=0;r.forEach(n,function(n,i){var o=t.node(n);o.order=i+e,r.forEach(o.selfEdges,function(n){v.addDummyNode(t,"selfedge",{width:n.label.width,height:n.label.height,rank:o.rank,order:i+ ++e,e:n.e,label:n.label},"_se")}),delete o.selfEdges})})}(t)}),n(" adjustCoordinateSystem",function(){h.adjust(t)}),n(" position",function(){p(t)}),n(" positionSelfEdges",function(){!function(t){r.forEach(t.nodes(),function(n){var e=t.node(n);if("selfedge"===e.dummy){var r=t.node(e.e.v),i=r.x+r.width/2,o=r.y,u=e.x-i,a=r.height/2;t.setEdge(e.e,e.label),t.removeNode(n),e.label.points=[{x:i+2*u/3,y:o-a},{x:i+5*u/6,y:o-a},{x:i+u,y:o},{x:i+5*u/6,y:o+a},{x:i+2*u/3,y:o+a}],e.label.x=e.x,e.label.y=e.y}})}(t)}),n(" removeBorderNodes",function(){!function(t){r.forEach(t.nodes(),function(n){if(t.children(n).length){var e=t.node(n),i=t.node(e.borderTop),o=t.node(e.borderBottom),u=t.node(r.last(e.borderLeft)),a=t.node(r.last(e.borderRight));e.width=Math.abs(a.x-u.x),e.height=Math.abs(o.y-i.y),e.x=u.x+e.width/2,e.y=i.y+e.height/2}}),r.forEach(t.nodes(),function(n){"border"===t.node(n).dummy&&t.removeNode(n)})}(t)}),n(" normalize.undo",function(){o.undo(t)}),n(" fixupEdgeLabelCoords",function(){!function(t){r.forEach(t.edges(),function(n){var e=t.edge(n);if(r.has(e,"x"))switch("l"!==e.labelpos&&"r"!==e.labelpos||(e.width-=e.labeloffset),e.labelpos){case"l":e.x-=e.width/2+e.labeloffset;break;case"r":e.x+=e.width/2+e.labeloffset}})}(t)}),n(" undoCoordinateSystem",function(){h.undo(t)}),n(" translateGraph",function(){!function(t){var n=Number.POSITIVE_INFINITY,e=0,i=Number.POSITIVE_INFINITY,o=0,u=t.graph(),a=u.marginx||0,c=u.marginy||0;function s(t){var r=t.x,u=t.y,a=t.width,c=t.height;n=Math.min(n,r-a/2),e=Math.max(e,r+a/2),i=Math.min(i,u-c/2),o=Math.max(o,u+c/2)}r.forEach(t.nodes(),function(n){s(t.node(n))}),r.forEach(t.edges(),function(n){var e=t.edge(n);r.has(e,"x")&&s(e)}),n-=a,i-=c,r.forEach(t.nodes(),function(e){var r=t.node(e);r.x-=n,r.y-=i}),r.forEach(t.edges(),function(e){var o=t.edge(e);r.forEach(o.points,function(t){t.x-=n,t.y-=i}),r.has(o,"x")&&(o.x-=n),r.has(o,"y")&&(o.y-=i)}),u.width=e-n+a,u.height=o-i+c}(t)}),n(" assignNodeIntersects",function(){!function(t){r.forEach(t.edges(),function(n){var e,r,i=t.edge(n),o=t.node(n.v),u=t.node(n.w);i.points?(e=i.points[0],r=i.points[i.points.length-1]):(i.points=[],e=u,r=o),i.points.unshift(v.intersectRect(o,e)),i.points.push(v.intersectRect(u,r))})}(t)}),n(" reversePoints",function(){!function(t){r.forEach(t.edges(),function(n){var e=t.edge(n);e.reversed&&e.points.reverse()})}(t)}),n(" acyclic.undo",function(){i.undo(t)})}(n,e)}),e(" updateInputGraph",function(){!function(t,n){r.forEach(t.nodes(),function(e){var r=t.node(e),i=n.node(e);r&&(r.x=i.x,r.y=i.y,n.children(e).length&&(r.width=i.width,r.height=i.height))}),r.forEach(t.edges(),function(e){var i=t.edge(e),o=n.edge(e);i.points=o.points,r.has(o,"x")&&(i.x=o.x,i.y=o.y)}),t.graph().width=n.graph().width,t.graph().height=n.graph().height}(t,n)})})};var y=["nodesep","edgesep","ranksep","marginx","marginy"],m={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},_=["acyclicer","ranker","rankdir","align"],b=["width","height"],w={width:0,height:0},x=["minlen","weight","width","height","labeloffset"],M={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},E=["labelpos"];function k(t,n){return r.mapValues(r.pick(t,n),Number)}function N(t){var n={};return r.forEach(t,function(t,e){n[e.toLowerCase()]=t}),n}},function(t,n,e){"use strict";var r=e(0),i=e(63);t.exports={run:function(t){var n="greedy"===t.graph().acyclicer?i(t,function(t){return function(n){return t.edge(n).weight}}(t)):function(t){var n=[],e={},i={};return r.forEach(t.nodes(),function o(u){r.has(i,u)||(i[u]=!0,e[u]=!0,r.forEach(t.outEdges(u),function(t){r.has(e,t.w)?n.push(t):o(t.w)}),delete e[u])}),n}(t);r.forEach(n,function(n){var e=t.edge(n);t.removeEdge(n),e.forwardName=n.name,e.reversed=!0,t.setEdge(n.w,n.v,e,r.uniqueId("rev"))})},undo:function(t){r.forEach(t.edges(),function(n){var e=t.edge(n);if(e.reversed){t.removeEdge(n);var r=e.forwardName;delete e.reversed,delete e.forwardName,t.setEdge(n.w,n.v,e,r)}})}}},function(t,n,e){var r=e(0),i=e(5).Graph,o=e(64);t.exports=function(t,n){if(t.nodeCount()<=1)return[];var e=function(t,n){var e=new i,u=0,a=0;r.forEach(t.nodes(),function(t){e.setNode(t,{v:t,in:0,out:0})}),r.forEach(t.edges(),function(t){var r=e.edge(t.v,t.w)||0,i=n(t),o=r+i;e.setEdge(t.v,t.w,o),a=Math.max(a,e.node(t.v).out+=i),u=Math.max(u,e.node(t.w).in+=i)});var s=r.range(a+u+3).map(function(){return new o}),f=u+1;return r.forEach(e.nodes(),function(t){c(s,f,e.node(t))}),{graph:e,buckets:s,zeroIdx:f}}(t,n||u),s=function(t,n,e){var r,i=[],o=n[n.length-1],u=n[0];for(;t.nodeCount();){for(;r=u.dequeue();)a(t,n,e,r);for(;r=o.dequeue();)a(t,n,e,r);if(t.nodeCount())for(var c=n.length-2;c>0;--c)if(r=n[c].dequeue()){i=i.concat(a(t,n,e,r,!0));break}}return i}(e.graph,e.buckets,e.zeroIdx);return r.flatten(r.map(s,function(n){return t.outEdges(n.v,n.w)}),!0)};var u=r.constant(1);function a(t,n,e,i,o){var u=o?[]:void 0;return r.forEach(t.inEdges(i.v),function(r){var i=t.edge(r),a=t.node(r.v);o&&u.push({v:r.v,w:r.w}),a.out-=i,c(n,e,a)}),r.forEach(t.outEdges(i.v),function(r){var i=t.edge(r),o=r.w,u=t.node(o);u.in-=i,c(n,e,u)}),t.removeNode(i.v),u}function c(t,n,e){e.out?e.in?t[e.out-e.in+n].enqueue(e):t[t.length-1].enqueue(e):t[0].enqueue(e)}},function(t,n){function e(){var t={};t._next=t._prev=t,this._sentinel=t}function r(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function i(t,n){if("_next"!==t&&"_prev"!==t)return n}t.exports=e,e.prototype.dequeue=function(){var t=this._sentinel,n=t._prev;if(n!==t)return r(n),n},e.prototype.enqueue=function(t){var n=this._sentinel;t._prev&&t._next&&r(t),t._next=n._next,n._next._prev=t,n._next=t,t._prev=n},e.prototype.toString=function(){for(var t=[],n=this._sentinel,e=n._prev;e!==n;)t.push(JSON.stringify(e,i)),e=e._prev;return"["+t.join(", ")+"]"}},function(t,n,e){"use strict";var r=e(0),i=e(1);t.exports={run:function(t){t.graph().dummyChains=[],r.forEach(t.edges(),function(n){!function(t,n){var e,r,o,u=n.v,a=t.node(u).rank,c=n.w,s=t.node(c).rank,f=n.name,l=t.edge(n),h=l.labelRank;if(s===a+1)return;for(t.removeEdge(n),o=0,++a;ac.lim&&(s=c,f=!0);var l=r.filter(n.edges(),function(n){return f===y(t,t.node(n.v),s)&&f!==y(t,t.node(n.w),s)});return r.minBy(l,function(t){return o(n,t)})}function g(t,n,e,i){var o=e.v,u=e.w;t.removeEdge(o,u),t.setEdge(i.v,i.w,{}),d(t),l(t,n),function(t,n){var e=r.find(t.nodes(),function(t){return!n.node(t).parent}),i=a(t,e);i=i.slice(1),r.forEach(i,function(e){var r=t.node(e).parent,i=n.edge(e,r),o=!1;i||(i=n.edge(r,e),o=!0),n.node(e).rank=n.node(r).rank+(o?i.minlen:-i.minlen)})}(t,n)}function y(t,n,e){return e.low<=n.lim&&n.lim<=e.lim}t.exports=f,f.initLowLimValues=d,f.initCutValues=l,f.calcCutValue=h,f.leaveEdge=p,f.enterEdge=v,f.exchangeEdges=g},function(t,n,e){var r=e(0);t.exports=function(t){var n=function(t){var n={},e=0;return r.forEach(t.children(),function i(o){var u=e;r.forEach(t.children(o),i),n[o]={low:u,lim:e++}}),n}(t);r.forEach(t.graph().dummyChains,function(e){for(var r=t.node(e),i=r.edgeObj,o=function(t,n,e,r){var i,o,u=[],a=[],c=Math.min(n[e].low,n[r].low),s=Math.max(n[e].lim,n[r].lim);i=e;do{i=t.parent(i),u.push(i)}while(i&&(n[i].low>c||s>n[i].lim));o=i,i=r;for(;(i=t.parent(i))!==o;)a.push(i);return{path:u.concat(a.reverse()),lca:o}}(t,n,i.v,i.w),u=o.path,a=o.lca,c=0,s=u[c],f=!0;e!==i.w;){if(r=t.node(e),f){for(;(s=u[c])!==a&&t.node(s).maxRank=2),a=f.buildLayerMatrix(t);var g=o(t,a);g0;)n%2&&(e+=c[n+1]),c[n=n-1>>1]+=t.weight;s+=t.weight*e})),s}t.exports=function(t,n){for(var e=0,r=1;r=t.barycenter)&&function(t,n){var e=0,r=0;t.weight&&(e+=t.barycenter*t.weight,r+=t.weight),n.weight&&(e+=n.barycenter*n.weight,r+=n.weight),t.vs=n.vs.concat(t.vs),t.barycenter=e/r,t.weight=r,t.i=Math.min(n.i,t.i),n.merged=!0}(t,n)}}function i(n){return function(e){e.in.push(n),0==--e.indegree&&t.push(e)}}for(;t.length;){var o=t.pop();n.push(o),r.forEach(o.in.reverse(),e(o)),r.forEach(o.out,i(o))}return r.chain(n).filter(function(t){return!t.merged}).map(function(t){return r.pick(t,["vs","i","barycenter","weight"])}).value()}(r.filter(e,function(t){return!t.indegree}))}},function(t,n,e){var r=e(0),i=e(1);function o(t,n,e){for(var i;n.length&&(i=r.last(n)).i<=e;)n.pop(),t.push(i.vs),e++;return e}t.exports=function(t,n){var e=i.partition(t,function(t){return r.has(t,"barycenter")}),u=e.lhs,a=r.sortBy(e.rhs,function(t){return-t.i}),c=[],s=0,f=0,l=0;u.sort(function(t){return function(n,e){return n.barycentere.barycenter?1:t?e.i-n.i:n.i-e.i}}(!!n)),l=o(c,a,l),r.forEach(u,function(t){l+=t.vs.length,c.push(t.vs),s+=t.barycenter*t.weight,f+=t.weight,l=o(c,a,l)});var h={vs:r.flatten(c,!0)};f&&(h.barycenter=s/f,h.weight=f);return h}},function(t,n,e){var r=e(0),i=e(5).Graph;t.exports=function(t,n,e){var o=function(t){var n;for(;t.hasNode(n=r.uniqueId("_root")););return n}(t),u=new i({compound:!0}).setGraph({root:o}).setDefaultNodeLabel(function(n){return t.node(n)});return r.forEach(t.nodes(),function(i){var a=t.node(i),c=t.parent(i);(a.rank===n||a.minRank<=n&&n<=a.maxRank)&&(u.setNode(i),u.setParent(i,c||o),r.forEach(t[e](i),function(n){var e=n.v===i?n.w:n.v,o=u.edge(e,i),a=r.isUndefined(o)?0:o.weight;u.setEdge(e,i,{weight:t.edge(n).weight+a})}),r.has(a,"minRank")&&u.setNode(i,{borderLeft:a.borderLeft[n],borderRight:a.borderRight[n]}))}),u}},function(t,n,e){var r=e(0);t.exports=function(t,n,e){var i,o={};r.forEach(e,function(e){for(var r,u,a=t.parent(e);a;){if((r=t.parent(a))?(u=o[r],o[r]=a):(u=i,i=a),u&&u!==a)return void n.setEdge(u,a);a=r}})}},function(t,n,e){"use strict";var r=e(0),i=e(1),o=e(82).positionX;t.exports=function(t){(function(t){var n=i.buildLayerMatrix(t),e=t.graph().ranksep,o=0;r.forEach(n,function(n){var i=r.max(r.map(n,function(n){return t.node(n).height}));r.forEach(n,function(n){t.node(n).y=o+i/2}),o+=i+e})})(t=i.asNonCompoundGraph(t)),r.forEach(o(t),function(n,e){t.node(e).x=n})}},function(t,n,e){"use strict";var r=e(0),i=e(5).Graph,o=e(1);function u(t,n){var e={};return r.reduce(n,function(n,i){var o=0,u=0,a=n.length,s=r.last(i);return r.forEach(i,function(n,f){var l=function(t,n){if(t.node(n).dummy)return r.find(t.predecessors(n),function(n){return t.node(n).dummy})}(t,n),h=l?t.node(l).order:a;(l||n===s)&&(r.forEach(i.slice(u,f+1),function(n){r.forEach(t.predecessors(n),function(r){var i=t.node(r),u=i.order;!(ua)&&c(e,n,s)})})}return r.reduce(n,function(n,e){var o,u=-1,a=0;return r.forEach(e,function(r,c){if("border"===t.node(r).dummy){var s=t.predecessors(r);s.length&&(o=t.node(s[0]).order,i(e,a,c,u,o),a=c,u=o)}i(e,a,e.length,o,n.length)}),e}),e}function c(t,n,e){if(n>e){var r=n;n=e,e=r}var i=t[n];i||(t[n]=i={}),i[e]=!0}function s(t,n,e){if(n>e){var i=n;n=e,e=i}return r.has(t[n],e)}function f(t,n,e,i){var o={},u={},a={};return r.forEach(n,function(t){r.forEach(t,function(t,n){o[t]=t,u[t]=t,a[t]=n})}),r.forEach(n,function(t){var n=-1;r.forEach(t,function(t){var c=i(t);if(c.length)for(var f=((c=r.sortBy(c,function(t){return a[t]})).length-1)/2,l=Math.floor(f),h=Math.ceil(f);l<=h;++l){var d=c[l];u[t]===t&&n0}t.exports=function(t,n,r,i){var o,u,a,c,s,f,l,h,d,p,v,g,y;if(o=n.y-t.y,a=t.x-n.x,s=n.x*t.y-t.x*n.y,d=o*r.x+a*r.y+s,p=o*i.x+a*i.y+s,0!==d&&0!==p&&e(d,p))return;if(u=i.y-r.y,c=r.x-i.x,f=i.x*r.y-r.x*i.y,l=u*t.x+c*t.y+f,h=u*n.x+c*n.y+f,0!==l&&0!==h&&e(l,h))return;if(0==(v=o*c-u*a))return;return g=Math.abs(v/2),{x:(y=a*f-c*s)<0?(y-g)/v:(y+g)/v,y:(y=u*s-o*f)<0?(y-g)/v:(y+g)/v}}},function(t,n,e){var r=e(9),i=e(8),o=e(27).layout;t.exports=function(){var t=e(88),n=e(92),i=e(93),s=e(94),f=e(95),l=e(96),h=e(97),d=e(98),p=e(99),v=function(e,v){!function(t){t.nodes().forEach(function(n){var e=t.node(n);r.has(e,"label")||t.children(n).length||(e.label=n),r.has(e,"paddingX")&&r.defaults(e,{paddingLeft:e.paddingX,paddingRight:e.paddingX}),r.has(e,"paddingY")&&r.defaults(e,{paddingTop:e.paddingY,paddingBottom:e.paddingY}),r.has(e,"padding")&&r.defaults(e,{paddingLeft:e.padding,paddingRight:e.padding,paddingTop:e.padding,paddingBottom:e.padding}),r.defaults(e,u),r.each(["paddingLeft","paddingRight","paddingTop","paddingBottom"],function(t){e[t]=Number(e[t])}),r.has(e,"width")&&(e._prevWidth=e.width),r.has(e,"height")&&(e._prevHeight=e.height)}),t.edges().forEach(function(n){var e=t.edge(n);r.has(e,"label")||(e.label=""),r.defaults(e,a)})}(v),e.selectAll("*").remove();var g=c(e,"output"),y=c(g,"clusters"),m=c(g,"edgePaths"),_=i(c(g,"edgeLabels"),v),b=t(c(g,"nodes"),v,d);o(v),f(b,v),l(_,v),s(m,v,p);var w=n(y,v);h(w,v),function(t){r.each(t.nodes(),function(n){var e=t.node(n);r.has(e,"_prevWidth")?e.width=e._prevWidth:delete e.width,r.has(e,"_prevHeight")?e.height=e._prevHeight:delete e.height,delete e._prevWidth,delete e._prevHeight})}(v)};return v.createNodes=function(n){return arguments.length?(t=n,v):t},v.createClusters=function(t){return arguments.length?(n=t,v):n},v.createEdgeLabels=function(t){return arguments.length?(i=t,v):i},v.createEdgePaths=function(t){return arguments.length?(s=t,v):s},v.shapes=function(t){return arguments.length?(d=t,v):d},v.arrows=function(t){return arguments.length?(p=t,v):p},v};var u={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},a={arrowhead:"normal",curve:i.curveLinear};function c(t,n){var e=t.select("g."+n);return e.empty()&&(e=t.append("g").attr("class",n)),e}},function(t,n,e){"use strict";var r=e(9),i=e(15),o=e(4),u=e(8);t.exports=function(t,n,e){var a=n.nodes().filter(function(t){return!o.isSubgraph(n,t)}),c=t.selectAll("g.node").data(a,function(t){return t}).classed("update",!0);return c.selectAll("*").remove(),c.enter().append("g").attr("class","node").style("opacity",0),(c=t.selectAll("g.node")).each(function(t){var a=n.node(t),c=u.select(this);o.applyClass(c,a.class,(c.classed("update")?"update ":"")+"node");var s=c.append("g").attr("class","label"),f=i(s,a),l=e[a.shape],h=r.pick(f.node().getBBox(),"width","height");a.elem=this,a.id&&c.attr("id",a.id),a.labelId&&s.attr("id",a.labelId),r.has(a,"width")&&(h.width=a.width),r.has(a,"height")&&(h.height=a.height),h.width+=a.paddingLeft+a.paddingRight,h.height+=a.paddingTop+a.paddingBottom,s.attr("transform","translate("+(a.paddingLeft-a.paddingRight)/2+","+(a.paddingTop-a.paddingBottom)/2+")");var d=l(u.select(this),h,a);o.applyStyle(d,a.style);var p=d.node().getBBox();a.width=p.width,a.height=p.height}),o.applyTransition(c.exit(),n).style("opacity",0).remove(),c}},function(t,n,e){var r=e(4);t.exports=function(t,n){for(var e=t.append("text"),i=function(t){for(var n,e="",r=!1,i=0;i-1&&(i0&&(u+=c,ar&&t.splice(r,t.length-r)}},{key:"filterQueries",value:function(t,n,e,r){var i=t.filter(function(t){for(var r=0;r=this.state.reorderInterval?(e=(e=this.filterQueries(e,this.state.stateFilters,this.state.errorTypeFilters,this.state.searchString)).concat(r),this.sortAndLimitQueries(e,this.state.currentSortType,this.state.currentSortOrder,0),u=Date.now()):(this.sortAndLimitQueries(r,this.state.currentSortType,this.state.currentSortOrder,0),e=e.concat(r)),0!==this.state.maxQueries&&e.length>this.state.maxQueries&&e.splice(this.state.maxQueries,e.length-this.state.maxQueries),this.setState({allQueries:t,displayedQueries:e,lastRefresh:o,lastReorder:u,initialized:!0}),this.resetTimer()}.bind(this)).error(function(){this.setState({initialized:!0}),this.resetTimer()}.bind(this))}},{key:"componentDidMount",value:function(){this.refreshLoop()}},{key:"handleSearchStringChange",value:function(t){var n=t.target.value;clearTimeout(this.searchTimeoutId),this.setState({searchString:n}),this.searchTimeoutId=setTimeout(this.executeSearch,200)}},{key:"executeSearch",value:function(){clearTimeout(this.searchTimeoutId);var t=this.filterQueries(this.state.allQueries,this.state.stateFilters,this.state.errorTypeFilters,this.state.searchString);this.sortAndLimitQueries(t,this.state.currentSortType,this.state.currentSortOrder,this.state.maxQueries),this.setState({displayedQueries:t})}},{key:"renderMaxQueriesListItem",value:function(t,n){return i.default.createElement("li",null,i.default.createElement("a",{href:"#",className:this.state.maxQueries===t?"selected":"",onClick:this.handleMaxQueriesClick.bind(this,t)},n))}},{key:"handleMaxQueriesClick",value:function(t){var n=this.filterQueries(this.state.allQueries,this.state.stateFilters,this.state.errorTypeFilters,this.state.searchString);this.sortAndLimitQueries(n,this.state.currentSortType,this.state.currentSortOrder,t),this.setState({maxQueries:t,displayedQueries:n})}},{key:"renderReorderListItem",value:function(t,n){return i.default.createElement("li",null,i.default.createElement("a",{href:"#",className:this.state.reorderInterval===t?"selected":"",onClick:this.handleReorderClick.bind(this,t)},n))}},{key:"handleReorderClick",value:function(t){this.state.reorderInterval!==t&&this.setState({reorderInterval:t})}},{key:"renderSortListItem",value:function(t,n){if(this.state.currentSortType===t){var e=this.state.currentSortOrder===p.ASCENDING?i.default.createElement("span",{className:"glyphicon glyphicon-triangle-top"}):i.default.createElement("span",{className:"glyphicon glyphicon-triangle-bottom"});return i.default.createElement("li",null,i.default.createElement("a",{href:"#",className:"selected",onClick:this.handleSortClick.bind(this,t)},n," ",e))}return i.default.createElement("li",null,i.default.createElement("a",{href:"#",onClick:this.handleSortClick.bind(this,t)},n))}},{key:"handleSortClick",value:function(t){var n=t,e=p.DESCENDING;this.state.currentSortType===t&&this.state.currentSortOrder===p.DESCENDING&&(e=p.ASCENDING);var r=this.filterQueries(this.state.allQueries,this.state.stateFilters,this.state.errorTypeFilters,this.state.searchString);this.sortAndLimitQueries(r,n,e,this.state.maxQueries),this.setState({displayedQueries:r,currentSortType:n,currentSortOrder:e})}},{key:"renderFilterButton",value:function(t,n){var e={color:"#57aac7"},r="btn btn-sm btn-info style-check";return this.state.stateFilters.indexOf(t)>-1&&(r+=" active",e={color:"#ffffff"}),i.default.createElement("button",{type:"button",className:r,onClick:this.handleStateFilterClick.bind(this,t)},i.default.createElement("span",{className:"glyphicon glyphicon-ok",style:e})," ",n)}},{key:"handleStateFilterClick",value:function(t){var n=this.state.stateFilters.slice();this.state.stateFilters.indexOf(t)>-1?n.splice(n.indexOf(t),1):n.push(t);var e=this.filterQueries(this.state.allQueries,n,this.state.errorTypeFilters,this.state.searchString);this.sortAndLimitQueries(e,this.state.currentSortType,this.state.currentSortOrder),this.setState({stateFilters:n,displayedQueries:e})}},{key:"renderErrorTypeListItem",value:function(t,n){var e={color:"#ffffff"};return this.state.errorTypeFilters.indexOf(t)>-1&&(e=o.GLYPHICON_HIGHLIGHT),i.default.createElement("li",null,i.default.createElement("a",{href:"#",onClick:this.handleErrorTypeFilterClick.bind(this,t)},i.default.createElement("span",{className:"glyphicon glyphicon-ok",style:e})," ",n))}},{key:"handleErrorTypeFilterClick",value:function(t){var n=this.state.errorTypeFilters.slice();this.state.errorTypeFilters.indexOf(t)>-1?n.splice(n.indexOf(t),1):n.push(t);var e=this.filterQueries(this.state.allQueries,this.state.stateFilters,n,this.state.searchString);this.sortAndLimitQueries(e,this.state.currentSortType,this.state.currentSortOrder),this.setState({errorTypeFilters:n,displayedQueries:e})}},{key:"render",value:function(){var t=i.default.createElement(f,{queries:this.state.displayedQueries});if(null===this.state.displayedQueries||0===this.state.displayedQueries.length){var n=i.default.createElement("div",{className:"loader"},"Loading...");this.state.initialized&&(n=null===this.state.allQueries||0===this.state.allQueries.length?"No queries":"No queries matched filters"),t=i.default.createElement("div",{className:"row error-message"},i.default.createElement("div",{className:"col-xs-12"},i.default.createElement("h4",null,n)))}return i.default.createElement("div",null,i.default.createElement("div",{className:"row toolbar-row"},i.default.createElement("div",{className:"col-xs-12 toolbar-col"},i.default.createElement("div",{className:"input-group input-group-sm"},i.default.createElement("input",{type:"text",className:"form-control form-control-small search-bar",placeholder:"User, source, query ID, resource group, or query text",onChange:this.handleSearchStringChange,value:this.state.searchString}),i.default.createElement("span",{className:"input-group-addon filter-addon"},"State:"),i.default.createElement("div",{className:"input-group-btn"},this.renderFilterButton(l.RUNNING,"Running"),this.renderFilterButton(l.QUEUED,"Queued"),this.renderFilterButton(l.FINISHED,"Finished"),i.default.createElement("button",{type:"button",id:"error-type-dropdown",className:"btn btn-default dropdown-toggle","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},"Failed ",i.default.createElement("span",{className:"caret"})),i.default.createElement("ul",{className:"dropdown-menu error-type-dropdown-menu"},this.renderErrorTypeListItem(d.INTERNAL_ERROR,"Internal Error"),this.renderErrorTypeListItem(d.EXTERNAL,"External Error"),this.renderErrorTypeListItem(d.INSUFFICIENT_RESOURCES,"Resources Error"),this.renderErrorTypeListItem(d.USER_ERROR,"User Error")))," ",i.default.createElement("div",{className:"input-group-btn"},i.default.createElement("button",{type:"button",className:"btn btn-default dropdown-toggle","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},"Sort ",i.default.createElement("span",{className:"caret"})),i.default.createElement("ul",{className:"dropdown-menu"},this.renderSortListItem(h.CREATED,"Creation Time"),this.renderSortListItem(h.ELAPSED,"Elapsed Time"),this.renderSortListItem(h.CPU,"CPU Time"),this.renderSortListItem(h.EXECUTION,"Execution Time"),this.renderSortListItem(h.CURRENT_MEMORY,"Current Memory"),this.renderSortListItem(h.CUMULATIVE_MEMORY,"Cumulative User Memory")))," ",i.default.createElement("div",{className:"input-group-btn"},i.default.createElement("button",{type:"button",className:"btn btn-default dropdown-toggle","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},"Reorder Interval ",i.default.createElement("span",{className:"caret"})),i.default.createElement("ul",{className:"dropdown-menu"},this.renderReorderListItem(1e3,"1s"),this.renderReorderListItem(5e3,"5s"),this.renderReorderListItem(1e4,"10s"),this.renderReorderListItem(3e4,"30s"),i.default.createElement("li",{role:"separator",className:"divider"}),this.renderReorderListItem(0,"Off")))," ",i.default.createElement("div",{className:"input-group-btn"},i.default.createElement("button",{type:"button",className:"btn btn-default dropdown-toggle","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},"Show ",i.default.createElement("span",{className:"caret"})),i.default.createElement("ul",{className:"dropdown-menu"},this.renderMaxQueriesListItem(20,"20 queries"),this.renderMaxQueriesListItem(50,"50 queries"),this.renderMaxQueriesListItem(100,"100 queries"),i.default.createElement("li",{role:"separator",className:"divider"}),this.renderMaxQueriesListItem(0,"All queries")))))),t)}}]),n}()},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.PageTitle=void 0;var r=function(){function t(t,n){for(var e=0;e3e4)&&($("#no-connection-modal").modal(),t.setState({modalShown:!0}))})}},{key:"resetTimer",value:function(){clearTimeout(this.timeoutId),this.timeoutId=setTimeout(this.refreshLoop.bind(this),1e3)}},{key:"componentDidMount",value:function(){this.refreshLoop.bind(this)()}},{key:"renderStatusLight",value:function(){return this.state.noConnection?this.state.lightShown?i.default.createElement("span",{className:"status-light status-light-red",id:"status-indicator"}):i.default.createElement("span",{className:"status-light",id:"status-indicator"}):i.default.createElement("span",{className:"status-light status-light-green",id:"status-indicator"})}},{key:"render",value:function(){var t=this.state.info;return t?i.default.createElement("div",null,i.default.createElement("nav",{className:"navbar"},i.default.createElement("div",{className:"container-fluid"},i.default.createElement("div",{className:"navbar-header"},i.default.createElement("table",null,i.default.createElement("tbody",null,i.default.createElement("tr",null,i.default.createElement("td",null,i.default.createElement("a",{href:"/ui/"},i.default.createElement("img",{src:"assets/logo.png"}))),i.default.createElement("td",null,i.default.createElement("span",{className:"navbar-brand"},"Presto Router Overview")))))),i.default.createElement("div",{id:"navbar",className:"navbar-collapse collapse"},i.default.createElement("ul",{className:"nav navbar-nav navbar-right"},i.default.createElement("li",null,i.default.createElement("span",{className:"navbar-cluster-info"},i.default.createElement("span",{className:"uppercase"},"Environment"),i.default.createElement("br",null),i.default.createElement("span",{className:"text uppercase",id:"environment"},t.environment))))))),i.default.createElement("div",{id:"no-connection-modal",className:"modal",tabIndex:"-1",role:"dialog"},i.default.createElement("div",{className:"modal-dialog modal-sm",role:"document"},i.default.createElement("div",{className:"modal-content"},i.default.createElement("div",{className:"row error-message"},i.default.createElement("div",{className:"col-xs-12"},i.default.createElement("br",null),i.default.createElement("h4",null,"Unable to connect to server"),i.default.createElement("p",null,this.state.errorText?"Error: "+this.state.errorText:null))))))):null}}]),n}()},function(t,n,e){"use strict";e.r(n);var r=function(t,n){return tn?1:t>=n?0:NaN},i=function(t){return 1===t.length&&(t=function(t){return function(n,e){return r(t(n),e)}}(t)),{left:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r>>1;t(n[o],e)<0?r=o+1:i=o}return r},right:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r>>1;t(n[o],e)>0?i=o:r=o+1}return r}}};var o=i(r),u=o.right,a=o.left,c=u,s=function(t,n){null==n&&(n=f);for(var e=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);et?1:n>=t?0:NaN},d=function(t){return null===t?NaN:+t},p=function(t,n){var e,r,i=t.length,o=0,u=-1,a=0,c=0;if(null==n)for(;++u1)return c/(o-1)},v=function(t,n){var e=p(t,n);return e?Math.sqrt(e):e},g=function(t,n){var e,r,i,o=t.length,u=-1;if(null==n){for(;++u=e)for(r=i=e;++ue&&(r=e),i=e)for(r=i=e;++ue&&(r=e),i0)return[t];if((r=n0)for(t=Math.ceil(t/u),n=Math.floor(n/u),o=new Array(i=Math.ceil(n-t+1));++a=0?(o>=M?10:o>=E?5:o>=k?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=M?10:o>=E?5:o>=k?2:1)}function S(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=M?i*=10:o>=E?i*=5:o>=k&&(i*=2),nl;)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]:f,p.x1=i=1)return+e(t[r-1],r-1,t);var r,i=(r-1)*n,o=Math.floor(i),u=+e(t[o],o,t);return u+(+e(t[o+1],o+1,t)-u)*(i-o)}},R=function(t,n,e){return t=_.call(t,d).sort(r),Math.ceil((e-n)/(2*(P(t,.75)-P(t,.25))*Math.pow(t.length,-1/3)))},I=function(t,n,e){return Math.ceil((e-n)/(3.5*v(t)*Math.pow(t.length,-1/3)))},L=function(t,n){var e,r,i=t.length,o=-1;if(null==n){for(;++o=e)for(r=e;++or&&(r=e)}else for(;++o=e)for(r=e;++or&&(r=e);return r},O=function(t,n){var e,r=t.length,i=r,o=-1,u=0;if(null==n)for(;++o=0;)for(n=(r=t[i]).length;--n>=0;)e[--u]=r[n];return e},z=function(t,n){var e,r,i=t.length,o=-1;if(null==n){for(;++o=e)for(r=e;++oe&&(r=e)}else for(;++o=e)for(r=e;++oe&&(r=e);return r},F=function(t,n){for(var e=n.length,r=new Array(e);e--;)r[e]=t[n[e]];return r},q=function(t,n){if(e=t.length){var e,i,o=0,u=0,a=t[u];for(null==n&&(n=r);++o=0&&(e=t.slice(r+1),t=t.slice(0,r)),t&&!n.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}})}(t+"",r),o=-1,u=i.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++o0)for(var e,r,i=new Array(e),o=0;o=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),pt.hasOwnProperty(n)?{space:pt[n],local:t}:t};var gt=function(t){var n=vt(t);return(n.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===dt&&n.documentElement.namespaceURI===dt?n.createElement(t):n.createElementNS(e,t)}})(n)};function yt(){}var mt=function(t){return null==t?yt:function(){return this.querySelector(t)}};function _t(){return[]}var bt=function(t){return null==t?_t:function(){return this.querySelectorAll(t)}},wt=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var xt=document.documentElement;if(!xt.matches){var Mt=xt.webkitMatchesSelector||xt.msMatchesSelector||xt.mozMatchesSelector||xt.oMatchesSelector;wt=function(t){return function(){return Mt.call(this,t)}}}}var Et=wt,kt=function(t){return new Array(t.length)};function Nt(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}Nt.prototype={constructor:Nt,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Tt="$";function St(t,n,e,r,i,o){for(var u,a=0,c=n.length,s=o.length;an?1:t>=n?0:NaN}var Pt=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function Rt(t,n){return t.style.getPropertyValue(n)||Pt(t).getComputedStyle(t,null).getPropertyValue(n)}function It(t){return t.trim().split(/^|\s+/)}function Lt(t){return t.classList||new Ot(t)}function Ot(t){this._node=t,this._names=It(t.getAttribute("class")||"")}function Dt(t,n){for(var e=Lt(t),r=-1,i=n.length;++r=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function zt(){this.textContent=""}function Ft(){this.innerHTML=""}function qt(){this.nextSibling&&this.parentNode.appendChild(this)}function jt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Bt(){return null}function Ht(){var t=this.parentNode;t&&t.removeChild(this)}function Yt(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function $t(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}var Vt={},Xt=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(Vt={mouseenter:"mouseover",mouseleave:"mouseout"}));function Wt(t,n,e){return t=Gt(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function Gt(t,n,e){return function(r){var i=Xt;Xt=r;try{t.call(this,this.__data__,n,e)}finally{Xt=i}}}function Qt(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,o=n.length;r=b&&(b=_+1);!(m=g[b])&&++b=0;)(r=i[o])&&(u&&u!==r.nextSibling&&u.parentNode.insertBefore(r,u),u=r);return this},sort:function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=At);for(var e=this._groups,r=e.length,i=new Array(r),o=0;o1?this.each((null==n?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof n?function(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}:function(t,n,e){return function(){this.style.setProperty(t,n,e)}})(t,n,null==e?"":e)):Rt(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?function(t){return function(){delete this[t]}}:"function"==typeof n?function(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}:function(t,n){return function(){this[t]=n}})(t,n)):this.node()[t]},classed:function(t,n){var e=It(t+"");if(arguments.length<2){for(var r=Lt(this.node()),i=-1,o=e.length;++i=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}})}(t+""),u=o.length;if(!(arguments.length<2)){for(a=n?Zt:Qt,null==e&&(e=!1),r=0;r>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):(n=xn.exec(t))?Pn(parseInt(n[1],16)):(n=Mn.exec(t))?new On(n[1],n[2],n[3],1):(n=En.exec(t))?new On(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=kn.exec(t))?Rn(n[1],n[2],n[3],n[4]):(n=Nn.exec(t))?Rn(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=Tn.exec(t))?Un(n[1],n[2]/100,n[3]/100,1):(n=Sn.exec(t))?Un(n[1],n[2]/100,n[3]/100,n[4]):Cn.hasOwnProperty(t)?Pn(Cn[t]):"transparent"===t?new On(NaN,NaN,NaN,0):null}function Pn(t){return new On(t>>16&255,t>>8&255,255&t,1)}function Rn(t,n,e,r){return r<=0&&(t=n=e=NaN),new On(t,n,e,r)}function In(t){return t instanceof yn||(t=An(t)),t?new On((t=t.rgb()).r,t.g,t.b,t.opacity):new On}function Ln(t,n,e,r){return 1===arguments.length?In(t):new On(t,n,e,null==r?1:r)}function On(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function Dn(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Un(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new Fn(t,n,e,r)}function zn(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof Fn)return new Fn(t.h,t.s,t.l,t.opacity);if(t instanceof yn||(t=An(t)),!t)return new Fn;if(t instanceof Fn)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),u=NaN,a=o-i,c=(o+i)/2;return a?(u=n===o?(e-r)/a+6*(e0&&c<1?0:u,new Fn(u,a,c,t.opacity)}(t):new Fn(t,n,e,null==r?1:r)}function Fn(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function qn(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}vn(yn,An,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),vn(On,Ln,gn(yn,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new On(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new On(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},hex:function(){return"#"+Dn(this.r)+Dn(this.g)+Dn(this.b)},toString:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"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===t?")":", "+t+")")}})),vn(Fn,zn,gn(yn,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Fn(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Fn(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new On(qn(t>=240?t-240:t+120,i,r),qn(t,i,r),qn(t<120?t+240:t-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}}));var jn=Math.PI/180,Bn=180/Math.PI,Hn=.96422,Yn=1,$n=.82521,Vn=4/29,Xn=6/29,Wn=3*Xn*Xn,Gn=Xn*Xn*Xn;function Qn(t){if(t instanceof Kn)return new Kn(t.l,t.a,t.b,t.opacity);if(t instanceof oe){if(isNaN(t.h))return new Kn(t.l,0,0,t.opacity);var n=t.h*jn;return new Kn(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}t instanceof On||(t=In(t));var e,r,i=ee(t.r),o=ee(t.g),u=ee(t.b),a=Jn((.2225045*i+.7168786*o+.0606169*u)/Yn);return i===o&&o===u?e=r=a:(e=Jn((.4360747*i+.3850649*o+.1430804*u)/Hn),r=Jn((.0139322*i+.0971045*o+.7141733*u)/$n)),new Kn(116*a-16,500*(e-a),200*(a-r),t.opacity)}function Zn(t,n,e,r){return 1===arguments.length?Qn(t):new Kn(t,n,e,null==r?1:r)}function Kn(t,n,e,r){this.l=+t,this.a=+n,this.b=+e,this.opacity=+r}function Jn(t){return t>Gn?Math.pow(t,1/3):t/Wn+Vn}function te(t){return t>Xn?t*t*t:Wn*(t-Vn)}function ne(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function ee(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function re(t){if(t instanceof oe)return new oe(t.h,t.c,t.l,t.opacity);if(t instanceof Kn||(t=Qn(t)),0===t.a&&0===t.b)return new oe(NaN,0,t.l,t.opacity);var n=Math.atan2(t.b,t.a)*Bn;return new oe(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function ie(t,n,e,r){return 1===arguments.length?re(t):new oe(t,n,e,null==r?1:r)}function oe(t,n,e,r){this.h=+t,this.c=+n,this.l=+e,this.opacity=+r}vn(Kn,Zn,gn(yn,{brighter:function(t){return new Kn(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new Kn(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,n=isNaN(this.a)?t:t+this.a/500,e=isNaN(this.b)?t:t-this.b/200;return new On(ne(3.1338561*(n=Hn*te(n))-1.6168667*(t=Yn*te(t))-.4906146*(e=$n*te(e))),ne(-.9787684*n+1.9161415*t+.033454*e),ne(.0719453*n-.2289914*t+1.4052427*e),this.opacity)}})),vn(oe,ie,gn(yn,{brighter:function(t){return new oe(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new oe(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return Qn(this).rgb()}}));var ue=-.29227,ae=-.90649,ce=1.97294,se=ce*ae,fe=1.78277*ce,le=1.78277*ue- -.14861*ae;function he(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof de)return new de(t.h,t.s,t.l,t.opacity);t instanceof On||(t=In(t));var n=t.r/255,e=t.g/255,r=t.b/255,i=(le*r+se*n-fe*e)/(le+se-fe),o=r-i,u=(ce*(e-i)-ue*o)/ae,a=Math.sqrt(u*u+o*o)/(ce*i*(1-i)),c=a?Math.atan2(u,o)*Bn-120:NaN;return new de(c<0?c+360:c,a,i,t.opacity)}(t):new de(t,n,e,null==r?1:r)}function de(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function pe(t,n,e,r,i){var o=t*t,u=o*t;return((1-3*t+3*o-u)*n+(4-6*o+3*u)*e+(1+3*t+3*o-3*u)*r+u*i)/6}vn(de,he,gn(yn,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new de(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new de(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*jn,n=+this.l,e=isNaN(this.s)?0:this.s*n*(1-n),r=Math.cos(t),i=Math.sin(t);return new On(255*(n+e*(-.14861*r+1.78277*i)),255*(n+e*(ue*r+ae*i)),255*(n+e*(ce*r)),this.opacity)}}));var ve=function(t){return function(){return t}};function ge(t,n){return function(e){return t+e*n}}function ye(t,n){var e=n-t;return e?ge(t,e>180||e<-180?e-360*Math.round(e/360):e):ve(isNaN(t)?n:t)}function me(t){return 1==(t=+t)?_e:function(n,e){return e-n?function(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}(n,e,t):ve(isNaN(n)?e:n)}}function _e(t,n){var e=n-t;return e?ge(t,e):ve(isNaN(t)?n:t)}var be=function t(n){var e=me(n);function r(t,n){var r=e((t=Ln(t)).r,(n=Ln(n)).r),i=e(t.g,n.g),o=e(t.b,n.b),u=_e(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=i(n),t.b=o(n),t.opacity=u(n),t+""}}return r.gamma=t,r}(1);function we(t){return function(n){var e,r,i=n.length,o=new Array(i),u=new Array(i),a=new Array(i);for(e=0;e=1?(e=1,n-1):Math.floor(e*n),i=t[r],o=t[r+1],u=r>0?t[r-1]:2*i-o,a=ro&&(i=n.slice(o,i),a[u]?a[u]+=i:a[++u]=i),(e=e[0])===(r=r[0])?a[u]?a[u]+=r:a[++u]=r:(a[++u]=null,c.push({i:u,x:xe(e,r)})),o=Ee.lastIndex;return o180?n+=360:n-t>180&&(t+=360),o.push({i:e.push(i(e)+"rotate(",null,r)-2,x:xe(t,n)})):n&&e.push(i(e)+"rotate("+n+r)}(o.rotate,u.rotate,a,c),function(t,n,e,o){t!==n?o.push({i:e.push(i(e)+"skewX(",null,r)-2,x:xe(t,n)}):n&&e.push(i(e)+"skewX("+n+r)}(o.skewX,u.skewX,a,c),function(t,n,e,r,o,u){if(t!==e||n!==r){var a=o.push(i(o)+"scale(",null,",",null,")");u.push({i:a-4,x:xe(t,e)},{i:a-2,x:xe(n,r)})}else 1===e&&1===r||o.push(i(o)+"scale("+e+","+r+")")}(o.scaleX,o.scaleY,u.scaleX,u.scaleY,a,c),o=u=null,function(t){for(var n,e=-1,r=c.length;++e=0&&n._call.call(null,t),n=n._next;--Be}()}finally{Be=0,function(){var t,n,e=qe,r=1/0;for(;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:qe=n);je=t,rr(r)}(),Xe=0}}function er(){var t=Ge.now(),n=t-Ve;n>$e&&(We-=n,Ve=t)}function rr(t){Be||(He&&(He=clearTimeout(He)),t-Xe>24?(t<1/0&&(He=setTimeout(nr,t-Ge.now()-We)),Ye&&(Ye=clearInterval(Ye))):(Ye||(Ve=Ge.now(),Ye=setInterval(er,$e)),Be=1,Qe(nr)))}Je.prototype=tr.prototype={constructor:Je,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?Ze():+e)+(null==n?0:+n),this._next||je===this||(je?je._next=this:qe=this,je=this),this._call=t,this._time=e,rr()},stop:function(){this._call&&(this._call=null,this._time=1/0,rr())}};var ir=function(t,n,e){var r=new Je;return n=null==n?0:+n,r.restart(function(e){r.stop(),t(e+n)},n,e),r},or=ht("start","end","interrupt"),ur=[],ar=0,cr=1,sr=2,fr=3,lr=4,hr=5,dr=6,pr=function(t,n,e,r,i,o){var u=t.__transition;if(u){if(e in u)return}else t.__transition={};!function(t,n,e){var r,i=t.__transition;function o(c){var s,f,l,h;if(e.state!==cr)return a();for(s in i)if((h=i[s]).name===e.name){if(h.state===fr)return ir(o);h.state===lr?(h.state=dr,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[s]):+sar)throw new Error("too late; already scheduled");return e}function gr(t,n){var e=yr(t,n);if(e.state>sr)throw new Error("too late; already started");return e}function yr(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}var mr=function(t,n){var e,r,i,o=t.__transition,u=!0;if(o){for(i in n=null==n?null:n+"",o)(e=o[i]).name===n?(r=e.state>sr&&e.state
=0&&(t=t.slice(0,n)),!t||"start"===t})}(n)?vr:gr;return function(){var u=o(this,t),a=u.on;a!==r&&(i=(r=a).copy()).on(n,e),u.on=i}}(e,t,n))},attr:function(t,n){var e=vt(t),r="transform"===e?De:br;return this.attrTween(t,"function"==typeof n?(e.local?function(t,n,e){var r,i,o;return function(){var u,a=e(this);if(null!=a)return(u=this.getAttributeNS(t.space,t.local))===a?null:u===r&&a===i?o:o=n(r=u,i=a);this.removeAttributeNS(t.space,t.local)}}:function(t,n,e){var r,i,o;return function(){var u,a=e(this);if(null!=a)return(u=this.getAttribute(t))===a?null:u===r&&a===i?o:o=n(r=u,i=a);this.removeAttribute(t)}})(e,r,_r(this,"attr."+t,n)):null==n?(e.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}})(e):(e.local?function(t,n,e){var r,i;return function(){var o=this.getAttributeNS(t.space,t.local);return o===e?null:o===r?i:i=n(r=o,e)}}:function(t,n,e){var r,i;return function(){var o=this.getAttribute(t);return o===e?null:o===r?i:i=n(r=o,e)}})(e,r,n+""))},attrTween:function(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!=typeof n)throw new Error;var r=vt(t);return this.tween(e,(r.local?function(t,n){function e(){var e=this,r=n.apply(e,arguments);return r&&function(n){e.setAttributeNS(t.space,t.local,r(n))}}return e._value=n,e}:function(t,n){function e(){var e=this,r=n.apply(e,arguments);return r&&function(n){e.setAttribute(t,r(n))}}return e._value=n,e})(r,n))},style:function(t,n,e){var r="transform"==(t+="")?Oe:br;return null==n?this.styleTween(t,function(t,n){var e,r,i;return function(){var o=Rt(this,t),u=(this.style.removeProperty(t),Rt(this,t));return o===u?null:o===e&&u===r?i:i=n(e=o,r=u)}}(t,r)).on("end.style."+t,function(t){return function(){this.style.removeProperty(t)}}(t)):this.styleTween(t,"function"==typeof n?function(t,n,e){var r,i,o;return function(){var u=Rt(this,t),a=e(this);return null==a&&(this.style.removeProperty(t),a=Rt(this,t)),u===a?null:u===r&&a===i?o:o=n(r=u,i=a)}}(t,r,_r(this,"style."+t,n)):function(t,n,e){var r,i;return function(){var o=Rt(this,t);return o===e?null:o===r?i:i=n(r=o,e)}}(t,r,n+""),e)},styleTween:function(t,n,e){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==n)return this.tween(r,null);if("function"!=typeof n)throw new Error;return this.tween(r,function(t,n,e){function r(){var r=this,i=n.apply(r,arguments);return i&&function(n){r.style.setProperty(t,i(n),e)}}return r._value=n,r}(t,n,null==e?"":e))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var n=t(this);this.textContent=null==n?"":n}}(_r(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},remove:function(){return this.on("end.remove",function(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}(this._id))},tween:function(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r,i=yr(this.node(),e).tween,o=0,u=i.length;o0&&(e=i-d),x<0?l=h-p:x>0&&(o=u-p),b=Lr,O.attr("cursor",qr.selection),z());break;default:return}Rr()},!0).on("keyup.brush",function(){switch(Xt.keyCode){case 16:A&&(g=y=A=!1,z());break;case 18:b===Dr&&(w<0?s=f:w>0&&(e=i),x<0?l=h:x>0&&(o=u),b=Or,z());break;case 32:b===Lr&&(Xt.altKey?(w&&(s=f-d*w,e=i+d*w),x&&(l=h-p*x,o=u+p*x),b=Dr):(w<0?s=f:w>0&&(e=i),x<0?l=h:x>0&&(o=u),b=Or),O.attr("cursor",qr[_]),z());break;default:return}Rr()},!0).on("mousemove.brush",U,!0).on("mouseup.brush",F,!0);hn(Xt.view)}Pr(),mr(m),a.call(m),I.start()}function U(){var t=fn(m);!A||g||y||(Math.abs(t[0]-R[0])>Math.abs(t[1]-R[1])?y=!0:g=!0),R=t,v=!0,Rr(),z()}function z(){var t;switch(d=R[0]-P[0],p=R[1]-P[1],b){case Lr:case Ir:w&&(d=Math.max(N-e,Math.min(S-s,d)),i=e+d,f=s+d),x&&(p=Math.max(T-o,Math.min(C-l,p)),u=o+p,h=l+p);break;case Or:w<0?(d=Math.max(N-e,Math.min(S-e,d)),i=e+d,f=s):w>0&&(d=Math.max(N-s,Math.min(S-s,d)),i=e,f=s+d),x<0?(p=Math.max(T-o,Math.min(C-o,p)),u=o+p,h=l):x>0&&(p=Math.max(T-l,Math.min(C-l,p)),u=o,h=l+p);break;case Dr:w&&(i=Math.max(N,Math.min(S,e-d*w)),f=Math.max(N,Math.min(S,s+d*w))),x&&(u=Math.max(T,Math.min(C,o-p*x)),h=Math.max(T,Math.min(C,l+p*x)))}fn?1:t>=n?0:NaN};var ei=function(t){return 1===t.length&&(t=function(t){return function(n,e){return ni(t(n),e)}}(t)),{left:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r>>1;t(n[o],e)<0?r=o+1:i=o}return r},right:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r>>1;t(n[o],e)>0?i=o:r=o+1}return r}}}(ni);ei.right,ei.left;var ri=Array.prototype,ii=(ri.slice,ri.map,function(t,n,e){t=+t,n=+n,e=(i=arguments.length)<2?(n=t,t=0,1):i<3?1:+e;for(var r=-1,i=0|Math.max(0,Math.ceil((n-t)/e)),o=new Array(i);++r1e-6)if(Math.abs(f*a-c*s)>1e-6&&i){var h=e-o,d=r-u,p=a*a+c*c,v=h*h+d*d,g=Math.sqrt(p),y=Math.sqrt(l),m=i*Math.tan((pi-Math.acos((p+l-v)/(2*g*y)))/2),_=m/y,b=m/g;Math.abs(_-1)>1e-6&&(this._+="L"+(t+_*s)+","+(n+_*f)),this._+="A"+i+","+i+",0,0,"+ +(f*h>s*d)+","+(this._x1=t+b*a)+","+(this._y1=n+b*c)}else this._+="L"+(this._x1=t)+","+(this._y1=n);else;},arc:function(t,n,e,r,i,o){t=+t,n=+n;var u=(e=+e)*Math.cos(r),a=e*Math.sin(r),c=t+u,s=n+a,f=1^o,l=o?r-i:i-r;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+c+","+s:(Math.abs(this._x1-c)>1e-6||Math.abs(this._y1-s)>1e-6)&&(this._+="L"+c+","+s),e&&(l<0&&(l=l%vi+vi),l>gi?this._+="A"+e+","+e+",0,1,"+f+","+(t-u)+","+(n-a)+"A"+e+","+e+",0,1,"+f+","+(this._x1=c)+","+(this._y1=s):l>1e-6&&(this._+="A"+e+","+e+",0,"+ +(l>=pi)+","+f+","+(this._x1=t+e*Math.cos(i))+","+(this._y1=n+e*Math.sin(i))))},rect:function(t,n,e,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +r+"h"+-e+"Z"},toString:function(){return this._}};var _i=mi;function bi(t){return t.source}function wi(t){return t.target}function xi(t){return t.radius}function Mi(t){return t.startAngle}function Ei(t){return t.endAngle}var ki=function(){var t=bi,n=wi,e=xi,r=Mi,i=Ei,o=null;function u(){var u,a=hi.call(arguments),c=t.apply(this,a),s=n.apply(this,a),f=+e.apply(this,(a[0]=c,a)),l=r.apply(this,a)-ci,h=i.apply(this,a)-ci,d=f*oi(l),p=f*ui(l),v=+e.apply(this,(a[0]=s,a)),g=r.apply(this,a)-ci,y=i.apply(this,a)-ci;if(o||(o=u=_i()),o.moveTo(d,p),o.arc(0,0,f,l,h),l===g&&h===y||(o.quadraticCurveTo(0,0,v*oi(g),v*ui(g)),o.arc(0,0,v,g,y)),o.quadraticCurveTo(0,0,d,p),o.closePath(),u)return o=null,u+""||null}return u.radius=function(t){return arguments.length?(e="function"==typeof t?t:di(+t),u):e},u.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:di(+t),u):r},u.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:di(+t),u):i},u.source=function(n){return arguments.length?(t=n,u):t},u.target=function(t){return arguments.length?(n=t,u):n},u.context=function(t){return arguments.length?(o=null==t?null:t,u):o},u};function Ni(){}function Ti(t,n){var e=new Ni;if(t instanceof Ni)t.each(function(t,n){e.set(n,t)});else if(Array.isArray(t)){var r,i=-1,o=t.length;if(null==n)for(;++i=r.length)return null!=t&&e.sort(t),null!=n?n(e):e;for(var c,s,f,l=-1,h=e.length,d=r[i++],p=Si(),v=u();++lr.length)return e;var u,a=i[o-1];return null!=n&&o>=r.length?u=e.entries():(u=[],e.each(function(n,e){u.push({key:e,values:t(n,o)})})),null!=a?u.sort(function(t,n){return a(t.key,n.key)}):u}(o(t,0,Ri,Ii),0)},key:function(t){return r.push(t),e},sortKeys:function(t){return i[r.length-1]=t,e},sortValues:function(n){return t=n,e},rollup:function(t){return n=t,e}}};function Ai(){return{}}function Pi(t,n,e){t[n]=e}function Ri(){return Si()}function Ii(t,n,e){t.set(n,e)}function Li(){}var Oi=Si.prototype;function Di(t,n){var e=new Li;if(t instanceof Li)t.each(function(t){e.add(t)});else if(t){var r=-1,i=t.length;if(null==n)for(;++r>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):(n=Wi.exec(t))?ro(parseInt(n[1],16)):(n=Gi.exec(t))?new ao(n[1],n[2],n[3],1):(n=Qi.exec(t))?new ao(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=Zi.exec(t))?io(n[1],n[2],n[3],n[4]):(n=Ki.exec(t))?io(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=Ji.exec(t))?co(n[1],n[2]/100,n[3]/100,1):(n=to.exec(t))?co(n[1],n[2]/100,n[3]/100,n[4]):no.hasOwnProperty(t)?ro(no[t]):"transparent"===t?new ao(NaN,NaN,NaN,0):null}function ro(t){return new ao(t>>16&255,t>>8&255,255&t,1)}function io(t,n,e,r){return r<=0&&(t=n=e=NaN),new ao(t,n,e,r)}function oo(t){return t instanceof Hi||(t=eo(t)),t?new ao((t=t.rgb()).r,t.g,t.b,t.opacity):new ao}function uo(t,n,e,r){return 1===arguments.length?oo(t):new ao(t,n,e,null==r?1:r)}function ao(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function co(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new fo(t,n,e,r)}function so(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof fo)return new fo(t.h,t.s,t.l,t.opacity);if(t instanceof Hi||(t=eo(t)),!t)return new fo;if(t instanceof fo)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),u=NaN,a=o-i,c=(o+i)/2;return a?(u=n===o?(e-r)/a+6*(e0&&c<1?0:u,new fo(u,a,c,t.opacity)}(t):new fo(t,n,e,null==r?1:r)}function fo(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function lo(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}ji(Hi,eo,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),ji(ao,uo,Bi(Hi,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new ao(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new ao(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"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===t?")":", "+t+")")}})),ji(fo,so,Bi(Hi,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new fo(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new fo(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new ao(lo(t>=240?t-240:t+120,i,r),lo(t,i,r),lo(t<120?t+240:t-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}}));var ho=Math.PI/180,po=180/Math.PI,vo=.95047,go=1,yo=1.08883,mo=4/29,_o=6/29,bo=3*_o*_o,wo=_o*_o*_o;function xo(t){if(t instanceof Eo)return new Eo(t.l,t.a,t.b,t.opacity);if(t instanceof Ao){var n=t.h*ho;return new Eo(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}t instanceof ao||(t=oo(t));var e=So(t.r),r=So(t.g),i=So(t.b),o=ko((.4124564*e+.3575761*r+.1804375*i)/vo),u=ko((.2126729*e+.7151522*r+.072175*i)/go);return new Eo(116*u-16,500*(o-u),200*(u-ko((.0193339*e+.119192*r+.9503041*i)/yo)),t.opacity)}function Mo(t,n,e,r){return 1===arguments.length?xo(t):new Eo(t,n,e,null==r?1:r)}function Eo(t,n,e,r){this.l=+t,this.a=+n,this.b=+e,this.opacity=+r}function ko(t){return t>wo?Math.pow(t,1/3):t/bo+mo}function No(t){return t>_o?t*t*t:bo*(t-mo)}function To(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function So(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Co(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof Ao)return new Ao(t.h,t.c,t.l,t.opacity);t instanceof Eo||(t=xo(t));var n=Math.atan2(t.b,t.a)*po;return new Ao(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new Ao(t,n,e,null==r?1:r)}function Ao(t,n,e,r){this.h=+t,this.c=+n,this.l=+e,this.opacity=+r}ji(Eo,Mo,Bi(Hi,{brighter:function(t){return new Eo(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new Eo(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,n=isNaN(this.a)?t:t+this.a/500,e=isNaN(this.b)?t:t-this.b/200;return t=go*No(t),new ao(To(3.2404542*(n=vo*No(n))-1.5371385*t-.4985314*(e=yo*No(e))),To(-.969266*n+1.8760108*t+.041556*e),To(.0556434*n-.2040259*t+1.0572252*e),this.opacity)}})),ji(Ao,Co,Bi(Hi,{brighter:function(t){return new Ao(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new Ao(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return xo(this).rgb()}}));var Po=-.29227,Ro=-.90649,Io=1.97294,Lo=Io*Ro,Oo=1.78277*Io,Do=1.78277*Po- -.14861*Ro;function Uo(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof zo)return new zo(t.h,t.s,t.l,t.opacity);t instanceof ao||(t=oo(t));var n=t.r/255,e=t.g/255,r=t.b/255,i=(Do*r+Lo*n-Oo*e)/(Do+Lo-Oo),o=r-i,u=(Io*(e-i)-Po*o)/Ro,a=Math.sqrt(u*u+o*o)/(Io*i*(1-i)),c=a?Math.atan2(u,o)*po-120:NaN;return new zo(c<0?c+360:c,a,i,t.opacity)}(t):new zo(t,n,e,null==r?1:r)}function zo(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}ji(zo,Uo,Bi(Hi,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new zo(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new zo(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*ho,n=+this.l,e=isNaN(this.s)?0:this.s*n*(1-n),r=Math.cos(t),i=Math.sin(t);return new ao(255*(n+e*(-.14861*r+1.78277*i)),255*(n+e*(Po*r+Ro*i)),255*(n+e*(Io*r)),this.opacity)}}));var Fo={value:function(){}};function qo(){for(var t,n=0,e=arguments.length,r={};n=0&&(e=t.slice(r+1),t=t.slice(0,r)),t&&!n.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}})}(t+"",r),o=-1,u=i.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++o0)for(var e,r,i=new Array(e),o=0;o=0&&(e=t.slice(r+1),t=t.slice(0,r)),t&&!n.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}})}(t+"",r),o=-1,u=i.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++o0)for(var e,r,i=new Array(e),o=0;o=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),Ko.hasOwnProperty(n)?{space:Ko[n],local:t}:t};var tu=function(t){var n=Jo(t);return(n.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===Zo&&n.documentElement.namespaceURI===Zo?n.createElement(t):n.createElementNS(e,t)}})(n)};function nu(){}var eu=function(t){return null==t?nu:function(){return this.querySelector(t)}};function ru(){return[]}var iu=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var ou=document.documentElement;if(!ou.matches){var uu=ou.webkitMatchesSelector||ou.msMatchesSelector||ou.mozMatchesSelector||ou.oMatchesSelector;iu=function(t){return function(){return uu.call(this,t)}}}}var au=iu,cu=function(t){return new Array(t.length)};function su(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}su.prototype={constructor:su,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var fu="$";function lu(t,n,e,r,i,o){for(var u,a=0,c=n.length,s=o.length;an?1:t>=n?0:NaN}var pu=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function vu(t){return t.trim().split(/^|\s+/)}function gu(t){return t.classList||new yu(t)}function yu(t){this._node=t,this._names=vu(t.getAttribute("class")||"")}function mu(t,n){for(var e=gu(t),r=-1,i=n.length;++r=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function bu(){this.textContent=""}function wu(){this.innerHTML=""}function xu(){this.nextSibling&&this.parentNode.appendChild(this)}function Mu(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Eu(){return null}function ku(){var t=this.parentNode;t&&t.removeChild(this)}function Nu(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function Tu(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}var Su={},Cu=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(Su={mouseenter:"mouseover",mouseleave:"mouseout"}));function Au(t,n,e){return t=Pu(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function Pu(t,n,e){return function(r){var i=Cu;Cu=r;try{t.call(this,this.__data__,n,e)}finally{Cu=i}}}function Ru(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,o=n.length;r=b&&(b=_+1);!(m=g[b])&&++b=0;)(r=i[o])&&(u&&u!==r.nextSibling&&u.parentNode.insertBefore(r,u),u=r);return this},sort:function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=du);for(var e=this._groups,r=e.length,i=new Array(r),o=0;o1?this.each((null==n?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof n?function(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}:function(t,n,e){return function(){this.style.setProperty(t,n,e)}})(t,n,null==e?"":e)):function(t,n){return t.style.getPropertyValue(n)||pu(t).getComputedStyle(t,null).getPropertyValue(n)}(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?function(t){return function(){delete this[t]}}:"function"==typeof n?function(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}:function(t,n){return function(){this[t]=n}})(t,n)):this.node()[t]},classed:function(t,n){var e=vu(t+"");if(arguments.length<2){for(var r=gu(this.node()),i=-1,o=e.length;++i=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}})}(t+""),u=o.length;if(!(arguments.length<2)){for(a=n?Iu:Ru,null==e&&(e=!1),r=0;rl}c.mouse("drag")}function v(){Fu(Cu.view).on("mousemove.drag mouseup.drag",null),Gu(Cu.view,e),Xu(),c.mouse("end")}function g(){if(i.apply(this,arguments)){var t,n,e=Cu.changedTouches,r=o.apply(this,arguments),u=e.length;for(t=0;t=o?c=!0:(r=t.charCodeAt(u++))===ua?s=!0:r===aa&&(s=!0,t.charCodeAt(u)===ua&&++u),t.slice(i+1,n-1).replace(/""/g,'"')}for(;u=(o=(v+y)/2))?v=o:y=o,(f=e>=(u=(g+m)/2))?g=u:m=u,i=d,!(d=d[l=f<<1|s]))return i[l]=p,t;if(a=+t._x.call(null,d.data),c=+t._y.call(null,d.data),n===a&&e===c)return p.next=d,i?i[l]=p:t._root=p,t;do{i=i?i[l]=new Array(4):t._root=new Array(4),(s=n>=(o=(v+y)/2))?v=o:y=o,(f=e>=(u=(g+m)/2))?g=u:m=u}while((l=f<<1|s)==(h=(c>=u)<<1|a>=o));return i[h]=d,i[l]=p,t}var lc=function(t,n,e,r,i){this.node=t,this.x0=n,this.y0=e,this.x1=r,this.y1=i};function hc(t){return t[0]}function dc(t){return t[1]}function pc(t,n,e){var r=new vc(null==n?hc:n,null==e?dc:e,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function vc(t,n,e,r,i,o){this._x=t,this._y=n,this._x0=e,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function gc(t){for(var n={data:t.data},e=n;t=t.next;)e=e.next={data:t.data};return n}var yc=pc.prototype=vc.prototype;function mc(t){return t.x+t.vx}function _c(t){return t.y+t.vy}yc.copy=function(){var t,n,e=new vc(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return e;if(!r.length)return e._root=gc(r),e;for(t=[{source:r,target:e._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(n=r.source[i])&&(n.length?t.push({source:n,target:r.target[i]=new Array(4)}):r.target[i]=gc(n));return e},yc.add=function(t){var n=+this._x.call(null,t),e=+this._y.call(null,t);return fc(this.cover(n,e),n,e,t)},yc.addAll=function(t){var n,e,r,i,o=t.length,u=new Array(o),a=new Array(o),c=1/0,s=1/0,f=-1/0,l=-1/0;for(e=0;ef&&(f=r),il&&(l=i));for(ft||t>i||r>n||n>o))return this;var u,a,c=i-e,s=this._root;switch(a=(n<(r+o)/2)<<1|t<(e+i)/2){case 0:do{(u=new Array(4))[a]=s,s=u}while(o=r+(c*=2),t>(i=e+c)||n>o);break;case 1:do{(u=new Array(4))[a]=s,s=u}while(o=r+(c*=2),(e=i-c)>t||n>o);break;case 2:do{(u=new Array(4))[a]=s,s=u}while(r=o-(c*=2),t>(i=e+c)||r>n);break;case 3:do{(u=new Array(4))[a]=s,s=u}while(r=o-(c*=2),(e=i-c)>t||r>n)}this._root&&this._root.length&&(this._root=s)}return this._x0=e,this._y0=r,this._x1=i,this._y1=o,this},yc.data=function(){var t=[];return this.visit(function(n){if(!n.length)do{t.push(n.data)}while(n=n.next)}),t},yc.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},yc.find=function(t,n,e){var r,i,o,u,a,c,s,f=this._x0,l=this._y0,h=this._x1,d=this._y1,p=[],v=this._root;for(v&&p.push(new lc(v,f,l,h,d)),null==e?e=1/0:(f=t-e,l=n-e,h=t+e,d=n+e,e*=e);c=p.pop();)if(!(!(v=c.node)||(i=c.x0)>h||(o=c.y0)>d||(u=c.x1)=y)<<1|t>=g)&&(c=p[p.length-1],p[p.length-1]=p[p.length-1-s],p[p.length-1-s]=c)}else{var m=t-+this._x.call(null,v.data),_=n-+this._y.call(null,v.data),b=m*m+_*_;if(b=(a=(p+g)/2))?p=a:g=a,(f=u>=(c=(v+y)/2))?v=c:y=c,n=d,!(d=d[l=f<<1|s]))return this;if(!d.length)break;(n[l+1&3]||n[l+2&3]||n[l+3&3])&&(e=n,h=l)}for(;d.data!==t;)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):n?(i?n[l]=i:delete n[l],(d=n[0]||n[1]||n[2]||n[3])&&d===(n[3]||n[2]||n[1]||n[0])&&!d.length&&(e?e[h]=d:this._root=d),this):(this._root=i,this)},yc.removeAll=function(t){for(var n=0,e=t.length;nc+d||is+d||oa.index){var p=c-u.x-u.vx,v=s-u.y-u.vy,g=p*p+v*v;gt.r&&(t.r=t[n].r)}function a(){if(n){var r,i,o=n.length;for(e=new Array(o),r=0;r=0&&(e=t.slice(r+1),t=t.slice(0,r)),t&&!n.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}})}(t+"",r),o=-1,u=i.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++o0)for(var e,r,i=new Array(e),o=0;o=0&&n._call.call(null,t),n=n._next;--zc}()}finally{zc=0,function(){var t,n,e=Oc,r=1/0;for(;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Oc=n);Dc=t,Jc(r)}(),Hc=0}}function Kc(){var t=$c.now(),n=t-Bc;n>jc&&(Yc-=n,Bc=t)}function Jc(t){zc||(Fc&&(Fc=clearTimeout(Fc)),t-Hc>24?(t<1/0&&(Fc=setTimeout(Zc,t-$c.now()-Yc)),qc&&(qc=clearInterval(qc))):(qc||(Bc=$c.now(),qc=setInterval(Kc,jc)),zc=1,Vc(Zc)))}Gc.prototype=Qc.prototype={constructor:Gc,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?Xc():+e)+(null==n?0:+n),this._next||Dc===this||(Dc?Dc._next=this:Oc=this,Dc=this),this._call=t,this._time=e,Jc()},stop:function(){this._call&&(this._call=null,this._time=1/0,Jc())}};function ts(t){return t.x}function ns(t){return t.y}var es,rs=10,is=Math.PI*(3-Math.sqrt(5)),os=function(t){var n,e=1,r=.001,i=1-Math.pow(r,1/300),o=0,u=.6,a=Mc(),c=Qc(f),s=Uc("tick","end");function f(){l(),s.call("tick",n),e1?(null==e?a.remove(t):a.set(t,d(e)),n):a.get(t)},find:function(n,e,r){var i,o,u,a,c,s=0,f=t.length;for(null==r?r=1/0:r*=r,s=0;s1?(s.on(t,e),n):s.on(t)}}},us=function(){var t,n,e,r,i=cc(-30),o=1,u=1/0,a=.81;function c(r){var i,o=t.length,u=pc(t,ts,ns).visitAfter(f);for(e=r,i=0;i=u)){(t.data!==n||t.next)&&(0===f&&(d+=(f=sc())*f),0===l&&(d+=(l=sc())*l),d1?r[0]+r.slice(2):r,+t.slice(e+1)]},ls=function(t){return(t=fs(Math.abs(t)))?t[1]:NaN},hs=function(t,n){var e=fs(t,n);if(!e)return t+"";var r=e[0],i=e[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")},ds={"":function(t,n){t=t.toPrecision(n);t:for(var e,r=t.length,i=1,o=-1;i0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t},"%":function(t,n){return(100*t).toFixed(n)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},g:function(t,n){return t.toPrecision(n)},o:function(t){return Math.round(t).toString(8)},p:function(t,n){return hs(100*t,n)},r:hs,s:function(t,n){var e=fs(t,n);if(!e)return t+"";var r=e[0],i=e[1],o=i-(es=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,u=r.length;return o===u?r:o>u?r+new Array(o-u+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+fs(t,Math.max(0,n+o-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},ps=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;function vs(t){return new gs(t)}function gs(t){if(!(n=ps.exec(t)))throw new Error("invalid format: "+t);var n,e=n[1]||" ",r=n[2]||">",i=n[3]||"-",o=n[4]||"",u=!!n[5],a=n[6]&&+n[6],c=!!n[7],s=n[8]&&+n[8].slice(1),f=n[9]||"";"n"===f?(c=!0,f="g"):ds[f]||(f=""),(u||"0"===e&&"="===r)&&(u=!0,e="0",r="="),this.fill=e,this.align=r,this.sign=i,this.symbol=o,this.zero=u,this.width=a,this.comma=c,this.precision=s,this.type=f}vs.prototype=gs.prototype,gs.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+this.type};var ys,ms,_s,bs=function(t){return t},ws=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],xs=function(t){var n=t.grouping&&t.thousands?function(t,n){return function(e,r){for(var i=e.length,o=[],u=0,a=t[0],c=0;i>0&&a>0&&(c+a+1>r&&(a=Math.max(1,r-c)),o.push(e.substring(i-=a,i+a)),!((c+=a+1)>r));)a=t[u=(u+1)%t.length];return o.reverse().join(n)}}(t.grouping,t.thousands):bs,e=t.currency,r=t.decimal,i=t.numerals?function(t){return function(n){return n.replace(/[0-9]/g,function(n){return t[+n]})}}(t.numerals):bs,o=t.percent||"%";function u(t){var u=(t=vs(t)).fill,a=t.align,c=t.sign,s=t.symbol,f=t.zero,l=t.width,h=t.comma,d=t.precision,p=t.type,v="$"===s?e[0]:"#"===s&&/[boxX]/.test(p)?"0"+p.toLowerCase():"",g="$"===s?e[1]:/[%p]/.test(p)?o:"",y=ds[p],m=!p||/[defgprs%]/.test(p);function _(t){var e,o,s,_=v,b=g;if("c"===p)b=y(t)+b,t="";else{var w=(t=+t)<0;if(t=y(Math.abs(t),d),w&&0==+t&&(w=!1),_=(w?"("===c?c:"-":"-"===c||"("===c?"":c)+_,b=("s"===p?ws[8+es/3]:"")+b+(w&&"("===c?")":""),m)for(e=-1,o=t.length;++e(s=t.charCodeAt(e))||s>57){b=(46===s?r+t.slice(e+1):t.slice(e))+b,t=t.slice(0,e);break}}h&&!f&&(t=n(t,1/0));var x=_.length+t.length+b.length,M=x>1)+_+t+b+M.slice(x);break;default:t=M+_+t+b}return i(t)}return d=null==d?p?6:12:/[gprs]/.test(p)?Math.max(1,Math.min(21,d)):Math.max(0,Math.min(20,d)),_.toString=function(){return t+""},_}return{format:u,formatPrefix:function(t,n){var e=u(((t=vs(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(ls(n)/3))),i=Math.pow(10,-r),o=ws[8+r/3];return function(t){return e(i*t)+o}}}};function Ms(t){return ys=xs(t),ms=ys.format,_s=ys.formatPrefix,ys}Ms({decimal:".",thousands:",",grouping:[3],currency:["$",""]});var Es=function(t){return Math.max(0,-ls(Math.abs(t)))},ks=function(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(ls(n)/3)))-ls(Math.abs(t)))},Ns=function(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,ls(n)-ls(t))+1},Ts=function(){return new Ss};function Ss(){this.reset()}Ss.prototype={constructor:Ss,reset:function(){this.s=this.t=0},add:function(t){As(Cs,t,this.t),As(this,Cs.s,this.s),this.s?this.t+=Cs.t:this.s=Cs.t},valueOf:function(){return this.s}};var Cs=new Ss;function As(t,n,e){var r=t.s=n+e,i=r-n,o=r-i;t.t=n-o+(e-i)}var Ps=1e-6,Rs=Math.PI,Is=Rs/2,Ls=Rs/4,Os=2*Rs,Ds=180/Rs,Us=Rs/180,zs=Math.abs,Fs=Math.atan,qs=Math.atan2,js=Math.cos,Bs=Math.ceil,Hs=Math.exp,Ys=(Math.floor,Math.log),$s=Math.pow,Vs=Math.sin,Xs=Math.sign||function(t){return t>0?1:t<0?-1:0},Ws=Math.sqrt,Gs=Math.tan;function Qs(t){return t>1?0:t<-1?Rs:Math.acos(t)}function Zs(t){return t>1?Is:t<-1?-Is:Math.asin(t)}function Ks(t){return(t=Vs(t/2))*t}function Js(){}function tf(t,n){t&&ef.hasOwnProperty(t.type)&&ef[t.type](t,n)}var nf={Feature:function(t,n){tf(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r=0?1:-1,i=r*e,o=js(n),u=Vs(n),a=ff*u,c=sf*o+a*js(i),s=a*r*Vs(i);hf.add(qs(s,c)),cf=t,sf=o,ff=u}var _f=function(t){return df.reset(),lf(t,pf),2*df};function bf(t){return[qs(t[1],t[0]),Zs(t[2])]}function wf(t){var n=t[0],e=t[1],r=js(e);return[r*js(n),r*Vs(n),Vs(e)]}function xf(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function Mf(t,n){return[t[1]*n[2]-t[2]*n[1],t[2]*n[0]-t[0]*n[2],t[0]*n[1]-t[1]*n[0]]}function Ef(t,n){t[0]+=n[0],t[1]+=n[1],t[2]+=n[2]}function kf(t,n){return[t[0]*n,t[1]*n,t[2]*n]}function Nf(t){var n=Ws(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=n,t[1]/=n,t[2]/=n}var Tf,Sf,Cf,Af,Pf,Rf,If,Lf,Of,Df,Uf=Ts(),zf={point:Ff,lineStart:jf,lineEnd:Bf,polygonStart:function(){zf.point=Hf,zf.lineStart=Yf,zf.lineEnd=$f,Uf.reset(),pf.polygonStart()},polygonEnd:function(){pf.polygonEnd(),zf.point=Ff,zf.lineStart=jf,zf.lineEnd=Bf,hf<0?(Tf=-(Cf=180),Sf=-(Af=90)):Uf>Ps?Af=90:Uf<-Ps&&(Sf=-90),Df[0]=Tf,Df[1]=Cf}};function Ff(t,n){Of.push(Df=[Tf=t,Cf=t]),nAf&&(Af=n)}function qf(t,n){var e=wf([t*Us,n*Us]);if(Lf){var r=Mf(Lf,e),i=Mf([r[1],-r[0],0],r);Nf(i),i=bf(i);var o,u=t-Pf,a=u>0?1:-1,c=i[0]*Ds*a,s=zs(u)>180;s^(a*PfAf&&(Af=o):s^(a*Pf<(c=(c+360)%360-180)&&cAf&&(Af=n)),s?tVf(Tf,Cf)&&(Cf=t):Vf(t,Cf)>Vf(Tf,Cf)&&(Tf=t):Cf>=Tf?(tCf&&(Cf=t)):t>Pf?Vf(Tf,t)>Vf(Tf,Cf)&&(Cf=t):Vf(t,Cf)>Vf(Tf,Cf)&&(Tf=t)}else Of.push(Df=[Tf=t,Cf=t]);nAf&&(Af=n),Lf=e,Pf=t}function jf(){zf.point=qf}function Bf(){Df[0]=Tf,Df[1]=Cf,zf.point=Ff,Lf=null}function Hf(t,n){if(Lf){var e=t-Pf;Uf.add(zs(e)>180?e+(e>0?360:-360):e)}else Rf=t,If=n;pf.point(t,n),qf(t,n)}function Yf(){pf.lineStart()}function $f(){Hf(Rf,If),pf.lineEnd(),zs(Uf)>Ps&&(Tf=-(Cf=180)),Df[0]=Tf,Df[1]=Cf,Lf=null}function Vf(t,n){return(n-=t)<0?n+360:n}function Xf(t,n){return t[0]-n[0]}function Wf(t,n){return t[0]<=t[1]?t[0]<=n&&n<=t[1]:nVf(r[0],r[1])&&(r[1]=i[1]),Vf(i[0],r[1])>Vf(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(u=-1/0,n=0,r=o[e=o.length-1];n<=e;r=i,++n)i=o[n],(a=Vf(r[1],i[0]))>u&&(u=a,Tf=i[0],Cf=r[1])}return Of=Df=null,Tf===1/0||Sf===1/0?[[NaN,NaN],[NaN,NaN]]:[[Tf,Sf],[Cf,Af]]},hl={sphere:Js,point:dl,lineStart:vl,lineEnd:ml,polygonStart:function(){hl.lineStart=_l,hl.lineEnd=bl},polygonEnd:function(){hl.lineStart=vl,hl.lineEnd=ml}};function dl(t,n){t*=Us;var e=js(n*=Us);pl(e*js(t),e*Vs(t),Vs(n))}function pl(t,n,e){Zf+=(t-Zf)/++Gf,Kf+=(n-Kf)/Gf,Jf+=(e-Jf)/Gf}function vl(){hl.point=gl}function gl(t,n){t*=Us;var e=js(n*=Us);cl=e*js(t),sl=e*Vs(t),fl=Vs(n),hl.point=yl,pl(cl,sl,fl)}function yl(t,n){t*=Us;var e=js(n*=Us),r=e*js(t),i=e*Vs(t),o=Vs(n),u=qs(Ws((u=sl*o-fl*i)*u+(u=fl*r-cl*o)*u+(u=cl*i-sl*r)*u),cl*r+sl*i+fl*o);Qf+=u,tl+=u*(cl+(cl=r)),nl+=u*(sl+(sl=i)),el+=u*(fl+(fl=o)),pl(cl,sl,fl)}function ml(){hl.point=dl}function _l(){hl.point=wl}function bl(){xl(ul,al),hl.point=dl}function wl(t,n){ul=t,al=n,t*=Us,n*=Us,hl.point=xl;var e=js(n);cl=e*js(t),sl=e*Vs(t),fl=Vs(n),pl(cl,sl,fl)}function xl(t,n){t*=Us;var e=js(n*=Us),r=e*js(t),i=e*Vs(t),o=Vs(n),u=sl*o-fl*i,a=fl*r-cl*o,c=cl*i-sl*r,s=Ws(u*u+a*a+c*c),f=Zs(s),l=s&&-f/s;rl+=l*u,il+=l*a,ol+=l*c,Qf+=f,tl+=f*(cl+(cl=r)),nl+=f*(sl+(sl=i)),el+=f*(fl+(fl=o)),pl(cl,sl,fl)}var Ml=function(t){Gf=Qf=Zf=Kf=Jf=tl=nl=el=rl=il=ol=0,lf(t,hl);var n=rl,e=il,r=ol,i=n*n+e*e+r*r;return i<1e-12&&(n=tl,e=nl,r=el,QfRs?t-Os:t<-Rs?t+Os:t,n]}function Tl(t,n,e){return(t%=Os)?n||e?kl(Cl(t),Al(n,e)):Cl(t):n||e?Al(n,e):Nl}function Sl(t){return function(n,e){return[(n+=t)>Rs?n-Os:n<-Rs?n+Os:n,e]}}function Cl(t){var n=Sl(t);return n.invert=Sl(-t),n}function Al(t,n){var e=js(t),r=Vs(t),i=js(n),o=Vs(n);function u(t,n){var u=js(n),a=js(t)*u,c=Vs(t)*u,s=Vs(n),f=s*e+a*r;return[qs(c*i-f*o,a*e-s*r),Zs(f*i+c*o)]}return u.invert=function(t,n){var u=js(n),a=js(t)*u,c=Vs(t)*u,s=Vs(n),f=s*i-c*o;return[qs(c*i+s*o,a*e+f*r),Zs(f*e-a*r)]},u}Nl.invert=Nl;var Pl=function(t){function n(n){return(n=t(n[0]*Us,n[1]*Us))[0]*=Ds,n[1]*=Ds,n}return t=Tl(t[0]*Us,t[1]*Us,t.length>2?t[2]*Us:0),n.invert=function(n){return(n=t.invert(n[0]*Us,n[1]*Us))[0]*=Ds,n[1]*=Ds,n},n};function Rl(t,n,e,r,i,o){if(e){var u=js(n),a=Vs(n),c=r*e;null==i?(i=n+r*Os,o=n-c/2):(i=Il(u,i),o=Il(u,o),(r>0?io)&&(i+=r*Os));for(var s,f=i;r>0?f>o:f1&&n.push(n.pop().concat(n.shift()))},result:function(){var e=n;return n=[],t=null,e}}},Dl=function(t,n){return zs(t[0]-n[0])=0;--o)i.point((f=s[o])[0],f[1]);else r(h.x,h.p.x,-1,i);h=h.p}s=(h=h.o).z,d=!d}while(!h.v);i.lineEnd()}}};function Fl(t){if(n=t.length){for(var n,e,r=0,i=t[0];++r=0?1:-1,E=M*x,k=E>Rs,N=p*b;if(ql.add(qs(N*M*Vs(E),v*w+N*js(E))),o+=k?x+M*Os:x,k^h>=e^m>=e){var T=Mf(wf(l),wf(y));Nf(T);var S=Mf(i,T);Nf(S);var C=(k^x>=0?-1:1)*Zs(S[2]);(r>C||r===C&&(T[0]||T[1]))&&(u+=k^x>=0?1:-1)}}return(o<-Ps||on?1:t>=n?0:NaN};var Hl=function(t){return 1===t.length&&(t=function(t){return function(n,e){return Bl(t(n),e)}}(t)),{left:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r>>1;t(n[o],e)<0?r=o+1:i=o}return r},right:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r>>1;t(n[o],e)>0?i=o:r=o+1}return r}}}(Bl);Hl.right,Hl.left;var Yl=Array.prototype,$l=(Yl.slice,Yl.map,function(t,n,e){t=+t,n=+n,e=(i=arguments.length)<2?(n=t,t=0,1):i<3?1:+e;for(var r=-1,i=0|Math.max(0,Math.ceil((n-t)/e)),o=new Array(i);++r=0;)for(n=(r=t[i]).length;--n>=0;)e[--u]=r[n];return e};var Xl=function(t,n,e,r){return function(i){var o,u,a,c=n(i),s=Ol(),f=n(s),l=!1,h={point:d,lineStart:v,lineEnd:g,polygonStart:function(){h.point=y,h.lineStart=m,h.lineEnd=_,u=[],o=[]},polygonEnd:function(){h.point=d,h.lineStart=v,h.lineEnd=g,u=Vl(u);var t=jl(o,r);u.length?(l||(i.polygonStart(),l=!0),zl(u,Gl,t,e,i)):t&&(l||(i.polygonStart(),l=!0),i.lineStart(),e(null,null,1,i),i.lineEnd()),l&&(i.polygonEnd(),l=!1),u=o=null},sphere:function(){i.polygonStart(),i.lineStart(),e(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function d(n,e){t(n,e)&&i.point(n,e)}function p(t,n){c.point(t,n)}function v(){h.point=p,c.lineStart()}function g(){h.point=d,c.lineEnd()}function y(t,n){a.push([t,n]),f.point(t,n)}function m(){f.lineStart(),a=[]}function _(){y(a[0][0],a[0][1]),f.lineEnd();var t,n,e,r,c=f.clean(),h=s.result(),d=h.length;if(a.pop(),o.push(a),a=null,d)if(1&c){if((n=(e=h[0]).length-1)>0){for(l||(i.polygonStart(),l=!0),i.lineStart(),t=0;t1&&2&c&&h.push(h.pop().concat(h.shift())),u.push(h.filter(Wl))}return h}};function Wl(t){return t.length>1}function Gl(t,n){return((t=t.x)[0]<0?t[1]-Is-Ps:Is-t[1])-((n=n.x)[0]<0?n[1]-Is-Ps:Is-n[1])}var Ql=Xl(function(){return!0},function(t){var n,e=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),n=1},point:function(o,u){var a=o>0?Rs:-Rs,c=zs(o-e);zs(c-Rs)0?Is:-Is),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(a,r),t.point(o,r),n=0):i!==a&&c>=Rs&&(zs(e-i)Ps?Fs((Vs(n)*(o=js(r))*Vs(e)-Vs(r)*(i=js(n))*Vs(t))/(i*o*u)):(n+r)/2}(e,r,o,u),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(a,r),n=0),t.point(e=o,r=u),i=a},lineEnd:function(){t.lineEnd(),e=r=NaN},clean:function(){return 2-n}}},function(t,n,e,r){var i;if(null==t)i=e*Is,r.point(-Rs,i),r.point(0,i),r.point(Rs,i),r.point(Rs,0),r.point(Rs,-i),r.point(0,-i),r.point(-Rs,-i),r.point(-Rs,0),r.point(-Rs,i);else if(zs(t[0]-n[0])>Ps){var o=t[0]0,i=zs(n)>Ps;function o(t,e){return js(t)*js(e)>n}function u(t,e,r){var i=[1,0,0],o=Mf(wf(t),wf(e)),u=xf(o,o),a=o[0],c=u-a*a;if(!c)return!r&&t;var s=n*u/c,f=-n*a/c,l=Mf(i,o),h=kf(i,s);Ef(h,kf(o,f));var d=l,p=xf(h,d),v=xf(d,d),g=p*p-v*(xf(h,h)-1);if(!(g<0)){var y=Ws(g),m=kf(d,(-p-y)/v);if(Ef(m,h),m=bf(m),!r)return m;var _,b=t[0],w=e[0],x=t[1],M=e[1];w0^m[1]<(zs(m[0]-b)Rs^(b<=m[0]&&m[0]<=w)){var N=kf(d,(-p+y)/v);return Ef(N,h),[m,bf(N)]}}}function a(n,e){var i=r?t:Rs-t,o=0;return n<-i?o|=1:n>i&&(o|=2),e<-i?o|=4:e>i&&(o|=8),o}return Xl(o,function(t){var n,e,c,s,f;return{lineStart:function(){s=c=!1,f=1},point:function(l,h){var d,p=[l,h],v=o(l,h),g=r?v?0:a(l,h):v?a(l+(l<0?Rs:-Rs),h):0;if(!n&&(s=c=v)&&t.lineStart(),v!==c&&(!(d=u(n,p))||Dl(n,d)||Dl(p,d))&&(p[0]+=Ps,p[1]+=Ps,v=o(p[0],p[1])),v!==c)f=0,v?(t.lineStart(),d=u(p,n),t.point(d[0],d[1])):(d=u(n,p),t.point(d[0],d[1]),t.lineEnd()),n=d;else if(i&&n&&r^v){var y;g&e||!(y=u(p,n,!0))||(f=0,r?(t.lineStart(),t.point(y[0][0],y[0][1]),t.point(y[1][0],y[1][1]),t.lineEnd()):(t.point(y[1][0],y[1][1]),t.lineEnd(),t.lineStart(),t.point(y[0][0],y[0][1])))}!v||n&&Dl(n,p)||t.point(p[0],p[1]),n=p,c=v,e=g},lineEnd:function(){c&&t.lineEnd(),n=null},clean:function(){return f|(s&&c)<<1}}},function(n,r,i,o){Rl(o,t,e,i,n,r)},r?[0,-t]:[-Rs,t-Rs])},Kl=function(t,n,e,r,i,o){var u,a=t[0],c=t[1],s=0,f=1,l=n[0]-a,h=n[1]-c;if(u=e-a,l||!(u>0)){if(u/=l,l<0){if(u0){if(u>f)return;u>s&&(s=u)}if(u=i-a,l||!(u<0)){if(u/=l,l<0){if(u>f)return;u>s&&(s=u)}else if(l>0){if(u0)){if(u/=h,h<0){if(u0){if(u>f)return;u>s&&(s=u)}if(u=o-c,h||!(u<0)){if(u/=h,h<0){if(u>f)return;u>s&&(s=u)}else if(h>0){if(u0&&(t[0]=a+s*l,t[1]=c+s*h),f<1&&(n[0]=a+f*l,n[1]=c+f*h),!0}}}}},Jl=1e9,th=-Jl;function nh(t,n,e,r){function i(i,o){return t<=i&&i<=e&&n<=o&&o<=r}function o(i,o,a,s){var f=0,l=0;if(null==i||(f=u(i,a))!==(l=u(o,a))||c(i,o)<0^a>0)do{s.point(0===f||3===f?t:e,f>1?r:n)}while((f=(f+a+4)%4)!==l);else s.point(o[0],o[1])}function u(r,i){return zs(r[0]-t)0?0:3:zs(r[0]-e)0?2:1:zs(r[1]-n)0?1:0:i>0?3:2}function a(t,n){return c(t.x,n.x)}function c(t,n){var e=u(t,1),r=u(n,1);return e!==r?e-r:0===e?n[1]-t[1]:1===e?t[0]-n[0]:2===e?t[1]-n[1]:n[0]-t[0]}return function(u){var c,s,f,l,h,d,p,v,g,y,m,_=u,b=Ol(),w={point:x,lineStart:function(){w.point=M,s&&s.push(f=[]);y=!0,g=!1,p=v=NaN},lineEnd:function(){c&&(M(l,h),d&&g&&b.rejoin(),c.push(b.result()));w.point=x,g&&_.lineEnd()},polygonStart:function(){_=b,c=[],s=[],m=!0},polygonEnd:function(){var n=function(){for(var n=0,e=0,i=s.length;er&&(h-o)*(r-u)>(d-u)*(t-o)&&++n:d<=r&&(h-o)*(r-u)<(d-u)*(t-o)&&--n;return n}(),e=m&&n,i=(c=Vl(c)).length;(e||i)&&(u.polygonStart(),e&&(u.lineStart(),o(null,null,1,u),u.lineEnd()),i&&zl(c,a,n,o,u),u.polygonEnd());_=u,c=s=f=null}};function x(t,n){i(t,n)&&_.point(t,n)}function M(o,u){var a=i(o,u);if(s&&f.push([o,u]),y)l=o,h=u,d=a,y=!1,a&&(_.lineStart(),_.point(o,u));else if(a&&g)_.point(o,u);else{var c=[p=Math.max(th,Math.min(Jl,p)),v=Math.max(th,Math.min(Jl,v))],b=[o=Math.max(th,Math.min(Jl,o)),u=Math.max(th,Math.min(Jl,u))];Kl(c,b,t,n,e,r)?(g||(_.lineStart(),_.point(c[0],c[1])),_.point(b[0],b[1]),a||_.lineEnd(),m=!1):a&&(_.lineStart(),_.point(o,u),m=!1)}p=o,v=u,g=a}return w}}var eh,rh,ih,oh=function(){var t,n,e,r=0,i=0,o=960,u=500;return e={stream:function(e){return t&&n===e?t:t=nh(r,i,o,u)(n=e)},extent:function(a){return arguments.length?(r=+a[0][0],i=+a[0][1],o=+a[1][0],u=+a[1][1],t=n=null,e):[[r,i],[o,u]]}}},uh=Ts(),ah={sphere:Js,point:Js,lineStart:function(){ah.point=sh,ah.lineEnd=ch},lineEnd:Js,polygonStart:Js,polygonEnd:Js};function ch(){ah.point=ah.lineEnd=Js}function sh(t,n){eh=t*=Us,rh=Vs(n*=Us),ih=js(n),ah.point=fh}function fh(t,n){t*=Us;var e=Vs(n*=Us),r=js(n),i=zs(t-eh),o=js(i),u=r*Vs(i),a=ih*e-rh*r*o,c=rh*e+ih*r*o;uh.add(qs(Ws(u*u+a*a),c)),eh=t,rh=e,ih=r}var lh=function(t){return uh.reset(),lf(t,ah),+uh},hh=[null,null],dh={type:"LineString",coordinates:hh},ph=function(t,n){return hh[0]=t,hh[1]=n,lh(dh)},vh={Feature:function(t,n){return yh(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++rPs}).map(c)).concat($l(Bs(o/d)*d,i,d).filter(function(t){return zs(t%v)>Ps}).map(s))}return y.lines=function(){return m().map(function(t){return{type:"LineString",coordinates:t}})},y.outline=function(){return{type:"Polygon",coordinates:[f(r).concat(l(u).slice(1),f(e).reverse().slice(1),l(a).reverse().slice(1))]}},y.extent=function(t){return arguments.length?y.extentMajor(t).extentMinor(t):y.extentMinor()},y.extentMajor=function(t){return arguments.length?(r=+t[0][0],e=+t[1][0],a=+t[0][1],u=+t[1][1],r>e&&(t=r,r=e,e=t),a>u&&(t=a,a=u,u=t),y.precision(g)):[[r,a],[e,u]]},y.extentMinor=function(e){return arguments.length?(n=+e[0][0],t=+e[1][0],o=+e[0][1],i=+e[1][1],n>t&&(e=n,n=t,t=e),o>i&&(e=o,o=i,i=e),y.precision(g)):[[n,o],[t,i]]},y.step=function(t){return arguments.length?y.stepMajor(t).stepMinor(t):y.stepMinor()},y.stepMajor=function(t){return arguments.length?(p=+t[0],v=+t[1],y):[p,v]},y.stepMinor=function(t){return arguments.length?(h=+t[0],d=+t[1],y):[h,d]},y.precision=function(h){return arguments.length?(g=+h,c=Eh(o,i,90),s=kh(n,t,g),f=Eh(a,u,90),l=kh(r,e,g),y):g},y.extentMajor([[-180,-90+Ps],[180,90-Ps]]).extentMinor([[-180,-80-Ps],[180,80+Ps]])}function Th(){return Nh()()}var Sh,Ch,Ah,Ph,Rh=function(t,n){var e=t[0]*Us,r=t[1]*Us,i=n[0]*Us,o=n[1]*Us,u=js(r),a=Vs(r),c=js(o),s=Vs(o),f=u*js(e),l=u*Vs(e),h=c*js(i),d=c*Vs(i),p=2*Zs(Ws(Ks(o-r)+u*c*Ks(i-e))),v=Vs(p),g=p?function(t){var n=Vs(t*=p)/v,e=Vs(p-t)/v,r=e*f+n*h,i=e*l+n*d,o=e*a+n*s;return[qs(i,r)*Ds,qs(o,Ws(r*r+i*i))*Ds]}:function(){return[e*Ds,r*Ds]};return g.distance=p,g},Ih=function(t){return t},Lh=Ts(),Oh=Ts(),Dh={point:Js,lineStart:Js,lineEnd:Js,polygonStart:function(){Dh.lineStart=Uh,Dh.lineEnd=qh},polygonEnd:function(){Dh.lineStart=Dh.lineEnd=Dh.point=Js,Lh.add(zs(Oh)),Oh.reset()},result:function(){var t=Lh/2;return Lh.reset(),t}};function Uh(){Dh.point=zh}function zh(t,n){Dh.point=Fh,Sh=Ah=t,Ch=Ph=n}function Fh(t,n){Oh.add(Ph*t-Ah*n),Ah=t,Ph=n}function qh(){Fh(Sh,Ch)}var jh=Dh,Bh=1/0,Hh=Bh,Yh=-Bh,$h=Yh;var Vh,Xh,Wh,Gh,Qh={point:function(t,n){tYh&&(Yh=t);n$h&&($h=n)},lineStart:Js,lineEnd:Js,polygonStart:Js,polygonEnd:Js,result:function(){var t=[[Bh,Hh],[Yh,$h]];return Yh=$h=-(Hh=Bh=1/0),t}},Zh=0,Kh=0,Jh=0,td=0,nd=0,ed=0,rd=0,id=0,od=0,ud={point:ad,lineStart:cd,lineEnd:ld,polygonStart:function(){ud.lineStart=hd,ud.lineEnd=dd},polygonEnd:function(){ud.point=ad,ud.lineStart=cd,ud.lineEnd=ld},result:function(){var t=od?[rd/od,id/od]:ed?[td/ed,nd/ed]:Jh?[Zh/Jh,Kh/Jh]:[NaN,NaN];return Zh=Kh=Jh=td=nd=ed=rd=id=od=0,t}};function ad(t,n){Zh+=t,Kh+=n,++Jh}function cd(){ud.point=sd}function sd(t,n){ud.point=fd,ad(Wh=t,Gh=n)}function fd(t,n){var e=t-Wh,r=n-Gh,i=Ws(e*e+r*r);td+=i*(Wh+t)/2,nd+=i*(Gh+n)/2,ed+=i,ad(Wh=t,Gh=n)}function ld(){ud.point=ad}function hd(){ud.point=pd}function dd(){vd(Vh,Xh)}function pd(t,n){ud.point=vd,ad(Vh=Wh=t,Xh=Gh=n)}function vd(t,n){var e=t-Wh,r=n-Gh,i=Ws(e*e+r*r);td+=i*(Wh+t)/2,nd+=i*(Gh+n)/2,ed+=i,rd+=(i=Gh*t-Wh*n)*(Wh+t),id+=i*(Gh+n),od+=3*i,ad(Wh=t,Gh=n)}var gd=ud;function yd(t){this._context=t}yd.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,n){switch(this._point){case 0:this._context.moveTo(t,n),this._point=1;break;case 1:this._context.lineTo(t,n);break;default:this._context.moveTo(t+this._radius,n),this._context.arc(t,n,this._radius,0,Os)}},result:Js};var md,_d,bd,wd,xd,Md=Ts(),Ed={point:Js,lineStart:function(){Ed.point=kd},lineEnd:function(){md&&Nd(_d,bd),Ed.point=Js},polygonStart:function(){md=!0},polygonEnd:function(){md=null},result:function(){var t=+Md;return Md.reset(),t}};function kd(t,n){Ed.point=Nd,_d=wd=t,bd=xd=n}function Nd(t,n){wd-=t,xd-=n,Md.add(Ws(wd*wd+xd*xd)),wd=t,xd=n}var Td=Ed;function Sd(){this._string=[]}function Cd(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}Sd.prototype={_radius:4.5,_circle:Cd(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,n){switch(this._point){case 0:this._string.push("M",t,",",n),this._point=1;break;case 1:this._string.push("L",t,",",n);break;default:null==this._circle&&(this._circle=Cd(this._radius)),this._string.push("M",t,",",n,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}};var Ad=function(t,n){var e,r,i=4.5;function o(t){return t&&("function"==typeof i&&r.pointRadius(+i.apply(this,arguments)),lf(t,e(r))),r.result()}return o.area=function(t){return lf(t,e(jh)),jh.result()},o.measure=function(t){return lf(t,e(Td)),Td.result()},o.bounds=function(t){return lf(t,e(Qh)),Qh.result()},o.centroid=function(t){return lf(t,e(gd)),gd.result()},o.projection=function(n){return arguments.length?(e=null==n?(t=null,Ih):(t=n).stream,o):t},o.context=function(t){return arguments.length?(r=null==t?(n=null,new Sd):new yd(n=t),"function"!=typeof i&&r.pointRadius(i),o):n},o.pointRadius=function(t){return arguments.length?(i="function"==typeof t?t:(r.pointRadius(+t),+t),o):i},o.projection(t).context(n)},Pd=function(t){return{stream:Rd(t)}};function Rd(t){return function(n){var e=new Id;for(var r in t)e[r]=t[r];return e.stream=n,e}}function Id(){}function Ld(t,n,e){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),lf(e,t.stream(Qh)),n(Qh.result()),null!=r&&t.clipExtent(r),t}function Od(t,n,e){return Ld(t,function(e){var r=n[1][0]-n[0][0],i=n[1][1]-n[0][1],o=Math.min(r/(e[1][0]-e[0][0]),i/(e[1][1]-e[0][1])),u=+n[0][0]+(r-o*(e[1][0]+e[0][0]))/2,a=+n[0][1]+(i-o*(e[1][1]+e[0][1]))/2;t.scale(150*o).translate([u,a])},e)}function Dd(t,n,e){return Od(t,[[0,0],n],e)}function Ud(t,n,e){return Ld(t,function(e){var r=+n,i=r/(e[1][0]-e[0][0]),o=(r-i*(e[1][0]+e[0][0]))/2,u=-i*e[0][1];t.scale(150*i).translate([o,u])},e)}function zd(t,n,e){return Ld(t,function(e){var r=+n,i=r/(e[1][1]-e[0][1]),o=-i*e[0][0],u=(r-i*(e[1][1]+e[0][1]))/2;t.scale(150*i).translate([o,u])},e)}Id.prototype={constructor:Id,point:function(t,n){this.stream.point(t,n)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var Fd=16,qd=js(30*Us),jd=function(t,n){return+n?function(t,n){function e(r,i,o,u,a,c,s,f,l,h,d,p,v,g){var y=s-r,m=f-i,_=y*y+m*m;if(_>4*n&&v--){var b=u+h,w=a+d,x=c+p,M=Ws(b*b+w*w+x*x),E=Zs(x/=M),k=zs(zs(x)-1)n||zs((y*C+m*A)/_-.5)>.3||u*h+a*d+c*p2?t[2]%360*Us:0,S()):[g*Ds,y*Ds,m*Ds]},k.precision=function(t){return arguments.length?(E=jd(T,M=t*t),C()):Ws(M)},k.fitExtent=function(t,n){return Od(k,t,n)},k.fitSize=function(t,n){return Dd(k,t,n)},k.fitWidth=function(t,n){return Ud(k,t,n)},k.fitHeight=function(t,n){return zd(k,t,n)},function(){return n=t.apply(this,arguments),k.invert=n.invert&&N,S()}}function $d(t){var n=0,e=Rs/3,r=Yd(t),i=r(n,e);return i.parallels=function(t){return arguments.length?r(n=t[0]*Us,e=t[1]*Us):[n*Ds,e*Ds]},i}function Vd(t,n){var e=Vs(t),r=(e+Vs(n))/2;if(zs(r)=.12&&i<.234&&r>=-.425&&r<-.214?a:i>=.166&&i<.234&&r>=-.214&&r<-.115?c:u).invert(t)},f.stream=function(e){return t&&n===e?t:t=function(t){var n=t.length;return{point:function(e,r){for(var i=-1;++i0?n<-Is+Ps&&(n=-Is+Ps):n>Is-Ps&&(n=Is-Ps);var e=i/$s(op(n),r);return[e*Vs(r*t),i-e*js(r*t)]}return o.invert=function(t,n){var e=i-n,o=Xs(r)*Ws(t*t+e*e);return[qs(t,zs(e))/r*Xs(e),2*Fs($s(i/o,1/r))-Is]},o}var ap=function(){return $d(up).scale(109.5).parallels([30,30])};function cp(t,n){return[t,n]}cp.invert=cp;var sp=function(){return Hd(cp).scale(152.63)};function fp(t,n){var e=js(t),r=t===n?Vs(t):(e-js(n))/(n-t),i=e/r+t;if(zs(r)Ps&&--i>0);return[t/(.8707+(o=r*r)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),r]};var yp=function(){return Hd(gp).scale(175.295)};function mp(t,n){return[js(n)*Vs(t),Vs(n)]}mp.invert=Zd(Zs);var _p=function(){return Hd(mp).scale(249.5).clipAngle(90+Ps)};function bp(t,n){var e=js(n),r=1+js(t)*e;return[e*Vs(t)/r,Vs(n)/r]}bp.invert=Zd(function(t){return 2*Fs(t)});var wp=function(){return Hd(bp).scale(250).clipAngle(142)};function xp(t,n){return[Ys(Gs((Is+n)/2)),-t]}xp.invert=function(t,n){return[-n,2*Fs(Hs(t))-Is]};var Mp=function(){var t=ip(xp),n=t.center,e=t.rotate;return t.center=function(t){return arguments.length?n([-t[1],t[0]]):[(t=n())[1],-t[0]]},t.rotate=function(t){return arguments.length?e([t[0],t[1],t.length>2?t[2]+90:90]):[(t=e())[0],t[1],t[2]-90]},e([0,0,90]).scale(159.155)};function Ep(t,n){return t.parent===n.parent?1:2}function kp(t,n){return t+n.x}function Np(t,n){return Math.max(t,n.y)}var Tp=function(){var t=Ep,n=1,e=1,r=!1;function i(i){var o,u=0;i.eachAfter(function(n){var e=n.children;e?(n.x=function(t){return t.reduce(kp,0)/t.length}(e),n.y=function(t){return 1+t.reduce(Np,0)}(e)):(n.x=o?u+=t(n,o):0,n.y=0,o=n)});var a=function(t){for(var n;n=t.children;)t=n[0];return t}(i),c=function(t){for(var n;n=t.children;)t=n[n.length-1];return t}(i),s=a.x-t(a,c)/2,f=c.x+t(c,a)/2;return i.eachAfter(r?function(t){t.x=(t.x-i.x)*n,t.y=(i.y-t.y)*e}:function(t){t.x=(t.x-s)/(f-s)*n,t.y=(1-(i.y?t.y/i.y:1))*e})}return i.separation=function(n){return arguments.length?(t=n,i):t},i.size=function(t){return arguments.length?(r=!1,n=+t[0],e=+t[1],i):r?null:[n,e]},i.nodeSize=function(t){return arguments.length?(r=!0,n=+t[0],e=+t[1],i):r?[n,e]:null},i};function Sp(t){var n=0,e=t.children,r=e&&e.length;if(r)for(;--r>=0;)n+=e[r].value;else n=1;t.value=n}function Cp(t,n){var e,r,i,o,u,a=new Ip(t),c=+t.value&&(a.value=t.value),s=[a];for(null==n&&(n=Ap);e=s.pop();)if(c&&(e.value=+e.data.value),(i=n(e.data))&&(u=i.length))for(e.children=new Array(u),o=u-1;o>=0;--o)s.push(r=e.children[o]=new Ip(i[o])),r.parent=e,r.depth=e.depth+1;return a.eachBefore(Rp)}function Ap(t){return t.children}function Pp(t){t.data=t.data.data}function Rp(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function Ip(t){this.data=t,this.depth=this.height=0,this.parent=null}Ip.prototype=Cp.prototype={constructor:Ip,count:function(){return this.eachAfter(Sp)},each:function(t){var n,e,r,i,o=this,u=[o];do{for(n=u.reverse(),u=[];o=n.pop();)if(t(o),e=o.children)for(r=0,i=e.length;r=0;--e)i.push(n[e]);return this},sum:function(t){return this.eachAfter(function(n){for(var e=+t(n.data)||0,r=n.children,i=r&&r.length;--i>=0;)e+=r[i].value;n.value=e})},sort:function(t){return this.eachBefore(function(n){n.children&&n.children.sort(t)})},path:function(t){for(var n=this,e=function(t,n){if(t===n)return t;var e=t.ancestors(),r=n.ancestors(),i=null;for(t=e.pop(),n=r.pop();t===n;)i=t,t=e.pop(),n=r.pop();return i}(n,t),r=[n];n!==e;)n=n.parent,r.push(n);for(var i=r.length;t!==e;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},descendants:function(){var t=[];return this.each(function(n){t.push(n)}),t},leaves:function(){var t=[];return this.eachBefore(function(n){n.children||t.push(n)}),t},links:function(){var t=this,n=[];return t.each(function(e){e!==t&&n.push({source:e.parent,target:e})}),n},copy:function(){return Cp(this).eachBefore(Pp)}};var Lp=Array.prototype.slice;var Op=function(t){for(var n,e,r=0,i=(t=function(t){for(var n,e,r=t.length;r;)e=Math.random()*r--|0,n=t[r],t[r]=t[e],t[e]=n;return t}(Lp.call(t))).length,o=[];r0&&e*e>r*r+i*i}function Fp(t,n){for(var e=0;ee*e+r*r}function $p(t){var n=t._,e=t.next._,r=n.r+e.r,i=(n.x*e.r+e.x*n.r)/r,o=(n.y*e.r+e.y*n.r)/r;return i*i+o*o}function Vp(t){this._=t,this.next=null,this.previous=null}function Xp(t){if(!(i=t.length))return 0;var n,e,r,i,o,u,a,c,s,f,l;if((n=t[0]).x=0,n.y=0,!(i>1))return n.r;if(e=t[1],n.x=-e.r,e.x=n.r,e.y=0,!(i>2))return n.r+e.r;Hp(e,n,r=t[2]),n=new Vp(n),e=new Vp(e),r=new Vp(r),n.next=r.previous=e,e.next=n.previous=r,r.next=e.previous=n;t:for(a=3;a0)throw new Error("cycle");return o}return e.id=function(n){return arguments.length?(t=Gp(n),e):t},e.parentId=function(t){return arguments.length?(n=Gp(t),e):n},e};function hv(t,n){return t.parent===n.parent?1:2}function dv(t){var n=t.children;return n?n[0]:t.t}function pv(t){var n=t.children;return n?n[n.length-1]:t.t}function vv(t,n,e){var r=e/(n.i-t.i);n.c-=r,n.s+=e,t.c+=r,n.z+=e,n.m+=e}function gv(t,n,e){return t.a.parent===n.parent?t.a:e}function yv(t,n){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=n}yv.prototype=Object.create(Ip.prototype);var mv=function(){var t=hv,n=1,e=1,r=null;function i(i){var c=function(t){for(var n,e,r,i,o,u=new yv(t,0),a=[u];n=a.pop();)if(r=n._.children)for(n.children=new Array(o=r.length),i=o-1;i>=0;--i)a.push(e=n.children[i]=new yv(r[i],i)),e.parent=n;return(u.parent=new yv(null,0)).children=[u],u}(i);if(c.eachAfter(o),c.parent.m=-c.z,c.eachBefore(u),r)i.eachBefore(a);else{var s=i,f=i,l=i;i.eachBefore(function(t){t.xf.x&&(f=t),t.depth>l.depth&&(l=t)});var h=s===f?1:t(s,f)/2,d=h-s.x,p=n/(f.x+h+d),v=e/(l.depth||1);i.eachBefore(function(t){t.x=(t.x+d)*p,t.y=t.depth*v})}return i}function o(n){var e=n.children,r=n.parent.children,i=n.i?r[n.i-1]:null;if(e){!function(t){for(var n,e=0,r=0,i=t.children,o=i.length;--o>=0;)(n=i[o]).z+=e,n.m+=e,e+=n.s+(r+=n.c)}(n);var o=(e[0].z+e[e.length-1].z)/2;i?(n.z=i.z+t(n._,i._),n.m=n.z-o):n.z=o}else i&&(n.z=i.z+t(n._,i._));n.parent.A=function(n,e,r){if(e){for(var i,o=n,u=n,a=e,c=o.parent.children[0],s=o.m,f=u.m,l=a.m,h=c.m;a=pv(a),o=dv(o),a&&o;)c=dv(c),(u=pv(u)).a=n,(i=a.z+l-o.z-s+t(a._,o._))>0&&(vv(gv(a,n,r),n,i),s+=i,f+=i),l+=a.m,s+=o.m,h+=c.m,f+=u.m;a&&!pv(u)&&(u.t=a,u.m+=l-f),o&&!dv(c)&&(c.t=o,c.m+=s-h,r=n)}return r}(n,i,n.parent.A||r[0])}function u(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function a(t){t.x*=n,t.y=t.depth*e}return i.separation=function(n){return arguments.length?(t=n,i):t},i.size=function(t){return arguments.length?(r=!1,n=+t[0],e=+t[1],i):r?null:[n,e]},i.nodeSize=function(t){return arguments.length?(r=!0,n=+t[0],e=+t[1],i):r?[n,e]:null},i},_v=function(t,n,e,r,i){for(var o,u=t.children,a=-1,c=u.length,s=t.value&&(i-e)/t.value;++ah&&(h=a),g=f*f*v,(d=Math.max(h/g,g/l))>p){f-=a;break}p=d}y.push(u={value:f,dice:c1?n:1)},e}(bv),Mv=function(){var t=xv,n=!1,e=1,r=1,i=[0],o=Qp,u=Qp,a=Qp,c=Qp,s=Qp;function f(t){return t.x0=t.y0=0,t.x1=e,t.y1=r,t.eachBefore(l),i=[0],n&&t.eachBefore(rv),t}function l(n){var e=i[n.depth],r=n.x0+e,f=n.y0+e,l=n.x1-e,h=n.y1-e;l=e-1){var f=a[n];return f.x0=i,f.y0=o,f.x1=u,void(f.y1=c)}var l=s[n],h=r/2+l,d=n+1,p=e-1;for(;d>>1;s[v]c-o){var m=(i*y+u*g)/r;t(n,d,g,i,o,m,c),t(d,e,y,m,o,u,c)}else{var _=(o*y+c*g)/r;t(n,d,g,i,o,u,_),t(d,e,y,i,_,u,c)}}(0,c,t.value,n,e,r,i)},kv=function(t,n,e,r,i){(1&t.depth?_v:iv)(t,n,e,r,i)},Nv=function t(n){function e(t,e,r,i,o){if((u=t._squarify)&&u.ratio===n)for(var u,a,c,s,f,l=-1,h=u.length,d=t.value;++l1?n:1)},e}(bv),Tv=function(t,n,e){t.prototype=n.prototype=e,e.constructor=t};function Sv(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function Cv(){}var Av="\\s*([+-]?\\d+)\\s*",Pv="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Rv="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Iv=/^#([0-9a-f]{3})$/,Lv=/^#([0-9a-f]{6})$/,Ov=new RegExp("^rgb\\("+[Av,Av,Av]+"\\)$"),Dv=new RegExp("^rgb\\("+[Rv,Rv,Rv]+"\\)$"),Uv=new RegExp("^rgba\\("+[Av,Av,Av,Pv]+"\\)$"),zv=new RegExp("^rgba\\("+[Rv,Rv,Rv,Pv]+"\\)$"),Fv=new RegExp("^hsl\\("+[Pv,Rv,Rv]+"\\)$"),qv=new RegExp("^hsla\\("+[Pv,Rv,Rv,Pv]+"\\)$"),jv={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 Bv(t){var n;return t=(t+"").trim().toLowerCase(),(n=Iv.exec(t))?new Xv((n=parseInt(n[1],16))>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):(n=Lv.exec(t))?Hv(parseInt(n[1],16)):(n=Ov.exec(t))?new Xv(n[1],n[2],n[3],1):(n=Dv.exec(t))?new Xv(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=Uv.exec(t))?Yv(n[1],n[2],n[3],n[4]):(n=zv.exec(t))?Yv(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=Fv.exec(t))?Gv(n[1],n[2]/100,n[3]/100,1):(n=qv.exec(t))?Gv(n[1],n[2]/100,n[3]/100,n[4]):jv.hasOwnProperty(t)?Hv(jv[t]):"transparent"===t?new Xv(NaN,NaN,NaN,0):null}function Hv(t){return new Xv(t>>16&255,t>>8&255,255&t,1)}function Yv(t,n,e,r){return r<=0&&(t=n=e=NaN),new Xv(t,n,e,r)}function $v(t){return t instanceof Cv||(t=Bv(t)),t?new Xv((t=t.rgb()).r,t.g,t.b,t.opacity):new Xv}function Vv(t,n,e,r){return 1===arguments.length?$v(t):new Xv(t,n,e,null==r?1:r)}function Xv(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function Wv(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Gv(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new Zv(t,n,e,r)}function Qv(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof Zv)return new Zv(t.h,t.s,t.l,t.opacity);if(t instanceof Cv||(t=Bv(t)),!t)return new Zv;if(t instanceof Zv)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),u=NaN,a=o-i,c=(o+i)/2;return a?(u=n===o?(e-r)/a+6*(e0&&c<1?0:u,new Zv(u,a,c,t.opacity)}(t):new Zv(t,n,e,null==r?1:r)}function Zv(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function Kv(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}Tv(Cv,Bv,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),Tv(Xv,Vv,Sv(Cv,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Xv(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Xv(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},hex:function(){return"#"+Wv(this.r)+Wv(this.g)+Wv(this.b)},toString:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"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===t?")":", "+t+")")}})),Tv(Zv,Qv,Sv(Cv,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Zv(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Zv(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new Xv(Kv(t>=240?t-240:t+120,i,r),Kv(t,i,r),Kv(t<120?t+240:t-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}}));var Jv=Math.PI/180,tg=180/Math.PI,ng=.96422,eg=1,rg=.82521,ig=4/29,og=6/29,ug=3*og*og,ag=og*og*og;function cg(t){if(t instanceof fg)return new fg(t.l,t.a,t.b,t.opacity);if(t instanceof yg){if(isNaN(t.h))return new fg(t.l,0,0,t.opacity);var n=t.h*Jv;return new fg(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}t instanceof Xv||(t=$v(t));var e,r,i=pg(t.r),o=pg(t.g),u=pg(t.b),a=lg((.2225045*i+.7168786*o+.0606169*u)/eg);return i===o&&o===u?e=r=a:(e=lg((.4360747*i+.3850649*o+.1430804*u)/ng),r=lg((.0139322*i+.0971045*o+.7141733*u)/rg)),new fg(116*a-16,500*(e-a),200*(a-r),t.opacity)}function sg(t,n,e,r){return 1===arguments.length?cg(t):new fg(t,n,e,null==r?1:r)}function fg(t,n,e,r){this.l=+t,this.a=+n,this.b=+e,this.opacity=+r}function lg(t){return t>ag?Math.pow(t,1/3):t/ug+ig}function hg(t){return t>og?t*t*t:ug*(t-ig)}function dg(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function pg(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function vg(t){if(t instanceof yg)return new yg(t.h,t.c,t.l,t.opacity);if(t instanceof fg||(t=cg(t)),0===t.a&&0===t.b)return new yg(NaN,0,t.l,t.opacity);var n=Math.atan2(t.b,t.a)*tg;return new yg(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function gg(t,n,e,r){return 1===arguments.length?vg(t):new yg(t,n,e,null==r?1:r)}function yg(t,n,e,r){this.h=+t,this.c=+n,this.l=+e,this.opacity=+r}Tv(fg,sg,Sv(Cv,{brighter:function(t){return new fg(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new fg(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,n=isNaN(this.a)?t:t+this.a/500,e=isNaN(this.b)?t:t-this.b/200;return new Xv(dg(3.1338561*(n=ng*hg(n))-1.6168667*(t=eg*hg(t))-.4906146*(e=rg*hg(e))),dg(-.9787684*n+1.9161415*t+.033454*e),dg(.0719453*n-.2289914*t+1.4052427*e),this.opacity)}})),Tv(yg,gg,Sv(Cv,{brighter:function(t){return new yg(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new yg(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return cg(this).rgb()}}));var mg=-.29227,_g=-.90649,bg=1.97294,wg=bg*_g,xg=1.78277*bg,Mg=1.78277*mg- -.14861*_g;function Eg(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof kg)return new kg(t.h,t.s,t.l,t.opacity);t instanceof Xv||(t=$v(t));var n=t.r/255,e=t.g/255,r=t.b/255,i=(Mg*r+wg*n-xg*e)/(Mg+wg-xg),o=r-i,u=(bg*(e-i)-mg*o)/_g,a=Math.sqrt(u*u+o*o)/(bg*i*(1-i)),c=a?Math.atan2(u,o)*tg-120:NaN;return new kg(c<0?c+360:c,a,i,t.opacity)}(t):new kg(t,n,e,null==r?1:r)}function kg(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function Ng(t,n,e,r,i){var o=t*t,u=o*t;return((1-3*t+3*o-u)*n+(4-6*o+3*u)*e+(1+3*t+3*o-3*u)*r+u*i)/6}Tv(kg,Eg,Sv(Cv,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new kg(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new kg(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*Jv,n=+this.l,e=isNaN(this.s)?0:this.s*n*(1-n),r=Math.cos(t),i=Math.sin(t);return new Xv(255*(n+e*(-.14861*r+1.78277*i)),255*(n+e*(mg*r+_g*i)),255*(n+e*(bg*r)),this.opacity)}}));var Tg=function(t){var n=t.length-1;return function(e){var r=e<=0?e=0:e>=1?(e=1,n-1):Math.floor(e*n),i=t[r],o=t[r+1],u=r>0?t[r-1]:2*i-o,a=r180||e<-180?e-360*Math.round(e/360):e):Cg(isNaN(t)?n:t)}function Rg(t){return 1==(t=+t)?Ig:function(n,e){return e-n?function(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}(n,e,t):Cg(isNaN(n)?e:n)}}function Ig(t,n){var e=n-t;return e?Ag(t,e):Cg(isNaN(t)?n:t)}var Lg=function t(n){var e=Rg(n);function r(t,n){var r=e((t=Vv(t)).r,(n=Vv(n)).r),i=e(t.g,n.g),o=e(t.b,n.b),u=Ig(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=i(n),t.b=o(n),t.opacity=u(n),t+""}}return r.gamma=t,r}(1);function Og(t){return function(n){var e,r,i=n.length,o=new Array(i),u=new Array(i),a=new Array(i);for(e=0;eo&&(i=n.slice(o,i),a[u]?a[u]+=i:a[++u]=i),(e=e[0])===(r=r[0])?a[u]?a[u]+=r:a[++u]=r:(a[++u]=null,c.push({i:u,x:qg(e,r)})),o=Hg.lastIndex;return o180?n+=360:n-t>180&&(t+=360),o.push({i:e.push(i(e)+"rotate(",null,r)-2,x:qg(t,n)})):n&&e.push(i(e)+"rotate("+n+r)}(o.rotate,u.rotate,a,c),function(t,n,e,o){t!==n?o.push({i:e.push(i(e)+"skewX(",null,r)-2,x:qg(t,n)}):n&&e.push(i(e)+"skewX("+n+r)}(o.skewX,u.skewX,a,c),function(t,n,e,r,o,u){if(t!==e||n!==r){var a=o.push(i(o)+"scale(",null,",",null,")");u.push({i:a-4,x:qg(t,e)},{i:a-2,x:qg(n,r)})}else 1===e&&1===r||o.push(i(o)+"scale("+e+","+r+")")}(o.scaleX,o.scaleY,u.scaleX,u.scaleY,a,c),o=u=null,function(t){for(var n,e=-1,r=c.length;++e1e-6)if(Math.abs(f*a-c*s)>1e-6&&i){var h=e-o,d=r-u,p=a*a+c*c,v=h*h+d*d,g=Math.sqrt(p),y=Math.sqrt(l),m=i*Math.tan((yy-Math.acos((p+l-v)/(2*g*y)))/2),_=m/y,b=m/g;Math.abs(_-1)>1e-6&&(this._+="L"+(t+_*s)+","+(n+_*f)),this._+="A"+i+","+i+",0,0,"+ +(f*h>s*d)+","+(this._x1=t+b*a)+","+(this._y1=n+b*c)}else this._+="L"+(this._x1=t)+","+(this._y1=n);else;},arc:function(t,n,e,r,i,o){t=+t,n=+n;var u=(e=+e)*Math.cos(r),a=e*Math.sin(r),c=t+u,s=n+a,f=1^o,l=o?r-i:i-r;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+c+","+s:(Math.abs(this._x1-c)>1e-6||Math.abs(this._y1-s)>1e-6)&&(this._+="L"+c+","+s),e&&(l<0&&(l=l%my+my),l>_y?this._+="A"+e+","+e+",0,1,"+f+","+(t-u)+","+(n-a)+"A"+e+","+e+",0,1,"+f+","+(this._x1=c)+","+(this._y1=s):l>1e-6&&(this._+="A"+e+","+e+",0,"+ +(l>=yy)+","+f+","+(this._x1=t+e*Math.cos(i))+","+(this._y1=n+e*Math.sin(i))))},rect:function(t,n,e,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +r+"h"+-e+"Z"},toString:function(){return this._}};var xy=wy,My=function(t){for(var n,e=-1,r=t.length,i=t[r-1],o=0;++e1&&ky(t[e[r-2]],t[e[r-1]],t[i])<=0;)--r;e[r++]=i}return e.slice(0,r)}var Sy=function(t){if((e=t.length)<3)return null;var n,e,r=new Array(e),i=new Array(e);for(n=0;n=0;--n)s.push(t[r[o[n]][2]]);for(n=+a;na!=s>a&&u<(c-e)*(a-r)/(s-r)+e&&(f=!f),c=e,s=r;return f},Ay=function(t){for(var n,e,r=-1,i=t.length,o=t[i-1],u=o[0],a=o[1],c=0;++r=(o=(v+y)/2))?v=o:y=o,(f=e>=(u=(g+m)/2))?g=u:m=u,i=d,!(d=d[l=f<<1|s]))return i[l]=p,t;if(a=+t._x.call(null,d.data),c=+t._y.call(null,d.data),n===a&&e===c)return p.next=d,i?i[l]=p:t._root=p,t;do{i=i?i[l]=new Array(4):t._root=new Array(4),(s=n>=(o=(v+y)/2))?v=o:y=o,(f=e>=(u=(g+m)/2))?g=u:m=u}while((l=f<<1|s)==(h=(c>=u)<<1|a>=o));return i[h]=d,i[l]=p,t}var Ry=function(t,n,e,r,i){this.node=t,this.x0=n,this.y0=e,this.x1=r,this.y1=i};function Iy(t){return t[0]}function Ly(t){return t[1]}function Oy(t,n,e){var r=new Dy(null==n?Iy:n,null==e?Ly:e,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function Dy(t,n,e,r,i,o){this._x=t,this._y=n,this._x0=e,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function Uy(t){for(var n={data:t.data},e=n;t=t.next;)e=e.next={data:t.data};return n}var zy=Oy.prototype=Dy.prototype;zy.copy=function(){var t,n,e=new Dy(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return e;if(!r.length)return e._root=Uy(r),e;for(t=[{source:r,target:e._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(n=r.source[i])&&(n.length?t.push({source:n,target:r.target[i]=new Array(4)}):r.target[i]=Uy(n));return e},zy.add=function(t){var n=+this._x.call(null,t),e=+this._y.call(null,t);return Py(this.cover(n,e),n,e,t)},zy.addAll=function(t){var n,e,r,i,o=t.length,u=new Array(o),a=new Array(o),c=1/0,s=1/0,f=-1/0,l=-1/0;for(e=0;ef&&(f=r),il&&(l=i));for(ft||t>i||r>n||n>o))return this;var u,a,c=i-e,s=this._root;switch(a=(n<(r+o)/2)<<1|t<(e+i)/2){case 0:do{(u=new Array(4))[a]=s,s=u}while(o=r+(c*=2),t>(i=e+c)||n>o);break;case 1:do{(u=new Array(4))[a]=s,s=u}while(o=r+(c*=2),(e=i-c)>t||n>o);break;case 2:do{(u=new Array(4))[a]=s,s=u}while(r=o-(c*=2),t>(i=e+c)||r>n);break;case 3:do{(u=new Array(4))[a]=s,s=u}while(r=o-(c*=2),(e=i-c)>t||r>n)}this._root&&this._root.length&&(this._root=s)}return this._x0=e,this._y0=r,this._x1=i,this._y1=o,this},zy.data=function(){var t=[];return this.visit(function(n){if(!n.length)do{t.push(n.data)}while(n=n.next)}),t},zy.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},zy.find=function(t,n,e){var r,i,o,u,a,c,s,f=this._x0,l=this._y0,h=this._x1,d=this._y1,p=[],v=this._root;for(v&&p.push(new Ry(v,f,l,h,d)),null==e?e=1/0:(f=t-e,l=n-e,h=t+e,d=n+e,e*=e);c=p.pop();)if(!(!(v=c.node)||(i=c.x0)>h||(o=c.y0)>d||(u=c.x1)=y)<<1|t>=g)&&(c=p[p.length-1],p[p.length-1]=p[p.length-1-s],p[p.length-1-s]=c)}else{var m=t-+this._x.call(null,v.data),_=n-+this._y.call(null,v.data),b=m*m+_*_;if(b=(a=(p+g)/2))?p=a:g=a,(f=u>=(c=(v+y)/2))?v=c:y=c,n=d,!(d=d[l=f<<1|s]))return this;if(!d.length)break;(n[l+1&3]||n[l+2&3]||n[l+3&3])&&(e=n,h=l)}for(;d.data!==t;)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):n?(i?n[l]=i:delete n[l],(d=n[0]||n[1]||n[2]||n[3])&&d===(n[3]||n[2]||n[1]||n[0])&&!d.length&&(e?e[h]=d:this._root=d),this):(this._root=i,this)},zy.removeAll=function(t){for(var n=0,e=t.length;n=0;)if((e=t._tasks[r])&&(t._tasks[r]=null,e.abort))try{e.abort()}catch(n){}t._active=NaN,$y(t)}function $y(t){if(!t._active&&t._call){var n=t._data;t._data=void 0,t._call(t._error,n)}}function Vy(t){if(null==t)t=1/0;else if(!((t=+t)>=1))throw new Error("invalid concurrency");return new jy(t)}jy.prototype=Vy.prototype={constructor:jy,defer:function(t){if("function"!=typeof t)throw new Error("invalid callback");if(this._call)throw new Error("defer after await");if(null!=this._error)return this;var n=Fy.call(arguments,1);return n.push(t),++this._waiting,this._tasks.push(n),By(this),this},abort:function(){return null==this._error&&Yy(this,new Error("abort")),this},await:function(t){if("function"!=typeof t)throw new Error("invalid callback");if(this._call)throw new Error("multiple await");return this._call=function(n,e){t.apply(null,[n].concat(e))},$y(this),this},awaitAll:function(t){if("function"!=typeof t)throw new Error("invalid callback");if(this._call)throw new Error("multiple await");return this._call=t,$y(this),this}};var Xy=function(){return Math.random()},Wy=function t(n){function e(t,e){return t=null==t?0:+t,e=null==e?1:+e,1===arguments.length?(e=t,t=0):e-=t,function(){return n()*e+t}}return e.source=t,e}(Xy),Gy=function t(n){function e(t,e){var r,i;return t=null==t?0:+t,e=null==e?1:+e,function(){var o;if(null!=r)o=r,r=null;else do{r=2*n()-1,o=2*n()-1,i=r*r+o*o}while(!i||i>1);return t+e*o*Math.sqrt(-2*Math.log(i)/i)}}return e.source=t,e}(Xy),Qy=function t(n){function e(){var t=Gy.source(n).apply(this,arguments);return function(){return Math.exp(t())}}return e.source=t,e}(Xy),Zy=function t(n){function e(t){return function(){for(var e=0,r=0;r=200&&r<300||304===r){if(i)try{n=i.call(e,c)}catch(t){return void u.call("error",e,t)}else n=c;u.call("load",e,n)}else u.call("error",e,t)}if("undefined"==typeof XDomainRequest||"withCredentials"in c||!/^(http(s)?:)?\/\//.test(t)||(c=new XDomainRequest),"onload"in c?c.onload=c.onerror=c.ontimeout=h:c.onreadystatechange=function(t){c.readyState>3&&h(t)},c.onprogress=function(t){u.call("progress",e,t)},e={header:function(t,n){return t=(t+"").toLowerCase(),arguments.length<2?a.get(t):(null==n?a.remove(t):a.set(t,n+""),e)},mimeType:function(t){return arguments.length?(r=null==t?null:t+"",e):r},responseType:function(t){return arguments.length?(o=t,e):o},timeout:function(t){return arguments.length?(l=+t,e):l},user:function(t){return arguments.length<1?s:(s=null==t?null:t+"",e)},password:function(t){return arguments.length<1?f:(f=null==t?null:t+"",e)},response:function(t){return i=t,e},get:function(t,n){return e.send("GET",t,n)},post:function(t,n){return e.send("POST",t,n)},send:function(n,i,h){return c.open(n,t,!0,s,f),null==r||a.has("accept")||a.set("accept",r+",*/*"),c.setRequestHeader&&a.each(function(t,n){c.setRequestHeader(n,t)}),null!=r&&c.overrideMimeType&&c.overrideMimeType(r),null!=o&&(c.responseType=o),l>0&&(c.timeout=l),null==h&&"function"==typeof i&&(h=i,i=null),null!=h&&1===h.length&&(h=function(t){return function(n,e){t(null==n?e:null)}}(h)),null!=h&&e.on("error",h).on("load",function(t){h(null,t)}),u.call("beforesend",e,c),c.send(null==i?null:i),e},abort:function(){return c.abort(),e},on:function(){var t=u.on.apply(u,arguments);return t===u?e:t}},null!=n){if("function"!=typeof n)throw new Error("invalid callback: "+n);return e.get(n)}return e};var rm=function(t,n){return function(e,r){var i=em(e).mimeType(t).response(n);if(null!=r){if("function"!=typeof r)throw new Error("invalid callback: "+r);return i.get(r)}return i}},im=rm("text/html",function(t){return document.createRange().createContextualFragment(t.responseText)}),om=rm("application/json",function(t){return JSON.parse(t.responseText)}),um=rm("text/plain",function(t){return t.responseText}),am=rm("application/xml",function(t){var n=t.responseXML;if(!n)throw new Error("parse error");return n}),cm=e(7),sm=function(t,n){return function(e,r,i){arguments.length<3&&(i=r,r=null);var o=em(e).mimeType(t);return o.row=function(t){return arguments.length?o.response(function(t,n){return function(e){return t(e.responseText,n)}}(n,r=t)):r},o.row(r),i?o.get(i):o}};var fm=sm("text/csv",cm.c),lm=sm("text/tab-separated-values",cm.h),hm=function(t,n){return tn?1:t>=n?0:NaN},dm=function(t){return 1===t.length&&(t=function(t){return function(n,e){return hm(t(n),e)}}(t)),{left:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r>>1;t(n[o],e)<0?r=o+1:i=o}return r},right:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r>>1;t(n[o],e)>0?i=o:r=o+1}return r}}};var pm=dm(hm),vm=pm.right,gm=(pm.left,vm);var ym=function(t){return null===t?NaN:+t},mm=Array.prototype,_m=(mm.slice,mm.map,function(t,n,e){t=+t,n=+n,e=(i=arguments.length)<2?(n=t,t=0,1):i<3?1:+e;for(var r=-1,i=0|Math.max(0,Math.ceil((n-t)/e)),o=new Array(i);++r0)return[t];if((r=n0)for(t=Math.ceil(t/u),n=Math.floor(n/u),o=new Array(i=Math.ceil(n-t+1));++a=0?(o>=bm?10:o>=wm?5:o>=xm?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=bm?10:o>=wm?5:o>=xm?2:1)}function km(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=bm?i*=10:o>=wm?i*=5:o>=xm&&(i*=2),n=1)return+e(t[r-1],r-1,t);var r,i=(r-1)*n,o=Math.floor(i),u=+e(t[o],o,t);return u+(+e(t[o+1],o+1,t)-u)*(i-o)}};function Tm(){}function Sm(t,n){var e=new Tm;if(t instanceof Tm)t.each(function(t,n){e.set(n,t)});else if(Array.isArray(t)){var r,i=-1,o=t.length;if(null==n)for(;++i>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):(n=Vm.exec(t))?n_(parseInt(n[1],16)):(n=Xm.exec(t))?new o_(n[1],n[2],n[3],1):(n=Wm.exec(t))?new o_(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=Gm.exec(t))?e_(n[1],n[2],n[3],n[4]):(n=Qm.exec(t))?e_(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=Zm.exec(t))?a_(n[1],n[2]/100,n[3]/100,1):(n=Km.exec(t))?a_(n[1],n[2]/100,n[3]/100,n[4]):Jm.hasOwnProperty(t)?n_(Jm[t]):"transparent"===t?new o_(NaN,NaN,NaN,0):null}function n_(t){return new o_(t>>16&255,t>>8&255,255&t,1)}function e_(t,n,e,r){return r<=0&&(t=n=e=NaN),new o_(t,n,e,r)}function r_(t){return t instanceof Bm||(t=t_(t)),t?new o_((t=t.rgb()).r,t.g,t.b,t.opacity):new o_}function i_(t,n,e,r){return 1===arguments.length?r_(t):new o_(t,n,e,null==r?1:r)}function o_(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function u_(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function a_(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new s_(t,n,e,r)}function c_(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof s_)return new s_(t.h,t.s,t.l,t.opacity);if(t instanceof Bm||(t=t_(t)),!t)return new s_;if(t instanceof s_)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),u=NaN,a=o-i,c=(o+i)/2;return a?(u=n===o?(e-r)/a+6*(e0&&c<1?0:u,new s_(u,a,c,t.opacity)}(t):new s_(t,n,e,null==r?1:r)}function s_(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function f_(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}qm(Bm,t_,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),qm(o_,i_,jm(Bm,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new o_(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new o_(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},hex:function(){return"#"+u_(this.r)+u_(this.g)+u_(this.b)},toString:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"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===t?")":", "+t+")")}})),qm(s_,c_,jm(Bm,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new s_(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new s_(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new o_(f_(t>=240?t-240:t+120,i,r),f_(t,i,r),f_(t<120?t+240:t-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}}));var l_=Math.PI/180,h_=180/Math.PI,d_=.96422,p_=1,v_=.82521,g_=4/29,y_=6/29,m_=3*y_*y_,__=y_*y_*y_;function b_(t){if(t instanceof x_)return new x_(t.l,t.a,t.b,t.opacity);if(t instanceof C_){if(isNaN(t.h))return new x_(t.l,0,0,t.opacity);var n=t.h*l_;return new x_(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}t instanceof o_||(t=r_(t));var e,r,i=N_(t.r),o=N_(t.g),u=N_(t.b),a=M_((.2225045*i+.7168786*o+.0606169*u)/p_);return i===o&&o===u?e=r=a:(e=M_((.4360747*i+.3850649*o+.1430804*u)/d_),r=M_((.0139322*i+.0971045*o+.7141733*u)/v_)),new x_(116*a-16,500*(e-a),200*(a-r),t.opacity)}function w_(t,n,e,r){return 1===arguments.length?b_(t):new x_(t,n,e,null==r?1:r)}function x_(t,n,e,r){this.l=+t,this.a=+n,this.b=+e,this.opacity=+r}function M_(t){return t>__?Math.pow(t,1/3):t/m_+g_}function E_(t){return t>y_?t*t*t:m_*(t-g_)}function k_(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function N_(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function T_(t){if(t instanceof C_)return new C_(t.h,t.c,t.l,t.opacity);if(t instanceof x_||(t=b_(t)),0===t.a&&0===t.b)return new C_(NaN,0,t.l,t.opacity);var n=Math.atan2(t.b,t.a)*h_;return new C_(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function S_(t,n,e,r){return 1===arguments.length?T_(t):new C_(t,n,e,null==r?1:r)}function C_(t,n,e,r){this.h=+t,this.c=+n,this.l=+e,this.opacity=+r}qm(x_,w_,jm(Bm,{brighter:function(t){return new x_(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new x_(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,n=isNaN(this.a)?t:t+this.a/500,e=isNaN(this.b)?t:t-this.b/200;return new o_(k_(3.1338561*(n=d_*E_(n))-1.6168667*(t=p_*E_(t))-.4906146*(e=v_*E_(e))),k_(-.9787684*n+1.9161415*t+.033454*e),k_(.0719453*n-.2289914*t+1.4052427*e),this.opacity)}})),qm(C_,S_,jm(Bm,{brighter:function(t){return new C_(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new C_(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return b_(this).rgb()}}));var A_=-.29227,P_=-.90649,R_=1.97294,I_=R_*P_,L_=1.78277*R_,O_=1.78277*A_- -.14861*P_;function D_(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof U_)return new U_(t.h,t.s,t.l,t.opacity);t instanceof o_||(t=r_(t));var n=t.r/255,e=t.g/255,r=t.b/255,i=(O_*r+I_*n-L_*e)/(O_+I_-L_),o=r-i,u=(R_*(e-i)-A_*o)/P_,a=Math.sqrt(u*u+o*o)/(R_*i*(1-i)),c=a?Math.atan2(u,o)*h_-120:NaN;return new U_(c<0?c+360:c,a,i,t.opacity)}(t):new U_(t,n,e,null==r?1:r)}function U_(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function z_(t,n,e,r,i){var o=t*t,u=o*t;return((1-3*t+3*o-u)*n+(4-6*o+3*u)*e+(1+3*t+3*o-3*u)*r+u*i)/6}qm(U_,D_,jm(Bm,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new U_(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new U_(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*l_,n=+this.l,e=isNaN(this.s)?0:this.s*n*(1-n),r=Math.cos(t),i=Math.sin(t);return new o_(255*(n+e*(-.14861*r+1.78277*i)),255*(n+e*(A_*r+P_*i)),255*(n+e*(R_*r)),this.opacity)}}));var F_=function(t){return function(){return t}};function q_(t,n){return function(e){return t+e*n}}function j_(t,n){var e=n-t;return e?q_(t,e>180||e<-180?e-360*Math.round(e/360):e):F_(isNaN(t)?n:t)}function B_(t){return 1==(t=+t)?H_:function(n,e){return e-n?function(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}(n,e,t):F_(isNaN(n)?e:n)}}function H_(t,n){var e=n-t;return e?q_(t,e):F_(isNaN(t)?n:t)}var Y_=function t(n){var e=B_(n);function r(t,n){var r=e((t=i_(t)).r,(n=i_(n)).r),i=e(t.g,n.g),o=e(t.b,n.b),u=H_(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=i(n),t.b=o(n),t.opacity=u(n),t+""}}return r.gamma=t,r}(1);function $_(t){return function(n){var e,r,i=n.length,o=new Array(i),u=new Array(i),a=new Array(i);for(e=0;e=1?(e=1,n-1):Math.floor(e*n),i=t[r],o=t[r+1],u=r>0?t[r-1]:2*i-o,a=ro&&(i=n.slice(o,i),a[u]?a[u]+=i:a[++u]=i),(e=e[0])===(r=r[0])?a[u]?a[u]+=r:a[++u]=r:(a[++u]=null,c.push({i:u,x:V_(e,r)})),o=W_.lastIndex;return o180?n+=360:n-t>180&&(t+=360),o.push({i:e.push(i(e)+"rotate(",null,r)-2,x:V_(t,n)})):n&&e.push(i(e)+"rotate("+n+r)}(o.rotate,u.rotate,a,c),function(t,n,e,o){t!==n?o.push({i:e.push(i(e)+"skewX(",null,r)-2,x:V_(t,n)}):n&&e.push(i(e)+"skewX("+n+r)}(o.skewX,u.skewX,a,c),function(t,n,e,r,o,u){if(t!==e||n!==r){var a=o.push(i(o)+"scale(",null,",",null,")");u.push({i:a-4,x:V_(t,e)},{i:a-2,x:V_(n,r)})}else 1===e&&1===r||o.push(i(o)+"scale("+e+","+r+")")}(o.scaleX,o.scaleY,u.scaleX,u.scaleY,a,c),o=u=null,function(t){for(var n,e=-1,r=c.length;++e2?pb:db,r=i=null,f}function f(n){return(r||(r=e(o,u,c?function(t){return function(n,e){var r=t(n=+n,e=+e);return function(t){return t<=n?0:t>=e?1:r(t)}}}(t):t,a)))(+n)}return f.invert=function(t){return(i||(i=e(u,o,hb,c?function(t){return function(n,e){var r=t(n=+n,e=+e);return function(t){return t<=0?n:t>=1?e:r(t)}}}(n):n)))(+t)},f.domain=function(t){return arguments.length?(o=Lm.call(t,fb),s()):o.slice()},f.range=function(t){return arguments.length?(u=Om.call(t),s()):u.slice()},f.rangeRound=function(t){return u=Om.call(t),a=tb,s()},f.clamp=function(t){return arguments.length?(c=!!t,s()):c},f.interpolate=function(t){return arguments.length?(a=t,s()):a},s()}var yb=function(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,r=t.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+t.slice(e+1)]},mb=function(t){return(t=yb(Math.abs(t)))?t[1]:NaN},_b=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function bb(t){return new wb(t)}function wb(t){if(!(n=_b.exec(t)))throw new Error("invalid format: "+t);var n;this.fill=n[1]||" ",this.align=n[2]||">",this.sign=n[3]||"-",this.symbol=n[4]||"",this.zero=!!n[5],this.width=n[6]&&+n[6],this.comma=!!n[7],this.precision=n[8]&&+n[8].slice(1),this.trim=!!n[9],this.type=n[10]||""}bb.prototype=wb.prototype,wb.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var xb,Mb,Eb,kb,Nb=function(t){t:for(var n,e=t.length,r=1,i=-1;r0){if(!+t[r])break t;i=0}}return i>0?t.slice(0,i)+t.slice(n+1):t},Tb=function(t,n){var e=yb(t,n);if(!e)return t+"";var r=e[0],i=e[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")},Sb={"%":function(t,n){return(100*t).toFixed(n)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},g:function(t,n){return t.toPrecision(n)},o:function(t){return Math.round(t).toString(8)},p:function(t,n){return Tb(100*t,n)},r:Tb,s:function(t,n){var e=yb(t,n);if(!e)return t+"";var r=e[0],i=e[1],o=i-(xb=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,u=r.length;return o===u?r:o>u?r+new Array(o-u+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+yb(t,Math.max(0,n+o-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},Cb=function(t){return t},Ab=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],Pb=function(t){var n=t.grouping&&t.thousands?function(t,n){return function(e,r){for(var i=e.length,o=[],u=0,a=t[0],c=0;i>0&&a>0&&(c+a+1>r&&(a=Math.max(1,r-c)),o.push(e.substring(i-=a,i+a)),!((c+=a+1)>r));)a=t[u=(u+1)%t.length];return o.reverse().join(n)}}(t.grouping,t.thousands):Cb,e=t.currency,r=t.decimal,i=t.numerals?function(t){return function(n){return n.replace(/[0-9]/g,function(n){return t[+n]})}}(t.numerals):Cb,o=t.percent||"%";function u(t){var u=(t=bb(t)).fill,a=t.align,c=t.sign,s=t.symbol,f=t.zero,l=t.width,h=t.comma,d=t.precision,p=t.trim,v=t.type;"n"===v?(h=!0,v="g"):Sb[v]||(null==d&&(d=12),p=!0,v="g"),(f||"0"===u&&"="===a)&&(f=!0,u="0",a="=");var g="$"===s?e[0]:"#"===s&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",y="$"===s?e[1]:/[%p]/.test(v)?o:"",m=Sb[v],_=/[defgprs%]/.test(v);function b(t){var e,o,s,b=g,w=y;if("c"===v)w=m(t)+w,t="";else{var x=(t=+t)<0;if(t=m(Math.abs(t),d),p&&(t=Nb(t)),x&&0==+t&&(x=!1),b=(x?"("===c?c:"-":"-"===c||"("===c?"":c)+b,w=("s"===v?Ab[8+xb/3]:"")+w+(x&&"("===c?")":""),_)for(e=-1,o=t.length;++e(s=t.charCodeAt(e))||s>57){w=(46===s?r+t.slice(e+1):t.slice(e))+w,t=t.slice(0,e);break}}h&&!f&&(t=n(t,1/0));var M=b.length+t.length+w.length,E=M>1)+b+t+w+E.slice(M);break;default:t=E+b+t+w}return i(t)}return d=null==d?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,d)):Math.max(0,Math.min(20,d)),b.toString=function(){return t+""},b}return{format:u,formatPrefix:function(t,n){var e=u(((t=bb(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(mb(n)/3))),i=Math.pow(10,-r),o=Ab[8+r/3];return function(t){return e(i*t)+o}}}};!function(t){Mb=Pb(t),Eb=Mb.format,kb=Mb.formatPrefix}({decimal:".",thousands:",",grouping:[3],currency:["$",""]});var Rb=function(t,n,e){var r,i=t[0],o=t[t.length-1],u=km(i,o,null==n?10:n);switch((e=bb(null==e?",f":e)).type){case"s":var a=Math.max(Math.abs(i),Math.abs(o));return null!=e.precision||isNaN(r=function(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(mb(n)/3)))-mb(Math.abs(t)))}(u,a))||(e.precision=r),kb(e,a);case"":case"e":case"g":case"p":case"r":null!=e.precision||isNaN(r=function(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,mb(n)-mb(t))+1}(u,Math.max(Math.abs(i),Math.abs(o))))||(e.precision=r-("e"===e.type));break;case"f":case"%":null!=e.precision||isNaN(r=function(t){return Math.max(0,-mb(Math.abs(t)))}(u))||(e.precision=r-2*("%"===e.type))}return Eb(e)};function Ib(t){var n=t.domain;return t.ticks=function(t){var e=n();return Mm(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){return Rb(n(),t,e)},t.nice=function(e){null==e&&(e=10);var r,i=n(),o=0,u=i.length-1,a=i[o],c=i[u];return c0?r=Em(a=Math.floor(a/r)*r,c=Math.ceil(c/r)*r,e):r<0&&(r=Em(a=Math.ceil(a*r)/r,c=Math.floor(c*r)/r,e)),r>0?(i[o]=Math.floor(a/r)*r,i[u]=Math.ceil(c/r)*r,n(i)):r<0&&(i[o]=Math.ceil(a*r)/r,i[u]=Math.floor(c*r)/r,n(i)),t},t}function Lb(){var t=gb(hb,V_);return t.copy=function(){return vb(t,Lb())},Ib(t)}function Ob(){var t=[0,1];function n(t){return+t}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=Lm.call(e,fb),n):t.slice()},n.copy=function(){return Ob().domain(t)},Ib(n)}var Db=function(t,n){var e,r=0,i=(t=t.slice()).length-1,o=t[r],u=t[i];return u0){for(;hc)break;v.push(l)}}else for(;h=1;--f)if(!((l=s*f)c)break;v.push(l)}}else v=Mm(h,d,Math.min(d-h,p)).map(i);return o?v.reverse():v},t.tickFormat=function(n,o){if(null==o&&(o=10===e?".0e":","),"function"!=typeof o&&(o=Eb(o)),n===1/0)return o;null==n&&(n=10);var u=Math.max(1,e*n/t.ticks().length);return function(t){var n=t/i(Math.round(r(t)));return n*e0?e[i-1]:t[0],i=e?[r[e-1],n]:[r[u-1],r[u]]},o.copy=function(){return Wb().domain([t,n]).range(i)},Ib(o)}function Gb(){var t=[.5],n=[0,1],e=1;function r(r){if(r<=r)return n[gm(t,r,0,e)]}return r.domain=function(i){return arguments.length?(t=Om.call(i),e=Math.min(t.length,n.length-1),r):t.slice()},r.range=function(i){return arguments.length?(n=Om.call(i),e=Math.min(t.length,n.length-1),r):n.slice()},r.invertExtent=function(e){var r=n.indexOf(e);return[t[r-1],t[r]]},r.copy=function(){return Gb().domain(t).range(n)},r}var Qb=new Date,Zb=new Date;function Kb(t,n,e,r){function i(n){return t(n=new Date(+n)),n}return i.floor=i,i.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},i.round=function(t){var n=i(t),e=i.ceil(t);return t-n0))return a;do{a.push(u=new Date(+e)),n(e,o),t(e)}while(u=n)for(;t(n),!e(n);)n.setTime(n-1)},function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;n(t,-1),!e(t););else for(;--r>=0;)for(;n(t,1),!e(t););})},e&&(i.count=function(n,r){return Qb.setTime(+n),Zb.setTime(+r),t(Qb),t(Zb),Math.floor(e(Qb,Zb))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(n){return r(n)%t==0}:function(n){return i.count(0,n)%t==0}):i:null}),i}var Jb=Kb(function(){},function(t,n){t.setTime(+t+n)},function(t,n){return n-t});Jb.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Kb(function(n){n.setTime(Math.floor(n/t)*t)},function(n,e){n.setTime(+n+e*t)},function(n,e){return(e-n)/t}):Jb:null};var tw=Jb,nw=(Jb.range,6e4),ew=6048e5,rw=Kb(function(t){t.setTime(1e3*Math.floor(t/1e3))},function(t,n){t.setTime(+t+1e3*n)},function(t,n){return(n-t)/1e3},function(t){return t.getUTCSeconds()}),iw=rw,ow=(rw.range,Kb(function(t){t.setTime(Math.floor(t/nw)*nw)},function(t,n){t.setTime(+t+n*nw)},function(t,n){return(n-t)/nw},function(t){return t.getMinutes()})),uw=ow,aw=(ow.range,Kb(function(t){var n=t.getTimezoneOffset()*nw%36e5;n<0&&(n+=36e5),t.setTime(36e5*Math.floor((+t-n)/36e5)+n)},function(t,n){t.setTime(+t+36e5*n)},function(t,n){return(n-t)/36e5},function(t){return t.getHours()})),cw=aw,sw=(aw.range,Kb(function(t){t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*nw)/864e5},function(t){return t.getDate()-1})),fw=sw;sw.range;function lw(t){return Kb(function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+7*n)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*nw)/ew})}var hw=lw(0),dw=lw(1),pw=lw(2),vw=lw(3),gw=lw(4),yw=lw(5),mw=lw(6),_w=(hw.range,dw.range,pw.range,vw.range,gw.range,yw.range,mw.range,Kb(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,n){t.setMonth(t.getMonth()+n)},function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())},function(t){return t.getMonth()})),bw=_w,ww=(_w.range,Kb(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t,n){return n.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()}));ww.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Kb(function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,e){n.setFullYear(n.getFullYear()+e*t)}):null};var xw=ww,Mw=(ww.range,Kb(function(t){t.setUTCSeconds(0,0)},function(t,n){t.setTime(+t+n*nw)},function(t,n){return(n-t)/nw},function(t){return t.getUTCMinutes()})),Ew=Mw,kw=(Mw.range,Kb(function(t){t.setUTCMinutes(0,0,0)},function(t,n){t.setTime(+t+36e5*n)},function(t,n){return(n-t)/36e5},function(t){return t.getUTCHours()})),Nw=kw,Tw=(kw.range,Kb(function(t){t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n)},function(t,n){return(n-t)/864e5},function(t){return t.getUTCDate()-1})),Sw=Tw;Tw.range;function Cw(t){return Kb(function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+7*n)},function(t,n){return(n-t)/ew})}var Aw=Cw(0),Pw=Cw(1),Rw=Cw(2),Iw=Cw(3),Lw=Cw(4),Ow=Cw(5),Dw=Cw(6),Uw=(Aw.range,Pw.range,Rw.range,Iw.range,Lw.range,Ow.range,Dw.range,Kb(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCMonth(t.getUTCMonth()+n)},function(t,n){return n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()})),zw=Uw,Fw=(Uw.range,Kb(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)},function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()}));Fw.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Kb(function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)}):null};var qw=Fw;Fw.range;function jw(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Bw(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Hw(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}var Yw,$w,Vw,Xw,Ww={"-":"",_:" ",0:"0"},Gw=/^\s*\d+/,Qw=/^%/,Zw=/[\\^$*+?|[\]().{}]/g;function Kw(t,n,e){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o68?1900:2e3),e+r[0].length):-1}function sx(t,n,e){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),e+r[0].length):-1}function fx(t,n,e){var r=Gw.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function lx(t,n,e){var r=Gw.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function hx(t,n,e){var r=Gw.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function dx(t,n,e){var r=Gw.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function px(t,n,e){var r=Gw.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function vx(t,n,e){var r=Gw.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function gx(t,n,e){var r=Gw.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function yx(t,n,e){var r=Gw.exec(n.slice(e,e+6));return r?(t.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function mx(t,n,e){var r=Qw.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function _x(t,n,e){var r=Gw.exec(n.slice(e));return r?(t.Q=+r[0],e+r[0].length):-1}function bx(t,n,e){var r=Gw.exec(n.slice(e));return r?(t.Q=1e3*+r[0],e+r[0].length):-1}function wx(t,n){return Kw(t.getDate(),n,2)}function xx(t,n){return Kw(t.getHours(),n,2)}function Mx(t,n){return Kw(t.getHours()%12||12,n,2)}function Ex(t,n){return Kw(1+fw.count(xw(t),t),n,3)}function kx(t,n){return Kw(t.getMilliseconds(),n,3)}function Nx(t,n){return kx(t,n)+"000"}function Tx(t,n){return Kw(t.getMonth()+1,n,2)}function Sx(t,n){return Kw(t.getMinutes(),n,2)}function Cx(t,n){return Kw(t.getSeconds(),n,2)}function Ax(t){var n=t.getDay();return 0===n?7:n}function Px(t,n){return Kw(hw.count(xw(t),t),n,2)}function Rx(t,n){var e=t.getDay();return t=e>=4||0===e?gw(t):gw.ceil(t),Kw(gw.count(xw(t),t)+(4===xw(t).getDay()),n,2)}function Ix(t){return t.getDay()}function Lx(t,n){return Kw(dw.count(xw(t),t),n,2)}function Ox(t,n){return Kw(t.getFullYear()%100,n,2)}function Dx(t,n){return Kw(t.getFullYear()%1e4,n,4)}function Ux(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+Kw(n/60|0,"0",2)+Kw(n%60,"0",2)}function zx(t,n){return Kw(t.getUTCDate(),n,2)}function Fx(t,n){return Kw(t.getUTCHours(),n,2)}function qx(t,n){return Kw(t.getUTCHours()%12||12,n,2)}function jx(t,n){return Kw(1+Sw.count(qw(t),t),n,3)}function Bx(t,n){return Kw(t.getUTCMilliseconds(),n,3)}function Hx(t,n){return Bx(t,n)+"000"}function Yx(t,n){return Kw(t.getUTCMonth()+1,n,2)}function $x(t,n){return Kw(t.getUTCMinutes(),n,2)}function Vx(t,n){return Kw(t.getUTCSeconds(),n,2)}function Xx(t){var n=t.getUTCDay();return 0===n?7:n}function Wx(t,n){return Kw(Aw.count(qw(t),t),n,2)}function Gx(t,n){var e=t.getUTCDay();return t=e>=4||0===e?Lw(t):Lw.ceil(t),Kw(Lw.count(qw(t),t)+(4===qw(t).getUTCDay()),n,2)}function Qx(t){return t.getUTCDay()}function Zx(t,n){return Kw(Pw.count(qw(t),t),n,2)}function Kx(t,n){return Kw(t.getUTCFullYear()%100,n,2)}function Jx(t,n){return Kw(t.getUTCFullYear()%1e4,n,4)}function tM(){return"+0000"}function nM(){return"%"}function eM(t){return+t}function rM(t){return Math.floor(+t/1e3)}!function(t){Yw=function(t){var n=t.dateTime,e=t.date,r=t.time,i=t.periods,o=t.days,u=t.shortDays,a=t.months,c=t.shortMonths,s=tx(i),f=nx(i),l=tx(o),h=nx(o),d=tx(u),p=nx(u),v=tx(a),g=nx(a),y=tx(c),m=nx(c),_={a:function(t){return u[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return a[t.getMonth()]},c:null,d:wx,e:wx,f:Nx,H:xx,I:Mx,j:Ex,L:kx,m:Tx,M:Sx,p:function(t){return i[+(t.getHours()>=12)]},Q:eM,s:rM,S:Cx,u:Ax,U:Px,V:Rx,w:Ix,W:Lx,x:null,X:null,y:Ox,Y:Dx,Z:Ux,"%":nM},b={a:function(t){return u[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return a[t.getUTCMonth()]},c:null,d:zx,e:zx,f:Hx,H:Fx,I:qx,j:jx,L:Bx,m:Yx,M:$x,p:function(t){return i[+(t.getUTCHours()>=12)]},Q:eM,s:rM,S:Vx,u:Xx,U:Wx,V:Gx,w:Qx,W:Zx,x:null,X:null,y:Kx,Y:Jx,Z:tM,"%":nM},w={a:function(t,n,e){var r=d.exec(n.slice(e));return r?(t.w=p[r[0].toLowerCase()],e+r[0].length):-1},A:function(t,n,e){var r=l.exec(n.slice(e));return r?(t.w=h[r[0].toLowerCase()],e+r[0].length):-1},b:function(t,n,e){var r=y.exec(n.slice(e));return r?(t.m=m[r[0].toLowerCase()],e+r[0].length):-1},B:function(t,n,e){var r=v.exec(n.slice(e));return r?(t.m=g[r[0].toLowerCase()],e+r[0].length):-1},c:function(t,e,r){return E(t,n,e,r)},d:lx,e:lx,f:yx,H:dx,I:dx,j:hx,L:gx,m:fx,M:px,p:function(t,n,e){var r=s.exec(n.slice(e));return r?(t.p=f[r[0].toLowerCase()],e+r[0].length):-1},Q:_x,s:bx,S:vx,u:rx,U:ix,V:ox,w:ex,W:ux,x:function(t,n,r){return E(t,e,n,r)},X:function(t,n,e){return E(t,r,n,e)},y:cx,Y:ax,Z:sx,"%":mx};function x(t,n){return function(e){var r,i,o,u=[],a=-1,c=0,s=t.length;for(e instanceof Date||(e=new Date(+e));++a53)return null;"w"in o||(o.w=1),"Z"in o?(r=(i=(r=Bw(Hw(o.y))).getUTCDay())>4||0===i?Pw.ceil(r):Pw(r),r=Sw.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(r=(i=(r=n(Hw(o.y))).getDay())>4||0===i?dw.ceil(r):dw(r),r=fw.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?Bw(Hw(o.y)).getUTCDay():n(Hw(o.y)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,Bw(o)):n(o)}}function E(t,n,e,r){for(var i,o,u=0,a=n.length,c=e.length;u=c)return-1;if(37===(i=n.charCodeAt(u++))){if(i=n.charAt(u++),!(o=w[i in Ww?n.charAt(u++):i])||(r=o(t,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}return _.x=x(e,_),_.X=x(r,_),_.c=x(n,_),b.x=x(e,b),b.X=x(r,b),b.c=x(n,b),{format:function(t){var n=x(t+="",_);return n.toString=function(){return t},n},parse:function(t){var n=M(t+="",jw);return n.toString=function(){return t},n},utcFormat:function(t){var n=x(t+="",b);return n.toString=function(){return t},n},utcParse:function(t){var n=M(t,Bw);return n.toString=function(){return t},n}}}(t),$w=Yw.format,Yw.parse,Vw=Yw.utcFormat,Xw=Yw.utcParse}({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"]});Date.prototype.toISOString||Vw("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||Xw("%Y-%m-%dT%H:%M:%S.%LZ");var iM=1e3,oM=60*iM,uM=60*oM,aM=24*uM,cM=7*aM,sM=30*aM,fM=365*aM;function lM(t){return new Date(t)}function hM(t){return t instanceof Date?+t:+new Date(+t)}function dM(t,n,e,r,i,o,u,a,c){var s=gb(hb,V_),f=s.invert,l=s.domain,h=c(".%L"),d=c(":%S"),p=c("%I:%M"),v=c("%I %p"),g=c("%a %d"),y=c("%b %d"),m=c("%B"),_=c("%Y"),b=[[u,1,iM],[u,5,5*iM],[u,15,15*iM],[u,30,30*iM],[o,1,oM],[o,5,5*oM],[o,15,15*oM],[o,30,30*oM],[i,1,uM],[i,3,3*uM],[i,6,6*uM],[i,12,12*uM],[r,1,aM],[r,2,2*aM],[e,1,cM],[n,1,sM],[n,3,3*sM],[t,1,fM]];function w(a){return(u(a)1)&&(t-=Math.floor(t));var n=Math.abs(t-.5);return EM.h=360*t-100,EM.s=1.5-1.5*n,EM.l=.8-.9*n,EM+""};function NM(t){var n=t.length;return function(e){return t[Math.max(0,Math.min(n-1,Math.floor(e*n)))]}}var TM=NM(gM("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),SM=NM(gM("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),CM=NM(gM("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),AM=NM(gM("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function PM(t){var n=0,e=1,r=!1;function i(i){var o=(i-n)/(e-n);return t(r?Math.max(0,Math.min(1,o)):o)}return i.domain=function(t){return arguments.length?(n=+t[0],e=+t[1],i):[n,e]},i.clamp=function(t){return arguments.length?(r=!!t,i):r},i.interpolator=function(n){return arguments.length?(t=n,i):t},i.copy=function(){return PM(t).domain([n,e]).clamp(r)},Ib(i)}var RM="http://www.w3.org/1999/xhtml",IM={svg:"http://www.w3.org/2000/svg",xhtml:RM,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},LM=function(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),IM.hasOwnProperty(n)?{space:IM[n],local:t}:t};var OM=function(t){var n=LM(t);return(n.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===RM&&n.documentElement.namespaceURI===RM?n.createElement(t):n.createElementNS(e,t)}})(n)};function DM(){}var UM=function(t){return null==t?DM:function(){return this.querySelector(t)}};function zM(){return[]}var FM=function(t){return null==t?zM:function(){return this.querySelectorAll(t)}},qM=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var jM=document.documentElement;if(!jM.matches){var BM=jM.webkitMatchesSelector||jM.msMatchesSelector||jM.mozMatchesSelector||jM.oMatchesSelector;qM=function(t){return function(){return BM.call(this,t)}}}}var HM=qM,YM=function(t){return new Array(t.length)};function $M(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}$M.prototype={constructor:$M,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var VM="$";function XM(t,n,e,r,i,o){for(var u,a=0,c=n.length,s=o.length;an?1:t>=n?0:NaN}var QM=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function ZM(t,n){return t.style.getPropertyValue(n)||QM(t).getComputedStyle(t,null).getPropertyValue(n)}function KM(t){return t.trim().split(/^|\s+/)}function JM(t){return t.classList||new tE(t)}function tE(t){this._node=t,this._names=KM(t.getAttribute("class")||"")}function nE(t,n){for(var e=JM(t),r=-1,i=n.length;++r=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function rE(){this.textContent=""}function iE(){this.innerHTML=""}function oE(){this.nextSibling&&this.parentNode.appendChild(this)}function uE(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function aE(){return null}function cE(){var t=this.parentNode;t&&t.removeChild(this)}function sE(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function fE(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}var lE={},hE=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(lE={mouseenter:"mouseover",mouseleave:"mouseout"}));function dE(t,n,e){return t=pE(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function pE(t,n,e){return function(r){var i=hE;hE=r;try{t.call(this,this.__data__,n,e)}finally{hE=i}}}function vE(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,o=n.length;r=b&&(b=_+1);!(m=g[b])&&++b=0;)(r=i[o])&&(u&&u!==r.nextSibling&&u.parentNode.insertBefore(r,u),u=r);return this},sort:function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=GM);for(var e=this._groups,r=e.length,i=new Array(r),o=0;o