plotly.js 3.0.2 → 3.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * plotly.js (cartesian - minified) v3.0.2
2
+ * plotly.js (cartesian - minified) v3.0.3
3
3
  * Copyright 2012-2025, Plotly, Inc.
4
4
  * All rights reserved.
5
5
  * Licensed under the MIT license
@@ -12,7 +12,7 @@
12
12
  root.moduleName = factory();
13
13
  }
14
14
  } (typeof self !== "undefined" ? self : this, () => {
15
- "use strict";var Plotly=(()=>{var OA=Object.defineProperty;var Gie=Object.getOwnPropertyDescriptor;var Yie=Object.getOwnPropertyNames;var Vie=Object.prototype.hasOwnProperty;var BA=(e,r)=>()=>(e&&(r=e(e=0)),r);var N=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var Wie=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Yie(r))!Vie.call(e,n)&&n!==t&&OA(e,n,{get:()=>r[n],enumerable:!(a=Gie(r,n))||a.enumerable});return e};var jie=e=>Wie(OA({},"__esModule",{value:!0}),e);var tp=N(HA=>{"use strict";HA.version="3.0.2"});var GA=N((UA,ap)=>{(function(r,t,a){t[r]=t[r]||a(),typeof ap!="undefined"&&ap.exports&&(ap.exports=t[r])})("Promise",typeof window!="undefined"?window:UA,function(){"use strict";var r,t,a,n=Object.prototype.toString,i=typeof setImmediate!="undefined"?function(_){return setImmediate(_)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(_,w,b,T){return Object.defineProperty(_,w,{value:b,writable:!0,configurable:T!==!1})}}catch(x){r=function(w,b,T){return w[b]=T,w}}a=function(){var _,w,b;function T(k,M){this.fn=k,this.self=M,this.next=void 0}return{add:function(M,S){b=new T(M,S),w?w.next=b:_=b,w=b,b=void 0},drain:function(){var M=_;for(_=w=t=void 0;M;)M.fn.call(M.self),M=M.next}}}();function o(x,_){a.add(x,_),t||(t=i(a.drain))}function l(x){var _,w=typeof x;return x!=null&&(w=="object"||w=="function")&&(_=x.then),typeof _=="function"?_:!1}function s(){for(var x=0;x<this.chain.length;x++)u(this,this.state===1?this.chain[x].success:this.chain[x].failure,this.chain[x]);this.chain.length=0}function u(x,_,w){var b,T;try{_===!1?w.reject(x.msg):(_===!0?b=x.msg:b=_.call(void 0,x.msg),b===w.promise?w.reject(TypeError("Promise-chain cycle")):(T=l(b))?T.call(b,w.resolve,w.reject):w.resolve(b))}catch(k){w.reject(k)}}function f(x){var _,w=this;if(!w.triggered){w.triggered=!0,w.def&&(w=w.def);try{(_=l(x))?o(function(){var b=new d(w);try{_.call(x,function(){f.apply(b,arguments)},function(){c.apply(b,arguments)})}catch(T){c.call(b,T)}}):(w.msg=x,w.state=1,w.chain.length>0&&o(s,w))}catch(b){c.call(new d(w),b)}}}function c(x){var _=this;_.triggered||(_.triggered=!0,_.def&&(_=_.def),_.msg=x,_.state=2,_.chain.length>0&&o(s,_))}function v(x,_,w,b){for(var T=0;T<_.length;T++)(function(M){x.resolve(_[M]).then(function(E){w(M,E)},b)})(T)}function d(x){this.def=x,this.triggered=!1}function p(x){this.promise=x,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function m(x){if(typeof x!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var _=new p(this);this.then=function(b,T){var k={success:typeof b=="function"?b:!0,failure:typeof T=="function"?T:!1};return k.promise=new this.constructor(function(S,E){if(typeof S!="function"||typeof E!="function")throw TypeError("Not a function");k.resolve=S,k.reject=E}),_.chain.push(k),_.state!==0&&o(s,_),k.promise},this.catch=function(b){return this.then(void 0,b)};try{x.call(void 0,function(b){f.call(_,b)},function(b){c.call(_,b)})}catch(w){c.call(_,w)}}var y=r({},"constructor",m,!1);return m.prototype=y,r(y,"__NPO__",0,!1),r(m,"resolve",function(_){var w=this;return _&&typeof _=="object"&&_.__NPO__===1?_:new w(function(T,k){if(typeof T!="function"||typeof k!="function")throw TypeError("Not a function");T(_)})}),r(m,"reject",function(_){return new this(function(b,T){if(typeof b!="function"||typeof T!="function")throw TypeError("Not a function");T(_)})}),r(m,"all",function(_){var w=this;return n.call(_)!="[object Array]"?w.reject(TypeError("Not an array")):_.length===0?w.resolve([]):new w(function(T,k){if(typeof T!="function"||typeof k!="function")throw TypeError("Not a function");var M=_.length,S=Array(M),E=0;v(w,_,function(R,D){S[R]=D,++E===M&&T(S)},k)})}),r(m,"race",function(_){var w=this;return n.call(_)!="[object Array]"?w.reject(TypeError("Not an array")):new w(function(T,k){if(typeof T!="function"||typeof k!="function")throw TypeError("Not a function");v(w,_,function(S,E){T(E)},k)})}),m})});var Sr=N((tCe,np)=>{(function(){var e={version:"3.8.2"},r=[].slice,t=function(h){return r.call(h)},a=self.document;function n(h){return h&&(h.ownerDocument||h.document||h).documentElement}function i(h){return h&&(h.ownerDocument&&h.ownerDocument.defaultView||h.document&&h||h.defaultView)}if(a)try{t(a.documentElement.childNodes)[0].nodeType}catch(h){t=function(g){for(var A=g.length,q=new Array(A);A--;)q[A]=g[A];return q}}if(Date.now||(Date.now=function(){return+new Date}),a)try{a.createElement("DIV").style.setProperty("opacity",0,"")}catch(h){var o=this.Element.prototype,l=o.setAttribute,s=o.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;o.setAttribute=function(g,A){l.call(this,g,A+"")},o.setAttributeNS=function(g,A,q){s.call(this,g,A,q+"")},u.setProperty=function(g,A,q){f.call(this,g,A+"",q)}}e.ascending=c;function c(h,g){return h<g?-1:h>g?1:h>=g?0:NaN}e.descending=function(h,g){return g<h?-1:g>h?1:g>=h?0:NaN},e.min=function(h,g){var A=-1,q=h.length,L,C;if(arguments.length===1){for(;++A<q;)if((C=h[A])!=null&&C>=C){L=C;break}for(;++A<q;)(C=h[A])!=null&&L>C&&(L=C)}else{for(;++A<q;)if((C=g.call(h,h[A],A))!=null&&C>=C){L=C;break}for(;++A<q;)(C=g.call(h,h[A],A))!=null&&L>C&&(L=C)}return L},e.max=function(h,g){var A=-1,q=h.length,L,C;if(arguments.length===1){for(;++A<q;)if((C=h[A])!=null&&C>=C){L=C;break}for(;++A<q;)(C=h[A])!=null&&C>L&&(L=C)}else{for(;++A<q;)if((C=g.call(h,h[A],A))!=null&&C>=C){L=C;break}for(;++A<q;)(C=g.call(h,h[A],A))!=null&&C>L&&(L=C)}return L},e.extent=function(h,g){var A=-1,q=h.length,L,C,I;if(arguments.length===1){for(;++A<q;)if((C=h[A])!=null&&C>=C){L=I=C;break}for(;++A<q;)(C=h[A])!=null&&(L>C&&(L=C),I<C&&(I=C))}else{for(;++A<q;)if((C=g.call(h,h[A],A))!=null&&C>=C){L=I=C;break}for(;++A<q;)(C=g.call(h,h[A],A))!=null&&(L>C&&(L=C),I<C&&(I=C))}return[L,I]};function v(h){return h===null?NaN:+h}function d(h){return!isNaN(h)}e.sum=function(h,g){var A=0,q=h.length,L,C=-1;if(arguments.length===1)for(;++C<q;)d(L=+h[C])&&(A+=L);else for(;++C<q;)d(L=+g.call(h,h[C],C))&&(A+=L);return A},e.mean=function(h,g){var A=0,q=h.length,L,C=-1,I=q;if(arguments.length===1)for(;++C<q;)d(L=v(h[C]))?A+=L:--I;else for(;++C<q;)d(L=v(g.call(h,h[C],C)))?A+=L:--I;if(I)return A/I},e.quantile=function(h,g){var A=(h.length-1)*g+1,q=Math.floor(A),L=+h[q-1],C=A-q;return C?L+C*(h[q]-L):L},e.median=function(h,g){var A=[],q=h.length,L,C=-1;if(arguments.length===1)for(;++C<q;)d(L=v(h[C]))&&A.push(L);else for(;++C<q;)d(L=v(g.call(h,h[C],C)))&&A.push(L);if(A.length)return e.quantile(A.sort(c),.5)},e.variance=function(h,g){var A=h.length,q=0,L,C,I=0,F=-1,U=0;if(arguments.length===1)for(;++F<A;)d(L=v(h[F]))&&(C=L-q,q+=C/++U,I+=C*(L-q));else for(;++F<A;)d(L=v(g.call(h,h[F],F)))&&(C=L-q,q+=C/++U,I+=C*(L-q));if(U>1)return I/(U-1)},e.deviation=function(){var h=e.variance.apply(this,arguments);return h&&Math.sqrt(h)};function p(h){return{left:function(g,A,q,L){for(arguments.length<3&&(q=0),arguments.length<4&&(L=g.length);q<L;){var C=q+L>>>1;h(g[C],A)<0?q=C+1:L=C}return q},right:function(g,A,q,L){for(arguments.length<3&&(q=0),arguments.length<4&&(L=g.length);q<L;){var C=q+L>>>1;h(g[C],A)>0?L=C:q=C+1}return q}}}var m=p(c);e.bisectLeft=m.left,e.bisect=e.bisectRight=m.right,e.bisector=function(h){return p(h.length===1?function(g,A){return c(h(g),A)}:h)},e.shuffle=function(h,g,A){(q=arguments.length)<3&&(A=h.length,q<2&&(g=0));for(var q=A-g,L,C;q;)C=Math.random()*q--|0,L=h[q+g],h[q+g]=h[C+g],h[C+g]=L;return h},e.permute=function(h,g){for(var A=g.length,q=new Array(A);A--;)q[A]=h[g[A]];return q},e.pairs=function(h){for(var g=0,A=h.length-1,q,L=h[0],C=new Array(A<0?0:A);g<A;)C[g]=[q=L,L=h[++g]];return C},e.transpose=function(h){if(!(C=h.length))return[];for(var g=-1,A=e.min(h,y),q=new Array(A);++g<A;)for(var L=-1,C,I=q[g]=new Array(C);++L<C;)I[L]=h[L][g];return q};function y(h){return h.length}e.zip=function(){return e.transpose(arguments)},e.keys=function(h){var g=[];for(var A in h)g.push(A);return g},e.values=function(h){var g=[];for(var A in h)g.push(h[A]);return g},e.entries=function(h){var g=[];for(var A in h)g.push({key:A,value:h[A]});return g},e.merge=function(h){for(var g=h.length,A,q=-1,L=0,C,I;++q<g;)L+=h[q].length;for(C=new Array(L);--g>=0;)for(I=h[g],A=I.length;--A>=0;)C[--L]=I[A];return C};var x=Math.abs;e.range=function(h,g,A){if(arguments.length<3&&(A=1,arguments.length<2&&(g=h,h=0)),(g-h)/A===1/0)throw new Error("infinite range");var q=[],L=_(x(A)),C=-1,I;if(h*=L,g*=L,A*=L,A<0)for(;(I=h+A*++C)>g;)q.push(I/L);else for(;(I=h+A*++C)<g;)q.push(I/L);return q};function _(h){for(var g=1;h*g%1;)g*=10;return g}function w(h,g){for(var A in g)Object.defineProperty(h.prototype,A,{value:g[A],enumerable:!1})}e.map=function(h,g){var A=new b;if(h instanceof b)h.forEach(function(F,U){A.set(F,U)});else if(Array.isArray(h)){var q=-1,L=h.length,C;if(arguments.length===1)for(;++q<L;)A.set(q,h[q]);else for(;++q<L;)A.set(g.call(h,C=h[q],q),C)}else for(var I in h)A.set(I,h[I]);return A};function b(){this._=Object.create(null)}var T="__proto__",k="\0";w(b,{has:E,get:function(h){return this._[M(h)]},set:function(h,g){return this._[M(h)]=g},remove:P,keys:R,values:function(){var h=[];for(var g in this._)h.push(this._[g]);return h},entries:function(){var h=[];for(var g in this._)h.push({key:S(g),value:this._[g]});return h},size:D,empty:z,forEach:function(h){for(var g in this._)h.call(this,S(g),this._[g])}});function M(h){return(h+="")===T||h[0]===k?k+h:h}function S(h){return(h+="")[0]===k?h.slice(1):h}function E(h){return M(h)in this._}function P(h){return(h=M(h))in this._&&delete this._[h]}function R(){var h=[];for(var g in this._)h.push(S(g));return h}function D(){var h=0;for(var g in this._)++h;return h}function z(){for(var h in this._)return!1;return!0}e.nest=function(){var h={},g=[],A=[],q,L;function C(F,U,J){if(J>=g.length)return L?L.call(h,U):q?U.sort(q):U;for(var $=-1,ee=U.length,re=g[J++],_e,Me,ae,ce=new b,ge;++$<ee;)(ge=ce.get(_e=re(Me=U[$])))?ge.push(Me):ce.set(_e,[Me]);return F?(Me=F(),ae=function(Ae,ke){Me.set(Ae,C(F,ke,J))}):(Me={},ae=function(Ae,ke){Me[Ae]=C(F,ke,J)}),ce.forEach(ae),Me}function I(F,U){if(U>=g.length)return F;var J=[],$=A[U++];return F.forEach(function(ee,re){J.push({key:ee,values:I(re,U)})}),$?J.sort(function(ee,re){return $(ee.key,re.key)}):J}return h.map=function(F,U){return C(U,F,0)},h.entries=function(F){return I(C(e.map,F,0),0)},h.key=function(F){return g.push(F),h},h.sortKeys=function(F){return A[g.length-1]=F,h},h.sortValues=function(F){return q=F,h},h.rollup=function(F){return L=F,h},h},e.set=function(h){var g=new O;if(h)for(var A=0,q=h.length;A<q;++A)g.add(h[A]);return g};function O(){this._=Object.create(null)}w(O,{has:E,add:function(h){return this._[M(h+="")]=!0,h},remove:P,values:R,size:D,empty:z,forEach:function(h){for(var g in this._)h.call(this,S(g))}}),e.behavior={};function H(h){return h}e.rebind=function(h,g){for(var A=1,q=arguments.length,L;++A<q;)h[L=arguments[A]]=Y(h,g,g[L]);return h};function Y(h,g,A){return function(){var q=A.apply(g,arguments);return q===g?h:q}}function G(h,g){if(g in h)return g;g=g.charAt(0).toUpperCase()+g.slice(1);for(var A=0,q=B.length;A<q;++A){var L=B[A]+g;if(L in h)return L}}var B=["webkit","ms","moz","Moz","o","O"];function V(){}e.dispatch=function(){for(var h=new X,g=-1,A=arguments.length;++g<A;)h[arguments[g]]=Z(h);return h};function X(){}X.prototype.on=function(h,g){var A=h.indexOf("."),q="";if(A>=0&&(q=h.slice(A+1),h=h.slice(0,A)),h)return arguments.length<2?this[h].on(q):this[h].on(q,g);if(arguments.length===2){if(g==null)for(h in this)this.hasOwnProperty(h)&&this[h].on(q,null);return this}};function Z(h){var g=[],A=new b;function q(){for(var L=g,C=-1,I=L.length,F;++C<I;)(F=L[C].on)&&F.apply(this,arguments);return h}return q.on=function(L,C){var I=A.get(L),F;return arguments.length<2?I&&I.on:(I&&(I.on=null,g=g.slice(0,F=g.indexOf(I)).concat(g.slice(F+1)),A.remove(L)),C&&g.push(A.set(L,{on:C})),h)},q}e.event=null;function te(){e.event.preventDefault()}function fe(){for(var h=e.event,g;g=h.sourceEvent;)h=g;return h}function le(h){for(var g=new X,A=0,q=arguments.length;++A<q;)g[arguments[A]]=Z(g);return g.of=function(L,C){return function(I){try{var F=I.sourceEvent=e.event;I.target=h,e.event=I,g[I.type].apply(L,C)}finally{e.event=F}}},g}e.requote=function(h){return h.replace(ie,"\\$&")};var ie=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,K={}.__proto__?function(h,g){h.__proto__=g}:function(h,g){for(var A in g)h[A]=g[A]};function he(h){return K(h,de),h}var oe=function(h,g){return g.querySelector(h)},ye=function(h,g){return g.querySelectorAll(h)},ue=function(h,g){var A=h.matches||h[G(h,"matchesSelector")];return ue=function(q,L){return A.call(q,L)},ue(h,g)};typeof Sizzle=="function"&&(oe=function(h,g){return Sizzle(h,g)[0]||null},ye=Sizzle,ue=Sizzle.matchesSelector),e.selection=function(){return e.select(a.documentElement)};var de=e.selection.prototype=[];de.select=function(h){var g=[],A,q,L,C;h=W(h);for(var I=-1,F=this.length;++I<F;){g.push(A=[]),A.parentNode=(L=this[I]).parentNode;for(var U=-1,J=L.length;++U<J;)(C=L[U])?(A.push(q=h.call(C,C.__data__,U,I)),q&&"__data__"in C&&(q.__data__=C.__data__)):A.push(null)}return he(g)};function W(h){return typeof h=="function"?h:function(){return oe(h,this)}}de.selectAll=function(h){var g=[],A,q;h=Q(h);for(var L=-1,C=this.length;++L<C;)for(var I=this[L],F=-1,U=I.length;++F<U;)(q=I[F])&&(g.push(A=t(h.call(q,q.__data__,F,L))),A.parentNode=q);return he(g)};function Q(h){return typeof h=="function"?h:function(){return ye(h,this)}}var j="http://www.w3.org/1999/xhtml",pe={svg:"http://www.w3.org/2000/svg",xhtml:j,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};e.ns={prefix:pe,qualify:function(h){var g=h.indexOf(":"),A=h;return g>=0&&(A=h.slice(0,g))!=="xmlns"&&(h=h.slice(g+1)),pe.hasOwnProperty(A)?{space:pe[A],local:h}:h}},de.attr=function(h,g){if(arguments.length<2){if(typeof h=="string"){var A=this.node();return h=e.ns.qualify(h),h.local?A.getAttributeNS(h.space,h.local):A.getAttribute(h)}for(g in h)this.each(me(g,h[g]));return this}return this.each(me(h,g))};function me(h,g){h=e.ns.qualify(h);function A(){this.removeAttribute(h)}function q(){this.removeAttributeNS(h.space,h.local)}function L(){this.setAttribute(h,g)}function C(){this.setAttributeNS(h.space,h.local,g)}function I(){var U=g.apply(this,arguments);U==null?this.removeAttribute(h):this.setAttribute(h,U)}function F(){var U=g.apply(this,arguments);U==null?this.removeAttributeNS(h.space,h.local):this.setAttributeNS(h.space,h.local,U)}return g==null?h.local?q:A:typeof g=="function"?h.local?F:I:h.local?C:L}function we(h){return h.trim().replace(/\s+/g," ")}de.classed=function(h,g){if(arguments.length<2){if(typeof h=="string"){var A=this.node(),q=(h=Fe(h)).length,L=-1;if(g=A.classList){for(;++L<q;)if(!g.contains(h[L]))return!1}else for(g=A.getAttribute("class");++L<q;)if(!Ne(h[L]).test(g))return!1;return!0}for(g in h)this.each(Re(g,h[g]));return this}return this.each(Re(h,g))};function Ne(h){return new RegExp("(?:^|\\s+)"+e.requote(h)+"(?:\\s+|$)","g")}function Fe(h){return(h+"").trim().split(/^|\s+/)}function Re(h,g){h=Fe(h).map(Ie);var A=h.length;function q(){for(var C=-1;++C<A;)h[C](this,g)}function L(){for(var C=-1,I=g.apply(this,arguments);++C<A;)h[C](this,I)}return typeof g=="function"?L:q}function Ie(h){var g=Ne(h);return function(A,q){if(L=A.classList)return q?L.add(h):L.remove(h);var L=A.getAttribute("class")||"";q?(g.lastIndex=0,g.test(L)||A.setAttribute("class",we(L+" "+h))):A.setAttribute("class",we(L.replace(g," ")))}}de.style=function(h,g,A){var q=arguments.length;if(q<3){if(typeof h!="string"){q<2&&(g="");for(A in h)this.each(Be(A,h[A],g));return this}if(q<2){var L=this.node();return i(L).getComputedStyle(L,null).getPropertyValue(h)}A=""}return this.each(Be(h,g,A))};function Be(h,g,A){function q(){this.style.removeProperty(h)}function L(){this.style.setProperty(h,g,A)}function C(){var I=g.apply(this,arguments);I==null?this.style.removeProperty(h):this.style.setProperty(h,I,A)}return g==null?q:typeof g=="function"?C:L}de.property=function(h,g){if(arguments.length<2){if(typeof h=="string")return this.node()[h];for(g in h)this.each(ze(g,h[g]));return this}return this.each(ze(h,g))};function ze(h,g){function A(){delete this[h]}function q(){this[h]=g}function L(){var C=g.apply(this,arguments);C==null?delete this[h]:this[h]=C}return g==null?A:typeof g=="function"?L:q}de.text=function(h){return arguments.length?this.each(typeof h=="function"?function(){var g=h.apply(this,arguments);this.textContent=g==null?"":g}:h==null?function(){this.textContent=""}:function(){this.textContent=h}):this.node().textContent},de.html=function(h){return arguments.length?this.each(typeof h=="function"?function(){var g=h.apply(this,arguments);this.innerHTML=g==null?"":g}:h==null?function(){this.innerHTML=""}:function(){this.innerHTML=h}):this.node().innerHTML},de.append=function(h){return h=Pe(h),this.select(function(){return this.appendChild(h.apply(this,arguments))})};function Pe(h){function g(){var q=this.ownerDocument,L=this.namespaceURI;return L===j&&q.documentElement.namespaceURI===j?q.createElement(h):q.createElementNS(L,h)}function A(){return this.ownerDocument.createElementNS(h.space,h.local)}return typeof h=="function"?h:(h=e.ns.qualify(h)).local?A:g}de.insert=function(h,g){return h=Pe(h),g=W(g),this.select(function(){return this.insertBefore(h.apply(this,arguments),g.apply(this,arguments)||null)})},de.remove=function(){return this.each(Xe)};function Xe(){var h=this.parentNode;h&&h.removeChild(this)}de.data=function(h,g){var A=-1,q=this.length,L,C;if(!arguments.length){for(h=new Array(q=(L=this[0]).length);++A<q;)(C=L[A])&&(h[A]=C.__data__);return h}function I($,ee){var re,_e=$.length,Me=ee.length,ae=Math.min(_e,Me),ce=new Array(Me),ge=new Array(Me),Ae=new Array(_e),ke,xe;if(g){var Ve=new b,nr=new Array(_e),fr;for(re=-1;++re<_e;)(ke=$[re])&&(Ve.has(fr=g.call(ke,ke.__data__,re))?Ae[re]=ke:Ve.set(fr,ke),nr[re]=fr);for(re=-1;++re<Me;)(ke=Ve.get(fr=g.call(ee,xe=ee[re],re)))?ke!==!0&&(ce[re]=ke,ke.__data__=xe):ge[re]=Ue(xe),Ve.set(fr,!0);for(re=-1;++re<_e;)re in nr&&Ve.get(nr[re])!==!0&&(Ae[re]=$[re])}else{for(re=-1;++re<ae;)ke=$[re],xe=ee[re],ke?(ke.__data__=xe,ce[re]=ke):ge[re]=Ue(xe);for(;re<Me;++re)ge[re]=Ue(ee[re]);for(;re<_e;++re)Ae[re]=$[re]}ge.update=ce,ge.parentNode=ce.parentNode=Ae.parentNode=$.parentNode,F.push(ge),U.push(ce),J.push(Ae)}var F=ir([]),U=he([]),J=he([]);if(typeof h=="function")for(;++A<q;)I(L=this[A],h.call(L,L.parentNode.__data__,A));else for(;++A<q;)I(L=this[A],h);return U.enter=function(){return F},U.exit=function(){return J},U};function Ue(h){return{__data__:h}}de.datum=function(h){return arguments.length?this.property("__data__",h):this.property("__data__")},de.filter=function(h){var g=[],A,q,L;typeof h!="function"&&(h=se(h));for(var C=0,I=this.length;C<I;C++){g.push(A=[]),A.parentNode=(q=this[C]).parentNode;for(var F=0,U=q.length;F<U;F++)(L=q[F])&&h.call(L,L.__data__,F,C)&&A.push(L)}return he(g)};function se(h){return function(){return ue(this,h)}}de.order=function(){for(var h=-1,g=this.length;++h<g;)for(var A=this[h],q=A.length-1,L=A[q],C;--q>=0;)(C=A[q])&&(L&&L!==C.nextSibling&&L.parentNode.insertBefore(C,L),L=C);return this},de.sort=function(h){h=Te.apply(this,arguments);for(var g=-1,A=this.length;++g<A;)this[g].sort(h);return this.order()};function Te(h){return arguments.length||(h=c),function(g,A){return g&&A?h(g.__data__,A.__data__):!g-!A}}de.each=function(h){return Se(this,function(g,A,q){h.call(g,g.__data__,A,q)})};function Se(h,g){for(var A=0,q=h.length;A<q;A++)for(var L=h[A],C=0,I=L.length,F;C<I;C++)(F=L[C])&&g(F,C,A);return h}de.call=function(h){var g=t(arguments);return h.apply(g[0]=this,g),this},de.empty=function(){return!this.node()},de.node=function(){for(var h=0,g=this.length;h<g;h++)for(var A=this[h],q=0,L=A.length;q<L;q++){var C=A[q];if(C)return C}return null},de.size=function(){var h=0;return Se(this,function(){++h}),h};function ir(h){return K(h,Qe),h}var Qe=[];e.selection.enter=ir,e.selection.enter.prototype=Qe,Qe.append=de.append,Qe.empty=de.empty,Qe.node=de.node,Qe.call=de.call,Qe.size=de.size,Qe.select=function(h){for(var g=[],A,q,L,C,I,F=-1,U=this.length;++F<U;){L=(C=this[F]).update,g.push(A=[]),A.parentNode=C.parentNode;for(var J=-1,$=C.length;++J<$;)(I=C[J])?(A.push(L[J]=q=h.call(C.parentNode,I.__data__,J,F)),q.__data__=I.__data__):A.push(null)}return he(g)},Qe.insert=function(h,g){return arguments.length<2&&(g=Le(this)),de.insert.call(this,h,g)};function Le(h){var g,A;return function(q,L,C){var I=h[C].update,F=I.length,U;for(C!=A&&(A=C,g=0),L>=g&&(g=L+1);!(U=I[g])&&++g<F;);return U}}e.select=function(h){var g;return typeof h=="string"?(g=[oe(h,a)],g.parentNode=a.documentElement):(g=[h],g.parentNode=n(h)),he([g])},e.selectAll=function(h){var g;return typeof h=="string"?(g=t(ye(h,a)),g.parentNode=a.documentElement):(g=t(h),g.parentNode=null),he([g])},de.on=function(h,g,A){var q=arguments.length;if(q<3){if(typeof h!="string"){q<2&&(g=!1);for(A in h)this.each(Ce(A,h[A],g));return this}if(q<2)return(q=this.node()["__on"+h])&&q._;A=!1}return this.each(Ce(h,g,A))};function Ce(h,g,A){var q="__on"+h,L=h.indexOf("."),C=Ze;L>0&&(h=h.slice(0,L));var I=Ge.get(h);I&&(h=I,C=Ye);function F(){var $=this[q];$&&(this.removeEventListener(h,$,$.$),delete this[q])}function U(){var $=C(g,t(arguments));F.call(this),this.addEventListener(h,this[q]=$,$.$=A),$._=g}function J(){var $=new RegExp("^__on([^.]+)"+e.requote(h)+"$"),ee;for(var re in this)if(ee=re.match($)){var _e=this[re];this.removeEventListener(ee[1],_e,_e.$),delete this[re]}}return L?g?U:F:g?V:J}var Ge=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&Ge.forEach(function(h){"on"+h in a&&Ge.remove(h)});function Ze(h,g){return function(A){var q=e.event;e.event=A,g[0]=this.__data__;try{h.apply(this,g)}finally{e.event=q}}}function Ye(h,g){var A=Ze(h,g);return function(q){var L=this,C=q.relatedTarget;(!C||C!==L&&!(C.compareDocumentPosition(L)&8))&&A.call(L,q)}}var He,$e=0;function cr(h){var g=".dragsuppress-"+ ++$e,A="click"+g,q=e.select(i(h)).on("touchmove"+g,te).on("dragstart"+g,te).on("selectstart"+g,te);if(He==null&&(He="onselectstart"in h?!1:G(h.style,"userSelect")),He){var L=n(h).style,C=L[He];L[He]="none"}return function(I){if(q.on(g,null),He&&(L[He]=C),I){var F=function(){q.on(A,null)};q.on(A,function(){te(),F()},!0),setTimeout(F,0)}}}e.mouse=function(h){return Oe(h,fe())};var lr=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Oe(h,g){g.changedTouches&&(g=g.changedTouches[0]);var A=h.ownerSVGElement||h;if(A.createSVGPoint){var q=A.createSVGPoint();if(lr<0){var L=i(h);if(L.scrollX||L.scrollY){A=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var C=A[0][0].getScreenCTM();lr=!(C.f||C.e),A.remove()}}return lr?(q.x=g.pageX,q.y=g.pageY):(q.x=g.clientX,q.y=g.clientY),q=q.matrixTransform(h.getScreenCTM().inverse()),[q.x,q.y]}var I=h.getBoundingClientRect();return[g.clientX-I.left-h.clientLeft,g.clientY-I.top-h.clientTop]}e.touch=function(h,g,A){if(arguments.length<3&&(A=g,g=fe().changedTouches),g){for(var q=0,L=g.length,C;q<L;++q)if((C=g[q]).identifier===A)return Oe(h,C)}},e.behavior.drag=function(){var h=le(L,"drag","dragstart","dragend"),g=null,A=C(V,e.mouse,i,"mousemove","mouseup"),q=C(ne,e.touch,H,"touchmove","touchend");function L(){this.on("mousedown.drag",A).on("touchstart.drag",q)}function C(I,F,U,J,$){return function(){var ee=this,re=e.event.target.correspondingElement||e.event.target,_e=ee.parentNode,Me=h.of(ee,arguments),ae=0,ce=I(),ge=".drag"+(ce==null?"":"-"+ce),Ae,ke=e.select(U(re)).on(J+ge,nr).on($+ge,fr),xe=cr(re),Ve=F(_e,ce);g?(Ae=g.apply(ee,arguments),Ae=[Ae.x-Ve[0],Ae.y-Ve[1]]):Ae=[0,0],Me({type:"dragstart"});function nr(){var or=F(_e,ce),dr,pr;or&&(dr=or[0]-Ve[0],pr=or[1]-Ve[1],ae|=dr|pr,Ve=or,Me({type:"drag",x:or[0]+Ae[0],y:or[1]+Ae[1],dx:dr,dy:pr}))}function fr(){F(_e,ce)&&(ke.on(J+ge,null).on($+ge,null),xe(ae),Me({type:"dragend"}))}}}return L.origin=function(I){return arguments.length?(g=I,L):g},e.rebind(L,h,"on")};function ne(){return e.event.changedTouches[0].identifier}e.touches=function(h,g){return arguments.length<2&&(g=fe().touches),g?t(g).map(function(A){var q=Oe(h,A);return q.identifier=A.identifier,q}):[]};var ve=1e-6,De=ve*ve,qe=Math.PI,ar=2*qe,hr=ar-ve,ur=qe/2,Ar=qe/180,Wr=180/qe;function Vr(h){return h>0?1:h<0?-1:0}function zr(h,g,A){return(g[0]-h[0])*(A[1]-h[1])-(g[1]-h[1])*(A[0]-h[0])}function Et(h){return h>1?0:h<-1?qe:Math.acos(h)}function Dt(h){return h>1?ur:h<-1?-ur:Math.asin(h)}function ma(h){return((h=Math.exp(h))-1/h)/2}function St(h){return((h=Math.exp(h))+1/h)/2}function ja(h){return((h=Math.exp(2*h))-1)/(h+1)}function ga(h){return(h=Math.sin(h/2))*h}var jt=Math.SQRT2,Na=2,br=4;e.interpolateZoom=function(h,g){var A=h[0],q=h[1],L=h[2],C=g[0],I=g[1],F=g[2],U=C-A,J=I-q,$=U*U+J*J,ee,re;if($<De)re=Math.log(F/L)/jt,ee=function(Ae){return[A+Ae*U,q+Ae*J,L*Math.exp(jt*Ae*re)]};else{var _e=Math.sqrt($),Me=(F*F-L*L+br*$)/(2*L*Na*_e),ae=(F*F-L*L-br*$)/(2*F*Na*_e),ce=Math.log(Math.sqrt(Me*Me+1)-Me),ge=Math.log(Math.sqrt(ae*ae+1)-ae);re=(ge-ce)/jt,ee=function(Ae){var ke=Ae*re,xe=St(ce),Ve=L/(Na*_e)*(xe*ja(jt*ke+ce)-ma(ce));return[A+Ve*U,q+Ve*J,L*xe/St(jt*ke+ce)]}}return ee.duration=re*1e3,ee},e.behavior.zoom=function(){var h={x:0,y:0,k:1},g,A,q,L=[960,500],C=pt,I=250,F=0,U="mousedown.zoom",J="mousemove.zoom",$="mouseup.zoom",ee,re="touchstart.zoom",_e,Me=le(ke,"zoomstart","zoom","zoomend"),ae,ce,ge,Ae;ut||(ut="onwheel"in a?(Nr=function(){return-e.event.deltaY*(e.event.deltaMode?120:1)},"wheel"):"onmousewheel"in a?(Nr=function(){return e.event.wheelDelta},"mousewheel"):(Nr=function(){return-e.event.detail},"MozMousePixelScroll"));function ke(tr){tr.on(U,kr).on(ut+".zoom",Jt).on("dblclick.zoom",yt).on(re,rt)}ke.event=function(tr){tr.each(function(){var Dr=Me.of(this,arguments),Rr=h;Hs?e.select(this).transition().each("start.zoom",function(){h=this.__chart__||{x:0,y:0,k:1},pr(Dr)}).tween("zoom:zoom",function(){var tt=L[0],Bt=L[1],fa=A?A[0]:tt/2,Oa=A?A[1]:Bt/2,an=e.interpolateZoom([(fa-h.x)/h.k,(Oa-h.y)/h.k,tt/h.k],[(fa-Rr.x)/Rr.k,(Oa-Rr.y)/Rr.k,tt/Rr.k]);return function(yn){var nn=an(yn),Mn=tt/nn[2];this.__chart__=h={x:fa-nn[0]*Mn,y:Oa-nn[1]*Mn,k:Mn},Er(Dr)}}).each("interrupt.zoom",function(){mr(Dr)}).each("end.zoom",function(){mr(Dr)}):(this.__chart__=h,pr(Dr),Er(Dr),mr(Dr))})},ke.translate=function(tr){return arguments.length?(h={x:+tr[0],y:+tr[1],k:h.k},dr(),ke):[h.x,h.y]},ke.scale=function(tr){return arguments.length?(h={x:h.x,y:h.y,k:null},nr(+tr),dr(),ke):h.k},ke.scaleExtent=function(tr){return arguments.length?(C=tr==null?pt:[+tr[0],+tr[1]],ke):C},ke.center=function(tr){return arguments.length?(q=tr&&[+tr[0],+tr[1]],ke):q},ke.size=function(tr){return arguments.length?(L=tr&&[+tr[0],+tr[1]],ke):L},ke.duration=function(tr){return arguments.length?(I=+tr,ke):I},ke.x=function(tr){return arguments.length?(ce=tr,ae=tr.copy(),h={x:0,y:0,k:1},ke):ce},ke.y=function(tr){return arguments.length?(Ae=tr,ge=tr.copy(),h={x:0,y:0,k:1},ke):Ae};function xe(tr){return[(tr[0]-h.x)/h.k,(tr[1]-h.y)/h.k]}function Ve(tr){return[tr[0]*h.k+h.x,tr[1]*h.k+h.y]}function nr(tr){h.k=Math.max(C[0],Math.min(C[1],tr))}function fr(tr,Dr){Dr=Ve(Dr),h.x+=tr[0]-Dr[0],h.y+=tr[1]-Dr[1]}function or(tr,Dr,Rr,tt){tr.__chart__={x:h.x,y:h.y,k:h.k},nr(Math.pow(2,tt)),fr(A=Dr,Rr),tr=e.select(tr),I>0&&(tr=tr.transition().duration(I)),tr.call(ke.event)}function dr(){ce&&ce.domain(ae.range().map(function(tr){return(tr-h.x)/h.k}).map(ae.invert)),Ae&&Ae.domain(ge.range().map(function(tr){return(tr-h.y)/h.k}).map(ge.invert))}function pr(tr){F++||tr({type:"zoomstart"})}function Er(tr){dr(),tr({type:"zoom",scale:h.k,translate:[h.x,h.y]})}function mr(tr){--F||(tr({type:"zoomend"}),A=null)}function kr(){var tr=this,Dr=Me.of(tr,arguments),Rr=0,tt=e.select(i(tr)).on(J,Oa).on($,an),Bt=xe(e.mouse(tr)),fa=cr(tr);Kd.call(tr),pr(Dr);function Oa(){Rr=1,fr(e.mouse(tr),Bt),Er(Dr)}function an(){tt.on(J,null).on($,null),fa(Rr),mr(Dr)}}function rt(){var tr=this,Dr=Me.of(tr,arguments),Rr={},tt=0,Bt,fa=".zoom-"+e.event.changedTouches[0].identifier,Oa="touchmove"+fa,an="touchend"+fa,yn=[],nn=e.select(tr),Mn=cr(tr);kn(),pr(Dr),nn.on(U,null).on(re,kn);function Za(){var ji=e.touches(tr);return Bt=h.k,ji.forEach(function(Ba){Ba.identifier in Rr&&(Rr[Ba.identifier]=xe(Ba))}),ji}function kn(){var ji=e.event.target;e.select(ji).on(Oa,Us).on(an,Uie),yn.push(ji);for(var Ba=e.event.changedTouches,ii=0,wo=Ba.length;ii<wo;++ii)Rr[Ba[ii].identifier]=null;var oi=Za(),bf=Date.now();if(oi.length===1){if(bf-_e<500){var Gs=oi[0];or(tr,Gs,Rr[Gs.identifier],Math.floor(Math.log(h.k)/Math.LN2)+1),te()}_e=bf}else if(oi.length>1){var Gs=oi[0],Nl=oi[1],rp=Gs[0]-Nl[0],IA=Gs[1]-Nl[1];tt=rp*rp+IA*IA}}function Us(){var ji=e.touches(tr),Ba,ii,wo,oi;Kd.call(tr);for(var bf=0,Gs=ji.length;bf<Gs;++bf,oi=null)if(wo=ji[bf],oi=Rr[wo.identifier]){if(ii)break;Ba=wo,ii=oi}if(oi){var Nl=(Nl=wo[0]-Ba[0])*Nl+(Nl=wo[1]-Ba[1])*Nl,rp=tt&&Math.sqrt(Nl/tt);Ba=[(Ba[0]+wo[0])/2,(Ba[1]+wo[1])/2],ii=[(ii[0]+oi[0])/2,(ii[1]+oi[1])/2],nr(rp*Bt)}_e=null,fr(Ba,ii),Er(Dr)}function Uie(){if(e.event.touches.length){for(var ji=e.event.changedTouches,Ba=0,ii=ji.length;Ba<ii;++Ba)delete Rr[ji[Ba].identifier];for(var wo in Rr)return void Za()}e.selectAll(yn).on(fa,null),nn.on(U,kr).on(re,rt),Mn(),mr(Dr)}}function Jt(){var tr=Me.of(this,arguments);ee?clearTimeout(ee):(Kd.call(this),g=xe(A=q||e.mouse(this)),pr(tr)),ee=setTimeout(function(){ee=null,mr(tr)},50),te(),nr(Math.pow(2,Nr()*.002)*h.k),fr(A,g),Er(tr)}function yt(){var tr=e.mouse(this),Dr=Math.log(h.k)/Math.LN2;or(this,tr,xe(tr),e.event.shiftKey?Math.ceil(Dr)-1:Math.floor(Dr)+1)}return e.rebind(ke,Me,"on")};var pt=[0,1/0],Nr,ut;e.color=Pt;function Pt(){}Pt.prototype.toString=function(){return this.rgb()+""},e.hsl=Qr;function Qr(h,g,A){return this instanceof Qr?(this.h=+h,this.s=+g,void(this.l=+A)):arguments.length<2?h instanceof Qr?new Qr(h.h,h.s,h.l):$r(""+h,ht,Qr):new Qr(h,g,A)}var ct=Qr.prototype=new Pt;ct.brighter=function(h){return h=Math.pow(.7,arguments.length?h:1),new Qr(this.h,this.s,this.l/h)},ct.darker=function(h){return h=Math.pow(.7,arguments.length?h:1),new Qr(this.h,this.s,h*this.l)},ct.rgb=function(){return ba(this.h,this.s,this.l)};function ba(h,g,A){var q,L;h=isNaN(h)?0:(h%=360)<0?h+360:h,g=isNaN(g)||g<0?0:g>1?1:g,A=A<0?0:A>1?1:A,L=A<=.5?A*(1+g):A+g-A*g,q=2*A-L;function C(F){return F>360?F-=360:F<0&&(F+=360),F<60?q+(L-q)*F/60:F<180?L:F<240?q+(L-q)*(240-F)/60:q}function I(F){return Math.round(C(F)*255)}return new Ut(I(h+120),I(h),I(h-120))}e.hcl=Zt;function Zt(h,g,A){return this instanceof Zt?(this.h=+h,this.c=+g,void(this.l=+A)):arguments.length<2?h instanceof Zt?new Zt(h.h,h.c,h.l):h instanceof Xt?Rt(h.l,h.a,h.b):Rt((h=sr((h=e.rgb(h)).r,h.g,h.b)).l,h.a,h.b):new Zt(h,g,A)}var tn=Zt.prototype=new Pt;tn.brighter=function(h){return new Zt(this.h,this.c,Math.min(100,this.l+ft*(arguments.length?h:1)))},tn.darker=function(h){return new Zt(this.h,this.c,Math.max(0,this.l-ft*(arguments.length?h:1)))},tn.rgb=function(){return Tn(this.h,this.c,this.l).rgb()};function Tn(h,g,A){return isNaN(h)&&(h=0),isNaN(g)&&(g=0),new Xt(A,Math.cos(h*=Ar)*g,Math.sin(h)*g)}e.lab=Xt;function Xt(h,g,A){return this instanceof Xt?(this.l=+h,this.a=+g,void(this.b=+A)):arguments.length<2?h instanceof Xt?new Xt(h.l,h.a,h.b):h instanceof Zt?Tn(h.h,h.c,h.l):sr((h=Ut(h)).r,h.g,h.b):new Xt(h,g,A)}var ft=18,xa=.95047,Ko=1,Qo=1.08883,vt=Xt.prototype=new Pt;vt.brighter=function(h){return new Xt(Math.min(100,this.l+ft*(arguments.length?h:1)),this.a,this.b)},vt.darker=function(h){return new Xt(Math.max(0,this.l-ft*(arguments.length?h:1)),this.a,this.b)},vt.rgb=function(){return An(this.l,this.a,this.b)};function An(h,g,A){var q=(h+16)/116,L=q+g/500,C=q-A/200;return L=zs(L)*xa,q=zs(q)*Ko,C=zs(C)*Qo,new Ut(Gi(3.2404542*L-1.5371385*q-.4985314*C),Gi(-.969266*L+1.8760108*q+.041556*C),Gi(.0556434*L-.2040259*q+1.0572252*C))}function Rt(h,g,A){return h>0?new Zt(Math.atan2(A,g)*Wr,Math.sqrt(g*g+A*A),h):new Zt(NaN,NaN,h)}function zs(h){return h>.206893034?h*h*h:(h-4/29)/7.787037}function pn(h){return h>.008856?Math.pow(h,1/3):7.787037*h+4/29}function Gi(h){return Math.round(255*(h<=.00304?12.92*h:1.055*Math.pow(h,1/2.4)-.055))}e.rgb=Ut;function Ut(h,g,A){return this instanceof Ut?(this.r=~~h,this.g=~~g,void(this.b=~~A)):arguments.length<2?h instanceof Ut?new Ut(h.r,h.g,h.b):$r(""+h,Ut,ba):new Ut(h,g,A)}function Yi(h){return new Ut(h>>16,h>>8&255,h&255)}function Pl(h){return Yi(h)+""}var Rl=Ut.prototype=new Pt;Rl.brighter=function(h){h=Math.pow(.7,arguments.length?h:1);var g=this.r,A=this.g,q=this.b,L=30;return!g&&!A&&!q?new Ut(L,L,L):(g&&g<L&&(g=L),A&&A<L&&(A=L),q&&q<L&&(q=L),new Ut(Math.min(255,g/h),Math.min(255,A/h),Math.min(255,q/h)))},Rl.darker=function(h){return h=Math.pow(.7,arguments.length?h:1),new Ut(h*this.r,h*this.g,h*this.b)},Rl.hsl=function(){return ht(this.r,this.g,this.b)},Rl.toString=function(){return"#"+yr(this.r)+yr(this.g)+yr(this.b)};function yr(h){return h<16?"0"+Math.max(0,h).toString(16):Math.min(255,h).toString(16)}function $r(h,g,A){var q=0,L=0,C=0,I,F,U;if(I=/([a-z]+)\((.*)\)/.exec(h=h.toLowerCase()),I)switch(F=I[2].split(","),I[1]){case"hsl":return A(parseFloat(F[0]),parseFloat(F[1])/100,parseFloat(F[2])/100);case"rgb":return g(Tt(F[0]),Tt(F[1]),Tt(F[2]))}return(U=Ia.get(h))?g(U.r,U.g,U.b):(h!=null&&h.charAt(0)==="#"&&!isNaN(U=parseInt(h.slice(1),16))&&(h.length===4?(q=(U&3840)>>4,q=q>>4|q,L=U&240,L=L>>4|L,C=U&15,C=C<<4|C):h.length===7&&(q=(U&16711680)>>16,L=(U&65280)>>8,C=U&255)),g(q,L,C))}function ht(h,g,A){var q=Math.min(h/=255,g/=255,A/=255),L=Math.max(h,g,A),C=L-q,I,F,U=(L+q)/2;return C?(F=U<.5?C/(L+q):C/(2-L-q),h==L?I=(g-A)/C+(g<A?6:0):g==L?I=(A-h)/C+2:I=(h-g)/C+4,I*=60):(I=NaN,F=U>0&&U<1?0:I),new Qr(I,F,U)}function sr(h,g,A){h=za(h),g=za(g),A=za(A);var q=pn((.4124564*h+.3575761*g+.1804375*A)/xa),L=pn((.2126729*h+.7151522*g+.072175*A)/Ko),C=pn((.0193339*h+.119192*g+.9503041*A)/Qo);return Xt(116*L-16,500*(q-L),200*(L-C))}function za(h){return(h/=255)<=.04045?h/12.92:Math.pow((h+.055)/1.055,2.4)}function Tt(h){var g=parseFloat(h);return h.charAt(h.length-1)==="%"?Math.round(g*2.55):g}var Ia=e.map({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});Ia.forEach(function(h,g){Ia.set(h,Yi(g))});function Br(h){return typeof h=="function"?h:function(){return h}}e.functor=Br,e.xhr=Vi(H);function Vi(h){return function(g,A,q){return arguments.length===2&&typeof A=="function"&&(q=A,A=null),Is(g,A,h,q)}}function Is(h,g,A,q){var L={},C=e.dispatch("beforesend","progress","load","error"),I={},F=new XMLHttpRequest,U=null;self.XDomainRequest&&!("withCredentials"in F)&&/^(http(s)?:)?\/\//.test(h)&&(F=new XDomainRequest),"onload"in F?F.onload=F.onerror=J:F.onreadystatechange=function(){F.readyState>3&&J()};function J(){var $=F.status,ee;if(!$&&Yae(F)||$>=200&&$<300||$===304){try{ee=A.call(L,F)}catch(re){C.error.call(L,re);return}C.load.call(L,ee)}else C.error.call(L,F)}return F.onprogress=function($){var ee=e.event;e.event=$;try{C.progress.call(L,F)}finally{e.event=ee}},L.header=function($,ee){return $=($+"").toLowerCase(),arguments.length<2?I[$]:(ee==null?delete I[$]:I[$]=ee+"",L)},L.mimeType=function($){return arguments.length?(g=$==null?null:$+"",L):g},L.responseType=function($){return arguments.length?(U=$,L):U},L.response=function($){return A=$,L},["get","post"].forEach(function($){L[$]=function(){return L.send.apply(L,[$].concat(t(arguments)))}}),L.send=function($,ee,re){if(arguments.length===2&&typeof ee=="function"&&(re=ee,ee=null),F.open($,h,!0),g!=null&&!("accept"in I)&&(I.accept=g+",*/*"),F.setRequestHeader)for(var _e in I)F.setRequestHeader(_e,I[_e]);return g!=null&&F.overrideMimeType&&F.overrideMimeType(g),U!=null&&(F.responseType=U),re!=null&&L.on("error",re).on("load",function(Me){re(null,Me)}),C.beforesend.call(L,F),F.send(ee==null?null:ee),L},L.abort=function(){return F.abort(),L},e.rebind(L,C,"on"),q==null?L:L.get(Gae(q))}function Gae(h){return h.length===1?function(g,A){h(g==null?A:null)}:h}function Yae(h){var g=h.responseType;return g&&g!=="text"?h.response:h.responseText}e.dsv=function(h,g){var A=new RegExp('["'+h+`
15
+ "use strict";var Plotly=(()=>{var OA=Object.defineProperty;var Gie=Object.getOwnPropertyDescriptor;var Yie=Object.getOwnPropertyNames;var Vie=Object.prototype.hasOwnProperty;var BA=(e,r)=>()=>(e&&(r=e(e=0)),r);var N=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var Wie=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Yie(r))!Vie.call(e,n)&&n!==t&&OA(e,n,{get:()=>r[n],enumerable:!(a=Gie(r,n))||a.enumerable});return e};var jie=e=>Wie(OA({},"__esModule",{value:!0}),e);var tp=N(HA=>{"use strict";HA.version="3.0.3"});var GA=N((UA,ap)=>{(function(r,t,a){t[r]=t[r]||a(),typeof ap!="undefined"&&ap.exports&&(ap.exports=t[r])})("Promise",typeof window!="undefined"?window:UA,function(){"use strict";var r,t,a,n=Object.prototype.toString,i=typeof setImmediate!="undefined"?function(_){return setImmediate(_)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(_,w,b,T){return Object.defineProperty(_,w,{value:b,writable:!0,configurable:T!==!1})}}catch(x){r=function(w,b,T){return w[b]=T,w}}a=function(){var _,w,b;function T(k,M){this.fn=k,this.self=M,this.next=void 0}return{add:function(M,S){b=new T(M,S),w?w.next=b:_=b,w=b,b=void 0},drain:function(){var M=_;for(_=w=t=void 0;M;)M.fn.call(M.self),M=M.next}}}();function o(x,_){a.add(x,_),t||(t=i(a.drain))}function l(x){var _,w=typeof x;return x!=null&&(w=="object"||w=="function")&&(_=x.then),typeof _=="function"?_:!1}function s(){for(var x=0;x<this.chain.length;x++)u(this,this.state===1?this.chain[x].success:this.chain[x].failure,this.chain[x]);this.chain.length=0}function u(x,_,w){var b,T;try{_===!1?w.reject(x.msg):(_===!0?b=x.msg:b=_.call(void 0,x.msg),b===w.promise?w.reject(TypeError("Promise-chain cycle")):(T=l(b))?T.call(b,w.resolve,w.reject):w.resolve(b))}catch(k){w.reject(k)}}function f(x){var _,w=this;if(!w.triggered){w.triggered=!0,w.def&&(w=w.def);try{(_=l(x))?o(function(){var b=new d(w);try{_.call(x,function(){f.apply(b,arguments)},function(){c.apply(b,arguments)})}catch(T){c.call(b,T)}}):(w.msg=x,w.state=1,w.chain.length>0&&o(s,w))}catch(b){c.call(new d(w),b)}}}function c(x){var _=this;_.triggered||(_.triggered=!0,_.def&&(_=_.def),_.msg=x,_.state=2,_.chain.length>0&&o(s,_))}function v(x,_,w,b){for(var T=0;T<_.length;T++)(function(M){x.resolve(_[M]).then(function(E){w(M,E)},b)})(T)}function d(x){this.def=x,this.triggered=!1}function p(x){this.promise=x,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function m(x){if(typeof x!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var _=new p(this);this.then=function(b,T){var k={success:typeof b=="function"?b:!0,failure:typeof T=="function"?T:!1};return k.promise=new this.constructor(function(S,E){if(typeof S!="function"||typeof E!="function")throw TypeError("Not a function");k.resolve=S,k.reject=E}),_.chain.push(k),_.state!==0&&o(s,_),k.promise},this.catch=function(b){return this.then(void 0,b)};try{x.call(void 0,function(b){f.call(_,b)},function(b){c.call(_,b)})}catch(w){c.call(_,w)}}var y=r({},"constructor",m,!1);return m.prototype=y,r(y,"__NPO__",0,!1),r(m,"resolve",function(_){var w=this;return _&&typeof _=="object"&&_.__NPO__===1?_:new w(function(T,k){if(typeof T!="function"||typeof k!="function")throw TypeError("Not a function");T(_)})}),r(m,"reject",function(_){return new this(function(b,T){if(typeof b!="function"||typeof T!="function")throw TypeError("Not a function");T(_)})}),r(m,"all",function(_){var w=this;return n.call(_)!="[object Array]"?w.reject(TypeError("Not an array")):_.length===0?w.resolve([]):new w(function(T,k){if(typeof T!="function"||typeof k!="function")throw TypeError("Not a function");var M=_.length,S=Array(M),E=0;v(w,_,function(R,D){S[R]=D,++E===M&&T(S)},k)})}),r(m,"race",function(_){var w=this;return n.call(_)!="[object Array]"?w.reject(TypeError("Not an array")):new w(function(T,k){if(typeof T!="function"||typeof k!="function")throw TypeError("Not a function");v(w,_,function(S,E){T(E)},k)})}),m})});var Sr=N((tCe,np)=>{(function(){var e={version:"3.8.2"},r=[].slice,t=function(h){return r.call(h)},a=self.document;function n(h){return h&&(h.ownerDocument||h.document||h).documentElement}function i(h){return h&&(h.ownerDocument&&h.ownerDocument.defaultView||h.document&&h||h.defaultView)}if(a)try{t(a.documentElement.childNodes)[0].nodeType}catch(h){t=function(g){for(var A=g.length,q=new Array(A);A--;)q[A]=g[A];return q}}if(Date.now||(Date.now=function(){return+new Date}),a)try{a.createElement("DIV").style.setProperty("opacity",0,"")}catch(h){var o=this.Element.prototype,l=o.setAttribute,s=o.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;o.setAttribute=function(g,A){l.call(this,g,A+"")},o.setAttributeNS=function(g,A,q){s.call(this,g,A,q+"")},u.setProperty=function(g,A,q){f.call(this,g,A+"",q)}}e.ascending=c;function c(h,g){return h<g?-1:h>g?1:h>=g?0:NaN}e.descending=function(h,g){return g<h?-1:g>h?1:g>=h?0:NaN},e.min=function(h,g){var A=-1,q=h.length,L,C;if(arguments.length===1){for(;++A<q;)if((C=h[A])!=null&&C>=C){L=C;break}for(;++A<q;)(C=h[A])!=null&&L>C&&(L=C)}else{for(;++A<q;)if((C=g.call(h,h[A],A))!=null&&C>=C){L=C;break}for(;++A<q;)(C=g.call(h,h[A],A))!=null&&L>C&&(L=C)}return L},e.max=function(h,g){var A=-1,q=h.length,L,C;if(arguments.length===1){for(;++A<q;)if((C=h[A])!=null&&C>=C){L=C;break}for(;++A<q;)(C=h[A])!=null&&C>L&&(L=C)}else{for(;++A<q;)if((C=g.call(h,h[A],A))!=null&&C>=C){L=C;break}for(;++A<q;)(C=g.call(h,h[A],A))!=null&&C>L&&(L=C)}return L},e.extent=function(h,g){var A=-1,q=h.length,L,C,I;if(arguments.length===1){for(;++A<q;)if((C=h[A])!=null&&C>=C){L=I=C;break}for(;++A<q;)(C=h[A])!=null&&(L>C&&(L=C),I<C&&(I=C))}else{for(;++A<q;)if((C=g.call(h,h[A],A))!=null&&C>=C){L=I=C;break}for(;++A<q;)(C=g.call(h,h[A],A))!=null&&(L>C&&(L=C),I<C&&(I=C))}return[L,I]};function v(h){return h===null?NaN:+h}function d(h){return!isNaN(h)}e.sum=function(h,g){var A=0,q=h.length,L,C=-1;if(arguments.length===1)for(;++C<q;)d(L=+h[C])&&(A+=L);else for(;++C<q;)d(L=+g.call(h,h[C],C))&&(A+=L);return A},e.mean=function(h,g){var A=0,q=h.length,L,C=-1,I=q;if(arguments.length===1)for(;++C<q;)d(L=v(h[C]))?A+=L:--I;else for(;++C<q;)d(L=v(g.call(h,h[C],C)))?A+=L:--I;if(I)return A/I},e.quantile=function(h,g){var A=(h.length-1)*g+1,q=Math.floor(A),L=+h[q-1],C=A-q;return C?L+C*(h[q]-L):L},e.median=function(h,g){var A=[],q=h.length,L,C=-1;if(arguments.length===1)for(;++C<q;)d(L=v(h[C]))&&A.push(L);else for(;++C<q;)d(L=v(g.call(h,h[C],C)))&&A.push(L);if(A.length)return e.quantile(A.sort(c),.5)},e.variance=function(h,g){var A=h.length,q=0,L,C,I=0,F=-1,U=0;if(arguments.length===1)for(;++F<A;)d(L=v(h[F]))&&(C=L-q,q+=C/++U,I+=C*(L-q));else for(;++F<A;)d(L=v(g.call(h,h[F],F)))&&(C=L-q,q+=C/++U,I+=C*(L-q));if(U>1)return I/(U-1)},e.deviation=function(){var h=e.variance.apply(this,arguments);return h&&Math.sqrt(h)};function p(h){return{left:function(g,A,q,L){for(arguments.length<3&&(q=0),arguments.length<4&&(L=g.length);q<L;){var C=q+L>>>1;h(g[C],A)<0?q=C+1:L=C}return q},right:function(g,A,q,L){for(arguments.length<3&&(q=0),arguments.length<4&&(L=g.length);q<L;){var C=q+L>>>1;h(g[C],A)>0?L=C:q=C+1}return q}}}var m=p(c);e.bisectLeft=m.left,e.bisect=e.bisectRight=m.right,e.bisector=function(h){return p(h.length===1?function(g,A){return c(h(g),A)}:h)},e.shuffle=function(h,g,A){(q=arguments.length)<3&&(A=h.length,q<2&&(g=0));for(var q=A-g,L,C;q;)C=Math.random()*q--|0,L=h[q+g],h[q+g]=h[C+g],h[C+g]=L;return h},e.permute=function(h,g){for(var A=g.length,q=new Array(A);A--;)q[A]=h[g[A]];return q},e.pairs=function(h){for(var g=0,A=h.length-1,q,L=h[0],C=new Array(A<0?0:A);g<A;)C[g]=[q=L,L=h[++g]];return C},e.transpose=function(h){if(!(C=h.length))return[];for(var g=-1,A=e.min(h,y),q=new Array(A);++g<A;)for(var L=-1,C,I=q[g]=new Array(C);++L<C;)I[L]=h[L][g];return q};function y(h){return h.length}e.zip=function(){return e.transpose(arguments)},e.keys=function(h){var g=[];for(var A in h)g.push(A);return g},e.values=function(h){var g=[];for(var A in h)g.push(h[A]);return g},e.entries=function(h){var g=[];for(var A in h)g.push({key:A,value:h[A]});return g},e.merge=function(h){for(var g=h.length,A,q=-1,L=0,C,I;++q<g;)L+=h[q].length;for(C=new Array(L);--g>=0;)for(I=h[g],A=I.length;--A>=0;)C[--L]=I[A];return C};var x=Math.abs;e.range=function(h,g,A){if(arguments.length<3&&(A=1,arguments.length<2&&(g=h,h=0)),(g-h)/A===1/0)throw new Error("infinite range");var q=[],L=_(x(A)),C=-1,I;if(h*=L,g*=L,A*=L,A<0)for(;(I=h+A*++C)>g;)q.push(I/L);else for(;(I=h+A*++C)<g;)q.push(I/L);return q};function _(h){for(var g=1;h*g%1;)g*=10;return g}function w(h,g){for(var A in g)Object.defineProperty(h.prototype,A,{value:g[A],enumerable:!1})}e.map=function(h,g){var A=new b;if(h instanceof b)h.forEach(function(F,U){A.set(F,U)});else if(Array.isArray(h)){var q=-1,L=h.length,C;if(arguments.length===1)for(;++q<L;)A.set(q,h[q]);else for(;++q<L;)A.set(g.call(h,C=h[q],q),C)}else for(var I in h)A.set(I,h[I]);return A};function b(){this._=Object.create(null)}var T="__proto__",k="\0";w(b,{has:E,get:function(h){return this._[M(h)]},set:function(h,g){return this._[M(h)]=g},remove:P,keys:R,values:function(){var h=[];for(var g in this._)h.push(this._[g]);return h},entries:function(){var h=[];for(var g in this._)h.push({key:S(g),value:this._[g]});return h},size:D,empty:z,forEach:function(h){for(var g in this._)h.call(this,S(g),this._[g])}});function M(h){return(h+="")===T||h[0]===k?k+h:h}function S(h){return(h+="")[0]===k?h.slice(1):h}function E(h){return M(h)in this._}function P(h){return(h=M(h))in this._&&delete this._[h]}function R(){var h=[];for(var g in this._)h.push(S(g));return h}function D(){var h=0;for(var g in this._)++h;return h}function z(){for(var h in this._)return!1;return!0}e.nest=function(){var h={},g=[],A=[],q,L;function C(F,U,J){if(J>=g.length)return L?L.call(h,U):q?U.sort(q):U;for(var $=-1,ee=U.length,re=g[J++],_e,Me,ae,ce=new b,ge;++$<ee;)(ge=ce.get(_e=re(Me=U[$])))?ge.push(Me):ce.set(_e,[Me]);return F?(Me=F(),ae=function(Ae,ke){Me.set(Ae,C(F,ke,J))}):(Me={},ae=function(Ae,ke){Me[Ae]=C(F,ke,J)}),ce.forEach(ae),Me}function I(F,U){if(U>=g.length)return F;var J=[],$=A[U++];return F.forEach(function(ee,re){J.push({key:ee,values:I(re,U)})}),$?J.sort(function(ee,re){return $(ee.key,re.key)}):J}return h.map=function(F,U){return C(U,F,0)},h.entries=function(F){return I(C(e.map,F,0),0)},h.key=function(F){return g.push(F),h},h.sortKeys=function(F){return A[g.length-1]=F,h},h.sortValues=function(F){return q=F,h},h.rollup=function(F){return L=F,h},h},e.set=function(h){var g=new O;if(h)for(var A=0,q=h.length;A<q;++A)g.add(h[A]);return g};function O(){this._=Object.create(null)}w(O,{has:E,add:function(h){return this._[M(h+="")]=!0,h},remove:P,values:R,size:D,empty:z,forEach:function(h){for(var g in this._)h.call(this,S(g))}}),e.behavior={};function H(h){return h}e.rebind=function(h,g){for(var A=1,q=arguments.length,L;++A<q;)h[L=arguments[A]]=Y(h,g,g[L]);return h};function Y(h,g,A){return function(){var q=A.apply(g,arguments);return q===g?h:q}}function G(h,g){if(g in h)return g;g=g.charAt(0).toUpperCase()+g.slice(1);for(var A=0,q=B.length;A<q;++A){var L=B[A]+g;if(L in h)return L}}var B=["webkit","ms","moz","Moz","o","O"];function V(){}e.dispatch=function(){for(var h=new X,g=-1,A=arguments.length;++g<A;)h[arguments[g]]=Z(h);return h};function X(){}X.prototype.on=function(h,g){var A=h.indexOf("."),q="";if(A>=0&&(q=h.slice(A+1),h=h.slice(0,A)),h)return arguments.length<2?this[h].on(q):this[h].on(q,g);if(arguments.length===2){if(g==null)for(h in this)this.hasOwnProperty(h)&&this[h].on(q,null);return this}};function Z(h){var g=[],A=new b;function q(){for(var L=g,C=-1,I=L.length,F;++C<I;)(F=L[C].on)&&F.apply(this,arguments);return h}return q.on=function(L,C){var I=A.get(L),F;return arguments.length<2?I&&I.on:(I&&(I.on=null,g=g.slice(0,F=g.indexOf(I)).concat(g.slice(F+1)),A.remove(L)),C&&g.push(A.set(L,{on:C})),h)},q}e.event=null;function te(){e.event.preventDefault()}function fe(){for(var h=e.event,g;g=h.sourceEvent;)h=g;return h}function le(h){for(var g=new X,A=0,q=arguments.length;++A<q;)g[arguments[A]]=Z(g);return g.of=function(L,C){return function(I){try{var F=I.sourceEvent=e.event;I.target=h,e.event=I,g[I.type].apply(L,C)}finally{e.event=F}}},g}e.requote=function(h){return h.replace(ie,"\\$&")};var ie=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,K={}.__proto__?function(h,g){h.__proto__=g}:function(h,g){for(var A in g)h[A]=g[A]};function he(h){return K(h,de),h}var oe=function(h,g){return g.querySelector(h)},ye=function(h,g){return g.querySelectorAll(h)},ue=function(h,g){var A=h.matches||h[G(h,"matchesSelector")];return ue=function(q,L){return A.call(q,L)},ue(h,g)};typeof Sizzle=="function"&&(oe=function(h,g){return Sizzle(h,g)[0]||null},ye=Sizzle,ue=Sizzle.matchesSelector),e.selection=function(){return e.select(a.documentElement)};var de=e.selection.prototype=[];de.select=function(h){var g=[],A,q,L,C;h=W(h);for(var I=-1,F=this.length;++I<F;){g.push(A=[]),A.parentNode=(L=this[I]).parentNode;for(var U=-1,J=L.length;++U<J;)(C=L[U])?(A.push(q=h.call(C,C.__data__,U,I)),q&&"__data__"in C&&(q.__data__=C.__data__)):A.push(null)}return he(g)};function W(h){return typeof h=="function"?h:function(){return oe(h,this)}}de.selectAll=function(h){var g=[],A,q;h=Q(h);for(var L=-1,C=this.length;++L<C;)for(var I=this[L],F=-1,U=I.length;++F<U;)(q=I[F])&&(g.push(A=t(h.call(q,q.__data__,F,L))),A.parentNode=q);return he(g)};function Q(h){return typeof h=="function"?h:function(){return ye(h,this)}}var j="http://www.w3.org/1999/xhtml",pe={svg:"http://www.w3.org/2000/svg",xhtml:j,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};e.ns={prefix:pe,qualify:function(h){var g=h.indexOf(":"),A=h;return g>=0&&(A=h.slice(0,g))!=="xmlns"&&(h=h.slice(g+1)),pe.hasOwnProperty(A)?{space:pe[A],local:h}:h}},de.attr=function(h,g){if(arguments.length<2){if(typeof h=="string"){var A=this.node();return h=e.ns.qualify(h),h.local?A.getAttributeNS(h.space,h.local):A.getAttribute(h)}for(g in h)this.each(me(g,h[g]));return this}return this.each(me(h,g))};function me(h,g){h=e.ns.qualify(h);function A(){this.removeAttribute(h)}function q(){this.removeAttributeNS(h.space,h.local)}function L(){this.setAttribute(h,g)}function C(){this.setAttributeNS(h.space,h.local,g)}function I(){var U=g.apply(this,arguments);U==null?this.removeAttribute(h):this.setAttribute(h,U)}function F(){var U=g.apply(this,arguments);U==null?this.removeAttributeNS(h.space,h.local):this.setAttributeNS(h.space,h.local,U)}return g==null?h.local?q:A:typeof g=="function"?h.local?F:I:h.local?C:L}function we(h){return h.trim().replace(/\s+/g," ")}de.classed=function(h,g){if(arguments.length<2){if(typeof h=="string"){var A=this.node(),q=(h=Fe(h)).length,L=-1;if(g=A.classList){for(;++L<q;)if(!g.contains(h[L]))return!1}else for(g=A.getAttribute("class");++L<q;)if(!Ne(h[L]).test(g))return!1;return!0}for(g in h)this.each(Re(g,h[g]));return this}return this.each(Re(h,g))};function Ne(h){return new RegExp("(?:^|\\s+)"+e.requote(h)+"(?:\\s+|$)","g")}function Fe(h){return(h+"").trim().split(/^|\s+/)}function Re(h,g){h=Fe(h).map(Ie);var A=h.length;function q(){for(var C=-1;++C<A;)h[C](this,g)}function L(){for(var C=-1,I=g.apply(this,arguments);++C<A;)h[C](this,I)}return typeof g=="function"?L:q}function Ie(h){var g=Ne(h);return function(A,q){if(L=A.classList)return q?L.add(h):L.remove(h);var L=A.getAttribute("class")||"";q?(g.lastIndex=0,g.test(L)||A.setAttribute("class",we(L+" "+h))):A.setAttribute("class",we(L.replace(g," ")))}}de.style=function(h,g,A){var q=arguments.length;if(q<3){if(typeof h!="string"){q<2&&(g="");for(A in h)this.each(Be(A,h[A],g));return this}if(q<2){var L=this.node();return i(L).getComputedStyle(L,null).getPropertyValue(h)}A=""}return this.each(Be(h,g,A))};function Be(h,g,A){function q(){this.style.removeProperty(h)}function L(){this.style.setProperty(h,g,A)}function C(){var I=g.apply(this,arguments);I==null?this.style.removeProperty(h):this.style.setProperty(h,I,A)}return g==null?q:typeof g=="function"?C:L}de.property=function(h,g){if(arguments.length<2){if(typeof h=="string")return this.node()[h];for(g in h)this.each(ze(g,h[g]));return this}return this.each(ze(h,g))};function ze(h,g){function A(){delete this[h]}function q(){this[h]=g}function L(){var C=g.apply(this,arguments);C==null?delete this[h]:this[h]=C}return g==null?A:typeof g=="function"?L:q}de.text=function(h){return arguments.length?this.each(typeof h=="function"?function(){var g=h.apply(this,arguments);this.textContent=g==null?"":g}:h==null?function(){this.textContent=""}:function(){this.textContent=h}):this.node().textContent},de.html=function(h){return arguments.length?this.each(typeof h=="function"?function(){var g=h.apply(this,arguments);this.innerHTML=g==null?"":g}:h==null?function(){this.innerHTML=""}:function(){this.innerHTML=h}):this.node().innerHTML},de.append=function(h){return h=Pe(h),this.select(function(){return this.appendChild(h.apply(this,arguments))})};function Pe(h){function g(){var q=this.ownerDocument,L=this.namespaceURI;return L===j&&q.documentElement.namespaceURI===j?q.createElement(h):q.createElementNS(L,h)}function A(){return this.ownerDocument.createElementNS(h.space,h.local)}return typeof h=="function"?h:(h=e.ns.qualify(h)).local?A:g}de.insert=function(h,g){return h=Pe(h),g=W(g),this.select(function(){return this.insertBefore(h.apply(this,arguments),g.apply(this,arguments)||null)})},de.remove=function(){return this.each(Xe)};function Xe(){var h=this.parentNode;h&&h.removeChild(this)}de.data=function(h,g){var A=-1,q=this.length,L,C;if(!arguments.length){for(h=new Array(q=(L=this[0]).length);++A<q;)(C=L[A])&&(h[A]=C.__data__);return h}function I($,ee){var re,_e=$.length,Me=ee.length,ae=Math.min(_e,Me),ce=new Array(Me),ge=new Array(Me),Ae=new Array(_e),ke,xe;if(g){var Ve=new b,nr=new Array(_e),fr;for(re=-1;++re<_e;)(ke=$[re])&&(Ve.has(fr=g.call(ke,ke.__data__,re))?Ae[re]=ke:Ve.set(fr,ke),nr[re]=fr);for(re=-1;++re<Me;)(ke=Ve.get(fr=g.call(ee,xe=ee[re],re)))?ke!==!0&&(ce[re]=ke,ke.__data__=xe):ge[re]=Ue(xe),Ve.set(fr,!0);for(re=-1;++re<_e;)re in nr&&Ve.get(nr[re])!==!0&&(Ae[re]=$[re])}else{for(re=-1;++re<ae;)ke=$[re],xe=ee[re],ke?(ke.__data__=xe,ce[re]=ke):ge[re]=Ue(xe);for(;re<Me;++re)ge[re]=Ue(ee[re]);for(;re<_e;++re)Ae[re]=$[re]}ge.update=ce,ge.parentNode=ce.parentNode=Ae.parentNode=$.parentNode,F.push(ge),U.push(ce),J.push(Ae)}var F=ir([]),U=he([]),J=he([]);if(typeof h=="function")for(;++A<q;)I(L=this[A],h.call(L,L.parentNode.__data__,A));else for(;++A<q;)I(L=this[A],h);return U.enter=function(){return F},U.exit=function(){return J},U};function Ue(h){return{__data__:h}}de.datum=function(h){return arguments.length?this.property("__data__",h):this.property("__data__")},de.filter=function(h){var g=[],A,q,L;typeof h!="function"&&(h=se(h));for(var C=0,I=this.length;C<I;C++){g.push(A=[]),A.parentNode=(q=this[C]).parentNode;for(var F=0,U=q.length;F<U;F++)(L=q[F])&&h.call(L,L.__data__,F,C)&&A.push(L)}return he(g)};function se(h){return function(){return ue(this,h)}}de.order=function(){for(var h=-1,g=this.length;++h<g;)for(var A=this[h],q=A.length-1,L=A[q],C;--q>=0;)(C=A[q])&&(L&&L!==C.nextSibling&&L.parentNode.insertBefore(C,L),L=C);return this},de.sort=function(h){h=Te.apply(this,arguments);for(var g=-1,A=this.length;++g<A;)this[g].sort(h);return this.order()};function Te(h){return arguments.length||(h=c),function(g,A){return g&&A?h(g.__data__,A.__data__):!g-!A}}de.each=function(h){return Se(this,function(g,A,q){h.call(g,g.__data__,A,q)})};function Se(h,g){for(var A=0,q=h.length;A<q;A++)for(var L=h[A],C=0,I=L.length,F;C<I;C++)(F=L[C])&&g(F,C,A);return h}de.call=function(h){var g=t(arguments);return h.apply(g[0]=this,g),this},de.empty=function(){return!this.node()},de.node=function(){for(var h=0,g=this.length;h<g;h++)for(var A=this[h],q=0,L=A.length;q<L;q++){var C=A[q];if(C)return C}return null},de.size=function(){var h=0;return Se(this,function(){++h}),h};function ir(h){return K(h,Qe),h}var Qe=[];e.selection.enter=ir,e.selection.enter.prototype=Qe,Qe.append=de.append,Qe.empty=de.empty,Qe.node=de.node,Qe.call=de.call,Qe.size=de.size,Qe.select=function(h){for(var g=[],A,q,L,C,I,F=-1,U=this.length;++F<U;){L=(C=this[F]).update,g.push(A=[]),A.parentNode=C.parentNode;for(var J=-1,$=C.length;++J<$;)(I=C[J])?(A.push(L[J]=q=h.call(C.parentNode,I.__data__,J,F)),q.__data__=I.__data__):A.push(null)}return he(g)},Qe.insert=function(h,g){return arguments.length<2&&(g=Le(this)),de.insert.call(this,h,g)};function Le(h){var g,A;return function(q,L,C){var I=h[C].update,F=I.length,U;for(C!=A&&(A=C,g=0),L>=g&&(g=L+1);!(U=I[g])&&++g<F;);return U}}e.select=function(h){var g;return typeof h=="string"?(g=[oe(h,a)],g.parentNode=a.documentElement):(g=[h],g.parentNode=n(h)),he([g])},e.selectAll=function(h){var g;return typeof h=="string"?(g=t(ye(h,a)),g.parentNode=a.documentElement):(g=t(h),g.parentNode=null),he([g])},de.on=function(h,g,A){var q=arguments.length;if(q<3){if(typeof h!="string"){q<2&&(g=!1);for(A in h)this.each(Ce(A,h[A],g));return this}if(q<2)return(q=this.node()["__on"+h])&&q._;A=!1}return this.each(Ce(h,g,A))};function Ce(h,g,A){var q="__on"+h,L=h.indexOf("."),C=Ze;L>0&&(h=h.slice(0,L));var I=Ge.get(h);I&&(h=I,C=Ye);function F(){var $=this[q];$&&(this.removeEventListener(h,$,$.$),delete this[q])}function U(){var $=C(g,t(arguments));F.call(this),this.addEventListener(h,this[q]=$,$.$=A),$._=g}function J(){var $=new RegExp("^__on([^.]+)"+e.requote(h)+"$"),ee;for(var re in this)if(ee=re.match($)){var _e=this[re];this.removeEventListener(ee[1],_e,_e.$),delete this[re]}}return L?g?U:F:g?V:J}var Ge=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&Ge.forEach(function(h){"on"+h in a&&Ge.remove(h)});function Ze(h,g){return function(A){var q=e.event;e.event=A,g[0]=this.__data__;try{h.apply(this,g)}finally{e.event=q}}}function Ye(h,g){var A=Ze(h,g);return function(q){var L=this,C=q.relatedTarget;(!C||C!==L&&!(C.compareDocumentPosition(L)&8))&&A.call(L,q)}}var He,$e=0;function cr(h){var g=".dragsuppress-"+ ++$e,A="click"+g,q=e.select(i(h)).on("touchmove"+g,te).on("dragstart"+g,te).on("selectstart"+g,te);if(He==null&&(He="onselectstart"in h?!1:G(h.style,"userSelect")),He){var L=n(h).style,C=L[He];L[He]="none"}return function(I){if(q.on(g,null),He&&(L[He]=C),I){var F=function(){q.on(A,null)};q.on(A,function(){te(),F()},!0),setTimeout(F,0)}}}e.mouse=function(h){return Oe(h,fe())};var lr=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Oe(h,g){g.changedTouches&&(g=g.changedTouches[0]);var A=h.ownerSVGElement||h;if(A.createSVGPoint){var q=A.createSVGPoint();if(lr<0){var L=i(h);if(L.scrollX||L.scrollY){A=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var C=A[0][0].getScreenCTM();lr=!(C.f||C.e),A.remove()}}return lr?(q.x=g.pageX,q.y=g.pageY):(q.x=g.clientX,q.y=g.clientY),q=q.matrixTransform(h.getScreenCTM().inverse()),[q.x,q.y]}var I=h.getBoundingClientRect();return[g.clientX-I.left-h.clientLeft,g.clientY-I.top-h.clientTop]}e.touch=function(h,g,A){if(arguments.length<3&&(A=g,g=fe().changedTouches),g){for(var q=0,L=g.length,C;q<L;++q)if((C=g[q]).identifier===A)return Oe(h,C)}},e.behavior.drag=function(){var h=le(L,"drag","dragstart","dragend"),g=null,A=C(V,e.mouse,i,"mousemove","mouseup"),q=C(ne,e.touch,H,"touchmove","touchend");function L(){this.on("mousedown.drag",A).on("touchstart.drag",q)}function C(I,F,U,J,$){return function(){var ee=this,re=e.event.target.correspondingElement||e.event.target,_e=ee.parentNode,Me=h.of(ee,arguments),ae=0,ce=I(),ge=".drag"+(ce==null?"":"-"+ce),Ae,ke=e.select(U(re)).on(J+ge,nr).on($+ge,fr),xe=cr(re),Ve=F(_e,ce);g?(Ae=g.apply(ee,arguments),Ae=[Ae.x-Ve[0],Ae.y-Ve[1]]):Ae=[0,0],Me({type:"dragstart"});function nr(){var or=F(_e,ce),dr,pr;or&&(dr=or[0]-Ve[0],pr=or[1]-Ve[1],ae|=dr|pr,Ve=or,Me({type:"drag",x:or[0]+Ae[0],y:or[1]+Ae[1],dx:dr,dy:pr}))}function fr(){F(_e,ce)&&(ke.on(J+ge,null).on($+ge,null),xe(ae),Me({type:"dragend"}))}}}return L.origin=function(I){return arguments.length?(g=I,L):g},e.rebind(L,h,"on")};function ne(){return e.event.changedTouches[0].identifier}e.touches=function(h,g){return arguments.length<2&&(g=fe().touches),g?t(g).map(function(A){var q=Oe(h,A);return q.identifier=A.identifier,q}):[]};var ve=1e-6,De=ve*ve,qe=Math.PI,ar=2*qe,hr=ar-ve,ur=qe/2,Ar=qe/180,Wr=180/qe;function Vr(h){return h>0?1:h<0?-1:0}function zr(h,g,A){return(g[0]-h[0])*(A[1]-h[1])-(g[1]-h[1])*(A[0]-h[0])}function Et(h){return h>1?0:h<-1?qe:Math.acos(h)}function Dt(h){return h>1?ur:h<-1?-ur:Math.asin(h)}function ma(h){return((h=Math.exp(h))-1/h)/2}function St(h){return((h=Math.exp(h))+1/h)/2}function ja(h){return((h=Math.exp(2*h))-1)/(h+1)}function ga(h){return(h=Math.sin(h/2))*h}var jt=Math.SQRT2,Na=2,br=4;e.interpolateZoom=function(h,g){var A=h[0],q=h[1],L=h[2],C=g[0],I=g[1],F=g[2],U=C-A,J=I-q,$=U*U+J*J,ee,re;if($<De)re=Math.log(F/L)/jt,ee=function(Ae){return[A+Ae*U,q+Ae*J,L*Math.exp(jt*Ae*re)]};else{var _e=Math.sqrt($),Me=(F*F-L*L+br*$)/(2*L*Na*_e),ae=(F*F-L*L-br*$)/(2*F*Na*_e),ce=Math.log(Math.sqrt(Me*Me+1)-Me),ge=Math.log(Math.sqrt(ae*ae+1)-ae);re=(ge-ce)/jt,ee=function(Ae){var ke=Ae*re,xe=St(ce),Ve=L/(Na*_e)*(xe*ja(jt*ke+ce)-ma(ce));return[A+Ve*U,q+Ve*J,L*xe/St(jt*ke+ce)]}}return ee.duration=re*1e3,ee},e.behavior.zoom=function(){var h={x:0,y:0,k:1},g,A,q,L=[960,500],C=pt,I=250,F=0,U="mousedown.zoom",J="mousemove.zoom",$="mouseup.zoom",ee,re="touchstart.zoom",_e,Me=le(ke,"zoomstart","zoom","zoomend"),ae,ce,ge,Ae;ut||(ut="onwheel"in a?(Nr=function(){return-e.event.deltaY*(e.event.deltaMode?120:1)},"wheel"):"onmousewheel"in a?(Nr=function(){return e.event.wheelDelta},"mousewheel"):(Nr=function(){return-e.event.detail},"MozMousePixelScroll"));function ke(tr){tr.on(U,kr).on(ut+".zoom",Jt).on("dblclick.zoom",yt).on(re,rt)}ke.event=function(tr){tr.each(function(){var Dr=Me.of(this,arguments),Rr=h;Hs?e.select(this).transition().each("start.zoom",function(){h=this.__chart__||{x:0,y:0,k:1},pr(Dr)}).tween("zoom:zoom",function(){var tt=L[0],Bt=L[1],fa=A?A[0]:tt/2,Oa=A?A[1]:Bt/2,an=e.interpolateZoom([(fa-h.x)/h.k,(Oa-h.y)/h.k,tt/h.k],[(fa-Rr.x)/Rr.k,(Oa-Rr.y)/Rr.k,tt/Rr.k]);return function(yn){var nn=an(yn),Mn=tt/nn[2];this.__chart__=h={x:fa-nn[0]*Mn,y:Oa-nn[1]*Mn,k:Mn},Er(Dr)}}).each("interrupt.zoom",function(){mr(Dr)}).each("end.zoom",function(){mr(Dr)}):(this.__chart__=h,pr(Dr),Er(Dr),mr(Dr))})},ke.translate=function(tr){return arguments.length?(h={x:+tr[0],y:+tr[1],k:h.k},dr(),ke):[h.x,h.y]},ke.scale=function(tr){return arguments.length?(h={x:h.x,y:h.y,k:null},nr(+tr),dr(),ke):h.k},ke.scaleExtent=function(tr){return arguments.length?(C=tr==null?pt:[+tr[0],+tr[1]],ke):C},ke.center=function(tr){return arguments.length?(q=tr&&[+tr[0],+tr[1]],ke):q},ke.size=function(tr){return arguments.length?(L=tr&&[+tr[0],+tr[1]],ke):L},ke.duration=function(tr){return arguments.length?(I=+tr,ke):I},ke.x=function(tr){return arguments.length?(ce=tr,ae=tr.copy(),h={x:0,y:0,k:1},ke):ce},ke.y=function(tr){return arguments.length?(Ae=tr,ge=tr.copy(),h={x:0,y:0,k:1},ke):Ae};function xe(tr){return[(tr[0]-h.x)/h.k,(tr[1]-h.y)/h.k]}function Ve(tr){return[tr[0]*h.k+h.x,tr[1]*h.k+h.y]}function nr(tr){h.k=Math.max(C[0],Math.min(C[1],tr))}function fr(tr,Dr){Dr=Ve(Dr),h.x+=tr[0]-Dr[0],h.y+=tr[1]-Dr[1]}function or(tr,Dr,Rr,tt){tr.__chart__={x:h.x,y:h.y,k:h.k},nr(Math.pow(2,tt)),fr(A=Dr,Rr),tr=e.select(tr),I>0&&(tr=tr.transition().duration(I)),tr.call(ke.event)}function dr(){ce&&ce.domain(ae.range().map(function(tr){return(tr-h.x)/h.k}).map(ae.invert)),Ae&&Ae.domain(ge.range().map(function(tr){return(tr-h.y)/h.k}).map(ge.invert))}function pr(tr){F++||tr({type:"zoomstart"})}function Er(tr){dr(),tr({type:"zoom",scale:h.k,translate:[h.x,h.y]})}function mr(tr){--F||(tr({type:"zoomend"}),A=null)}function kr(){var tr=this,Dr=Me.of(tr,arguments),Rr=0,tt=e.select(i(tr)).on(J,Oa).on($,an),Bt=xe(e.mouse(tr)),fa=cr(tr);Kd.call(tr),pr(Dr);function Oa(){Rr=1,fr(e.mouse(tr),Bt),Er(Dr)}function an(){tt.on(J,null).on($,null),fa(Rr),mr(Dr)}}function rt(){var tr=this,Dr=Me.of(tr,arguments),Rr={},tt=0,Bt,fa=".zoom-"+e.event.changedTouches[0].identifier,Oa="touchmove"+fa,an="touchend"+fa,yn=[],nn=e.select(tr),Mn=cr(tr);kn(),pr(Dr),nn.on(U,null).on(re,kn);function Za(){var ji=e.touches(tr);return Bt=h.k,ji.forEach(function(Ba){Ba.identifier in Rr&&(Rr[Ba.identifier]=xe(Ba))}),ji}function kn(){var ji=e.event.target;e.select(ji).on(Oa,Us).on(an,Uie),yn.push(ji);for(var Ba=e.event.changedTouches,ii=0,wo=Ba.length;ii<wo;++ii)Rr[Ba[ii].identifier]=null;var oi=Za(),bf=Date.now();if(oi.length===1){if(bf-_e<500){var Gs=oi[0];or(tr,Gs,Rr[Gs.identifier],Math.floor(Math.log(h.k)/Math.LN2)+1),te()}_e=bf}else if(oi.length>1){var Gs=oi[0],Nl=oi[1],rp=Gs[0]-Nl[0],IA=Gs[1]-Nl[1];tt=rp*rp+IA*IA}}function Us(){var ji=e.touches(tr),Ba,ii,wo,oi;Kd.call(tr);for(var bf=0,Gs=ji.length;bf<Gs;++bf,oi=null)if(wo=ji[bf],oi=Rr[wo.identifier]){if(ii)break;Ba=wo,ii=oi}if(oi){var Nl=(Nl=wo[0]-Ba[0])*Nl+(Nl=wo[1]-Ba[1])*Nl,rp=tt&&Math.sqrt(Nl/tt);Ba=[(Ba[0]+wo[0])/2,(Ba[1]+wo[1])/2],ii=[(ii[0]+oi[0])/2,(ii[1]+oi[1])/2],nr(rp*Bt)}_e=null,fr(Ba,ii),Er(Dr)}function Uie(){if(e.event.touches.length){for(var ji=e.event.changedTouches,Ba=0,ii=ji.length;Ba<ii;++Ba)delete Rr[ji[Ba].identifier];for(var wo in Rr)return void Za()}e.selectAll(yn).on(fa,null),nn.on(U,kr).on(re,rt),Mn(),mr(Dr)}}function Jt(){var tr=Me.of(this,arguments);ee?clearTimeout(ee):(Kd.call(this),g=xe(A=q||e.mouse(this)),pr(tr)),ee=setTimeout(function(){ee=null,mr(tr)},50),te(),nr(Math.pow(2,Nr()*.002)*h.k),fr(A,g),Er(tr)}function yt(){var tr=e.mouse(this),Dr=Math.log(h.k)/Math.LN2;or(this,tr,xe(tr),e.event.shiftKey?Math.ceil(Dr)-1:Math.floor(Dr)+1)}return e.rebind(ke,Me,"on")};var pt=[0,1/0],Nr,ut;e.color=Pt;function Pt(){}Pt.prototype.toString=function(){return this.rgb()+""},e.hsl=Qr;function Qr(h,g,A){return this instanceof Qr?(this.h=+h,this.s=+g,void(this.l=+A)):arguments.length<2?h instanceof Qr?new Qr(h.h,h.s,h.l):$r(""+h,ht,Qr):new Qr(h,g,A)}var ct=Qr.prototype=new Pt;ct.brighter=function(h){return h=Math.pow(.7,arguments.length?h:1),new Qr(this.h,this.s,this.l/h)},ct.darker=function(h){return h=Math.pow(.7,arguments.length?h:1),new Qr(this.h,this.s,h*this.l)},ct.rgb=function(){return ba(this.h,this.s,this.l)};function ba(h,g,A){var q,L;h=isNaN(h)?0:(h%=360)<0?h+360:h,g=isNaN(g)||g<0?0:g>1?1:g,A=A<0?0:A>1?1:A,L=A<=.5?A*(1+g):A+g-A*g,q=2*A-L;function C(F){return F>360?F-=360:F<0&&(F+=360),F<60?q+(L-q)*F/60:F<180?L:F<240?q+(L-q)*(240-F)/60:q}function I(F){return Math.round(C(F)*255)}return new Ut(I(h+120),I(h),I(h-120))}e.hcl=Zt;function Zt(h,g,A){return this instanceof Zt?(this.h=+h,this.c=+g,void(this.l=+A)):arguments.length<2?h instanceof Zt?new Zt(h.h,h.c,h.l):h instanceof Xt?Rt(h.l,h.a,h.b):Rt((h=sr((h=e.rgb(h)).r,h.g,h.b)).l,h.a,h.b):new Zt(h,g,A)}var tn=Zt.prototype=new Pt;tn.brighter=function(h){return new Zt(this.h,this.c,Math.min(100,this.l+ft*(arguments.length?h:1)))},tn.darker=function(h){return new Zt(this.h,this.c,Math.max(0,this.l-ft*(arguments.length?h:1)))},tn.rgb=function(){return Tn(this.h,this.c,this.l).rgb()};function Tn(h,g,A){return isNaN(h)&&(h=0),isNaN(g)&&(g=0),new Xt(A,Math.cos(h*=Ar)*g,Math.sin(h)*g)}e.lab=Xt;function Xt(h,g,A){return this instanceof Xt?(this.l=+h,this.a=+g,void(this.b=+A)):arguments.length<2?h instanceof Xt?new Xt(h.l,h.a,h.b):h instanceof Zt?Tn(h.h,h.c,h.l):sr((h=Ut(h)).r,h.g,h.b):new Xt(h,g,A)}var ft=18,xa=.95047,Ko=1,Qo=1.08883,vt=Xt.prototype=new Pt;vt.brighter=function(h){return new Xt(Math.min(100,this.l+ft*(arguments.length?h:1)),this.a,this.b)},vt.darker=function(h){return new Xt(Math.max(0,this.l-ft*(arguments.length?h:1)),this.a,this.b)},vt.rgb=function(){return An(this.l,this.a,this.b)};function An(h,g,A){var q=(h+16)/116,L=q+g/500,C=q-A/200;return L=zs(L)*xa,q=zs(q)*Ko,C=zs(C)*Qo,new Ut(Gi(3.2404542*L-1.5371385*q-.4985314*C),Gi(-.969266*L+1.8760108*q+.041556*C),Gi(.0556434*L-.2040259*q+1.0572252*C))}function Rt(h,g,A){return h>0?new Zt(Math.atan2(A,g)*Wr,Math.sqrt(g*g+A*A),h):new Zt(NaN,NaN,h)}function zs(h){return h>.206893034?h*h*h:(h-4/29)/7.787037}function pn(h){return h>.008856?Math.pow(h,1/3):7.787037*h+4/29}function Gi(h){return Math.round(255*(h<=.00304?12.92*h:1.055*Math.pow(h,1/2.4)-.055))}e.rgb=Ut;function Ut(h,g,A){return this instanceof Ut?(this.r=~~h,this.g=~~g,void(this.b=~~A)):arguments.length<2?h instanceof Ut?new Ut(h.r,h.g,h.b):$r(""+h,Ut,ba):new Ut(h,g,A)}function Yi(h){return new Ut(h>>16,h>>8&255,h&255)}function Pl(h){return Yi(h)+""}var Rl=Ut.prototype=new Pt;Rl.brighter=function(h){h=Math.pow(.7,arguments.length?h:1);var g=this.r,A=this.g,q=this.b,L=30;return!g&&!A&&!q?new Ut(L,L,L):(g&&g<L&&(g=L),A&&A<L&&(A=L),q&&q<L&&(q=L),new Ut(Math.min(255,g/h),Math.min(255,A/h),Math.min(255,q/h)))},Rl.darker=function(h){return h=Math.pow(.7,arguments.length?h:1),new Ut(h*this.r,h*this.g,h*this.b)},Rl.hsl=function(){return ht(this.r,this.g,this.b)},Rl.toString=function(){return"#"+yr(this.r)+yr(this.g)+yr(this.b)};function yr(h){return h<16?"0"+Math.max(0,h).toString(16):Math.min(255,h).toString(16)}function $r(h,g,A){var q=0,L=0,C=0,I,F,U;if(I=/([a-z]+)\((.*)\)/.exec(h=h.toLowerCase()),I)switch(F=I[2].split(","),I[1]){case"hsl":return A(parseFloat(F[0]),parseFloat(F[1])/100,parseFloat(F[2])/100);case"rgb":return g(Tt(F[0]),Tt(F[1]),Tt(F[2]))}return(U=Ia.get(h))?g(U.r,U.g,U.b):(h!=null&&h.charAt(0)==="#"&&!isNaN(U=parseInt(h.slice(1),16))&&(h.length===4?(q=(U&3840)>>4,q=q>>4|q,L=U&240,L=L>>4|L,C=U&15,C=C<<4|C):h.length===7&&(q=(U&16711680)>>16,L=(U&65280)>>8,C=U&255)),g(q,L,C))}function ht(h,g,A){var q=Math.min(h/=255,g/=255,A/=255),L=Math.max(h,g,A),C=L-q,I,F,U=(L+q)/2;return C?(F=U<.5?C/(L+q):C/(2-L-q),h==L?I=(g-A)/C+(g<A?6:0):g==L?I=(A-h)/C+2:I=(h-g)/C+4,I*=60):(I=NaN,F=U>0&&U<1?0:I),new Qr(I,F,U)}function sr(h,g,A){h=za(h),g=za(g),A=za(A);var q=pn((.4124564*h+.3575761*g+.1804375*A)/xa),L=pn((.2126729*h+.7151522*g+.072175*A)/Ko),C=pn((.0193339*h+.119192*g+.9503041*A)/Qo);return Xt(116*L-16,500*(q-L),200*(L-C))}function za(h){return(h/=255)<=.04045?h/12.92:Math.pow((h+.055)/1.055,2.4)}function Tt(h){var g=parseFloat(h);return h.charAt(h.length-1)==="%"?Math.round(g*2.55):g}var Ia=e.map({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});Ia.forEach(function(h,g){Ia.set(h,Yi(g))});function Br(h){return typeof h=="function"?h:function(){return h}}e.functor=Br,e.xhr=Vi(H);function Vi(h){return function(g,A,q){return arguments.length===2&&typeof A=="function"&&(q=A,A=null),Is(g,A,h,q)}}function Is(h,g,A,q){var L={},C=e.dispatch("beforesend","progress","load","error"),I={},F=new XMLHttpRequest,U=null;self.XDomainRequest&&!("withCredentials"in F)&&/^(http(s)?:)?\/\//.test(h)&&(F=new XDomainRequest),"onload"in F?F.onload=F.onerror=J:F.onreadystatechange=function(){F.readyState>3&&J()};function J(){var $=F.status,ee;if(!$&&Yae(F)||$>=200&&$<300||$===304){try{ee=A.call(L,F)}catch(re){C.error.call(L,re);return}C.load.call(L,ee)}else C.error.call(L,F)}return F.onprogress=function($){var ee=e.event;e.event=$;try{C.progress.call(L,F)}finally{e.event=ee}},L.header=function($,ee){return $=($+"").toLowerCase(),arguments.length<2?I[$]:(ee==null?delete I[$]:I[$]=ee+"",L)},L.mimeType=function($){return arguments.length?(g=$==null?null:$+"",L):g},L.responseType=function($){return arguments.length?(U=$,L):U},L.response=function($){return A=$,L},["get","post"].forEach(function($){L[$]=function(){return L.send.apply(L,[$].concat(t(arguments)))}}),L.send=function($,ee,re){if(arguments.length===2&&typeof ee=="function"&&(re=ee,ee=null),F.open($,h,!0),g!=null&&!("accept"in I)&&(I.accept=g+",*/*"),F.setRequestHeader)for(var _e in I)F.setRequestHeader(_e,I[_e]);return g!=null&&F.overrideMimeType&&F.overrideMimeType(g),U!=null&&(F.responseType=U),re!=null&&L.on("error",re).on("load",function(Me){re(null,Me)}),C.beforesend.call(L,F),F.send(ee==null?null:ee),L},L.abort=function(){return F.abort(),L},e.rebind(L,C,"on"),q==null?L:L.get(Gae(q))}function Gae(h){return h.length===1?function(g,A){h(g==null?A:null)}:h}function Yae(h){var g=h.responseType;return g&&g!=="text"?h.response:h.responseText}e.dsv=function(h,g){var A=new RegExp('["'+h+`
16
16
  ]`),q=h.charCodeAt(0);function L(J,$,ee){arguments.length<3&&(ee=$,$=null);var re=Is(J,g,$==null?C:I($),ee);return re.row=function(_e){return arguments.length?re.response(($=_e)==null?C:I(_e)):$},re}function C(J){return L.parse(J.responseText)}function I(J){return function($){return L.parse($.responseText,J)}}L.parse=function(J,$){var ee;return L.parseRows(J,function(re,_e){if(ee)return ee(re,_e-1);var Me=function(ae){for(var ce={},ge=re.length,Ae=0;Ae<ge;++Ae)ce[re[Ae]]=ae[Ae];return ce};ee=$?function(ae,ce){return $(Me(ae),ce)}:Me})},L.parseRows=function(J,$){var ee={},re={},_e=[],Me=J.length,ae=0,ce=0,ge,Ae;function ke(){if(ae>=Me)return re;if(Ae)return Ae=!1,ee;var Ve=ae;if(J.charCodeAt(Ve)===34){for(var nr=Ve;nr++<Me;)if(J.charCodeAt(nr)===34){if(J.charCodeAt(nr+1)!==34)break;++nr}ae=nr+2;var fr=J.charCodeAt(nr+1);return fr===13?(Ae=!0,J.charCodeAt(nr+2)===10&&++ae):fr===10&&(Ae=!0),J.slice(Ve+1,nr).replace(/""/g,'"')}for(;ae<Me;){var fr=J.charCodeAt(ae++),or=1;if(fr===10)Ae=!0;else if(fr===13)Ae=!0,J.charCodeAt(ae)===10&&(++ae,++or);else if(fr!==q)continue;return J.slice(Ve,ae-or)}return J.slice(Ve)}for(;(ge=ke())!==re;){for(var xe=[];ge!==ee&&ge!==re;)xe.push(ge),ge=ke();$&&(xe=$(xe,ce++))==null||_e.push(xe)}return _e},L.format=function(J){if(Array.isArray(J[0]))return L.formatRows(J);var $=new O,ee=[];return J.forEach(function(re){for(var _e in re)$.has(_e)||ee.push($.add(_e))}),[ee.map(U).join(h)].concat(J.map(function(re){return ee.map(function(_e){return U(re[_e])}).join(h)})).join(`
17
17
  `)},L.formatRows=function(J){return J.map(F).join(`
18
18
  `)};function F(J){return J.map(U).join(h)}function U(J){return A.test(J)?'"'+J.replace(/\"/g,'""')+'"':J}return L},e.csv=e.dsv(",","text/csv"),e.tsv=e.dsv(" ","text/tab-separated-values");var Pd,Rd,Fd,Nd,A8=this[G(this,"requestAnimationFrame")]||function(h){setTimeout(h,17)};e.timer=function(){zd.apply(this,arguments)};function zd(h,g,A){var q=arguments.length;q<2&&(g=0),q<3&&(A=Date.now());var L=A+g,C={c:h,t:L,n:null};return Rd?Rd.n=C:Pd=C,Rd=C,Fd||(Nd=clearTimeout(Nd),Fd=1,A8(A3)),C}function A3(){var h=M8(),g=k8()-h;g>24?(isFinite(g)&&(clearTimeout(Nd),Nd=setTimeout(A3,g)),Fd=0):(Fd=1,A8(A3))}e.timer.flush=function(){M8(),k8()};function M8(){for(var h=Date.now(),g=Pd;g;)h>=g.t&&g.c(h-g.t)&&(g.c=null),g=g.n;return h}function k8(){for(var h,g=Pd,A=1/0;g;)g.c?(g.t<A&&(A=g.t),g=(h=g).n):g=h?h.n=g.n:Pd=g.n;return Rd=h,A}e.round=function(h,g){return g?Math.round(h*(g=Math.pow(10,g)))/g:Math.round(h)},e.geom={};function hf(h){return h[0]}function Dv(h){return h[1]}e.geom.hull=function(h){var g=hf,A=Dv;if(arguments.length)return q(h);function q(L){if(L.length<3)return[];var C=Br(g),I=Br(A),F,U=L.length,J=[],$=[];for(F=0;F<U;F++)J.push([+C.call(this,L[F],F),+I.call(this,L[F],F),F]);for(J.sort(Vae),F=0;F<U;F++)$.push([J[F][0],-J[F][1]]);var ee=S8(J),re=S8($),_e=re[0]===ee[0],Me=re[re.length-1]===ee[ee.length-1],ae=[];for(F=ee.length-1;F>=0;--F)ae.push(L[J[ee[F]][2]]);for(F=+_e;F<re.length-Me;++F)ae.push(L[J[re[F]][2]]);return ae}return q.x=function(L){return arguments.length?(g=L,q):g},q.y=function(L){return arguments.length?(A=L,q):A},q};function S8(h){for(var g=h.length,A=[0,1],q=2,L=2;L<g;L++){for(;q>1&&zr(h[A[q-2]],h[A[q-1]],h[L])<=0;)--q;A[q++]=L}return A.slice(0,q)}function Vae(h,g){return h[0]-g[0]||h[1]-g[1]}e.geom.polygon=function(h){return K(h,Id),h};var Id=e.geom.polygon.prototype=[];Id.area=function(){for(var h=-1,g=this.length,A,q=this[g-1],L=0;++h<g;)A=q,q=this[h],L+=A[1]*q[0]-A[0]*q[1];return L*.5},Id.centroid=function(h){var g=-1,A=this.length,q=0,L=0,C,I=this[A-1],F;for(arguments.length||(h=-1/(6*this.area()));++g<A;)C=I,I=this[g],F=C[0]*I[1]-I[0]*C[1],q+=(C[0]+I[0])*F,L+=(C[1]+I[1])*F;return[q*h,L*h]},Id.clip=function(h){for(var g,A=q8(h),q=-1,L=this.length-q8(this),C,I,F=this[L-1],U,J,$;++q<L;){for(g=h.slice(),h.length=0,U=this[q],J=g[(I=g.length-A)-1],C=-1;++C<I;)$=g[C],M3($,F,U)?(M3(J,F,U)||h.push(k3(J,$,F,U)),h.push($)):M3(J,F,U)&&h.push(k3(J,$,F,U)),J=$;A&&h.push(h[0]),F=U}return h};function M3(h,g,A){return(A[0]-g[0])*(h[1]-g[1])<(A[1]-g[1])*(h[0]-g[0])}function k3(h,g,A,q){var L=h[0],C=A[0],I=g[0]-L,F=q[0]-C,U=h[1],J=A[1],$=g[1]-U,ee=q[1]-J,re=(F*(U-J)-ee*(L-C))/(ee*I-F*$);return[L+re*I,U+re*$]}function q8(h){var g=h[0],A=h[h.length-1];return!(g[0]-A[0]||g[1]-A[1])}var df,Os,pf,L8=[],S3,Pv,C8=[];function Wae(){Hd(this),this.edge=this.site=this.circle=null}function E8(h){var g=L8.pop()||new Wae;return g.site=h,g}function q3(h){mf(h),pf.remove(h),L8.push(h),Hd(h)}function jae(h){var g=h.circle,A=g.x,q=g.cy,L={x:A,y:q},C=h.P,I=h.N,F=[h];q3(h);for(var U=C;U.circle&&x(A-U.circle.x)<ve&&x(q-U.circle.cy)<ve;)C=U.P,F.unshift(U),q3(U),U=C;F.unshift(U),mf(U);for(var J=I;J.circle&&x(A-J.circle.x)<ve&&x(q-J.circle.cy)<ve;)I=J.N,F.push(J),q3(J),J=I;F.push(J),mf(J);var $=F.length,ee;for(ee=1;ee<$;++ee)J=F[ee],U=F[ee-1],Od(J.edge,U.site,J.site,L);U=F[0],J=F[$-1],J.edge=Rv(U.site,J.site,null,L),yf(U),yf(J)}function Zae(h){for(var g=h.x,A=h.y,q,L,C,I,F=pf._;F;)if(C=D8(F,A)-g,C>ve)F=F.L;else if(I=g-Xae(F,A),I>ve){if(!F.R){q=F;break}F=F.R}else{C>-ve?(q=F.P,L=F):I>-ve?(q=F,L=F.N):q=L=F;break}var U=E8(h);if(pf.insert(q,U),!(!q&&!L)){if(q===L){mf(q),L=E8(q.site),pf.insert(U,L),U.edge=L.edge=Rv(q.site,U.site),yf(q),yf(L);return}if(!L){U.edge=Rv(q.site,U.site);return}mf(q),mf(L);var J=q.site,$=J.x,ee=J.y,re=h.x-$,_e=h.y-ee,Me=L.site,ae=Me.x-$,ce=Me.y-ee,ge=2*(re*ce-_e*ae),Ae=re*re+_e*_e,ke=ae*ae+ce*ce,xe={x:(ce*Ae-_e*ke)/ge+$,y:(re*ke-ae*Ae)/ge+ee};Od(L.edge,J,Me,xe),U.edge=Rv(J,h,null,xe),L.edge=Rv(h,Me,null,xe),yf(q),yf(L)}}function D8(h,g){var A=h.site,q=A.x,L=A.y,C=L-g;if(!C)return q;var I=h.P;if(!I)return-1/0;A=I.site;var F=A.x,U=A.y,J=U-g;if(!J)return F;var $=F-q,ee=1/C-1/J,re=$/J;return ee?(-re+Math.sqrt(re*re-2*ee*($*$/(-2*J)-U+J/2+L-C/2)))/ee+q:(q+F)/2}function Xae(h,g){var A=h.N;if(A)return D8(A,g);var q=h.site;return q.y===g?q.x:1/0}function P8(h){this.site=h,this.edges=[]}P8.prototype.prepare=function(){for(var h=this.edges,g=h.length,A;g--;)A=h[g].edge,(!A.b||!A.a)&&h.splice(g,1);return h.sort(R8),h.length};function Jae(h){for(var g=h[0][0],A=h[1][0],q=h[0][1],L=h[1][1],C,I,F,U,J=Os,$=J.length,ee,re,_e,Me,ae,ce;$--;)if(ee=J[$],!(!ee||!ee.prepare()))for(_e=ee.edges,Me=_e.length,re=0;re<Me;)ce=_e[re].end(),F=ce.x,U=ce.y,ae=_e[++re%Me].start(),C=ae.x,I=ae.y,(x(F-C)>ve||x(U-I)>ve)&&(_e.splice(re,0,new Bd(rne(ee.site,ce,x(F-g)<ve&&L-U>ve?{x:g,y:x(C-g)<ve?I:L}:x(U-L)<ve&&A-F>ve?{x:x(I-L)<ve?C:A,y:L}:x(F-A)<ve&&U-q>ve?{x:A,y:x(C-A)<ve?I:q}:x(U-q)<ve&&F-g>ve?{x:x(I-q)<ve?C:g,y:q}:null),ee.site,null)),++Me)}function R8(h,g){return g.angle-h.angle}function $ae(){Hd(this),this.x=this.y=this.arc=this.site=this.cy=null}function yf(h){var g=h.P,A=h.N;if(!(!g||!A)){var q=g.site,L=h.site,C=A.site;if(q!==C){var I=L.x,F=L.y,U=q.x-I,J=q.y-F,$=C.x-I,ce=C.y-F,ee=2*(U*ce-J*$);if(!(ee>=-De)){var re=U*U+J*J,_e=$*$+ce*ce,Me=(ce*re-J*_e)/ee,ae=(U*_e-$*re)/ee,ce=ae+F,ge=C8.pop()||new $ae;ge.arc=h,ge.site=L,ge.x=Me+I,ge.y=ce+Math.sqrt(Me*Me+ae*ae),ge.cy=ce,h.circle=ge;for(var Ae=null,ke=Pv._;ke;)if(ge.y<ke.y||ge.y===ke.y&&ge.x<=ke.x)if(ke.L)ke=ke.L;else{Ae=ke.P;break}else if(ke.R)ke=ke.R;else{Ae=ke;break}Pv.insert(Ae,ge),Ae||(S3=ge)}}}}function mf(h){var g=h.circle;g&&(g.P||(S3=g.N),Pv.remove(g),C8.push(g),Hd(g),h.circle=null)}function Kae(h,g,A,q){return function(L){var C=L.a,I=L.b,F=C.x,U=C.y,J=I.x,$=I.y,ee=0,re=1,_e=J-F,Me=$-U,ae;if(ae=h-F,!(!_e&&ae>0)){if(ae/=_e,_e<0){if(ae<ee)return;ae<re&&(re=ae)}else if(_e>0){if(ae>re)return;ae>ee&&(ee=ae)}if(ae=A-F,!(!_e&&ae<0)){if(ae/=_e,_e<0){if(ae>re)return;ae>ee&&(ee=ae)}else if(_e>0){if(ae<ee)return;ae<re&&(re=ae)}if(ae=g-U,!(!Me&&ae>0)){if(ae/=Me,Me<0){if(ae<ee)return;ae<re&&(re=ae)}else if(Me>0){if(ae>re)return;ae>ee&&(ee=ae)}if(ae=q-U,!(!Me&&ae<0)){if(ae/=Me,Me<0){if(ae>re)return;ae>ee&&(ee=ae)}else if(Me>0){if(ae<ee)return;ae<re&&(re=ae)}return ee>0&&(L.a={x:F+ee*_e,y:U+ee*Me}),re<1&&(L.b={x:F+re*_e,y:U+re*Me}),L}}}}}}function Qae(h){for(var g=df,A=Kae(h[0][0],h[0][1],h[1][0],h[1][1]),q=g.length,L;q--;)L=g[q],(!ene(L,h)||!A(L)||x(L.a.x-L.b.x)<ve&&x(L.a.y-L.b.y)<ve)&&(L.a=L.b=null,g.splice(q,1))}function ene(h,g){var A=h.b;if(A)return!0;var q=h.a,L=g[0][0],C=g[1][0],I=g[0][1],F=g[1][1],U=h.l,J=h.r,$=U.x,ee=U.y,re=J.x,_e=J.y,Me=($+re)/2,ae=(ee+_e)/2,ce,ge;if(_e===ee){if(Me<L||Me>=C)return;if($>re){if(!q)q={x:Me,y:I};else if(q.y>=F)return;A={x:Me,y:F}}else{if(!q)q={x:Me,y:F};else if(q.y<I)return;A={x:Me,y:I}}}else if(ce=($-re)/(_e-ee),ge=ae-ce*Me,ce<-1||ce>1)if($>re){if(!q)q={x:(I-ge)/ce,y:I};else if(q.y>=F)return;A={x:(F-ge)/ce,y:F}}else{if(!q)q={x:(F-ge)/ce,y:F};else if(q.y<I)return;A={x:(I-ge)/ce,y:I}}else if(ee<_e){if(!q)q={x:L,y:ce*L+ge};else if(q.x>=C)return;A={x:C,y:ce*C+ge}}else{if(!q)q={x:C,y:ce*C+ge};else if(q.x<L)return;A={x:L,y:ce*L+ge}}return h.a=q,h.b=A,!0}function F8(h,g){this.l=h,this.r=g,this.a=this.b=null}function Rv(h,g,A,q){var L=new F8(h,g);return df.push(L),A&&Od(L,h,g,A),q&&Od(L,g,h,q),Os[h.i].edges.push(new Bd(L,h,g)),Os[g.i].edges.push(new Bd(L,g,h)),L}function rne(h,g,A){var q=new F8(h,null);return q.a=g,q.b=A,df.push(q),q}function Od(h,g,A,q){!h.a&&!h.b?(h.a=q,h.l=g,h.r=A):h.l===A?h.b=q:h.a=q}function Bd(h,g,A){var q=h.a,L=h.b;this.edge=h,this.site=g,this.angle=A?Math.atan2(A.y-g.y,A.x-g.x):h.l===g?Math.atan2(L.x-q.x,q.y-L.y):Math.atan2(q.x-L.x,L.y-q.y)}Bd.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}};function L3(){this._=null}function Hd(h){h.U=h.C=h.L=h.R=h.P=h.N=null}L3.prototype={insert:function(h,g){var A,q,L;if(h){if(g.P=h,g.N=h.N,h.N&&(h.N.P=g),h.N=g,h.R){for(h=h.R;h.L;)h=h.L;h.L=g}else h.R=g;A=h}else this._?(h=N8(this._),g.P=null,g.N=h,h.P=h.L=g,A=h):(g.P=g.N=null,this._=g,A=null);for(g.L=g.R=null,g.U=A,g.C=!0,h=g;A&&A.C;)q=A.U,A===q.L?(L=q.R,L&&L.C?(A.C=L.C=!1,q.C=!0,h=q):(h===A.R&&(Fv(this,A),h=A,A=h.U),A.C=!1,q.C=!0,Nv(this,q))):(L=q.L,L&&L.C?(A.C=L.C=!1,q.C=!0,h=q):(h===A.L&&(Nv(this,A),h=A,A=h.U),A.C=!1,q.C=!0,Fv(this,q))),A=h.U;this._.C=!1},remove:function(h){h.N&&(h.N.P=h.P),h.P&&(h.P.N=h.N),h.N=h.P=null;var g=h.U,A,q=h.L,L=h.R,C,I;if(q?L?C=N8(L):C=q:C=L,g?g.L===h?g.L=C:g.R=C:this._=C,q&&L?(I=C.C,C.C=h.C,C.L=q,q.U=C,C!==L?(g=C.U,C.U=h.U,h=C.R,g.L=h,C.R=L,L.U=C):(C.U=g,g=C,h=C.R)):(I=h.C,h=C),h&&(h.U=g),!I){if(h&&h.C){h.C=!1;return}do{if(h===this._)break;if(h===g.L){if(A=g.R,A.C&&(A.C=!1,g.C=!0,Fv(this,g),A=g.R),A.L&&A.L.C||A.R&&A.R.C){(!A.R||!A.R.C)&&(A.L.C=!1,A.C=!0,Nv(this,A),A=g.R),A.C=g.C,g.C=A.R.C=!1,Fv(this,g),h=this._;break}}else if(A=g.L,A.C&&(A.C=!1,g.C=!0,Nv(this,g),A=g.L),A.L&&A.L.C||A.R&&A.R.C){(!A.L||!A.L.C)&&(A.R.C=!1,A.C=!0,Fv(this,A),A=g.L),A.C=g.C,g.C=A.L.C=!1,Nv(this,g),h=this._;break}A.C=!0,h=g,g=g.U}while(!h.C);h&&(h.C=!1)}}};function Fv(h,g){var A=g,q=g.R,L=A.U;L?L.L===A?L.L=q:L.R=q:h._=q,q.U=L,A.U=q,A.R=q.L,A.R&&(A.R.U=A),q.L=A}function Nv(h,g){var A=g,q=g.L,L=A.U;L?L.L===A?L.L=q:L.R=q:h._=q,q.U=L,A.U=q,A.L=q.R,A.L&&(A.L.U=A),q.R=A}function N8(h){for(;h.L;)h=h.L;return h}function C3(h,g){var A=h.sort(tne).pop(),q,L,C;for(df=[],Os=new Array(h.length),pf=new L3,Pv=new L3;;)if(C=S3,A&&(!C||A.y<C.y||A.y===C.y&&A.x<C.x))(A.x!==q||A.y!==L)&&(Os[A.i]=new P8(A),Zae(A),q=A.x,L=A.y),A=h.pop();else if(C)jae(C.arc);else break;g&&(Qae(g),Jae(g));var I={cells:Os,edges:df};return pf=Pv=df=Os=null,I}function tne(h,g){return g.y-h.y||g.x-h.x}e.geom.voronoi=function(h){var g=hf,A=Dv,q=g,L=A,C=Ud;if(h)return I(h);function I(U){var J=new Array(U.length),$=C[0][0],ee=C[0][1],re=C[1][0],_e=C[1][1];return C3(F(U),C).cells.forEach(function(Me,ae){var ce=Me.edges,ge=Me.site,Ae=J[ae]=ce.length?ce.map(function(ke){var xe=ke.start();return[xe.x,xe.y]}):ge.x>=$&&ge.x<=re&&ge.y>=ee&&ge.y<=_e?[[$,_e],[re,_e],[re,ee],[$,ee]]:[];Ae.point=U[ae]}),J}function F(U){return U.map(function(J,$){return{x:Math.round(q(J,$)/ve)*ve,y:Math.round(L(J,$)/ve)*ve,i:$}})}return I.links=function(U){return C3(F(U)).edges.filter(function(J){return J.l&&J.r}).map(function(J){return{source:U[J.l.i],target:U[J.r.i]}})},I.triangles=function(U){var J=[];return C3(F(U)).cells.forEach(function($,ee){for(var re=$.site,_e=$.edges.sort(R8),Me=-1,ae=_e.length,ce,ge,Ae=_e[ae-1].edge,ke=Ae.l===re?Ae.r:Ae.l;++Me<ae;)ce=Ae,ge=ke,Ae=_e[Me].edge,ke=Ae.l===re?Ae.r:Ae.l,ee<ge.i&&ee<ke.i&&ane(re,ge,ke)<0&&J.push([U[ee],U[ge.i],U[ke.i]])}),J},I.x=function(U){return arguments.length?(q=Br(g=U),I):g},I.y=function(U){return arguments.length?(L=Br(A=U),I):A},I.clipExtent=function(U){return arguments.length?(C=U==null?Ud:U,I):C===Ud?null:C},I.size=function(U){return arguments.length?I.clipExtent(U&&[[0,0],U]):C===Ud?null:C&&C[1]},I};var Ud=[[-1e6,-1e6],[1e6,1e6]];function ane(h,g,A){return(h.x-A.x)*(g.y-h.y)-(h.x-g.x)*(A.y-h.y)}e.geom.delaunay=function(h){return e.geom.voronoi().triangles(h)},e.geom.quadtree=function(h,g,A,q,L){var C=hf,I=Dv,F;if(F=arguments.length)return C=nne,I=ine,F===3&&(L=A,q=g,A=g=0),U(h);function U(J){var $,ee=Br(C),re=Br(I),_e,Me,ae,ce,ge,Ae,ke,xe;if(g!=null)ge=g,Ae=A,ke=q,xe=L;else if(ke=xe=-(ge=Ae=1/0),_e=[],Me=[],ce=J.length,F)for(ae=0;ae<ce;++ae)$=J[ae],$.x<ge&&(ge=$.x),$.y<Ae&&(Ae=$.y),$.x>ke&&(ke=$.x),$.y>xe&&(xe=$.y),_e.push($.x),Me.push($.y);else for(ae=0;ae<ce;++ae){var Ve=+ee($=J[ae],ae),nr=+re($,ae);Ve<ge&&(ge=Ve),nr<Ae&&(Ae=nr),Ve>ke&&(ke=Ve),nr>xe&&(xe=nr),_e.push(Ve),Me.push(nr)}var fr=ke-ge,or=xe-Ae;fr>or?xe=Ae+fr:ke=ge+or;function dr(mr,kr,rt,Jt,yt,tr,Dr,Rr){if(!(isNaN(rt)||isNaN(Jt)))if(mr.leaf){var tt=mr.x,Bt=mr.y;if(tt!=null)if(x(tt-rt)+x(Bt-Jt)<.01)pr(mr,kr,rt,Jt,yt,tr,Dr,Rr);else{var fa=mr.point;mr.x=mr.y=mr.point=null,pr(mr,fa,tt,Bt,yt,tr,Dr,Rr),pr(mr,kr,rt,Jt,yt,tr,Dr,Rr)}else mr.x=rt,mr.y=Jt,mr.point=kr}else pr(mr,kr,rt,Jt,yt,tr,Dr,Rr)}function pr(mr,kr,rt,Jt,yt,tr,Dr,Rr){var tt=(yt+Dr)*.5,Bt=(tr+Rr)*.5,fa=rt>=tt,Oa=Jt>=Bt,an=Oa<<1|fa;mr.leaf=!1,mr=mr.nodes[an]||(mr.nodes[an]=z8()),fa?yt=tt:Dr=tt,Oa?tr=Bt:Rr=Bt,dr(mr,kr,rt,Jt,yt,tr,Dr,Rr)}var Er=z8();if(Er.add=function(mr){dr(Er,mr,+ee(mr,++ae),+re(mr,ae),ge,Ae,ke,xe)},Er.visit=function(mr){zv(mr,Er,ge,Ae,ke,xe)},Er.find=function(mr){return one(Er,mr[0],mr[1],ge,Ae,ke,xe)},ae=-1,g==null){for(;++ae<ce;)dr(Er,J[ae],_e[ae],Me[ae],ge,Ae,ke,xe);--ae}else J.forEach(Er.add);return _e=Me=J=$=null,Er}return U.x=function(J){return arguments.length?(C=J,U):C},U.y=function(J){return arguments.length?(I=J,U):I},U.extent=function(J){return arguments.length?(J==null?g=A=q=L=null:(g=+J[0][0],A=+J[0][1],q=+J[1][0],L=+J[1][1]),U):g==null?null:[[g,A],[q,L]]},U.size=function(J){return arguments.length?(J==null?g=A=q=L=null:(g=A=0,q=+J[0],L=+J[1]),U):g==null?null:[q-g,L-A]},U};function nne(h){return h.x}function ine(h){return h.y}function z8(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function zv(h,g,A,q,L,C){if(!h(g,A,q,L,C)){var I=(A+L)*.5,F=(q+C)*.5,U=g.nodes;U[0]&&zv(h,U[0],A,q,I,F),U[1]&&zv(h,U[1],I,q,L,F),U[2]&&zv(h,U[2],A,F,I,C),U[3]&&zv(h,U[3],I,F,L,C)}}function one(h,g,A,q,L,C,I){var F=1/0,U;return function J($,ee,re,_e,Me){if(!(ee>C||re>I||_e<q||Me<L)){if(ae=$.point){var ae,ce=g-$.x,ge=A-$.y,Ae=ce*ce+ge*ge;if(Ae<F){var ke=Math.sqrt(F=Ae);q=g-ke,L=A-ke,C=g+ke,I=A+ke,U=ae}}for(var xe=$.nodes,Ve=(ee+_e)*.5,nr=(re+Me)*.5,fr=g>=Ve,or=A>=nr,dr=or<<1|fr,pr=dr+4;dr<pr;++dr)if($=xe[dr&3])switch(dr&3){case 0:J($,ee,re,Ve,nr);break;case 1:J($,Ve,re,_e,nr);break;case 2:J($,ee,nr,Ve,Me);break;case 3:J($,Ve,nr,_e,Me);break}}}(h,q,L,C,I),U}e.interpolateRgb=E3;function E3(h,g){h=e.rgb(h),g=e.rgb(g);var A=h.r,q=h.g,L=h.b,C=g.r-A,I=g.g-q,F=g.b-L;return function(U){return"#"+yr(Math.round(A+C*U))+yr(Math.round(q+I*U))+yr(Math.round(L+F*U))}}e.interpolateObject=I8;function I8(h,g){var A={},q={},L;for(L in h)L in g?A[L]=Bs(h[L],g[L]):q[L]=h[L];for(L in g)L in h||(q[L]=g[L]);return function(C){for(L in A)q[L]=A[L](C);return q}}e.interpolateNumber=el;function el(h,g){return h=+h,g=+g,function(A){return h*(1-A)+g*A}}e.interpolateString=O8;function O8(h,g){var A=D3.lastIndex=P3.lastIndex=0,q,L,C,I=-1,F=[],U=[];for(h=h+"",g=g+"";(q=D3.exec(h))&&(L=P3.exec(g));)(C=L.index)>A&&(C=g.slice(A,C),F[I]?F[I]+=C:F[++I]=C),(q=q[0])===(L=L[0])?F[I]?F[I]+=L:F[++I]=L:(F[++I]=null,U.push({i:I,x:el(q,L)})),A=P3.lastIndex;return A<g.length&&(C=g.slice(A),F[I]?F[I]+=C:F[++I]=C),F.length<2?U[0]?(g=U[0].x,function(J){return g(J)+""}):function(){return g}:(g=U.length,function(J){for(var $=0,ee;$<g;++$)F[(ee=U[$]).i]=ee.x(J);return F.join("")})}var D3=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,P3=new RegExp(D3.source,"g");e.interpolate=Bs;function Bs(h,g){for(var A=e.interpolators.length,q;--A>=0&&!(q=e.interpolators[A](h,g)););return q}e.interpolators=[function(h,g){var A=typeof g;return(A==="string"?Ia.has(g.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(g)?E3:O8:g instanceof Pt?E3:Array.isArray(g)?Gd:A==="object"&&isNaN(g)?I8:el)(h,g)}],e.interpolateArray=Gd;function Gd(h,g){var A=[],q=[],L=h.length,C=g.length,I=Math.min(h.length,g.length),F;for(F=0;F<I;++F)A.push(Bs(h[F],g[F]));for(;F<L;++F)q[F]=h[F];for(;F<C;++F)q[F]=g[F];return function(U){for(F=0;F<I;++F)q[F]=A[F](U);return q}}var B8=function(){return H},lne=e.map({linear:B8,poly:hne,quad:function(){return fne},cubic:function(){return cne},sin:function(){return dne},exp:function(){return pne},circle:function(){return yne},elastic:mne,back:gne,bounce:function(){return bne}}),sne=e.map({in:H,out:H8,"in-out":U8,"out-in":function(h){return U8(H8(h))}});e.ease=function(h){var g=h.indexOf("-"),A=g>=0?h.slice(0,g):h,q=g>=0?h.slice(g+1):"in";return A=lne.get(A)||B8,q=sne.get(q)||H,une(q(A.apply(null,r.call(arguments,1))))};function une(h){return function(g){return g<=0?0:g>=1?1:h(g)}}function H8(h){return function(g){return 1-h(1-g)}}function U8(h){return function(g){return .5*(g<.5?h(2*g):2-h(2-2*g))}}function fne(h){return h*h}function cne(h){return h*h*h}function vne(h){if(h<=0)return 0;if(h>=1)return 1;var g=h*h,A=g*h;return 4*(h<.5?A:3*(h-g)+A-.75)}function hne(h){return function(g){return Math.pow(g,h)}}function dne(h){return 1-Math.cos(h*ur)}function pne(h){return Math.pow(2,10*(h-1))}function yne(h){return 1-Math.sqrt(1-h*h)}function mne(h,g){var A;return arguments.length<2&&(g=.45),arguments.length?A=g/ar*Math.asin(1/h):(h=1,A=g/4),function(q){return 1+h*Math.pow(2,-10*q)*Math.sin((q-A)*ar/g)}}function gne(h){return h||(h=1.70158),function(g){return g*g*((h+1)*g-h)}}function bne(h){return h<1/2.75?7.5625*h*h:h<2/2.75?7.5625*(h-=1.5/2.75)*h+.75:h<2.5/2.75?7.5625*(h-=2.25/2.75)*h+.9375:7.5625*(h-=2.625/2.75)*h+.984375}e.interpolateHcl=xne;function xne(h,g){h=e.hcl(h),g=e.hcl(g);var A=h.h,q=h.c,L=h.l,C=g.h-A,I=g.c-q,F=g.l-L;return isNaN(I)&&(I=0,q=isNaN(q)?g.c:q),isNaN(C)?(C=0,A=isNaN(A)?g.h:A):C>180?C-=360:C<-180&&(C+=360),function(U){return Tn(A+C*U,q+I*U,L+F*U)+""}}e.interpolateHsl=_ne;function _ne(h,g){h=e.hsl(h),g=e.hsl(g);var A=h.h,q=h.s,L=h.l,C=g.h-A,I=g.s-q,F=g.l-L;return isNaN(I)&&(I=0,q=isNaN(q)?g.s:q),isNaN(C)?(C=0,A=isNaN(A)?g.h:A):C>180?C-=360:C<-180&&(C+=360),function(U){return ba(A+C*U,q+I*U,L+F*U)+""}}e.interpolateLab=wne;function wne(h,g){h=e.lab(h),g=e.lab(g);var A=h.l,q=h.a,L=h.b,C=g.l-A,I=g.a-q,F=g.b-L;return function(U){return An(A+C*U,q+I*U,L+F*U)+""}}e.interpolateRound=G8;function G8(h,g){return g-=h,function(A){return Math.round(h+g*A)}}e.transform=function(h){var g=a.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(A){if(A!=null){g.setAttribute("transform",A);var q=g.transform.baseVal.consolidate()}return new Y8(q?q.matrix:Ane)})(h)};function Y8(h){var g=[h.a,h.b],A=[h.c,h.d],q=W8(g),L=V8(g,A),C=W8(Tne(A,g,-L))||0;g[0]*A[1]<A[0]*g[1]&&(g[0]*=-1,g[1]*=-1,q*=-1,L*=-1),this.rotate=(q?Math.atan2(g[1],g[0]):Math.atan2(-A[0],A[1]))*Wr,this.translate=[h.e,h.f],this.scale=[q,C],this.skew=C?Math.atan2(L,C)*Wr:0}Y8.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};function V8(h,g){return h[0]*g[0]+h[1]*g[1]}function W8(h){var g=Math.sqrt(V8(h,h));return g&&(h[0]/=g,h[1]/=g),g}function Tne(h,g,A){return h[0]+=A*g[0],h[1]+=A*g[1],h}var Ane={a:1,b:0,c:0,d:1,e:0,f:0};e.interpolateTransform=j8;function gf(h){return h.length?h.pop()+",":""}function Mne(h,g,A,q){if(h[0]!==g[0]||h[1]!==g[1]){var L=A.push("translate(",null,",",null,")");q.push({i:L-4,x:el(h[0],g[0])},{i:L-2,x:el(h[1],g[1])})}else(g[0]||g[1])&&A.push("translate("+g+")")}function kne(h,g,A,q){h!==g?(h-g>180?g+=360:g-h>180&&(h+=360),q.push({i:A.push(gf(A)+"rotate(",null,")")-2,x:el(h,g)})):g&&A.push(gf(A)+"rotate("+g+")")}function Sne(h,g,A,q){h!==g?q.push({i:A.push(gf(A)+"skewX(",null,")")-2,x:el(h,g)}):g&&A.push(gf(A)+"skewX("+g+")")}function qne(h,g,A,q){if(h[0]!==g[0]||h[1]!==g[1]){var L=A.push(gf(A)+"scale(",null,",",null,")");q.push({i:L-4,x:el(h[0],g[0])},{i:L-2,x:el(h[1],g[1])})}else(g[0]!==1||g[1]!==1)&&A.push(gf(A)+"scale("+g+")")}function j8(h,g){var A=[],q=[];return h=e.transform(h),g=e.transform(g),Mne(h.translate,g.translate,A,q),kne(h.rotate,g.rotate,A,q),Sne(h.skew,g.skew,A,q),qne(h.scale,g.scale,A,q),h=g=null,function(L){for(var C=-1,I=q.length,F;++C<I;)A[(F=q[C]).i]=F.x(L);return A.join("")}}function Lne(h,g){return g=(g-=h=+h)||1/g,function(A){return(A-h)/g}}function Cne(h,g){return g=(g-=h=+h)||1/g,function(A){return Math.max(0,Math.min(1,(A-h)/g))}}e.layout={},e.layout.bundle=function(){return function(h){for(var g=[],A=-1,q=h.length;++A<q;)g.push(Ene(h[A]));return g}};function Ene(h){for(var g=h.source,A=h.target,q=Dne(g,A),L=[g];g!==q;)g=g.parent,L.push(g);for(var C=L.length;A!==q;)L.splice(C,0,A),A=A.parent;return L}function Z8(h){for(var g=[],A=h.parent;A!=null;)g.push(h),h=A,A=A.parent;return g.push(h),g}function Dne(h,g){if(h===g)return h;for(var A=Z8(h),q=Z8(g),L=A.pop(),C=q.pop(),I=null;L===C;)I=L,L=A.pop(),C=q.pop();return I}e.layout.chord=function(){var h={},g,A,q,L,C=0,I,F,U;function J(){var ee={},re=[],_e=e.range(L),Me=[],ae,ce,ge,Ae,ke;for(g=[],A=[],ae=0,Ae=-1;++Ae<L;){for(ce=0,ke=-1;++ke<L;)ce+=q[Ae][ke];re.push(ce),Me.push(e.range(L)),ae+=ce}for(I&&_e.sort(function(Er,mr){return I(re[Er],re[mr])}),F&&Me.forEach(function(Er,mr){Er.sort(function(kr,rt){return F(q[mr][kr],q[mr][rt])})}),ae=(ar-C*L)/ae,ce=0,Ae=-1;++Ae<L;){for(ge=ce,ke=-1;++ke<L;){var xe=_e[Ae],Ve=Me[xe][ke],nr=q[xe][Ve],fr=ce,or=ce+=nr*ae;ee[xe+"-"+Ve]={index:xe,subindex:Ve,startAngle:fr,endAngle:or,value:nr}}A[xe]={index:xe,startAngle:ge,endAngle:ce,value:re[xe]},ce+=C}for(Ae=-1;++Ae<L;)for(ke=Ae-1;++ke<L;){var dr=ee[Ae+"-"+ke],pr=ee[ke+"-"+Ae];(dr.value||pr.value)&&g.push(dr.value<pr.value?{source:pr,target:dr}:{source:dr,target:pr})}U&&$()}function $(){g.sort(function(ee,re){return U((ee.source.value+ee.target.value)/2,(re.source.value+re.target.value)/2)})}return h.matrix=function(ee){return arguments.length?(L=(q=ee)&&q.length,g=A=null,h):q},h.padding=function(ee){return arguments.length?(C=ee,g=A=null,h):C},h.sortGroups=function(ee){return arguments.length?(I=ee,g=A=null,h):I},h.sortSubgroups=function(ee){return arguments.length?(F=ee,g=null,h):F},h.sortChords=function(ee){return arguments.length?(U=ee,g&&$(),h):U},h.chords=function(){return g||J(),g},h.groups=function(){return A||J(),A},h},e.layout.force=function(){var h={},g=e.dispatch("start","tick","end"),A,q=[1,1],L,C,I=.9,F=zne,U=Ine,J=-30,$=One,ee=.1,re=.64,_e=[],Me=[],ae,ce,ge;function Ae(xe){return function(Ve,nr,fr,or){if(Ve.point!==xe){var dr=Ve.cx-xe.x,pr=Ve.cy-xe.y,Er=or-nr,mr=dr*dr+pr*pr;if(Er*Er/re<mr){if(mr<$){var kr=Ve.charge/mr;xe.px-=dr*kr,xe.py-=pr*kr}return!0}if(Ve.point&&mr&&mr<$){var kr=Ve.pointCharge/mr;xe.px-=dr*kr,xe.py-=pr*kr}}return!Ve.charge}}h.tick=function(){if((C*=.99)<.005)return A=null,g.end({type:"end",alpha:C=0}),!0;var xe=_e.length,Ve=Me.length,nr,fr,or,dr,pr,Er,mr,kr,rt;for(fr=0;fr<Ve;++fr)or=Me[fr],dr=or.source,pr=or.target,kr=pr.x-dr.x,rt=pr.y-dr.y,(Er=kr*kr+rt*rt)&&(Er=C*ce[fr]*((Er=Math.sqrt(Er))-ae[fr])/Er,kr*=Er,rt*=Er,pr.x-=kr*(mr=dr.weight+pr.weight?dr.weight/(dr.weight+pr.weight):.5),pr.y-=rt*mr,dr.x+=kr*(mr=1-mr),dr.y+=rt*mr);if((mr=C*ee)&&(kr=q[0]/2,rt=q[1]/2,fr=-1,mr))for(;++fr<xe;)or=_e[fr],or.x+=(kr-or.x)*mr,or.y+=(rt-or.y)*mr;if(J)for(X8(nr=e.geom.quadtree(_e),C,ge),fr=-1;++fr<xe;)(or=_e[fr]).fixed||nr.visit(Ae(or));for(fr=-1;++fr<xe;)or=_e[fr],or.fixed?(or.x=or.px,or.y=or.py):(or.x-=(or.px-(or.px=or.x))*I,or.y-=(or.py-(or.py=or.y))*I);g.tick({type:"tick",alpha:C})},h.nodes=function(xe){return arguments.length?(_e=xe,h):_e},h.links=function(xe){return arguments.length?(Me=xe,h):Me},h.size=function(xe){return arguments.length?(q=xe,h):q},h.linkDistance=function(xe){return arguments.length?(F=typeof xe=="function"?xe:+xe,h):F},h.distance=h.linkDistance,h.linkStrength=function(xe){return arguments.length?(U=typeof xe=="function"?xe:+xe,h):U},h.friction=function(xe){return arguments.length?(I=+xe,h):I},h.charge=function(xe){return arguments.length?(J=typeof xe=="function"?xe:+xe,h):J},h.chargeDistance=function(xe){return arguments.length?($=xe*xe,h):Math.sqrt($)},h.gravity=function(xe){return arguments.length?(ee=+xe,h):ee},h.theta=function(xe){return arguments.length?(re=xe*xe,h):Math.sqrt(re)},h.alpha=function(xe){return arguments.length?(xe=+xe,C?xe>0?C=xe:(A.c=null,A.t=NaN,A=null,g.end({type:"end",alpha:C=0})):xe>0&&(g.start({type:"start",alpha:C=xe}),A=zd(h.tick)),h):C},h.start=function(){var xe,Ve=_e.length,nr=Me.length,fr=q[0],or=q[1],dr,pr;for(xe=0;xe<Ve;++xe)(pr=_e[xe]).index=xe,pr.weight=0;for(xe=0;xe<nr;++xe)pr=Me[xe],typeof pr.source=="number"&&(pr.source=_e[pr.source]),typeof pr.target=="number"&&(pr.target=_e[pr.target]),++pr.source.weight,++pr.target.weight;for(xe=0;xe<Ve;++xe)pr=_e[xe],isNaN(pr.x)&&(pr.x=Er("x",fr)),isNaN(pr.y)&&(pr.y=Er("y",or)),isNaN(pr.px)&&(pr.px=pr.x),isNaN(pr.py)&&(pr.py=pr.y);if(ae=[],typeof F=="function")for(xe=0;xe<nr;++xe)ae[xe]=+F.call(this,Me[xe],xe);else for(xe=0;xe<nr;++xe)ae[xe]=F;if(ce=[],typeof U=="function")for(xe=0;xe<nr;++xe)ce[xe]=+U.call(this,Me[xe],xe);else for(xe=0;xe<nr;++xe)ce[xe]=U;if(ge=[],typeof J=="function")for(xe=0;xe<Ve;++xe)ge[xe]=+J.call(this,_e[xe],xe);else for(xe=0;xe<Ve;++xe)ge[xe]=J;function Er(mr,kr){if(!dr){for(dr=new Array(Ve),yt=0;yt<Ve;++yt)dr[yt]=[];for(yt=0;yt<nr;++yt){var rt=Me[yt];dr[rt.source.index].push(rt.target),dr[rt.target.index].push(rt.source)}}for(var Jt=dr[xe],yt=-1,tr=Jt.length,Dr;++yt<tr;)if(!isNaN(Dr=Jt[yt][mr]))return Dr;return Math.random()*kr}return h.resume()},h.resume=function(){return h.alpha(.1)},h.stop=function(){return h.alpha(0)},h.drag=function(){if(L||(L=e.behavior.drag().origin(H).on("dragstart.force",Pne).on("drag.force",ke).on("dragend.force",Rne)),!arguments.length)return L;this.on("mouseover.force",Fne).on("mouseout.force",Nne).call(L)};function ke(xe){xe.px=e.event.x,xe.py=e.event.y,h.resume()}return e.rebind(h,g,"on")};function Pne(h){h.fixed|=2}function Rne(h){h.fixed&=-7}function Fne(h){h.fixed|=4,h.px=h.x,h.py=h.y}function Nne(h){h.fixed&=-5}function X8(h,g,A){var q=0,L=0;if(h.charge=0,!h.leaf)for(var C=h.nodes,I=C.length,F=-1,U;++F<I;)U=C[F],U!=null&&(X8(U,g,A),h.charge+=U.charge,q+=U.charge*U.cx,L+=U.charge*U.cy);if(h.point){h.leaf||(h.point.x+=Math.random()-.5,h.point.y+=Math.random()-.5);var J=g*A[h.point.index];h.charge+=h.pointCharge=J,q+=J*h.point.x,L+=J*h.point.y}h.cx=q/h.charge,h.cy=L/h.charge}var zne=20,Ine=1,One=1/0;e.layout.hierarchy=function(){var h=Une,g=Bne,A=Hne;function q(L){var C=[L],I=[],F;for(L.depth=0;(F=C.pop())!=null;)if(I.push(F),(J=g.call(q,F,F.depth))&&(U=J.length)){for(var U,J,$;--U>=0;)C.push($=J[U]),$.parent=F,$.depth=F.depth+1;A&&(F.value=0),F.children=J}else A&&(F.value=+A.call(q,F,F.depth)||0),delete F.children;return _o(L,function(ee){var re,_e;h&&(re=ee.children)&&re.sort(h),A&&(_e=ee.parent)&&(_e.value+=ee.value)}),I}return q.sort=function(L){return arguments.length?(h=L,q):h},q.children=function(L){return arguments.length?(g=L,q):g},q.value=function(L){return arguments.length?(A=L,q):A},q.revalue=function(L){return A&&(Ov(L,function(C){C.children&&(C.value=0)}),_o(L,function(C){var I;C.children||(C.value=+A.call(q,C,C.depth)||0),(I=C.parent)&&(I.value+=C.value)})),L},q};function Iv(h,g){return e.rebind(h,g,"sort","children","value"),h.nodes=h,h.links=Gne,h}function Ov(h,g){for(var A=[h];(h=A.pop())!=null;)if(g(h),(L=h.children)&&(q=L.length))for(var q,L;--q>=0;)A.push(L[q])}function _o(h,g){for(var A=[h],q=[];(h=A.pop())!=null;)if(q.push(h),(I=h.children)&&(C=I.length))for(var L=-1,C,I;++L<C;)A.push(I[L]);for(;(h=q.pop())!=null;)g(h)}function Bne(h){return h.children}function Hne(h){return h.value}function Une(h,g){return g.value-h.value}function Gne(h){return e.merge(h.map(function(g){return(g.children||[]).map(function(A){return{source:g,target:A}})}))}e.layout.partition=function(){var h=e.layout.hierarchy(),g=[1,1];function A(C,I,F,U){var J=C.children;if(C.x=I,C.y=C.depth*U,C.dx=F,C.dy=U,J&&(ee=J.length)){var $=-1,ee,re,_e;for(F=C.value?F/C.value:0;++$<ee;)A(re=J[$],I,_e=re.value*F,U),I+=_e}}function q(C){var I=C.children,F=0;if(I&&(J=I.length))for(var U=-1,J;++U<J;)F=Math.max(F,q(I[U]));return 1+F}function L(C,I){var F=h.call(this,C,I);return A(F[0],0,g[0],g[1]/q(F[0])),F}return L.size=function(C){return arguments.length?(g=C,L):g},Iv(L,h)},e.layout.pie=function(){var h=Number,g=J8,A=0,q=ar,L=0;function C(I){var F=I.length,U=I.map(function(Ae,ke){return+h.call(C,Ae,ke)}),J=+(typeof A=="function"?A.apply(this,arguments):A),$=(typeof q=="function"?q.apply(this,arguments):q)-J,ee=Math.min(Math.abs($)/F,+(typeof L=="function"?L.apply(this,arguments):L)),re=ee*($<0?-1:1),_e=e.sum(U),Me=_e?($-F*re)/_e:0,ae=e.range(F),ce=[],ge;return g!=null&&ae.sort(g===J8?function(Ae,ke){return U[ke]-U[Ae]}:function(Ae,ke){return g(I[Ae],I[ke])}),ae.forEach(function(Ae){ce[Ae]={data:I[Ae],value:ge=U[Ae],startAngle:J,endAngle:J+=ge*Me+re,padAngle:ee}}),ce}return C.value=function(I){return arguments.length?(h=I,C):h},C.sort=function(I){return arguments.length?(g=I,C):g},C.startAngle=function(I){return arguments.length?(A=I,C):A},C.endAngle=function(I){return arguments.length?(q=I,C):q},C.padAngle=function(I){return arguments.length?(L=I,C):L},C};var J8={};e.layout.stack=function(){var h=H,g=R3,A=F3,q=Wne,L=Yne,C=Vne;function I(F,U){if(!(Me=F.length))return F;var J=F.map(function(Ae,ke){return h.call(I,Ae,ke)}),$=J.map(function(Ae){return Ae.map(function(ke,xe){return[L.call(I,ke,xe),C.call(I,ke,xe)]})}),ee=g.call(I,$,U);J=e.permute(J,ee),$=e.permute($,ee);var re=A.call(I,$,U),_e=J[0].length,Me,ae,ce,ge;for(ce=0;ce<_e;++ce)for(q.call(I,J[0][ce],ge=re[ce],$[0][ce][1]),ae=1;ae<Me;++ae)q.call(I,J[ae][ce],ge+=$[ae-1][ce][1],$[ae][ce][1]);return F}return I.values=function(F){return arguments.length?(h=F,I):h},I.order=function(F){return arguments.length?(g=typeof F=="function"?F:jne.get(F)||R3,I):g},I.offset=function(F){return arguments.length?(A=typeof F=="function"?F:Zne.get(F)||F3,I):A},I.x=function(F){return arguments.length?(L=F,I):L},I.y=function(F){return arguments.length?(C=F,I):C},I.out=function(F){return arguments.length?(q=F,I):q},I};function Yne(h){return h.x}function Vne(h){return h.y}function Wne(h,g,A){h.y0=g,h.y=A}var jne=e.map({"inside-out":function(h){var g=h.length,A,q,L=h.map(Xne),C=h.map(Jne),I=e.range(g).sort(function(ee,re){return L[ee]-L[re]}),F=0,U=0,J=[],$=[];for(A=0;A<g;++A)q=I[A],F<U?(F+=C[q],J.push(q)):(U+=C[q],$.push(q));return $.reverse().concat(J)},reverse:function(h){return e.range(h.length).reverse()},default:R3}),Zne=e.map({silhouette:function(h){var g=h.length,A=h[0].length,q=[],L=0,C,I,F,U=[];for(I=0;I<A;++I){for(C=0,F=0;C<g;C++)F+=h[C][I][1];F>L&&(L=F),q.push(F)}for(I=0;I<A;++I)U[I]=(L-q[I])/2;return U},wiggle:function(h){var g=h.length,A=h[0],q=A.length,L,C,I,F,U,J,$,ee,re,_e=[];for(_e[0]=ee=re=0,C=1;C<q;++C){for(L=0,F=0;L<g;++L)F+=h[L][C][1];for(L=0,U=0,$=A[C][0]-A[C-1][0];L<g;++L){for(I=0,J=(h[L][C][1]-h[L][C-1][1])/(2*$);I<L;++I)J+=(h[I][C][1]-h[I][C-1][1])/$;U+=J*h[L][C][1]}_e[C]=ee-=F?U/F*$:0,ee<re&&(re=ee)}for(C=0;C<q;++C)_e[C]-=re;return _e},expand:function(h){var g=h.length,A=h[0].length,q=1/g,L,C,I,F=[];for(C=0;C<A;++C){for(L=0,I=0;L<g;L++)I+=h[L][C][1];if(I)for(L=0;L<g;L++)h[L][C][1]/=I;else for(L=0;L<g;L++)h[L][C][1]=q}for(C=0;C<A;++C)F[C]=0;return F},zero:F3});function R3(h){return e.range(h.length)}function F3(h){for(var g=-1,A=h[0].length,q=[];++g<A;)q[g]=0;return q}function Xne(h){for(var g=1,A=0,q=h[0][1],L,C=h.length;g<C;++g)(L=h[g][1])>q&&(A=g,q=L);return A}function Jne(h){return h.reduce($ne,0)}function $ne(h,g){return h+g[1]}e.layout.histogram=function(){var h=!0,g=Number,A=Qne,q=Kne;function L(C,re){for(var F=[],U=C.map(g,this),J=A.call(this,U,re),$=q.call(this,J,U,re),ee,re=-1,_e=U.length,Me=$.length-1,ae=h?1:1/_e,ce;++re<Me;)ee=F[re]=[],ee.dx=$[re+1]-(ee.x=$[re]),ee.y=0;if(Me>0)for(re=-1;++re<_e;)ce=U[re],ce>=J[0]&&ce<=J[1]&&(ee=F[e.bisect($,ce,1,Me)-1],ee.y+=ae,ee.push(C[re]));return F}return L.value=function(C){return arguments.length?(g=C,L):g},L.range=function(C){return arguments.length?(A=Br(C),L):A},L.bins=function(C){return arguments.length?(q=typeof C=="number"?function(I){return $8(I,C)}:Br(C),L):q},L.frequency=function(C){return arguments.length?(h=!!C,L):h},L};function Kne(h,g){return $8(h,Math.ceil(Math.log(g.length)/Math.LN2+1))}function $8(h,g){for(var A=-1,q=+h[0],L=(h[1]-q)/g,C=[];++A<=g;)C[A]=L*A+q;return C}function Qne(h){return[e.min(h),e.max(h)]}e.layout.pack=function(){var h=e.layout.hierarchy().sort(eie),g=0,A=[1,1],q;function L(C,I){var F=h.call(this,C,I),U=F[0],J=A[0],$=A[1],ee=q==null?Math.sqrt:typeof q=="function"?q:function(){return q};if(U.x=U.y=0,_o(U,function(_e){_e.r=+ee(_e.value)}),_o(U,eA),g){var re=g*(q?1:Math.max(2*U.r/J,2*U.r/$))/2;_o(U,function(_e){_e.r+=re}),_o(U,eA),_o(U,function(_e){_e.r-=re})}return rA(U,J/2,$/2,q?1:1/Math.max(2*U.r/J,2*U.r/$)),F}return L.size=function(C){return arguments.length?(A=C,L):A},L.radius=function(C){return arguments.length?(q=C==null||typeof C=="function"?C:+C,L):q},L.padding=function(C){return arguments.length?(g=+C,L):g},Iv(L,h)};function eie(h,g){return h.value-g.value}function N3(h,g){var A=h._pack_next;h._pack_next=g,g._pack_prev=h,g._pack_next=A,A._pack_prev=g}function K8(h,g){h._pack_next=g,g._pack_prev=h}function Q8(h,g){var A=g.x-h.x,q=g.y-h.y,L=h.r+g.r;return .999*L*L>A*A+q*q}function eA(h){if(!(g=h.children)||!(re=g.length))return;var g,A=1/0,q=-1/0,L=1/0,C=-1/0,I,F,U,J,$,ee,re;function _e(xe){A=Math.min(xe.x-xe.r,A),q=Math.max(xe.x+xe.r,q),L=Math.min(xe.y-xe.r,L),C=Math.max(xe.y+xe.r,C)}if(g.forEach(rie),I=g[0],I.x=-I.r,I.y=0,_e(I),re>1&&(F=g[1],F.x=F.r,F.y=0,_e(F),re>2))for(U=g[2],tA(I,F,U),_e(U),N3(I,U),I._pack_prev=U,N3(U,F),F=I._pack_next,J=3;J<re;J++){tA(I,F,U=g[J]);var Me=0,ae=1,ce=1;for($=F._pack_next;$!==F;$=$._pack_next,ae++)if(Q8($,U)){Me=1;break}if(Me==1)for(ee=I._pack_prev;ee!==$._pack_prev&&!Q8(ee,U);ee=ee._pack_prev,ce++);Me?(ae<ce||ae==ce&&F.r<I.r?K8(I,F=$):K8(I=ee,F),J--):(N3(I,U),F=U,_e(U))}var ge=(A+q)/2,Ae=(L+C)/2,ke=0;for(J=0;J<re;J++)U=g[J],U.x-=ge,U.y-=Ae,ke=Math.max(ke,U.r+Math.sqrt(U.x*U.x+U.y*U.y));h.r=ke,g.forEach(tie)}function rie(h){h._pack_next=h._pack_prev=h}function tie(h){delete h._pack_next,delete h._pack_prev}function rA(h,g,A,q){var L=h.children;if(h.x=g+=q*h.x,h.y=A+=q*h.y,h.r*=q,L)for(var C=-1,I=L.length;++C<I;)rA(L[C],g,A,q)}function tA(h,g,A){var q=h.r+A.r,L=g.x-h.x,C=g.y-h.y;if(q&&(L||C)){var I=g.r+A.r,F=L*L+C*C;I*=I,q*=q;var U=.5+(q-I)/(2*F),J=Math.sqrt(Math.max(0,2*I*(q+F)-(q-=F)*q-I*I))/(2*F);A.x=h.x+U*L+J*C,A.y=h.y+U*C-J*L}else A.x=h.x+q,A.y=h.y}e.layout.tree=function(){var h=e.layout.hierarchy().sort(null).value(null),g=aA,A=[1,1],q=null;function L($,ee){var re=h.call(this,$,ee),_e=re[0],Me=C(_e);if(_o(Me,I),Me.parent.m=-Me.z,Ov(Me,F),q)Ov(_e,J);else{var ae=_e,ce=_e,ge=_e;Ov(_e,function(Ve){Ve.x<ae.x&&(ae=Ve),Ve.x>ce.x&&(ce=Ve),Ve.depth>ge.depth&&(ge=Ve)});var Ae=g(ae,ce)/2-ae.x,ke=A[0]/(ce.x+g(ce,ae)/2+Ae),xe=A[1]/(ge.depth||1);Ov(_e,function(Ve){Ve.x=(Ve.x+Ae)*ke,Ve.y=Ve.depth*xe})}return re}function C($){for(var ee={A:null,children:[$]},re=[ee],_e;(_e=re.pop())!=null;)for(var Me=_e.children,ae,ce=0,ge=Me.length;ce<ge;++ce)re.push((Me[ce]=ae={_:Me[ce],parent:_e,children:(ae=Me[ce].children)&&ae.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:ce}).a=ae);return ee.children[0]}function I($){var ee=$.children,re=$.parent.children,_e=$.i?re[$.i-1]:null;if(ee.length){nie($);var Me=(ee[0].z+ee[ee.length-1].z)/2;_e?($.z=_e.z+g($._,_e._),$.m=$.z-Me):$.z=Me}else _e&&($.z=_e.z+g($._,_e._));$.parent.A=U($,_e,$.parent.A||re[0])}function F($){$._.x=$.z+$.parent.m,$.m+=$.parent.m}function U($,ee,re){if(ee){for(var _e=$,Me=$,ae=ee,ce=_e.parent.children[0],ge=_e.m,Ae=Me.m,ke=ae.m,xe=ce.m,Ve;ae=I3(ae),_e=z3(_e),ae&&_e;)ce=z3(ce),Me=I3(Me),Me.a=$,Ve=ae.z+ke-_e.z-ge+g(ae._,_e._),Ve>0&&(aie(iie(ae,$,re),$,Ve),ge+=Ve,Ae+=Ve),ke+=ae.m,ge+=_e.m,xe+=ce.m,Ae+=Me.m;ae&&!I3(Me)&&(Me.t=ae,Me.m+=ke-Ae),_e&&!z3(ce)&&(ce.t=_e,ce.m+=ge-xe,re=$)}return re}function J($){$.x*=A[0],$.y=$.depth*A[1]}return L.separation=function($){return arguments.length?(g=$,L):g},L.size=function($){return arguments.length?(q=(A=$)==null?J:null,L):q?null:A},L.nodeSize=function($){return arguments.length?(q=(A=$)==null?null:J,L):q?A:null},Iv(L,h)};function aA(h,g){return h.parent==g.parent?1:2}function z3(h){var g=h.children;return g.length?g[0]:h.t}function I3(h){var g=h.children,A;return(A=g.length)?g[A-1]:h.t}function aie(h,g,A){var q=A/(g.i-h.i);g.c-=q,g.s+=A,h.c+=q,g.z+=A,g.m+=A}function nie(h){for(var g=0,A=0,q=h.children,L=q.length,C;--L>=0;)C=q[L],C.z+=g,C.m+=g,g+=C.s+(A+=C.c)}function iie(h,g,A){return h.a.parent===g.parent?h.a:A}e.layout.cluster=function(){var h=e.layout.hierarchy().sort(null).value(null),g=aA,A=[1,1],q=!1;function L(C,I){var F=h.call(this,C,I),U=F[0],J,$=0;_o(U,function(ae){var ce=ae.children;ce&&ce.length?(ae.x=lie(ce),ae.y=oie(ce)):(ae.x=J?$+=g(ae,J):0,ae.y=0,J=ae)});var ee=nA(U),re=iA(U),_e=ee.x-g(ee,re)/2,Me=re.x+g(re,ee)/2;return _o(U,q?function(ae){ae.x=(ae.x-U.x)*A[0],ae.y=(U.y-ae.y)*A[1]}:function(ae){ae.x=(ae.x-_e)/(Me-_e)*A[0],ae.y=(1-(U.y?ae.y/U.y:1))*A[1]}),F}return L.separation=function(C){return arguments.length?(g=C,L):g},L.size=function(C){return arguments.length?(q=(A=C)==null,L):q?null:A},L.nodeSize=function(C){return arguments.length?(q=(A=C)!=null,L):q?A:null},Iv(L,h)};function oie(h){return 1+e.max(h,function(g){return g.y})}function lie(h){return h.reduce(function(g,A){return g+A.x},0)/h.length}function nA(h){var g=h.children;return g&&g.length?nA(g[0]):h}function iA(h){var g=h.children,A;return g&&(A=g.length)?iA(g[A-1]):h}e.layout.treemap=function(){var h=e.layout.hierarchy(),g=Math.round,A=[1,1],q=null,L=O3,C=!1,I,F="squarify",U=.5*(1+Math.sqrt(5));function J(ae,ce){for(var ge=-1,Ae=ae.length,ke,xe;++ge<Ae;)xe=(ke=ae[ge]).value*(ce<0?0:ce),ke.area=isNaN(xe)||xe<=0?0:xe}function $(ae){var ce=ae.children;if(ce&&ce.length){var ge=L(ae),Ae=[],ke=ce.slice(),xe,Ve=1/0,nr,fr=F==="slice"?ge.dx:F==="dice"?ge.dy:F==="slice-dice"?ae.depth&1?ge.dy:ge.dx:Math.min(ge.dx,ge.dy),or;for(J(ke,ge.dx*ge.dy/ae.value),Ae.area=0;(or=ke.length)>0;)Ae.push(xe=ke[or-1]),Ae.area+=xe.area,F!=="squarify"||(nr=re(Ae,fr))<=Ve?(ke.pop(),Ve=nr):(Ae.area-=Ae.pop().area,_e(Ae,fr,ge,!1),fr=Math.min(ge.dx,ge.dy),Ae.length=Ae.area=0,Ve=1/0);Ae.length&&(_e(Ae,fr,ge,!0),Ae.length=Ae.area=0),ce.forEach($)}}function ee(ae){var ce=ae.children;if(ce&&ce.length){var ge=L(ae),Ae=ce.slice(),ke,xe=[];for(J(Ae,ge.dx*ge.dy/ae.value),xe.area=0;ke=Ae.pop();)xe.push(ke),xe.area+=ke.area,ke.z!=null&&(_e(xe,ke.z?ge.dx:ge.dy,ge,!Ae.length),xe.length=xe.area=0);ce.forEach(ee)}}function re(ae,ce){for(var ge=ae.area,Ae,ke=0,xe=1/0,Ve=-1,nr=ae.length;++Ve<nr;)(Ae=ae[Ve].area)&&(Ae<xe&&(xe=Ae),Ae>ke&&(ke=Ae));return ge*=ge,ce*=ce,ge?Math.max(ce*ke*U/ge,ge/(ce*xe*U)):1/0}function _e(ae,ce,ge,Ae){var ke=-1,xe=ae.length,Ve=ge.x,nr=ge.y,fr=ce?g(ae.area/ce):0,or;if(ce==ge.dx){for((Ae||fr>ge.dy)&&(fr=ge.dy);++ke<xe;)or=ae[ke],or.x=Ve,or.y=nr,or.dy=fr,Ve+=or.dx=Math.min(ge.x+ge.dx-Ve,fr?g(or.area/fr):0);or.z=!0,or.dx+=ge.x+ge.dx-Ve,ge.y+=fr,ge.dy-=fr}else{for((Ae||fr>ge.dx)&&(fr=ge.dx);++ke<xe;)or=ae[ke],or.x=Ve,or.y=nr,or.dx=fr,nr+=or.dy=Math.min(ge.y+ge.dy-nr,fr?g(or.area/fr):0);or.z=!1,or.dy+=ge.y+ge.dy-nr,ge.x+=fr,ge.dx-=fr}}function Me(ae){var ce=I||h(ae),ge=ce[0];return ge.x=ge.y=0,ge.value?(ge.dx=A[0],ge.dy=A[1]):ge.dx=ge.dy=0,I&&h.revalue(ge),J([ge],ge.dx*ge.dy/ge.value),(I?ee:$)(ge),C&&(I=ce),ce}return Me.size=function(ae){return arguments.length?(A=ae,Me):A},Me.padding=function(ae){if(!arguments.length)return q;function ce(ke){var xe=ae.call(Me,ke,ke.depth);return xe==null?O3(ke):oA(ke,typeof xe=="number"?[xe,xe,xe,xe]:xe)}function ge(ke){return oA(ke,ae)}var Ae;return L=(q=ae)==null?O3:(Ae=typeof ae)=="function"?ce:(Ae==="number"&&(ae=[ae,ae,ae,ae]),ge),Me},Me.round=function(ae){return arguments.length?(g=ae?Math.round:Number,Me):g!=Number},Me.sticky=function(ae){return arguments.length?(C=ae,I=null,Me):C},Me.ratio=function(ae){return arguments.length?(U=ae,Me):U},Me.mode=function(ae){return arguments.length?(F=ae+"",Me):F},Iv(Me,h)};function O3(h){return{x:h.x,y:h.y,dx:h.dx,dy:h.dy}}function oA(h,g){var A=h.x+g[3],q=h.y+g[0],L=h.dx-g[1]-g[3],C=h.dy-g[0]-g[2];return L<0&&(A+=L/2,L=0),C<0&&(q+=C/2,C=0),{x:A,y:q,dx:L,dy:C}}e.random={normal:function(h,g){var A=arguments.length;return A<2&&(g=1),A<1&&(h=0),function(){var q,L,C;do q=Math.random()*2-1,L=Math.random()*2-1,C=q*q+L*L;while(!C||C>1);return h+g*q*Math.sqrt(-2*Math.log(C)/C)}},logNormal:function(){var h=e.random.normal.apply(e,arguments);return function(){return Math.exp(h())}},bates:function(h){var g=e.random.irwinHall(h);return function(){return g()/h}},irwinHall:function(h){return function(){for(var g=0,A=0;A<h;A++)g+=Math.random();return g}}},e.scale={};function Yd(h){var g=h[0],A=h[h.length-1];return g<A?[g,A]:[A,g]}function Vd(h){return h.rangeExtent?h.rangeExtent():Yd(h.range())}function sie(h,g,A,q){var L=A(h[0],h[1]),C=q(g[0],g[1]);return function(I){return C(L(I))}}function B3(h,g){var A=0,q=h.length-1,L=h[A],C=h[q],I;return C<L&&(I=A,A=q,q=I,I=L,L=C,C=I),h[A]=g.floor(L),h[q]=g.ceil(C),h}function lA(h){return h?{floor:function(g){return Math.floor(g/h)*h},ceil:function(g){return Math.ceil(g/h)*h}}:uie}var uie={floor:H,ceil:H};function fie(h,g,A,q){var L=[],C=[],I=0,F=Math.min(h.length,g.length)-1;for(h[F]<h[0]&&(h=h.slice().reverse(),g=g.slice().reverse());++I<=F;)L.push(A(h[I-1],h[I])),C.push(q(g[I-1],g[I]));return function(U){var J=e.bisect(h,U,1,F)-1;return C[J](L[J](U))}}e.scale.linear=function(){return sA([0,1],[0,1],Bs,!1)};function sA(h,g,A,q){var L,C;function I(){var U=Math.min(h.length,g.length)>2?fie:sie,J=q?Cne:Lne;return L=U(h,g,J,A),C=U(g,h,J,Bs),F}function F(U){return L(U)}return F.invert=function(U){return C(U)},F.domain=function(U){return arguments.length?(h=U.map(Number),I()):h},F.range=function(U){return arguments.length?(g=U,I()):g},F.rangeRound=function(U){return F.range(U).interpolate(G8)},F.clamp=function(U){return arguments.length?(q=U,I()):q},F.interpolate=function(U){return arguments.length?(A=U,I()):A},F.ticks=function(U){return U3(h,U)},F.tickFormat=function(U,J){return d3_scale_linearTickFormat(h,U,J)},F.nice=function(U){return fA(h,U),I()},F.copy=function(){return sA(h,g,A,q)},I()}function uA(h,g){return e.rebind(h,g,"range","rangeRound","interpolate","clamp")}function fA(h,g){return B3(h,lA(H3(h,g)[2])),B3(h,lA(H3(h,g)[2])),h}function H3(h,g){g==null&&(g=10);var A=Yd(h),q=A[1]-A[0],L=Math.pow(10,Math.floor(Math.log(q/g)/Math.LN10)),C=g/q*L;return C<=.15?L*=10:C<=.35?L*=5:C<=.75&&(L*=2),A[0]=Math.ceil(A[0]/L)*L,A[1]=Math.floor(A[1]/L)*L+L*.5,A[2]=L,A}function U3(h,g){return e.range.apply(e,H3(h,g))}var cie={s:1,g:1,p:1,r:1,e:1};function cA(h){return-Math.floor(Math.log(h)/Math.LN10+.01)}function QLe(h,g){var A=cA(g[2]);return h in cie?Math.abs(A-cA(Math.max(x(g[0]),x(g[1]))))+ +(h!=="e"):A-(h==="%")*2}e.scale.log=function(){return vA(e.scale.linear().domain([0,1]),10,!0,[1,10])};function vA(h,g,A,q){function L(F){return(A?Math.log(F<0?0:F):-Math.log(F>0?0:-F))/Math.log(g)}function C(F){return A?Math.pow(g,F):-Math.pow(g,-F)}function I(F){return h(L(F))}return I.invert=function(F){return C(h.invert(F))},I.domain=function(F){return arguments.length?(A=F[0]>=0,h.domain((q=F.map(Number)).map(L)),I):q},I.base=function(F){return arguments.length?(g=+F,h.domain(q.map(L)),I):g},I.nice=function(){var F=B3(q.map(L),A?Math:vie);return h.domain(F),q=F.map(C),I},I.ticks=function(){var F=Yd(q),U=[],J=F[0],$=F[1],ee=Math.floor(L(J)),re=Math.ceil(L($)),_e=g%1?2:g;if(isFinite(re-ee)){if(A){for(;ee<re;ee++)for(var Me=1;Me<_e;Me++)U.push(C(ee)*Me);U.push(C(ee))}else for(U.push(C(ee));ee++<re;)for(var Me=_e-1;Me>0;Me--)U.push(C(ee)*Me);for(ee=0;U[ee]<J;ee++);for(re=U.length;U[re-1]>$;re--);U=U.slice(ee,re)}return U},I.copy=function(){return vA(h.copy(),g,A,q)},uA(I,h)}var vie={floor:function(h){return-Math.ceil(-h)},ceil:function(h){return-Math.floor(-h)}};e.scale.pow=function(){return hA(e.scale.linear(),1,[0,1])};function hA(h,g,A){var q=Wd(g),L=Wd(1/g);function C(I){return h(q(I))}return C.invert=function(I){return L(h.invert(I))},C.domain=function(I){return arguments.length?(h.domain((A=I.map(Number)).map(q)),C):A},C.ticks=function(I){return U3(A,I)},C.tickFormat=function(I,F){return d3_scale_linearTickFormat(A,I,F)},C.nice=function(I){return C.domain(fA(A,I))},C.exponent=function(I){return arguments.length?(q=Wd(g=I),L=Wd(1/g),h.domain(A.map(q)),C):g},C.copy=function(){return hA(h.copy(),g,A)},uA(C,h)}function Wd(h){return function(g){return g<0?-Math.pow(-g,h):Math.pow(g,h)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return dA([],{t:"range",a:[[]]})};function dA(h,g){var A,q,L;function C(F){return q[((A.get(F)||(g.t==="range"?A.set(F,h.push(F)):NaN))-1)%q.length]}function I(F,U){return e.range(h.length).map(function(J){return F+U*J})}return C.domain=function(F){if(!arguments.length)return h;h=[],A=new b;for(var U=-1,J=F.length,$;++U<J;)A.has($=F[U])||A.set($,h.push($));return C[g.t].apply(C,g.a)},C.range=function(F){return arguments.length?(q=F,L=0,g={t:"range",a:arguments},C):q},C.rangePoints=function(F,U){arguments.length<2&&(U=0);var J=F[0],$=F[1],ee=h.length<2?(J=(J+$)/2,0):($-J)/(h.length-1+U);return q=I(J+ee*U/2,ee),L=0,g={t:"rangePoints",a:arguments},C},C.rangeRoundPoints=function(F,U){arguments.length<2&&(U=0);var J=F[0],$=F[1],ee=h.length<2?(J=$=Math.round((J+$)/2),0):($-J)/(h.length-1+U)|0;return q=I(J+Math.round(ee*U/2+($-J-(h.length-1+U)*ee)/2),ee),L=0,g={t:"rangeRoundPoints",a:arguments},C},C.rangeBands=function(F,U,J){arguments.length<2&&(U=0),arguments.length<3&&(J=U);var $=F[1]<F[0],ee=F[$-0],re=F[1-$],_e=(re-ee)/(h.length-U+2*J);return q=I(ee+_e*J,_e),$&&q.reverse(),L=_e*(1-U),g={t:"rangeBands",a:arguments},C},C.rangeRoundBands=function(F,U,J){arguments.length<2&&(U=0),arguments.length<3&&(J=U);var $=F[1]<F[0],ee=F[$-0],re=F[1-$],_e=Math.floor((re-ee)/(h.length-U+2*J));return q=I(ee+Math.round((re-ee-(h.length-U)*_e)/2),_e),$&&q.reverse(),L=Math.round(_e*(1-U)),g={t:"rangeRoundBands",a:arguments},C},C.rangeBand=function(){return L},C.rangeExtent=function(){return Yd(g.a[0])},C.copy=function(){return dA(h,g)},C.domain(h)}e.scale.category10=function(){return e.scale.ordinal().range(hie)},e.scale.category20=function(){return e.scale.ordinal().range(die)},e.scale.category20b=function(){return e.scale.ordinal().range(pie)},e.scale.category20c=function(){return e.scale.ordinal().range(yie)};var hie=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(Pl),die=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(Pl),pie=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(Pl),yie=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(Pl);e.scale.quantile=function(){return pA([],[])};function pA(h,g){var A;function q(){var C=0,I=g.length;for(A=[];++C<I;)A[C-1]=e.quantile(h,C/I);return L}function L(C){if(!isNaN(C=+C))return g[e.bisect(A,C)]}return L.domain=function(C){return arguments.length?(h=C.map(v).filter(d).sort(c),q()):h},L.range=function(C){return arguments.length?(g=C,q()):g},L.quantiles=function(){return A},L.invertExtent=function(C){return C=g.indexOf(C),C<0?[NaN,NaN]:[C>0?A[C-1]:h[0],C<A.length?A[C]:h[h.length-1]]},L.copy=function(){return pA(h,g)},q()}e.scale.quantize=function(){return yA(0,1,[0,1])};function yA(h,g,A){var q,L;function C(F){return A[Math.max(0,Math.min(L,Math.floor(q*(F-h))))]}function I(){return q=A.length/(g-h),L=A.length-1,C}return C.domain=function(F){return arguments.length?(h=+F[0],g=+F[F.length-1],I()):[h,g]},C.range=function(F){return arguments.length?(A=F,I()):A},C.invertExtent=function(F){return F=A.indexOf(F),F=F<0?NaN:F/q+h,[F,F+1/q]},C.copy=function(){return yA(h,g,A)},I()}e.scale.threshold=function(){return mA([.5],[0,1])};function mA(h,g){function A(q){if(q<=q)return g[e.bisect(h,q)]}return A.domain=function(q){return arguments.length?(h=q,A):h},A.range=function(q){return arguments.length?(g=q,A):g},A.invertExtent=function(q){return q=g.indexOf(q),[h[q-1],h[q]]},A.copy=function(){return mA(h,g)},A}e.scale.identity=function(){return gA([0,1])};function gA(h){function g(A){return+A}return g.invert=g,g.domain=g.range=function(A){return arguments.length?(h=A.map(g),g):h},g.ticks=function(A){return U3(h,A)},g.tickFormat=function(A,q){return d3_scale_linearTickFormat(h,A,q)},g.copy=function(){return gA(h)},g}e.svg={};function mie(){return 0}e.svg.arc=function(){var h=gie,g=bie,A=mie,q=jd,L=bA,C=xA,I=xie;function F(){var J=Math.max(0,+h.apply(this,arguments)),$=Math.max(0,+g.apply(this,arguments)),ee=L.apply(this,arguments)-ur,re=C.apply(this,arguments)-ur,_e=Math.abs(re-ee),Me=ee>re?0:1;if($<J&&(ae=$,$=J,J=ae),_e>=hr)return U($,Me)+(J?U(J,1-Me):"")+"Z";var ae,ce,ge,Ae,ke=0,xe=0,Ve,nr,fr,or,dr,pr,Er,mr,kr=[];if((Ae=(+I.apply(this,arguments)||0)/2)&&(ge=q===jd?Math.sqrt(J*J+$*$):+q.apply(this,arguments),Me||(xe*=-1),$&&(xe=Dt(ge/$*Math.sin(Ae))),J&&(ke=Dt(ge/J*Math.sin(Ae)))),$){Ve=$*Math.cos(ee+xe),nr=$*Math.sin(ee+xe),fr=$*Math.cos(re-xe),or=$*Math.sin(re-xe);var rt=Math.abs(re-ee-2*xe)<=qe?0:1;if(xe&&Zd(Ve,nr,fr,or)===Me^rt){var Jt=(ee+re)/2;Ve=$*Math.cos(Jt),nr=$*Math.sin(Jt),fr=or=null}}else Ve=nr=0;if(J){dr=J*Math.cos(re-ke),pr=J*Math.sin(re-ke),Er=J*Math.cos(ee+ke),mr=J*Math.sin(ee+ke);var yt=Math.abs(ee-re+2*ke)<=qe?0:1;if(ke&&Zd(dr,pr,Er,mr)===1-Me^yt){var tr=(ee+re)/2;dr=J*Math.cos(tr),pr=J*Math.sin(tr),Er=mr=null}}else dr=pr=0;if(_e>ve&&(ae=Math.min(Math.abs($-J)/2,+A.apply(this,arguments)))>.001){ce=J<$^Me?0:1;var Dr=ae,Rr=ae;if(_e<qe){var tt=Er==null?[dr,pr]:fr==null?[Ve,nr]:k3([Ve,nr],[Er,mr],[fr,or],[dr,pr]),Bt=Ve-tt[0],fa=nr-tt[1],Oa=fr-tt[0],an=or-tt[1],yn=1/Math.sin(Math.acos((Bt*Oa+fa*an)/(Math.sqrt(Bt*Bt+fa*fa)*Math.sqrt(Oa*Oa+an*an)))/2),nn=Math.sqrt(tt[0]*tt[0]+tt[1]*tt[1]);Rr=Math.min(ae,(J-nn)/(yn-1)),Dr=Math.min(ae,($-nn)/(yn+1))}if(fr!=null){var Mn=Xd(Er==null?[dr,pr]:[Er,mr],[Ve,nr],$,Dr,Me),Za=Xd([fr,or],[dr,pr],$,Dr,Me);ae===Dr?kr.push("M",Mn[0],"A",Dr,",",Dr," 0 0,",ce," ",Mn[1],"A",$,",",$," 0 ",1-Me^Zd(Mn[1][0],Mn[1][1],Za[1][0],Za[1][1]),",",Me," ",Za[1],"A",Dr,",",Dr," 0 0,",ce," ",Za[0]):kr.push("M",Mn[0],"A",Dr,",",Dr," 0 1,",ce," ",Za[0])}else kr.push("M",Ve,",",nr);if(Er!=null){var kn=Xd([Ve,nr],[Er,mr],J,-Rr,Me),Us=Xd([dr,pr],fr==null?[Ve,nr]:[fr,or],J,-Rr,Me);ae===Rr?kr.push("L",Us[0],"A",Rr,",",Rr," 0 0,",ce," ",Us[1],"A",J,",",J," 0 ",Me^Zd(Us[1][0],Us[1][1],kn[1][0],kn[1][1]),",",1-Me," ",kn[1],"A",Rr,",",Rr," 0 0,",ce," ",kn[0]):kr.push("L",Us[0],"A",Rr,",",Rr," 0 0,",ce," ",kn[0])}else kr.push("L",dr,",",pr)}else kr.push("M",Ve,",",nr),fr!=null&&kr.push("A",$,",",$," 0 ",rt,",",Me," ",fr,",",or),kr.push("L",dr,",",pr),Er!=null&&kr.push("A",J,",",J," 0 ",yt,",",1-Me," ",Er,",",mr);return kr.push("Z"),kr.join("")}function U(J,$){return"M0,"+J+"A"+J+","+J+" 0 1,"+$+" 0,"+-J+"A"+J+","+J+" 0 1,"+$+" 0,"+J}return F.innerRadius=function(J){return arguments.length?(h=Br(J),F):h},F.outerRadius=function(J){return arguments.length?(g=Br(J),F):g},F.cornerRadius=function(J){return arguments.length?(A=Br(J),F):A},F.padRadius=function(J){return arguments.length?(q=J==jd?jd:Br(J),F):q},F.startAngle=function(J){return arguments.length?(L=Br(J),F):L},F.endAngle=function(J){return arguments.length?(C=Br(J),F):C},F.padAngle=function(J){return arguments.length?(I=Br(J),F):I},F.centroid=function(){var J=(+h.apply(this,arguments)+ +g.apply(this,arguments))/2,$=(+L.apply(this,arguments)+ +C.apply(this,arguments))/2-ur;return[Math.cos($)*J,Math.sin($)*J]},F};var jd="auto";function gie(h){return h.innerRadius}function bie(h){return h.outerRadius}function bA(h){return h.startAngle}function xA(h){return h.endAngle}function xie(h){return h&&h.padAngle}function Zd(h,g,A,q){return(h-A)*g-(g-q)*h>0?0:1}function Xd(h,g,A,q,L){var C=h[0]-g[0],I=h[1]-g[1],F=(L?q:-q)/Math.sqrt(C*C+I*I),U=F*I,J=-F*C,$=h[0]+U,ee=h[1]+J,re=g[0]+U,_e=g[1]+J,Me=($+re)/2,ae=(ee+_e)/2,ce=re-$,ge=_e-ee,Ae=ce*ce+ge*ge,ke=A-q,xe=$*_e-re*ee,Ve=(ge<0?-1:1)*Math.sqrt(Math.max(0,ke*ke*Ae-xe*xe)),nr=(xe*ge-ce*Ve)/Ae,fr=(-xe*ce-ge*Ve)/Ae,or=(xe*ge+ce*Ve)/Ae,dr=(-xe*ce+ge*Ve)/Ae,pr=nr-Me,Er=fr-ae,mr=or-Me,kr=dr-ae;return pr*pr+Er*Er>mr*mr+kr*kr&&(nr=or,fr=dr),[[nr-U,fr-J],[nr*A/ke,fr*A/ke]]}function _A(){return!0}function wA(h){var g=hf,A=Dv,q=_A,L=Wi,C=L.key,I=.7;function F(U){var J=[],$=[],ee=-1,re=U.length,_e,Me=Br(g),ae=Br(A);function ce(){J.push("M",L(h($),I))}for(;++ee<re;)q.call(this,_e=U[ee],ee)?$.push([+Me.call(this,_e,ee),+ae.call(this,_e,ee)]):$.length&&(ce(),$=[]);return $.length&&ce(),J.length?J.join(""):null}return F.x=function(U){return arguments.length?(g=U,F):g},F.y=function(U){return arguments.length?(A=U,F):A},F.defined=function(U){return arguments.length?(q=U,F):q},F.interpolate=function(U){return arguments.length?(typeof U=="function"?C=L=U:C=(L=G3.get(U)||Wi).key,F):C},F.tension=function(U){return arguments.length?(I=U,F):I},F}e.svg.line=function(){return wA(H)};var G3=e.map({linear:Wi,"linear-closed":TA,step:_ie,"step-before":Y3,"step-after":V3,basis:AA,"basis-open":Mie,"basis-closed":kie,bundle:Sie,cardinal:Aie,"cardinal-open":wie,"cardinal-closed":Tie,monotone:Cie});G3.forEach(function(h,g){g.key=h,g.closed=/-closed$/.test(h)});function Wi(h){return h.length>1?h.join("L"):h+"Z"}function TA(h){return h.join("L")+"Z"}function _ie(h){for(var g=0,A=h.length,q=h[0],L=[q[0],",",q[1]];++g<A;)L.push("H",(q[0]+(q=h[g])[0])/2,"V",q[1]);return A>1&&L.push("H",q[0]),L.join("")}function Y3(h){for(var g=0,A=h.length,q=h[0],L=[q[0],",",q[1]];++g<A;)L.push("V",(q=h[g])[1],"H",q[0]);return L.join("")}function V3(h){for(var g=0,A=h.length,q=h[0],L=[q[0],",",q[1]];++g<A;)L.push("H",(q=h[g])[0],"V",q[1]);return L.join("")}function wie(h,g){return h.length<4?Wi(h):h[1]+Jd(h.slice(1,-1),W3(h,g))}function Tie(h,g){return h.length<3?TA(h):h[0]+Jd((h.push(h[0]),h),W3([h[h.length-2]].concat(h,[h[1]]),g))}function Aie(h,g){return h.length<3?Wi(h):h[0]+Jd(h,W3(h,g))}function Jd(h,g){if(g.length<1||h.length!=g.length&&h.length!=g.length+2)return Wi(h);var A=h.length!=g.length,q="",L=h[0],C=h[1],I=g[0],F=I,U=1;if(A&&(q+="Q"+(C[0]-I[0]*2/3)+","+(C[1]-I[1]*2/3)+","+C[0]+","+C[1],L=h[1],U=2),g.length>1){F=g[1],C=h[U],U++,q+="C"+(L[0]+I[0])+","+(L[1]+I[1])+","+(C[0]-F[0])+","+(C[1]-F[1])+","+C[0]+","+C[1];for(var J=2;J<g.length;J++,U++)C=h[U],F=g[J],q+="S"+(C[0]-F[0])+","+(C[1]-F[1])+","+C[0]+","+C[1]}if(A){var $=h[U];q+="Q"+(C[0]+F[0]*2/3)+","+(C[1]+F[1]*2/3)+","+$[0]+","+$[1]}return q}function W3(h,g){for(var A=[],q=(1-g)/2,L,C=h[0],I=h[1],F=1,U=h.length;++F<U;)L=C,C=I,I=h[F],A.push([q*(I[0]-L[0]),q*(I[1]-L[1])]);return A}function AA(h){if(h.length<3)return Wi(h);var g=1,A=h.length,q=h[0],L=q[0],C=q[1],I=[L,L,L,(q=h[1])[0]],F=[C,C,C,q[1]],U=[L,",",C,"L",ni(Fl,I),",",ni(Fl,F)];for(h.push(h[A-1]);++g<=A;)q=h[g],I.shift(),I.push(q[0]),F.shift(),F.push(q[1]),j3(U,I,F);return h.pop(),U.push("L",q),U.join("")}function Mie(h){if(h.length<4)return Wi(h);for(var g=[],A=-1,q=h.length,L,C=[0],I=[0];++A<3;)L=h[A],C.push(L[0]),I.push(L[1]);for(g.push(ni(Fl,C)+","+ni(Fl,I)),--A;++A<q;)L=h[A],C.shift(),C.push(L[0]),I.shift(),I.push(L[1]),j3(g,C,I);return g.join("")}function kie(h){for(var g,A=-1,q=h.length,L=q+4,C,I=[],F=[];++A<4;)C=h[A%q],I.push(C[0]),F.push(C[1]);for(g=[ni(Fl,I),",",ni(Fl,F)],--A;++A<L;)C=h[A%q],I.shift(),I.push(C[0]),F.shift(),F.push(C[1]),j3(g,I,F);return g.join("")}function Sie(h,g){var A=h.length-1;if(A)for(var q=h[0][0],L=h[0][1],C=h[A][0]-q,I=h[A][1]-L,F=-1,U,J;++F<=A;)U=h[F],J=F/A,U[0]=g*U[0]+(1-g)*(q+J*C),U[1]=g*U[1]+(1-g)*(L+J*I);return AA(h)}function ni(h,g){return h[0]*g[0]+h[1]*g[1]+h[2]*g[2]+h[3]*g[3]}var MA=[0,2/3,1/3,0],kA=[0,1/3,2/3,0],Fl=[0,1/6,2/3,1/6];function j3(h,g,A){h.push("C",ni(MA,g),",",ni(MA,A),",",ni(kA,g),",",ni(kA,A),",",ni(Fl,g),",",ni(Fl,A))}function Z3(h,g){return(g[1]-h[1])/(g[0]-h[0])}function qie(h){for(var g=0,A=h.length-1,q=[],L=h[0],C=h[1],I=q[0]=Z3(L,C);++g<A;)q[g]=(I+(I=Z3(L=C,C=h[g+1])))/2;return q[g]=I,q}function Lie(h){for(var g=[],A,q,L,C,I=qie(h),F=-1,U=h.length-1;++F<U;)A=Z3(h[F],h[F+1]),x(A)<ve?I[F]=I[F+1]=0:(q=I[F]/A,L=I[F+1]/A,C=q*q+L*L,C>9&&(C=A*3/Math.sqrt(C),I[F]=C*q,I[F+1]=C*L));for(F=-1;++F<=U;)C=(h[Math.min(U,F+1)][0]-h[Math.max(0,F-1)][0])/(6*(1+I[F]*I[F])),g.push([C||0,I[F]*C||0]);return g}function Cie(h){return h.length<3?Wi(h):h[0]+Jd(h,Lie(h))}e.svg.line.radial=function(){var h=wA(SA);return h.radius=h.x,delete h.x,h.angle=h.y,delete h.y,h};function SA(h){for(var g,A=-1,q=h.length,L,C;++A<q;)g=h[A],L=g[0],C=g[1]-ur,g[0]=L*Math.cos(C),g[1]=L*Math.sin(C);return h}function qA(h){var g=hf,A=hf,q=0,L=Dv,C=_A,I=Wi,F=I.key,U=I,J="L",$=.7;function ee(re){var _e=[],Me=[],ae=[],ce=-1,ge=re.length,Ae,ke=Br(g),xe=Br(q),Ve=g===A?function(){return fr}:Br(A),nr=q===L?function(){return or}:Br(L),fr,or;function dr(){_e.push("M",I(h(ae),$),J,U(h(Me.reverse()),$),"Z")}for(;++ce<ge;)C.call(this,Ae=re[ce],ce)?(Me.push([fr=+ke.call(this,Ae,ce),or=+xe.call(this,Ae,ce)]),ae.push([+Ve.call(this,Ae,ce),+nr.call(this,Ae,ce)])):Me.length&&(dr(),Me=[],ae=[]);return Me.length&&dr(),_e.length?_e.join(""):null}return ee.x=function(re){return arguments.length?(g=A=re,ee):A},ee.x0=function(re){return arguments.length?(g=re,ee):g},ee.x1=function(re){return arguments.length?(A=re,ee):A},ee.y=function(re){return arguments.length?(q=L=re,ee):L},ee.y0=function(re){return arguments.length?(q=re,ee):q},ee.y1=function(re){return arguments.length?(L=re,ee):L},ee.defined=function(re){return arguments.length?(C=re,ee):C},ee.interpolate=function(re){return arguments.length?(typeof re=="function"?F=I=re:F=(I=G3.get(re)||Wi).key,U=I.reverse||I,J=I.closed?"M":"L",ee):F},ee.tension=function(re){return arguments.length?($=re,ee):$},ee}Y3.reverse=V3,V3.reverse=Y3,e.svg.area=function(){return qA(H)},e.svg.area.radial=function(){var h=qA(SA);return h.radius=h.x,delete h.x,h.innerRadius=h.x0,delete h.x0,h.outerRadius=h.x1,delete h.x1,h.angle=h.y,delete h.y,h.startAngle=h.y0,delete h.y0,h.endAngle=h.y1,delete h.y1,h};function LA(h){return h.source}function CA(h){return h.target}e.svg.chord=function(){var h=LA,g=CA,A=Eie,q=bA,L=xA;function C($,ee){var re=I(this,h,$,ee),_e=I(this,g,$,ee);return"M"+re.p0+U(re.r,re.p1,re.a1-re.a0)+(F(re,_e)?J(re.r,re.p1,re.r,re.p0):J(re.r,re.p1,_e.r,_e.p0)+U(_e.r,_e.p1,_e.a1-_e.a0)+J(_e.r,_e.p1,re.r,re.p0))+"Z"}function I($,ee,re,_e){var Me=ee.call($,re,_e),ae=A.call($,Me,_e),ce=q.call($,Me,_e)-ur,ge=L.call($,Me,_e)-ur;return{r:ae,a0:ce,a1:ge,p0:[ae*Math.cos(ce),ae*Math.sin(ce)],p1:[ae*Math.cos(ge),ae*Math.sin(ge)]}}function F($,ee){return $.a0==ee.a0&&$.a1==ee.a1}function U($,ee,re){return"A"+$+","+$+" 0 "+ +(re>qe)+",1 "+ee}function J($,ee,re,_e){return"Q 0,0 "+_e}return C.radius=function($){return arguments.length?(A=Br($),C):A},C.source=function($){return arguments.length?(h=Br($),C):h},C.target=function($){return arguments.length?(g=Br($),C):g},C.startAngle=function($){return arguments.length?(q=Br($),C):q},C.endAngle=function($){return arguments.length?(L=Br($),C):L},C};function Eie(h){return h.radius}e.svg.diagonal=function(){var h=LA,g=CA,A=EA;function q(L,C){var I=h.call(this,L,C),F=g.call(this,L,C),U=(I.y+F.y)/2,J=[I,{x:I.x,y:U},{x:F.x,y:U},F];return J=J.map(A),"M"+J[0]+"C"+J[1]+" "+J[2]+" "+J[3]}return q.source=function(L){return arguments.length?(h=Br(L),q):h},q.target=function(L){return arguments.length?(g=Br(L),q):g},q.projection=function(L){return arguments.length?(A=L,q):A},q};function EA(h){return[h.x,h.y]}e.svg.diagonal.radial=function(){var h=e.svg.diagonal(),g=EA,A=h.projection;return h.projection=function(q){return arguments.length?A(Die(g=q)):g},h};function Die(h){return function(){var g=h.apply(this,arguments),A=g[0],q=g[1]-ur;return[A*Math.cos(q),A*Math.sin(q)]}}e.svg.symbol=function(){var h=Rie,g=Pie;function A(q,L){return(PA.get(h.call(this,q,L))||DA)(g.call(this,q,L))}return A.type=function(q){return arguments.length?(h=Br(q),A):h},A.size=function(q){return arguments.length?(g=Br(q),A):g},A};function Pie(){return 64}function Rie(){return"circle"}function DA(h){var g=Math.sqrt(h/qe);return"M0,"+g+"A"+g+","+g+" 0 1,1 0,"+-g+"A"+g+","+g+" 0 1,1 0,"+g+"Z"}var PA=e.map({circle:DA,cross:function(h){var g=Math.sqrt(h/5)/2;return"M"+-3*g+","+-g+"H"+-g+"V"+-3*g+"H"+g+"V"+-g+"H"+3*g+"V"+g+"H"+g+"V"+3*g+"H"+-g+"V"+g+"H"+-3*g+"Z"},diamond:function(h){var g=Math.sqrt(h/(2*RA)),A=g*RA;return"M0,"+-g+"L"+A+",0 0,"+g+" "+-A+",0Z"},square:function(h){var g=Math.sqrt(h)/2;return"M"+-g+","+-g+"L"+g+","+-g+" "+g+","+g+" "+-g+","+g+"Z"},"triangle-down":function(h){var g=Math.sqrt(h/$d),A=g*$d/2;return"M0,"+A+"L"+g+","+-A+" "+-g+","+-A+"Z"},"triangle-up":function(h){var g=Math.sqrt(h/$d),A=g*$d/2;return"M0,"+-A+"L"+g+","+A+" "+-g+","+A+"Z"}});e.svg.symbolTypes=PA.keys();var $d=Math.sqrt(3),RA=Math.tan(30*Ar);de.transition=function(h){for(var g=Hs||++NA,A=J3(h),q=[],L,C,I=Qd||{time:Date.now(),ease:vne,delay:0,duration:250},F=-1,U=this.length;++F<U;){q.push(L=[]);for(var J=this[F],$=-1,ee=J.length;++$<ee;)(C=J[$])&&ep(C,$,A,g,I),L.push(C)}return Bv(q,A,g)},de.interrupt=function(h){return this.each(h==null?Kd:FA(J3(h)))};var Kd=FA(J3());function FA(h){return function(){var g,A,q;(g=this[h])&&(q=g[A=g.active])&&(q.timer.c=null,q.timer.t=NaN,--g.count?delete g[A]:delete this[h],g.active+=.5,q.event&&q.event.interrupt.call(this,this.__data__,q.index))}}function Bv(h,g,A){return K(h,ua),h.namespace=g,h.id=A,h}var ua=[],NA=0,Hs,Qd;ua.call=de.call,ua.empty=de.empty,ua.node=de.node,ua.size=de.size,e.transition=function(h,g){return h&&h.transition?Hs?h.transition(g):h:e.selection().transition(h)},e.transition.prototype=ua,ua.select=function(h){var g=this.id,A=this.namespace,q=[],L,C,I;h=W(h);for(var F=-1,U=this.length;++F<U;){q.push(L=[]);for(var J=this[F],$=-1,ee=J.length;++$<ee;)(I=J[$])&&(C=h.call(I,I.__data__,$,F))?("__data__"in I&&(C.__data__=I.__data__),ep(C,$,A,g,I[A][g]),L.push(C)):L.push(null)}return Bv(q,A,g)},ua.selectAll=function(h){var g=this.id,A=this.namespace,q=[],L,C,I,F,U;h=Q(h);for(var J=-1,$=this.length;++J<$;)for(var ee=this[J],re=-1,_e=ee.length;++re<_e;)if(I=ee[re]){U=I[A][g],C=h.call(I,I.__data__,re,J),q.push(L=[]);for(var Me=-1,ae=C.length;++Me<ae;)(F=C[Me])&&ep(F,Me,A,g,U),L.push(F)}return Bv(q,A,g)},ua.filter=function(h){var g=[],A,q,L;typeof h!="function"&&(h=se(h));for(var C=0,I=this.length;C<I;C++){g.push(A=[]);for(var q=this[C],F=0,U=q.length;F<U;F++)(L=q[F])&&h.call(L,L.__data__,F,C)&&A.push(L)}return Bv(g,this.namespace,this.id)},ua.tween=function(h,g){var A=this.id,q=this.namespace;return arguments.length<2?this.node()[q][A].tween.get(h):Se(this,g==null?function(L){L[q][A].tween.remove(h)}:function(L){L[q][A].tween.set(h,g)})};function X3(h,g,A,q){var L=h.id,C=h.namespace;return Se(h,typeof A=="function"?function(I,F,U){I[C][L].tween.set(g,q(A.call(I,I.__data__,F,U)))}:(A=q(A),function(I){I[C][L].tween.set(g,A)}))}ua.attr=function(h,g){if(arguments.length<2){for(g in h)this.attr(g,h[g]);return this}var A=h=="transform"?j8:Bs,q=e.ns.qualify(h);function L(){this.removeAttribute(q)}function C(){this.removeAttributeNS(q.space,q.local)}function I(U){return U==null?L:(U+="",function(){var J=this.getAttribute(q),$;return J!==U&&($=A(J,U),function(ee){this.setAttribute(q,$(ee))})})}function F(U){return U==null?C:(U+="",function(){var J=this.getAttributeNS(q.space,q.local),$;return J!==U&&($=A(J,U),function(ee){this.setAttributeNS(q.space,q.local,$(ee))})})}return X3(this,"attr."+h,g,q.local?F:I)},ua.attrTween=function(h,g){var A=e.ns.qualify(h);function q(C,I){var F=g.call(this,C,I,this.getAttribute(A));return F&&function(U){this.setAttribute(A,F(U))}}function L(C,I){var F=g.call(this,C,I,this.getAttributeNS(A.space,A.local));return F&&function(U){this.setAttributeNS(A.space,A.local,F(U))}}return this.tween("attr."+h,A.local?L:q)},ua.style=function(h,g,A){var q=arguments.length;if(q<3){if(typeof h!="string"){q<2&&(g="");for(A in h)this.style(A,h[A],g);return this}A=""}function L(){this.style.removeProperty(h)}function C(I){return I==null?L:(I+="",function(){var F=i(this).getComputedStyle(this,null).getPropertyValue(h),U;return F!==I&&(U=Bs(F,I),function(J){this.style.setProperty(h,U(J),A)})})}return X3(this,"style."+h,g,C)},ua.styleTween=function(h,g,A){arguments.length<3&&(A="");function q(L,C){var I=g.call(this,L,C,i(this).getComputedStyle(this,null).getPropertyValue(h));return I&&function(F){this.style.setProperty(h,I(F),A)}}return this.tween("style."+h,q)},ua.text=function(h){return X3(this,"text",h,Fie)};function Fie(h){return h==null&&(h=""),function(){this.textContent=h}}ua.remove=function(){var h=this.namespace;return this.each("end.transition",function(){var g;this[h].count<2&&(g=this.parentNode)&&g.removeChild(this)})},ua.ease=function(h){var g=this.id,A=this.namespace;return arguments.length<1?this.node()[A][g].ease:(typeof h!="function"&&(h=e.ease.apply(e,arguments)),Se(this,function(q){q[A][g].ease=h}))},ua.delay=function(h){var g=this.id,A=this.namespace;return arguments.length<1?this.node()[A][g].delay:Se(this,typeof h=="function"?function(q,L,C){q[A][g].delay=+h.call(q,q.__data__,L,C)}:(h=+h,function(q){q[A][g].delay=h}))},ua.duration=function(h){var g=this.id,A=this.namespace;return arguments.length<1?this.node()[A][g].duration:Se(this,typeof h=="function"?function(q,L,C){q[A][g].duration=Math.max(1,h.call(q,q.__data__,L,C))}:(h=Math.max(1,h),function(q){q[A][g].duration=h}))},ua.each=function(h,g){var A=this.id,q=this.namespace;if(arguments.length<2){var L=Qd,C=Hs;try{Hs=A,Se(this,function(I,F,U){Qd=I[q][A],h.call(I,I.__data__,F,U)})}finally{Qd=L,Hs=C}}else Se(this,function(I){var F=I[q][A];(F.event||(F.event=e.dispatch("start","end","interrupt"))).on(h,g)});return this},ua.transition=function(){for(var h=this.id,g=++NA,A=this.namespace,q=[],L,C,I,F,U=0,J=this.length;U<J;U++){q.push(L=[]);for(var C=this[U],$=0,ee=C.length;$<ee;$++)(I=C[$])&&(F=I[A][h],ep(I,$,A,g,{time:F.time,ease:F.ease,delay:F.delay+F.duration,duration:F.duration})),L.push(I)}return Bv(q,A,g)};function J3(h){return h==null?"__transition__":"__transition_"+h+"__"}function ep(h,g,A,q,L){var C=h[A]||(h[A]={active:0,count:0}),I=C[q],F,U,J,$,ee;function re(ae){var ce=I.delay;if(U.t=ce+F,ce<=ae)return _e(ae-ce);U.c=_e}function _e(ae){var ce=C.active,ge=C[ce];ge&&(ge.timer.c=null,ge.timer.t=NaN,--C.count,delete C[ce],ge.event&&ge.event.interrupt.call(h,h.__data__,ge.index));for(var Ae in C)if(+Ae<q){var ke=C[Ae];ke.timer.c=null,ke.timer.t=NaN,--C.count,delete C[Ae]}U.c=Me,zd(function(){return U.c&&Me(ae||1)&&(U.c=null,U.t=NaN),1},0,F),C.active=q,I.event&&I.event.start.call(h,h.__data__,g),ee=[],I.tween.forEach(function(xe,Ve){(Ve=Ve.call(h,h.__data__,g))&&ee.push(Ve)}),$=I.ease,J=I.duration}function Me(ae){for(var ce=ae/J,ge=$(ce),Ae=ee.length;Ae>0;)ee[--Ae].call(h,ge);if(ce>=1)return I.event&&I.event.end.call(h,h.__data__,g),--C.count?delete C[q]:delete h[A],1}I||(F=L.time,U=zd(re,0,F),I=C[q]={tween:new b,time:F,timer:U,delay:L.delay,duration:L.duration,ease:L.ease,index:g},L=null,++C.count)}e.svg.axis=function(){var h=e.scale.linear(),g=zA,A=6,q=6,L=3,C=[10],I=null,F;function U(J){J.each(function(){var $=e.select(this),ee=this.__chart__||h,re=this.__chart__=h.copy(),_e=I==null?re.ticks?re.ticks.apply(re,C):re.domain():I,Me=F==null?re.tickFormat?re.tickFormat.apply(re,C):H:F,ae=$.selectAll(".tick").data(_e,re),ce=ae.enter().insert("g",".domain").attr("class","tick").style("opacity",ve),ge=e.transition(ae.exit()).style("opacity",ve).remove(),Ae=e.transition(ae.order()).style("opacity",1),ke=Math.max(A,0)+L,xe,Ve=Vd(re),nr=$.selectAll(".domain").data([0]),fr=(nr.enter().append("path").attr("class","domain"),e.transition(nr));ce.append("line"),ce.append("text");var or=ce.select("line"),dr=Ae.select("line"),pr=ae.select("text").text(Me),Er=ce.select("text"),mr=Ae.select("text"),kr=g==="top"||g==="left"?-1:1,rt,Jt,yt,tr;if(g==="bottom"||g==="top"?(xe=zie,rt="x",yt="y",Jt="x2",tr="y2",pr.attr("dy",kr<0?"0em":".71em").style("text-anchor","middle"),fr.attr("d","M"+Ve[0]+","+kr*q+"V0H"+Ve[1]+"V"+kr*q)):(xe=Iie,rt="y",yt="x",Jt="y2",tr="x2",pr.attr("dy",".32em").style("text-anchor",kr<0?"end":"start"),fr.attr("d","M"+kr*q+","+Ve[0]+"H0V"+Ve[1]+"H"+kr*q)),or.attr(tr,kr*A),Er.attr(yt,kr*ke),dr.attr(Jt,0).attr(tr,kr*A),mr.attr(rt,0).attr(yt,kr*ke),re.rangeBand){var Dr=re,Rr=Dr.rangeBand()/2;ee=re=function(tt){return Dr(tt)+Rr}}else ee.rangeBand?ee=re:ge.call(xe,re,ee);ce.call(xe,ee,re),Ae.call(xe,re,re)})}return U.scale=function(J){return arguments.length?(h=J,U):h},U.orient=function(J){return arguments.length?(g=J in Nie?J+"":zA,U):g},U.ticks=function(){return arguments.length?(C=t(arguments),U):C},U.tickValues=function(J){return arguments.length?(I=J,U):I},U.tickFormat=function(J){return arguments.length?(F=J,U):F},U.tickSize=function(J){var $=arguments.length;return $?(A=+J,q=+arguments[$-1],U):A},U.innerTickSize=function(J){return arguments.length?(A=+J,U):A},U.outerTickSize=function(J){return arguments.length?(q=+J,U):q},U.tickPadding=function(J){return arguments.length?(L=+J,U):L},U.tickSubdivide=function(){return arguments.length&&U},U};var zA="bottom",Nie={top:1,right:1,bottom:1,left:1};function zie(h,g,A){h.attr("transform",function(q){var L=g(q);return"translate("+(isFinite(L)?L:A(q))+",0)"})}function Iie(h,g,A){h.attr("transform",function(q){var L=g(q);return"translate(0,"+(isFinite(L)?L:A(q))+")"})}e.svg.brush=function(){var h=le($,"brushstart","brush","brushend"),g=null,A=null,q=[0,0],L=[0,0],C,I,F=!0,U=!0,J=$3[0];function $(ae){ae.each(function(){var ce=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",Me).on("touchstart.brush",Me),ge=ce.selectAll(".background").data([0]);ge.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),ce.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var Ae=ce.selectAll(".resize").data(J,H);Ae.exit().remove(),Ae.enter().append("g").attr("class",function(nr){return"resize "+nr}).style("cursor",function(nr){return Oie[nr]}).append("rect").attr("x",function(nr){return/[ew]$/.test(nr)?-3:null}).attr("y",function(nr){return/^[ns]/.test(nr)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),Ae.style("display",$.empty()?"none":null);var ke=e.transition(ce),xe=e.transition(ge),Ve;g&&(Ve=Vd(g),xe.attr("x",Ve[0]).attr("width",Ve[1]-Ve[0]),re(ke)),A&&(Ve=Vd(A),xe.attr("y",Ve[0]).attr("height",Ve[1]-Ve[0]),_e(ke)),ee(ke)})}$.event=function(ae){ae.each(function(){var ce=h.of(this,arguments),ge={x:q,y:L,i:C,j:I},Ae=this.__chart__||ge;this.__chart__=ge,Hs?e.select(this).transition().each("start.brush",function(){C=Ae.i,I=Ae.j,q=Ae.x,L=Ae.y,ce({type:"brushstart"})}).tween("brush:brush",function(){var ke=Gd(q,ge.x),xe=Gd(L,ge.y);return C=I=null,function(Ve){q=ge.x=ke(Ve),L=ge.y=xe(Ve),ce({type:"brush",mode:"resize"})}}).each("end.brush",function(){C=ge.i,I=ge.j,ce({type:"brush",mode:"resize"}),ce({type:"brushend"})}):(ce({type:"brushstart"}),ce({type:"brush",mode:"resize"}),ce({type:"brushend"}))})};function ee(ae){ae.selectAll(".resize").attr("transform",function(ce){return"translate("+q[+/e$/.test(ce)]+","+L[+/^s/.test(ce)]+")"})}function re(ae){ae.select(".extent").attr("x",q[0]),ae.selectAll(".extent,.n>rect,.s>rect").attr("width",q[1]-q[0])}function _e(ae){ae.select(".extent").attr("y",L[0]),ae.selectAll(".extent,.e>rect,.w>rect").attr("height",L[1]-L[0])}function Me(){var ae=this,ce=e.select(e.event.target),ge=h.of(ae,arguments),Ae=e.select(ae),ke=ce.datum(),xe=!/^(n|s)$/.test(ke)&&g,Ve=!/^(e|w)$/.test(ke)&&A,nr=ce.classed("extent"),fr=cr(ae),or,dr=e.mouse(ae),pr,Er=e.select(i(ae)).on("keydown.brush",rt).on("keyup.brush",Jt);if(e.event.changedTouches?Er.on("touchmove.brush",yt).on("touchend.brush",Dr):Er.on("mousemove.brush",yt).on("mouseup.brush",Dr),Ae.interrupt().selectAll("*").interrupt(),nr)dr[0]=q[0]-dr[0],dr[1]=L[0]-dr[1];else if(ke){var mr=+/w$/.test(ke),kr=+/^n/.test(ke);pr=[q[1-mr]-dr[0],L[1-kr]-dr[1]],dr[0]=q[mr],dr[1]=L[kr]}else e.event.altKey&&(or=dr.slice());Ae.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",ce.style("cursor")),ge({type:"brushstart"}),yt();function rt(){e.event.keyCode==32&&(nr||(or=null,dr[0]-=q[1],dr[1]-=L[1],nr=2),te())}function Jt(){e.event.keyCode==32&&nr==2&&(dr[0]+=q[1],dr[1]+=L[1],nr=0,te())}function yt(){var Rr=e.mouse(ae),tt=!1;pr&&(Rr[0]+=pr[0],Rr[1]+=pr[1]),nr||(e.event.altKey?(or||(or=[(q[0]+q[1])/2,(L[0]+L[1])/2]),dr[0]=q[+(Rr[0]<or[0])],dr[1]=L[+(Rr[1]<or[1])]):or=null),xe&&tr(Rr,g,0)&&(re(Ae),tt=!0),Ve&&tr(Rr,A,1)&&(_e(Ae),tt=!0),tt&&(ee(Ae),ge({type:"brush",mode:nr?"move":"resize"}))}function tr(Rr,tt,Bt){var fa=Vd(tt),Oa=fa[0],an=fa[1],yn=dr[Bt],nn=Bt?L:q,Mn=nn[1]-nn[0],Za,kn;if(nr&&(Oa-=yn,an-=Mn+yn),Za=(Bt?U:F)?Math.max(Oa,Math.min(an,Rr[Bt])):Rr[Bt],nr?kn=(Za+=yn)+Mn:(or&&(yn=Math.max(Oa,Math.min(an,2*or[Bt]-Za))),yn<Za?(kn=Za,Za=yn):kn=yn),nn[0]!=Za||nn[1]!=kn)return Bt?I=null:C=null,nn[0]=Za,nn[1]=kn,!0}function Dr(){yt(),Ae.style("pointer-events","all").selectAll(".resize").style("display",$.empty()?"none":null),e.select("body").style("cursor",null),Er.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),fr(),ge({type:"brushend"})}}return $.x=function(ae){return arguments.length?(g=ae,J=$3[!g<<1|!A],$):g},$.y=function(ae){return arguments.length?(A=ae,J=$3[!g<<1|!A],$):A},$.clamp=function(ae){return arguments.length?(g&&A?(F=!!ae[0],U=!!ae[1]):g?F=!!ae:A&&(U=!!ae),$):g&&A?[F,U]:g?F:A?U:null},$.extent=function(ae){var ce,ge,Ae,ke,xe;return arguments.length?(g&&(ce=ae[0],ge=ae[1],A&&(ce=ce[0],ge=ge[0]),C=[ce,ge],g.invert&&(ce=g(ce),ge=g(ge)),ge<ce&&(xe=ce,ce=ge,ge=xe),(ce!=q[0]||ge!=q[1])&&(q=[ce,ge])),A&&(Ae=ae[0],ke=ae[1],g&&(Ae=Ae[1],ke=ke[1]),I=[Ae,ke],A.invert&&(Ae=A(Ae),ke=A(ke)),ke<Ae&&(xe=Ae,Ae=ke,ke=xe),(Ae!=L[0]||ke!=L[1])&&(L=[Ae,ke])),$):(g&&(C?(ce=C[0],ge=C[1]):(ce=q[0],ge=q[1],g.invert&&(ce=g.invert(ce),ge=g.invert(ge)),ge<ce&&(xe=ce,ce=ge,ge=xe))),A&&(I?(Ae=I[0],ke=I[1]):(Ae=L[0],ke=L[1],A.invert&&(Ae=A.invert(Ae),ke=A.invert(ke)),ke<Ae&&(xe=Ae,Ae=ke,ke=xe))),g&&A?[[ce,Ae],[ge,ke]]:g?[ce,ge]:A&&[Ae,ke])},$.clear=function(){return $.empty()||(q=[0,0],L=[0,0],C=I=null),$},$.empty=function(){return!!g&&q[0]==q[1]||!!A&&L[0]==L[1]},e.rebind($,h,"on")};var Oie={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},$3=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]];e.text=Vi(function(h){return h.responseText}),e.json=function(h,g){return Is(h,"application/json",Bie,g)};function Bie(h){return JSON.parse(h.responseText)}e.html=function(h,g){return Is(h,"text/html",Hie,g)};function Hie(h){var g=a.createRange();return g.selectNode(a.body),g.createContextualFragment(h.responseText)}e.xml=Vi(function(h){return h.responseXML}),typeof np=="object"&&np.exports?np.exports=e:this.d3=e}).apply(self)});var K3=N((ip,YA)=>{(function(e,r){typeof ip=="object"&&typeof YA!="undefined"?r(ip):(e=e||self,r(e.d3=e.d3||{}))})(ip,function(e){"use strict";var r=new Date,t=new Date;function a(se,Te,Se,ir){function Qe(Le){return se(Le=arguments.length===0?new Date:new Date(+Le)),Le}return Qe.floor=function(Le){return se(Le=new Date(+Le)),Le},Qe.ceil=function(Le){return se(Le=new Date(Le-1)),Te(Le,1),se(Le),Le},Qe.round=function(Le){var Ce=Qe(Le),Ge=Qe.ceil(Le);return Le-Ce<Ge-Le?Ce:Ge},Qe.offset=function(Le,Ce){return Te(Le=new Date(+Le),Ce==null?1:Math.floor(Ce)),Le},Qe.range=function(Le,Ce,Ge){var Ze=[],Ye;if(Le=Qe.ceil(Le),Ge=Ge==null?1:Math.floor(Ge),!(Le<Ce)||!(Ge>0))return Ze;do Ze.push(Ye=new Date(+Le)),Te(Le,Ge),se(Le);while(Ye<Le&&Le<Ce);return Ze},Qe.filter=function(Le){return a(function(Ce){if(Ce>=Ce)for(;se(Ce),!Le(Ce);)Ce.setTime(Ce-1)},function(Ce,Ge){if(Ce>=Ce)if(Ge<0)for(;++Ge<=0;)for(;Te(Ce,-1),!Le(Ce););else for(;--Ge>=0;)for(;Te(Ce,1),!Le(Ce););})},Se&&(Qe.count=function(Le,Ce){return r.setTime(+Le),t.setTime(+Ce),se(r),se(t),Math.floor(Se(r,t))},Qe.every=function(Le){return Le=Math.floor(Le),!isFinite(Le)||!(Le>0)?null:Le>1?Qe.filter(ir?function(Ce){return ir(Ce)%Le===0}:function(Ce){return Qe.count(0,Ce)%Le===0}):Qe}),Qe}var n=a(function(){},function(se,Te){se.setTime(+se+Te)},function(se,Te){return Te-se});n.every=function(se){return se=Math.floor(se),!isFinite(se)||!(se>0)?null:se>1?a(function(Te){Te.setTime(Math.floor(Te/se)*se)},function(Te,Se){Te.setTime(+Te+Se*se)},function(Te,Se){return(Se-Te)/se}):n};var i=n.range,o=1e3,l=6e4,s=36e5,u=864e5,f=6048e5,c=a(function(se){se.setTime(se-se.getMilliseconds())},function(se,Te){se.setTime(+se+Te*o)},function(se,Te){return(Te-se)/o},function(se){return se.getUTCSeconds()}),v=c.range,d=a(function(se){se.setTime(se-se.getMilliseconds()-se.getSeconds()*o)},function(se,Te){se.setTime(+se+Te*l)},function(se,Te){return(Te-se)/l},function(se){return se.getMinutes()}),p=d.range,m=a(function(se){se.setTime(se-se.getMilliseconds()-se.getSeconds()*o-se.getMinutes()*l)},function(se,Te){se.setTime(+se+Te*s)},function(se,Te){return(Te-se)/s},function(se){return se.getHours()}),y=m.range,x=a(function(se){se.setHours(0,0,0,0)},function(se,Te){se.setDate(se.getDate()+Te)},function(se,Te){return(Te-se-(Te.getTimezoneOffset()-se.getTimezoneOffset())*l)/u},function(se){return se.getDate()-1}),_=x.range;function w(se){return a(function(Te){Te.setDate(Te.getDate()-(Te.getDay()+7-se)%7),Te.setHours(0,0,0,0)},function(Te,Se){Te.setDate(Te.getDate()+Se*7)},function(Te,Se){return(Se-Te-(Se.getTimezoneOffset()-Te.getTimezoneOffset())*l)/f})}var b=w(0),T=w(1),k=w(2),M=w(3),S=w(4),E=w(5),P=w(6),R=b.range,D=T.range,z=k.range,O=M.range,H=S.range,Y=E.range,G=P.range,B=a(function(se){se.setDate(1),se.setHours(0,0,0,0)},function(se,Te){se.setMonth(se.getMonth()+Te)},function(se,Te){return Te.getMonth()-se.getMonth()+(Te.getFullYear()-se.getFullYear())*12},function(se){return se.getMonth()}),V=B.range,X=a(function(se){se.setMonth(0,1),se.setHours(0,0,0,0)},function(se,Te){se.setFullYear(se.getFullYear()+Te)},function(se,Te){return Te.getFullYear()-se.getFullYear()},function(se){return se.getFullYear()});X.every=function(se){return!isFinite(se=Math.floor(se))||!(se>0)?null:a(function(Te){Te.setFullYear(Math.floor(Te.getFullYear()/se)*se),Te.setMonth(0,1),Te.setHours(0,0,0,0)},function(Te,Se){Te.setFullYear(Te.getFullYear()+Se*se)})};var Z=X.range,te=a(function(se){se.setUTCSeconds(0,0)},function(se,Te){se.setTime(+se+Te*l)},function(se,Te){return(Te-se)/l},function(se){return se.getUTCMinutes()}),fe=te.range,le=a(function(se){se.setUTCMinutes(0,0,0)},function(se,Te){se.setTime(+se+Te*s)},function(se,Te){return(Te-se)/s},function(se){return se.getUTCHours()}),ie=le.range,K=a(function(se){se.setUTCHours(0,0,0,0)},function(se,Te){se.setUTCDate(se.getUTCDate()+Te)},function(se,Te){return(Te-se)/u},function(se){return se.getUTCDate()-1}),he=K.range;function oe(se){return a(function(Te){Te.setUTCDate(Te.getUTCDate()-(Te.getUTCDay()+7-se)%7),Te.setUTCHours(0,0,0,0)},function(Te,Se){Te.setUTCDate(Te.getUTCDate()+Se*7)},function(Te,Se){return(Se-Te)/f})}var ye=oe(0),ue=oe(1),de=oe(2),W=oe(3),Q=oe(4),j=oe(5),pe=oe(6),me=ye.range,we=ue.range,Ne=de.range,Fe=W.range,Re=Q.range,Ie=j.range,Be=pe.range,ze=a(function(se){se.setUTCDate(1),se.setUTCHours(0,0,0,0)},function(se,Te){se.setUTCMonth(se.getUTCMonth()+Te)},function(se,Te){return Te.getUTCMonth()-se.getUTCMonth()+(Te.getUTCFullYear()-se.getUTCFullYear())*12},function(se){return se.getUTCMonth()}),Pe=ze.range,Xe=a(function(se){se.setUTCMonth(0,1),se.setUTCHours(0,0,0,0)},function(se,Te){se.setUTCFullYear(se.getUTCFullYear()+Te)},function(se,Te){return Te.getUTCFullYear()-se.getUTCFullYear()},function(se){return se.getUTCFullYear()});Xe.every=function(se){return!isFinite(se=Math.floor(se))||!(se>0)?null:a(function(Te){Te.setUTCFullYear(Math.floor(Te.getUTCFullYear()/se)*se),Te.setUTCMonth(0,1),Te.setUTCHours(0,0,0,0)},function(Te,Se){Te.setUTCFullYear(Te.getUTCFullYear()+Se*se)})};var Ue=Xe.range;e.timeDay=x,e.timeDays=_,e.timeFriday=E,e.timeFridays=Y,e.timeHour=m,e.timeHours=y,e.timeInterval=a,e.timeMillisecond=n,e.timeMilliseconds=i,e.timeMinute=d,e.timeMinutes=p,e.timeMonday=T,e.timeMondays=D,e.timeMonth=B,e.timeMonths=V,e.timeSaturday=P,e.timeSaturdays=G,e.timeSecond=c,e.timeSeconds=v,e.timeSunday=b,e.timeSundays=R,e.timeThursday=S,e.timeThursdays=H,e.timeTuesday=k,e.timeTuesdays=z,e.timeWednesday=M,e.timeWednesdays=O,e.timeWeek=b,e.timeWeeks=R,e.timeYear=X,e.timeYears=Z,e.utcDay=K,e.utcDays=he,e.utcFriday=j,e.utcFridays=Ie,e.utcHour=le,e.utcHours=ie,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=te,e.utcMinutes=fe,e.utcMonday=ue,e.utcMondays=we,e.utcMonth=ze,e.utcMonths=Pe,e.utcSaturday=pe,e.utcSaturdays=Be,e.utcSecond=c,e.utcSeconds=v,e.utcSunday=ye,e.utcSundays=me,e.utcThursday=Q,e.utcThursdays=Re,e.utcTuesday=de,e.utcTuesdays=Ne,e.utcWednesday=W,e.utcWednesdays=Fe,e.utcWeek=ye,e.utcWeeks=me,e.utcYear=Xe,e.utcYears=Ue,Object.defineProperty(e,"__esModule",{value:!0})})});var xf=N((op,VA)=>{(function(e,r){typeof op=="object"&&typeof VA!="undefined"?r(op,K3()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(op,function(e,r){"use strict";function t(ne){if(0<=ne.y&&ne.y<100){var ve=new Date(-1,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L);return ve.setFullYear(ne.y),ve}return new Date(ne.y,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L)}function a(ne){if(0<=ne.y&&ne.y<100){var ve=new Date(Date.UTC(-1,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L));return ve.setUTCFullYear(ne.y),ve}return new Date(Date.UTC(ne.y,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L))}function n(ne,ve,De){return{y:ne,m:ve,d:De,H:0,M:0,S:0,L:0}}function i(ne){var ve=ne.dateTime,De=ne.date,qe=ne.time,ar=ne.periods,hr=ne.days,ur=ne.shortDays,Ar=ne.months,Wr=ne.shortMonths,Vr=v(ar),zr=d(ar),Et=v(hr),Dt=d(hr),ma=v(ur),St=d(ur),ja=v(Ar),ga=d(Ar),jt=v(Wr),Na=d(Wr),br={a:Ko,A:Qo,b:vt,B:An,c:null,d:B,e:B,f:fe,H:V,I:X,j:Z,L:te,m:le,M:ie,p:Rt,q:zs,Q:Ce,s:Ge,S:K,u:he,U:oe,V:ye,w:ue,W:de,x:null,X:null,y:W,Y:Q,Z:j,"%":Le},pt={a:pn,A:Gi,b:Ut,B:Yi,c:null,d:pe,e:pe,f:Re,H:me,I:we,j:Ne,L:Fe,m:Ie,M:Be,p:Pl,q:Rl,Q:Ce,s:Ge,S:ze,u:Pe,U:Xe,V:Ue,w:se,W:Te,x:null,X:null,y:Se,Y:ir,Z:Qe,"%":Le},Nr={a:ba,A:Zt,b:tn,B:Tn,c:Xt,d:S,e:S,f:O,H:P,I:P,j:E,L:z,m:M,M:R,p:ct,q:k,Q:Y,s:G,S:D,u:m,U:y,V:x,w:p,W:_,x:ft,X:xa,y:b,Y:w,Z:T,"%":H};br.x=ut(De,br),br.X=ut(qe,br),br.c=ut(ve,br),pt.x=ut(De,pt),pt.X=ut(qe,pt),pt.c=ut(ve,pt);function ut(yr,$r){return function(ht){var sr=[],za=-1,Tt=0,Ia=yr.length,Br,Vi,Is;for(ht instanceof Date||(ht=new Date(+ht));++za<Ia;)yr.charCodeAt(za)===37&&(sr.push(yr.slice(Tt,za)),(Vi=o[Br=yr.charAt(++za)])!=null?Br=yr.charAt(++za):Vi=Br==="e"?" ":"0",(Is=$r[Br])&&(Br=Is(ht,Vi)),sr.push(Br),Tt=za+1);return sr.push(yr.slice(Tt,za)),sr.join("")}}function Pt(yr,$r){return function(ht){var sr=n(1900,void 0,1),za=Qr(sr,yr,ht+="",0),Tt,Ia;if(za!=ht.length)return null;if("Q"in sr)return new Date(sr.Q);if("s"in sr)return new Date(sr.s*1e3+("L"in sr?sr.L:0));if($r&&!("Z"in sr)&&(sr.Z=0),"p"in sr&&(sr.H=sr.H%12+sr.p*12),sr.m===void 0&&(sr.m="q"in sr?sr.q:0),"V"in sr){if(sr.V<1||sr.V>53)return null;"w"in sr||(sr.w=1),"Z"in sr?(Tt=a(n(sr.y,0,1)),Ia=Tt.getUTCDay(),Tt=Ia>4||Ia===0?r.utcMonday.ceil(Tt):r.utcMonday(Tt),Tt=r.utcDay.offset(Tt,(sr.V-1)*7),sr.y=Tt.getUTCFullYear(),sr.m=Tt.getUTCMonth(),sr.d=Tt.getUTCDate()+(sr.w+6)%7):(Tt=t(n(sr.y,0,1)),Ia=Tt.getDay(),Tt=Ia>4||Ia===0?r.timeMonday.ceil(Tt):r.timeMonday(Tt),Tt=r.timeDay.offset(Tt,(sr.V-1)*7),sr.y=Tt.getFullYear(),sr.m=Tt.getMonth(),sr.d=Tt.getDate()+(sr.w+6)%7)}else("W"in sr||"U"in sr)&&("w"in sr||(sr.w="u"in sr?sr.u%7:"W"in sr?1:0),Ia="Z"in sr?a(n(sr.y,0,1)).getUTCDay():t(n(sr.y,0,1)).getDay(),sr.m=0,sr.d="W"in sr?(sr.w+6)%7+sr.W*7-(Ia+5)%7:sr.w+sr.U*7-(Ia+6)%7);return"Z"in sr?(sr.H+=sr.Z/100|0,sr.M+=sr.Z%100,a(sr)):t(sr)}}function Qr(yr,$r,ht,sr){for(var za=0,Tt=$r.length,Ia=ht.length,Br,Vi;za<Tt;){if(sr>=Ia)return-1;if(Br=$r.charCodeAt(za++),Br===37){if(Br=$r.charAt(za++),Vi=Nr[Br in o?$r.charAt(za++):Br],!Vi||(sr=Vi(yr,ht,sr))<0)return-1}else if(Br!=ht.charCodeAt(sr++))return-1}return sr}function ct(yr,$r,ht){var sr=Vr.exec($r.slice(ht));return sr?(yr.p=zr[sr[0].toLowerCase()],ht+sr[0].length):-1}function ba(yr,$r,ht){var sr=ma.exec($r.slice(ht));return sr?(yr.w=St[sr[0].toLowerCase()],ht+sr[0].length):-1}function Zt(yr,$r,ht){var sr=Et.exec($r.slice(ht));return sr?(yr.w=Dt[sr[0].toLowerCase()],ht+sr[0].length):-1}function tn(yr,$r,ht){var sr=jt.exec($r.slice(ht));return sr?(yr.m=Na[sr[0].toLowerCase()],ht+sr[0].length):-1}function Tn(yr,$r,ht){var sr=ja.exec($r.slice(ht));return sr?(yr.m=ga[sr[0].toLowerCase()],ht+sr[0].length):-1}function Xt(yr,$r,ht){return Qr(yr,ve,$r,ht)}function ft(yr,$r,ht){return Qr(yr,De,$r,ht)}function xa(yr,$r,ht){return Qr(yr,qe,$r,ht)}function Ko(yr){return ur[yr.getDay()]}function Qo(yr){return hr[yr.getDay()]}function vt(yr){return Wr[yr.getMonth()]}function An(yr){return Ar[yr.getMonth()]}function Rt(yr){return ar[+(yr.getHours()>=12)]}function zs(yr){return 1+~~(yr.getMonth()/3)}function pn(yr){return ur[yr.getUTCDay()]}function Gi(yr){return hr[yr.getUTCDay()]}function Ut(yr){return Wr[yr.getUTCMonth()]}function Yi(yr){return Ar[yr.getUTCMonth()]}function Pl(yr){return ar[+(yr.getUTCHours()>=12)]}function Rl(yr){return 1+~~(yr.getUTCMonth()/3)}return{format:function(yr){var $r=ut(yr+="",br);return $r.toString=function(){return yr},$r},parse:function(yr){var $r=Pt(yr+="",!1);return $r.toString=function(){return yr},$r},utcFormat:function(yr){var $r=ut(yr+="",pt);return $r.toString=function(){return yr},$r},utcParse:function(yr){var $r=Pt(yr+="",!0);return $r.toString=function(){return yr},$r}}}var o={"-":"",_:" ",0:"0"},l=/^\s*\d+/,s=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(ne,ve,De){var qe=ne<0?"-":"",ar=(qe?-ne:ne)+"",hr=ar.length;return qe+(hr<De?new Array(De-hr+1).join(ve)+ar:ar)}function c(ne){return ne.replace(u,"\\$&")}function v(ne){return new RegExp("^(?:"+ne.map(c).join("|")+")","i")}function d(ne){for(var ve={},De=-1,qe=ne.length;++De<qe;)ve[ne[De].toLowerCase()]=De;return ve}function p(ne,ve,De){var qe=l.exec(ve.slice(De,De+1));return qe?(ne.w=+qe[0],De+qe[0].length):-1}function m(ne,ve,De){var qe=l.exec(ve.slice(De,De+1));return qe?(ne.u=+qe[0],De+qe[0].length):-1}function y(ne,ve,De){var qe=l.exec(ve.slice(De,De+2));return qe?(ne.U=+qe[0],De+qe[0].length):-1}function x(ne,ve,De){var qe=l.exec(ve.slice(De,De+2));return qe?(ne.V=+qe[0],De+qe[0].length):-1}function _(ne,ve,De){var qe=l.exec(ve.slice(De,De+2));return qe?(ne.W=+qe[0],De+qe[0].length):-1}function w(ne,ve,De){var qe=l.exec(ve.slice(De,De+4));return qe?(ne.y=+qe[0],De+qe[0].length):-1}function b(ne,ve,De){var qe=l.exec(ve.slice(De,De+2));return qe?(ne.y=+qe[0]+(+qe[0]>68?1900:2e3),De+qe[0].length):-1}function T(ne,ve,De){var qe=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(ve.slice(De,De+6));return qe?(ne.Z=qe[1]?0:-(qe[2]+(qe[3]||"00")),De+qe[0].length):-1}function k(ne,ve,De){var qe=l.exec(ve.slice(De,De+1));return qe?(ne.q=qe[0]*3-3,De+qe[0].length):-1}function M(ne,ve,De){var qe=l.exec(ve.slice(De,De+2));return qe?(ne.m=qe[0]-1,De+qe[0].length):-1}function S(ne,ve,De){var qe=l.exec(ve.slice(De,De+2));return qe?(ne.d=+qe[0],De+qe[0].length):-1}function E(ne,ve,De){var qe=l.exec(ve.slice(De,De+3));return qe?(ne.m=0,ne.d=+qe[0],De+qe[0].length):-1}function P(ne,ve,De){var qe=l.exec(ve.slice(De,De+2));return qe?(ne.H=+qe[0],De+qe[0].length):-1}function R(ne,ve,De){var qe=l.exec(ve.slice(De,De+2));return qe?(ne.M=+qe[0],De+qe[0].length):-1}function D(ne,ve,De){var qe=l.exec(ve.slice(De,De+2));return qe?(ne.S=+qe[0],De+qe[0].length):-1}function z(ne,ve,De){var qe=l.exec(ve.slice(De,De+3));return qe?(ne.L=+qe[0],De+qe[0].length):-1}function O(ne,ve,De){var qe=l.exec(ve.slice(De,De+6));return qe?(ne.L=Math.floor(qe[0]/1e3),De+qe[0].length):-1}function H(ne,ve,De){var qe=s.exec(ve.slice(De,De+1));return qe?De+qe[0].length:-1}function Y(ne,ve,De){var qe=l.exec(ve.slice(De));return qe?(ne.Q=+qe[0],De+qe[0].length):-1}function G(ne,ve,De){var qe=l.exec(ve.slice(De));return qe?(ne.s=+qe[0],De+qe[0].length):-1}function B(ne,ve){return f(ne.getDate(),ve,2)}function V(ne,ve){return f(ne.getHours(),ve,2)}function X(ne,ve){return f(ne.getHours()%12||12,ve,2)}function Z(ne,ve){return f(1+r.timeDay.count(r.timeYear(ne),ne),ve,3)}function te(ne,ve){return f(ne.getMilliseconds(),ve,3)}function fe(ne,ve){return te(ne,ve)+"000"}function le(ne,ve){return f(ne.getMonth()+1,ve,2)}function ie(ne,ve){return f(ne.getMinutes(),ve,2)}function K(ne,ve){return f(ne.getSeconds(),ve,2)}function he(ne){var ve=ne.getDay();return ve===0?7:ve}function oe(ne,ve){return f(r.timeSunday.count(r.timeYear(ne)-1,ne),ve,2)}function ye(ne,ve){var De=ne.getDay();return ne=De>=4||De===0?r.timeThursday(ne):r.timeThursday.ceil(ne),f(r.timeThursday.count(r.timeYear(ne),ne)+(r.timeYear(ne).getDay()===4),ve,2)}function ue(ne){return ne.getDay()}function de(ne,ve){return f(r.timeMonday.count(r.timeYear(ne)-1,ne),ve,2)}function W(ne,ve){return f(ne.getFullYear()%100,ve,2)}function Q(ne,ve){return f(ne.getFullYear()%1e4,ve,4)}function j(ne){var ve=ne.getTimezoneOffset();return(ve>0?"-":(ve*=-1,"+"))+f(ve/60|0,"0",2)+f(ve%60,"0",2)}function pe(ne,ve){return f(ne.getUTCDate(),ve,2)}function me(ne,ve){return f(ne.getUTCHours(),ve,2)}function we(ne,ve){return f(ne.getUTCHours()%12||12,ve,2)}function Ne(ne,ve){return f(1+r.utcDay.count(r.utcYear(ne),ne),ve,3)}function Fe(ne,ve){return f(ne.getUTCMilliseconds(),ve,3)}function Re(ne,ve){return Fe(ne,ve)+"000"}function Ie(ne,ve){return f(ne.getUTCMonth()+1,ve,2)}function Be(ne,ve){return f(ne.getUTCMinutes(),ve,2)}function ze(ne,ve){return f(ne.getUTCSeconds(),ve,2)}function Pe(ne){var ve=ne.getUTCDay();return ve===0?7:ve}function Xe(ne,ve){return f(r.utcSunday.count(r.utcYear(ne)-1,ne),ve,2)}function Ue(ne,ve){var De=ne.getUTCDay();return ne=De>=4||De===0?r.utcThursday(ne):r.utcThursday.ceil(ne),f(r.utcThursday.count(r.utcYear(ne),ne)+(r.utcYear(ne).getUTCDay()===4),ve,2)}function se(ne){return ne.getUTCDay()}function Te(ne,ve){return f(r.utcMonday.count(r.utcYear(ne)-1,ne),ve,2)}function Se(ne,ve){return f(ne.getUTCFullYear()%100,ve,2)}function ir(ne,ve){return f(ne.getUTCFullYear()%1e4,ve,4)}function Qe(){return"+0000"}function Le(){return"%"}function Ce(ne){return+ne}function Ge(ne){return Math.floor(+ne/1e3)}var Ze;Ye({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Ye(ne){return Ze=i(ne),e.timeFormat=Ze.format,e.timeParse=Ze.parse,e.utcFormat=Ze.utcFormat,e.utcParse=Ze.utcParse,Ze}var He="%Y-%m-%dT%H:%M:%S.%LZ";function $e(ne){return ne.toISOString()}var cr=Date.prototype.toISOString?$e:e.utcFormat(He);function lr(ne){var ve=new Date(ne);return isNaN(ve)?null:ve}var Oe=+new Date("2000-01-01T00:00:00.000Z")?lr:e.utcParse(He);e.isoFormat=cr,e.isoParse=Oe,e.timeFormatDefaultLocale=Ye,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var Q3=N((lp,WA)=>{(function(e,r){typeof lp=="object"&&typeof WA!="undefined"?r(lp):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(lp,function(e){"use strict";function r(M){return Math.abs(M=Math.round(M))>=1e21?M.toLocaleString("en").replace(/,/g,""):M.toString(10)}function t(M,S){if((E=(M=S?M.toExponential(S-1):M.toExponential()).indexOf("e"))<0)return null;var E,P=M.slice(0,E);return[P.length>1?P[0]+P.slice(2):P,+M.slice(E+1)]}function a(M){return M=t(Math.abs(M)),M?M[1]:NaN}function n(M,S){return function(E,P){for(var R=E.length,D=[],z=0,O=M[0],H=0;R>0&&O>0&&(H+O+1>P&&(O=Math.max(1,P-H)),D.push(E.substring(R-=O,R+O)),!((H+=O+1)>P));)O=M[z=(z+1)%M.length];return D.reverse().join(S)}}function i(M){return function(S){return S.replace(/[0-9]/g,function(E){return M[+E]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function l(M){if(!(S=o.exec(M)))throw new Error("invalid format: "+M);var S;return new s({fill:S[1],align:S[2],sign:S[3],symbol:S[4],zero:S[5],width:S[6],comma:S[7],precision:S[8]&&S[8].slice(1),trim:S[9],type:S[10]})}l.prototype=s.prototype;function s(M){this.fill=M.fill===void 0?" ":M.fill+"",this.align=M.align===void 0?">":M.align+"",this.sign=M.sign===void 0?"-":M.sign+"",this.symbol=M.symbol===void 0?"":M.symbol+"",this.zero=!!M.zero,this.width=M.width===void 0?void 0:+M.width,this.comma=!!M.comma,this.precision=M.precision===void 0?void 0:+M.precision,this.trim=!!M.trim,this.type=M.type===void 0?"":M.type+""}s.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function u(M){e:for(var S=M.length,E=1,P=-1,R;E<S;++E)switch(M[E]){case".":P=R=E;break;case"0":P===0&&(P=E),R=E;break;default:if(!+M[E])break e;P>0&&(P=0);break}return P>0?M.slice(0,P)+M.slice(R+1):M}var f;function c(M,S){var E=t(M,S);if(!E)return M+"";var P=E[0],R=E[1],D=R-(f=Math.max(-8,Math.min(8,Math.floor(R/3)))*3)+1,z=P.length;return D===z?P:D>z?P+new Array(D-z+1).join("0"):D>0?P.slice(0,D)+"."+P.slice(D):"0."+new Array(1-D).join("0")+t(M,Math.max(0,S+D-1))[0]}function v(M,S){var E=t(M,S);if(!E)return M+"";var P=E[0],R=E[1];return R<0?"0."+new Array(-R).join("0")+P:P.length>R+1?P.slice(0,R+1)+"."+P.slice(R+1):P+new Array(R-P.length+2).join("0")}var d={"%":function(M,S){return(M*100).toFixed(S)},b:function(M){return Math.round(M).toString(2)},c:function(M){return M+""},d:r,e:function(M,S){return M.toExponential(S)},f:function(M,S){return M.toFixed(S)},g:function(M,S){return M.toPrecision(S)},o:function(M){return Math.round(M).toString(8)},p:function(M,S){return v(M*100,S)},r:v,s:c,X:function(M){return Math.round(M).toString(16).toUpperCase()},x:function(M){return Math.round(M).toString(16)}};function p(M){return M}var m=Array.prototype.map,y=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function x(M){var S=M.grouping===void 0||M.thousands===void 0?p:n(m.call(M.grouping,Number),M.thousands+""),E=M.currency===void 0?"":M.currency[0]+"",P=M.currency===void 0?"":M.currency[1]+"",R=M.decimal===void 0?".":M.decimal+"",D=M.numerals===void 0?p:i(m.call(M.numerals,String)),z=M.percent===void 0?"%":M.percent+"",O=M.minus===void 0?"-":M.minus+"",H=M.nan===void 0?"NaN":M.nan+"";function Y(B){B=l(B);var V=B.fill,X=B.align,Z=B.sign,te=B.symbol,fe=B.zero,le=B.width,ie=B.comma,K=B.precision,he=B.trim,oe=B.type;oe==="n"?(ie=!0,oe="g"):d[oe]||(K===void 0&&(K=12),he=!0,oe="g"),(fe||V==="0"&&X==="=")&&(fe=!0,V="0",X="=");var ye=te==="$"?E:te==="#"&&/[boxX]/.test(oe)?"0"+oe.toLowerCase():"",ue=te==="$"?P:/[%p]/.test(oe)?z:"",de=d[oe],W=/[defgprs%]/.test(oe);K=K===void 0?6:/[gprs]/.test(oe)?Math.max(1,Math.min(21,K)):Math.max(0,Math.min(20,K));function Q(j){var pe=ye,me=ue,we,Ne,Fe;if(oe==="c")me=de(j)+me,j="";else{j=+j;var Re=j<0||1/j<0;if(j=isNaN(j)?H:de(Math.abs(j),K),he&&(j=u(j)),Re&&+j==0&&Z!=="+"&&(Re=!1),pe=(Re?Z==="("?Z:O:Z==="-"||Z==="("?"":Z)+pe,me=(oe==="s"?y[8+f/3]:"")+me+(Re&&Z==="("?")":""),W){for(we=-1,Ne=j.length;++we<Ne;)if(Fe=j.charCodeAt(we),48>Fe||Fe>57){me=(Fe===46?R+j.slice(we+1):j.slice(we))+me,j=j.slice(0,we);break}}}ie&&!fe&&(j=S(j,1/0));var Ie=pe.length+j.length+me.length,Be=Ie<le?new Array(le-Ie+1).join(V):"";switch(ie&&fe&&(j=S(Be+j,Be.length?le-me.length:1/0),Be=""),X){case"<":j=pe+j+me+Be;break;case"=":j=pe+Be+j+me;break;case"^":j=Be.slice(0,Ie=Be.length>>1)+pe+j+me+Be.slice(Ie);break;default:j=Be+pe+j+me;break}return D(j)}return Q.toString=function(){return B+""},Q}function G(B,V){var X=Y((B=l(B),B.type="f",B)),Z=Math.max(-8,Math.min(8,Math.floor(a(V)/3)))*3,te=Math.pow(10,-Z),fe=y[8+Z/3];return function(le){return X(te*le)+fe}}return{format:Y,formatPrefix:G}}var _;w({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function w(M){return _=x(M),e.format=_.format,e.formatPrefix=_.formatPrefix,_}function b(M){return Math.max(0,-a(Math.abs(M)))}function T(M,S){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(a(S)/3)))*3-a(Math.abs(M)))}function k(M,S){return M=Math.abs(M),S=Math.abs(S)-M,Math.max(0,a(S)-a(M))+1}e.FormatSpecifier=s,e.formatDefaultLocale=w,e.formatLocale=x,e.formatSpecifier=l,e.precisionFixed=b,e.precisionPrefix=T,e.precisionRound=k,Object.defineProperty(e,"__esModule",{value:!0})})});var ZA=N((aCe,jA)=>{"use strict";jA.exports=function(e){for(var r=e.length,t,a=0;a<r;a++)if(t=e.charCodeAt(a),(t<9||t>13)&&t!==32&&t!==133&&t!==160&&t!==5760&&t!==6158&&(t<8192||t>8205)&&t!==8232&&t!==8233&&t!==8239&&t!==8287&&t!==8288&&t!==12288&&t!==65279)return!1;return!0}});var Pr=N((nCe,XA)=>{"use strict";var Zie=ZA();XA.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&Zie(t))return!1}else if(r!=="number")return!1;return e-e<1}});var Ft=N((iCe,JA)=>{"use strict";JA.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var eb=N((sp,$A)=>{(function(e,r){typeof sp=="object"&&typeof $A!="undefined"?r(sp):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(sp,function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),a=0;a<r.length;a++)t[r.charCodeAt(a)]=a;var n=function(o){var l=new Uint8Array(o),s,u=l.length,f="";for(s=0;s<u;s+=3)f+=r[l[s]>>2],f+=r[(l[s]&3)<<4|l[s+1]>>4],f+=r[(l[s+1]&15)<<2|l[s+2]>>6],f+=r[l[s+2]&63];return u%3===2?f=f.substring(0,f.length-1)+"=":u%3===1&&(f=f.substring(0,f.length-2)+"=="),f},i=function(o){var l=o.length*.75,s=o.length,u,f=0,c,v,d,p;o[o.length-1]==="="&&(l--,o[o.length-2]==="="&&l--);var m=new ArrayBuffer(l),y=new Uint8Array(m);for(u=0;u<s;u+=4)c=t[o.charCodeAt(u)],v=t[o.charCodeAt(u+1)],d=t[o.charCodeAt(u+2)],p=t[o.charCodeAt(u+3)],y[f++]=c<<2|v>>4,y[f++]=(v&15)<<4|d>>2,y[f++]=(d&3)<<6|p&63;return m};e.decode=i,e.encode=n,Object.defineProperty(e,"__esModule",{value:!0})})});var zl=N((oCe,KA)=>{"use strict";KA.exports=function(r){return window&&window.process&&window.process.versions?Object.prototype.toString.call(r)==="[object Object]":Object.prototype.toString.call(r)==="[object Object]"&&Object.getPrototypeOf(r).hasOwnProperty("hasOwnProperty")}});var Wn=N(Zi=>{"use strict";var Xie=eb().decode,Jie=zl(),rb=Array.isArray,$ie=ArrayBuffer,Kie=DataView;function QA(e){return $ie.isView(e)&&!(e instanceof Kie)}Zi.isTypedArray=QA;function up(e){return rb(e)||QA(e)}Zi.isArrayOrTypedArray=up;function Qie(e){return!up(e[0])}Zi.isArray1D=Qie;Zi.ensureArray=function(e,r){return rb(e)||(e=[]),e.length=r,e};var qa={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};qa.uint8c=qa.u1c;qa.uint8=qa.u1;qa.int8=qa.i1;qa.uint16=qa.u2;qa.int16=qa.i2;qa.uint32=qa.u4;qa.int32=qa.i4;qa.float32=qa.f4;qa.float64=qa.f8;function tb(e){return e.constructor===ArrayBuffer}Zi.isArrayBuffer=tb;Zi.decodeTypedArraySpec=function(e){var r=[],t=eoe(e),a=t.dtype,n=qa[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,o=t.bdata;tb(o)||(o=Xie(o));var l=t.shape===void 0?[o.byteLength/i]:(""+t.shape).split(",");l.reverse();var s=l.length,u,f,c=+l[0],v=i*c,d=0;if(s===1)r=new n(o);else if(s===2)for(u=+l[1],f=0;f<u;f++)r[f]=new n(o,d,c),d+=v;else if(s===3){u=+l[1];for(var p=+l[2],m=0;m<p;m++)for(r[m]=[],f=0;f<u;f++)r[m][f]=new n(o,d,c),d+=v}else throw new Error("ndim: "+s+'is not supported with the shape:"'+t.shape+'"');return r.bdata=t.bdata,r.dtype=t.dtype,r.shape=l.reverse().join(","),e._inputArray=r,r};Zi.isTypedArraySpec=function(e){return Jie(e)&&e.hasOwnProperty("dtype")&&typeof e.dtype=="string"&&e.hasOwnProperty("bdata")&&(typeof e.bdata=="string"||tb(e.bdata))&&(e.shape===void 0||e.hasOwnProperty("shape")&&(typeof e.shape=="string"||typeof e.shape=="number"))};function eoe(e){return{bdata:e.bdata,dtype:e.dtype,shape:e.shape}}Zi.concat=function(){var e=[],r=!0,t=0,a,n,i,o,l,s,u,f;for(i=0;i<arguments.length;i++)o=arguments[i],s=o.length,s&&(n?e.push(o):(n=o,l=s),rb(o)?a=!1:(r=!1,t?a!==o.constructor&&(a=!1):a=o.constructor),t+=s);if(!t)return[];if(!e.length)return n;if(r)return n.concat.apply(n,e);if(a){for(u=new a(t),u.set(n),i=0;i<e.length;i++)o=e[i],u.set(o,l),l+=o.length;return u}for(u=new Array(t),f=0;f<n.length;f++)u[f]=n[f];for(i=0;i<e.length;i++){for(o=e[i],f=0;f<o.length;f++)u[l+f]=o[f];l+=f}return u};Zi.maxRowLength=function(e){return eM(e,Math.max,0)};Zi.minRowLength=function(e){return eM(e,Math.min,1/0)};function eM(e,r,t){if(up(e))if(up(e[0])){for(var a=t,n=0;n<e.length;n++)a=r(a,e[n].length);return a}else return e.length;return 0}});var fp=N((sCe,iM)=>{"use strict";var rM=Pr(),nb=Wn().isArrayOrTypedArray;iM.exports=function(r,t){if(rM(t))t=String(t);else if(typeof t!="string"||t.substr(t.length-4)==="[-1]")throw"bad property string";var a=t.split("."),n,i,o,l;for(l=0;l<a.length;l++)if(String(a[l]).slice(0,2)==="__")throw"bad property string";for(l=0;l<a.length;){if(n=String(a[l]).match(/^([^\[\]]*)((\[\-?[0-9]*\])+)$/),n){if(n[1])a[l]=n[1];else if(l===0)a.splice(0,1);else throw"bad property string";for(i=n[2].substr(1,n[2].length-2).split("]["),o=0;o<i.length;o++)l++,a.splice(l,0,Number(i[o]))}l++}return typeof r!="object"?noe(r,t,a):{set:aM(r,a,t),get:tM(r,a),astr:t,parts:a,obj:r}};function tM(e,r){return function(t){var a=e,n,i,o,l,s;for(l=0;l<r.length-1;l++){if(n=r[l],n===-1){for(i=!0,o=[],s=0;s<a.length;s++)o[s]=tM(a[s],r.slice(l+1))(t),o[s]!==o[0]&&(i=!1);return i?o[0]:o}if(typeof n=="number"&&!nb(a)||(a=a[n],typeof a!="object"||a===null))return}if(!(typeof a!="object"||a===null)&&(o=a[r[l]],!(!t&&o===null)))return o}}var roe=/(^|\.)args\[/;function ab(e,r){return e===void 0||e===null&&!r.match(roe)}function aM(e,r,t){return function(a){var n=e,i="",o=[[e,i]],l=ab(a,t),s,u;for(u=0;u<r.length-1;u++){if(s=r[u],typeof s=="number"&&!nb(n))throw"array index but container is not an array";if(s===-1){if(l=!aoe(n,r.slice(u+1),a,t),l)break;return}if(!nM(n,s,r[u+1],l))break;if(n=n[s],typeof n!="object"||n===null)throw"container is not an object";i=toe(i,s),o.push([n,i])}if(l){if(u===r.length-1&&(delete n[r[u]],Array.isArray(n)&&+r[u]===n.length-1))for(;n.length&&n[n.length-1]===void 0;)n.pop()}else n[r[u]]=a}}function toe(e,r){var t=r;return rM(r)?t="["+r+"]":e&&(t="."+r),e+t}function aoe(e,r,t,a){var n=nb(t),i=!0,o=t,l=a.replace("-1",0),s=n?!1:ab(t,l),u=r[0],f;for(f=0;f<e.length;f++)l=a.replace("-1",f),n&&(o=t[f%t.length],s=ab(o,l)),s&&(i=!1),nM(e,f,u,s)&&aM(e[f],r,a.replace("-1",f))(o);return i}function nM(e,r,t,a){if(e[r]===void 0){if(a)return!1;typeof t=="number"?e[r]=[]:e[r]={}}return!0}function noe(e,r,t){return{set:function(){throw"bad container"},get:function(){},astr:r,parts:t,obj:e}}});var uM=N((uCe,sM)=>{"use strict";var _f=fp(),ioe=/^\w*$/,ooe=0,oM=1,cp=2,lM=3,Ys=4;sM.exports=function(r,t,a,n){a=a||"name",n=n||"value";var i,o,l,s={};t&&t.length?(l=_f(r,t),o=l.get()):o=r,t=t||"";var u={};if(o)for(i=0;i<o.length;i++)u[o[i][a]]=i;var f=ioe.test(n),c={set:function(v,d){var p=d===null?Ys:ooe;if(!o){if(!l||p===Ys)return;o=[],l.set(o)}var m=u[v];if(m===void 0){if(p===Ys)return;p=p|lM,m=o.length,u[v]=m}else d!==(f?o[m][n]:_f(o[m],n).get())&&(p=p|cp);var y=o[m]=o[m]||{};return y[a]=v,f?y[n]=d:_f(y,n).set(d),d!==null&&(p=p&~Ys),s[m]=s[m]|p,c},get:function(v){if(o){var d=u[v];if(d!==void 0)return f?o[d][n]:_f(o[d],n).get()}},rename:function(v,d){var p=u[v];return p===void 0||(s[p]=s[p]|oM,u[d]=p,delete u[v],o[p][a]=d),c},remove:function(v){var d=u[v];if(d===void 0)return c;var p=o[d];if(Object.keys(p).length>2)return s[d]=s[d]|cp,c.set(v,null);if(f){for(i=d;i<o.length;i++)s[i]=s[i]|lM;for(i=d;i<o.length;i++)u[o[i][a]]--;o.splice(d,1),delete u[v]}else _f(p,n).set(null),s[d]=s[d]|cp|Ys;return c},constructUpdate:function(){for(var v,d,p={},m=Object.keys(s),y=0;y<m.length;y++)d=m[y],v=t+"["+d+"]",o[d]?(s[d]&oM&&(p[v+"."+a]=o[d][a]),s[d]&cp&&(f?p[v+"."+n]=s[d]&Ys?null:o[d][n]:p[v+"."+n]=s[d]&Ys?null:_f(o[d],n).get())):p[v]=null;return p}};return c}});var cM=N((fCe,fM)=>{"use strict";var loe=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,soe=/^[^\.\[\]]+$/;fM.exports=function(e,r){for(;r;){var t=e.match(loe);if(t)e=t[1];else if(e.match(soe))e="";else throw new Error("bad relativeAttr call:"+[e,r]);if(r.charAt(0)==="^")r=r.slice(1);else break}return e&&r.charAt(0)!=="["?e+"."+r:e+r}});var vp=N((cCe,vM)=>{"use strict";var uoe=Pr();vM.exports=function(r,t){if(r>0)return Math.log(r)/Math.LN10;var a=Math.log(Math.min(t[0],t[1]))/Math.LN10;return uoe(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var pM=N((vCe,dM)=>{"use strict";var hM=Wn().isArrayOrTypedArray,Hv=zl();dM.exports=function e(r,t){for(var a in t){var n=t[a],i=r[a];if(i!==n)if(a.charAt(0)==="_"||typeof n=="function"){if(a in r)continue;r[a]=n}else if(hM(n)&&hM(i)&&Hv(n[0])){if(a==="customdata"||a==="ids")continue;for(var o=Math.min(n.length,i.length),l=0;l<o;l++)i[l]!==n[l]&&Hv(n[l])&&Hv(i[l])&&e(i[l],n[l])}else Hv(n)&&Hv(i)&&(e(i,n),Object.keys(i).length||delete r[a])}}});var wf=N((hCe,yM)=>{"use strict";function foe(e,r){var t=e%r;return t<0?t+r:t}function coe(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}yM.exports={mod:foe,modHalf:coe}});var Sn=N((dCe,hp)=>{(function(e){var r=/^\s+/,t=/\s+$/,a=0,n=e.round,i=e.min,o=e.max,l=e.random;function s(W,Q){if(W=W||"",Q=Q||{},W instanceof s)return W;if(!(this instanceof s))return new s(W,Q);var j=u(W);this._originalInput=W,this._r=j.r,this._g=j.g,this._b=j.b,this._a=j.a,this._roundA=n(100*this._a)/100,this._format=Q.format||j.format,this._gradientType=Q.gradientType,this._r<1&&(this._r=n(this._r)),this._g<1&&(this._g=n(this._g)),this._b<1&&(this._b=n(this._b)),this._ok=j.ok,this._tc_id=a++}s.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var W=this.toRgb();return(W.r*299+W.g*587+W.b*114)/1e3},getLuminance:function(){var W=this.toRgb(),Q,j,pe,me,we,Ne;return Q=W.r/255,j=W.g/255,pe=W.b/255,Q<=.03928?me=Q/12.92:me=e.pow((Q+.055)/1.055,2.4),j<=.03928?we=j/12.92:we=e.pow((j+.055)/1.055,2.4),pe<=.03928?Ne=pe/12.92:Ne=e.pow((pe+.055)/1.055,2.4),.2126*me+.7152*we+.0722*Ne},setAlpha:function(W){return this._a=B(W),this._roundA=n(100*this._a)/100,this},toHsv:function(){var W=d(this._r,this._g,this._b);return{h:W.h*360,s:W.s,v:W.v,a:this._a}},toHsvString:function(){var W=d(this._r,this._g,this._b),Q=n(W.h*360),j=n(W.s*100),pe=n(W.v*100);return this._a==1?"hsv("+Q+", "+j+"%, "+pe+"%)":"hsva("+Q+", "+j+"%, "+pe+"%, "+this._roundA+")"},toHsl:function(){var W=c(this._r,this._g,this._b);return{h:W.h*360,s:W.s,l:W.l,a:this._a}},toHslString:function(){var W=c(this._r,this._g,this._b),Q=n(W.h*360),j=n(W.s*100),pe=n(W.l*100);return this._a==1?"hsl("+Q+", "+j+"%, "+pe+"%)":"hsla("+Q+", "+j+"%, "+pe+"%, "+this._roundA+")"},toHex:function(W){return m(this._r,this._g,this._b,W)},toHexString:function(W){return"#"+this.toHex(W)},toHex8:function(W){return y(this._r,this._g,this._b,this._a,W)},toHex8String:function(W){return"#"+this.toHex8(W)},toRgb:function(){return{r:n(this._r),g:n(this._g),b:n(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+n(this._r)+", "+n(this._g)+", "+n(this._b)+")":"rgba("+n(this._r)+", "+n(this._g)+", "+n(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:n(V(this._r,255)*100)+"%",g:n(V(this._g,255)*100)+"%",b:n(V(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+n(V(this._r,255)*100)+"%, "+n(V(this._g,255)*100)+"%, "+n(V(this._b,255)*100)+"%)":"rgba("+n(V(this._r,255)*100)+"%, "+n(V(this._g,255)*100)+"%, "+n(V(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Y[m(this._r,this._g,this._b,!0)]||!1},toFilter:function(W){var Q="#"+x(this._r,this._g,this._b,this._a),j=Q,pe=this._gradientType?"GradientType = 1, ":"";if(W){var me=s(W);j="#"+x(me._r,me._g,me._b,me._a)}return"progid:DXImageTransform.Microsoft.gradient("+pe+"startColorstr="+Q+",endColorstr="+j+")"},toString:function(W){var Q=!!W;W=W||this._format;var j=!1,pe=this._a<1&&this._a>=0,me=!Q&&pe&&(W==="hex"||W==="hex6"||W==="hex3"||W==="hex4"||W==="hex8"||W==="name");return me?W==="name"&&this._a===0?this.toName():this.toRgbString():(W==="rgb"&&(j=this.toRgbString()),W==="prgb"&&(j=this.toPercentageRgbString()),(W==="hex"||W==="hex6")&&(j=this.toHexString()),W==="hex3"&&(j=this.toHexString(!0)),W==="hex4"&&(j=this.toHex8String(!0)),W==="hex8"&&(j=this.toHex8String()),W==="name"&&(j=this.toName()),W==="hsl"&&(j=this.toHslString()),W==="hsv"&&(j=this.toHsvString()),j||this.toHexString())},clone:function(){return s(this.toString())},_applyModification:function(W,Q){var j=W.apply(null,[this].concat([].slice.call(Q)));return this._r=j._r,this._g=j._g,this._b=j._b,this.setAlpha(j._a),this},lighten:function(){return this._applyModification(T,arguments)},brighten:function(){return this._applyModification(k,arguments)},darken:function(){return this._applyModification(M,arguments)},desaturate:function(){return this._applyModification(_,arguments)},saturate:function(){return this._applyModification(w,arguments)},greyscale:function(){return this._applyModification(b,arguments)},spin:function(){return this._applyModification(S,arguments)},_applyCombination:function(W,Q){return W.apply(null,[this].concat([].slice.call(Q)))},analogous:function(){return this._applyCombination(z,arguments)},complement:function(){return this._applyCombination(E,arguments)},monochromatic:function(){return this._applyCombination(O,arguments)},splitcomplement:function(){return this._applyCombination(D,arguments)},triad:function(){return this._applyCombination(P,arguments)},tetrad:function(){return this._applyCombination(R,arguments)}},s.fromRatio=function(W,Q){if(typeof W=="object"){var j={};for(var pe in W)W.hasOwnProperty(pe)&&(pe==="a"?j[pe]=W[pe]:j[pe]=ie(W[pe]));W=j}return s(W,Q)};function u(W){var Q={r:0,g:0,b:0},j=1,pe=null,me=null,we=null,Ne=!1,Fe=!1;return typeof W=="string"&&(W=ue(W)),typeof W=="object"&&(ye(W.r)&&ye(W.g)&&ye(W.b)?(Q=f(W.r,W.g,W.b),Ne=!0,Fe=String(W.r).substr(-1)==="%"?"prgb":"rgb"):ye(W.h)&&ye(W.s)&&ye(W.v)?(pe=ie(W.s),me=ie(W.v),Q=p(W.h,pe,me),Ne=!0,Fe="hsv"):ye(W.h)&&ye(W.s)&&ye(W.l)&&(pe=ie(W.s),we=ie(W.l),Q=v(W.h,pe,we),Ne=!0,Fe="hsl"),W.hasOwnProperty("a")&&(j=W.a)),j=B(j),{ok:Ne,format:W.format||Fe,r:i(255,o(Q.r,0)),g:i(255,o(Q.g,0)),b:i(255,o(Q.b,0)),a:j}}function f(W,Q,j){return{r:V(W,255)*255,g:V(Q,255)*255,b:V(j,255)*255}}function c(W,Q,j){W=V(W,255),Q=V(Q,255),j=V(j,255);var pe=o(W,Q,j),me=i(W,Q,j),we,Ne,Fe=(pe+me)/2;if(pe==me)we=Ne=0;else{var Re=pe-me;switch(Ne=Fe>.5?Re/(2-pe-me):Re/(pe+me),pe){case W:we=(Q-j)/Re+(Q<j?6:0);break;case Q:we=(j-W)/Re+2;break;case j:we=(W-Q)/Re+4;break}we/=6}return{h:we,s:Ne,l:Fe}}function v(W,Q,j){var pe,me,we;W=V(W,360),Q=V(Q,100),j=V(j,100);function Ne(Ie,Be,ze){return ze<0&&(ze+=1),ze>1&&(ze-=1),ze<1/6?Ie+(Be-Ie)*6*ze:ze<1/2?Be:ze<2/3?Ie+(Be-Ie)*(2/3-ze)*6:Ie}if(Q===0)pe=me=we=j;else{var Fe=j<.5?j*(1+Q):j+Q-j*Q,Re=2*j-Fe;pe=Ne(Re,Fe,W+1/3),me=Ne(Re,Fe,W),we=Ne(Re,Fe,W-1/3)}return{r:pe*255,g:me*255,b:we*255}}function d(W,Q,j){W=V(W,255),Q=V(Q,255),j=V(j,255);var pe=o(W,Q,j),me=i(W,Q,j),we,Ne,Fe=pe,Re=pe-me;if(Ne=pe===0?0:Re/pe,pe==me)we=0;else{switch(pe){case W:we=(Q-j)/Re+(Q<j?6:0);break;case Q:we=(j-W)/Re+2;break;case j:we=(W-Q)/Re+4;break}we/=6}return{h:we,s:Ne,v:Fe}}function p(W,Q,j){W=V(W,360)*6,Q=V(Q,100),j=V(j,100);var pe=e.floor(W),me=W-pe,we=j*(1-Q),Ne=j*(1-me*Q),Fe=j*(1-(1-me)*Q),Re=pe%6,Ie=[j,Ne,we,we,Fe,j][Re],Be=[Fe,j,j,Ne,we,we][Re],ze=[we,we,Fe,j,j,Ne][Re];return{r:Ie*255,g:Be*255,b:ze*255}}function m(W,Q,j,pe){var me=[le(n(W).toString(16)),le(n(Q).toString(16)),le(n(j).toString(16))];return pe&&me[0].charAt(0)==me[0].charAt(1)&&me[1].charAt(0)==me[1].charAt(1)&&me[2].charAt(0)==me[2].charAt(1)?me[0].charAt(0)+me[1].charAt(0)+me[2].charAt(0):me.join("")}function y(W,Q,j,pe,me){var we=[le(n(W).toString(16)),le(n(Q).toString(16)),le(n(j).toString(16)),le(K(pe))];return me&&we[0].charAt(0)==we[0].charAt(1)&&we[1].charAt(0)==we[1].charAt(1)&&we[2].charAt(0)==we[2].charAt(1)&&we[3].charAt(0)==we[3].charAt(1)?we[0].charAt(0)+we[1].charAt(0)+we[2].charAt(0)+we[3].charAt(0):we.join("")}function x(W,Q,j,pe){var me=[le(K(pe)),le(n(W).toString(16)),le(n(Q).toString(16)),le(n(j).toString(16))];return me.join("")}s.equals=function(W,Q){return!W||!Q?!1:s(W).toRgbString()==s(Q).toRgbString()},s.random=function(){return s.fromRatio({r:l(),g:l(),b:l()})};function _(W,Q){Q=Q===0?0:Q||10;var j=s(W).toHsl();return j.s-=Q/100,j.s=X(j.s),s(j)}function w(W,Q){Q=Q===0?0:Q||10;var j=s(W).toHsl();return j.s+=Q/100,j.s=X(j.s),s(j)}function b(W){return s(W).desaturate(100)}function T(W,Q){Q=Q===0?0:Q||10;var j=s(W).toHsl();return j.l+=Q/100,j.l=X(j.l),s(j)}function k(W,Q){Q=Q===0?0:Q||10;var j=s(W).toRgb();return j.r=o(0,i(255,j.r-n(255*-(Q/100)))),j.g=o(0,i(255,j.g-n(255*-(Q/100)))),j.b=o(0,i(255,j.b-n(255*-(Q/100)))),s(j)}function M(W,Q){Q=Q===0?0:Q||10;var j=s(W).toHsl();return j.l-=Q/100,j.l=X(j.l),s(j)}function S(W,Q){var j=s(W).toHsl(),pe=(j.h+Q)%360;return j.h=pe<0?360+pe:pe,s(j)}function E(W){var Q=s(W).toHsl();return Q.h=(Q.h+180)%360,s(Q)}function P(W){var Q=s(W).toHsl(),j=Q.h;return[s(W),s({h:(j+120)%360,s:Q.s,l:Q.l}),s({h:(j+240)%360,s:Q.s,l:Q.l})]}function R(W){var Q=s(W).toHsl(),j=Q.h;return[s(W),s({h:(j+90)%360,s:Q.s,l:Q.l}),s({h:(j+180)%360,s:Q.s,l:Q.l}),s({h:(j+270)%360,s:Q.s,l:Q.l})]}function D(W){var Q=s(W).toHsl(),j=Q.h;return[s(W),s({h:(j+72)%360,s:Q.s,l:Q.l}),s({h:(j+216)%360,s:Q.s,l:Q.l})]}function z(W,Q,j){Q=Q||6,j=j||30;var pe=s(W).toHsl(),me=360/j,we=[s(W)];for(pe.h=(pe.h-(me*Q>>1)+720)%360;--Q;)pe.h=(pe.h+me)%360,we.push(s(pe));return we}function O(W,Q){Q=Q||6;for(var j=s(W).toHsv(),pe=j.h,me=j.s,we=j.v,Ne=[],Fe=1/Q;Q--;)Ne.push(s({h:pe,s:me,v:we})),we=(we+Fe)%1;return Ne}s.mix=function(W,Q,j){j=j===0?0:j||50;var pe=s(W).toRgb(),me=s(Q).toRgb(),we=j/100,Ne={r:(me.r-pe.r)*we+pe.r,g:(me.g-pe.g)*we+pe.g,b:(me.b-pe.b)*we+pe.b,a:(me.a-pe.a)*we+pe.a};return s(Ne)},s.readability=function(W,Q){var j=s(W),pe=s(Q);return(e.max(j.getLuminance(),pe.getLuminance())+.05)/(e.min(j.getLuminance(),pe.getLuminance())+.05)},s.isReadable=function(W,Q,j){var pe=s.readability(W,Q),me,we;switch(we=!1,me=de(j),me.level+me.size){case"AAsmall":case"AAAlarge":we=pe>=4.5;break;case"AAlarge":we=pe>=3;break;case"AAAsmall":we=pe>=7;break}return we},s.mostReadable=function(W,Q,j){var pe=null,me=0,we,Ne,Fe,Re;j=j||{},Ne=j.includeFallbackColors,Fe=j.level,Re=j.size;for(var Ie=0;Ie<Q.length;Ie++)we=s.readability(W,Q[Ie]),we>me&&(me=we,pe=s(Q[Ie]));return s.isReadable(W,pe,{level:Fe,size:Re})||!Ne?pe:(j.includeFallbackColors=!1,s.mostReadable(W,["#fff","#000"],j))};var H=s.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Y=s.hexNames=G(H);function G(W){var Q={};for(var j in W)W.hasOwnProperty(j)&&(Q[W[j]]=j);return Q}function B(W){return W=parseFloat(W),(isNaN(W)||W<0||W>1)&&(W=1),W}function V(W,Q){te(W)&&(W="100%");var j=fe(W);return W=i(Q,o(0,parseFloat(W))),j&&(W=parseInt(W*Q,10)/100),e.abs(W-Q)<1e-6?1:W%Q/parseFloat(Q)}function X(W){return i(1,o(0,W))}function Z(W){return parseInt(W,16)}function te(W){return typeof W=="string"&&W.indexOf(".")!=-1&&parseFloat(W)===1}function fe(W){return typeof W=="string"&&W.indexOf("%")!=-1}function le(W){return W.length==1?"0"+W:""+W}function ie(W){return W<=1&&(W=W*100+"%"),W}function K(W){return e.round(parseFloat(W)*255).toString(16)}function he(W){return Z(W)/255}var oe=function(){var W="[-\\+]?\\d+%?",Q="[-\\+]?\\d*\\.\\d+%?",j="(?:"+Q+")|(?:"+W+")",pe="[\\s|\\(]+("+j+")[,|\\s]+("+j+")[,|\\s]+("+j+")\\s*\\)?",me="[\\s|\\(]+("+j+")[,|\\s]+("+j+")[,|\\s]+("+j+")[,|\\s]+("+j+")\\s*\\)?";return{CSS_UNIT:new RegExp(j),rgb:new RegExp("rgb"+pe),rgba:new RegExp("rgba"+me),hsl:new RegExp("hsl"+pe),hsla:new RegExp("hsla"+me),hsv:new RegExp("hsv"+pe),hsva:new RegExp("hsva"+me),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function ye(W){return!!oe.CSS_UNIT.exec(W)}function ue(W){W=W.replace(r,"").replace(t,"").toLowerCase();var Q=!1;if(H[W])W=H[W],Q=!0;else if(W=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var j;return(j=oe.rgb.exec(W))?{r:j[1],g:j[2],b:j[3]}:(j=oe.rgba.exec(W))?{r:j[1],g:j[2],b:j[3],a:j[4]}:(j=oe.hsl.exec(W))?{h:j[1],s:j[2],l:j[3]}:(j=oe.hsla.exec(W))?{h:j[1],s:j[2],l:j[3],a:j[4]}:(j=oe.hsv.exec(W))?{h:j[1],s:j[2],v:j[3]}:(j=oe.hsva.exec(W))?{h:j[1],s:j[2],v:j[3],a:j[4]}:(j=oe.hex8.exec(W))?{r:Z(j[1]),g:Z(j[2]),b:Z(j[3]),a:he(j[4]),format:Q?"name":"hex8"}:(j=oe.hex6.exec(W))?{r:Z(j[1]),g:Z(j[2]),b:Z(j[3]),format:Q?"name":"hex"}:(j=oe.hex4.exec(W))?{r:Z(j[1]+""+j[1]),g:Z(j[2]+""+j[2]),b:Z(j[3]+""+j[3]),a:he(j[4]+""+j[4]),format:Q?"name":"hex8"}:(j=oe.hex3.exec(W))?{r:Z(j[1]+""+j[1]),g:Z(j[2]+""+j[2]),b:Z(j[3]+""+j[3]),format:Q?"name":"hex"}:!1}function de(W){var Q,j;return W=W||{level:"AA",size:"small"},Q=(W.level||"AA").toUpperCase(),j=(W.size||"small").toLowerCase(),Q!=="AA"&&Q!=="AAA"&&(Q="AA"),j!=="small"&&j!=="large"&&(j="small"),{level:Q,size:j}}typeof hp!="undefined"&&hp.exports?hp.exports=s:window.tinycolor=s})(Math)});var bt=N(Yv=>{"use strict";var mM=zl(),Uv=Array.isArray;function voe(e,r){var t,a;for(t=0;t<e.length;t++){if(a=e[t],a!==null&&typeof a=="object")return!1;a!==void 0&&(r[t]=a)}return!0}Yv.extendFlat=function(){return Gv(arguments,!1,!1,!1)};Yv.extendDeep=function(){return Gv(arguments,!0,!1,!1)};Yv.extendDeepAll=function(){return Gv(arguments,!0,!0,!1)};Yv.extendDeepNoArrays=function(){return Gv(arguments,!0,!1,!0)};function Gv(e,r,t,a){var n=e[0],i=e.length,o,l,s,u,f,c,v;if(i===2&&Uv(n)&&Uv(e[1])&&n.length===0){if(v=voe(e[1],n),v)return n;n.splice(0,n.length)}for(var d=1;d<i;d++){o=e[d];for(l in o)s=n[l],u=o[l],a&&Uv(u)?n[l]=u:r&&u&&(mM(u)||(f=Uv(u)))?(f?(f=!1,c=s&&Uv(s)?s:[]):c=s&&mM(s)?s:{},n[l]=Gv([c,u],r,t,a)):(typeof u!="undefined"||t)&&(n[l]=u)}return n}});var ca=N((yCe,gM)=>{"use strict";gM.exports=function(e){var r=e.variantValues,t=e.editType,a=e.colorEditType;a===void 0&&(a=t);var n={editType:t,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(n.valType="enumerated",n.values=n.extras,n.extras=void 0,n.min=void 0,n.max=void 0);var i={family:{valType:"string",noBlank:!0,strict:!0,editType:t},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:a},weight:n,style:{editType:t,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:t,valType:"enumerated",values:r||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:t,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:t,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:t,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:t};return e.autoSize&&(i.size.dflt="auto"),e.autoColor&&(i.color.dflt="auto"),e.arrayOk&&(i.family.arrayOk=!0,i.weight.arrayOk=!0,i.style.arrayOk=!0,e.noFontVariant||(i.variant.arrayOk=!0),e.noFontTextcase||(i.textcase.arrayOk=!0),e.noFontLineposition||(i.lineposition.arrayOk=!0),e.noFontShadow||(i.shadow.arrayOk=!0),i.size.arrayOk=!0,i.color.arrayOk=!0),i}});var Vv=N((mCe,bM)=>{"use strict";bM.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var Tf=N((gCe,wM)=>{"use strict";var xM=Vv(),_M=ca(),ib=_M({editType:"none"});ib.family.dflt=xM.HOVERFONT;ib.size.dflt=xM.HOVERFONTSIZE;wM.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:ib,grouptitlefont:_M({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var yp=N((bCe,TM)=>{"use strict";var hoe=ca(),dp=Tf().hoverlabel,pp=bt().extendFlat;TM.exports={hoverlabel:{bgcolor:pp({},dp.bgcolor,{arrayOk:!0}),bordercolor:pp({},dp.bordercolor,{arrayOk:!0}),font:hoe({arrayOk:!0,editType:"none"}),align:pp({},dp.align,{arrayOk:!0}),namelength:pp({},dp.namelength,{arrayOk:!0}),editType:"none"}}});var mn=N((xCe,AM)=>{"use strict";var doe=ca(),poe=yp();AM.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:doe({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:poe.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}});var Vs=N((_Ce,SM)=>{"use strict";var yoe=Sn(),mp={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},MM=mp.RdBu;function moe(e,r){if(r||(r=MM),!e)return r;function t(){try{e=mp[e]||JSON.parse(e)}catch(a){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),kM(e)?e:r}function kM(e){var r=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var t=0;t<e.length;t++){var a=e[t];if(a.length!==2||+a[0]<r||!yoe(a[1]).isValid())return!1;r=+a[0]}return!0}function goe(e){return mp[e]!==void 0?!0:kM(e)}SM.exports={scales:mp,defaultScale:MM,get:moe,isValid:goe}});var li=N(Ws=>{"use strict";Ws.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];Ws.defaultLine="#444";Ws.lightLine="#eee";Ws.background="#fff";Ws.borderLine="#BEC8D9";Ws.lightFraction=100*10/11});var Tr=N((TCe,qM)=>{"use strict";var qn=Sn(),boe=Pr(),xoe=Wn().isTypedArray,_a=qM.exports={},gp=li();_a.defaults=gp.defaults;var _oe=_a.defaultLine=gp.defaultLine;_a.lightLine=gp.lightLine;var lb=_a.background=gp.background;_a.tinyRGB=function(e){var r=e.toRgb();return"rgb("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+")"};_a.rgb=function(e){return _a.tinyRGB(qn(e))};_a.opacity=function(e){return e?qn(e).getAlpha():0};_a.addOpacity=function(e,r){var t=qn(e).toRgb();return"rgba("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+", "+r+")"};_a.combine=function(e,r){var t=qn(e).toRgb();if(t.a===1)return qn(e).toRgbString();var a=qn(r||lb).toRgb(),n=a.a===1?a:{r:255*(1-a.a)+a.r*a.a,g:255*(1-a.a)+a.g*a.a,b:255*(1-a.a)+a.b*a.a},i={r:n.r*(1-t.a)+t.r*t.a,g:n.g*(1-t.a)+t.g*t.a,b:n.b*(1-t.a)+t.b*t.a};return qn(i).toRgbString()};_a.interpolate=function(e,r,t){var a=qn(e).toRgb(),n=qn(r).toRgb(),i={r:t*a.r+(1-t)*n.r,g:t*a.g+(1-t)*n.g,b:t*a.b+(1-t)*n.b};return qn(i).toRgbString()};_a.contrast=function(e,r,t){var a=qn(e);a.getAlpha()!==1&&(a=qn(_a.combine(e,lb)));var n=a.isDark()?r?a.lighten(r):lb:t?a.darken(t):_oe;return n.toString()};_a.stroke=function(e,r){var t=qn(r);e.style({stroke:_a.tinyRGB(t),"stroke-opacity":t.getAlpha()})};_a.fill=function(e,r){var t=qn(r);e.style({fill:_a.tinyRGB(t),"fill-opacity":t.getAlpha()})};_a.clean=function(e){if(!(!e||typeof e!="object")){var r=Object.keys(e),t,a,n,i;for(t=0;t<r.length;t++)if(n=r[t],i=e[n],n.substr(n.length-5)==="color")if(Array.isArray(i))for(a=0;a<i.length;a++)i[a]=ob(i[a]);else e[n]=ob(i);else if(n.substr(n.length-10)==="colorscale"&&Array.isArray(i))for(a=0;a<i.length;a++)Array.isArray(i[a])&&(i[a][1]=ob(i[a][1]));else if(Array.isArray(i)){var o=i[0];if(!Array.isArray(o)&&o&&typeof o=="object")for(a=0;a<i.length;a++)_a.clean(i[a])}else i&&typeof i=="object"&&!xoe(i)&&_a.clean(i)}};function ob(e){if(boe(e)||typeof e!="string")return e;var r=e.trim();if(r.substr(0,3)!=="rgb")return e;var t=r.match(/^rgba?\s*\(([^()]*)\)$/);if(!t)return e;var a=t[1].trim().split(/\s*[\s,]\s*/),n=r.charAt(3)==="a"&&a.length===4;if(!n&&a.length!==3)return e;for(var i=0;i<a.length;i++){if(!a[i].length||(a[i]=Number(a[i]),!(a[i]>=0)))return e;if(i===3)a[i]>1&&(a[i]=1);else if(a[i]>=1)return e}var o=Math.round(a[0]*255)+", "+Math.round(a[1]*255)+", "+Math.round(a[2]*255);return n?"rgba("+o+", "+a[3]+")":"rgb("+o+")"}});var bp=N((ACe,LM)=>{"use strict";LM.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var Af=N(CM=>{"use strict";CM.counter=function(e,r,t,a){var n=(r||"")+(t?"":"$"),i=a===!1?"":"^";return e==="xy"?new RegExp(i+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+n):new RegExp(i+e+"([2-9]|[1-9][0-9]+)?"+n)}});var RM=N(Ln=>{"use strict";var sb=Pr(),EM=Sn(),DM=bt().extendFlat,woe=mn(),Toe=Vs(),Aoe=Tr(),Moe=bp().DESELECTDIM,Mf=fp(),PM=Af().counter,koe=wf().modHalf,To=Wn().isArrayOrTypedArray,Il=Wn().isTypedArraySpec,Ol=Wn().decodeTypedArraySpec;Ln.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(To(e)?e:Il(e)?Ol(e):t)}},enumerated:{coerceFunction:function(e,r,t,a){a.coerceNumber&&(e=+e),a.values.indexOf(e)===-1?r.set(t):r.set(e)},validateFunction:function(e,r){r.coerceNumber&&(e=+e);for(var t=r.values,a=0;a<t.length;a++){var n=String(t[a]);if(n.charAt(0)==="/"&&n.charAt(n.length-1)==="/"){var i=new RegExp(n.substr(1,n.length-2));if(i.test(e))return!0}else if(e===t[a])return!0}return!1}},boolean:{coerceFunction:function(e,r,t){e===!0||e===!1?r.set(e):r.set(t)}},number:{coerceFunction:function(e,r,t,a){Il(e)&&(e=Ol(e)),!sb(e)||a.min!==void 0&&e<a.min||a.max!==void 0&&e>a.max?r.set(t):r.set(+e)}},integer:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}Il(e)&&(e=Ol(e)),e%1||!sb(e)||a.min!==void 0&&e<a.min||a.max!==void 0&&e>a.max?r.set(t):r.set(+e)}},string:{coerceFunction:function(e,r,t,a){if(typeof e!="string"){var n=typeof e=="number";a.strict===!0||!n?r.set(t):r.set(String(e))}else a.noBlank&&!e?r.set(t):r.set(e)}},color:{coerceFunction:function(e,r,t){Il(e)&&(e=Ol(e)),EM(e).isValid()?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){function a(n){return EM(n).isValid()}!Array.isArray(e)||!e.length?r.set(t):e.every(a)?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(Toe.get(e,t))}},angle:{coerceFunction:function(e,r,t){Il(e)&&(e=Ol(e)),e==="auto"?r.set("auto"):sb(e)?r.set(koe(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,a){var n=a.regex||PM(t);if(typeof e=="string"&&n.test(e)){r.set(e);return}r.set(t)},validateFunction:function(e,r){var t=r.dflt;return e===t?!0:typeof e!="string"?!1:!!PM(t).test(e)}},flaglist:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}if(typeof e!="string"){r.set(t);return}for(var n=e.split("+"),i=0;i<n.length;){var o=n[i];a.flags.indexOf(o)===-1||n.indexOf(o)<i?n.splice(i,1):i++}n.length?r.set(n.join("+")):r.set(t)}},any:{coerceFunction:function(e,r,t){e===void 0?r.set(t):r.set(Il(e)?Ol(e):e)}},info_array:{coerceFunction:function(e,r,t,a){function n(_,w,b){var T,k={set:function(M){T=M}};return b===void 0&&(b=w.dflt),Ln.valObjectMeta[w.valType].coerceFunction(_,k,b,w),T}if(Il(e)&&(e=Ol(e)),!To(e)){r.set(t);return}var i=a.dimensions===2||a.dimensions==="1-2"&&Array.isArray(e)&&To(e[0]),o=a.items,l=[],s=Array.isArray(o),u=s&&i&&To(o[0]),f=i&&s&&!u,c=s&&!f?o.length:e.length,v,d,p,m,y,x;if(t=Array.isArray(t)?t:[],i)for(v=0;v<c;v++)for(l[v]=[],p=To(e[v])?e[v]:[],f?y=o.length:s?y=o[v].length:y=p.length,d=0;d<y;d++)f?m=o[d]:s?m=o[v][d]:m=o,x=n(p[d],m,(t[v]||[])[d]),x!==void 0&&(l[v][d]=x);else for(v=0;v<c;v++)x=n(e[v],s?o[v]:o,t[v]),x!==void 0&&(l[v]=x);r.set(l)},validateFunction:function(e,r){if(!To(e))return!1;var t=r.items,a=Array.isArray(t),n=r.dimensions===2;if(!r.freeLength&&e.length!==t.length)return!1;for(var i=0;i<e.length;i++)if(n){if(!To(e[i])||!r.freeLength&&e[i].length!==t[i].length)return!1;for(var o=0;o<e[i].length;o++)if(!xp(e[i][o],a?t[i][o]:t))return!1}else if(!xp(e[i],a?t[i]:t))return!1;return!0}}};Ln.coerce=function(e,r,t,a,n){var i=Mf(t,a).get(),o=Mf(e,a),l=Mf(r,a),s=o.get(),u=r._template;if(s===void 0&&u&&(s=Mf(u,a).get(),u=0),n===void 0&&(n=i.dflt),i.arrayOk){if(To(s))return l.set(s),s;if(Il(s))return s=Ol(s),l.set(s),s}var f=Ln.valObjectMeta[i.valType].coerceFunction;f(s,l,n,i);var c=l.get();return u&&c===n&&!xp(s,i)&&(s=Mf(u,a).get(),f(s,l,n,i),c=l.get()),c};Ln.coerce2=function(e,r,t,a,n){var i=Mf(e,a),o=Ln.coerce(e,r,t,a,n),l=i.get();return l!=null?o:!1};Ln.coerceFont=function(e,r,t,a){a||(a={}),t=DM({},t),t=DM(t,a.overrideDflt||{});var n={family:e(r+".family",t.family),size:e(r+".size",t.size),color:e(r+".color",t.color),weight:e(r+".weight",t.weight),style:e(r+".style",t.style)};if(a.noFontVariant||(n.variant=e(r+".variant",t.variant)),a.noFontLineposition||(n.lineposition=e(r+".lineposition",t.lineposition)),a.noFontTextcase||(n.textcase=e(r+".textcase",t.textcase)),!a.noFontShadow){var i=t.shadow;i==="none"&&a.autoShadowDflt&&(i="auto"),n.shadow=e(r+".shadow",i)}return n};Ln.coercePattern=function(e,r,t,a){var n=e(r+".shape");if(n){e(r+".solidity"),e(r+".size");var i=e(r+".fillmode"),o=i==="overlay";if(!a){var l=e(r+".bgcolor",o?t:void 0);e(r+".fgcolor",o?Aoe.contrast(l):t)}e(r+".fgopacity",o?.5:1)}};Ln.coerceHoverinfo=function(e,r,t){var a=r._module.attributes,n=a.hoverinfo?a:woe,i=n.hoverinfo,o;if(t._dataLength===1){var l=i.dflt==="all"?i.flags.slice():i.dflt.split("+");l.splice(l.indexOf("name"),1),o=l.join("+")}return Ln.coerce(e,r,n,"hoverinfo",o)};Ln.coerceSelectionMarkerOpacity=function(e,r){if(e.marker){var t=e.marker.opacity;if(t!==void 0){var a,n;!To(t)&&!e.selected&&!e.unselected&&(a=t,n=Moe*t),r("selected.marker.opacity",a),r("unselected.marker.opacity",n)}}};function xp(e,r){var t=Ln.valObjectMeta[r.valType];if(r.arrayOk&&To(e))return!0;if(t.validateFunction)return t.validateFunction(e,r);var a={},n=a,i={set:function(o){n=o}};return t.coerceFunction(e,i,a,r),n!==a}Ln.validate=xp});var js=N((SCe,IM)=>{"use strict";var FM={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},NM={};function zM(e,r){for(var t in e){var a=e[t];a.valType?r[t]=a.dflt:(r[t]||(r[t]={}),zM(a,r[t]))}}zM(FM,NM);IM.exports={configAttributes:FM,dfltConfig:NM}});var fb=N((qCe,OM)=>{"use strict";var ub=Sr(),Soe=Pr(),Wv=[];OM.exports=function(e,r){if(Wv.indexOf(e)!==-1)return;Wv.push(e);var t=1e3;Soe(r)?t=r:r==="long"&&(t=3e3);var a=ub.select("body").selectAll(".plotly-notifier").data([0]);a.enter().append("div").classed("plotly-notifier",!0);var n=a.selectAll(".notifier-note").data(Wv);function i(o){o.duration(700).style("opacity",0).each("end",function(l){var s=Wv.indexOf(l);s!==-1&&Wv.splice(s,1),ub.select(this).remove()})}n.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(o){var l=ub.select(this);l.append("button").classed("notifier-close",!0).html("&times;").on("click",function(){l.transition().call(i)});for(var s=l.append("p"),u=o.split(/<br\s*\/?>/g),f=0;f<u.length;f++)f&&s.append("br"),s.append("span").text(u[f]);r==="stick"?l.transition().duration(350).style("opacity",1):l.transition().duration(700).style("opacity",1).transition().delay(t).call(i)})}});var Zs=N((LCe,BM)=>{"use strict";var kf=js().dfltConfig,cb=fb(),vb=BM.exports={};vb.log=function(){var e;if(kf.logging>1){var r=["LOG:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.trace.apply(console,r)}if(kf.notifyOnLogging>1){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);cb(t.join("<br>"),"long")}};vb.warn=function(){var e;if(kf.logging>0){var r=["WARN:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.trace.apply(console,r)}if(kf.notifyOnLogging>0){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);cb(t.join("<br>"),"stick")}};vb.error=function(){var e;if(kf.logging>0){var r=["ERROR:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.error.apply(console,r)}if(kf.notifyOnLogging>0){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);cb(t.join("<br>"),"stick")}}});var _p=N((CCe,HM)=>{"use strict";HM.exports=function(){}});var hb=N((ECe,UM)=>{"use strict";UM.exports=function(r,t){if(t instanceof RegExp){for(var a=t.toString(),n=0;n<r.length;n++)if(r[n]instanceof RegExp&&r[n].toString()===a)return r;r.push(t)}else(t||t===0)&&r.indexOf(t)===-1&&r.push(t);return r}});var YM=N((DCe,GM)=>{GM.exports=qoe;function qoe(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var WM=N((PCe,VM)=>{VM.exports=Loe;function Loe(e){var r=new Float32Array(16);return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r}});var ZM=N((RCe,jM)=>{jM.exports=Coe;function Coe(e,r){return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var db=N((FCe,XM)=>{XM.exports=Eoe;function Eoe(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var $M=N((NCe,JM)=>{JM.exports=Doe;function Doe(e,r){if(e===r){var t=r[1],a=r[2],n=r[3],i=r[6],o=r[7],l=r[11];e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=t,e[6]=r[9],e[7]=r[13],e[8]=a,e[9]=i,e[11]=r[14],e[12]=n,e[13]=o,e[14]=l}else e[0]=r[0],e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=r[1],e[5]=r[5],e[6]=r[9],e[7]=r[13],e[8]=r[2],e[9]=r[6],e[10]=r[10],e[11]=r[14],e[12]=r[3],e[13]=r[7],e[14]=r[11],e[15]=r[15];return e}});var QM=N((zCe,KM)=>{KM.exports=Poe;function Poe(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=r[4],l=r[5],s=r[6],u=r[7],f=r[8],c=r[9],v=r[10],d=r[11],p=r[12],m=r[13],y=r[14],x=r[15],_=t*l-a*o,w=t*s-n*o,b=t*u-i*o,T=a*s-n*l,k=a*u-i*l,M=n*u-i*s,S=f*m-c*p,E=f*y-v*p,P=f*x-d*p,R=c*y-v*m,D=c*x-d*m,z=v*x-d*y,O=_*z-w*D+b*R+T*P-k*E+M*S;return O?(O=1/O,e[0]=(l*z-s*D+u*R)*O,e[1]=(n*D-a*z-i*R)*O,e[2]=(m*M-y*k+x*T)*O,e[3]=(v*k-c*M-d*T)*O,e[4]=(s*P-o*z-u*E)*O,e[5]=(t*z-n*P+i*E)*O,e[6]=(y*b-p*M-x*w)*O,e[7]=(f*M-v*b+d*w)*O,e[8]=(o*D-l*P+u*S)*O,e[9]=(a*P-t*D-i*S)*O,e[10]=(p*k-m*b+x*_)*O,e[11]=(c*b-f*k-d*_)*O,e[12]=(l*E-o*R-s*S)*O,e[13]=(t*R-a*E+n*S)*O,e[14]=(m*w-p*T-y*_)*O,e[15]=(f*T-c*w+v*_)*O,e):null}});var r9=N((ICe,e9)=>{e9.exports=Roe;function Roe(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=r[4],l=r[5],s=r[6],u=r[7],f=r[8],c=r[9],v=r[10],d=r[11],p=r[12],m=r[13],y=r[14],x=r[15];return e[0]=l*(v*x-d*y)-c*(s*x-u*y)+m*(s*d-u*v),e[1]=-(a*(v*x-d*y)-c*(n*x-i*y)+m*(n*d-i*v)),e[2]=a*(s*x-u*y)-l*(n*x-i*y)+m*(n*u-i*s),e[3]=-(a*(s*d-u*v)-l*(n*d-i*v)+c*(n*u-i*s)),e[4]=-(o*(v*x-d*y)-f*(s*x-u*y)+p*(s*d-u*v)),e[5]=t*(v*x-d*y)-f*(n*x-i*y)+p*(n*d-i*v),e[6]=-(t*(s*x-u*y)-o*(n*x-i*y)+p*(n*u-i*s)),e[7]=t*(s*d-u*v)-o*(n*d-i*v)+f*(n*u-i*s),e[8]=o*(c*x-d*m)-f*(l*x-u*m)+p*(l*d-u*c),e[9]=-(t*(c*x-d*m)-f*(a*x-i*m)+p*(a*d-i*c)),e[10]=t*(l*x-u*m)-o*(a*x-i*m)+p*(a*u-i*l),e[11]=-(t*(l*d-u*c)-o*(a*d-i*c)+f*(a*u-i*l)),e[12]=-(o*(c*y-v*m)-f*(l*y-s*m)+p*(l*v-s*c)),e[13]=t*(c*y-v*m)-f*(a*y-n*m)+p*(a*v-n*c),e[14]=-(t*(l*y-s*m)-o*(a*y-n*m)+p*(a*s-n*l)),e[15]=t*(l*v-s*c)-o*(a*v-n*c)+f*(a*s-n*l),e}});var a9=N((OCe,t9)=>{t9.exports=Foe;function Foe(e){var r=e[0],t=e[1],a=e[2],n=e[3],i=e[4],o=e[5],l=e[6],s=e[7],u=e[8],f=e[9],c=e[10],v=e[11],d=e[12],p=e[13],m=e[14],y=e[15],x=r*o-t*i,_=r*l-a*i,w=r*s-n*i,b=t*l-a*o,T=t*s-n*o,k=a*s-n*l,M=u*p-f*d,S=u*m-c*d,E=u*y-v*d,P=f*m-c*p,R=f*y-v*p,D=c*y-v*m;return x*D-_*R+w*P+b*E-T*S+k*M}});var i9=N((BCe,n9)=>{n9.exports=Noe;function Noe(e,r,t){var a=r[0],n=r[1],i=r[2],o=r[3],l=r[4],s=r[5],u=r[6],f=r[7],c=r[8],v=r[9],d=r[10],p=r[11],m=r[12],y=r[13],x=r[14],_=r[15],w=t[0],b=t[1],T=t[2],k=t[3];return e[0]=w*a+b*l+T*c+k*m,e[1]=w*n+b*s+T*v+k*y,e[2]=w*i+b*u+T*d+k*x,e[3]=w*o+b*f+T*p+k*_,w=t[4],b=t[5],T=t[6],k=t[7],e[4]=w*a+b*l+T*c+k*m,e[5]=w*n+b*s+T*v+k*y,e[6]=w*i+b*u+T*d+k*x,e[7]=w*o+b*f+T*p+k*_,w=t[8],b=t[9],T=t[10],k=t[11],e[8]=w*a+b*l+T*c+k*m,e[9]=w*n+b*s+T*v+k*y,e[10]=w*i+b*u+T*d+k*x,e[11]=w*o+b*f+T*p+k*_,w=t[12],b=t[13],T=t[14],k=t[15],e[12]=w*a+b*l+T*c+k*m,e[13]=w*n+b*s+T*v+k*y,e[14]=w*i+b*u+T*d+k*x,e[15]=w*o+b*f+T*p+k*_,e}});var l9=N((HCe,o9)=>{o9.exports=zoe;function zoe(e,r,t){var a=t[0],n=t[1],i=t[2],o,l,s,u,f,c,v,d,p,m,y,x;return r===e?(e[12]=r[0]*a+r[4]*n+r[8]*i+r[12],e[13]=r[1]*a+r[5]*n+r[9]*i+r[13],e[14]=r[2]*a+r[6]*n+r[10]*i+r[14],e[15]=r[3]*a+r[7]*n+r[11]*i+r[15]):(o=r[0],l=r[1],s=r[2],u=r[3],f=r[4],c=r[5],v=r[6],d=r[7],p=r[8],m=r[9],y=r[10],x=r[11],e[0]=o,e[1]=l,e[2]=s,e[3]=u,e[4]=f,e[5]=c,e[6]=v,e[7]=d,e[8]=p,e[9]=m,e[10]=y,e[11]=x,e[12]=o*a+f*n+p*i+r[12],e[13]=l*a+c*n+m*i+r[13],e[14]=s*a+v*n+y*i+r[14],e[15]=u*a+d*n+x*i+r[15]),e}});var u9=N((UCe,s9)=>{s9.exports=Ioe;function Ioe(e,r,t){var a=t[0],n=t[1],i=t[2];return e[0]=r[0]*a,e[1]=r[1]*a,e[2]=r[2]*a,e[3]=r[3]*a,e[4]=r[4]*n,e[5]=r[5]*n,e[6]=r[6]*n,e[7]=r[7]*n,e[8]=r[8]*i,e[9]=r[9]*i,e[10]=r[10]*i,e[11]=r[11]*i,e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var c9=N((GCe,f9)=>{f9.exports=Ooe;function Ooe(e,r,t,a){var n=a[0],i=a[1],o=a[2],l=Math.sqrt(n*n+i*i+o*o),s,u,f,c,v,d,p,m,y,x,_,w,b,T,k,M,S,E,P,R,D,z,O,H;return Math.abs(l)<1e-6?null:(l=1/l,n*=l,i*=l,o*=l,s=Math.sin(t),u=Math.cos(t),f=1-u,c=r[0],v=r[1],d=r[2],p=r[3],m=r[4],y=r[5],x=r[6],_=r[7],w=r[8],b=r[9],T=r[10],k=r[11],M=n*n*f+u,S=i*n*f+o*s,E=o*n*f-i*s,P=n*i*f-o*s,R=i*i*f+u,D=o*i*f+n*s,z=n*o*f+i*s,O=i*o*f-n*s,H=o*o*f+u,e[0]=c*M+m*S+w*E,e[1]=v*M+y*S+b*E,e[2]=d*M+x*S+T*E,e[3]=p*M+_*S+k*E,e[4]=c*P+m*R+w*D,e[5]=v*P+y*R+b*D,e[6]=d*P+x*R+T*D,e[7]=p*P+_*R+k*D,e[8]=c*z+m*O+w*H,e[9]=v*z+y*O+b*H,e[10]=d*z+x*O+T*H,e[11]=p*z+_*O+k*H,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var h9=N((YCe,v9)=>{v9.exports=Boe;function Boe(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[4],o=r[5],l=r[6],s=r[7],u=r[8],f=r[9],c=r[10],v=r[11];return r!==e&&(e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[4]=i*n+u*a,e[5]=o*n+f*a,e[6]=l*n+c*a,e[7]=s*n+v*a,e[8]=u*n-i*a,e[9]=f*n-o*a,e[10]=c*n-l*a,e[11]=v*n-s*a,e}});var p9=N((VCe,d9)=>{d9.exports=Hoe;function Hoe(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],u=r[8],f=r[9],c=r[10],v=r[11];return r!==e&&(e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n-u*a,e[1]=o*n-f*a,e[2]=l*n-c*a,e[3]=s*n-v*a,e[8]=i*a+u*n,e[9]=o*a+f*n,e[10]=l*a+c*n,e[11]=s*a+v*n,e}});var m9=N((WCe,y9)=>{y9.exports=Uoe;function Uoe(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],u=r[4],f=r[5],c=r[6],v=r[7];return r!==e&&(e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n+u*a,e[1]=o*n+f*a,e[2]=l*n+c*a,e[3]=s*n+v*a,e[4]=u*n-i*a,e[5]=f*n-o*a,e[6]=c*n-l*a,e[7]=v*n-s*a,e}});var b9=N((jCe,g9)=>{g9.exports=Goe;function Goe(e,r,t){var a,n,i,o=t[0],l=t[1],s=t[2],u=Math.sqrt(o*o+l*l+s*s);return Math.abs(u)<1e-6?null:(u=1/u,o*=u,l*=u,s*=u,a=Math.sin(r),n=Math.cos(r),i=1-n,e[0]=o*o*i+n,e[1]=l*o*i+s*a,e[2]=s*o*i-l*a,e[3]=0,e[4]=o*l*i-s*a,e[5]=l*l*i+n,e[6]=s*l*i+o*a,e[7]=0,e[8]=o*s*i+l*a,e[9]=l*s*i-o*a,e[10]=s*s*i+n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var _9=N((ZCe,x9)=>{x9.exports=Yoe;function Yoe(e,r,t){var a=r[0],n=r[1],i=r[2],o=r[3],l=a+a,s=n+n,u=i+i,f=a*l,c=a*s,v=a*u,d=n*s,p=n*u,m=i*u,y=o*l,x=o*s,_=o*u;return e[0]=1-(d+m),e[1]=c+_,e[2]=v-x,e[3]=0,e[4]=c-_,e[5]=1-(f+m),e[6]=p+y,e[7]=0,e[8]=v+x,e[9]=p-y,e[10]=1-(f+d),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var T9=N((XCe,w9)=>{w9.exports=Voe;function Voe(e,r){return e[0]=r[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=r[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var M9=N((JCe,A9)=>{A9.exports=Woe;function Woe(e,r){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var S9=N(($Ce,k9)=>{k9.exports=joe;function joe(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=t,e[7]=0,e[8]=0,e[9]=-t,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var L9=N((KCe,q9)=>{q9.exports=Zoe;function Zoe(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=0,e[2]=-t,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=t,e[9]=0,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var E9=N((QCe,C9)=>{C9.exports=Xoe;function Xoe(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=t,e[2]=0,e[3]=0,e[4]=-t,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var pb=N((eEe,D9)=>{D9.exports=Joe;function Joe(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=t+t,l=a+a,s=n+n,u=t*o,f=a*o,c=a*l,v=n*o,d=n*l,p=n*s,m=i*o,y=i*l,x=i*s;return e[0]=1-c-p,e[1]=f+x,e[2]=v-y,e[3]=0,e[4]=f-x,e[5]=1-u-p,e[6]=d+m,e[7]=0,e[8]=v+y,e[9]=d-m,e[10]=1-u-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var R9=N((rEe,P9)=>{P9.exports=$oe;function $oe(e,r,t,a,n,i,o){var l=1/(t-r),s=1/(n-a),u=1/(i-o);return e[0]=i*2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i*2*s,e[6]=0,e[7]=0,e[8]=(t+r)*l,e[9]=(n+a)*s,e[10]=(o+i)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*i*2*u,e[15]=0,e}});var N9=N((tEe,F9)=>{F9.exports=Koe;function Koe(e,r,t,a,n){var i=1/Math.tan(r/2),o=1/(a-n);return e[0]=i/t,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(n+a)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*n*a*o,e[15]=0,e}});var I9=N((aEe,z9)=>{z9.exports=Qoe;function Qoe(e,r,t,a){var n=Math.tan(r.upDegrees*Math.PI/180),i=Math.tan(r.downDegrees*Math.PI/180),o=Math.tan(r.leftDegrees*Math.PI/180),l=Math.tan(r.rightDegrees*Math.PI/180),s=2/(o+l),u=2/(n+i);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-((o-l)*s*.5),e[9]=(n-i)*u*.5,e[10]=a/(t-a),e[11]=-1,e[12]=0,e[13]=0,e[14]=a*t/(t-a),e[15]=0,e}});var B9=N((nEe,O9)=>{O9.exports=ele;function ele(e,r,t,a,n,i,o){var l=1/(r-t),s=1/(a-n),u=1/(i-o);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(r+t)*l,e[13]=(n+a)*s,e[14]=(o+i)*u,e[15]=1,e}});var U9=N((iEe,H9)=>{var rle=db();H9.exports=tle;function tle(e,r,t,a){var n,i,o,l,s,u,f,c,v,d,p=r[0],m=r[1],y=r[2],x=a[0],_=a[1],w=a[2],b=t[0],T=t[1],k=t[2];return Math.abs(p-b)<1e-6&&Math.abs(m-T)<1e-6&&Math.abs(y-k)<1e-6?rle(e):(f=p-b,c=m-T,v=y-k,d=1/Math.sqrt(f*f+c*c+v*v),f*=d,c*=d,v*=d,n=_*v-w*c,i=w*f-x*v,o=x*c-_*f,d=Math.sqrt(n*n+i*i+o*o),d?(d=1/d,n*=d,i*=d,o*=d):(n=0,i=0,o=0),l=c*o-v*i,s=v*n-f*o,u=f*i-c*n,d=Math.sqrt(l*l+s*s+u*u),d?(d=1/d,l*=d,s*=d,u*=d):(l=0,s=0,u=0),e[0]=n,e[1]=l,e[2]=f,e[3]=0,e[4]=i,e[5]=s,e[6]=c,e[7]=0,e[8]=o,e[9]=u,e[10]=v,e[11]=0,e[12]=-(n*p+i*m+o*y),e[13]=-(l*p+s*m+u*y),e[14]=-(f*p+c*m+v*y),e[15]=1,e)}});var Y9=N((oEe,G9)=>{G9.exports=ale;function ale(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var yb=N((lEe,V9)=>{V9.exports={create:YM(),clone:WM(),copy:ZM(),identity:db(),transpose:$M(),invert:QM(),adjoint:r9(),determinant:a9(),multiply:i9(),translate:l9(),scale:u9(),rotate:c9(),rotateX:h9(),rotateY:p9(),rotateZ:m9(),fromRotation:b9(),fromRotationTranslation:_9(),fromScaling:T9(),fromTranslation:M9(),fromXRotation:S9(),fromYRotation:L9(),fromZRotation:E9(),fromQuat:pb(),frustum:R9(),perspective:N9(),perspectiveFromFieldOfView:I9(),ortho:B9(),lookAt:U9(),str:Y9()}});var wp=N($t=>{"use strict";var nle=yb();$t.init2dArray=function(e,r){for(var t=new Array(e),a=0;a<e;a++)t[a]=new Array(r);return t};$t.transposeRagged=function(e){var r=0,t=e.length,a,n;for(a=0;a<t;a++)r=Math.max(r,e[a].length);var i=new Array(r);for(a=0;a<r;a++)for(i[a]=new Array(t),n=0;n<t;n++)i[a][n]=e[n][a];return i};$t.dot=function(e,r){if(!(e.length&&r.length)||e.length!==r.length)return null;var t=e.length,a,n;if(e[0].length)for(a=new Array(t),n=0;n<t;n++)a[n]=$t.dot(e[n],r);else if(r[0].length){var i=$t.transposeRagged(r);for(a=new Array(i.length),n=0;n<i.length;n++)a[n]=$t.dot(e,i[n])}else for(a=0,n=0;n<t;n++)a+=e[n]*r[n];return a};$t.translationMatrix=function(e,r){return[[1,0,e],[0,1,r],[0,0,1]]};$t.rotationMatrix=function(e){var r=e*Math.PI/180;return[[Math.cos(r),-Math.sin(r),0],[Math.sin(r),Math.cos(r),0],[0,0,1]]};$t.rotationXYMatrix=function(e,r,t){return $t.dot($t.dot($t.translationMatrix(r,t),$t.rotationMatrix(e)),$t.translationMatrix(-r,-t))};$t.apply3DTransform=function(e){return function(){var r=arguments,t=arguments.length===1?r[0]:[r[0],r[1],r[2]||0];return $t.dot(e,[t[0],t[1],t[2],1]).slice(0,3)}};$t.apply2DTransform=function(e){return function(){var r=arguments;r.length===3&&(r=r[0]);var t=arguments.length===1?r[0]:[r[0],r[1]];return $t.dot(e,[t[0],t[1],1]).slice(0,2)}};$t.apply2DTransform2=function(e){var r=$t.apply2DTransform(e);return function(t){return r(t.slice(0,2)).concat(r(t.slice(2,4)))}};$t.convertCssMatrix=function(e){if(e){var r=e.length;if(r===16)return e;if(r===6)return[e[0],e[1],0,0,e[2],e[3],0,0,0,0,1,0,e[4],e[5],0,1]}return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]};$t.inverseTransformMatrix=function(e){var r=[];return nle.invert(r,e),[[r[0],r[1],r[2],r[3]],[r[4],r[5],r[6],r[7]],[r[8],r[9],r[10],r[11]],[r[12],r[13],r[14],r[15]]]}});var jv=N((uEe,$9)=>{"use strict";var ile=Sr(),W9=Zs(),ole=wp(),lle=yb();function sle(e){var r;if(typeof e=="string"){if(r=document.getElementById(e),r===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return r}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function ule(e){var r=ile.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function j9(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function fle(e,r){Z9("global",e,r)}function Z9(e,r,t){var a="plotly.js-style-"+e,n=document.getElementById(a);if(!(n&&n.matches(".no-inline-styles"))){n||(n=document.createElement("style"),n.setAttribute("id",a),n.appendChild(document.createTextNode("")),document.head.appendChild(n));var i=n.sheet;i?i.insertRule?i.insertRule(r+"{"+t+"}",0):i.addRule?i.addRule(r,t,0):W9.warn("addStyleRule failed"):W9.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function cle(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&j9(t)}function vle(e,r,t,a,n,i){var o=a.split(":"),l=n.split(":"),s="data-btn-style-event-added";i||(i=document),i.querySelectorAll(e).forEach(function(u){u.getAttribute(s)||(u.addEventListener("mouseenter",function(){var f=this.querySelector(t);f&&(f.style[o[0]]=o[1])}),u.addEventListener("mouseleave",function(){var f=this.querySelector(t);f&&(r&&this.matches(r)?f.style[o[0]]=o[1]:f.style[l[0]]=l[1])}),u.setAttribute(s,!0))})}function hle(e){var r=J9(e),t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return r.forEach(function(a){var n=X9(a);if(n){var i=ole.convertCssMatrix(n);t=lle.multiply(t,t,i)}}),t}function X9(e){var r=window.getComputedStyle(e,null),t=r.getPropertyValue("-webkit-transform")||r.getPropertyValue("-moz-transform")||r.getPropertyValue("-ms-transform")||r.getPropertyValue("-o-transform")||r.getPropertyValue("transform");return t==="none"?null:t.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(a){return+a})}function J9(e){for(var r=[];dle(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function dle(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function ple(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}$9.exports={getGraphDiv:sle,isPlotDiv:ule,removeElement:j9,addStyleRule:fle,addRelatedStyleRule:Z9,deleteRelatedStyleRule:cle,setStyleOnHover:vle,getFullTransformMatrix:hle,getElementTransformMatrix:X9,getElementAndAncestors:J9,equalDomRects:ple}});var Zv=N((fEe,K9)=>{"use strict";K9.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var Xi=N((cEe,ik)=>{"use strict";var ek=bt().extendFlat,yle=zl(),rk={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},tk={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},mle=rk.flags.slice().concat(["fullReplot"]),gle=tk.flags.slice().concat("layoutReplot");ik.exports={traces:rk,layout:tk,traceFlags:function(){return Q9(mle)},layoutFlags:function(){return Q9(gle)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var a=t.split("+"),n=0;n<a.length;n++)e[a[n]]=!0},overrideAll:ak};function Q9(e){for(var r={},t=0;t<e.length;t++)r[e[t]]=!1;return r}function ak(e,r,t){var a=ek({},e);for(var n in a){var i=a[n];yle(i)&&(a[n]=nk(i,r,t,n))}return t==="from-root"&&(a.editType=r),a}function nk(e,r,t,a){if(e.valType){var n=ek({},e);if(n.editType=r,Array.isArray(e.items)){n.items=new Array(e.items.length);for(var i=0;i<e.items.length;i++)n.items[i]=nk(e.items[i],r,"from-root")}return n}else return ak(e,r,a.charAt(0)==="_"?"nested":"from-root")}});var si=N(mb=>{"use strict";mb.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};mb.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var gb=N((hEe,ok)=>{"use strict";ok.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}});var La=N(Tp=>{"use strict";var lk=gb(),dEe=lk.FORMAT_LINK,pEe=lk.DATE_FORMAT_LINK;function bb(e){var r=e.description?" "+e.description:"",t=e.keys||[];if(t.length>0){for(var a=[],n=0;n<t.length;n++)a[n]="`"+t[n]+"`";r=r+"Finally, the template string has access to ",t.length===1?r=r+"variable "+a[0]:r=r+"variables "+a.slice(0,-1).join(", ")+" and "+a.slice(-1)+"."}return r}Tp.hovertemplateAttrs=function(e,r){e=e||{},r=r||{};var t=bb(r),a={valType:"string",dflt:"",editType:e.editType||"none"};return e.arrayOk!==!1&&(a.arrayOk=!0),a};Tp.texttemplateAttrs=function(e,r){e=e||{},r=r||{};var t=bb(r),a={valType:"string",dflt:"",editType:e.editType||"calc"};return e.arrayOk!==!1&&(a.arrayOk=!0),a};Tp.shapeTexttemplateAttrs=function(e,r){e=e||{},r=r||{};var t=e.newshape?"new ":"",a=bb(r),n={valType:"string",dflt:"",editType:e.editType||"arraydraw"};return n}});var kp=N((mEe,hk)=>{"use strict";function Bl(e,r){return r?r.d2l(e):e}function sk(e,r){return r?r.l2d(e):e}function ble(e){return e.x0}function xle(e){return e.x1}function _le(e){return e.y0}function wle(e){return e.y1}function uk(e){return e.x0shift||0}function fk(e){return e.x1shift||0}function ck(e){return e.y0shift||0}function vk(e){return e.y1shift||0}function Ap(e,r){return Bl(e.x1,r)+fk(e)-Bl(e.x0,r)-uk(e)}function Mp(e,r,t){return Bl(e.y1,t)+vk(e)-Bl(e.y0,t)-ck(e)}function Tle(e,r){return Math.abs(Ap(e,r))}function Ale(e,r,t){return Math.abs(Mp(e,r,t))}function Mle(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(Ap(e,r),2)+Math.pow(Mp(e,r,t),2))}function kle(e,r){return sk((Bl(e.x1,r)+fk(e)+Bl(e.x0,r)+uk(e))/2,r)}function Sle(e,r,t){return sk((Bl(e.y1,t)+vk(e)+Bl(e.y0,t)+ck(e))/2,t)}function qle(e,r,t){return e.type!=="line"?void 0:Mp(e,r,t)/Ap(e,r)}hk.exports={x0:ble,x1:xle,y0:_le,y1:wle,slope:qle,dx:Ap,dy:Mp,width:Tle,height:Ale,length:Mle,xcenter:kle,ycenter:Sle}});var yk=N((gEe,pk)=>{"use strict";var Lle=Xi().overrideAll,Xs=mn(),dk=ca(),Cle=si().dash,Hl=bt().extendFlat,Ele=La().shapeTexttemplateAttrs,Dle=kp();pk.exports=Lle({newshape:{visible:Hl({},Xs.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:Hl({},Xs.legend,{}),legendgroup:Hl({},Xs.legendgroup,{}),legendgrouptitle:{text:Hl({},Xs.legendgrouptitle.text,{}),font:dk({})},legendrank:Hl({},Xs.legendrank,{}),legendwidth:Hl({},Xs.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Hl({},Cle,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:Hl({},Xs.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:Ele({newshape:!0},{keys:Object.keys(Dle)}),font:dk({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)"},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var gk=N((bEe,mk)=>{"use strict";var Ple=si().dash,Rle=bt().extendFlat;mk.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:Rle({},Ple,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}});var Sp=N((xEe,bk)=>{"use strict";bk.exports=function(e){var r=e.editType;return{t:{valType:"number",dflt:0,editType:r},r:{valType:"number",dflt:0,editType:r},b:{valType:"number",dflt:0,editType:r},l:{valType:"number",dflt:0,editType:r},editType:r}}});var Sf=N((_Ee,Tk)=>{"use strict";var xb=ca(),Fle=Zv(),qp=li(),xk=yk(),_k=gk(),Nle=Sp(),wk=bt().extendFlat,Lp=xb({editType:"calc"});Lp.family.dflt='"Open Sans", verdana, arial, sans-serif';Lp.size.dflt=12;Lp.color.dflt=qp.defaultLine;Tk.exports={font:Lp,title:{text:{valType:"string",editType:"layoutstyle"},font:xb({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:xb({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:wk(Nle({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:qp.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:qp.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},hidesources:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:qp.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:xk.newshape,activeshape:xk.activeshape,newselection:_k.newselection,activeselection:_k.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:wk({},Fle.transition,{editType:"none"})}});var Ak=BA(()=>{});var zle={};var Mk=BA(()=>{Ak()});var gr=N(Hr=>{"use strict";var qf=Zs(),kk=_p(),Sk=hb(),Ile=zl(),Ole=jv().addStyleRule,qk=bt(),Ble=mn(),Hle=Sf(),Ule=qk.extendFlat,_b=qk.extendDeepAll;Hr.modules={};Hr.allCategories={};Hr.allTypes=[];Hr.subplotsRegistry={};Hr.componentsRegistry={};Hr.layoutArrayContainers=[];Hr.layoutArrayRegexes=[];Hr.traceLayoutAttributes={};Hr.localeRegistry={};Hr.apiMethodRegistry={};Hr.collectableSubplotTypes=null;Hr.register=function(r){if(Hr.collectableSubplotTypes=null,r)r&&!Array.isArray(r)&&(r=[r]);else throw new Error("No argument passed to Plotly.register.");for(var t=0;t<r.length;t++){var a=r[t];if(!a)throw new Error("Invalid module was attempted to be registered!");switch(a.moduleType){case"trace":Gle(a);break;case"transform":Wle(a);break;case"component":Vle(a);break;case"locale":jle(a);break;case"apiMethod":var n=a.name;Hr.apiMethodRegistry[n]=a.fn;break;default:throw new Error("Invalid module was attempted to be registered!")}}};Hr.getModule=function(e){var r=Hr.modules[Dk(e)];return r?r._module:!1};Hr.traceIs=function(e,r){if(e=Dk(e),e==="various")return!1;var t=Hr.modules[e];return t||(e&&qf.log("Unrecognized trace type "+e+"."),t=Hr.modules[Ble.type.dflt]),!!t.categories[r]};Hr.getComponentMethod=function(e,r){var t=Hr.componentsRegistry[e];return t&&t[r]||kk};Hr.call=function(){var e=arguments[0],r=[].slice.call(arguments,1);return Hr.apiMethodRegistry[e].apply(null,r)};function Gle(e){var r=e.name,t=e.categories,a=e.meta;if(Hr.modules[r]){qf.log("Type "+r+" already registered");return}Hr.subplotsRegistry[e.basePlotModule.name]||Yle(e.basePlotModule);for(var n={},i=0;i<t.length;i++)n[t[i]]=!0,Hr.allCategories[t[i]]=!0;Hr.modules[r]={_module:e,categories:n},a&&Object.keys(a).length&&(Hr.modules[r].meta=a),Hr.allTypes.push(r);for(var o in Hr.componentsRegistry)Ck(o,r);e.layoutAttributes&&Ule(Hr.traceLayoutAttributes,e.layoutAttributes);var l=e.basePlotModule,s=l.name;if(s==="mapbox"){var u=l.constants.styleRules;for(var f in u)Ole(".js-plotly-plot .plotly .mapboxgl-"+f,u[f])}s==="map"&&(Mk(),jie(zle)),(s==="geo"||s==="mapbox"||s==="map")&&window.PlotlyGeoAssets===void 0&&(window.PlotlyGeoAssets={topojson:{}})}function Yle(e){var r=e.name;if(Hr.subplotsRegistry[r]){qf.log("Plot type "+r+" already registered.");return}Lk(e),Hr.subplotsRegistry[r]=e;for(var t in Hr.componentsRegistry)Ek(t,e.name)}function Vle(e){if(typeof e.name!="string")throw new Error("Component module *name* must be a string.");var r=e.name;Hr.componentsRegistry[r]=e,e.layoutAttributes&&(e.layoutAttributes._isLinkedToArray&&Sk(Hr.layoutArrayContainers,r),Lk(e));for(var t in Hr.modules)Ck(r,t);for(var a in Hr.subplotsRegistry)Ek(r,a);e.schema&&e.schema.layout&&_b(Hle,e.schema.layout)}function Wle(e){if(typeof e.name!="string")throw new Error("Transform module *name* must be a string.");var r="Transform module "+e.name,t=typeof e.transform=="function",a=typeof e.calcTransform=="function";if(!t&&!a)throw new Error(r+" is missing a *transform* or *calcTransform* method.");t&&a&&qf.log([r+" has both a *transform* and *calcTransform* methods.","Please note that all *transform* methods are executed","before all *calcTransform* methods."].join(" ")),Ile(e.attributes)||qf.log(r+" registered without an *attributes* object."),typeof e.supplyDefaults!="function"&&qf.log(r+" registered without a *supplyDefaults* method.")}function jle(e){var r=e.name,t=r.split("-")[0],a=e.dictionary,n=e.format,i=a&&Object.keys(a).length,o=n&&Object.keys(n).length,l=Hr.localeRegistry,s=l[r];if(s||(l[r]=s={}),t!==r){var u=l[t];u||(l[t]=u={}),i&&u.dictionary===s.dictionary&&(u.dictionary=a),o&&u.format===s.format&&(u.format=n)}i&&(s.dictionary=a),o&&(s.format=n)}function Lk(e){if(e.layoutAttributes){var r=e.layoutAttributes._arrayAttrRegexps;if(r)for(var t=0;t<r.length;t++)Sk(Hr.layoutArrayRegexes,r[t])}}function Ck(e,r){var t=Hr.componentsRegistry[e].schema;if(!(!t||!t.traces)){var a=t.traces[r];a&&_b(Hr.modules[r]._module.attributes,a)}}function Ek(e,r){var t=Hr.componentsRegistry[e].schema;if(!(!t||!t.subplots)){var a=Hr.subplotsRegistry[r],n=a.layoutAttributes,i=a.attr==="subplot"?a.name:a.attr;Array.isArray(i)&&(i=i[0]);var o=t.subplots[i];n&&o&&_b(n,o)}}function Dk(e){return typeof e=="object"&&(e=e.type),e}});var Hk=N(Kt=>{"use strict";var Zle=xf().timeFormat,Ok=Pr(),wb=Zs(),Gl=wf().mod,Ef=Ft(),ui=Ef.BADNUM,Cn=Ef.ONEDAY,Xv=Ef.ONEHOUR,Ul=Ef.ONEMIN,Cf=Ef.ONESEC,Jv=Ef.EPOCHJD,rl=gr(),Pk=xf().utcFormat,Xle=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,Jle=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,Rk=new Date().getFullYear()-70;function tl(e){return e&&rl.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}Kt.dateTick0=function(e,r){var t=$le(e,!!r);if(r<2)return t;var a=Kt.dateTime2ms(t,e);return a+=Cn*(r-1),Kt.ms2DateTime(a,0,e)};function $le(e,r){return tl(e)?r?rl.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:rl.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}Kt.dfltRange=function(e){return tl(e)?rl.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};Kt.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var Ep,Dp;Kt.dateTime2ms=function(e,r){if(Kt.isJSDate(e)){var t=e.getTimezoneOffset()*Ul,a=(e.getUTCMinutes()-e.getMinutes())*Ul+(e.getUTCSeconds()-e.getSeconds())*Cf+(e.getUTCMilliseconds()-e.getMilliseconds());if(a){var n=3*Ul;t=t-n/2+Gl(a-t+n/2,n)}return e=Number(e)-t,e>=Ep&&e<=Dp?e:ui}if(typeof e!="string"&&typeof e!="number")return ui;e=String(e);var i=tl(r),o=e.charAt(0);i&&(o==="G"||o==="g")&&(e=e.substr(1),r="");var l=i&&r.substr(0,7)==="chinese",s=e.match(l?Jle:Xle);if(!s)return ui;var u=s[1],f=s[3]||"1",c=Number(s[5]||1),v=Number(s[7]||0),d=Number(s[9]||0),p=Number(s[11]||0);if(i){if(u.length===2)return ui;u=Number(u);var m;try{var y=rl.getComponentMethod("calendars","getCal")(r);if(l){var x=f.charAt(f.length-1)==="i";f=parseInt(f,10),m=y.newDate(u,y.toMonthIndex(u,f,x),c)}else m=y.newDate(u,Number(f),c)}catch(w){return ui}return m?(m.toJD()-Jv)*Cn+v*Xv+d*Ul+p*Cf:ui}u.length===2?u=(Number(u)+2e3-Rk)%100+Rk:u=Number(u),f-=1;var _=new Date(Date.UTC(2e3,f,c,v,d));return _.setUTCFullYear(u),_.getUTCMonth()!==f||_.getUTCDate()!==c?ui:_.getTime()+p*Cf};Ep=Kt.MIN_MS=Kt.dateTime2ms("-9999");Dp=Kt.MAX_MS=Kt.dateTime2ms("9999-12-31 23:59:59.9999");Kt.isDateTime=function(e,r){return Kt.dateTime2ms(e,r)!==ui};function Lf(e,r){return String(e+Math.pow(10,r)).substr(1)}var Cp=90*Cn,Fk=3*Xv,Nk=5*Ul;Kt.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=Ep&&e<=Dp))return ui;r||(r=0);var a=Math.floor(Gl(e+.05,1)*10),n=Math.round(e-a/10),i,o,l,s,u,f;if(tl(t)){var c=Math.floor(n/Cn)+Jv,v=Math.floor(Gl(e,Cn));try{i=rl.getComponentMethod("calendars","getCal")(t).fromJD(c).formatDate("yyyy-mm-dd")}catch(d){i=Pk("G%Y-%m-%d")(new Date(n))}if(i.charAt(0)==="-")for(;i.length<11;)i="-0"+i.substr(1);else for(;i.length<10;)i="0"+i;o=r<Cp?Math.floor(v/Xv):0,l=r<Cp?Math.floor(v%Xv/Ul):0,s=r<Fk?Math.floor(v%Ul/Cf):0,u=r<Nk?v%Cf*10+a:0}else f=new Date(n),i=Pk("%Y-%m-%d")(f),o=r<Cp?f.getUTCHours():0,l=r<Cp?f.getUTCMinutes():0,s=r<Fk?f.getUTCSeconds():0,u=r<Nk?f.getUTCMilliseconds()*10+a:0;return Bk(i,o,l,s,u)};Kt.ms2DateTimeLocal=function(e){if(!(e>=Ep+Cn&&e<=Dp-Cn))return ui;var r=Math.floor(Gl(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=Zle("%Y-%m-%d")(t),n=t.getHours(),i=t.getMinutes(),o=t.getSeconds(),l=t.getUTCMilliseconds()*10+r;return Bk(a,n,i,o,l)};function Bk(e,r,t,a,n){if((r||t||a||n)&&(e+=" "+Lf(r,2)+":"+Lf(t,2),(a||n)&&(e+=":"+Lf(a,2),n))){for(var i=4;n%10===0;)i-=1,n/=10;e+="."+Lf(n,i)}return e}Kt.cleanDate=function(e,r,t){if(e===ui)return r;if(Kt.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(tl(t))return wb.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=Kt.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!Kt.isDateTime(e,t))return wb.error("unrecognized date",e),r;return e};var Kle=/%\d?f/g,Qle=/%h/g,ese={1:"1",2:"1",3:"2",4:"2"};function zk(e,r,t,a){e=e.replace(Kle,function(i){var o=Math.min(+i.charAt(1)||6,6),l=(r/1e3%1+2).toFixed(o).substr(2).replace(/0+$/,"")||"0";return l});var n=new Date(Math.floor(r+.05));if(e=e.replace(Qle,function(){return ese[t("%q")(n)]}),tl(a))try{e=rl.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var rse=[59,59.9,59.99,59.999,59.9999];function tse(e,r){var t=Gl(e+.05,Cn),a=Lf(Math.floor(t/Xv),2)+":"+Lf(Gl(Math.floor(t/Ul),60),2);if(r!=="M"){Ok(r)||(r=0);var n=Math.min(Gl(e/Cf,60),rse[r]),i=(100+n).toFixed(r).substr(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+i}return a}Kt.formatDate=function(e,r,t,a,n,i){if(n=tl(n)&&n,!r)if(t==="y")r=i.year;else if(t==="m")r=i.month;else if(t==="d")r=i.dayMonth+`