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.
- package/CHANGELOG.md +5 -0
- package/CITATION.cff +2 -2
- package/README.md +3 -3
- package/dist/README.md +18 -18
- package/dist/plot-schema.json +281 -281
- package/dist/plotly-basic.js +2 -2
- package/dist/plotly-basic.min.js +2 -2
- package/dist/plotly-cartesian.js +2 -2
- package/dist/plotly-cartesian.min.js +2 -2
- package/dist/plotly-finance.js +2 -2
- package/dist/plotly-finance.min.js +2 -2
- package/dist/plotly-geo-assets.js +2 -2
- package/dist/plotly-geo.js +2 -2
- package/dist/plotly-geo.min.js +2 -2
- package/dist/plotly-gl2d.js +2 -2
- package/dist/plotly-gl2d.min.js +2 -2
- package/dist/plotly-gl3d.js +2 -2
- package/dist/plotly-gl3d.min.js +2 -2
- package/dist/plotly-mapbox.js +2 -2
- package/dist/plotly-mapbox.min.js +2 -2
- package/dist/plotly-strict.js +2 -2
- package/dist/plotly-strict.min.js +2 -2
- package/dist/plotly-with-meta.js +5 -11
- package/dist/plotly.js +2 -2
- package/dist/plotly.min.js +2 -2
- package/package.json +1 -1
- package/src/plots/font_attributes.js +3 -9
- package/src/version.js +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* plotly.js (finance - minified) v3.0.
|
|
2
|
+
* plotly.js (finance - 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 Ty=Object.defineProperty;var XW=Object.getOwnPropertyDescriptor;var ZW=Object.getOwnPropertyNames;var JW=Object.prototype.hasOwnProperty;var nt=(e,r)=>()=>(e&&(r=e(e=0)),r);var B=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),$W=(e,r)=>{for(var t in r)Ty(e,t,{get:r[t],enumerable:!0})},KW=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of ZW(r))!JW.call(e,n)&&n!==t&&Ty(e,n,{get:()=>r[n],enumerable:!(a=XW(r,n))||a.enumerable});return e};var My=e=>KW(Ty({},"__esModule",{value:!0}),e);var Q0=B(G4=>{"use strict";G4.version="3.0.2"});var V4=B((U4,j0)=>{(function(r,t,a){t[r]=t[r]||a(),typeof j0!="undefined"&&j0.exports&&(j0.exports=t[r])})("Promise",typeof window!="undefined"?window:U4,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(_,T,x,M){return Object.defineProperty(_,T,{value:x,writable:!0,configurable:M!==!1})}}catch(b){r=function(T,x,M){return T[x]=M,T}}a=function(){var _,T,x;function M(A,k){this.fn=A,this.self=k,this.next=void 0}return{add:function(k,L){x=new M(k,L),T?T.next=x:_=x,T=x,x=void 0},drain:function(){var k=_;for(_=T=t=void 0;k;)k.fn.call(k.self),k=k.next}}}();function l(b,_){a.add(b,_),t||(t=i(a.drain))}function o(b){var _,T=typeof b;return b!=null&&(T=="object"||T=="function")&&(_=b.then),typeof _=="function"?_:!1}function s(){for(var b=0;b<this.chain.length;b++)u(this,this.state===1?this.chain[b].success:this.chain[b].failure,this.chain[b]);this.chain.length=0}function u(b,_,T){var x,M;try{_===!1?T.reject(b.msg):(_===!0?x=b.msg:x=_.call(void 0,b.msg),x===T.promise?T.reject(TypeError("Promise-chain cycle")):(M=o(x))?M.call(x,T.resolve,T.reject):T.resolve(x))}catch(A){T.reject(A)}}function f(b){var _,T=this;if(!T.triggered){T.triggered=!0,T.def&&(T=T.def);try{(_=o(b))?l(function(){var x=new d(T);try{_.call(b,function(){f.apply(x,arguments)},function(){c.apply(x,arguments)})}catch(M){c.call(x,M)}}):(T.msg=b,T.state=1,T.chain.length>0&&l(s,T))}catch(x){c.call(new d(T),x)}}}function c(b){var _=this;_.triggered||(_.triggered=!0,_.def&&(_=_.def),_.msg=b,_.state=2,_.chain.length>0&&l(s,_))}function h(b,_,T,x){for(var M=0;M<_.length;M++)(function(k){b.resolve(_[k]).then(function(D){T(k,D)},x)})(M)}function d(b){this.def=b,this.triggered=!1}function p(b){this.promise=b,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function y(b){if(typeof b!="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(x,M){var A={success:typeof x=="function"?x:!0,failure:typeof M=="function"?M:!1};return A.promise=new this.constructor(function(L,D){if(typeof L!="function"||typeof D!="function")throw TypeError("Not a function");A.resolve=L,A.reject=D}),_.chain.push(A),_.state!==0&&l(s,_),A.promise},this.catch=function(x){return this.then(void 0,x)};try{b.call(void 0,function(x){f.call(_,x)},function(x){c.call(_,x)})}catch(T){c.call(_,T)}}var m=r({},"constructor",y,!1);return y.prototype=m,r(m,"__NPO__",0,!1),r(y,"resolve",function(_){var T=this;return _&&typeof _=="object"&&_.__NPO__===1?_:new T(function(M,A){if(typeof M!="function"||typeof A!="function")throw TypeError("Not a function");M(_)})}),r(y,"reject",function(_){return new this(function(x,M){if(typeof x!="function"||typeof M!="function")throw TypeError("Not a function");M(_)})}),r(y,"all",function(_){var T=this;return n.call(_)!="[object Array]"?T.reject(TypeError("Not an array")):_.length===0?T.resolve([]):new T(function(M,A){if(typeof M!="function"||typeof A!="function")throw TypeError("Not a function");var k=_.length,L=Array(k),D=0;h(T,_,function(R,z){L[R]=z,++D===k&&M(L)},A)})}),r(y,"race",function(_){var T=this;return n.call(_)!="[object Array]"?T.reject(TypeError("Not an array")):new T(function(M,A){if(typeof M!="function"||typeof A!="function")throw TypeError("Not a function");h(T,_,function(L,D){M(D)},A)})}),y})});var kr=B((Npe,eh)=>{(function(){var e={version:"3.8.2"},r=[].slice,t=function(v){return r.call(v)},a=self.document;function n(v){return v&&(v.ownerDocument||v.document||v).documentElement}function i(v){return v&&(v.ownerDocument&&v.ownerDocument.defaultView||v.document&&v||v.defaultView)}if(a)try{t(a.documentElement.childNodes)[0].nodeType}catch(v){t=function(g){for(var w=g.length,q=new Array(w);w--;)q[w]=g[w];return q}}if(Date.now||(Date.now=function(){return+new Date}),a)try{a.createElement("DIV").style.setProperty("opacity",0,"")}catch(v){var l=this.Element.prototype,o=l.setAttribute,s=l.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;l.setAttribute=function(g,w){o.call(this,g,w+"")},l.setAttributeNS=function(g,w,q){s.call(this,g,w,q+"")},u.setProperty=function(g,w,q){f.call(this,g,w+"",q)}}e.ascending=c;function c(v,g){return v<g?-1:v>g?1:v>=g?0:NaN}e.descending=function(v,g){return g<v?-1:g>v?1:g>=v?0:NaN},e.min=function(v,g){var w=-1,q=v.length,C,S;if(arguments.length===1){for(;++w<q;)if((S=v[w])!=null&&S>=S){C=S;break}for(;++w<q;)(S=v[w])!=null&&C>S&&(C=S)}else{for(;++w<q;)if((S=g.call(v,v[w],w))!=null&&S>=S){C=S;break}for(;++w<q;)(S=g.call(v,v[w],w))!=null&&C>S&&(C=S)}return C},e.max=function(v,g){var w=-1,q=v.length,C,S;if(arguments.length===1){for(;++w<q;)if((S=v[w])!=null&&S>=S){C=S;break}for(;++w<q;)(S=v[w])!=null&&S>C&&(C=S)}else{for(;++w<q;)if((S=g.call(v,v[w],w))!=null&&S>=S){C=S;break}for(;++w<q;)(S=g.call(v,v[w],w))!=null&&S>C&&(C=S)}return C},e.extent=function(v,g){var w=-1,q=v.length,C,S,N;if(arguments.length===1){for(;++w<q;)if((S=v[w])!=null&&S>=S){C=N=S;break}for(;++w<q;)(S=v[w])!=null&&(C>S&&(C=S),N<S&&(N=S))}else{for(;++w<q;)if((S=g.call(v,v[w],w))!=null&&S>=S){C=N=S;break}for(;++w<q;)(S=g.call(v,v[w],w))!=null&&(C>S&&(C=S),N<S&&(N=S))}return[C,N]};function h(v){return v===null?NaN:+v}function d(v){return!isNaN(v)}e.sum=function(v,g){var w=0,q=v.length,C,S=-1;if(arguments.length===1)for(;++S<q;)d(C=+v[S])&&(w+=C);else for(;++S<q;)d(C=+g.call(v,v[S],S))&&(w+=C);return w},e.mean=function(v,g){var w=0,q=v.length,C,S=-1,N=q;if(arguments.length===1)for(;++S<q;)d(C=h(v[S]))?w+=C:--N;else for(;++S<q;)d(C=h(g.call(v,v[S],S)))?w+=C:--N;if(N)return w/N},e.quantile=function(v,g){var w=(v.length-1)*g+1,q=Math.floor(w),C=+v[q-1],S=w-q;return S?C+S*(v[q]-C):C},e.median=function(v,g){var w=[],q=v.length,C,S=-1;if(arguments.length===1)for(;++S<q;)d(C=h(v[S]))&&w.push(C);else for(;++S<q;)d(C=h(g.call(v,v[S],S)))&&w.push(C);if(w.length)return e.quantile(w.sort(c),.5)},e.variance=function(v,g){var w=v.length,q=0,C,S,N=0,E=-1,F=0;if(arguments.length===1)for(;++E<w;)d(C=h(v[E]))&&(S=C-q,q+=S/++F,N+=S*(C-q));else for(;++E<w;)d(C=h(g.call(v,v[E],E)))&&(S=C-q,q+=S/++F,N+=S*(C-q));if(F>1)return N/(F-1)},e.deviation=function(){var v=e.variance.apply(this,arguments);return v&&Math.sqrt(v)};function p(v){return{left:function(g,w,q,C){for(arguments.length<3&&(q=0),arguments.length<4&&(C=g.length);q<C;){var S=q+C>>>1;v(g[S],w)<0?q=S+1:C=S}return q},right:function(g,w,q,C){for(arguments.length<3&&(q=0),arguments.length<4&&(C=g.length);q<C;){var S=q+C>>>1;v(g[S],w)>0?C=S:q=S+1}return q}}}var y=p(c);e.bisectLeft=y.left,e.bisect=e.bisectRight=y.right,e.bisector=function(v){return p(v.length===1?function(g,w){return c(v(g),w)}:v)},e.shuffle=function(v,g,w){(q=arguments.length)<3&&(w=v.length,q<2&&(g=0));for(var q=w-g,C,S;q;)S=Math.random()*q--|0,C=v[q+g],v[q+g]=v[S+g],v[S+g]=C;return v},e.permute=function(v,g){for(var w=g.length,q=new Array(w);w--;)q[w]=v[g[w]];return q},e.pairs=function(v){for(var g=0,w=v.length-1,q,C=v[0],S=new Array(w<0?0:w);g<w;)S[g]=[q=C,C=v[++g]];return S},e.transpose=function(v){if(!(S=v.length))return[];for(var g=-1,w=e.min(v,m),q=new Array(w);++g<w;)for(var C=-1,S,N=q[g]=new Array(S);++C<S;)N[C]=v[C][g];return q};function m(v){return v.length}e.zip=function(){return e.transpose(arguments)},e.keys=function(v){var g=[];for(var w in v)g.push(w);return g},e.values=function(v){var g=[];for(var w in v)g.push(v[w]);return g},e.entries=function(v){var g=[];for(var w in v)g.push({key:w,value:v[w]});return g},e.merge=function(v){for(var g=v.length,w,q=-1,C=0,S,N;++q<g;)C+=v[q].length;for(S=new Array(C);--g>=0;)for(N=v[g],w=N.length;--w>=0;)S[--C]=N[w];return S};var b=Math.abs;e.range=function(v,g,w){if(arguments.length<3&&(w=1,arguments.length<2&&(g=v,v=0)),(g-v)/w===1/0)throw new Error("infinite range");var q=[],C=_(b(w)),S=-1,N;if(v*=C,g*=C,w*=C,w<0)for(;(N=v+w*++S)>g;)q.push(N/C);else for(;(N=v+w*++S)<g;)q.push(N/C);return q};function _(v){for(var g=1;v*g%1;)g*=10;return g}function T(v,g){for(var w in g)Object.defineProperty(v.prototype,w,{value:g[w],enumerable:!1})}e.map=function(v,g){var w=new x;if(v instanceof x)v.forEach(function(E,F){w.set(E,F)});else if(Array.isArray(v)){var q=-1,C=v.length,S;if(arguments.length===1)for(;++q<C;)w.set(q,v[q]);else for(;++q<C;)w.set(g.call(v,S=v[q],q),S)}else for(var N in v)w.set(N,v[N]);return w};function x(){this._=Object.create(null)}var M="__proto__",A="\0";T(x,{has:D,get:function(v){return this._[k(v)]},set:function(v,g){return this._[k(v)]=g},remove:P,keys:R,values:function(){var v=[];for(var g in this._)v.push(this._[g]);return v},entries:function(){var v=[];for(var g in this._)v.push({key:L(g),value:this._[g]});return v},size:z,empty:H,forEach:function(v){for(var g in this._)v.call(this,L(g),this._[g])}});function k(v){return(v+="")===M||v[0]===A?A+v:v}function L(v){return(v+="")[0]===A?v.slice(1):v}function D(v){return k(v)in this._}function P(v){return(v=k(v))in this._&&delete this._[v]}function R(){var v=[];for(var g in this._)v.push(L(g));return v}function z(){var v=0;for(var g in this._)++v;return v}function H(){for(var v in this._)return!1;return!0}e.nest=function(){var v={},g=[],w=[],q,C;function S(E,F,J){if(J>=g.length)return C?C.call(v,F):q?F.sort(q):F;for(var $=-1,j=F.length,ee=g[J++],me,Te,ae,oe=new x,he;++$<j;)(he=oe.get(me=ee(Te=F[$])))?he.push(Te):oe.set(me,[Te]);return E?(Te=E(),ae=function(we,Me){Te.set(we,S(E,Me,J))}):(Te={},ae=function(we,Me){Te[we]=S(E,Me,J)}),oe.forEach(ae),Te}function N(E,F){if(F>=g.length)return E;var J=[],$=w[F++];return E.forEach(function(j,ee){J.push({key:j,values:N(ee,F)})}),$?J.sort(function(j,ee){return $(j.key,ee.key)}):J}return v.map=function(E,F){return S(F,E,0)},v.entries=function(E){return N(S(e.map,E,0),0)},v.key=function(E){return g.push(E),v},v.sortKeys=function(E){return w[g.length-1]=E,v},v.sortValues=function(E){return q=E,v},v.rollup=function(E){return C=E,v},v},e.set=function(v){var g=new O;if(v)for(var w=0,q=v.length;w<q;++w)g.add(v[w]);return g};function O(){this._=Object.create(null)}T(O,{has:D,add:function(v){return this._[k(v+="")]=!0,v},remove:P,values:R,size:z,empty:H,forEach:function(v){for(var g in this._)v.call(this,L(g))}}),e.behavior={};function U(v){return v}e.rebind=function(v,g){for(var w=1,q=arguments.length,C;++w<q;)v[C=arguments[w]]=V(v,g,g[C]);return v};function V(v,g,w){return function(){var q=w.apply(g,arguments);return q===g?v:q}}function Y(v,g){if(g in v)return g;g=g.charAt(0).toUpperCase()+g.slice(1);for(var w=0,q=I.length;w<q;++w){var C=I[w]+g;if(C in v)return C}}var I=["webkit","ms","moz","Moz","o","O"];function G(){}e.dispatch=function(){for(var v=new Z,g=-1,w=arguments.length;++g<w;)v[arguments[g]]=K(v);return v};function Z(){}Z.prototype.on=function(v,g){var w=v.indexOf("."),q="";if(w>=0&&(q=v.slice(w+1),v=v.slice(0,w)),v)return arguments.length<2?this[v].on(q):this[v].on(q,g);if(arguments.length===2){if(g==null)for(v in this)this.hasOwnProperty(v)&&this[v].on(q,null);return this}};function K(v){var g=[],w=new x;function q(){for(var C=g,S=-1,N=C.length,E;++S<N;)(E=C[S].on)&&E.apply(this,arguments);return v}return q.on=function(C,S){var N=w.get(C),E;return arguments.length<2?N&&N.on:(N&&(N.on=null,g=g.slice(0,E=g.indexOf(N)).concat(g.slice(E+1)),w.remove(C)),S&&g.push(w.set(C,{on:S})),v)},q}e.event=null;function re(){e.event.preventDefault()}function se(){for(var v=e.event,g;g=v.sourceEvent;)v=g;return v}function ce(v){for(var g=new Z,w=0,q=arguments.length;++w<q;)g[arguments[w]]=K(g);return g.of=function(C,S){return function(N){try{var E=N.sourceEvent=e.event;N.target=v,e.event=N,g[N.type].apply(C,S)}finally{e.event=E}}},g}e.requote=function(v){return v.replace(le,"\\$&")};var le=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,Q={}.__proto__?function(v,g){v.__proto__=g}:function(v,g){for(var w in g)v[w]=g[w]};function ge(v){return Q(v,be),v}var ue=function(v,g){return g.querySelector(v)},ke=function(v,g){return g.querySelectorAll(v)},ve=function(v,g){var w=v.matches||v[Y(v,"matchesSelector")];return ve=function(q,C){return w.call(q,C)},ve(v,g)};typeof Sizzle=="function"&&(ue=function(v,g){return Sizzle(v,g)[0]||null},ke=Sizzle,ve=Sizzle.matchesSelector),e.selection=function(){return e.select(a.documentElement)};var be=e.selection.prototype=[];be.select=function(v){var g=[],w,q,C,S;v=W(v);for(var N=-1,E=this.length;++N<E;){g.push(w=[]),w.parentNode=(C=this[N]).parentNode;for(var F=-1,J=C.length;++F<J;)(S=C[F])?(w.push(q=v.call(S,S.__data__,F,N)),q&&"__data__"in S&&(q.__data__=S.__data__)):w.push(null)}return ge(g)};function W(v){return typeof v=="function"?v:function(){return ue(v,this)}}be.selectAll=function(v){var g=[],w,q;v=te(v);for(var C=-1,S=this.length;++C<S;)for(var N=this[C],E=-1,F=N.length;++E<F;)(q=N[E])&&(g.push(w=t(v.call(q,q.__data__,E,C))),w.parentNode=q);return ge(g)};function te(v){return typeof v=="function"?v:function(){return ke(v,this)}}var X="http://www.w3.org/1999/xhtml",ye={svg:"http://www.w3.org/2000/svg",xhtml:X,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:ye,qualify:function(v){var g=v.indexOf(":"),w=v;return g>=0&&(w=v.slice(0,g))!=="xmlns"&&(v=v.slice(g+1)),ye.hasOwnProperty(w)?{space:ye[w],local:v}:v}},be.attr=function(v,g){if(arguments.length<2){if(typeof v=="string"){var w=this.node();return v=e.ns.qualify(v),v.local?w.getAttributeNS(v.space,v.local):w.getAttribute(v)}for(g in v)this.each(_e(g,v[g]));return this}return this.each(_e(v,g))};function _e(v,g){v=e.ns.qualify(v);function w(){this.removeAttribute(v)}function q(){this.removeAttributeNS(v.space,v.local)}function C(){this.setAttribute(v,g)}function S(){this.setAttributeNS(v.space,v.local,g)}function N(){var F=g.apply(this,arguments);F==null?this.removeAttribute(v):this.setAttribute(v,F)}function E(){var F=g.apply(this,arguments);F==null?this.removeAttributeNS(v.space,v.local):this.setAttributeNS(v.space,v.local,F)}return g==null?v.local?q:w:typeof g=="function"?v.local?E:N:v.local?S:C}function xe(v){return v.trim().replace(/\s+/g," ")}be.classed=function(v,g){if(arguments.length<2){if(typeof v=="string"){var w=this.node(),q=(v=ze(v)).length,C=-1;if(g=w.classList){for(;++C<q;)if(!g.contains(v[C]))return!1}else for(g=w.getAttribute("class");++C<q;)if(!Ie(v[C]).test(g))return!1;return!0}for(g in v)this.each(Re(g,v[g]));return this}return this.each(Re(v,g))};function Ie(v){return new RegExp("(?:^|\\s+)"+e.requote(v)+"(?:\\s+|$)","g")}function ze(v){return(v+"").trim().split(/^|\s+/)}function Re(v,g){v=ze(v).map(He);var w=v.length;function q(){for(var S=-1;++S<w;)v[S](this,g)}function C(){for(var S=-1,N=g.apply(this,arguments);++S<w;)v[S](this,N)}return typeof g=="function"?C:q}function He(v){var g=Ie(v);return function(w,q){if(C=w.classList)return q?C.add(v):C.remove(v);var C=w.getAttribute("class")||"";q?(g.lastIndex=0,g.test(C)||w.setAttribute("class",xe(C+" "+v))):w.setAttribute("class",xe(C.replace(g," ")))}}be.style=function(v,g,w){var q=arguments.length;if(q<3){if(typeof v!="string"){q<2&&(g="");for(w in v)this.each(Be(w,v[w],g));return this}if(q<2){var C=this.node();return i(C).getComputedStyle(C,null).getPropertyValue(v)}w=""}return this.each(Be(v,g,w))};function Be(v,g,w){function q(){this.style.removeProperty(v)}function C(){this.style.setProperty(v,g,w)}function S(){var N=g.apply(this,arguments);N==null?this.style.removeProperty(v):this.style.setProperty(v,N,w)}return g==null?q:typeof g=="function"?S:C}be.property=function(v,g){if(arguments.length<2){if(typeof v=="string")return this.node()[v];for(g in v)this.each(Fe(g,v[g]));return this}return this.each(Fe(v,g))};function Fe(v,g){function w(){delete this[v]}function q(){this[v]=g}function C(){var S=g.apply(this,arguments);S==null?delete this[v]:this[v]=S}return g==null?w:typeof g=="function"?C:q}be.text=function(v){return arguments.length?this.each(typeof v=="function"?function(){var g=v.apply(this,arguments);this.textContent=g==null?"":g}:v==null?function(){this.textContent=""}:function(){this.textContent=v}):this.node().textContent},be.html=function(v){return arguments.length?this.each(typeof v=="function"?function(){var g=v.apply(this,arguments);this.innerHTML=g==null?"":g}:v==null?function(){this.innerHTML=""}:function(){this.innerHTML=v}):this.node().innerHTML},be.append=function(v){return v=Pe(v),this.select(function(){return this.appendChild(v.apply(this,arguments))})};function Pe(v){function g(){var q=this.ownerDocument,C=this.namespaceURI;return C===X&&q.documentElement.namespaceURI===X?q.createElement(v):q.createElementNS(C,v)}function w(){return this.ownerDocument.createElementNS(v.space,v.local)}return typeof v=="function"?v:(v=e.ns.qualify(v)).local?w:g}be.insert=function(v,g){return v=Pe(v),g=W(g),this.select(function(){return this.insertBefore(v.apply(this,arguments),g.apply(this,arguments)||null)})},be.remove=function(){return this.each(Je)};function Je(){var v=this.parentNode;v&&v.removeChild(this)}be.data=function(v,g){var w=-1,q=this.length,C,S;if(!arguments.length){for(v=new Array(q=(C=this[0]).length);++w<q;)(S=C[w])&&(v[w]=S.__data__);return v}function N($,j){var ee,me=$.length,Te=j.length,ae=Math.min(me,Te),oe=new Array(Te),he=new Array(Te),we=new Array(me),Me,pe;if(g){var Ue=new x,rr=new Array(me),or;for(ee=-1;++ee<me;)(Me=$[ee])&&(Ue.has(or=g.call(Me,Me.__data__,ee))?we[ee]=Me:Ue.set(or,Me),rr[ee]=or);for(ee=-1;++ee<Te;)(Me=Ue.get(or=g.call(j,pe=j[ee],ee)))?Me!==!0&&(oe[ee]=Me,Me.__data__=pe):he[ee]=We(pe),Ue.set(or,!0);for(ee=-1;++ee<me;)ee in rr&&Ue.get(rr[ee])!==!0&&(we[ee]=$[ee])}else{for(ee=-1;++ee<ae;)Me=$[ee],pe=j[ee],Me?(Me.__data__=pe,oe[ee]=Me):he[ee]=We(pe);for(;ee<Te;++ee)he[ee]=We(j[ee]);for(;ee<me;++ee)we[ee]=$[ee]}he.update=oe,he.parentNode=oe.parentNode=we.parentNode=$.parentNode,E.push(he),F.push(oe),J.push(we)}var E=cr([]),F=ge([]),J=ge([]);if(typeof v=="function")for(;++w<q;)N(C=this[w],v.call(C,C.parentNode.__data__,w));else for(;++w<q;)N(C=this[w],v);return F.enter=function(){return E},F.exit=function(){return J},F};function We(v){return{__data__:v}}be.datum=function(v){return arguments.length?this.property("__data__",v):this.property("__data__")},be.filter=function(v){var g=[],w,q,C;typeof v!="function"&&(v=ie(v));for(var S=0,N=this.length;S<N;S++){g.push(w=[]),w.parentNode=(q=this[S]).parentNode;for(var E=0,F=q.length;E<F;E++)(C=q[E])&&v.call(C,C.__data__,E,S)&&w.push(C)}return ge(g)};function ie(v){return function(){return ve(this,v)}}be.order=function(){for(var v=-1,g=this.length;++v<g;)for(var w=this[v],q=w.length-1,C=w[q],S;--q>=0;)(S=w[q])&&(C&&C!==S.nextSibling&&C.parentNode.insertBefore(S,C),C=S);return this},be.sort=function(v){v=Ae.apply(this,arguments);for(var g=-1,w=this.length;++g<w;)this[g].sort(v);return this.order()};function Ae(v){return arguments.length||(v=c),function(g,w){return g&&w?v(g.__data__,w.__data__):!g-!w}}be.each=function(v){return Ce(this,function(g,w,q){v.call(g,g.__data__,w,q)})};function Ce(v,g){for(var w=0,q=v.length;w<q;w++)for(var C=v[w],S=0,N=C.length,E;S<N;S++)(E=C[S])&&g(E,S,w);return v}be.call=function(v){var g=t(arguments);return v.apply(g[0]=this,g),this},be.empty=function(){return!this.node()},be.node=function(){for(var v=0,g=this.length;v<g;v++)for(var w=this[v],q=0,C=w.length;q<C;q++){var S=w[q];if(S)return S}return null},be.size=function(){var v=0;return Ce(this,function(){++v}),v};function cr(v){return Q(v,tr),v}var tr=[];e.selection.enter=cr,e.selection.enter.prototype=tr,tr.append=be.append,tr.empty=be.empty,tr.node=be.node,tr.call=be.call,tr.size=be.size,tr.select=function(v){for(var g=[],w,q,C,S,N,E=-1,F=this.length;++E<F;){C=(S=this[E]).update,g.push(w=[]),w.parentNode=S.parentNode;for(var J=-1,$=S.length;++J<$;)(N=S[J])?(w.push(C[J]=q=v.call(S.parentNode,N.__data__,J,E)),q.__data__=N.__data__):w.push(null)}return ge(g)},tr.insert=function(v,g){return arguments.length<2&&(g=De(this)),be.insert.call(this,v,g)};function De(v){var g,w;return function(q,C,S){var N=v[S].update,E=N.length,F;for(S!=w&&(w=S,g=0),C>=g&&(g=C+1);!(F=N[g])&&++g<E;);return F}}e.select=function(v){var g;return typeof v=="string"?(g=[ue(v,a)],g.parentNode=a.documentElement):(g=[v],g.parentNode=n(v)),ge([g])},e.selectAll=function(v){var g;return typeof v=="string"?(g=t(ke(v,a)),g.parentNode=a.documentElement):(g=t(v),g.parentNode=null),ge([g])},be.on=function(v,g,w){var q=arguments.length;if(q<3){if(typeof v!="string"){q<2&&(g=!1);for(w in v)this.each(Le(w,v[w],g));return this}if(q<2)return(q=this.node()["__on"+v])&&q._;w=!1}return this.each(Le(v,g,w))};function Le(v,g,w){var q="__on"+v,C=v.indexOf("."),S=Xe;C>0&&(v=v.slice(0,C));var N=Ye.get(v);N&&(v=N,S=Ge);function E(){var $=this[q];$&&(this.removeEventListener(v,$,$.$),delete this[q])}function F(){var $=S(g,t(arguments));E.call(this),this.addEventListener(v,this[q]=$,$.$=w),$._=g}function J(){var $=new RegExp("^__on([^.]+)"+e.requote(v)+"$"),j;for(var ee in this)if(j=ee.match($)){var me=this[ee];this.removeEventListener(j[1],me,me.$),delete this[ee]}}return C?g?F:E:g?G:J}var Ye=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&Ye.forEach(function(v){"on"+v in a&&Ye.remove(v)});function Xe(v,g){return function(w){var q=e.event;e.event=w,g[0]=this.__data__;try{v.apply(this,g)}finally{e.event=q}}}function Ge(v,g){var w=Xe(v,g);return function(q){var C=this,S=q.relatedTarget;(!S||S!==C&&!(S.compareDocumentPosition(C)&8))&&w.call(C,q)}}var Oe,$e=0;function fr(v){var g=".dragsuppress-"+ ++$e,w="click"+g,q=e.select(i(v)).on("touchmove"+g,re).on("dragstart"+g,re).on("selectstart"+g,re);if(Oe==null&&(Oe="onselectstart"in v?!1:Y(v.style,"userSelect")),Oe){var C=n(v).style,S=C[Oe];C[Oe]="none"}return function(N){if(q.on(g,null),Oe&&(C[Oe]=S),N){var E=function(){q.on(w,null)};q.on(w,function(){re(),E()},!0),setTimeout(E,0)}}}e.mouse=function(v){return Ne(v,se())};var lr=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Ne(v,g){g.changedTouches&&(g=g.changedTouches[0]);var w=v.ownerSVGElement||v;if(w.createSVGPoint){var q=w.createSVGPoint();if(lr<0){var C=i(v);if(C.scrollX||C.scrollY){w=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var S=w[0][0].getScreenCTM();lr=!(S.f||S.e),w.remove()}}return lr?(q.x=g.pageX,q.y=g.pageY):(q.x=g.clientX,q.y=g.clientY),q=q.matrixTransform(v.getScreenCTM().inverse()),[q.x,q.y]}var N=v.getBoundingClientRect();return[g.clientX-N.left-v.clientLeft,g.clientY-N.top-v.clientTop]}e.touch=function(v,g,w){if(arguments.length<3&&(w=g,g=se().changedTouches),g){for(var q=0,C=g.length,S;q<C;++q)if((S=g[q]).identifier===w)return Ne(v,S)}},e.behavior.drag=function(){var v=ce(C,"drag","dragstart","dragend"),g=null,w=S(G,e.mouse,i,"mousemove","mouseup"),q=S(ne,e.touch,U,"touchmove","touchend");function C(){this.on("mousedown.drag",w).on("touchstart.drag",q)}function S(N,E,F,J,$){return function(){var j=this,ee=e.event.target.correspondingElement||e.event.target,me=j.parentNode,Te=v.of(j,arguments),ae=0,oe=N(),he=".drag"+(oe==null?"":"-"+oe),we,Me=e.select(F(ee)).on(J+he,rr).on($+he,or),pe=fr(ee),Ue=E(me,oe);g?(we=g.apply(j,arguments),we=[we.x-Ue[0],we.y-Ue[1]]):we=[0,0],Te({type:"dragstart"});function rr(){var ar=E(me,oe),hr,dr;ar&&(hr=ar[0]-Ue[0],dr=ar[1]-Ue[1],ae|=hr|dr,Ue=ar,Te({type:"drag",x:ar[0]+we[0],y:ar[1]+we[1],dx:hr,dy:dr}))}function or(){E(me,oe)&&(Me.on(J+he,null).on($+he,null),pe(ae),Te({type:"dragend"}))}}}return C.origin=function(N){return arguments.length?(g=N,C):g},e.rebind(C,v,"on")};function ne(){return e.event.changedTouches[0].identifier}e.touches=function(v,g){return arguments.length<2&&(g=se().touches),g?t(g).map(function(w){var q=Ne(v,w);return q.identifier=w.identifier,q}):[]};var fe=1e-6,Se=fe*fe,qe=Math.PI,ir=2*qe,vr=ir-fe,sr=qe/2,Ar=qe/180,Ur=180/qe;function et(v){return v>0?1:v<0?-1:0}function Wr(v,g,w){return(g[0]-v[0])*(w[1]-v[1])-(g[1]-v[1])*(w[0]-v[0])}function Nt(v){return v>1?0:v<-1?qe:Math.acos(v)}function oa(v){return v>1?sr:v<-1?-sr:Math.asin(v)}function Na(v){return((v=Math.exp(v))-1/v)/2}function sa(v){return((v=Math.exp(v))+1/v)/2}function Sn(v){return((v=Math.exp(2*v))-1)/(v+1)}function Za(v){return(v=Math.sin(v/2))*v}var ua=Math.SQRT2,Ja=2,gr=4;e.interpolateZoom=function(v,g){var w=v[0],q=v[1],C=v[2],S=g[0],N=g[1],E=g[2],F=S-w,J=N-q,$=F*F+J*J,j,ee;if($<Se)ee=Math.log(E/C)/ua,j=function(we){return[w+we*F,q+we*J,C*Math.exp(ua*we*ee)]};else{var me=Math.sqrt($),Te=(E*E-C*C+gr*$)/(2*C*Ja*me),ae=(E*E-C*C-gr*$)/(2*E*Ja*me),oe=Math.log(Math.sqrt(Te*Te+1)-Te),he=Math.log(Math.sqrt(ae*ae+1)-ae);ee=(he-oe)/ua,j=function(we){var Me=we*ee,pe=sa(oe),Ue=C/(Ja*me)*(pe*Sn(ua*Me+oe)-Na(oe));return[w+Ue*F,q+Ue*J,C*pe/sa(ua*Me+oe)]}}return j.duration=ee*1e3,j},e.behavior.zoom=function(){var v={x:0,y:0,k:1},g,w,q,C=[960,500],S=ft,N=250,E=0,F="mousedown.zoom",J="mousemove.zoom",$="mouseup.zoom",j,ee="touchstart.zoom",me,Te=ce(Me,"zoomstart","zoom","zoomend"),ae,oe,he,we;bt||(bt="onwheel"in a?(Xr=function(){return-e.event.deltaY*(e.event.deltaMode?120:1)},"wheel"):"onmousewheel"in a?(Xr=function(){return e.event.wheelDelta},"mousewheel"):(Xr=function(){return-e.event.detail},"MozMousePixelScroll"));function Me(er){er.on(F,Mr).on(bt+".zoom",Ft).on("dblclick.zoom",at).on(ee,Kr)}Me.event=function(er){er.each(function(){var Dr=Te.of(this,arguments),Pr=v;No?e.select(this).transition().each("start.zoom",function(){v=this.__chart__||{x:0,y:0,k:1},dr(Dr)}).tween("zoom:zoom",function(){var Qr=C[0],kt=C[1],Zt=w?w[0]:Qr/2,xa=w?w[1]:kt/2,Ha=e.interpolateZoom([(Zt-v.x)/v.k,(xa-v.y)/v.k,Qr/v.k],[(Zt-Pr.x)/Pr.k,(xa-Pr.y)/Pr.k,Qr/Pr.k]);return function($a){var Oa=Ha($a),en=Qr/Oa[2];this.__chart__=v={x:Zt-Oa[0]*en,y:xa-Oa[1]*en,k:en},Sr(Dr)}}).each("interrupt.zoom",function(){pr(Dr)}).each("end.zoom",function(){pr(Dr)}):(this.__chart__=v,dr(Dr),Sr(Dr),pr(Dr))})},Me.translate=function(er){return arguments.length?(v={x:+er[0],y:+er[1],k:v.k},hr(),Me):[v.x,v.y]},Me.scale=function(er){return arguments.length?(v={x:v.x,y:v.y,k:null},rr(+er),hr(),Me):v.k},Me.scaleExtent=function(er){return arguments.length?(S=er==null?ft:[+er[0],+er[1]],Me):S},Me.center=function(er){return arguments.length?(q=er&&[+er[0],+er[1]],Me):q},Me.size=function(er){return arguments.length?(C=er&&[+er[0],+er[1]],Me):C},Me.duration=function(er){return arguments.length?(N=+er,Me):N},Me.x=function(er){return arguments.length?(oe=er,ae=er.copy(),v={x:0,y:0,k:1},Me):oe},Me.y=function(er){return arguments.length?(we=er,he=er.copy(),v={x:0,y:0,k:1},Me):we};function pe(er){return[(er[0]-v.x)/v.k,(er[1]-v.y)/v.k]}function Ue(er){return[er[0]*v.k+v.x,er[1]*v.k+v.y]}function rr(er){v.k=Math.max(S[0],Math.min(S[1],er))}function or(er,Dr){Dr=Ue(Dr),v.x+=er[0]-Dr[0],v.y+=er[1]-Dr[1]}function ar(er,Dr,Pr,Qr){er.__chart__={x:v.x,y:v.y,k:v.k},rr(Math.pow(2,Qr)),or(w=Dr,Pr),er=e.select(er),N>0&&(er=er.transition().duration(N)),er.call(Me.event)}function hr(){oe&&oe.domain(ae.range().map(function(er){return(er-v.x)/v.k}).map(ae.invert)),we&&we.domain(he.range().map(function(er){return(er-v.y)/v.k}).map(he.invert))}function dr(er){E++||er({type:"zoomstart"})}function Sr(er){hr(),er({type:"zoom",scale:v.k,translate:[v.x,v.y]})}function pr(er){--E||(er({type:"zoomend"}),w=null)}function Mr(){var er=this,Dr=Te.of(er,arguments),Pr=0,Qr=e.select(i(er)).on(J,xa).on($,Ha),kt=pe(e.mouse(er)),Zt=fr(er);Z0.call(er),dr(Dr);function xa(){Pr=1,or(e.mouse(er),kt),Sr(Dr)}function Ha(){Qr.on(J,null).on($,null),Zt(Pr),pr(Dr)}}function Kr(){var er=this,Dr=Te.of(er,arguments),Pr={},Qr=0,kt,Zt=".zoom-"+e.event.changedTouches[0].identifier,xa="touchmove"+Zt,Ha="touchend"+Zt,$a=[],Oa=e.select(er),en=fr(er);rn(),dr(Dr),Oa.on(F,null).on(ee,rn);function La(){var oi=e.touches(er);return kt=v.k,oi.forEach(function(ba){ba.identifier in Pr&&(Pr[ba.identifier]=pe(ba))}),oi}function rn(){var oi=e.event.target;e.select(oi).on(xa,Fo).on(Ha,WW),$a.push(oi);for(var ba=e.event.changedTouches,Pn=0,zi=ba.length;Pn<zi;++Pn)Pr[ba[Pn].identifier]=null;var En=La(),fu=Date.now();if(En.length===1){if(fu-me<500){var Io=En[0];ar(er,Io,Pr[Io.identifier],Math.floor(Math.log(v.k)/Math.LN2)+1),re()}me=fu}else if(En.length>1){var Io=En[0],Pl=En[1],K0=Io[0]-Pl[0],Y4=Io[1]-Pl[1];Qr=K0*K0+Y4*Y4}}function Fo(){var oi=e.touches(er),ba,Pn,zi,En;Z0.call(er);for(var fu=0,Io=oi.length;fu<Io;++fu,En=null)if(zi=oi[fu],En=Pr[zi.identifier]){if(Pn)break;ba=zi,Pn=En}if(En){var Pl=(Pl=zi[0]-ba[0])*Pl+(Pl=zi[1]-ba[1])*Pl,K0=Qr&&Math.sqrt(Pl/Qr);ba=[(ba[0]+zi[0])/2,(ba[1]+zi[1])/2],Pn=[(Pn[0]+En[0])/2,(Pn[1]+En[1])/2],rr(K0*kt)}me=null,or(ba,Pn),Sr(Dr)}function WW(){if(e.event.touches.length){for(var oi=e.event.changedTouches,ba=0,Pn=oi.length;ba<Pn;++ba)delete Pr[oi[ba].identifier];for(var zi in Pr)return void La()}e.selectAll($a).on(Zt,null),Oa.on(F,Mr).on(ee,Kr),en(),pr(Dr)}}function Ft(){var er=Te.of(this,arguments);j?clearTimeout(j):(Z0.call(this),g=pe(w=q||e.mouse(this)),dr(er)),j=setTimeout(function(){j=null,pr(er)},50),re(),rr(Math.pow(2,Xr()*.002)*v.k),or(w,g),Sr(er)}function at(){var er=e.mouse(this),Dr=Math.log(v.k)/Math.LN2;ar(this,er,pe(er),e.event.shiftKey?Math.ceil(Dr)-1:Math.floor(Dr)+1)}return e.rebind(Me,Te,"on")};var ft=[0,1/0],Xr,bt;e.color=Lt;function Lt(){}Lt.prototype.toString=function(){return this.rgb()+""},e.hsl=ct;function ct(v,g,w){return this instanceof ct?(this.h=+v,this.s=+g,void(this.l=+w)):arguments.length<2?v instanceof ct?new ct(v.h,v.s,v.l):Zr(""+v,rt,ct):new ct(v,g,w)}var _t=ct.prototype=new Lt;_t.brighter=function(v){return v=Math.pow(.7,arguments.length?v:1),new ct(this.h,this.s,this.l/v)},_t.darker=function(v){return v=Math.pow(.7,arguments.length?v:1),new ct(this.h,this.s,v*this.l)},_t.rgb=function(){return Fa(this.h,this.s,this.l)};function Fa(v,g,w){var q,C;v=isNaN(v)?0:(v%=360)<0?v+360:v,g=isNaN(g)||g<0?0:g>1?1:g,w=w<0?0:w>1?1:w,C=w<=.5?w*(1+g):w+g-w*g,q=2*w-C;function S(E){return E>360?E-=360:E<0&&(E+=360),E<60?q+(C-q)*E/60:E<180?C:E<240?q+(C-q)*(240-E)/60:q}function N(E){return Math.round(S(E)*255)}return new Ia(N(v+120),N(v),N(v-120))}e.hcl=fa;function fa(v,g,w){return this instanceof fa?(this.h=+v,this.c=+g,void(this.l=+w)):arguments.length<2?v instanceof fa?new fa(v.h,v.c,v.l):v instanceof Qt?q0(v.l,v.a,v.b):q0((v=nr((v=e.rgb(v)).r,v.g,v.b)).l,v.a,v.b):new fa(v,g,w)}var ai=fa.prototype=new Lt;ai.brighter=function(v){return new fa(this.h,this.c,Math.min(100,this.l+it*(arguments.length?v:1)))},ai.darker=function(v){return new fa(this.h,this.c,Math.max(0,this.l-it*(arguments.length?v:1)))},ai.rgb=function(){return ni(this.h,this.c,this.l).rgb()};function ni(v,g,w){return isNaN(v)&&(v=0),isNaN(g)&&(g=0),new Qt(w,Math.cos(v*=Ar)*g,Math.sin(v)*g)}e.lab=Qt;function Qt(v,g,w){return this instanceof Qt?(this.l=+v,this.a=+g,void(this.b=+w)):arguments.length<2?v instanceof Qt?new Qt(v.l,v.a,v.b):v instanceof fa?ni(v.h,v.c,v.l):nr((v=Ia(v)).r,v.g,v.b):new Qt(v,g,w)}var it=18,ma=.95047,Do=1,Po=1.08883,Sl=Qt.prototype=new Lt;Sl.brighter=function(v){return new Qt(Math.min(100,this.l+it*(arguments.length?v:1)),this.a,this.b)},Sl.darker=function(v){return new Qt(Math.max(0,this.l-it*(arguments.length?v:1)),this.a,this.b)},Sl.rgb=function(){return k0(this.l,this.a,this.b)};function k0(v,g,w){var q=(v+16)/116,C=q+g/500,S=q-w/200;return C=ac(C)*ma,q=ac(q)*Do,S=ac(S)*Po,new Ia(ic(3.2404542*C-1.5371385*q-.4985314*S),ic(-.969266*C+1.8760108*q+.041556*S),ic(.0556434*C-.2040259*q+1.0572252*S))}function q0(v,g,w){return v>0?new fa(Math.atan2(w,g)*Ur,Math.sqrt(g*g+w*w),v):new fa(NaN,NaN,v)}function ac(v){return v>.206893034?v*v*v:(v-4/29)/7.787037}function nc(v){return v>.008856?Math.pow(v,1/3):7.787037*v+4/29}function ic(v){return Math.round(255*(v<=.00304?12.92*v:1.055*Math.pow(v,1/2.4)-.055))}e.rgb=Ia;function Ia(v,g,w){return this instanceof Ia?(this.r=~~v,this.g=~~g,void(this.b=~~w)):arguments.length<2?v instanceof Ia?new Ia(v.r,v.g,v.b):Zr(""+v,Ia,Fa):new Ia(v,g,w)}function C0(v){return new Ia(v>>16,v>>8&255,v&255)}function tu(v){return C0(v)+""}var au=Ia.prototype=new Lt;au.brighter=function(v){v=Math.pow(.7,arguments.length?v:1);var g=this.r,w=this.g,q=this.b,C=30;return!g&&!w&&!q?new Ia(C,C,C):(g&&g<C&&(g=C),w&&w<C&&(w=C),q&&q<C&&(q=C),new Ia(Math.min(255,g/v),Math.min(255,w/v),Math.min(255,q/v)))},au.darker=function(v){return v=Math.pow(.7,arguments.length?v:1),new Ia(v*this.r,v*this.g,v*this.b)},au.hsl=function(){return rt(this.r,this.g,this.b)},au.toString=function(){return"#"+mr(this.r)+mr(this.g)+mr(this.b)};function mr(v){return v<16?"0"+Math.max(0,v).toString(16):Math.min(255,v).toString(16)}function Zr(v,g,w){var q=0,C=0,S=0,N,E,F;if(N=/([a-z]+)\((.*)\)/.exec(v=v.toLowerCase()),N)switch(E=N[2].split(","),N[1]){case"hsl":return w(parseFloat(E[0]),parseFloat(E[1])/100,parseFloat(E[2])/100);case"rgb":return g(vt(E[0]),vt(E[1]),vt(E[2]))}return(F=ga.get(v))?g(F.r,F.g,F.b):(v!=null&&v.charAt(0)==="#"&&!isNaN(F=parseInt(v.slice(1),16))&&(v.length===4?(q=(F&3840)>>4,q=q>>4|q,C=F&240,C=C>>4|C,S=F&15,S=S<<4|S):v.length===7&&(q=(F&16711680)>>16,C=(F&65280)>>8,S=F&255)),g(q,C,S))}function rt(v,g,w){var q=Math.min(v/=255,g/=255,w/=255),C=Math.max(v,g,w),S=C-q,N,E,F=(C+q)/2;return S?(E=F<.5?S/(C+q):S/(2-C-q),v==C?N=(g-w)/S+(g<w?6:0):g==C?N=(w-v)/S+2:N=(v-g)/S+4,N*=60):(N=NaN,E=F>0&&F<1?0:N),new ct(N,E,F)}function nr(v,g,w){v=ya(v),g=ya(g),w=ya(w);var q=nc((.4124564*v+.3575761*g+.1804375*w)/ma),C=nc((.2126729*v+.7151522*g+.072175*w)/Do),S=nc((.0193339*v+.119192*g+.9503041*w)/Po);return Qt(116*C-16,500*(q-C),200*(C-S))}function ya(v){return(v/=255)<=.04045?v/12.92:Math.pow((v+.055)/1.055,2.4)}function vt(v){var g=parseFloat(v);return v.charAt(v.length-1)==="%"?Math.round(g*2.55):g}var ga=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});ga.forEach(function(v,g){ga.set(v,C0(g))});function Nr(v){return typeof v=="function"?v:function(){return v}}e.functor=Nr,e.xhr=ii(U);function ii(v){return function(g,w,q){return arguments.length===2&&typeof w=="function"&&(q=w,w=null),Eo(g,w,v,q)}}function Eo(v,g,w,q){var C={},S=e.dispatch("beforesend","progress","load","error"),N={},E=new XMLHttpRequest,F=null;self.XDomainRequest&&!("withCredentials"in E)&&/^(http(s)?:)?\/\//.test(v)&&(E=new XDomainRequest),"onload"in E?E.onload=E.onerror=J:E.onreadystatechange=function(){E.readyState>3&&J()};function J(){var $=E.status,j;if(!$&&ZU(E)||$>=200&&$<300||$===304){try{j=w.call(C,E)}catch(ee){S.error.call(C,ee);return}S.load.call(C,j)}else S.error.call(C,E)}return E.onprogress=function($){var j=e.event;e.event=$;try{S.progress.call(C,E)}finally{e.event=j}},C.header=function($,j){return $=($+"").toLowerCase(),arguments.length<2?N[$]:(j==null?delete N[$]:N[$]=j+"",C)},C.mimeType=function($){return arguments.length?(g=$==null?null:$+"",C):g},C.responseType=function($){return arguments.length?(F=$,C):F},C.response=function($){return w=$,C},["get","post"].forEach(function($){C[$]=function(){return C.send.apply(C,[$].concat(t(arguments)))}}),C.send=function($,j,ee){if(arguments.length===2&&typeof j=="function"&&(ee=j,j=null),E.open($,v,!0),g!=null&&!("accept"in N)&&(N.accept=g+",*/*"),E.setRequestHeader)for(var me in N)E.setRequestHeader(me,N[me]);return g!=null&&E.overrideMimeType&&E.overrideMimeType(g),F!=null&&(E.responseType=F),ee!=null&&C.on("error",ee).on("load",function(Te){ee(null,Te)}),S.beforesend.call(C,E),E.send(j==null?null:j),C},C.abort=function(){return E.abort(),C},e.rebind(C,S,"on"),q==null?C:C.get(XU(q))}function XU(v){return v.length===1?function(g,w){v(g==null?w:null)}:v}function ZU(v){var g=v.responseType;return g&&g!=="text"?v.response:v.responseText}e.dsv=function(v,g){var w=new RegExp('["'+v+`
|
|
15
|
+
"use strict";var Plotly=(()=>{var Ty=Object.defineProperty;var XW=Object.getOwnPropertyDescriptor;var ZW=Object.getOwnPropertyNames;var JW=Object.prototype.hasOwnProperty;var nt=(e,r)=>()=>(e&&(r=e(e=0)),r);var B=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),$W=(e,r)=>{for(var t in r)Ty(e,t,{get:r[t],enumerable:!0})},KW=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of ZW(r))!JW.call(e,n)&&n!==t&&Ty(e,n,{get:()=>r[n],enumerable:!(a=XW(r,n))||a.enumerable});return e};var My=e=>KW(Ty({},"__esModule",{value:!0}),e);var Q0=B(G4=>{"use strict";G4.version="3.0.3"});var V4=B((U4,j0)=>{(function(r,t,a){t[r]=t[r]||a(),typeof j0!="undefined"&&j0.exports&&(j0.exports=t[r])})("Promise",typeof window!="undefined"?window:U4,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(_,T,x,M){return Object.defineProperty(_,T,{value:x,writable:!0,configurable:M!==!1})}}catch(b){r=function(T,x,M){return T[x]=M,T}}a=function(){var _,T,x;function M(A,k){this.fn=A,this.self=k,this.next=void 0}return{add:function(k,L){x=new M(k,L),T?T.next=x:_=x,T=x,x=void 0},drain:function(){var k=_;for(_=T=t=void 0;k;)k.fn.call(k.self),k=k.next}}}();function l(b,_){a.add(b,_),t||(t=i(a.drain))}function o(b){var _,T=typeof b;return b!=null&&(T=="object"||T=="function")&&(_=b.then),typeof _=="function"?_:!1}function s(){for(var b=0;b<this.chain.length;b++)u(this,this.state===1?this.chain[b].success:this.chain[b].failure,this.chain[b]);this.chain.length=0}function u(b,_,T){var x,M;try{_===!1?T.reject(b.msg):(_===!0?x=b.msg:x=_.call(void 0,b.msg),x===T.promise?T.reject(TypeError("Promise-chain cycle")):(M=o(x))?M.call(x,T.resolve,T.reject):T.resolve(x))}catch(A){T.reject(A)}}function f(b){var _,T=this;if(!T.triggered){T.triggered=!0,T.def&&(T=T.def);try{(_=o(b))?l(function(){var x=new d(T);try{_.call(b,function(){f.apply(x,arguments)},function(){c.apply(x,arguments)})}catch(M){c.call(x,M)}}):(T.msg=b,T.state=1,T.chain.length>0&&l(s,T))}catch(x){c.call(new d(T),x)}}}function c(b){var _=this;_.triggered||(_.triggered=!0,_.def&&(_=_.def),_.msg=b,_.state=2,_.chain.length>0&&l(s,_))}function h(b,_,T,x){for(var M=0;M<_.length;M++)(function(k){b.resolve(_[k]).then(function(D){T(k,D)},x)})(M)}function d(b){this.def=b,this.triggered=!1}function p(b){this.promise=b,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function y(b){if(typeof b!="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(x,M){var A={success:typeof x=="function"?x:!0,failure:typeof M=="function"?M:!1};return A.promise=new this.constructor(function(L,D){if(typeof L!="function"||typeof D!="function")throw TypeError("Not a function");A.resolve=L,A.reject=D}),_.chain.push(A),_.state!==0&&l(s,_),A.promise},this.catch=function(x){return this.then(void 0,x)};try{b.call(void 0,function(x){f.call(_,x)},function(x){c.call(_,x)})}catch(T){c.call(_,T)}}var m=r({},"constructor",y,!1);return y.prototype=m,r(m,"__NPO__",0,!1),r(y,"resolve",function(_){var T=this;return _&&typeof _=="object"&&_.__NPO__===1?_:new T(function(M,A){if(typeof M!="function"||typeof A!="function")throw TypeError("Not a function");M(_)})}),r(y,"reject",function(_){return new this(function(x,M){if(typeof x!="function"||typeof M!="function")throw TypeError("Not a function");M(_)})}),r(y,"all",function(_){var T=this;return n.call(_)!="[object Array]"?T.reject(TypeError("Not an array")):_.length===0?T.resolve([]):new T(function(M,A){if(typeof M!="function"||typeof A!="function")throw TypeError("Not a function");var k=_.length,L=Array(k),D=0;h(T,_,function(R,z){L[R]=z,++D===k&&M(L)},A)})}),r(y,"race",function(_){var T=this;return n.call(_)!="[object Array]"?T.reject(TypeError("Not an array")):new T(function(M,A){if(typeof M!="function"||typeof A!="function")throw TypeError("Not a function");h(T,_,function(L,D){M(D)},A)})}),y})});var kr=B((Npe,eh)=>{(function(){var e={version:"3.8.2"},r=[].slice,t=function(v){return r.call(v)},a=self.document;function n(v){return v&&(v.ownerDocument||v.document||v).documentElement}function i(v){return v&&(v.ownerDocument&&v.ownerDocument.defaultView||v.document&&v||v.defaultView)}if(a)try{t(a.documentElement.childNodes)[0].nodeType}catch(v){t=function(g){for(var w=g.length,q=new Array(w);w--;)q[w]=g[w];return q}}if(Date.now||(Date.now=function(){return+new Date}),a)try{a.createElement("DIV").style.setProperty("opacity",0,"")}catch(v){var l=this.Element.prototype,o=l.setAttribute,s=l.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;l.setAttribute=function(g,w){o.call(this,g,w+"")},l.setAttributeNS=function(g,w,q){s.call(this,g,w,q+"")},u.setProperty=function(g,w,q){f.call(this,g,w+"",q)}}e.ascending=c;function c(v,g){return v<g?-1:v>g?1:v>=g?0:NaN}e.descending=function(v,g){return g<v?-1:g>v?1:g>=v?0:NaN},e.min=function(v,g){var w=-1,q=v.length,C,S;if(arguments.length===1){for(;++w<q;)if((S=v[w])!=null&&S>=S){C=S;break}for(;++w<q;)(S=v[w])!=null&&C>S&&(C=S)}else{for(;++w<q;)if((S=g.call(v,v[w],w))!=null&&S>=S){C=S;break}for(;++w<q;)(S=g.call(v,v[w],w))!=null&&C>S&&(C=S)}return C},e.max=function(v,g){var w=-1,q=v.length,C,S;if(arguments.length===1){for(;++w<q;)if((S=v[w])!=null&&S>=S){C=S;break}for(;++w<q;)(S=v[w])!=null&&S>C&&(C=S)}else{for(;++w<q;)if((S=g.call(v,v[w],w))!=null&&S>=S){C=S;break}for(;++w<q;)(S=g.call(v,v[w],w))!=null&&S>C&&(C=S)}return C},e.extent=function(v,g){var w=-1,q=v.length,C,S,N;if(arguments.length===1){for(;++w<q;)if((S=v[w])!=null&&S>=S){C=N=S;break}for(;++w<q;)(S=v[w])!=null&&(C>S&&(C=S),N<S&&(N=S))}else{for(;++w<q;)if((S=g.call(v,v[w],w))!=null&&S>=S){C=N=S;break}for(;++w<q;)(S=g.call(v,v[w],w))!=null&&(C>S&&(C=S),N<S&&(N=S))}return[C,N]};function h(v){return v===null?NaN:+v}function d(v){return!isNaN(v)}e.sum=function(v,g){var w=0,q=v.length,C,S=-1;if(arguments.length===1)for(;++S<q;)d(C=+v[S])&&(w+=C);else for(;++S<q;)d(C=+g.call(v,v[S],S))&&(w+=C);return w},e.mean=function(v,g){var w=0,q=v.length,C,S=-1,N=q;if(arguments.length===1)for(;++S<q;)d(C=h(v[S]))?w+=C:--N;else for(;++S<q;)d(C=h(g.call(v,v[S],S)))?w+=C:--N;if(N)return w/N},e.quantile=function(v,g){var w=(v.length-1)*g+1,q=Math.floor(w),C=+v[q-1],S=w-q;return S?C+S*(v[q]-C):C},e.median=function(v,g){var w=[],q=v.length,C,S=-1;if(arguments.length===1)for(;++S<q;)d(C=h(v[S]))&&w.push(C);else for(;++S<q;)d(C=h(g.call(v,v[S],S)))&&w.push(C);if(w.length)return e.quantile(w.sort(c),.5)},e.variance=function(v,g){var w=v.length,q=0,C,S,N=0,E=-1,F=0;if(arguments.length===1)for(;++E<w;)d(C=h(v[E]))&&(S=C-q,q+=S/++F,N+=S*(C-q));else for(;++E<w;)d(C=h(g.call(v,v[E],E)))&&(S=C-q,q+=S/++F,N+=S*(C-q));if(F>1)return N/(F-1)},e.deviation=function(){var v=e.variance.apply(this,arguments);return v&&Math.sqrt(v)};function p(v){return{left:function(g,w,q,C){for(arguments.length<3&&(q=0),arguments.length<4&&(C=g.length);q<C;){var S=q+C>>>1;v(g[S],w)<0?q=S+1:C=S}return q},right:function(g,w,q,C){for(arguments.length<3&&(q=0),arguments.length<4&&(C=g.length);q<C;){var S=q+C>>>1;v(g[S],w)>0?C=S:q=S+1}return q}}}var y=p(c);e.bisectLeft=y.left,e.bisect=e.bisectRight=y.right,e.bisector=function(v){return p(v.length===1?function(g,w){return c(v(g),w)}:v)},e.shuffle=function(v,g,w){(q=arguments.length)<3&&(w=v.length,q<2&&(g=0));for(var q=w-g,C,S;q;)S=Math.random()*q--|0,C=v[q+g],v[q+g]=v[S+g],v[S+g]=C;return v},e.permute=function(v,g){for(var w=g.length,q=new Array(w);w--;)q[w]=v[g[w]];return q},e.pairs=function(v){for(var g=0,w=v.length-1,q,C=v[0],S=new Array(w<0?0:w);g<w;)S[g]=[q=C,C=v[++g]];return S},e.transpose=function(v){if(!(S=v.length))return[];for(var g=-1,w=e.min(v,m),q=new Array(w);++g<w;)for(var C=-1,S,N=q[g]=new Array(S);++C<S;)N[C]=v[C][g];return q};function m(v){return v.length}e.zip=function(){return e.transpose(arguments)},e.keys=function(v){var g=[];for(var w in v)g.push(w);return g},e.values=function(v){var g=[];for(var w in v)g.push(v[w]);return g},e.entries=function(v){var g=[];for(var w in v)g.push({key:w,value:v[w]});return g},e.merge=function(v){for(var g=v.length,w,q=-1,C=0,S,N;++q<g;)C+=v[q].length;for(S=new Array(C);--g>=0;)for(N=v[g],w=N.length;--w>=0;)S[--C]=N[w];return S};var b=Math.abs;e.range=function(v,g,w){if(arguments.length<3&&(w=1,arguments.length<2&&(g=v,v=0)),(g-v)/w===1/0)throw new Error("infinite range");var q=[],C=_(b(w)),S=-1,N;if(v*=C,g*=C,w*=C,w<0)for(;(N=v+w*++S)>g;)q.push(N/C);else for(;(N=v+w*++S)<g;)q.push(N/C);return q};function _(v){for(var g=1;v*g%1;)g*=10;return g}function T(v,g){for(var w in g)Object.defineProperty(v.prototype,w,{value:g[w],enumerable:!1})}e.map=function(v,g){var w=new x;if(v instanceof x)v.forEach(function(E,F){w.set(E,F)});else if(Array.isArray(v)){var q=-1,C=v.length,S;if(arguments.length===1)for(;++q<C;)w.set(q,v[q]);else for(;++q<C;)w.set(g.call(v,S=v[q],q),S)}else for(var N in v)w.set(N,v[N]);return w};function x(){this._=Object.create(null)}var M="__proto__",A="\0";T(x,{has:D,get:function(v){return this._[k(v)]},set:function(v,g){return this._[k(v)]=g},remove:P,keys:R,values:function(){var v=[];for(var g in this._)v.push(this._[g]);return v},entries:function(){var v=[];for(var g in this._)v.push({key:L(g),value:this._[g]});return v},size:z,empty:H,forEach:function(v){for(var g in this._)v.call(this,L(g),this._[g])}});function k(v){return(v+="")===M||v[0]===A?A+v:v}function L(v){return(v+="")[0]===A?v.slice(1):v}function D(v){return k(v)in this._}function P(v){return(v=k(v))in this._&&delete this._[v]}function R(){var v=[];for(var g in this._)v.push(L(g));return v}function z(){var v=0;for(var g in this._)++v;return v}function H(){for(var v in this._)return!1;return!0}e.nest=function(){var v={},g=[],w=[],q,C;function S(E,F,J){if(J>=g.length)return C?C.call(v,F):q?F.sort(q):F;for(var $=-1,j=F.length,ee=g[J++],me,Te,ae,oe=new x,he;++$<j;)(he=oe.get(me=ee(Te=F[$])))?he.push(Te):oe.set(me,[Te]);return E?(Te=E(),ae=function(we,Me){Te.set(we,S(E,Me,J))}):(Te={},ae=function(we,Me){Te[we]=S(E,Me,J)}),oe.forEach(ae),Te}function N(E,F){if(F>=g.length)return E;var J=[],$=w[F++];return E.forEach(function(j,ee){J.push({key:j,values:N(ee,F)})}),$?J.sort(function(j,ee){return $(j.key,ee.key)}):J}return v.map=function(E,F){return S(F,E,0)},v.entries=function(E){return N(S(e.map,E,0),0)},v.key=function(E){return g.push(E),v},v.sortKeys=function(E){return w[g.length-1]=E,v},v.sortValues=function(E){return q=E,v},v.rollup=function(E){return C=E,v},v},e.set=function(v){var g=new O;if(v)for(var w=0,q=v.length;w<q;++w)g.add(v[w]);return g};function O(){this._=Object.create(null)}T(O,{has:D,add:function(v){return this._[k(v+="")]=!0,v},remove:P,values:R,size:z,empty:H,forEach:function(v){for(var g in this._)v.call(this,L(g))}}),e.behavior={};function U(v){return v}e.rebind=function(v,g){for(var w=1,q=arguments.length,C;++w<q;)v[C=arguments[w]]=V(v,g,g[C]);return v};function V(v,g,w){return function(){var q=w.apply(g,arguments);return q===g?v:q}}function Y(v,g){if(g in v)return g;g=g.charAt(0).toUpperCase()+g.slice(1);for(var w=0,q=I.length;w<q;++w){var C=I[w]+g;if(C in v)return C}}var I=["webkit","ms","moz","Moz","o","O"];function G(){}e.dispatch=function(){for(var v=new Z,g=-1,w=arguments.length;++g<w;)v[arguments[g]]=K(v);return v};function Z(){}Z.prototype.on=function(v,g){var w=v.indexOf("."),q="";if(w>=0&&(q=v.slice(w+1),v=v.slice(0,w)),v)return arguments.length<2?this[v].on(q):this[v].on(q,g);if(arguments.length===2){if(g==null)for(v in this)this.hasOwnProperty(v)&&this[v].on(q,null);return this}};function K(v){var g=[],w=new x;function q(){for(var C=g,S=-1,N=C.length,E;++S<N;)(E=C[S].on)&&E.apply(this,arguments);return v}return q.on=function(C,S){var N=w.get(C),E;return arguments.length<2?N&&N.on:(N&&(N.on=null,g=g.slice(0,E=g.indexOf(N)).concat(g.slice(E+1)),w.remove(C)),S&&g.push(w.set(C,{on:S})),v)},q}e.event=null;function re(){e.event.preventDefault()}function se(){for(var v=e.event,g;g=v.sourceEvent;)v=g;return v}function ce(v){for(var g=new Z,w=0,q=arguments.length;++w<q;)g[arguments[w]]=K(g);return g.of=function(C,S){return function(N){try{var E=N.sourceEvent=e.event;N.target=v,e.event=N,g[N.type].apply(C,S)}finally{e.event=E}}},g}e.requote=function(v){return v.replace(le,"\\$&")};var le=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,Q={}.__proto__?function(v,g){v.__proto__=g}:function(v,g){for(var w in g)v[w]=g[w]};function ge(v){return Q(v,be),v}var ue=function(v,g){return g.querySelector(v)},ke=function(v,g){return g.querySelectorAll(v)},ve=function(v,g){var w=v.matches||v[Y(v,"matchesSelector")];return ve=function(q,C){return w.call(q,C)},ve(v,g)};typeof Sizzle=="function"&&(ue=function(v,g){return Sizzle(v,g)[0]||null},ke=Sizzle,ve=Sizzle.matchesSelector),e.selection=function(){return e.select(a.documentElement)};var be=e.selection.prototype=[];be.select=function(v){var g=[],w,q,C,S;v=W(v);for(var N=-1,E=this.length;++N<E;){g.push(w=[]),w.parentNode=(C=this[N]).parentNode;for(var F=-1,J=C.length;++F<J;)(S=C[F])?(w.push(q=v.call(S,S.__data__,F,N)),q&&"__data__"in S&&(q.__data__=S.__data__)):w.push(null)}return ge(g)};function W(v){return typeof v=="function"?v:function(){return ue(v,this)}}be.selectAll=function(v){var g=[],w,q;v=te(v);for(var C=-1,S=this.length;++C<S;)for(var N=this[C],E=-1,F=N.length;++E<F;)(q=N[E])&&(g.push(w=t(v.call(q,q.__data__,E,C))),w.parentNode=q);return ge(g)};function te(v){return typeof v=="function"?v:function(){return ke(v,this)}}var X="http://www.w3.org/1999/xhtml",ye={svg:"http://www.w3.org/2000/svg",xhtml:X,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:ye,qualify:function(v){var g=v.indexOf(":"),w=v;return g>=0&&(w=v.slice(0,g))!=="xmlns"&&(v=v.slice(g+1)),ye.hasOwnProperty(w)?{space:ye[w],local:v}:v}},be.attr=function(v,g){if(arguments.length<2){if(typeof v=="string"){var w=this.node();return v=e.ns.qualify(v),v.local?w.getAttributeNS(v.space,v.local):w.getAttribute(v)}for(g in v)this.each(_e(g,v[g]));return this}return this.each(_e(v,g))};function _e(v,g){v=e.ns.qualify(v);function w(){this.removeAttribute(v)}function q(){this.removeAttributeNS(v.space,v.local)}function C(){this.setAttribute(v,g)}function S(){this.setAttributeNS(v.space,v.local,g)}function N(){var F=g.apply(this,arguments);F==null?this.removeAttribute(v):this.setAttribute(v,F)}function E(){var F=g.apply(this,arguments);F==null?this.removeAttributeNS(v.space,v.local):this.setAttributeNS(v.space,v.local,F)}return g==null?v.local?q:w:typeof g=="function"?v.local?E:N:v.local?S:C}function xe(v){return v.trim().replace(/\s+/g," ")}be.classed=function(v,g){if(arguments.length<2){if(typeof v=="string"){var w=this.node(),q=(v=ze(v)).length,C=-1;if(g=w.classList){for(;++C<q;)if(!g.contains(v[C]))return!1}else for(g=w.getAttribute("class");++C<q;)if(!Ie(v[C]).test(g))return!1;return!0}for(g in v)this.each(Re(g,v[g]));return this}return this.each(Re(v,g))};function Ie(v){return new RegExp("(?:^|\\s+)"+e.requote(v)+"(?:\\s+|$)","g")}function ze(v){return(v+"").trim().split(/^|\s+/)}function Re(v,g){v=ze(v).map(He);var w=v.length;function q(){for(var S=-1;++S<w;)v[S](this,g)}function C(){for(var S=-1,N=g.apply(this,arguments);++S<w;)v[S](this,N)}return typeof g=="function"?C:q}function He(v){var g=Ie(v);return function(w,q){if(C=w.classList)return q?C.add(v):C.remove(v);var C=w.getAttribute("class")||"";q?(g.lastIndex=0,g.test(C)||w.setAttribute("class",xe(C+" "+v))):w.setAttribute("class",xe(C.replace(g," ")))}}be.style=function(v,g,w){var q=arguments.length;if(q<3){if(typeof v!="string"){q<2&&(g="");for(w in v)this.each(Be(w,v[w],g));return this}if(q<2){var C=this.node();return i(C).getComputedStyle(C,null).getPropertyValue(v)}w=""}return this.each(Be(v,g,w))};function Be(v,g,w){function q(){this.style.removeProperty(v)}function C(){this.style.setProperty(v,g,w)}function S(){var N=g.apply(this,arguments);N==null?this.style.removeProperty(v):this.style.setProperty(v,N,w)}return g==null?q:typeof g=="function"?S:C}be.property=function(v,g){if(arguments.length<2){if(typeof v=="string")return this.node()[v];for(g in v)this.each(Fe(g,v[g]));return this}return this.each(Fe(v,g))};function Fe(v,g){function w(){delete this[v]}function q(){this[v]=g}function C(){var S=g.apply(this,arguments);S==null?delete this[v]:this[v]=S}return g==null?w:typeof g=="function"?C:q}be.text=function(v){return arguments.length?this.each(typeof v=="function"?function(){var g=v.apply(this,arguments);this.textContent=g==null?"":g}:v==null?function(){this.textContent=""}:function(){this.textContent=v}):this.node().textContent},be.html=function(v){return arguments.length?this.each(typeof v=="function"?function(){var g=v.apply(this,arguments);this.innerHTML=g==null?"":g}:v==null?function(){this.innerHTML=""}:function(){this.innerHTML=v}):this.node().innerHTML},be.append=function(v){return v=Pe(v),this.select(function(){return this.appendChild(v.apply(this,arguments))})};function Pe(v){function g(){var q=this.ownerDocument,C=this.namespaceURI;return C===X&&q.documentElement.namespaceURI===X?q.createElement(v):q.createElementNS(C,v)}function w(){return this.ownerDocument.createElementNS(v.space,v.local)}return typeof v=="function"?v:(v=e.ns.qualify(v)).local?w:g}be.insert=function(v,g){return v=Pe(v),g=W(g),this.select(function(){return this.insertBefore(v.apply(this,arguments),g.apply(this,arguments)||null)})},be.remove=function(){return this.each(Je)};function Je(){var v=this.parentNode;v&&v.removeChild(this)}be.data=function(v,g){var w=-1,q=this.length,C,S;if(!arguments.length){for(v=new Array(q=(C=this[0]).length);++w<q;)(S=C[w])&&(v[w]=S.__data__);return v}function N($,j){var ee,me=$.length,Te=j.length,ae=Math.min(me,Te),oe=new Array(Te),he=new Array(Te),we=new Array(me),Me,pe;if(g){var Ue=new x,rr=new Array(me),or;for(ee=-1;++ee<me;)(Me=$[ee])&&(Ue.has(or=g.call(Me,Me.__data__,ee))?we[ee]=Me:Ue.set(or,Me),rr[ee]=or);for(ee=-1;++ee<Te;)(Me=Ue.get(or=g.call(j,pe=j[ee],ee)))?Me!==!0&&(oe[ee]=Me,Me.__data__=pe):he[ee]=We(pe),Ue.set(or,!0);for(ee=-1;++ee<me;)ee in rr&&Ue.get(rr[ee])!==!0&&(we[ee]=$[ee])}else{for(ee=-1;++ee<ae;)Me=$[ee],pe=j[ee],Me?(Me.__data__=pe,oe[ee]=Me):he[ee]=We(pe);for(;ee<Te;++ee)he[ee]=We(j[ee]);for(;ee<me;++ee)we[ee]=$[ee]}he.update=oe,he.parentNode=oe.parentNode=we.parentNode=$.parentNode,E.push(he),F.push(oe),J.push(we)}var E=cr([]),F=ge([]),J=ge([]);if(typeof v=="function")for(;++w<q;)N(C=this[w],v.call(C,C.parentNode.__data__,w));else for(;++w<q;)N(C=this[w],v);return F.enter=function(){return E},F.exit=function(){return J},F};function We(v){return{__data__:v}}be.datum=function(v){return arguments.length?this.property("__data__",v):this.property("__data__")},be.filter=function(v){var g=[],w,q,C;typeof v!="function"&&(v=ie(v));for(var S=0,N=this.length;S<N;S++){g.push(w=[]),w.parentNode=(q=this[S]).parentNode;for(var E=0,F=q.length;E<F;E++)(C=q[E])&&v.call(C,C.__data__,E,S)&&w.push(C)}return ge(g)};function ie(v){return function(){return ve(this,v)}}be.order=function(){for(var v=-1,g=this.length;++v<g;)for(var w=this[v],q=w.length-1,C=w[q],S;--q>=0;)(S=w[q])&&(C&&C!==S.nextSibling&&C.parentNode.insertBefore(S,C),C=S);return this},be.sort=function(v){v=Ae.apply(this,arguments);for(var g=-1,w=this.length;++g<w;)this[g].sort(v);return this.order()};function Ae(v){return arguments.length||(v=c),function(g,w){return g&&w?v(g.__data__,w.__data__):!g-!w}}be.each=function(v){return Ce(this,function(g,w,q){v.call(g,g.__data__,w,q)})};function Ce(v,g){for(var w=0,q=v.length;w<q;w++)for(var C=v[w],S=0,N=C.length,E;S<N;S++)(E=C[S])&&g(E,S,w);return v}be.call=function(v){var g=t(arguments);return v.apply(g[0]=this,g),this},be.empty=function(){return!this.node()},be.node=function(){for(var v=0,g=this.length;v<g;v++)for(var w=this[v],q=0,C=w.length;q<C;q++){var S=w[q];if(S)return S}return null},be.size=function(){var v=0;return Ce(this,function(){++v}),v};function cr(v){return Q(v,tr),v}var tr=[];e.selection.enter=cr,e.selection.enter.prototype=tr,tr.append=be.append,tr.empty=be.empty,tr.node=be.node,tr.call=be.call,tr.size=be.size,tr.select=function(v){for(var g=[],w,q,C,S,N,E=-1,F=this.length;++E<F;){C=(S=this[E]).update,g.push(w=[]),w.parentNode=S.parentNode;for(var J=-1,$=S.length;++J<$;)(N=S[J])?(w.push(C[J]=q=v.call(S.parentNode,N.__data__,J,E)),q.__data__=N.__data__):w.push(null)}return ge(g)},tr.insert=function(v,g){return arguments.length<2&&(g=De(this)),be.insert.call(this,v,g)};function De(v){var g,w;return function(q,C,S){var N=v[S].update,E=N.length,F;for(S!=w&&(w=S,g=0),C>=g&&(g=C+1);!(F=N[g])&&++g<E;);return F}}e.select=function(v){var g;return typeof v=="string"?(g=[ue(v,a)],g.parentNode=a.documentElement):(g=[v],g.parentNode=n(v)),ge([g])},e.selectAll=function(v){var g;return typeof v=="string"?(g=t(ke(v,a)),g.parentNode=a.documentElement):(g=t(v),g.parentNode=null),ge([g])},be.on=function(v,g,w){var q=arguments.length;if(q<3){if(typeof v!="string"){q<2&&(g=!1);for(w in v)this.each(Le(w,v[w],g));return this}if(q<2)return(q=this.node()["__on"+v])&&q._;w=!1}return this.each(Le(v,g,w))};function Le(v,g,w){var q="__on"+v,C=v.indexOf("."),S=Xe;C>0&&(v=v.slice(0,C));var N=Ye.get(v);N&&(v=N,S=Ge);function E(){var $=this[q];$&&(this.removeEventListener(v,$,$.$),delete this[q])}function F(){var $=S(g,t(arguments));E.call(this),this.addEventListener(v,this[q]=$,$.$=w),$._=g}function J(){var $=new RegExp("^__on([^.]+)"+e.requote(v)+"$"),j;for(var ee in this)if(j=ee.match($)){var me=this[ee];this.removeEventListener(j[1],me,me.$),delete this[ee]}}return C?g?F:E:g?G:J}var Ye=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&Ye.forEach(function(v){"on"+v in a&&Ye.remove(v)});function Xe(v,g){return function(w){var q=e.event;e.event=w,g[0]=this.__data__;try{v.apply(this,g)}finally{e.event=q}}}function Ge(v,g){var w=Xe(v,g);return function(q){var C=this,S=q.relatedTarget;(!S||S!==C&&!(S.compareDocumentPosition(C)&8))&&w.call(C,q)}}var Oe,$e=0;function fr(v){var g=".dragsuppress-"+ ++$e,w="click"+g,q=e.select(i(v)).on("touchmove"+g,re).on("dragstart"+g,re).on("selectstart"+g,re);if(Oe==null&&(Oe="onselectstart"in v?!1:Y(v.style,"userSelect")),Oe){var C=n(v).style,S=C[Oe];C[Oe]="none"}return function(N){if(q.on(g,null),Oe&&(C[Oe]=S),N){var E=function(){q.on(w,null)};q.on(w,function(){re(),E()},!0),setTimeout(E,0)}}}e.mouse=function(v){return Ne(v,se())};var lr=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Ne(v,g){g.changedTouches&&(g=g.changedTouches[0]);var w=v.ownerSVGElement||v;if(w.createSVGPoint){var q=w.createSVGPoint();if(lr<0){var C=i(v);if(C.scrollX||C.scrollY){w=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var S=w[0][0].getScreenCTM();lr=!(S.f||S.e),w.remove()}}return lr?(q.x=g.pageX,q.y=g.pageY):(q.x=g.clientX,q.y=g.clientY),q=q.matrixTransform(v.getScreenCTM().inverse()),[q.x,q.y]}var N=v.getBoundingClientRect();return[g.clientX-N.left-v.clientLeft,g.clientY-N.top-v.clientTop]}e.touch=function(v,g,w){if(arguments.length<3&&(w=g,g=se().changedTouches),g){for(var q=0,C=g.length,S;q<C;++q)if((S=g[q]).identifier===w)return Ne(v,S)}},e.behavior.drag=function(){var v=ce(C,"drag","dragstart","dragend"),g=null,w=S(G,e.mouse,i,"mousemove","mouseup"),q=S(ne,e.touch,U,"touchmove","touchend");function C(){this.on("mousedown.drag",w).on("touchstart.drag",q)}function S(N,E,F,J,$){return function(){var j=this,ee=e.event.target.correspondingElement||e.event.target,me=j.parentNode,Te=v.of(j,arguments),ae=0,oe=N(),he=".drag"+(oe==null?"":"-"+oe),we,Me=e.select(F(ee)).on(J+he,rr).on($+he,or),pe=fr(ee),Ue=E(me,oe);g?(we=g.apply(j,arguments),we=[we.x-Ue[0],we.y-Ue[1]]):we=[0,0],Te({type:"dragstart"});function rr(){var ar=E(me,oe),hr,dr;ar&&(hr=ar[0]-Ue[0],dr=ar[1]-Ue[1],ae|=hr|dr,Ue=ar,Te({type:"drag",x:ar[0]+we[0],y:ar[1]+we[1],dx:hr,dy:dr}))}function or(){E(me,oe)&&(Me.on(J+he,null).on($+he,null),pe(ae),Te({type:"dragend"}))}}}return C.origin=function(N){return arguments.length?(g=N,C):g},e.rebind(C,v,"on")};function ne(){return e.event.changedTouches[0].identifier}e.touches=function(v,g){return arguments.length<2&&(g=se().touches),g?t(g).map(function(w){var q=Ne(v,w);return q.identifier=w.identifier,q}):[]};var fe=1e-6,Se=fe*fe,qe=Math.PI,ir=2*qe,vr=ir-fe,sr=qe/2,Ar=qe/180,Ur=180/qe;function et(v){return v>0?1:v<0?-1:0}function Wr(v,g,w){return(g[0]-v[0])*(w[1]-v[1])-(g[1]-v[1])*(w[0]-v[0])}function Nt(v){return v>1?0:v<-1?qe:Math.acos(v)}function oa(v){return v>1?sr:v<-1?-sr:Math.asin(v)}function Na(v){return((v=Math.exp(v))-1/v)/2}function sa(v){return((v=Math.exp(v))+1/v)/2}function Sn(v){return((v=Math.exp(2*v))-1)/(v+1)}function Za(v){return(v=Math.sin(v/2))*v}var ua=Math.SQRT2,Ja=2,gr=4;e.interpolateZoom=function(v,g){var w=v[0],q=v[1],C=v[2],S=g[0],N=g[1],E=g[2],F=S-w,J=N-q,$=F*F+J*J,j,ee;if($<Se)ee=Math.log(E/C)/ua,j=function(we){return[w+we*F,q+we*J,C*Math.exp(ua*we*ee)]};else{var me=Math.sqrt($),Te=(E*E-C*C+gr*$)/(2*C*Ja*me),ae=(E*E-C*C-gr*$)/(2*E*Ja*me),oe=Math.log(Math.sqrt(Te*Te+1)-Te),he=Math.log(Math.sqrt(ae*ae+1)-ae);ee=(he-oe)/ua,j=function(we){var Me=we*ee,pe=sa(oe),Ue=C/(Ja*me)*(pe*Sn(ua*Me+oe)-Na(oe));return[w+Ue*F,q+Ue*J,C*pe/sa(ua*Me+oe)]}}return j.duration=ee*1e3,j},e.behavior.zoom=function(){var v={x:0,y:0,k:1},g,w,q,C=[960,500],S=ft,N=250,E=0,F="mousedown.zoom",J="mousemove.zoom",$="mouseup.zoom",j,ee="touchstart.zoom",me,Te=ce(Me,"zoomstart","zoom","zoomend"),ae,oe,he,we;bt||(bt="onwheel"in a?(Xr=function(){return-e.event.deltaY*(e.event.deltaMode?120:1)},"wheel"):"onmousewheel"in a?(Xr=function(){return e.event.wheelDelta},"mousewheel"):(Xr=function(){return-e.event.detail},"MozMousePixelScroll"));function Me(er){er.on(F,Mr).on(bt+".zoom",Ft).on("dblclick.zoom",at).on(ee,Kr)}Me.event=function(er){er.each(function(){var Dr=Te.of(this,arguments),Pr=v;No?e.select(this).transition().each("start.zoom",function(){v=this.__chart__||{x:0,y:0,k:1},dr(Dr)}).tween("zoom:zoom",function(){var Qr=C[0],kt=C[1],Zt=w?w[0]:Qr/2,xa=w?w[1]:kt/2,Ha=e.interpolateZoom([(Zt-v.x)/v.k,(xa-v.y)/v.k,Qr/v.k],[(Zt-Pr.x)/Pr.k,(xa-Pr.y)/Pr.k,Qr/Pr.k]);return function($a){var Oa=Ha($a),en=Qr/Oa[2];this.__chart__=v={x:Zt-Oa[0]*en,y:xa-Oa[1]*en,k:en},Sr(Dr)}}).each("interrupt.zoom",function(){pr(Dr)}).each("end.zoom",function(){pr(Dr)}):(this.__chart__=v,dr(Dr),Sr(Dr),pr(Dr))})},Me.translate=function(er){return arguments.length?(v={x:+er[0],y:+er[1],k:v.k},hr(),Me):[v.x,v.y]},Me.scale=function(er){return arguments.length?(v={x:v.x,y:v.y,k:null},rr(+er),hr(),Me):v.k},Me.scaleExtent=function(er){return arguments.length?(S=er==null?ft:[+er[0],+er[1]],Me):S},Me.center=function(er){return arguments.length?(q=er&&[+er[0],+er[1]],Me):q},Me.size=function(er){return arguments.length?(C=er&&[+er[0],+er[1]],Me):C},Me.duration=function(er){return arguments.length?(N=+er,Me):N},Me.x=function(er){return arguments.length?(oe=er,ae=er.copy(),v={x:0,y:0,k:1},Me):oe},Me.y=function(er){return arguments.length?(we=er,he=er.copy(),v={x:0,y:0,k:1},Me):we};function pe(er){return[(er[0]-v.x)/v.k,(er[1]-v.y)/v.k]}function Ue(er){return[er[0]*v.k+v.x,er[1]*v.k+v.y]}function rr(er){v.k=Math.max(S[0],Math.min(S[1],er))}function or(er,Dr){Dr=Ue(Dr),v.x+=er[0]-Dr[0],v.y+=er[1]-Dr[1]}function ar(er,Dr,Pr,Qr){er.__chart__={x:v.x,y:v.y,k:v.k},rr(Math.pow(2,Qr)),or(w=Dr,Pr),er=e.select(er),N>0&&(er=er.transition().duration(N)),er.call(Me.event)}function hr(){oe&&oe.domain(ae.range().map(function(er){return(er-v.x)/v.k}).map(ae.invert)),we&&we.domain(he.range().map(function(er){return(er-v.y)/v.k}).map(he.invert))}function dr(er){E++||er({type:"zoomstart"})}function Sr(er){hr(),er({type:"zoom",scale:v.k,translate:[v.x,v.y]})}function pr(er){--E||(er({type:"zoomend"}),w=null)}function Mr(){var er=this,Dr=Te.of(er,arguments),Pr=0,Qr=e.select(i(er)).on(J,xa).on($,Ha),kt=pe(e.mouse(er)),Zt=fr(er);Z0.call(er),dr(Dr);function xa(){Pr=1,or(e.mouse(er),kt),Sr(Dr)}function Ha(){Qr.on(J,null).on($,null),Zt(Pr),pr(Dr)}}function Kr(){var er=this,Dr=Te.of(er,arguments),Pr={},Qr=0,kt,Zt=".zoom-"+e.event.changedTouches[0].identifier,xa="touchmove"+Zt,Ha="touchend"+Zt,$a=[],Oa=e.select(er),en=fr(er);rn(),dr(Dr),Oa.on(F,null).on(ee,rn);function La(){var oi=e.touches(er);return kt=v.k,oi.forEach(function(ba){ba.identifier in Pr&&(Pr[ba.identifier]=pe(ba))}),oi}function rn(){var oi=e.event.target;e.select(oi).on(xa,Fo).on(Ha,WW),$a.push(oi);for(var ba=e.event.changedTouches,Pn=0,zi=ba.length;Pn<zi;++Pn)Pr[ba[Pn].identifier]=null;var En=La(),fu=Date.now();if(En.length===1){if(fu-me<500){var Io=En[0];ar(er,Io,Pr[Io.identifier],Math.floor(Math.log(v.k)/Math.LN2)+1),re()}me=fu}else if(En.length>1){var Io=En[0],Pl=En[1],K0=Io[0]-Pl[0],Y4=Io[1]-Pl[1];Qr=K0*K0+Y4*Y4}}function Fo(){var oi=e.touches(er),ba,Pn,zi,En;Z0.call(er);for(var fu=0,Io=oi.length;fu<Io;++fu,En=null)if(zi=oi[fu],En=Pr[zi.identifier]){if(Pn)break;ba=zi,Pn=En}if(En){var Pl=(Pl=zi[0]-ba[0])*Pl+(Pl=zi[1]-ba[1])*Pl,K0=Qr&&Math.sqrt(Pl/Qr);ba=[(ba[0]+zi[0])/2,(ba[1]+zi[1])/2],Pn=[(Pn[0]+En[0])/2,(Pn[1]+En[1])/2],rr(K0*kt)}me=null,or(ba,Pn),Sr(Dr)}function WW(){if(e.event.touches.length){for(var oi=e.event.changedTouches,ba=0,Pn=oi.length;ba<Pn;++ba)delete Pr[oi[ba].identifier];for(var zi in Pr)return void La()}e.selectAll($a).on(Zt,null),Oa.on(F,Mr).on(ee,Kr),en(),pr(Dr)}}function Ft(){var er=Te.of(this,arguments);j?clearTimeout(j):(Z0.call(this),g=pe(w=q||e.mouse(this)),dr(er)),j=setTimeout(function(){j=null,pr(er)},50),re(),rr(Math.pow(2,Xr()*.002)*v.k),or(w,g),Sr(er)}function at(){var er=e.mouse(this),Dr=Math.log(v.k)/Math.LN2;ar(this,er,pe(er),e.event.shiftKey?Math.ceil(Dr)-1:Math.floor(Dr)+1)}return e.rebind(Me,Te,"on")};var ft=[0,1/0],Xr,bt;e.color=Lt;function Lt(){}Lt.prototype.toString=function(){return this.rgb()+""},e.hsl=ct;function ct(v,g,w){return this instanceof ct?(this.h=+v,this.s=+g,void(this.l=+w)):arguments.length<2?v instanceof ct?new ct(v.h,v.s,v.l):Zr(""+v,rt,ct):new ct(v,g,w)}var _t=ct.prototype=new Lt;_t.brighter=function(v){return v=Math.pow(.7,arguments.length?v:1),new ct(this.h,this.s,this.l/v)},_t.darker=function(v){return v=Math.pow(.7,arguments.length?v:1),new ct(this.h,this.s,v*this.l)},_t.rgb=function(){return Fa(this.h,this.s,this.l)};function Fa(v,g,w){var q,C;v=isNaN(v)?0:(v%=360)<0?v+360:v,g=isNaN(g)||g<0?0:g>1?1:g,w=w<0?0:w>1?1:w,C=w<=.5?w*(1+g):w+g-w*g,q=2*w-C;function S(E){return E>360?E-=360:E<0&&(E+=360),E<60?q+(C-q)*E/60:E<180?C:E<240?q+(C-q)*(240-E)/60:q}function N(E){return Math.round(S(E)*255)}return new Ia(N(v+120),N(v),N(v-120))}e.hcl=fa;function fa(v,g,w){return this instanceof fa?(this.h=+v,this.c=+g,void(this.l=+w)):arguments.length<2?v instanceof fa?new fa(v.h,v.c,v.l):v instanceof Qt?q0(v.l,v.a,v.b):q0((v=nr((v=e.rgb(v)).r,v.g,v.b)).l,v.a,v.b):new fa(v,g,w)}var ai=fa.prototype=new Lt;ai.brighter=function(v){return new fa(this.h,this.c,Math.min(100,this.l+it*(arguments.length?v:1)))},ai.darker=function(v){return new fa(this.h,this.c,Math.max(0,this.l-it*(arguments.length?v:1)))},ai.rgb=function(){return ni(this.h,this.c,this.l).rgb()};function ni(v,g,w){return isNaN(v)&&(v=0),isNaN(g)&&(g=0),new Qt(w,Math.cos(v*=Ar)*g,Math.sin(v)*g)}e.lab=Qt;function Qt(v,g,w){return this instanceof Qt?(this.l=+v,this.a=+g,void(this.b=+w)):arguments.length<2?v instanceof Qt?new Qt(v.l,v.a,v.b):v instanceof fa?ni(v.h,v.c,v.l):nr((v=Ia(v)).r,v.g,v.b):new Qt(v,g,w)}var it=18,ma=.95047,Do=1,Po=1.08883,Sl=Qt.prototype=new Lt;Sl.brighter=function(v){return new Qt(Math.min(100,this.l+it*(arguments.length?v:1)),this.a,this.b)},Sl.darker=function(v){return new Qt(Math.max(0,this.l-it*(arguments.length?v:1)),this.a,this.b)},Sl.rgb=function(){return k0(this.l,this.a,this.b)};function k0(v,g,w){var q=(v+16)/116,C=q+g/500,S=q-w/200;return C=ac(C)*ma,q=ac(q)*Do,S=ac(S)*Po,new Ia(ic(3.2404542*C-1.5371385*q-.4985314*S),ic(-.969266*C+1.8760108*q+.041556*S),ic(.0556434*C-.2040259*q+1.0572252*S))}function q0(v,g,w){return v>0?new fa(Math.atan2(w,g)*Ur,Math.sqrt(g*g+w*w),v):new fa(NaN,NaN,v)}function ac(v){return v>.206893034?v*v*v:(v-4/29)/7.787037}function nc(v){return v>.008856?Math.pow(v,1/3):7.787037*v+4/29}function ic(v){return Math.round(255*(v<=.00304?12.92*v:1.055*Math.pow(v,1/2.4)-.055))}e.rgb=Ia;function Ia(v,g,w){return this instanceof Ia?(this.r=~~v,this.g=~~g,void(this.b=~~w)):arguments.length<2?v instanceof Ia?new Ia(v.r,v.g,v.b):Zr(""+v,Ia,Fa):new Ia(v,g,w)}function C0(v){return new Ia(v>>16,v>>8&255,v&255)}function tu(v){return C0(v)+""}var au=Ia.prototype=new Lt;au.brighter=function(v){v=Math.pow(.7,arguments.length?v:1);var g=this.r,w=this.g,q=this.b,C=30;return!g&&!w&&!q?new Ia(C,C,C):(g&&g<C&&(g=C),w&&w<C&&(w=C),q&&q<C&&(q=C),new Ia(Math.min(255,g/v),Math.min(255,w/v),Math.min(255,q/v)))},au.darker=function(v){return v=Math.pow(.7,arguments.length?v:1),new Ia(v*this.r,v*this.g,v*this.b)},au.hsl=function(){return rt(this.r,this.g,this.b)},au.toString=function(){return"#"+mr(this.r)+mr(this.g)+mr(this.b)};function mr(v){return v<16?"0"+Math.max(0,v).toString(16):Math.min(255,v).toString(16)}function Zr(v,g,w){var q=0,C=0,S=0,N,E,F;if(N=/([a-z]+)\((.*)\)/.exec(v=v.toLowerCase()),N)switch(E=N[2].split(","),N[1]){case"hsl":return w(parseFloat(E[0]),parseFloat(E[1])/100,parseFloat(E[2])/100);case"rgb":return g(vt(E[0]),vt(E[1]),vt(E[2]))}return(F=ga.get(v))?g(F.r,F.g,F.b):(v!=null&&v.charAt(0)==="#"&&!isNaN(F=parseInt(v.slice(1),16))&&(v.length===4?(q=(F&3840)>>4,q=q>>4|q,C=F&240,C=C>>4|C,S=F&15,S=S<<4|S):v.length===7&&(q=(F&16711680)>>16,C=(F&65280)>>8,S=F&255)),g(q,C,S))}function rt(v,g,w){var q=Math.min(v/=255,g/=255,w/=255),C=Math.max(v,g,w),S=C-q,N,E,F=(C+q)/2;return S?(E=F<.5?S/(C+q):S/(2-C-q),v==C?N=(g-w)/S+(g<w?6:0):g==C?N=(w-v)/S+2:N=(v-g)/S+4,N*=60):(N=NaN,E=F>0&&F<1?0:N),new ct(N,E,F)}function nr(v,g,w){v=ya(v),g=ya(g),w=ya(w);var q=nc((.4124564*v+.3575761*g+.1804375*w)/ma),C=nc((.2126729*v+.7151522*g+.072175*w)/Do),S=nc((.0193339*v+.119192*g+.9503041*w)/Po);return Qt(116*C-16,500*(q-C),200*(C-S))}function ya(v){return(v/=255)<=.04045?v/12.92:Math.pow((v+.055)/1.055,2.4)}function vt(v){var g=parseFloat(v);return v.charAt(v.length-1)==="%"?Math.round(g*2.55):g}var ga=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});ga.forEach(function(v,g){ga.set(v,C0(g))});function Nr(v){return typeof v=="function"?v:function(){return v}}e.functor=Nr,e.xhr=ii(U);function ii(v){return function(g,w,q){return arguments.length===2&&typeof w=="function"&&(q=w,w=null),Eo(g,w,v,q)}}function Eo(v,g,w,q){var C={},S=e.dispatch("beforesend","progress","load","error"),N={},E=new XMLHttpRequest,F=null;self.XDomainRequest&&!("withCredentials"in E)&&/^(http(s)?:)?\/\//.test(v)&&(E=new XDomainRequest),"onload"in E?E.onload=E.onerror=J:E.onreadystatechange=function(){E.readyState>3&&J()};function J(){var $=E.status,j;if(!$&&ZU(E)||$>=200&&$<300||$===304){try{j=w.call(C,E)}catch(ee){S.error.call(C,ee);return}S.load.call(C,j)}else S.error.call(C,E)}return E.onprogress=function($){var j=e.event;e.event=$;try{S.progress.call(C,E)}finally{e.event=j}},C.header=function($,j){return $=($+"").toLowerCase(),arguments.length<2?N[$]:(j==null?delete N[$]:N[$]=j+"",C)},C.mimeType=function($){return arguments.length?(g=$==null?null:$+"",C):g},C.responseType=function($){return arguments.length?(F=$,C):F},C.response=function($){return w=$,C},["get","post"].forEach(function($){C[$]=function(){return C.send.apply(C,[$].concat(t(arguments)))}}),C.send=function($,j,ee){if(arguments.length===2&&typeof j=="function"&&(ee=j,j=null),E.open($,v,!0),g!=null&&!("accept"in N)&&(N.accept=g+",*/*"),E.setRequestHeader)for(var me in N)E.setRequestHeader(me,N[me]);return g!=null&&E.overrideMimeType&&E.overrideMimeType(g),F!=null&&(E.responseType=F),ee!=null&&C.on("error",ee).on("load",function(Te){ee(null,Te)}),S.beforesend.call(C,E),E.send(j==null?null:j),C},C.abort=function(){return E.abort(),C},e.rebind(C,S,"on"),q==null?C:C.get(XU(q))}function XU(v){return v.length===1?function(g,w){v(g==null?w:null)}:v}function ZU(v){var g=v.responseType;return g&&g!=="text"?v.response:v.responseText}e.dsv=function(v,g){var w=new RegExp('["'+v+`
|
|
16
16
|
]`),q=v.charCodeAt(0);function C(J,$,j){arguments.length<3&&(j=$,$=null);var ee=Eo(J,g,$==null?S:N($),j);return ee.row=function(me){return arguments.length?ee.response(($=me)==null?S:N(me)):$},ee}function S(J){return C.parse(J.responseText)}function N(J){return function($){return C.parse($.responseText,J)}}C.parse=function(J,$){var j;return C.parseRows(J,function(ee,me){if(j)return j(ee,me-1);var Te=function(ae){for(var oe={},he=ee.length,we=0;we<he;++we)oe[ee[we]]=ae[we];return oe};j=$?function(ae,oe){return $(Te(ae),oe)}:Te})},C.parseRows=function(J,$){var j={},ee={},me=[],Te=J.length,ae=0,oe=0,he,we;function Me(){if(ae>=Te)return ee;if(we)return we=!1,j;var Ue=ae;if(J.charCodeAt(Ue)===34){for(var rr=Ue;rr++<Te;)if(J.charCodeAt(rr)===34){if(J.charCodeAt(rr+1)!==34)break;++rr}ae=rr+2;var or=J.charCodeAt(rr+1);return or===13?(we=!0,J.charCodeAt(rr+2)===10&&++ae):or===10&&(we=!0),J.slice(Ue+1,rr).replace(/""/g,'"')}for(;ae<Te;){var or=J.charCodeAt(ae++),ar=1;if(or===10)we=!0;else if(or===13)we=!0,J.charCodeAt(ae)===10&&(++ae,++ar);else if(or!==q)continue;return J.slice(Ue,ae-ar)}return J.slice(Ue)}for(;(he=Me())!==ee;){for(var pe=[];he!==j&&he!==ee;)pe.push(he),he=Me();$&&(pe=$(pe,oe++))==null||me.push(pe)}return me},C.format=function(J){if(Array.isArray(J[0]))return C.formatRows(J);var $=new O,j=[];return J.forEach(function(ee){for(var me in ee)$.has(me)||j.push($.add(me))}),[j.map(F).join(v)].concat(J.map(function(ee){return j.map(function(me){return F(ee[me])}).join(v)})).join(`
|
|
17
17
|
`)},C.formatRows=function(J){return J.map(E).join(`
|
|
18
18
|
`)};function E(J){return J.map(F).join(v)}function F(J){return w.test(J)?'"'+J.replace(/\"/g,'""')+'"':J}return C},e.csv=e.dsv(",","text/csv"),e.tsv=e.dsv(" ","text/tab-separated-values");var L0,S0,D0,P0,C_=this[Y(this,"requestAnimationFrame")]||function(v){setTimeout(v,17)};e.timer=function(){E0.apply(this,arguments)};function E0(v,g,w){var q=arguments.length;q<2&&(g=0),q<3&&(w=Date.now());var C=w+g,S={c:v,t:C,n:null};return S0?S0.n=S:L0=S,S0=S,D0||(P0=clearTimeout(P0),D0=1,C_(Jm)),S}function Jm(){var v=L_(),g=S_()-v;g>24?(isFinite(g)&&(clearTimeout(P0),P0=setTimeout(Jm,g)),D0=0):(D0=1,C_(Jm))}e.timer.flush=function(){L_(),S_()};function L_(){for(var v=Date.now(),g=L0;g;)v>=g.t&&g.c(v-g.t)&&(g.c=null),g=g.n;return v}function S_(){for(var v,g=L0,w=1/0;g;)g.c?(g.t<w&&(w=g.t),g=(v=g).n):g=v?v.n=g.n:L0=g.n;return S0=v,w}e.round=function(v,g){return g?Math.round(v*(g=Math.pow(10,g)))/g:Math.round(v)},e.geom={};function nu(v){return v[0]}function lc(v){return v[1]}e.geom.hull=function(v){var g=nu,w=lc;if(arguments.length)return q(v);function q(C){if(C.length<3)return[];var S=Nr(g),N=Nr(w),E,F=C.length,J=[],$=[];for(E=0;E<F;E++)J.push([+S.call(this,C[E],E),+N.call(this,C[E],E),E]);for(J.sort(JU),E=0;E<F;E++)$.push([J[E][0],-J[E][1]]);var j=D_(J),ee=D_($),me=ee[0]===j[0],Te=ee[ee.length-1]===j[j.length-1],ae=[];for(E=j.length-1;E>=0;--E)ae.push(C[J[j[E]][2]]);for(E=+me;E<ee.length-Te;++E)ae.push(C[J[ee[E]][2]]);return ae}return q.x=function(C){return arguments.length?(g=C,q):g},q.y=function(C){return arguments.length?(w=C,q):w},q};function D_(v){for(var g=v.length,w=[0,1],q=2,C=2;C<g;C++){for(;q>1&&Wr(v[w[q-2]],v[w[q-1]],v[C])<=0;)--q;w[q++]=C}return w.slice(0,q)}function JU(v,g){return v[0]-g[0]||v[1]-g[1]}e.geom.polygon=function(v){return Q(v,R0),v};var R0=e.geom.polygon.prototype=[];R0.area=function(){for(var v=-1,g=this.length,w,q=this[g-1],C=0;++v<g;)w=q,q=this[v],C+=w[1]*q[0]-w[0]*q[1];return C*.5},R0.centroid=function(v){var g=-1,w=this.length,q=0,C=0,S,N=this[w-1],E;for(arguments.length||(v=-1/(6*this.area()));++g<w;)S=N,N=this[g],E=S[0]*N[1]-N[0]*S[1],q+=(S[0]+N[0])*E,C+=(S[1]+N[1])*E;return[q*v,C*v]},R0.clip=function(v){for(var g,w=P_(v),q=-1,C=this.length-P_(this),S,N,E=this[C-1],F,J,$;++q<C;){for(g=v.slice(),v.length=0,F=this[q],J=g[(N=g.length-w)-1],S=-1;++S<N;)$=g[S],$m($,E,F)?($m(J,E,F)||v.push(Km(J,$,E,F)),v.push($)):$m(J,E,F)&&v.push(Km(J,$,E,F)),J=$;w&&v.push(v[0]),E=F}return v};function $m(v,g,w){return(w[0]-g[0])*(v[1]-g[1])<(w[1]-g[1])*(v[0]-g[0])}function Km(v,g,w,q){var C=v[0],S=w[0],N=g[0]-C,E=q[0]-S,F=v[1],J=w[1],$=g[1]-F,j=q[1]-J,ee=(E*(F-J)-j*(C-S))/(j*N-E*$);return[C+ee*N,F+ee*$]}function P_(v){var g=v[0],w=v[v.length-1];return!(g[0]-w[0]||g[1]-w[1])}var iu,Ro,lu,E_=[],Qm,oc,R_=[];function $U(){F0(this),this.edge=this.site=this.circle=null}function z_(v){var g=E_.pop()||new $U;return g.site=v,g}function jm(v){su(v),lu.remove(v),E_.push(v),F0(v)}function KU(v){var g=v.circle,w=g.x,q=g.cy,C={x:w,y:q},S=v.P,N=v.N,E=[v];jm(v);for(var F=S;F.circle&&b(w-F.circle.x)<fe&&b(q-F.circle.cy)<fe;)S=F.P,E.unshift(F),jm(F),F=S;E.unshift(F),su(F);for(var J=N;J.circle&&b(w-J.circle.x)<fe&&b(q-J.circle.cy)<fe;)N=J.N,E.push(J),jm(J),J=N;E.push(J),su(J);var $=E.length,j;for(j=1;j<$;++j)J=E[j],F=E[j-1],z0(J.edge,F.site,J.site,C);F=E[0],J=E[$-1],J.edge=sc(F.site,J.site,null,C),ou(F),ou(J)}function QU(v){for(var g=v.x,w=v.y,q,C,S,N,E=lu._;E;)if(S=N_(E,w)-g,S>fe)E=E.L;else if(N=g-jU(E,w),N>fe){if(!E.R){q=E;break}E=E.R}else{S>-fe?(q=E.P,C=E):N>-fe?(q=E,C=E.N):q=C=E;break}var F=z_(v);if(lu.insert(q,F),!(!q&&!C)){if(q===C){su(q),C=z_(q.site),lu.insert(F,C),F.edge=C.edge=sc(q.site,F.site),ou(q),ou(C);return}if(!C){F.edge=sc(q.site,F.site);return}su(q),su(C);var J=q.site,$=J.x,j=J.y,ee=v.x-$,me=v.y-j,Te=C.site,ae=Te.x-$,oe=Te.y-j,he=2*(ee*oe-me*ae),we=ee*ee+me*me,Me=ae*ae+oe*oe,pe={x:(oe*we-me*Me)/he+$,y:(ee*Me-ae*we)/he+j};z0(C.edge,J,Te,pe),F.edge=sc(J,v,null,pe),C.edge=sc(v,Te,null,pe),ou(q),ou(C)}}function N_(v,g){var w=v.site,q=w.x,C=w.y,S=C-g;if(!S)return q;var N=v.P;if(!N)return-1/0;w=N.site;var E=w.x,F=w.y,J=F-g;if(!J)return E;var $=E-q,j=1/S-1/J,ee=$/J;return j?(-ee+Math.sqrt(ee*ee-2*j*($*$/(-2*J)-F+J/2+C-S/2)))/j+q:(q+E)/2}function jU(v,g){var w=v.N;if(w)return N_(w,g);var q=v.site;return q.y===g?q.x:1/0}function F_(v){this.site=v,this.edges=[]}F_.prototype.prepare=function(){for(var v=this.edges,g=v.length,w;g--;)w=v[g].edge,(!w.b||!w.a)&&v.splice(g,1);return v.sort(I_),v.length};function eV(v){for(var g=v[0][0],w=v[1][0],q=v[0][1],C=v[1][1],S,N,E,F,J=Ro,$=J.length,j,ee,me,Te,ae,oe;$--;)if(j=J[$],!(!j||!j.prepare()))for(me=j.edges,Te=me.length,ee=0;ee<Te;)oe=me[ee].end(),E=oe.x,F=oe.y,ae=me[++ee%Te].start(),S=ae.x,N=ae.y,(b(E-S)>fe||b(F-N)>fe)&&(me.splice(ee,0,new N0(iV(j.site,oe,b(E-g)<fe&&C-F>fe?{x:g,y:b(S-g)<fe?N:C}:b(F-C)<fe&&w-E>fe?{x:b(N-C)<fe?S:w,y:C}:b(E-w)<fe&&F-q>fe?{x:w,y:b(S-w)<fe?N:q}:b(F-q)<fe&&E-g>fe?{x:b(N-q)<fe?S:g,y:q}:null),j.site,null)),++Te)}function I_(v,g){return g.angle-v.angle}function rV(){F0(this),this.x=this.y=this.arc=this.site=this.cy=null}function ou(v){var g=v.P,w=v.N;if(!(!g||!w)){var q=g.site,C=v.site,S=w.site;if(q!==S){var N=C.x,E=C.y,F=q.x-N,J=q.y-E,$=S.x-N,oe=S.y-E,j=2*(F*oe-J*$);if(!(j>=-Se)){var ee=F*F+J*J,me=$*$+oe*oe,Te=(oe*ee-J*me)/j,ae=(F*me-$*ee)/j,oe=ae+E,he=R_.pop()||new rV;he.arc=v,he.site=C,he.x=Te+N,he.y=oe+Math.sqrt(Te*Te+ae*ae),he.cy=oe,v.circle=he;for(var we=null,Me=oc._;Me;)if(he.y<Me.y||he.y===Me.y&&he.x<=Me.x)if(Me.L)Me=Me.L;else{we=Me.P;break}else if(Me.R)Me=Me.R;else{we=Me;break}oc.insert(we,he),we||(Qm=he)}}}}function su(v){var g=v.circle;g&&(g.P||(Qm=g.N),oc.remove(g),R_.push(g),F0(g),v.circle=null)}function tV(v,g,w,q){return function(C){var S=C.a,N=C.b,E=S.x,F=S.y,J=N.x,$=N.y,j=0,ee=1,me=J-E,Te=$-F,ae;if(ae=v-E,!(!me&&ae>0)){if(ae/=me,me<0){if(ae<j)return;ae<ee&&(ee=ae)}else if(me>0){if(ae>ee)return;ae>j&&(j=ae)}if(ae=w-E,!(!me&&ae<0)){if(ae/=me,me<0){if(ae>ee)return;ae>j&&(j=ae)}else if(me>0){if(ae<j)return;ae<ee&&(ee=ae)}if(ae=g-F,!(!Te&&ae>0)){if(ae/=Te,Te<0){if(ae<j)return;ae<ee&&(ee=ae)}else if(Te>0){if(ae>ee)return;ae>j&&(j=ae)}if(ae=q-F,!(!Te&&ae<0)){if(ae/=Te,Te<0){if(ae>ee)return;ae>j&&(j=ae)}else if(Te>0){if(ae<j)return;ae<ee&&(ee=ae)}return j>0&&(C.a={x:E+j*me,y:F+j*Te}),ee<1&&(C.b={x:E+ee*me,y:F+ee*Te}),C}}}}}}function aV(v){for(var g=iu,w=tV(v[0][0],v[0][1],v[1][0],v[1][1]),q=g.length,C;q--;)C=g[q],(!nV(C,v)||!w(C)||b(C.a.x-C.b.x)<fe&&b(C.a.y-C.b.y)<fe)&&(C.a=C.b=null,g.splice(q,1))}function nV(v,g){var w=v.b;if(w)return!0;var q=v.a,C=g[0][0],S=g[1][0],N=g[0][1],E=g[1][1],F=v.l,J=v.r,$=F.x,j=F.y,ee=J.x,me=J.y,Te=($+ee)/2,ae=(j+me)/2,oe,he;if(me===j){if(Te<C||Te>=S)return;if($>ee){if(!q)q={x:Te,y:N};else if(q.y>=E)return;w={x:Te,y:E}}else{if(!q)q={x:Te,y:E};else if(q.y<N)return;w={x:Te,y:N}}}else if(oe=($-ee)/(me-j),he=ae-oe*Te,oe<-1||oe>1)if($>ee){if(!q)q={x:(N-he)/oe,y:N};else if(q.y>=E)return;w={x:(E-he)/oe,y:E}}else{if(!q)q={x:(E-he)/oe,y:E};else if(q.y<N)return;w={x:(N-he)/oe,y:N}}else if(j<me){if(!q)q={x:C,y:oe*C+he};else if(q.x>=S)return;w={x:S,y:oe*S+he}}else{if(!q)q={x:S,y:oe*S+he};else if(q.x<C)return;w={x:C,y:oe*C+he}}return v.a=q,v.b=w,!0}function H_(v,g){this.l=v,this.r=g,this.a=this.b=null}function sc(v,g,w,q){var C=new H_(v,g);return iu.push(C),w&&z0(C,v,g,w),q&&z0(C,g,v,q),Ro[v.i].edges.push(new N0(C,v,g)),Ro[g.i].edges.push(new N0(C,g,v)),C}function iV(v,g,w){var q=new H_(v,null);return q.a=g,q.b=w,iu.push(q),q}function z0(v,g,w,q){!v.a&&!v.b?(v.a=q,v.l=g,v.r=w):v.l===w?v.b=q:v.a=q}function N0(v,g,w){var q=v.a,C=v.b;this.edge=v,this.site=g,this.angle=w?Math.atan2(w.y-g.y,w.x-g.x):v.l===g?Math.atan2(C.x-q.x,q.y-C.y):Math.atan2(q.x-C.x,C.y-q.y)}N0.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 ey(){this._=null}function F0(v){v.U=v.C=v.L=v.R=v.P=v.N=null}ey.prototype={insert:function(v,g){var w,q,C;if(v){if(g.P=v,g.N=v.N,v.N&&(v.N.P=g),v.N=g,v.R){for(v=v.R;v.L;)v=v.L;v.L=g}else v.R=g;w=v}else this._?(v=O_(this._),g.P=null,g.N=v,v.P=v.L=g,w=v):(g.P=g.N=null,this._=g,w=null);for(g.L=g.R=null,g.U=w,g.C=!0,v=g;w&&w.C;)q=w.U,w===q.L?(C=q.R,C&&C.C?(w.C=C.C=!1,q.C=!0,v=q):(v===w.R&&(uc(this,w),v=w,w=v.U),w.C=!1,q.C=!0,fc(this,q))):(C=q.L,C&&C.C?(w.C=C.C=!1,q.C=!0,v=q):(v===w.L&&(fc(this,w),v=w,w=v.U),w.C=!1,q.C=!0,uc(this,q))),w=v.U;this._.C=!1},remove:function(v){v.N&&(v.N.P=v.P),v.P&&(v.P.N=v.N),v.N=v.P=null;var g=v.U,w,q=v.L,C=v.R,S,N;if(q?C?S=O_(C):S=q:S=C,g?g.L===v?g.L=S:g.R=S:this._=S,q&&C?(N=S.C,S.C=v.C,S.L=q,q.U=S,S!==C?(g=S.U,S.U=v.U,v=S.R,g.L=v,S.R=C,C.U=S):(S.U=g,g=S,v=S.R)):(N=v.C,v=S),v&&(v.U=g),!N){if(v&&v.C){v.C=!1;return}do{if(v===this._)break;if(v===g.L){if(w=g.R,w.C&&(w.C=!1,g.C=!0,uc(this,g),w=g.R),w.L&&w.L.C||w.R&&w.R.C){(!w.R||!w.R.C)&&(w.L.C=!1,w.C=!0,fc(this,w),w=g.R),w.C=g.C,g.C=w.R.C=!1,uc(this,g),v=this._;break}}else if(w=g.L,w.C&&(w.C=!1,g.C=!0,fc(this,g),w=g.L),w.L&&w.L.C||w.R&&w.R.C){(!w.L||!w.L.C)&&(w.R.C=!1,w.C=!0,uc(this,w),w=g.L),w.C=g.C,g.C=w.L.C=!1,fc(this,g),v=this._;break}w.C=!0,v=g,g=g.U}while(!v.C);v&&(v.C=!1)}}};function uc(v,g){var w=g,q=g.R,C=w.U;C?C.L===w?C.L=q:C.R=q:v._=q,q.U=C,w.U=q,w.R=q.L,w.R&&(w.R.U=w),q.L=w}function fc(v,g){var w=g,q=g.L,C=w.U;C?C.L===w?C.L=q:C.R=q:v._=q,q.U=C,w.U=q,w.L=q.R,w.L&&(w.L.U=w),q.R=w}function O_(v){for(;v.L;)v=v.L;return v}function ry(v,g){var w=v.sort(lV).pop(),q,C,S;for(iu=[],Ro=new Array(v.length),lu=new ey,oc=new ey;;)if(S=Qm,w&&(!S||w.y<S.y||w.y===S.y&&w.x<S.x))(w.x!==q||w.y!==C)&&(Ro[w.i]=new F_(w),QU(w),q=w.x,C=w.y),w=v.pop();else if(S)KU(S.arc);else break;g&&(aV(g),eV(g));var N={cells:Ro,edges:iu};return lu=oc=iu=Ro=null,N}function lV(v,g){return g.y-v.y||g.x-v.x}e.geom.voronoi=function(v){var g=nu,w=lc,q=g,C=w,S=I0;if(v)return N(v);function N(F){var J=new Array(F.length),$=S[0][0],j=S[0][1],ee=S[1][0],me=S[1][1];return ry(E(F),S).cells.forEach(function(Te,ae){var oe=Te.edges,he=Te.site,we=J[ae]=oe.length?oe.map(function(Me){var pe=Me.start();return[pe.x,pe.y]}):he.x>=$&&he.x<=ee&&he.y>=j&&he.y<=me?[[$,me],[ee,me],[ee,j],[$,j]]:[];we.point=F[ae]}),J}function E(F){return F.map(function(J,$){return{x:Math.round(q(J,$)/fe)*fe,y:Math.round(C(J,$)/fe)*fe,i:$}})}return N.links=function(F){return ry(E(F)).edges.filter(function(J){return J.l&&J.r}).map(function(J){return{source:F[J.l.i],target:F[J.r.i]}})},N.triangles=function(F){var J=[];return ry(E(F)).cells.forEach(function($,j){for(var ee=$.site,me=$.edges.sort(I_),Te=-1,ae=me.length,oe,he,we=me[ae-1].edge,Me=we.l===ee?we.r:we.l;++Te<ae;)oe=we,he=Me,we=me[Te].edge,Me=we.l===ee?we.r:we.l,j<he.i&&j<Me.i&&oV(ee,he,Me)<0&&J.push([F[j],F[he.i],F[Me.i]])}),J},N.x=function(F){return arguments.length?(q=Nr(g=F),N):g},N.y=function(F){return arguments.length?(C=Nr(w=F),N):w},N.clipExtent=function(F){return arguments.length?(S=F==null?I0:F,N):S===I0?null:S},N.size=function(F){return arguments.length?N.clipExtent(F&&[[0,0],F]):S===I0?null:S&&S[1]},N};var I0=[[-1e6,-1e6],[1e6,1e6]];function oV(v,g,w){return(v.x-w.x)*(g.y-v.y)-(v.x-g.x)*(w.y-v.y)}e.geom.delaunay=function(v){return e.geom.voronoi().triangles(v)},e.geom.quadtree=function(v,g,w,q,C){var S=nu,N=lc,E;if(E=arguments.length)return S=sV,N=uV,E===3&&(C=w,q=g,w=g=0),F(v);function F(J){var $,j=Nr(S),ee=Nr(N),me,Te,ae,oe,he,we,Me,pe;if(g!=null)he=g,we=w,Me=q,pe=C;else if(Me=pe=-(he=we=1/0),me=[],Te=[],oe=J.length,E)for(ae=0;ae<oe;++ae)$=J[ae],$.x<he&&(he=$.x),$.y<we&&(we=$.y),$.x>Me&&(Me=$.x),$.y>pe&&(pe=$.y),me.push($.x),Te.push($.y);else for(ae=0;ae<oe;++ae){var Ue=+j($=J[ae],ae),rr=+ee($,ae);Ue<he&&(he=Ue),rr<we&&(we=rr),Ue>Me&&(Me=Ue),rr>pe&&(pe=rr),me.push(Ue),Te.push(rr)}var or=Me-he,ar=pe-we;or>ar?pe=we+or:Me=he+ar;function hr(pr,Mr,Kr,Ft,at,er,Dr,Pr){if(!(isNaN(Kr)||isNaN(Ft)))if(pr.leaf){var Qr=pr.x,kt=pr.y;if(Qr!=null)if(b(Qr-Kr)+b(kt-Ft)<.01)dr(pr,Mr,Kr,Ft,at,er,Dr,Pr);else{var Zt=pr.point;pr.x=pr.y=pr.point=null,dr(pr,Zt,Qr,kt,at,er,Dr,Pr),dr(pr,Mr,Kr,Ft,at,er,Dr,Pr)}else pr.x=Kr,pr.y=Ft,pr.point=Mr}else dr(pr,Mr,Kr,Ft,at,er,Dr,Pr)}function dr(pr,Mr,Kr,Ft,at,er,Dr,Pr){var Qr=(at+Dr)*.5,kt=(er+Pr)*.5,Zt=Kr>=Qr,xa=Ft>=kt,Ha=xa<<1|Zt;pr.leaf=!1,pr=pr.nodes[Ha]||(pr.nodes[Ha]=B_()),Zt?at=Qr:Dr=Qr,xa?er=kt:Pr=kt,hr(pr,Mr,Kr,Ft,at,er,Dr,Pr)}var Sr=B_();if(Sr.add=function(pr){hr(Sr,pr,+j(pr,++ae),+ee(pr,ae),he,we,Me,pe)},Sr.visit=function(pr){cc(pr,Sr,he,we,Me,pe)},Sr.find=function(pr){return fV(Sr,pr[0],pr[1],he,we,Me,pe)},ae=-1,g==null){for(;++ae<oe;)hr(Sr,J[ae],me[ae],Te[ae],he,we,Me,pe);--ae}else J.forEach(Sr.add);return me=Te=J=$=null,Sr}return F.x=function(J){return arguments.length?(S=J,F):S},F.y=function(J){return arguments.length?(N=J,F):N},F.extent=function(J){return arguments.length?(J==null?g=w=q=C=null:(g=+J[0][0],w=+J[0][1],q=+J[1][0],C=+J[1][1]),F):g==null?null:[[g,w],[q,C]]},F.size=function(J){return arguments.length?(J==null?g=w=q=C=null:(g=w=0,q=+J[0],C=+J[1]),F):g==null?null:[q-g,C-w]},F};function sV(v){return v.x}function uV(v){return v.y}function B_(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function cc(v,g,w,q,C,S){if(!v(g,w,q,C,S)){var N=(w+C)*.5,E=(q+S)*.5,F=g.nodes;F[0]&&cc(v,F[0],w,q,N,E),F[1]&&cc(v,F[1],N,q,C,E),F[2]&&cc(v,F[2],w,E,N,S),F[3]&&cc(v,F[3],N,E,C,S)}}function fV(v,g,w,q,C,S,N){var E=1/0,F;return function J($,j,ee,me,Te){if(!(j>S||ee>N||me<q||Te<C)){if(ae=$.point){var ae,oe=g-$.x,he=w-$.y,we=oe*oe+he*he;if(we<E){var Me=Math.sqrt(E=we);q=g-Me,C=w-Me,S=g+Me,N=w+Me,F=ae}}for(var pe=$.nodes,Ue=(j+me)*.5,rr=(ee+Te)*.5,or=g>=Ue,ar=w>=rr,hr=ar<<1|or,dr=hr+4;hr<dr;++hr)if($=pe[hr&3])switch(hr&3){case 0:J($,j,ee,Ue,rr);break;case 1:J($,Ue,ee,me,rr);break;case 2:J($,j,rr,Ue,Te);break;case 3:J($,Ue,rr,me,Te);break}}}(v,q,C,S,N),F}e.interpolateRgb=ty;function ty(v,g){v=e.rgb(v),g=e.rgb(g);var w=v.r,q=v.g,C=v.b,S=g.r-w,N=g.g-q,E=g.b-C;return function(F){return"#"+mr(Math.round(w+S*F))+mr(Math.round(q+N*F))+mr(Math.round(C+E*F))}}e.interpolateObject=Y_;function Y_(v,g){var w={},q={},C;for(C in v)C in g?w[C]=zo(v[C],g[C]):q[C]=v[C];for(C in g)C in v||(q[C]=g[C]);return function(S){for(C in w)q[C]=w[C](S);return q}}e.interpolateNumber=nl;function nl(v,g){return v=+v,g=+g,function(w){return v*(1-w)+g*w}}e.interpolateString=G_;function G_(v,g){var w=ay.lastIndex=ny.lastIndex=0,q,C,S,N=-1,E=[],F=[];for(v=v+"",g=g+"";(q=ay.exec(v))&&(C=ny.exec(g));)(S=C.index)>w&&(S=g.slice(w,S),E[N]?E[N]+=S:E[++N]=S),(q=q[0])===(C=C[0])?E[N]?E[N]+=C:E[++N]=C:(E[++N]=null,F.push({i:N,x:nl(q,C)})),w=ny.lastIndex;return w<g.length&&(S=g.slice(w),E[N]?E[N]+=S:E[++N]=S),E.length<2?F[0]?(g=F[0].x,function(J){return g(J)+""}):function(){return g}:(g=F.length,function(J){for(var $=0,j;$<g;++$)E[(j=F[$]).i]=j.x(J);return E.join("")})}var ay=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ny=new RegExp(ay.source,"g");e.interpolate=zo;function zo(v,g){for(var w=e.interpolators.length,q;--w>=0&&!(q=e.interpolators[w](v,g)););return q}e.interpolators=[function(v,g){var w=typeof g;return(w==="string"?ga.has(g.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(g)?ty:G_:g instanceof Lt?ty:Array.isArray(g)?H0:w==="object"&&isNaN(g)?Y_:nl)(v,g)}],e.interpolateArray=H0;function H0(v,g){var w=[],q=[],C=v.length,S=g.length,N=Math.min(v.length,g.length),E;for(E=0;E<N;++E)w.push(zo(v[E],g[E]));for(;E<C;++E)q[E]=v[E];for(;E<S;++E)q[E]=g[E];return function(F){for(E=0;E<N;++E)q[E]=w[E](F);return q}}var U_=function(){return U},cV=e.map({linear:U_,poly:yV,quad:function(){return dV},cubic:function(){return pV},sin:function(){return gV},exp:function(){return xV},circle:function(){return bV},elastic:_V,back:wV,bounce:function(){return TV}}),vV=e.map({in:U,out:V_,"in-out":W_,"out-in":function(v){return W_(V_(v))}});e.ease=function(v){var g=v.indexOf("-"),w=g>=0?v.slice(0,g):v,q=g>=0?v.slice(g+1):"in";return w=cV.get(w)||U_,q=vV.get(q)||U,hV(q(w.apply(null,r.call(arguments,1))))};function hV(v){return function(g){return g<=0?0:g>=1?1:v(g)}}function V_(v){return function(g){return 1-v(1-g)}}function W_(v){return function(g){return .5*(g<.5?v(2*g):2-v(2-2*g))}}function dV(v){return v*v}function pV(v){return v*v*v}function mV(v){if(v<=0)return 0;if(v>=1)return 1;var g=v*v,w=g*v;return 4*(v<.5?w:3*(v-g)+w-.75)}function yV(v){return function(g){return Math.pow(g,v)}}function gV(v){return 1-Math.cos(v*sr)}function xV(v){return Math.pow(2,10*(v-1))}function bV(v){return 1-Math.sqrt(1-v*v)}function _V(v,g){var w;return arguments.length<2&&(g=.45),arguments.length?w=g/ir*Math.asin(1/v):(v=1,w=g/4),function(q){return 1+v*Math.pow(2,-10*q)*Math.sin((q-w)*ir/g)}}function wV(v){return v||(v=1.70158),function(g){return g*g*((v+1)*g-v)}}function TV(v){return v<1/2.75?7.5625*v*v:v<2/2.75?7.5625*(v-=1.5/2.75)*v+.75:v<2.5/2.75?7.5625*(v-=2.25/2.75)*v+.9375:7.5625*(v-=2.625/2.75)*v+.984375}e.interpolateHcl=MV;function MV(v,g){v=e.hcl(v),g=e.hcl(g);var w=v.h,q=v.c,C=v.l,S=g.h-w,N=g.c-q,E=g.l-C;return isNaN(N)&&(N=0,q=isNaN(q)?g.c:q),isNaN(S)?(S=0,w=isNaN(w)?g.h:w):S>180?S-=360:S<-180&&(S+=360),function(F){return ni(w+S*F,q+N*F,C+E*F)+""}}e.interpolateHsl=AV;function AV(v,g){v=e.hsl(v),g=e.hsl(g);var w=v.h,q=v.s,C=v.l,S=g.h-w,N=g.s-q,E=g.l-C;return isNaN(N)&&(N=0,q=isNaN(q)?g.s:q),isNaN(S)?(S=0,w=isNaN(w)?g.h:w):S>180?S-=360:S<-180&&(S+=360),function(F){return Fa(w+S*F,q+N*F,C+E*F)+""}}e.interpolateLab=kV;function kV(v,g){v=e.lab(v),g=e.lab(g);var w=v.l,q=v.a,C=v.b,S=g.l-w,N=g.a-q,E=g.b-C;return function(F){return k0(w+S*F,q+N*F,C+E*F)+""}}e.interpolateRound=X_;function X_(v,g){return g-=v,function(w){return Math.round(v+g*w)}}e.transform=function(v){var g=a.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(w){if(w!=null){g.setAttribute("transform",w);var q=g.transform.baseVal.consolidate()}return new Z_(q?q.matrix:CV)})(v)};function Z_(v){var g=[v.a,v.b],w=[v.c,v.d],q=$_(g),C=J_(g,w),S=$_(qV(w,g,-C))||0;g[0]*w[1]<w[0]*g[1]&&(g[0]*=-1,g[1]*=-1,q*=-1,C*=-1),this.rotate=(q?Math.atan2(g[1],g[0]):Math.atan2(-w[0],w[1]))*Ur,this.translate=[v.e,v.f],this.scale=[q,S],this.skew=S?Math.atan2(C,S)*Ur:0}Z_.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};function J_(v,g){return v[0]*g[0]+v[1]*g[1]}function $_(v){var g=Math.sqrt(J_(v,v));return g&&(v[0]/=g,v[1]/=g),g}function qV(v,g,w){return v[0]+=w*g[0],v[1]+=w*g[1],v}var CV={a:1,b:0,c:0,d:1,e:0,f:0};e.interpolateTransform=K_;function uu(v){return v.length?v.pop()+",":""}function LV(v,g,w,q){if(v[0]!==g[0]||v[1]!==g[1]){var C=w.push("translate(",null,",",null,")");q.push({i:C-4,x:nl(v[0],g[0])},{i:C-2,x:nl(v[1],g[1])})}else(g[0]||g[1])&&w.push("translate("+g+")")}function SV(v,g,w,q){v!==g?(v-g>180?g+=360:g-v>180&&(v+=360),q.push({i:w.push(uu(w)+"rotate(",null,")")-2,x:nl(v,g)})):g&&w.push(uu(w)+"rotate("+g+")")}function DV(v,g,w,q){v!==g?q.push({i:w.push(uu(w)+"skewX(",null,")")-2,x:nl(v,g)}):g&&w.push(uu(w)+"skewX("+g+")")}function PV(v,g,w,q){if(v[0]!==g[0]||v[1]!==g[1]){var C=w.push(uu(w)+"scale(",null,",",null,")");q.push({i:C-4,x:nl(v[0],g[0])},{i:C-2,x:nl(v[1],g[1])})}else(g[0]!==1||g[1]!==1)&&w.push(uu(w)+"scale("+g+")")}function K_(v,g){var w=[],q=[];return v=e.transform(v),g=e.transform(g),LV(v.translate,g.translate,w,q),SV(v.rotate,g.rotate,w,q),DV(v.skew,g.skew,w,q),PV(v.scale,g.scale,w,q),v=g=null,function(C){for(var S=-1,N=q.length,E;++S<N;)w[(E=q[S]).i]=E.x(C);return w.join("")}}function EV(v,g){return g=(g-=v=+v)||1/g,function(w){return(w-v)/g}}function RV(v,g){return g=(g-=v=+v)||1/g,function(w){return Math.max(0,Math.min(1,(w-v)/g))}}e.layout={},e.layout.bundle=function(){return function(v){for(var g=[],w=-1,q=v.length;++w<q;)g.push(zV(v[w]));return g}};function zV(v){for(var g=v.source,w=v.target,q=NV(g,w),C=[g];g!==q;)g=g.parent,C.push(g);for(var S=C.length;w!==q;)C.splice(S,0,w),w=w.parent;return C}function Q_(v){for(var g=[],w=v.parent;w!=null;)g.push(v),v=w,w=w.parent;return g.push(v),g}function NV(v,g){if(v===g)return v;for(var w=Q_(v),q=Q_(g),C=w.pop(),S=q.pop(),N=null;C===S;)N=C,C=w.pop(),S=q.pop();return N}e.layout.chord=function(){var v={},g,w,q,C,S=0,N,E,F;function J(){var j={},ee=[],me=e.range(C),Te=[],ae,oe,he,we,Me;for(g=[],w=[],ae=0,we=-1;++we<C;){for(oe=0,Me=-1;++Me<C;)oe+=q[we][Me];ee.push(oe),Te.push(e.range(C)),ae+=oe}for(N&&me.sort(function(Sr,pr){return N(ee[Sr],ee[pr])}),E&&Te.forEach(function(Sr,pr){Sr.sort(function(Mr,Kr){return E(q[pr][Mr],q[pr][Kr])})}),ae=(ir-S*C)/ae,oe=0,we=-1;++we<C;){for(he=oe,Me=-1;++Me<C;){var pe=me[we],Ue=Te[pe][Me],rr=q[pe][Ue],or=oe,ar=oe+=rr*ae;j[pe+"-"+Ue]={index:pe,subindex:Ue,startAngle:or,endAngle:ar,value:rr}}w[pe]={index:pe,startAngle:he,endAngle:oe,value:ee[pe]},oe+=S}for(we=-1;++we<C;)for(Me=we-1;++Me<C;){var hr=j[we+"-"+Me],dr=j[Me+"-"+we];(hr.value||dr.value)&&g.push(hr.value<dr.value?{source:dr,target:hr}:{source:hr,target:dr})}F&&$()}function $(){g.sort(function(j,ee){return F((j.source.value+j.target.value)/2,(ee.source.value+ee.target.value)/2)})}return v.matrix=function(j){return arguments.length?(C=(q=j)&&q.length,g=w=null,v):q},v.padding=function(j){return arguments.length?(S=j,g=w=null,v):S},v.sortGroups=function(j){return arguments.length?(N=j,g=w=null,v):N},v.sortSubgroups=function(j){return arguments.length?(E=j,g=null,v):E},v.sortChords=function(j){return arguments.length?(F=j,g&&$(),v):F},v.chords=function(){return g||J(),g},v.groups=function(){return w||J(),w},v},e.layout.force=function(){var v={},g=e.dispatch("start","tick","end"),w,q=[1,1],C,S,N=.9,E=BV,F=YV,J=-30,$=GV,j=.1,ee=.64,me=[],Te=[],ae,oe,he;function we(pe){return function(Ue,rr,or,ar){if(Ue.point!==pe){var hr=Ue.cx-pe.x,dr=Ue.cy-pe.y,Sr=ar-rr,pr=hr*hr+dr*dr;if(Sr*Sr/ee<pr){if(pr<$){var Mr=Ue.charge/pr;pe.px-=hr*Mr,pe.py-=dr*Mr}return!0}if(Ue.point&&pr&&pr<$){var Mr=Ue.pointCharge/pr;pe.px-=hr*Mr,pe.py-=dr*Mr}}return!Ue.charge}}v.tick=function(){if((S*=.99)<.005)return w=null,g.end({type:"end",alpha:S=0}),!0;var pe=me.length,Ue=Te.length,rr,or,ar,hr,dr,Sr,pr,Mr,Kr;for(or=0;or<Ue;++or)ar=Te[or],hr=ar.source,dr=ar.target,Mr=dr.x-hr.x,Kr=dr.y-hr.y,(Sr=Mr*Mr+Kr*Kr)&&(Sr=S*oe[or]*((Sr=Math.sqrt(Sr))-ae[or])/Sr,Mr*=Sr,Kr*=Sr,dr.x-=Mr*(pr=hr.weight+dr.weight?hr.weight/(hr.weight+dr.weight):.5),dr.y-=Kr*pr,hr.x+=Mr*(pr=1-pr),hr.y+=Kr*pr);if((pr=S*j)&&(Mr=q[0]/2,Kr=q[1]/2,or=-1,pr))for(;++or<pe;)ar=me[or],ar.x+=(Mr-ar.x)*pr,ar.y+=(Kr-ar.y)*pr;if(J)for(j_(rr=e.geom.quadtree(me),S,he),or=-1;++or<pe;)(ar=me[or]).fixed||rr.visit(we(ar));for(or=-1;++or<pe;)ar=me[or],ar.fixed?(ar.x=ar.px,ar.y=ar.py):(ar.x-=(ar.px-(ar.px=ar.x))*N,ar.y-=(ar.py-(ar.py=ar.y))*N);g.tick({type:"tick",alpha:S})},v.nodes=function(pe){return arguments.length?(me=pe,v):me},v.links=function(pe){return arguments.length?(Te=pe,v):Te},v.size=function(pe){return arguments.length?(q=pe,v):q},v.linkDistance=function(pe){return arguments.length?(E=typeof pe=="function"?pe:+pe,v):E},v.distance=v.linkDistance,v.linkStrength=function(pe){return arguments.length?(F=typeof pe=="function"?pe:+pe,v):F},v.friction=function(pe){return arguments.length?(N=+pe,v):N},v.charge=function(pe){return arguments.length?(J=typeof pe=="function"?pe:+pe,v):J},v.chargeDistance=function(pe){return arguments.length?($=pe*pe,v):Math.sqrt($)},v.gravity=function(pe){return arguments.length?(j=+pe,v):j},v.theta=function(pe){return arguments.length?(ee=pe*pe,v):Math.sqrt(ee)},v.alpha=function(pe){return arguments.length?(pe=+pe,S?pe>0?S=pe:(w.c=null,w.t=NaN,w=null,g.end({type:"end",alpha:S=0})):pe>0&&(g.start({type:"start",alpha:S=pe}),w=E0(v.tick)),v):S},v.start=function(){var pe,Ue=me.length,rr=Te.length,or=q[0],ar=q[1],hr,dr;for(pe=0;pe<Ue;++pe)(dr=me[pe]).index=pe,dr.weight=0;for(pe=0;pe<rr;++pe)dr=Te[pe],typeof dr.source=="number"&&(dr.source=me[dr.source]),typeof dr.target=="number"&&(dr.target=me[dr.target]),++dr.source.weight,++dr.target.weight;for(pe=0;pe<Ue;++pe)dr=me[pe],isNaN(dr.x)&&(dr.x=Sr("x",or)),isNaN(dr.y)&&(dr.y=Sr("y",ar)),isNaN(dr.px)&&(dr.px=dr.x),isNaN(dr.py)&&(dr.py=dr.y);if(ae=[],typeof E=="function")for(pe=0;pe<rr;++pe)ae[pe]=+E.call(this,Te[pe],pe);else for(pe=0;pe<rr;++pe)ae[pe]=E;if(oe=[],typeof F=="function")for(pe=0;pe<rr;++pe)oe[pe]=+F.call(this,Te[pe],pe);else for(pe=0;pe<rr;++pe)oe[pe]=F;if(he=[],typeof J=="function")for(pe=0;pe<Ue;++pe)he[pe]=+J.call(this,me[pe],pe);else for(pe=0;pe<Ue;++pe)he[pe]=J;function Sr(pr,Mr){if(!hr){for(hr=new Array(Ue),at=0;at<Ue;++at)hr[at]=[];for(at=0;at<rr;++at){var Kr=Te[at];hr[Kr.source.index].push(Kr.target),hr[Kr.target.index].push(Kr.source)}}for(var Ft=hr[pe],at=-1,er=Ft.length,Dr;++at<er;)if(!isNaN(Dr=Ft[at][pr]))return Dr;return Math.random()*Mr}return v.resume()},v.resume=function(){return v.alpha(.1)},v.stop=function(){return v.alpha(0)},v.drag=function(){if(C||(C=e.behavior.drag().origin(U).on("dragstart.force",FV).on("drag.force",Me).on("dragend.force",IV)),!arguments.length)return C;this.on("mouseover.force",HV).on("mouseout.force",OV).call(C)};function Me(pe){pe.px=e.event.x,pe.py=e.event.y,v.resume()}return e.rebind(v,g,"on")};function FV(v){v.fixed|=2}function IV(v){v.fixed&=-7}function HV(v){v.fixed|=4,v.px=v.x,v.py=v.y}function OV(v){v.fixed&=-5}function j_(v,g,w){var q=0,C=0;if(v.charge=0,!v.leaf)for(var S=v.nodes,N=S.length,E=-1,F;++E<N;)F=S[E],F!=null&&(j_(F,g,w),v.charge+=F.charge,q+=F.charge*F.cx,C+=F.charge*F.cy);if(v.point){v.leaf||(v.point.x+=Math.random()-.5,v.point.y+=Math.random()-.5);var J=g*w[v.point.index];v.charge+=v.pointCharge=J,q+=J*v.point.x,C+=J*v.point.y}v.cx=q/v.charge,v.cy=C/v.charge}var BV=20,YV=1,GV=1/0;e.layout.hierarchy=function(){var v=WV,g=UV,w=VV;function q(C){var S=[C],N=[],E;for(C.depth=0;(E=S.pop())!=null;)if(N.push(E),(J=g.call(q,E,E.depth))&&(F=J.length)){for(var F,J,$;--F>=0;)S.push($=J[F]),$.parent=E,$.depth=E.depth+1;w&&(E.value=0),E.children=J}else w&&(E.value=+w.call(q,E,E.depth)||0),delete E.children;return Ri(C,function(j){var ee,me;v&&(ee=j.children)&&ee.sort(v),w&&(me=j.parent)&&(me.value+=j.value)}),N}return q.sort=function(C){return arguments.length?(v=C,q):v},q.children=function(C){return arguments.length?(g=C,q):g},q.value=function(C){return arguments.length?(w=C,q):w},q.revalue=function(C){return w&&(hc(C,function(S){S.children&&(S.value=0)}),Ri(C,function(S){var N;S.children||(S.value=+w.call(q,S,S.depth)||0),(N=S.parent)&&(N.value+=S.value)})),C},q};function vc(v,g){return e.rebind(v,g,"sort","children","value"),v.nodes=v,v.links=XV,v}function hc(v,g){for(var w=[v];(v=w.pop())!=null;)if(g(v),(C=v.children)&&(q=C.length))for(var q,C;--q>=0;)w.push(C[q])}function Ri(v,g){for(var w=[v],q=[];(v=w.pop())!=null;)if(q.push(v),(N=v.children)&&(S=N.length))for(var C=-1,S,N;++C<S;)w.push(N[C]);for(;(v=q.pop())!=null;)g(v)}function UV(v){return v.children}function VV(v){return v.value}function WV(v,g){return g.value-v.value}function XV(v){return e.merge(v.map(function(g){return(g.children||[]).map(function(w){return{source:g,target:w}})}))}e.layout.partition=function(){var v=e.layout.hierarchy(),g=[1,1];function w(S,N,E,F){var J=S.children;if(S.x=N,S.y=S.depth*F,S.dx=E,S.dy=F,J&&(j=J.length)){var $=-1,j,ee,me;for(E=S.value?E/S.value:0;++$<j;)w(ee=J[$],N,me=ee.value*E,F),N+=me}}function q(S){var N=S.children,E=0;if(N&&(J=N.length))for(var F=-1,J;++F<J;)E=Math.max(E,q(N[F]));return 1+E}function C(S,N){var E=v.call(this,S,N);return w(E[0],0,g[0],g[1]/q(E[0])),E}return C.size=function(S){return arguments.length?(g=S,C):g},vc(C,v)},e.layout.pie=function(){var v=Number,g=e4,w=0,q=ir,C=0;function S(N){var E=N.length,F=N.map(function(we,Me){return+v.call(S,we,Me)}),J=+(typeof w=="function"?w.apply(this,arguments):w),$=(typeof q=="function"?q.apply(this,arguments):q)-J,j=Math.min(Math.abs($)/E,+(typeof C=="function"?C.apply(this,arguments):C)),ee=j*($<0?-1:1),me=e.sum(F),Te=me?($-E*ee)/me:0,ae=e.range(E),oe=[],he;return g!=null&&ae.sort(g===e4?function(we,Me){return F[Me]-F[we]}:function(we,Me){return g(N[we],N[Me])}),ae.forEach(function(we){oe[we]={data:N[we],value:he=F[we],startAngle:J,endAngle:J+=he*Te+ee,padAngle:j}}),oe}return S.value=function(N){return arguments.length?(v=N,S):v},S.sort=function(N){return arguments.length?(g=N,S):g},S.startAngle=function(N){return arguments.length?(w=N,S):w},S.endAngle=function(N){return arguments.length?(q=N,S):q},S.padAngle=function(N){return arguments.length?(C=N,S):C},S};var e4={};e.layout.stack=function(){var v=U,g=iy,w=ly,q=$V,C=ZV,S=JV;function N(E,F){if(!(Te=E.length))return E;var J=E.map(function(we,Me){return v.call(N,we,Me)}),$=J.map(function(we){return we.map(function(Me,pe){return[C.call(N,Me,pe),S.call(N,Me,pe)]})}),j=g.call(N,$,F);J=e.permute(J,j),$=e.permute($,j);var ee=w.call(N,$,F),me=J[0].length,Te,ae,oe,he;for(oe=0;oe<me;++oe)for(q.call(N,J[0][oe],he=ee[oe],$[0][oe][1]),ae=1;ae<Te;++ae)q.call(N,J[ae][oe],he+=$[ae-1][oe][1],$[ae][oe][1]);return E}return N.values=function(E){return arguments.length?(v=E,N):v},N.order=function(E){return arguments.length?(g=typeof E=="function"?E:KV.get(E)||iy,N):g},N.offset=function(E){return arguments.length?(w=typeof E=="function"?E:QV.get(E)||ly,N):w},N.x=function(E){return arguments.length?(C=E,N):C},N.y=function(E){return arguments.length?(S=E,N):S},N.out=function(E){return arguments.length?(q=E,N):q},N};function ZV(v){return v.x}function JV(v){return v.y}function $V(v,g,w){v.y0=g,v.y=w}var KV=e.map({"inside-out":function(v){var g=v.length,w,q,C=v.map(jV),S=v.map(eW),N=e.range(g).sort(function(j,ee){return C[j]-C[ee]}),E=0,F=0,J=[],$=[];for(w=0;w<g;++w)q=N[w],E<F?(E+=S[q],J.push(q)):(F+=S[q],$.push(q));return $.reverse().concat(J)},reverse:function(v){return e.range(v.length).reverse()},default:iy}),QV=e.map({silhouette:function(v){var g=v.length,w=v[0].length,q=[],C=0,S,N,E,F=[];for(N=0;N<w;++N){for(S=0,E=0;S<g;S++)E+=v[S][N][1];E>C&&(C=E),q.push(E)}for(N=0;N<w;++N)F[N]=(C-q[N])/2;return F},wiggle:function(v){var g=v.length,w=v[0],q=w.length,C,S,N,E,F,J,$,j,ee,me=[];for(me[0]=j=ee=0,S=1;S<q;++S){for(C=0,E=0;C<g;++C)E+=v[C][S][1];for(C=0,F=0,$=w[S][0]-w[S-1][0];C<g;++C){for(N=0,J=(v[C][S][1]-v[C][S-1][1])/(2*$);N<C;++N)J+=(v[N][S][1]-v[N][S-1][1])/$;F+=J*v[C][S][1]}me[S]=j-=E?F/E*$:0,j<ee&&(ee=j)}for(S=0;S<q;++S)me[S]-=ee;return me},expand:function(v){var g=v.length,w=v[0].length,q=1/g,C,S,N,E=[];for(S=0;S<w;++S){for(C=0,N=0;C<g;C++)N+=v[C][S][1];if(N)for(C=0;C<g;C++)v[C][S][1]/=N;else for(C=0;C<g;C++)v[C][S][1]=q}for(S=0;S<w;++S)E[S]=0;return E},zero:ly});function iy(v){return e.range(v.length)}function ly(v){for(var g=-1,w=v[0].length,q=[];++g<w;)q[g]=0;return q}function jV(v){for(var g=1,w=0,q=v[0][1],C,S=v.length;g<S;++g)(C=v[g][1])>q&&(w=g,q=C);return w}function eW(v){return v.reduce(rW,0)}function rW(v,g){return v+g[1]}e.layout.histogram=function(){var v=!0,g=Number,w=aW,q=tW;function C(S,ee){for(var E=[],F=S.map(g,this),J=w.call(this,F,ee),$=q.call(this,J,F,ee),j,ee=-1,me=F.length,Te=$.length-1,ae=v?1:1/me,oe;++ee<Te;)j=E[ee]=[],j.dx=$[ee+1]-(j.x=$[ee]),j.y=0;if(Te>0)for(ee=-1;++ee<me;)oe=F[ee],oe>=J[0]&&oe<=J[1]&&(j=E[e.bisect($,oe,1,Te)-1],j.y+=ae,j.push(S[ee]));return E}return C.value=function(S){return arguments.length?(g=S,C):g},C.range=function(S){return arguments.length?(w=Nr(S),C):w},C.bins=function(S){return arguments.length?(q=typeof S=="number"?function(N){return r4(N,S)}:Nr(S),C):q},C.frequency=function(S){return arguments.length?(v=!!S,C):v},C};function tW(v,g){return r4(v,Math.ceil(Math.log(g.length)/Math.LN2+1))}function r4(v,g){for(var w=-1,q=+v[0],C=(v[1]-q)/g,S=[];++w<=g;)S[w]=C*w+q;return S}function aW(v){return[e.min(v),e.max(v)]}e.layout.pack=function(){var v=e.layout.hierarchy().sort(nW),g=0,w=[1,1],q;function C(S,N){var E=v.call(this,S,N),F=E[0],J=w[0],$=w[1],j=q==null?Math.sqrt:typeof q=="function"?q:function(){return q};if(F.x=F.y=0,Ri(F,function(me){me.r=+j(me.value)}),Ri(F,n4),g){var ee=g*(q?1:Math.max(2*F.r/J,2*F.r/$))/2;Ri(F,function(me){me.r+=ee}),Ri(F,n4),Ri(F,function(me){me.r-=ee})}return i4(F,J/2,$/2,q?1:1/Math.max(2*F.r/J,2*F.r/$)),E}return C.size=function(S){return arguments.length?(w=S,C):w},C.radius=function(S){return arguments.length?(q=S==null||typeof S=="function"?S:+S,C):q},C.padding=function(S){return arguments.length?(g=+S,C):g},vc(C,v)};function nW(v,g){return v.value-g.value}function oy(v,g){var w=v._pack_next;v._pack_next=g,g._pack_prev=v,g._pack_next=w,w._pack_prev=g}function t4(v,g){v._pack_next=g,g._pack_prev=v}function a4(v,g){var w=g.x-v.x,q=g.y-v.y,C=v.r+g.r;return .999*C*C>w*w+q*q}function n4(v){if(!(g=v.children)||!(ee=g.length))return;var g,w=1/0,q=-1/0,C=1/0,S=-1/0,N,E,F,J,$,j,ee;function me(pe){w=Math.min(pe.x-pe.r,w),q=Math.max(pe.x+pe.r,q),C=Math.min(pe.y-pe.r,C),S=Math.max(pe.y+pe.r,S)}if(g.forEach(iW),N=g[0],N.x=-N.r,N.y=0,me(N),ee>1&&(E=g[1],E.x=E.r,E.y=0,me(E),ee>2))for(F=g[2],l4(N,E,F),me(F),oy(N,F),N._pack_prev=F,oy(F,E),E=N._pack_next,J=3;J<ee;J++){l4(N,E,F=g[J]);var Te=0,ae=1,oe=1;for($=E._pack_next;$!==E;$=$._pack_next,ae++)if(a4($,F)){Te=1;break}if(Te==1)for(j=N._pack_prev;j!==$._pack_prev&&!a4(j,F);j=j._pack_prev,oe++);Te?(ae<oe||ae==oe&&E.r<N.r?t4(N,E=$):t4(N=j,E),J--):(oy(N,F),E=F,me(F))}var he=(w+q)/2,we=(C+S)/2,Me=0;for(J=0;J<ee;J++)F=g[J],F.x-=he,F.y-=we,Me=Math.max(Me,F.r+Math.sqrt(F.x*F.x+F.y*F.y));v.r=Me,g.forEach(lW)}function iW(v){v._pack_next=v._pack_prev=v}function lW(v){delete v._pack_next,delete v._pack_prev}function i4(v,g,w,q){var C=v.children;if(v.x=g+=q*v.x,v.y=w+=q*v.y,v.r*=q,C)for(var S=-1,N=C.length;++S<N;)i4(C[S],g,w,q)}function l4(v,g,w){var q=v.r+w.r,C=g.x-v.x,S=g.y-v.y;if(q&&(C||S)){var N=g.r+w.r,E=C*C+S*S;N*=N,q*=q;var F=.5+(q-N)/(2*E),J=Math.sqrt(Math.max(0,2*N*(q+E)-(q-=E)*q-N*N))/(2*E);w.x=v.x+F*C+J*S,w.y=v.y+F*S-J*C}else w.x=v.x+q,w.y=v.y}e.layout.tree=function(){var v=e.layout.hierarchy().sort(null).value(null),g=o4,w=[1,1],q=null;function C($,j){var ee=v.call(this,$,j),me=ee[0],Te=S(me);if(Ri(Te,N),Te.parent.m=-Te.z,hc(Te,E),q)hc(me,J);else{var ae=me,oe=me,he=me;hc(me,function(Ue){Ue.x<ae.x&&(ae=Ue),Ue.x>oe.x&&(oe=Ue),Ue.depth>he.depth&&(he=Ue)});var we=g(ae,oe)/2-ae.x,Me=w[0]/(oe.x+g(oe,ae)/2+we),pe=w[1]/(he.depth||1);hc(me,function(Ue){Ue.x=(Ue.x+we)*Me,Ue.y=Ue.depth*pe})}return ee}function S($){for(var j={A:null,children:[$]},ee=[j],me;(me=ee.pop())!=null;)for(var Te=me.children,ae,oe=0,he=Te.length;oe<he;++oe)ee.push((Te[oe]=ae={_:Te[oe],parent:me,children:(ae=Te[oe].children)&&ae.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:oe}).a=ae);return j.children[0]}function N($){var j=$.children,ee=$.parent.children,me=$.i?ee[$.i-1]:null;if(j.length){sW($);var Te=(j[0].z+j[j.length-1].z)/2;me?($.z=me.z+g($._,me._),$.m=$.z-Te):$.z=Te}else me&&($.z=me.z+g($._,me._));$.parent.A=F($,me,$.parent.A||ee[0])}function E($){$._.x=$.z+$.parent.m,$.m+=$.parent.m}function F($,j,ee){if(j){for(var me=$,Te=$,ae=j,oe=me.parent.children[0],he=me.m,we=Te.m,Me=ae.m,pe=oe.m,Ue;ae=uy(ae),me=sy(me),ae&&me;)oe=sy(oe),Te=uy(Te),Te.a=$,Ue=ae.z+Me-me.z-he+g(ae._,me._),Ue>0&&(oW(uW(ae,$,ee),$,Ue),he+=Ue,we+=Ue),Me+=ae.m,he+=me.m,pe+=oe.m,we+=Te.m;ae&&!uy(Te)&&(Te.t=ae,Te.m+=Me-we),me&&!sy(oe)&&(oe.t=me,oe.m+=he-pe,ee=$)}return ee}function J($){$.x*=w[0],$.y=$.depth*w[1]}return C.separation=function($){return arguments.length?(g=$,C):g},C.size=function($){return arguments.length?(q=(w=$)==null?J:null,C):q?null:w},C.nodeSize=function($){return arguments.length?(q=(w=$)==null?null:J,C):q?w:null},vc(C,v)};function o4(v,g){return v.parent==g.parent?1:2}function sy(v){var g=v.children;return g.length?g[0]:v.t}function uy(v){var g=v.children,w;return(w=g.length)?g[w-1]:v.t}function oW(v,g,w){var q=w/(g.i-v.i);g.c-=q,g.s+=w,v.c+=q,g.z+=w,g.m+=w}function sW(v){for(var g=0,w=0,q=v.children,C=q.length,S;--C>=0;)S=q[C],S.z+=g,S.m+=g,g+=S.s+(w+=S.c)}function uW(v,g,w){return v.a.parent===g.parent?v.a:w}e.layout.cluster=function(){var v=e.layout.hierarchy().sort(null).value(null),g=o4,w=[1,1],q=!1;function C(S,N){var E=v.call(this,S,N),F=E[0],J,$=0;Ri(F,function(ae){var oe=ae.children;oe&&oe.length?(ae.x=cW(oe),ae.y=fW(oe)):(ae.x=J?$+=g(ae,J):0,ae.y=0,J=ae)});var j=s4(F),ee=u4(F),me=j.x-g(j,ee)/2,Te=ee.x+g(ee,j)/2;return Ri(F,q?function(ae){ae.x=(ae.x-F.x)*w[0],ae.y=(F.y-ae.y)*w[1]}:function(ae){ae.x=(ae.x-me)/(Te-me)*w[0],ae.y=(1-(F.y?ae.y/F.y:1))*w[1]}),E}return C.separation=function(S){return arguments.length?(g=S,C):g},C.size=function(S){return arguments.length?(q=(w=S)==null,C):q?null:w},C.nodeSize=function(S){return arguments.length?(q=(w=S)!=null,C):q?w:null},vc(C,v)};function fW(v){return 1+e.max(v,function(g){return g.y})}function cW(v){return v.reduce(function(g,w){return g+w.x},0)/v.length}function s4(v){var g=v.children;return g&&g.length?s4(g[0]):v}function u4(v){var g=v.children,w;return g&&(w=g.length)?u4(g[w-1]):v}e.layout.treemap=function(){var v=e.layout.hierarchy(),g=Math.round,w=[1,1],q=null,C=fy,S=!1,N,E="squarify",F=.5*(1+Math.sqrt(5));function J(ae,oe){for(var he=-1,we=ae.length,Me,pe;++he<we;)pe=(Me=ae[he]).value*(oe<0?0:oe),Me.area=isNaN(pe)||pe<=0?0:pe}function $(ae){var oe=ae.children;if(oe&&oe.length){var he=C(ae),we=[],Me=oe.slice(),pe,Ue=1/0,rr,or=E==="slice"?he.dx:E==="dice"?he.dy:E==="slice-dice"?ae.depth&1?he.dy:he.dx:Math.min(he.dx,he.dy),ar;for(J(Me,he.dx*he.dy/ae.value),we.area=0;(ar=Me.length)>0;)we.push(pe=Me[ar-1]),we.area+=pe.area,E!=="squarify"||(rr=ee(we,or))<=Ue?(Me.pop(),Ue=rr):(we.area-=we.pop().area,me(we,or,he,!1),or=Math.min(he.dx,he.dy),we.length=we.area=0,Ue=1/0);we.length&&(me(we,or,he,!0),we.length=we.area=0),oe.forEach($)}}function j(ae){var oe=ae.children;if(oe&&oe.length){var he=C(ae),we=oe.slice(),Me,pe=[];for(J(we,he.dx*he.dy/ae.value),pe.area=0;Me=we.pop();)pe.push(Me),pe.area+=Me.area,Me.z!=null&&(me(pe,Me.z?he.dx:he.dy,he,!we.length),pe.length=pe.area=0);oe.forEach(j)}}function ee(ae,oe){for(var he=ae.area,we,Me=0,pe=1/0,Ue=-1,rr=ae.length;++Ue<rr;)(we=ae[Ue].area)&&(we<pe&&(pe=we),we>Me&&(Me=we));return he*=he,oe*=oe,he?Math.max(oe*Me*F/he,he/(oe*pe*F)):1/0}function me(ae,oe,he,we){var Me=-1,pe=ae.length,Ue=he.x,rr=he.y,or=oe?g(ae.area/oe):0,ar;if(oe==he.dx){for((we||or>he.dy)&&(or=he.dy);++Me<pe;)ar=ae[Me],ar.x=Ue,ar.y=rr,ar.dy=or,Ue+=ar.dx=Math.min(he.x+he.dx-Ue,or?g(ar.area/or):0);ar.z=!0,ar.dx+=he.x+he.dx-Ue,he.y+=or,he.dy-=or}else{for((we||or>he.dx)&&(or=he.dx);++Me<pe;)ar=ae[Me],ar.x=Ue,ar.y=rr,ar.dx=or,rr+=ar.dy=Math.min(he.y+he.dy-rr,or?g(ar.area/or):0);ar.z=!1,ar.dy+=he.y+he.dy-rr,he.x+=or,he.dx-=or}}function Te(ae){var oe=N||v(ae),he=oe[0];return he.x=he.y=0,he.value?(he.dx=w[0],he.dy=w[1]):he.dx=he.dy=0,N&&v.revalue(he),J([he],he.dx*he.dy/he.value),(N?j:$)(he),S&&(N=oe),oe}return Te.size=function(ae){return arguments.length?(w=ae,Te):w},Te.padding=function(ae){if(!arguments.length)return q;function oe(Me){var pe=ae.call(Te,Me,Me.depth);return pe==null?fy(Me):f4(Me,typeof pe=="number"?[pe,pe,pe,pe]:pe)}function he(Me){return f4(Me,ae)}var we;return C=(q=ae)==null?fy:(we=typeof ae)=="function"?oe:(we==="number"&&(ae=[ae,ae,ae,ae]),he),Te},Te.round=function(ae){return arguments.length?(g=ae?Math.round:Number,Te):g!=Number},Te.sticky=function(ae){return arguments.length?(S=ae,N=null,Te):S},Te.ratio=function(ae){return arguments.length?(F=ae,Te):F},Te.mode=function(ae){return arguments.length?(E=ae+"",Te):E},vc(Te,v)};function fy(v){return{x:v.x,y:v.y,dx:v.dx,dy:v.dy}}function f4(v,g){var w=v.x+g[3],q=v.y+g[0],C=v.dx-g[1]-g[3],S=v.dy-g[0]-g[2];return C<0&&(w+=C/2,C=0),S<0&&(q+=S/2,S=0),{x:w,y:q,dx:C,dy:S}}e.random={normal:function(v,g){var w=arguments.length;return w<2&&(g=1),w<1&&(v=0),function(){var q,C,S;do q=Math.random()*2-1,C=Math.random()*2-1,S=q*q+C*C;while(!S||S>1);return v+g*q*Math.sqrt(-2*Math.log(S)/S)}},logNormal:function(){var v=e.random.normal.apply(e,arguments);return function(){return Math.exp(v())}},bates:function(v){var g=e.random.irwinHall(v);return function(){return g()/v}},irwinHall:function(v){return function(){for(var g=0,w=0;w<v;w++)g+=Math.random();return g}}},e.scale={};function O0(v){var g=v[0],w=v[v.length-1];return g<w?[g,w]:[w,g]}function B0(v){return v.rangeExtent?v.rangeExtent():O0(v.range())}function vW(v,g,w,q){var C=w(v[0],v[1]),S=q(g[0],g[1]);return function(N){return S(C(N))}}function cy(v,g){var w=0,q=v.length-1,C=v[w],S=v[q],N;return S<C&&(N=w,w=q,q=N,N=C,C=S,S=N),v[w]=g.floor(C),v[q]=g.ceil(S),v}function c4(v){return v?{floor:function(g){return Math.floor(g/v)*v},ceil:function(g){return Math.ceil(g/v)*v}}:hW}var hW={floor:U,ceil:U};function dW(v,g,w,q){var C=[],S=[],N=0,E=Math.min(v.length,g.length)-1;for(v[E]<v[0]&&(v=v.slice().reverse(),g=g.slice().reverse());++N<=E;)C.push(w(v[N-1],v[N])),S.push(q(g[N-1],g[N]));return function(F){var J=e.bisect(v,F,1,E)-1;return S[J](C[J](F))}}e.scale.linear=function(){return v4([0,1],[0,1],zo,!1)};function v4(v,g,w,q){var C,S;function N(){var F=Math.min(v.length,g.length)>2?dW:vW,J=q?RV:EV;return C=F(v,g,J,w),S=F(g,v,J,zo),E}function E(F){return C(F)}return E.invert=function(F){return S(F)},E.domain=function(F){return arguments.length?(v=F.map(Number),N()):v},E.range=function(F){return arguments.length?(g=F,N()):g},E.rangeRound=function(F){return E.range(F).interpolate(X_)},E.clamp=function(F){return arguments.length?(q=F,N()):q},E.interpolate=function(F){return arguments.length?(w=F,N()):w},E.ticks=function(F){return hy(v,F)},E.tickFormat=function(F,J){return d3_scale_linearTickFormat(v,F,J)},E.nice=function(F){return d4(v,F),N()},E.copy=function(){return v4(v,g,w,q)},N()}function h4(v,g){return e.rebind(v,g,"range","rangeRound","interpolate","clamp")}function d4(v,g){return cy(v,c4(vy(v,g)[2])),cy(v,c4(vy(v,g)[2])),v}function vy(v,g){g==null&&(g=10);var w=O0(v),q=w[1]-w[0],C=Math.pow(10,Math.floor(Math.log(q/g)/Math.LN10)),S=g/q*C;return S<=.15?C*=10:S<=.35?C*=5:S<=.75&&(C*=2),w[0]=Math.ceil(w[0]/C)*C,w[1]=Math.floor(w[1]/C)*C+C*.5,w[2]=C,w}function hy(v,g){return e.range.apply(e,vy(v,g))}var pW={s:1,g:1,p:1,r:1,e:1};function p4(v){return-Math.floor(Math.log(v)/Math.LN10+.01)}function Epe(v,g){var w=p4(g[2]);return v in pW?Math.abs(w-p4(Math.max(b(g[0]),b(g[1]))))+ +(v!=="e"):w-(v==="%")*2}e.scale.log=function(){return m4(e.scale.linear().domain([0,1]),10,!0,[1,10])};function m4(v,g,w,q){function C(E){return(w?Math.log(E<0?0:E):-Math.log(E>0?0:-E))/Math.log(g)}function S(E){return w?Math.pow(g,E):-Math.pow(g,-E)}function N(E){return v(C(E))}return N.invert=function(E){return S(v.invert(E))},N.domain=function(E){return arguments.length?(w=E[0]>=0,v.domain((q=E.map(Number)).map(C)),N):q},N.base=function(E){return arguments.length?(g=+E,v.domain(q.map(C)),N):g},N.nice=function(){var E=cy(q.map(C),w?Math:mW);return v.domain(E),q=E.map(S),N},N.ticks=function(){var E=O0(q),F=[],J=E[0],$=E[1],j=Math.floor(C(J)),ee=Math.ceil(C($)),me=g%1?2:g;if(isFinite(ee-j)){if(w){for(;j<ee;j++)for(var Te=1;Te<me;Te++)F.push(S(j)*Te);F.push(S(j))}else for(F.push(S(j));j++<ee;)for(var Te=me-1;Te>0;Te--)F.push(S(j)*Te);for(j=0;F[j]<J;j++);for(ee=F.length;F[ee-1]>$;ee--);F=F.slice(j,ee)}return F},N.copy=function(){return m4(v.copy(),g,w,q)},h4(N,v)}var mW={floor:function(v){return-Math.ceil(-v)},ceil:function(v){return-Math.floor(-v)}};e.scale.pow=function(){return y4(e.scale.linear(),1,[0,1])};function y4(v,g,w){var q=Y0(g),C=Y0(1/g);function S(N){return v(q(N))}return S.invert=function(N){return C(v.invert(N))},S.domain=function(N){return arguments.length?(v.domain((w=N.map(Number)).map(q)),S):w},S.ticks=function(N){return hy(w,N)},S.tickFormat=function(N,E){return d3_scale_linearTickFormat(w,N,E)},S.nice=function(N){return S.domain(d4(w,N))},S.exponent=function(N){return arguments.length?(q=Y0(g=N),C=Y0(1/g),v.domain(w.map(q)),S):g},S.copy=function(){return y4(v.copy(),g,w)},h4(S,v)}function Y0(v){return function(g){return g<0?-Math.pow(-g,v):Math.pow(g,v)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return g4([],{t:"range",a:[[]]})};function g4(v,g){var w,q,C;function S(E){return q[((w.get(E)||(g.t==="range"?w.set(E,v.push(E)):NaN))-1)%q.length]}function N(E,F){return e.range(v.length).map(function(J){return E+F*J})}return S.domain=function(E){if(!arguments.length)return v;v=[],w=new x;for(var F=-1,J=E.length,$;++F<J;)w.has($=E[F])||w.set($,v.push($));return S[g.t].apply(S,g.a)},S.range=function(E){return arguments.length?(q=E,C=0,g={t:"range",a:arguments},S):q},S.rangePoints=function(E,F){arguments.length<2&&(F=0);var J=E[0],$=E[1],j=v.length<2?(J=(J+$)/2,0):($-J)/(v.length-1+F);return q=N(J+j*F/2,j),C=0,g={t:"rangePoints",a:arguments},S},S.rangeRoundPoints=function(E,F){arguments.length<2&&(F=0);var J=E[0],$=E[1],j=v.length<2?(J=$=Math.round((J+$)/2),0):($-J)/(v.length-1+F)|0;return q=N(J+Math.round(j*F/2+($-J-(v.length-1+F)*j)/2),j),C=0,g={t:"rangeRoundPoints",a:arguments},S},S.rangeBands=function(E,F,J){arguments.length<2&&(F=0),arguments.length<3&&(J=F);var $=E[1]<E[0],j=E[$-0],ee=E[1-$],me=(ee-j)/(v.length-F+2*J);return q=N(j+me*J,me),$&&q.reverse(),C=me*(1-F),g={t:"rangeBands",a:arguments},S},S.rangeRoundBands=function(E,F,J){arguments.length<2&&(F=0),arguments.length<3&&(J=F);var $=E[1]<E[0],j=E[$-0],ee=E[1-$],me=Math.floor((ee-j)/(v.length-F+2*J));return q=N(j+Math.round((ee-j-(v.length-F)*me)/2),me),$&&q.reverse(),C=Math.round(me*(1-F)),g={t:"rangeRoundBands",a:arguments},S},S.rangeBand=function(){return C},S.rangeExtent=function(){return O0(g.a[0])},S.copy=function(){return g4(v,g)},S.domain(v)}e.scale.category10=function(){return e.scale.ordinal().range(yW)},e.scale.category20=function(){return e.scale.ordinal().range(gW)},e.scale.category20b=function(){return e.scale.ordinal().range(xW)},e.scale.category20c=function(){return e.scale.ordinal().range(bW)};var yW=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(tu),gW=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(tu),xW=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(tu),bW=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(tu);e.scale.quantile=function(){return x4([],[])};function x4(v,g){var w;function q(){var S=0,N=g.length;for(w=[];++S<N;)w[S-1]=e.quantile(v,S/N);return C}function C(S){if(!isNaN(S=+S))return g[e.bisect(w,S)]}return C.domain=function(S){return arguments.length?(v=S.map(h).filter(d).sort(c),q()):v},C.range=function(S){return arguments.length?(g=S,q()):g},C.quantiles=function(){return w},C.invertExtent=function(S){return S=g.indexOf(S),S<0?[NaN,NaN]:[S>0?w[S-1]:v[0],S<w.length?w[S]:v[v.length-1]]},C.copy=function(){return x4(v,g)},q()}e.scale.quantize=function(){return b4(0,1,[0,1])};function b4(v,g,w){var q,C;function S(E){return w[Math.max(0,Math.min(C,Math.floor(q*(E-v))))]}function N(){return q=w.length/(g-v),C=w.length-1,S}return S.domain=function(E){return arguments.length?(v=+E[0],g=+E[E.length-1],N()):[v,g]},S.range=function(E){return arguments.length?(w=E,N()):w},S.invertExtent=function(E){return E=w.indexOf(E),E=E<0?NaN:E/q+v,[E,E+1/q]},S.copy=function(){return b4(v,g,w)},N()}e.scale.threshold=function(){return _4([.5],[0,1])};function _4(v,g){function w(q){if(q<=q)return g[e.bisect(v,q)]}return w.domain=function(q){return arguments.length?(v=q,w):v},w.range=function(q){return arguments.length?(g=q,w):g},w.invertExtent=function(q){return q=g.indexOf(q),[v[q-1],v[q]]},w.copy=function(){return _4(v,g)},w}e.scale.identity=function(){return w4([0,1])};function w4(v){function g(w){return+w}return g.invert=g,g.domain=g.range=function(w){return arguments.length?(v=w.map(g),g):v},g.ticks=function(w){return hy(v,w)},g.tickFormat=function(w,q){return d3_scale_linearTickFormat(v,w,q)},g.copy=function(){return w4(v)},g}e.svg={};function _W(){return 0}e.svg.arc=function(){var v=wW,g=TW,w=_W,q=G0,C=T4,S=M4,N=MW;function E(){var J=Math.max(0,+v.apply(this,arguments)),$=Math.max(0,+g.apply(this,arguments)),j=C.apply(this,arguments)-sr,ee=S.apply(this,arguments)-sr,me=Math.abs(ee-j),Te=j>ee?0:1;if($<J&&(ae=$,$=J,J=ae),me>=vr)return F($,Te)+(J?F(J,1-Te):"")+"Z";var ae,oe,he,we,Me=0,pe=0,Ue,rr,or,ar,hr,dr,Sr,pr,Mr=[];if((we=(+N.apply(this,arguments)||0)/2)&&(he=q===G0?Math.sqrt(J*J+$*$):+q.apply(this,arguments),Te||(pe*=-1),$&&(pe=oa(he/$*Math.sin(we))),J&&(Me=oa(he/J*Math.sin(we)))),$){Ue=$*Math.cos(j+pe),rr=$*Math.sin(j+pe),or=$*Math.cos(ee-pe),ar=$*Math.sin(ee-pe);var Kr=Math.abs(ee-j-2*pe)<=qe?0:1;if(pe&&U0(Ue,rr,or,ar)===Te^Kr){var Ft=(j+ee)/2;Ue=$*Math.cos(Ft),rr=$*Math.sin(Ft),or=ar=null}}else Ue=rr=0;if(J){hr=J*Math.cos(ee-Me),dr=J*Math.sin(ee-Me),Sr=J*Math.cos(j+Me),pr=J*Math.sin(j+Me);var at=Math.abs(j-ee+2*Me)<=qe?0:1;if(Me&&U0(hr,dr,Sr,pr)===1-Te^at){var er=(j+ee)/2;hr=J*Math.cos(er),dr=J*Math.sin(er),Sr=pr=null}}else hr=dr=0;if(me>fe&&(ae=Math.min(Math.abs($-J)/2,+w.apply(this,arguments)))>.001){oe=J<$^Te?0:1;var Dr=ae,Pr=ae;if(me<qe){var Qr=Sr==null?[hr,dr]:or==null?[Ue,rr]:Km([Ue,rr],[Sr,pr],[or,ar],[hr,dr]),kt=Ue-Qr[0],Zt=rr-Qr[1],xa=or-Qr[0],Ha=ar-Qr[1],$a=1/Math.sin(Math.acos((kt*xa+Zt*Ha)/(Math.sqrt(kt*kt+Zt*Zt)*Math.sqrt(xa*xa+Ha*Ha)))/2),Oa=Math.sqrt(Qr[0]*Qr[0]+Qr[1]*Qr[1]);Pr=Math.min(ae,(J-Oa)/($a-1)),Dr=Math.min(ae,($-Oa)/($a+1))}if(or!=null){var en=V0(Sr==null?[hr,dr]:[Sr,pr],[Ue,rr],$,Dr,Te),La=V0([or,ar],[hr,dr],$,Dr,Te);ae===Dr?Mr.push("M",en[0],"A",Dr,",",Dr," 0 0,",oe," ",en[1],"A",$,",",$," 0 ",1-Te^U0(en[1][0],en[1][1],La[1][0],La[1][1]),",",Te," ",La[1],"A",Dr,",",Dr," 0 0,",oe," ",La[0]):Mr.push("M",en[0],"A",Dr,",",Dr," 0 1,",oe," ",La[0])}else Mr.push("M",Ue,",",rr);if(Sr!=null){var rn=V0([Ue,rr],[Sr,pr],J,-Pr,Te),Fo=V0([hr,dr],or==null?[Ue,rr]:[or,ar],J,-Pr,Te);ae===Pr?Mr.push("L",Fo[0],"A",Pr,",",Pr," 0 0,",oe," ",Fo[1],"A",J,",",J," 0 ",Te^U0(Fo[1][0],Fo[1][1],rn[1][0],rn[1][1]),",",1-Te," ",rn[1],"A",Pr,",",Pr," 0 0,",oe," ",rn[0]):Mr.push("L",Fo[0],"A",Pr,",",Pr," 0 0,",oe," ",rn[0])}else Mr.push("L",hr,",",dr)}else Mr.push("M",Ue,",",rr),or!=null&&Mr.push("A",$,",",$," 0 ",Kr,",",Te," ",or,",",ar),Mr.push("L",hr,",",dr),Sr!=null&&Mr.push("A",J,",",J," 0 ",at,",",1-Te," ",Sr,",",pr);return Mr.push("Z"),Mr.join("")}function F(J,$){return"M0,"+J+"A"+J+","+J+" 0 1,"+$+" 0,"+-J+"A"+J+","+J+" 0 1,"+$+" 0,"+J}return E.innerRadius=function(J){return arguments.length?(v=Nr(J),E):v},E.outerRadius=function(J){return arguments.length?(g=Nr(J),E):g},E.cornerRadius=function(J){return arguments.length?(w=Nr(J),E):w},E.padRadius=function(J){return arguments.length?(q=J==G0?G0:Nr(J),E):q},E.startAngle=function(J){return arguments.length?(C=Nr(J),E):C},E.endAngle=function(J){return arguments.length?(S=Nr(J),E):S},E.padAngle=function(J){return arguments.length?(N=Nr(J),E):N},E.centroid=function(){var J=(+v.apply(this,arguments)+ +g.apply(this,arguments))/2,$=(+C.apply(this,arguments)+ +S.apply(this,arguments))/2-sr;return[Math.cos($)*J,Math.sin($)*J]},E};var G0="auto";function wW(v){return v.innerRadius}function TW(v){return v.outerRadius}function T4(v){return v.startAngle}function M4(v){return v.endAngle}function MW(v){return v&&v.padAngle}function U0(v,g,w,q){return(v-w)*g-(g-q)*v>0?0:1}function V0(v,g,w,q,C){var S=v[0]-g[0],N=v[1]-g[1],E=(C?q:-q)/Math.sqrt(S*S+N*N),F=E*N,J=-E*S,$=v[0]+F,j=v[1]+J,ee=g[0]+F,me=g[1]+J,Te=($+ee)/2,ae=(j+me)/2,oe=ee-$,he=me-j,we=oe*oe+he*he,Me=w-q,pe=$*me-ee*j,Ue=(he<0?-1:1)*Math.sqrt(Math.max(0,Me*Me*we-pe*pe)),rr=(pe*he-oe*Ue)/we,or=(-pe*oe-he*Ue)/we,ar=(pe*he+oe*Ue)/we,hr=(-pe*oe+he*Ue)/we,dr=rr-Te,Sr=or-ae,pr=ar-Te,Mr=hr-ae;return dr*dr+Sr*Sr>pr*pr+Mr*Mr&&(rr=ar,or=hr),[[rr-F,or-J],[rr*w/Me,or*w/Me]]}function A4(){return!0}function k4(v){var g=nu,w=lc,q=A4,C=li,S=C.key,N=.7;function E(F){var J=[],$=[],j=-1,ee=F.length,me,Te=Nr(g),ae=Nr(w);function oe(){J.push("M",C(v($),N))}for(;++j<ee;)q.call(this,me=F[j],j)?$.push([+Te.call(this,me,j),+ae.call(this,me,j)]):$.length&&(oe(),$=[]);return $.length&&oe(),J.length?J.join(""):null}return E.x=function(F){return arguments.length?(g=F,E):g},E.y=function(F){return arguments.length?(w=F,E):w},E.defined=function(F){return arguments.length?(q=F,E):q},E.interpolate=function(F){return arguments.length?(typeof F=="function"?S=C=F:S=(C=dy.get(F)||li).key,E):S},E.tension=function(F){return arguments.length?(N=F,E):N},E}e.svg.line=function(){return k4(U)};var dy=e.map({linear:li,"linear-closed":q4,step:AW,"step-before":py,"step-after":my,basis:C4,"basis-open":LW,"basis-closed":SW,bundle:DW,cardinal:CW,"cardinal-open":kW,"cardinal-closed":qW,monotone:RW});dy.forEach(function(v,g){g.key=v,g.closed=/-closed$/.test(v)});function li(v){return v.length>1?v.join("L"):v+"Z"}function q4(v){return v.join("L")+"Z"}function AW(v){for(var g=0,w=v.length,q=v[0],C=[q[0],",",q[1]];++g<w;)C.push("H",(q[0]+(q=v[g])[0])/2,"V",q[1]);return w>1&&C.push("H",q[0]),C.join("")}function py(v){for(var g=0,w=v.length,q=v[0],C=[q[0],",",q[1]];++g<w;)C.push("V",(q=v[g])[1],"H",q[0]);return C.join("")}function my(v){for(var g=0,w=v.length,q=v[0],C=[q[0],",",q[1]];++g<w;)C.push("H",(q=v[g])[0],"V",q[1]);return C.join("")}function kW(v,g){return v.length<4?li(v):v[1]+W0(v.slice(1,-1),yy(v,g))}function qW(v,g){return v.length<3?q4(v):v[0]+W0((v.push(v[0]),v),yy([v[v.length-2]].concat(v,[v[1]]),g))}function CW(v,g){return v.length<3?li(v):v[0]+W0(v,yy(v,g))}function W0(v,g){if(g.length<1||v.length!=g.length&&v.length!=g.length+2)return li(v);var w=v.length!=g.length,q="",C=v[0],S=v[1],N=g[0],E=N,F=1;if(w&&(q+="Q"+(S[0]-N[0]*2/3)+","+(S[1]-N[1]*2/3)+","+S[0]+","+S[1],C=v[1],F=2),g.length>1){E=g[1],S=v[F],F++,q+="C"+(C[0]+N[0])+","+(C[1]+N[1])+","+(S[0]-E[0])+","+(S[1]-E[1])+","+S[0]+","+S[1];for(var J=2;J<g.length;J++,F++)S=v[F],E=g[J],q+="S"+(S[0]-E[0])+","+(S[1]-E[1])+","+S[0]+","+S[1]}if(w){var $=v[F];q+="Q"+(S[0]+E[0]*2/3)+","+(S[1]+E[1]*2/3)+","+$[0]+","+$[1]}return q}function yy(v,g){for(var w=[],q=(1-g)/2,C,S=v[0],N=v[1],E=1,F=v.length;++E<F;)C=S,S=N,N=v[E],w.push([q*(N[0]-C[0]),q*(N[1]-C[1])]);return w}function C4(v){if(v.length<3)return li(v);var g=1,w=v.length,q=v[0],C=q[0],S=q[1],N=[C,C,C,(q=v[1])[0]],E=[S,S,S,q[1]],F=[C,",",S,"L",Dn(Dl,N),",",Dn(Dl,E)];for(v.push(v[w-1]);++g<=w;)q=v[g],N.shift(),N.push(q[0]),E.shift(),E.push(q[1]),gy(F,N,E);return v.pop(),F.push("L",q),F.join("")}function LW(v){if(v.length<4)return li(v);for(var g=[],w=-1,q=v.length,C,S=[0],N=[0];++w<3;)C=v[w],S.push(C[0]),N.push(C[1]);for(g.push(Dn(Dl,S)+","+Dn(Dl,N)),--w;++w<q;)C=v[w],S.shift(),S.push(C[0]),N.shift(),N.push(C[1]),gy(g,S,N);return g.join("")}function SW(v){for(var g,w=-1,q=v.length,C=q+4,S,N=[],E=[];++w<4;)S=v[w%q],N.push(S[0]),E.push(S[1]);for(g=[Dn(Dl,N),",",Dn(Dl,E)],--w;++w<C;)S=v[w%q],N.shift(),N.push(S[0]),E.shift(),E.push(S[1]),gy(g,N,E);return g.join("")}function DW(v,g){var w=v.length-1;if(w)for(var q=v[0][0],C=v[0][1],S=v[w][0]-q,N=v[w][1]-C,E=-1,F,J;++E<=w;)F=v[E],J=E/w,F[0]=g*F[0]+(1-g)*(q+J*S),F[1]=g*F[1]+(1-g)*(C+J*N);return C4(v)}function Dn(v,g){return v[0]*g[0]+v[1]*g[1]+v[2]*g[2]+v[3]*g[3]}var L4=[0,2/3,1/3,0],S4=[0,1/3,2/3,0],Dl=[0,1/6,2/3,1/6];function gy(v,g,w){v.push("C",Dn(L4,g),",",Dn(L4,w),",",Dn(S4,g),",",Dn(S4,w),",",Dn(Dl,g),",",Dn(Dl,w))}function xy(v,g){return(g[1]-v[1])/(g[0]-v[0])}function PW(v){for(var g=0,w=v.length-1,q=[],C=v[0],S=v[1],N=q[0]=xy(C,S);++g<w;)q[g]=(N+(N=xy(C=S,S=v[g+1])))/2;return q[g]=N,q}function EW(v){for(var g=[],w,q,C,S,N=PW(v),E=-1,F=v.length-1;++E<F;)w=xy(v[E],v[E+1]),b(w)<fe?N[E]=N[E+1]=0:(q=N[E]/w,C=N[E+1]/w,S=q*q+C*C,S>9&&(S=w*3/Math.sqrt(S),N[E]=S*q,N[E+1]=S*C));for(E=-1;++E<=F;)S=(v[Math.min(F,E+1)][0]-v[Math.max(0,E-1)][0])/(6*(1+N[E]*N[E])),g.push([S||0,N[E]*S||0]);return g}function RW(v){return v.length<3?li(v):v[0]+W0(v,EW(v))}e.svg.line.radial=function(){var v=k4(D4);return v.radius=v.x,delete v.x,v.angle=v.y,delete v.y,v};function D4(v){for(var g,w=-1,q=v.length,C,S;++w<q;)g=v[w],C=g[0],S=g[1]-sr,g[0]=C*Math.cos(S),g[1]=C*Math.sin(S);return v}function P4(v){var g=nu,w=nu,q=0,C=lc,S=A4,N=li,E=N.key,F=N,J="L",$=.7;function j(ee){var me=[],Te=[],ae=[],oe=-1,he=ee.length,we,Me=Nr(g),pe=Nr(q),Ue=g===w?function(){return or}:Nr(w),rr=q===C?function(){return ar}:Nr(C),or,ar;function hr(){me.push("M",N(v(ae),$),J,F(v(Te.reverse()),$),"Z")}for(;++oe<he;)S.call(this,we=ee[oe],oe)?(Te.push([or=+Me.call(this,we,oe),ar=+pe.call(this,we,oe)]),ae.push([+Ue.call(this,we,oe),+rr.call(this,we,oe)])):Te.length&&(hr(),Te=[],ae=[]);return Te.length&&hr(),me.length?me.join(""):null}return j.x=function(ee){return arguments.length?(g=w=ee,j):w},j.x0=function(ee){return arguments.length?(g=ee,j):g},j.x1=function(ee){return arguments.length?(w=ee,j):w},j.y=function(ee){return arguments.length?(q=C=ee,j):C},j.y0=function(ee){return arguments.length?(q=ee,j):q},j.y1=function(ee){return arguments.length?(C=ee,j):C},j.defined=function(ee){return arguments.length?(S=ee,j):S},j.interpolate=function(ee){return arguments.length?(typeof ee=="function"?E=N=ee:E=(N=dy.get(ee)||li).key,F=N.reverse||N,J=N.closed?"M":"L",j):E},j.tension=function(ee){return arguments.length?($=ee,j):$},j}py.reverse=my,my.reverse=py,e.svg.area=function(){return P4(U)},e.svg.area.radial=function(){var v=P4(D4);return v.radius=v.x,delete v.x,v.innerRadius=v.x0,delete v.x0,v.outerRadius=v.x1,delete v.x1,v.angle=v.y,delete v.y,v.startAngle=v.y0,delete v.y0,v.endAngle=v.y1,delete v.y1,v};function E4(v){return v.source}function R4(v){return v.target}e.svg.chord=function(){var v=E4,g=R4,w=zW,q=T4,C=M4;function S($,j){var ee=N(this,v,$,j),me=N(this,g,$,j);return"M"+ee.p0+F(ee.r,ee.p1,ee.a1-ee.a0)+(E(ee,me)?J(ee.r,ee.p1,ee.r,ee.p0):J(ee.r,ee.p1,me.r,me.p0)+F(me.r,me.p1,me.a1-me.a0)+J(me.r,me.p1,ee.r,ee.p0))+"Z"}function N($,j,ee,me){var Te=j.call($,ee,me),ae=w.call($,Te,me),oe=q.call($,Te,me)-sr,he=C.call($,Te,me)-sr;return{r:ae,a0:oe,a1:he,p0:[ae*Math.cos(oe),ae*Math.sin(oe)],p1:[ae*Math.cos(he),ae*Math.sin(he)]}}function E($,j){return $.a0==j.a0&&$.a1==j.a1}function F($,j,ee){return"A"+$+","+$+" 0 "+ +(ee>qe)+",1 "+j}function J($,j,ee,me){return"Q 0,0 "+me}return S.radius=function($){return arguments.length?(w=Nr($),S):w},S.source=function($){return arguments.length?(v=Nr($),S):v},S.target=function($){return arguments.length?(g=Nr($),S):g},S.startAngle=function($){return arguments.length?(q=Nr($),S):q},S.endAngle=function($){return arguments.length?(C=Nr($),S):C},S};function zW(v){return v.radius}e.svg.diagonal=function(){var v=E4,g=R4,w=z4;function q(C,S){var N=v.call(this,C,S),E=g.call(this,C,S),F=(N.y+E.y)/2,J=[N,{x:N.x,y:F},{x:E.x,y:F},E];return J=J.map(w),"M"+J[0]+"C"+J[1]+" "+J[2]+" "+J[3]}return q.source=function(C){return arguments.length?(v=Nr(C),q):v},q.target=function(C){return arguments.length?(g=Nr(C),q):g},q.projection=function(C){return arguments.length?(w=C,q):w},q};function z4(v){return[v.x,v.y]}e.svg.diagonal.radial=function(){var v=e.svg.diagonal(),g=z4,w=v.projection;return v.projection=function(q){return arguments.length?w(NW(g=q)):g},v};function NW(v){return function(){var g=v.apply(this,arguments),w=g[0],q=g[1]-sr;return[w*Math.cos(q),w*Math.sin(q)]}}e.svg.symbol=function(){var v=IW,g=FW;function w(q,C){return(F4.get(v.call(this,q,C))||N4)(g.call(this,q,C))}return w.type=function(q){return arguments.length?(v=Nr(q),w):v},w.size=function(q){return arguments.length?(g=Nr(q),w):g},w};function FW(){return 64}function IW(){return"circle"}function N4(v){var g=Math.sqrt(v/qe);return"M0,"+g+"A"+g+","+g+" 0 1,1 0,"+-g+"A"+g+","+g+" 0 1,1 0,"+g+"Z"}var F4=e.map({circle:N4,cross:function(v){var g=Math.sqrt(v/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(v){var g=Math.sqrt(v/(2*I4)),w=g*I4;return"M0,"+-g+"L"+w+",0 0,"+g+" "+-w+",0Z"},square:function(v){var g=Math.sqrt(v)/2;return"M"+-g+","+-g+"L"+g+","+-g+" "+g+","+g+" "+-g+","+g+"Z"},"triangle-down":function(v){var g=Math.sqrt(v/X0),w=g*X0/2;return"M0,"+w+"L"+g+","+-w+" "+-g+","+-w+"Z"},"triangle-up":function(v){var g=Math.sqrt(v/X0),w=g*X0/2;return"M0,"+-w+"L"+g+","+w+" "+-g+","+w+"Z"}});e.svg.symbolTypes=F4.keys();var X0=Math.sqrt(3),I4=Math.tan(30*Ar);be.transition=function(v){for(var g=No||++O4,w=_y(v),q=[],C,S,N=J0||{time:Date.now(),ease:mV,delay:0,duration:250},E=-1,F=this.length;++E<F;){q.push(C=[]);for(var J=this[E],$=-1,j=J.length;++$<j;)(S=J[$])&&$0(S,$,w,g,N),C.push(S)}return dc(q,w,g)},be.interrupt=function(v){return this.each(v==null?Z0:H4(_y(v)))};var Z0=H4(_y());function H4(v){return function(){var g,w,q;(g=this[v])&&(q=g[w=g.active])&&(q.timer.c=null,q.timer.t=NaN,--g.count?delete g[w]:delete this[v],g.active+=.5,q.event&&q.event.interrupt.call(this,this.__data__,q.index))}}function dc(v,g,w){return Q(v,Xt),v.namespace=g,v.id=w,v}var Xt=[],O4=0,No,J0;Xt.call=be.call,Xt.empty=be.empty,Xt.node=be.node,Xt.size=be.size,e.transition=function(v,g){return v&&v.transition?No?v.transition(g):v:e.selection().transition(v)},e.transition.prototype=Xt,Xt.select=function(v){var g=this.id,w=this.namespace,q=[],C,S,N;v=W(v);for(var E=-1,F=this.length;++E<F;){q.push(C=[]);for(var J=this[E],$=-1,j=J.length;++$<j;)(N=J[$])&&(S=v.call(N,N.__data__,$,E))?("__data__"in N&&(S.__data__=N.__data__),$0(S,$,w,g,N[w][g]),C.push(S)):C.push(null)}return dc(q,w,g)},Xt.selectAll=function(v){var g=this.id,w=this.namespace,q=[],C,S,N,E,F;v=te(v);for(var J=-1,$=this.length;++J<$;)for(var j=this[J],ee=-1,me=j.length;++ee<me;)if(N=j[ee]){F=N[w][g],S=v.call(N,N.__data__,ee,J),q.push(C=[]);for(var Te=-1,ae=S.length;++Te<ae;)(E=S[Te])&&$0(E,Te,w,g,F),C.push(E)}return dc(q,w,g)},Xt.filter=function(v){var g=[],w,q,C;typeof v!="function"&&(v=ie(v));for(var S=0,N=this.length;S<N;S++){g.push(w=[]);for(var q=this[S],E=0,F=q.length;E<F;E++)(C=q[E])&&v.call(C,C.__data__,E,S)&&w.push(C)}return dc(g,this.namespace,this.id)},Xt.tween=function(v,g){var w=this.id,q=this.namespace;return arguments.length<2?this.node()[q][w].tween.get(v):Ce(this,g==null?function(C){C[q][w].tween.remove(v)}:function(C){C[q][w].tween.set(v,g)})};function by(v,g,w,q){var C=v.id,S=v.namespace;return Ce(v,typeof w=="function"?function(N,E,F){N[S][C].tween.set(g,q(w.call(N,N.__data__,E,F)))}:(w=q(w),function(N){N[S][C].tween.set(g,w)}))}Xt.attr=function(v,g){if(arguments.length<2){for(g in v)this.attr(g,v[g]);return this}var w=v=="transform"?K_:zo,q=e.ns.qualify(v);function C(){this.removeAttribute(q)}function S(){this.removeAttributeNS(q.space,q.local)}function N(F){return F==null?C:(F+="",function(){var J=this.getAttribute(q),$;return J!==F&&($=w(J,F),function(j){this.setAttribute(q,$(j))})})}function E(F){return F==null?S:(F+="",function(){var J=this.getAttributeNS(q.space,q.local),$;return J!==F&&($=w(J,F),function(j){this.setAttributeNS(q.space,q.local,$(j))})})}return by(this,"attr."+v,g,q.local?E:N)},Xt.attrTween=function(v,g){var w=e.ns.qualify(v);function q(S,N){var E=g.call(this,S,N,this.getAttribute(w));return E&&function(F){this.setAttribute(w,E(F))}}function C(S,N){var E=g.call(this,S,N,this.getAttributeNS(w.space,w.local));return E&&function(F){this.setAttributeNS(w.space,w.local,E(F))}}return this.tween("attr."+v,w.local?C:q)},Xt.style=function(v,g,w){var q=arguments.length;if(q<3){if(typeof v!="string"){q<2&&(g="");for(w in v)this.style(w,v[w],g);return this}w=""}function C(){this.style.removeProperty(v)}function S(N){return N==null?C:(N+="",function(){var E=i(this).getComputedStyle(this,null).getPropertyValue(v),F;return E!==N&&(F=zo(E,N),function(J){this.style.setProperty(v,F(J),w)})})}return by(this,"style."+v,g,S)},Xt.styleTween=function(v,g,w){arguments.length<3&&(w="");function q(C,S){var N=g.call(this,C,S,i(this).getComputedStyle(this,null).getPropertyValue(v));return N&&function(E){this.style.setProperty(v,N(E),w)}}return this.tween("style."+v,q)},Xt.text=function(v){return by(this,"text",v,HW)};function HW(v){return v==null&&(v=""),function(){this.textContent=v}}Xt.remove=function(){var v=this.namespace;return this.each("end.transition",function(){var g;this[v].count<2&&(g=this.parentNode)&&g.removeChild(this)})},Xt.ease=function(v){var g=this.id,w=this.namespace;return arguments.length<1?this.node()[w][g].ease:(typeof v!="function"&&(v=e.ease.apply(e,arguments)),Ce(this,function(q){q[w][g].ease=v}))},Xt.delay=function(v){var g=this.id,w=this.namespace;return arguments.length<1?this.node()[w][g].delay:Ce(this,typeof v=="function"?function(q,C,S){q[w][g].delay=+v.call(q,q.__data__,C,S)}:(v=+v,function(q){q[w][g].delay=v}))},Xt.duration=function(v){var g=this.id,w=this.namespace;return arguments.length<1?this.node()[w][g].duration:Ce(this,typeof v=="function"?function(q,C,S){q[w][g].duration=Math.max(1,v.call(q,q.__data__,C,S))}:(v=Math.max(1,v),function(q){q[w][g].duration=v}))},Xt.each=function(v,g){var w=this.id,q=this.namespace;if(arguments.length<2){var C=J0,S=No;try{No=w,Ce(this,function(N,E,F){J0=N[q][w],v.call(N,N.__data__,E,F)})}finally{J0=C,No=S}}else Ce(this,function(N){var E=N[q][w];(E.event||(E.event=e.dispatch("start","end","interrupt"))).on(v,g)});return this},Xt.transition=function(){for(var v=this.id,g=++O4,w=this.namespace,q=[],C,S,N,E,F=0,J=this.length;F<J;F++){q.push(C=[]);for(var S=this[F],$=0,j=S.length;$<j;$++)(N=S[$])&&(E=N[w][v],$0(N,$,w,g,{time:E.time,ease:E.ease,delay:E.delay+E.duration,duration:E.duration})),C.push(N)}return dc(q,w,g)};function _y(v){return v==null?"__transition__":"__transition_"+v+"__"}function $0(v,g,w,q,C){var S=v[w]||(v[w]={active:0,count:0}),N=S[q],E,F,J,$,j;function ee(ae){var oe=N.delay;if(F.t=oe+E,oe<=ae)return me(ae-oe);F.c=me}function me(ae){var oe=S.active,he=S[oe];he&&(he.timer.c=null,he.timer.t=NaN,--S.count,delete S[oe],he.event&&he.event.interrupt.call(v,v.__data__,he.index));for(var we in S)if(+we<q){var Me=S[we];Me.timer.c=null,Me.timer.t=NaN,--S.count,delete S[we]}F.c=Te,E0(function(){return F.c&&Te(ae||1)&&(F.c=null,F.t=NaN),1},0,E),S.active=q,N.event&&N.event.start.call(v,v.__data__,g),j=[],N.tween.forEach(function(pe,Ue){(Ue=Ue.call(v,v.__data__,g))&&j.push(Ue)}),$=N.ease,J=N.duration}function Te(ae){for(var oe=ae/J,he=$(oe),we=j.length;we>0;)j[--we].call(v,he);if(oe>=1)return N.event&&N.event.end.call(v,v.__data__,g),--S.count?delete S[q]:delete v[w],1}N||(E=C.time,F=E0(ee,0,E),N=S[q]={tween:new x,time:E,timer:F,delay:C.delay,duration:C.duration,ease:C.ease,index:g},C=null,++S.count)}e.svg.axis=function(){var v=e.scale.linear(),g=B4,w=6,q=6,C=3,S=[10],N=null,E;function F(J){J.each(function(){var $=e.select(this),j=this.__chart__||v,ee=this.__chart__=v.copy(),me=N==null?ee.ticks?ee.ticks.apply(ee,S):ee.domain():N,Te=E==null?ee.tickFormat?ee.tickFormat.apply(ee,S):U:E,ae=$.selectAll(".tick").data(me,ee),oe=ae.enter().insert("g",".domain").attr("class","tick").style("opacity",fe),he=e.transition(ae.exit()).style("opacity",fe).remove(),we=e.transition(ae.order()).style("opacity",1),Me=Math.max(w,0)+C,pe,Ue=B0(ee),rr=$.selectAll(".domain").data([0]),or=(rr.enter().append("path").attr("class","domain"),e.transition(rr));oe.append("line"),oe.append("text");var ar=oe.select("line"),hr=we.select("line"),dr=ae.select("text").text(Te),Sr=oe.select("text"),pr=we.select("text"),Mr=g==="top"||g==="left"?-1:1,Kr,Ft,at,er;if(g==="bottom"||g==="top"?(pe=BW,Kr="x",at="y",Ft="x2",er="y2",dr.attr("dy",Mr<0?"0em":".71em").style("text-anchor","middle"),or.attr("d","M"+Ue[0]+","+Mr*q+"V0H"+Ue[1]+"V"+Mr*q)):(pe=YW,Kr="y",at="x",Ft="y2",er="x2",dr.attr("dy",".32em").style("text-anchor",Mr<0?"end":"start"),or.attr("d","M"+Mr*q+","+Ue[0]+"H0V"+Ue[1]+"H"+Mr*q)),ar.attr(er,Mr*w),Sr.attr(at,Mr*Me),hr.attr(Ft,0).attr(er,Mr*w),pr.attr(Kr,0).attr(at,Mr*Me),ee.rangeBand){var Dr=ee,Pr=Dr.rangeBand()/2;j=ee=function(Qr){return Dr(Qr)+Pr}}else j.rangeBand?j=ee:he.call(pe,ee,j);oe.call(pe,j,ee),we.call(pe,ee,ee)})}return F.scale=function(J){return arguments.length?(v=J,F):v},F.orient=function(J){return arguments.length?(g=J in OW?J+"":B4,F):g},F.ticks=function(){return arguments.length?(S=t(arguments),F):S},F.tickValues=function(J){return arguments.length?(N=J,F):N},F.tickFormat=function(J){return arguments.length?(E=J,F):E},F.tickSize=function(J){var $=arguments.length;return $?(w=+J,q=+arguments[$-1],F):w},F.innerTickSize=function(J){return arguments.length?(w=+J,F):w},F.outerTickSize=function(J){return arguments.length?(q=+J,F):q},F.tickPadding=function(J){return arguments.length?(C=+J,F):C},F.tickSubdivide=function(){return arguments.length&&F},F};var B4="bottom",OW={top:1,right:1,bottom:1,left:1};function BW(v,g,w){v.attr("transform",function(q){var C=g(q);return"translate("+(isFinite(C)?C:w(q))+",0)"})}function YW(v,g,w){v.attr("transform",function(q){var C=g(q);return"translate(0,"+(isFinite(C)?C:w(q))+")"})}e.svg.brush=function(){var v=ce($,"brushstart","brush","brushend"),g=null,w=null,q=[0,0],C=[0,0],S,N,E=!0,F=!0,J=wy[0];function $(ae){ae.each(function(){var oe=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",Te).on("touchstart.brush",Te),he=oe.selectAll(".background").data([0]);he.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),oe.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var we=oe.selectAll(".resize").data(J,U);we.exit().remove(),we.enter().append("g").attr("class",function(rr){return"resize "+rr}).style("cursor",function(rr){return GW[rr]}).append("rect").attr("x",function(rr){return/[ew]$/.test(rr)?-3:null}).attr("y",function(rr){return/^[ns]/.test(rr)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),we.style("display",$.empty()?"none":null);var Me=e.transition(oe),pe=e.transition(he),Ue;g&&(Ue=B0(g),pe.attr("x",Ue[0]).attr("width",Ue[1]-Ue[0]),ee(Me)),w&&(Ue=B0(w),pe.attr("y",Ue[0]).attr("height",Ue[1]-Ue[0]),me(Me)),j(Me)})}$.event=function(ae){ae.each(function(){var oe=v.of(this,arguments),he={x:q,y:C,i:S,j:N},we=this.__chart__||he;this.__chart__=he,No?e.select(this).transition().each("start.brush",function(){S=we.i,N=we.j,q=we.x,C=we.y,oe({type:"brushstart"})}).tween("brush:brush",function(){var Me=H0(q,he.x),pe=H0(C,he.y);return S=N=null,function(Ue){q=he.x=Me(Ue),C=he.y=pe(Ue),oe({type:"brush",mode:"resize"})}}).each("end.brush",function(){S=he.i,N=he.j,oe({type:"brush",mode:"resize"}),oe({type:"brushend"})}):(oe({type:"brushstart"}),oe({type:"brush",mode:"resize"}),oe({type:"brushend"}))})};function j(ae){ae.selectAll(".resize").attr("transform",function(oe){return"translate("+q[+/e$/.test(oe)]+","+C[+/^s/.test(oe)]+")"})}function ee(ae){ae.select(".extent").attr("x",q[0]),ae.selectAll(".extent,.n>rect,.s>rect").attr("width",q[1]-q[0])}function me(ae){ae.select(".extent").attr("y",C[0]),ae.selectAll(".extent,.e>rect,.w>rect").attr("height",C[1]-C[0])}function Te(){var ae=this,oe=e.select(e.event.target),he=v.of(ae,arguments),we=e.select(ae),Me=oe.datum(),pe=!/^(n|s)$/.test(Me)&&g,Ue=!/^(e|w)$/.test(Me)&&w,rr=oe.classed("extent"),or=fr(ae),ar,hr=e.mouse(ae),dr,Sr=e.select(i(ae)).on("keydown.brush",Kr).on("keyup.brush",Ft);if(e.event.changedTouches?Sr.on("touchmove.brush",at).on("touchend.brush",Dr):Sr.on("mousemove.brush",at).on("mouseup.brush",Dr),we.interrupt().selectAll("*").interrupt(),rr)hr[0]=q[0]-hr[0],hr[1]=C[0]-hr[1];else if(Me){var pr=+/w$/.test(Me),Mr=+/^n/.test(Me);dr=[q[1-pr]-hr[0],C[1-Mr]-hr[1]],hr[0]=q[pr],hr[1]=C[Mr]}else e.event.altKey&&(ar=hr.slice());we.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",oe.style("cursor")),he({type:"brushstart"}),at();function Kr(){e.event.keyCode==32&&(rr||(ar=null,hr[0]-=q[1],hr[1]-=C[1],rr=2),re())}function Ft(){e.event.keyCode==32&&rr==2&&(hr[0]+=q[1],hr[1]+=C[1],rr=0,re())}function at(){var Pr=e.mouse(ae),Qr=!1;dr&&(Pr[0]+=dr[0],Pr[1]+=dr[1]),rr||(e.event.altKey?(ar||(ar=[(q[0]+q[1])/2,(C[0]+C[1])/2]),hr[0]=q[+(Pr[0]<ar[0])],hr[1]=C[+(Pr[1]<ar[1])]):ar=null),pe&&er(Pr,g,0)&&(ee(we),Qr=!0),Ue&&er(Pr,w,1)&&(me(we),Qr=!0),Qr&&(j(we),he({type:"brush",mode:rr?"move":"resize"}))}function er(Pr,Qr,kt){var Zt=B0(Qr),xa=Zt[0],Ha=Zt[1],$a=hr[kt],Oa=kt?C:q,en=Oa[1]-Oa[0],La,rn;if(rr&&(xa-=$a,Ha-=en+$a),La=(kt?F:E)?Math.max(xa,Math.min(Ha,Pr[kt])):Pr[kt],rr?rn=(La+=$a)+en:(ar&&($a=Math.max(xa,Math.min(Ha,2*ar[kt]-La))),$a<La?(rn=La,La=$a):rn=$a),Oa[0]!=La||Oa[1]!=rn)return kt?N=null:S=null,Oa[0]=La,Oa[1]=rn,!0}function Dr(){at(),we.style("pointer-events","all").selectAll(".resize").style("display",$.empty()?"none":null),e.select("body").style("cursor",null),Sr.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),or(),he({type:"brushend"})}}return $.x=function(ae){return arguments.length?(g=ae,J=wy[!g<<1|!w],$):g},$.y=function(ae){return arguments.length?(w=ae,J=wy[!g<<1|!w],$):w},$.clamp=function(ae){return arguments.length?(g&&w?(E=!!ae[0],F=!!ae[1]):g?E=!!ae:w&&(F=!!ae),$):g&&w?[E,F]:g?E:w?F:null},$.extent=function(ae){var oe,he,we,Me,pe;return arguments.length?(g&&(oe=ae[0],he=ae[1],w&&(oe=oe[0],he=he[0]),S=[oe,he],g.invert&&(oe=g(oe),he=g(he)),he<oe&&(pe=oe,oe=he,he=pe),(oe!=q[0]||he!=q[1])&&(q=[oe,he])),w&&(we=ae[0],Me=ae[1],g&&(we=we[1],Me=Me[1]),N=[we,Me],w.invert&&(we=w(we),Me=w(Me)),Me<we&&(pe=we,we=Me,Me=pe),(we!=C[0]||Me!=C[1])&&(C=[we,Me])),$):(g&&(S?(oe=S[0],he=S[1]):(oe=q[0],he=q[1],g.invert&&(oe=g.invert(oe),he=g.invert(he)),he<oe&&(pe=oe,oe=he,he=pe))),w&&(N?(we=N[0],Me=N[1]):(we=C[0],Me=C[1],w.invert&&(we=w.invert(we),Me=w.invert(Me)),Me<we&&(pe=we,we=Me,Me=pe))),g&&w?[[oe,we],[he,Me]]:g?[oe,he]:w&&[we,Me])},$.clear=function(){return $.empty()||(q=[0,0],C=[0,0],S=N=null),$},$.empty=function(){return!!g&&q[0]==q[1]||!!w&&C[0]==C[1]},e.rebind($,v,"on")};var GW={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},wy=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]];e.text=ii(function(v){return v.responseText}),e.json=function(v,g){return Eo(v,"application/json",UW,g)};function UW(v){return JSON.parse(v.responseText)}e.html=function(v,g){return Eo(v,"text/html",VW,g)};function VW(v){var g=a.createRange();return g.selectNode(a.body),g.createContextualFragment(v.responseText)}e.xml=ii(function(v){return v.responseXML}),typeof eh=="object"&&eh.exports?eh.exports=e:this.d3=e}).apply(self)});var Ay=B((rh,W4)=>{(function(e,r){typeof rh=="object"&&typeof W4!="undefined"?r(rh):(e=e||self,r(e.d3=e.d3||{}))})(rh,function(e){"use strict";var r=new Date,t=new Date;function a(ie,Ae,Ce,cr){function tr(De){return ie(De=arguments.length===0?new Date:new Date(+De)),De}return tr.floor=function(De){return ie(De=new Date(+De)),De},tr.ceil=function(De){return ie(De=new Date(De-1)),Ae(De,1),ie(De),De},tr.round=function(De){var Le=tr(De),Ye=tr.ceil(De);return De-Le<Ye-De?Le:Ye},tr.offset=function(De,Le){return Ae(De=new Date(+De),Le==null?1:Math.floor(Le)),De},tr.range=function(De,Le,Ye){var Xe=[],Ge;if(De=tr.ceil(De),Ye=Ye==null?1:Math.floor(Ye),!(De<Le)||!(Ye>0))return Xe;do Xe.push(Ge=new Date(+De)),Ae(De,Ye),ie(De);while(Ge<De&&De<Le);return Xe},tr.filter=function(De){return a(function(Le){if(Le>=Le)for(;ie(Le),!De(Le);)Le.setTime(Le-1)},function(Le,Ye){if(Le>=Le)if(Ye<0)for(;++Ye<=0;)for(;Ae(Le,-1),!De(Le););else for(;--Ye>=0;)for(;Ae(Le,1),!De(Le););})},Ce&&(tr.count=function(De,Le){return r.setTime(+De),t.setTime(+Le),ie(r),ie(t),Math.floor(Ce(r,t))},tr.every=function(De){return De=Math.floor(De),!isFinite(De)||!(De>0)?null:De>1?tr.filter(cr?function(Le){return cr(Le)%De===0}:function(Le){return tr.count(0,Le)%De===0}):tr}),tr}var n=a(function(){},function(ie,Ae){ie.setTime(+ie+Ae)},function(ie,Ae){return Ae-ie});n.every=function(ie){return ie=Math.floor(ie),!isFinite(ie)||!(ie>0)?null:ie>1?a(function(Ae){Ae.setTime(Math.floor(Ae/ie)*ie)},function(Ae,Ce){Ae.setTime(+Ae+Ce*ie)},function(Ae,Ce){return(Ce-Ae)/ie}):n};var i=n.range,l=1e3,o=6e4,s=36e5,u=864e5,f=6048e5,c=a(function(ie){ie.setTime(ie-ie.getMilliseconds())},function(ie,Ae){ie.setTime(+ie+Ae*l)},function(ie,Ae){return(Ae-ie)/l},function(ie){return ie.getUTCSeconds()}),h=c.range,d=a(function(ie){ie.setTime(ie-ie.getMilliseconds()-ie.getSeconds()*l)},function(ie,Ae){ie.setTime(+ie+Ae*o)},function(ie,Ae){return(Ae-ie)/o},function(ie){return ie.getMinutes()}),p=d.range,y=a(function(ie){ie.setTime(ie-ie.getMilliseconds()-ie.getSeconds()*l-ie.getMinutes()*o)},function(ie,Ae){ie.setTime(+ie+Ae*s)},function(ie,Ae){return(Ae-ie)/s},function(ie){return ie.getHours()}),m=y.range,b=a(function(ie){ie.setHours(0,0,0,0)},function(ie,Ae){ie.setDate(ie.getDate()+Ae)},function(ie,Ae){return(Ae-ie-(Ae.getTimezoneOffset()-ie.getTimezoneOffset())*o)/u},function(ie){return ie.getDate()-1}),_=b.range;function T(ie){return a(function(Ae){Ae.setDate(Ae.getDate()-(Ae.getDay()+7-ie)%7),Ae.setHours(0,0,0,0)},function(Ae,Ce){Ae.setDate(Ae.getDate()+Ce*7)},function(Ae,Ce){return(Ce-Ae-(Ce.getTimezoneOffset()-Ae.getTimezoneOffset())*o)/f})}var x=T(0),M=T(1),A=T(2),k=T(3),L=T(4),D=T(5),P=T(6),R=x.range,z=M.range,H=A.range,O=k.range,U=L.range,V=D.range,Y=P.range,I=a(function(ie){ie.setDate(1),ie.setHours(0,0,0,0)},function(ie,Ae){ie.setMonth(ie.getMonth()+Ae)},function(ie,Ae){return Ae.getMonth()-ie.getMonth()+(Ae.getFullYear()-ie.getFullYear())*12},function(ie){return ie.getMonth()}),G=I.range,Z=a(function(ie){ie.setMonth(0,1),ie.setHours(0,0,0,0)},function(ie,Ae){ie.setFullYear(ie.getFullYear()+Ae)},function(ie,Ae){return Ae.getFullYear()-ie.getFullYear()},function(ie){return ie.getFullYear()});Z.every=function(ie){return!isFinite(ie=Math.floor(ie))||!(ie>0)?null:a(function(Ae){Ae.setFullYear(Math.floor(Ae.getFullYear()/ie)*ie),Ae.setMonth(0,1),Ae.setHours(0,0,0,0)},function(Ae,Ce){Ae.setFullYear(Ae.getFullYear()+Ce*ie)})};var K=Z.range,re=a(function(ie){ie.setUTCSeconds(0,0)},function(ie,Ae){ie.setTime(+ie+Ae*o)},function(ie,Ae){return(Ae-ie)/o},function(ie){return ie.getUTCMinutes()}),se=re.range,ce=a(function(ie){ie.setUTCMinutes(0,0,0)},function(ie,Ae){ie.setTime(+ie+Ae*s)},function(ie,Ae){return(Ae-ie)/s},function(ie){return ie.getUTCHours()}),le=ce.range,Q=a(function(ie){ie.setUTCHours(0,0,0,0)},function(ie,Ae){ie.setUTCDate(ie.getUTCDate()+Ae)},function(ie,Ae){return(Ae-ie)/u},function(ie){return ie.getUTCDate()-1}),ge=Q.range;function ue(ie){return a(function(Ae){Ae.setUTCDate(Ae.getUTCDate()-(Ae.getUTCDay()+7-ie)%7),Ae.setUTCHours(0,0,0,0)},function(Ae,Ce){Ae.setUTCDate(Ae.getUTCDate()+Ce*7)},function(Ae,Ce){return(Ce-Ae)/f})}var ke=ue(0),ve=ue(1),be=ue(2),W=ue(3),te=ue(4),X=ue(5),ye=ue(6),_e=ke.range,xe=ve.range,Ie=be.range,ze=W.range,Re=te.range,He=X.range,Be=ye.range,Fe=a(function(ie){ie.setUTCDate(1),ie.setUTCHours(0,0,0,0)},function(ie,Ae){ie.setUTCMonth(ie.getUTCMonth()+Ae)},function(ie,Ae){return Ae.getUTCMonth()-ie.getUTCMonth()+(Ae.getUTCFullYear()-ie.getUTCFullYear())*12},function(ie){return ie.getUTCMonth()}),Pe=Fe.range,Je=a(function(ie){ie.setUTCMonth(0,1),ie.setUTCHours(0,0,0,0)},function(ie,Ae){ie.setUTCFullYear(ie.getUTCFullYear()+Ae)},function(ie,Ae){return Ae.getUTCFullYear()-ie.getUTCFullYear()},function(ie){return ie.getUTCFullYear()});Je.every=function(ie){return!isFinite(ie=Math.floor(ie))||!(ie>0)?null:a(function(Ae){Ae.setUTCFullYear(Math.floor(Ae.getUTCFullYear()/ie)*ie),Ae.setUTCMonth(0,1),Ae.setUTCHours(0,0,0,0)},function(Ae,Ce){Ae.setUTCFullYear(Ae.getUTCFullYear()+Ce*ie)})};var We=Je.range;e.timeDay=b,e.timeDays=_,e.timeFriday=D,e.timeFridays=V,e.timeHour=y,e.timeHours=m,e.timeInterval=a,e.timeMillisecond=n,e.timeMilliseconds=i,e.timeMinute=d,e.timeMinutes=p,e.timeMonday=M,e.timeMondays=z,e.timeMonth=I,e.timeMonths=G,e.timeSaturday=P,e.timeSaturdays=Y,e.timeSecond=c,e.timeSeconds=h,e.timeSunday=x,e.timeSundays=R,e.timeThursday=L,e.timeThursdays=U,e.timeTuesday=A,e.timeTuesdays=H,e.timeWednesday=k,e.timeWednesdays=O,e.timeWeek=x,e.timeWeeks=R,e.timeYear=Z,e.timeYears=K,e.utcDay=Q,e.utcDays=ge,e.utcFriday=X,e.utcFridays=He,e.utcHour=ce,e.utcHours=le,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=re,e.utcMinutes=se,e.utcMonday=ve,e.utcMondays=xe,e.utcMonth=Fe,e.utcMonths=Pe,e.utcSaturday=ye,e.utcSaturdays=Be,e.utcSecond=c,e.utcSeconds=h,e.utcSunday=ke,e.utcSundays=_e,e.utcThursday=te,e.utcThursdays=Re,e.utcTuesday=be,e.utcTuesdays=Ie,e.utcWednesday=W,e.utcWednesdays=ze,e.utcWeek=ke,e.utcWeeks=_e,e.utcYear=Je,e.utcYears=We,Object.defineProperty(e,"__esModule",{value:!0})})});var cu=B((th,X4)=>{(function(e,r){typeof th=="object"&&typeof X4!="undefined"?r(th,Ay()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(th,function(e,r){"use strict";function t(ne){if(0<=ne.y&&ne.y<100){var fe=new Date(-1,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L);return fe.setFullYear(ne.y),fe}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 fe=new Date(Date.UTC(-1,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L));return fe.setUTCFullYear(ne.y),fe}return new Date(Date.UTC(ne.y,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L))}function n(ne,fe,Se){return{y:ne,m:fe,d:Se,H:0,M:0,S:0,L:0}}function i(ne){var fe=ne.dateTime,Se=ne.date,qe=ne.time,ir=ne.periods,vr=ne.days,sr=ne.shortDays,Ar=ne.months,Ur=ne.shortMonths,et=h(ir),Wr=d(ir),Nt=h(vr),oa=d(vr),Na=h(sr),sa=d(sr),Sn=h(Ar),Za=d(Ar),ua=h(Ur),Ja=d(Ur),gr={a:Do,A:Po,b:Sl,B:k0,c:null,d:I,e:I,f:se,H:G,I:Z,j:K,L:re,m:ce,M:le,p:q0,q:ac,Q:Le,s:Ye,S:Q,u:ge,U:ue,V:ke,w:ve,W:be,x:null,X:null,y:W,Y:te,Z:X,"%":De},ft={a:nc,A:ic,b:Ia,B:C0,c:null,d:ye,e:ye,f:Re,H:_e,I:xe,j:Ie,L:ze,m:He,M:Be,p:tu,q:au,Q:Le,s:Ye,S:Fe,u:Pe,U:Je,V:We,w:ie,W:Ae,x:null,X:null,y:Ce,Y:cr,Z:tr,"%":De},Xr={a:Fa,A:fa,b:ai,B:ni,c:Qt,d:L,e:L,f:O,H:P,I:P,j:D,L:H,m:k,M:R,p:_t,q:A,Q:V,s:Y,S:z,u:y,U:m,V:b,w:p,W:_,x:it,X:ma,y:x,Y:T,Z:M,"%":U};gr.x=bt(Se,gr),gr.X=bt(qe,gr),gr.c=bt(fe,gr),ft.x=bt(Se,ft),ft.X=bt(qe,ft),ft.c=bt(fe,ft);function bt(mr,Zr){return function(rt){var nr=[],ya=-1,vt=0,ga=mr.length,Nr,ii,Eo;for(rt instanceof Date||(rt=new Date(+rt));++ya<ga;)mr.charCodeAt(ya)===37&&(nr.push(mr.slice(vt,ya)),(ii=l[Nr=mr.charAt(++ya)])!=null?Nr=mr.charAt(++ya):ii=Nr==="e"?" ":"0",(Eo=Zr[Nr])&&(Nr=Eo(rt,ii)),nr.push(Nr),vt=ya+1);return nr.push(mr.slice(vt,ya)),nr.join("")}}function Lt(mr,Zr){return function(rt){var nr=n(1900,void 0,1),ya=ct(nr,mr,rt+="",0),vt,ga;if(ya!=rt.length)return null;if("Q"in nr)return new Date(nr.Q);if("s"in nr)return new Date(nr.s*1e3+("L"in nr?nr.L:0));if(Zr&&!("Z"in nr)&&(nr.Z=0),"p"in nr&&(nr.H=nr.H%12+nr.p*12),nr.m===void 0&&(nr.m="q"in nr?nr.q:0),"V"in nr){if(nr.V<1||nr.V>53)return null;"w"in nr||(nr.w=1),"Z"in nr?(vt=a(n(nr.y,0,1)),ga=vt.getUTCDay(),vt=ga>4||ga===0?r.utcMonday.ceil(vt):r.utcMonday(vt),vt=r.utcDay.offset(vt,(nr.V-1)*7),nr.y=vt.getUTCFullYear(),nr.m=vt.getUTCMonth(),nr.d=vt.getUTCDate()+(nr.w+6)%7):(vt=t(n(nr.y,0,1)),ga=vt.getDay(),vt=ga>4||ga===0?r.timeMonday.ceil(vt):r.timeMonday(vt),vt=r.timeDay.offset(vt,(nr.V-1)*7),nr.y=vt.getFullYear(),nr.m=vt.getMonth(),nr.d=vt.getDate()+(nr.w+6)%7)}else("W"in nr||"U"in nr)&&("w"in nr||(nr.w="u"in nr?nr.u%7:"W"in nr?1:0),ga="Z"in nr?a(n(nr.y,0,1)).getUTCDay():t(n(nr.y,0,1)).getDay(),nr.m=0,nr.d="W"in nr?(nr.w+6)%7+nr.W*7-(ga+5)%7:nr.w+nr.U*7-(ga+6)%7);return"Z"in nr?(nr.H+=nr.Z/100|0,nr.M+=nr.Z%100,a(nr)):t(nr)}}function ct(mr,Zr,rt,nr){for(var ya=0,vt=Zr.length,ga=rt.length,Nr,ii;ya<vt;){if(nr>=ga)return-1;if(Nr=Zr.charCodeAt(ya++),Nr===37){if(Nr=Zr.charAt(ya++),ii=Xr[Nr in l?Zr.charAt(ya++):Nr],!ii||(nr=ii(mr,rt,nr))<0)return-1}else if(Nr!=rt.charCodeAt(nr++))return-1}return nr}function _t(mr,Zr,rt){var nr=et.exec(Zr.slice(rt));return nr?(mr.p=Wr[nr[0].toLowerCase()],rt+nr[0].length):-1}function Fa(mr,Zr,rt){var nr=Na.exec(Zr.slice(rt));return nr?(mr.w=sa[nr[0].toLowerCase()],rt+nr[0].length):-1}function fa(mr,Zr,rt){var nr=Nt.exec(Zr.slice(rt));return nr?(mr.w=oa[nr[0].toLowerCase()],rt+nr[0].length):-1}function ai(mr,Zr,rt){var nr=ua.exec(Zr.slice(rt));return nr?(mr.m=Ja[nr[0].toLowerCase()],rt+nr[0].length):-1}function ni(mr,Zr,rt){var nr=Sn.exec(Zr.slice(rt));return nr?(mr.m=Za[nr[0].toLowerCase()],rt+nr[0].length):-1}function Qt(mr,Zr,rt){return ct(mr,fe,Zr,rt)}function it(mr,Zr,rt){return ct(mr,Se,Zr,rt)}function ma(mr,Zr,rt){return ct(mr,qe,Zr,rt)}function Do(mr){return sr[mr.getDay()]}function Po(mr){return vr[mr.getDay()]}function Sl(mr){return Ur[mr.getMonth()]}function k0(mr){return Ar[mr.getMonth()]}function q0(mr){return ir[+(mr.getHours()>=12)]}function ac(mr){return 1+~~(mr.getMonth()/3)}function nc(mr){return sr[mr.getUTCDay()]}function ic(mr){return vr[mr.getUTCDay()]}function Ia(mr){return Ur[mr.getUTCMonth()]}function C0(mr){return Ar[mr.getUTCMonth()]}function tu(mr){return ir[+(mr.getUTCHours()>=12)]}function au(mr){return 1+~~(mr.getUTCMonth()/3)}return{format:function(mr){var Zr=bt(mr+="",gr);return Zr.toString=function(){return mr},Zr},parse:function(mr){var Zr=Lt(mr+="",!1);return Zr.toString=function(){return mr},Zr},utcFormat:function(mr){var Zr=bt(mr+="",ft);return Zr.toString=function(){return mr},Zr},utcParse:function(mr){var Zr=Lt(mr+="",!0);return Zr.toString=function(){return mr},Zr}}}var l={"-":"",_:" ",0:"0"},o=/^\s*\d+/,s=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(ne,fe,Se){var qe=ne<0?"-":"",ir=(qe?-ne:ne)+"",vr=ir.length;return qe+(vr<Se?new Array(Se-vr+1).join(fe)+ir:ir)}function c(ne){return ne.replace(u,"\\$&")}function h(ne){return new RegExp("^(?:"+ne.map(c).join("|")+")","i")}function d(ne){for(var fe={},Se=-1,qe=ne.length;++Se<qe;)fe[ne[Se].toLowerCase()]=Se;return fe}function p(ne,fe,Se){var qe=o.exec(fe.slice(Se,Se+1));return qe?(ne.w=+qe[0],Se+qe[0].length):-1}function y(ne,fe,Se){var qe=o.exec(fe.slice(Se,Se+1));return qe?(ne.u=+qe[0],Se+qe[0].length):-1}function m(ne,fe,Se){var qe=o.exec(fe.slice(Se,Se+2));return qe?(ne.U=+qe[0],Se+qe[0].length):-1}function b(ne,fe,Se){var qe=o.exec(fe.slice(Se,Se+2));return qe?(ne.V=+qe[0],Se+qe[0].length):-1}function _(ne,fe,Se){var qe=o.exec(fe.slice(Se,Se+2));return qe?(ne.W=+qe[0],Se+qe[0].length):-1}function T(ne,fe,Se){var qe=o.exec(fe.slice(Se,Se+4));return qe?(ne.y=+qe[0],Se+qe[0].length):-1}function x(ne,fe,Se){var qe=o.exec(fe.slice(Se,Se+2));return qe?(ne.y=+qe[0]+(+qe[0]>68?1900:2e3),Se+qe[0].length):-1}function M(ne,fe,Se){var qe=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(fe.slice(Se,Se+6));return qe?(ne.Z=qe[1]?0:-(qe[2]+(qe[3]||"00")),Se+qe[0].length):-1}function A(ne,fe,Se){var qe=o.exec(fe.slice(Se,Se+1));return qe?(ne.q=qe[0]*3-3,Se+qe[0].length):-1}function k(ne,fe,Se){var qe=o.exec(fe.slice(Se,Se+2));return qe?(ne.m=qe[0]-1,Se+qe[0].length):-1}function L(ne,fe,Se){var qe=o.exec(fe.slice(Se,Se+2));return qe?(ne.d=+qe[0],Se+qe[0].length):-1}function D(ne,fe,Se){var qe=o.exec(fe.slice(Se,Se+3));return qe?(ne.m=0,ne.d=+qe[0],Se+qe[0].length):-1}function P(ne,fe,Se){var qe=o.exec(fe.slice(Se,Se+2));return qe?(ne.H=+qe[0],Se+qe[0].length):-1}function R(ne,fe,Se){var qe=o.exec(fe.slice(Se,Se+2));return qe?(ne.M=+qe[0],Se+qe[0].length):-1}function z(ne,fe,Se){var qe=o.exec(fe.slice(Se,Se+2));return qe?(ne.S=+qe[0],Se+qe[0].length):-1}function H(ne,fe,Se){var qe=o.exec(fe.slice(Se,Se+3));return qe?(ne.L=+qe[0],Se+qe[0].length):-1}function O(ne,fe,Se){var qe=o.exec(fe.slice(Se,Se+6));return qe?(ne.L=Math.floor(qe[0]/1e3),Se+qe[0].length):-1}function U(ne,fe,Se){var qe=s.exec(fe.slice(Se,Se+1));return qe?Se+qe[0].length:-1}function V(ne,fe,Se){var qe=o.exec(fe.slice(Se));return qe?(ne.Q=+qe[0],Se+qe[0].length):-1}function Y(ne,fe,Se){var qe=o.exec(fe.slice(Se));return qe?(ne.s=+qe[0],Se+qe[0].length):-1}function I(ne,fe){return f(ne.getDate(),fe,2)}function G(ne,fe){return f(ne.getHours(),fe,2)}function Z(ne,fe){return f(ne.getHours()%12||12,fe,2)}function K(ne,fe){return f(1+r.timeDay.count(r.timeYear(ne),ne),fe,3)}function re(ne,fe){return f(ne.getMilliseconds(),fe,3)}function se(ne,fe){return re(ne,fe)+"000"}function ce(ne,fe){return f(ne.getMonth()+1,fe,2)}function le(ne,fe){return f(ne.getMinutes(),fe,2)}function Q(ne,fe){return f(ne.getSeconds(),fe,2)}function ge(ne){var fe=ne.getDay();return fe===0?7:fe}function ue(ne,fe){return f(r.timeSunday.count(r.timeYear(ne)-1,ne),fe,2)}function ke(ne,fe){var Se=ne.getDay();return ne=Se>=4||Se===0?r.timeThursday(ne):r.timeThursday.ceil(ne),f(r.timeThursday.count(r.timeYear(ne),ne)+(r.timeYear(ne).getDay()===4),fe,2)}function ve(ne){return ne.getDay()}function be(ne,fe){return f(r.timeMonday.count(r.timeYear(ne)-1,ne),fe,2)}function W(ne,fe){return f(ne.getFullYear()%100,fe,2)}function te(ne,fe){return f(ne.getFullYear()%1e4,fe,4)}function X(ne){var fe=ne.getTimezoneOffset();return(fe>0?"-":(fe*=-1,"+"))+f(fe/60|0,"0",2)+f(fe%60,"0",2)}function ye(ne,fe){return f(ne.getUTCDate(),fe,2)}function _e(ne,fe){return f(ne.getUTCHours(),fe,2)}function xe(ne,fe){return f(ne.getUTCHours()%12||12,fe,2)}function Ie(ne,fe){return f(1+r.utcDay.count(r.utcYear(ne),ne),fe,3)}function ze(ne,fe){return f(ne.getUTCMilliseconds(),fe,3)}function Re(ne,fe){return ze(ne,fe)+"000"}function He(ne,fe){return f(ne.getUTCMonth()+1,fe,2)}function Be(ne,fe){return f(ne.getUTCMinutes(),fe,2)}function Fe(ne,fe){return f(ne.getUTCSeconds(),fe,2)}function Pe(ne){var fe=ne.getUTCDay();return fe===0?7:fe}function Je(ne,fe){return f(r.utcSunday.count(r.utcYear(ne)-1,ne),fe,2)}function We(ne,fe){var Se=ne.getUTCDay();return ne=Se>=4||Se===0?r.utcThursday(ne):r.utcThursday.ceil(ne),f(r.utcThursday.count(r.utcYear(ne),ne)+(r.utcYear(ne).getUTCDay()===4),fe,2)}function ie(ne){return ne.getUTCDay()}function Ae(ne,fe){return f(r.utcMonday.count(r.utcYear(ne)-1,ne),fe,2)}function Ce(ne,fe){return f(ne.getUTCFullYear()%100,fe,2)}function cr(ne,fe){return f(ne.getUTCFullYear()%1e4,fe,4)}function tr(){return"+0000"}function De(){return"%"}function Le(ne){return+ne}function Ye(ne){return Math.floor(+ne/1e3)}var Xe;Ge({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 Ge(ne){return Xe=i(ne),e.timeFormat=Xe.format,e.timeParse=Xe.parse,e.utcFormat=Xe.utcFormat,e.utcParse=Xe.utcParse,Xe}var Oe="%Y-%m-%dT%H:%M:%S.%LZ";function $e(ne){return ne.toISOString()}var fr=Date.prototype.toISOString?$e:e.utcFormat(Oe);function lr(ne){var fe=new Date(ne);return isNaN(fe)?null:fe}var Ne=+new Date("2000-01-01T00:00:00.000Z")?lr:e.utcParse(Oe);e.isoFormat=fr,e.isoParse=Ne,e.timeFormatDefaultLocale=Ge,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var ky=B((ah,Z4)=>{(function(e,r){typeof ah=="object"&&typeof Z4!="undefined"?r(ah):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(ah,function(e){"use strict";function r(k){return Math.abs(k=Math.round(k))>=1e21?k.toLocaleString("en").replace(/,/g,""):k.toString(10)}function t(k,L){if((D=(k=L?k.toExponential(L-1):k.toExponential()).indexOf("e"))<0)return null;var D,P=k.slice(0,D);return[P.length>1?P[0]+P.slice(2):P,+k.slice(D+1)]}function a(k){return k=t(Math.abs(k)),k?k[1]:NaN}function n(k,L){return function(D,P){for(var R=D.length,z=[],H=0,O=k[0],U=0;R>0&&O>0&&(U+O+1>P&&(O=Math.max(1,P-U)),z.push(D.substring(R-=O,R+O)),!((U+=O+1)>P));)O=k[H=(H+1)%k.length];return z.reverse().join(L)}}function i(k){return function(L){return L.replace(/[0-9]/g,function(D){return k[+D]})}}var l=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function o(k){if(!(L=l.exec(k)))throw new Error("invalid format: "+k);var L;return new s({fill:L[1],align:L[2],sign:L[3],symbol:L[4],zero:L[5],width:L[6],comma:L[7],precision:L[8]&&L[8].slice(1),trim:L[9],type:L[10]})}o.prototype=s.prototype;function s(k){this.fill=k.fill===void 0?" ":k.fill+"",this.align=k.align===void 0?">":k.align+"",this.sign=k.sign===void 0?"-":k.sign+"",this.symbol=k.symbol===void 0?"":k.symbol+"",this.zero=!!k.zero,this.width=k.width===void 0?void 0:+k.width,this.comma=!!k.comma,this.precision=k.precision===void 0?void 0:+k.precision,this.trim=!!k.trim,this.type=k.type===void 0?"":k.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(k){e:for(var L=k.length,D=1,P=-1,R;D<L;++D)switch(k[D]){case".":P=R=D;break;case"0":P===0&&(P=D),R=D;break;default:if(!+k[D])break e;P>0&&(P=0);break}return P>0?k.slice(0,P)+k.slice(R+1):k}var f;function c(k,L){var D=t(k,L);if(!D)return k+"";var P=D[0],R=D[1],z=R-(f=Math.max(-8,Math.min(8,Math.floor(R/3)))*3)+1,H=P.length;return z===H?P:z>H?P+new Array(z-H+1).join("0"):z>0?P.slice(0,z)+"."+P.slice(z):"0."+new Array(1-z).join("0")+t(k,Math.max(0,L+z-1))[0]}function h(k,L){var D=t(k,L);if(!D)return k+"";var P=D[0],R=D[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(k,L){return(k*100).toFixed(L)},b:function(k){return Math.round(k).toString(2)},c:function(k){return k+""},d:r,e:function(k,L){return k.toExponential(L)},f:function(k,L){return k.toFixed(L)},g:function(k,L){return k.toPrecision(L)},o:function(k){return Math.round(k).toString(8)},p:function(k,L){return h(k*100,L)},r:h,s:c,X:function(k){return Math.round(k).toString(16).toUpperCase()},x:function(k){return Math.round(k).toString(16)}};function p(k){return k}var y=Array.prototype.map,m=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function b(k){var L=k.grouping===void 0||k.thousands===void 0?p:n(y.call(k.grouping,Number),k.thousands+""),D=k.currency===void 0?"":k.currency[0]+"",P=k.currency===void 0?"":k.currency[1]+"",R=k.decimal===void 0?".":k.decimal+"",z=k.numerals===void 0?p:i(y.call(k.numerals,String)),H=k.percent===void 0?"%":k.percent+"",O=k.minus===void 0?"-":k.minus+"",U=k.nan===void 0?"NaN":k.nan+"";function V(I){I=o(I);var G=I.fill,Z=I.align,K=I.sign,re=I.symbol,se=I.zero,ce=I.width,le=I.comma,Q=I.precision,ge=I.trim,ue=I.type;ue==="n"?(le=!0,ue="g"):d[ue]||(Q===void 0&&(Q=12),ge=!0,ue="g"),(se||G==="0"&&Z==="=")&&(se=!0,G="0",Z="=");var ke=re==="$"?D:re==="#"&&/[boxX]/.test(ue)?"0"+ue.toLowerCase():"",ve=re==="$"?P:/[%p]/.test(ue)?H:"",be=d[ue],W=/[defgprs%]/.test(ue);Q=Q===void 0?6:/[gprs]/.test(ue)?Math.max(1,Math.min(21,Q)):Math.max(0,Math.min(20,Q));function te(X){var ye=ke,_e=ve,xe,Ie,ze;if(ue==="c")_e=be(X)+_e,X="";else{X=+X;var Re=X<0||1/X<0;if(X=isNaN(X)?U:be(Math.abs(X),Q),ge&&(X=u(X)),Re&&+X==0&&K!=="+"&&(Re=!1),ye=(Re?K==="("?K:O:K==="-"||K==="("?"":K)+ye,_e=(ue==="s"?m[8+f/3]:"")+_e+(Re&&K==="("?")":""),W){for(xe=-1,Ie=X.length;++xe<Ie;)if(ze=X.charCodeAt(xe),48>ze||ze>57){_e=(ze===46?R+X.slice(xe+1):X.slice(xe))+_e,X=X.slice(0,xe);break}}}le&&!se&&(X=L(X,1/0));var He=ye.length+X.length+_e.length,Be=He<ce?new Array(ce-He+1).join(G):"";switch(le&&se&&(X=L(Be+X,Be.length?ce-_e.length:1/0),Be=""),Z){case"<":X=ye+X+_e+Be;break;case"=":X=ye+Be+X+_e;break;case"^":X=Be.slice(0,He=Be.length>>1)+ye+X+_e+Be.slice(He);break;default:X=Be+ye+X+_e;break}return z(X)}return te.toString=function(){return I+""},te}function Y(I,G){var Z=V((I=o(I),I.type="f",I)),K=Math.max(-8,Math.min(8,Math.floor(a(G)/3)))*3,re=Math.pow(10,-K),se=m[8+K/3];return function(ce){return Z(re*ce)+se}}return{format:V,formatPrefix:Y}}var _;T({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function T(k){return _=b(k),e.format=_.format,e.formatPrefix=_.formatPrefix,_}function x(k){return Math.max(0,-a(Math.abs(k)))}function M(k,L){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(a(L)/3)))*3-a(Math.abs(k)))}function A(k,L){return k=Math.abs(k),L=Math.abs(L)-k,Math.max(0,a(L)-a(k))+1}e.FormatSpecifier=s,e.formatDefaultLocale=T,e.formatLocale=b,e.formatSpecifier=o,e.precisionFixed=x,e.precisionPrefix=M,e.precisionRound=A,Object.defineProperty(e,"__esModule",{value:!0})})});var $4=B((Fpe,J4)=>{"use strict";J4.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 zr=B((Ipe,K4)=>{"use strict";var QW=$4();K4.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&QW(t))return!1}else if(r!=="number")return!1;return e-e<1}});var wt=B((Hpe,Q4)=>{"use strict";Q4.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 qy=B((nh,j4)=>{(function(e,r){typeof nh=="object"&&typeof j4!="undefined"?r(nh):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(nh,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(l){var o=new Uint8Array(l),s,u=o.length,f="";for(s=0;s<u;s+=3)f+=r[o[s]>>2],f+=r[(o[s]&3)<<4|o[s+1]>>4],f+=r[(o[s+1]&15)<<2|o[s+2]>>6],f+=r[o[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(l){var o=l.length*.75,s=l.length,u,f=0,c,h,d,p;l[l.length-1]==="="&&(o--,l[l.length-2]==="="&&o--);var y=new ArrayBuffer(o),m=new Uint8Array(y);for(u=0;u<s;u+=4)c=t[l.charCodeAt(u)],h=t[l.charCodeAt(u+1)],d=t[l.charCodeAt(u+2)],p=t[l.charCodeAt(u+3)],m[f++]=c<<2|h>>4,m[f++]=(h&15)<<4|d>>2,m[f++]=(d&3)<<6|p&63;return y};e.decode=i,e.encode=n,Object.defineProperty(e,"__esModule",{value:!0})})});var El=B((Ope,e6)=>{"use strict";e6.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 gn=B(si=>{"use strict";var jW=qy().decode,eX=El(),Cy=Array.isArray,rX=ArrayBuffer,tX=DataView;function r6(e){return rX.isView(e)&&!(e instanceof tX)}si.isTypedArray=r6;function ih(e){return Cy(e)||r6(e)}si.isArrayOrTypedArray=ih;function aX(e){return!ih(e[0])}si.isArray1D=aX;si.ensureArray=function(e,r){return Cy(e)||(e=[]),e.length=r,e};var ca={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};ca.uint8c=ca.u1c;ca.uint8=ca.u1;ca.int8=ca.i1;ca.uint16=ca.u2;ca.int16=ca.i2;ca.uint32=ca.u4;ca.int32=ca.i4;ca.float32=ca.f4;ca.float64=ca.f8;function Ly(e){return e.constructor===ArrayBuffer}si.isArrayBuffer=Ly;si.decodeTypedArraySpec=function(e){var r=[],t=nX(e),a=t.dtype,n=ca[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,l=t.bdata;Ly(l)||(l=jW(l));var o=t.shape===void 0?[l.byteLength/i]:(""+t.shape).split(",");o.reverse();var s=o.length,u,f,c=+o[0],h=i*c,d=0;if(s===1)r=new n(l);else if(s===2)for(u=+o[1],f=0;f<u;f++)r[f]=new n(l,d,c),d+=h;else if(s===3){u=+o[1];for(var p=+o[2],y=0;y<p;y++)for(r[y]=[],f=0;f<u;f++)r[y][f]=new n(l,d,c),d+=h}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=o.reverse().join(","),e._inputArray=r,r};si.isTypedArraySpec=function(e){return eX(e)&&e.hasOwnProperty("dtype")&&typeof e.dtype=="string"&&e.hasOwnProperty("bdata")&&(typeof e.bdata=="string"||Ly(e.bdata))&&(e.shape===void 0||e.hasOwnProperty("shape")&&(typeof e.shape=="string"||typeof e.shape=="number"))};function nX(e){return{bdata:e.bdata,dtype:e.dtype,shape:e.shape}}si.concat=function(){var e=[],r=!0,t=0,a,n,i,l,o,s,u,f;for(i=0;i<arguments.length;i++)l=arguments[i],s=l.length,s&&(n?e.push(l):(n=l,o=s),Cy(l)?a=!1:(r=!1,t?a!==l.constructor&&(a=!1):a=l.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++)l=e[i],u.set(l,o),o+=l.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(l=e[i],f=0;f<l.length;f++)u[o+f]=l[f];o+=f}return u};si.maxRowLength=function(e){return t6(e,Math.max,0)};si.minRowLength=function(e){return t6(e,Math.min,1/0)};function t6(e,r,t){if(ih(e))if(ih(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 lh=B((Ype,o6)=>{"use strict";var a6=zr(),Dy=gn().isArrayOrTypedArray;o6.exports=function(r,t){if(a6(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,l,o;for(o=0;o<a.length;o++)if(String(a[o]).slice(0,2)==="__")throw"bad property string";for(o=0;o<a.length;){if(n=String(a[o]).match(/^([^\[\]]*)((\[\-?[0-9]*\])+)$/),n){if(n[1])a[o]=n[1];else if(o===0)a.splice(0,1);else throw"bad property string";for(i=n[2].substr(1,n[2].length-2).split("]["),l=0;l<i.length;l++)o++,a.splice(o,0,Number(i[l]))}o++}return typeof r!="object"?sX(r,t,a):{set:i6(r,a,t),get:n6(r,a),astr:t,parts:a,obj:r}};function n6(e,r){return function(t){var a=e,n,i,l,o,s;for(o=0;o<r.length-1;o++){if(n=r[o],n===-1){for(i=!0,l=[],s=0;s<a.length;s++)l[s]=n6(a[s],r.slice(o+1))(t),l[s]!==l[0]&&(i=!1);return i?l[0]:l}if(typeof n=="number"&&!Dy(a)||(a=a[n],typeof a!="object"||a===null))return}if(!(typeof a!="object"||a===null)&&(l=a[r[o]],!(!t&&l===null)))return l}}var iX=/(^|\.)args\[/;function Sy(e,r){return e===void 0||e===null&&!r.match(iX)}function i6(e,r,t){return function(a){var n=e,i="",l=[[e,i]],o=Sy(a,t),s,u;for(u=0;u<r.length-1;u++){if(s=r[u],typeof s=="number"&&!Dy(n))throw"array index but container is not an array";if(s===-1){if(o=!oX(n,r.slice(u+1),a,t),o)break;return}if(!l6(n,s,r[u+1],o))break;if(n=n[s],typeof n!="object"||n===null)throw"container is not an object";i=lX(i,s),l.push([n,i])}if(o){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 lX(e,r){var t=r;return a6(r)?t="["+r+"]":e&&(t="."+r),e+t}function oX(e,r,t,a){var n=Dy(t),i=!0,l=t,o=a.replace("-1",0),s=n?!1:Sy(t,o),u=r[0],f;for(f=0;f<e.length;f++)o=a.replace("-1",f),n&&(l=t[f%t.length],s=Sy(l,o)),s&&(i=!1),l6(e,f,u,s)&&i6(e[f],r,a.replace("-1",f))(l);return i}function l6(e,r,t,a){if(e[r]===void 0){if(a)return!1;typeof t=="number"?e[r]=[]:e[r]={}}return!0}function sX(e,r,t){return{set:function(){throw"bad container"},get:function(){},astr:r,parts:t,obj:e}}});var c6=B((Gpe,f6)=>{"use strict";var vu=lh(),uX=/^\w*$/,fX=0,s6=1,oh=2,u6=3,Ho=4;f6.exports=function(r,t,a,n){a=a||"name",n=n||"value";var i,l,o,s={};t&&t.length?(o=vu(r,t),l=o.get()):l=r,t=t||"";var u={};if(l)for(i=0;i<l.length;i++)u[l[i][a]]=i;var f=uX.test(n),c={set:function(h,d){var p=d===null?Ho:fX;if(!l){if(!o||p===Ho)return;l=[],o.set(l)}var y=u[h];if(y===void 0){if(p===Ho)return;p=p|u6,y=l.length,u[h]=y}else d!==(f?l[y][n]:vu(l[y],n).get())&&(p=p|oh);var m=l[y]=l[y]||{};return m[a]=h,f?m[n]=d:vu(m,n).set(d),d!==null&&(p=p&~Ho),s[y]=s[y]|p,c},get:function(h){if(l){var d=u[h];if(d!==void 0)return f?l[d][n]:vu(l[d],n).get()}},rename:function(h,d){var p=u[h];return p===void 0||(s[p]=s[p]|s6,u[d]=p,delete u[h],l[p][a]=d),c},remove:function(h){var d=u[h];if(d===void 0)return c;var p=l[d];if(Object.keys(p).length>2)return s[d]=s[d]|oh,c.set(h,null);if(f){for(i=d;i<l.length;i++)s[i]=s[i]|u6;for(i=d;i<l.length;i++)u[l[i][a]]--;l.splice(d,1),delete u[h]}else vu(p,n).set(null),s[d]=s[d]|oh|Ho;return c},constructUpdate:function(){for(var h,d,p={},y=Object.keys(s),m=0;m<y.length;m++)d=y[m],h=t+"["+d+"]",l[d]?(s[d]&s6&&(p[h+"."+a]=l[d][a]),s[d]&oh&&(f?p[h+"."+n]=s[d]&Ho?null:l[d][n]:p[h+"."+n]=s[d]&Ho?null:vu(l[d],n).get())):p[h]=null;return p}};return c}});var h6=B((Upe,v6)=>{"use strict";var cX=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,vX=/^[^\.\[\]]+$/;v6.exports=function(e,r){for(;r;){var t=e.match(cX);if(t)e=t[1];else if(e.match(vX))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 sh=B((Vpe,d6)=>{"use strict";var hX=zr();d6.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 hX(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var y6=B((Wpe,m6)=>{"use strict";var p6=gn().isArrayOrTypedArray,pc=El();m6.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(p6(n)&&p6(i)&&pc(n[0])){if(a==="customdata"||a==="ids")continue;for(var l=Math.min(n.length,i.length),o=0;o<l;o++)i[o]!==n[o]&&pc(n[o])&&pc(i[o])&&e(i[o],n[o])}else pc(n)&&pc(i)&&(e(i,n),Object.keys(i).length||delete r[a])}}});var hu=B((Xpe,g6)=>{"use strict";function dX(e,r){var t=e%r;return t<0?t+r:t}function pX(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}g6.exports={mod:dX,modHalf:pX}});var Rn=B((Zpe,uh)=>{(function(e){var r=/^\s+/,t=/\s+$/,a=0,n=e.round,i=e.min,l=e.max,o=e.random;function s(W,te){if(W=W||"",te=te||{},W instanceof s)return W;if(!(this instanceof s))return new s(W,te);var X=u(W);this._originalInput=W,this._r=X.r,this._g=X.g,this._b=X.b,this._a=X.a,this._roundA=n(100*this._a)/100,this._format=te.format||X.format,this._gradientType=te.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=X.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(),te,X,ye,_e,xe,Ie;return te=W.r/255,X=W.g/255,ye=W.b/255,te<=.03928?_e=te/12.92:_e=e.pow((te+.055)/1.055,2.4),X<=.03928?xe=X/12.92:xe=e.pow((X+.055)/1.055,2.4),ye<=.03928?Ie=ye/12.92:Ie=e.pow((ye+.055)/1.055,2.4),.2126*_e+.7152*xe+.0722*Ie},setAlpha:function(W){return this._a=I(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),te=n(W.h*360),X=n(W.s*100),ye=n(W.v*100);return this._a==1?"hsv("+te+", "+X+"%, "+ye+"%)":"hsva("+te+", "+X+"%, "+ye+"%, "+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),te=n(W.h*360),X=n(W.s*100),ye=n(W.l*100);return this._a==1?"hsl("+te+", "+X+"%, "+ye+"%)":"hsla("+te+", "+X+"%, "+ye+"%, "+this._roundA+")"},toHex:function(W){return y(this._r,this._g,this._b,W)},toHexString:function(W){return"#"+this.toHex(W)},toHex8:function(W){return m(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(G(this._r,255)*100)+"%",g:n(G(this._g,255)*100)+"%",b:n(G(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+n(G(this._r,255)*100)+"%, "+n(G(this._g,255)*100)+"%, "+n(G(this._b,255)*100)+"%)":"rgba("+n(G(this._r,255)*100)+"%, "+n(G(this._g,255)*100)+"%, "+n(G(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:V[y(this._r,this._g,this._b,!0)]||!1},toFilter:function(W){var te="#"+b(this._r,this._g,this._b,this._a),X=te,ye=this._gradientType?"GradientType = 1, ":"";if(W){var _e=s(W);X="#"+b(_e._r,_e._g,_e._b,_e._a)}return"progid:DXImageTransform.Microsoft.gradient("+ye+"startColorstr="+te+",endColorstr="+X+")"},toString:function(W){var te=!!W;W=W||this._format;var X=!1,ye=this._a<1&&this._a>=0,_e=!te&&ye&&(W==="hex"||W==="hex6"||W==="hex3"||W==="hex4"||W==="hex8"||W==="name");return _e?W==="name"&&this._a===0?this.toName():this.toRgbString():(W==="rgb"&&(X=this.toRgbString()),W==="prgb"&&(X=this.toPercentageRgbString()),(W==="hex"||W==="hex6")&&(X=this.toHexString()),W==="hex3"&&(X=this.toHexString(!0)),W==="hex4"&&(X=this.toHex8String(!0)),W==="hex8"&&(X=this.toHex8String()),W==="name"&&(X=this.toName()),W==="hsl"&&(X=this.toHslString()),W==="hsv"&&(X=this.toHsvString()),X||this.toHexString())},clone:function(){return s(this.toString())},_applyModification:function(W,te){var X=W.apply(null,[this].concat([].slice.call(te)));return this._r=X._r,this._g=X._g,this._b=X._b,this.setAlpha(X._a),this},lighten:function(){return this._applyModification(M,arguments)},brighten:function(){return this._applyModification(A,arguments)},darken:function(){return this._applyModification(k,arguments)},desaturate:function(){return this._applyModification(_,arguments)},saturate:function(){return this._applyModification(T,arguments)},greyscale:function(){return this._applyModification(x,arguments)},spin:function(){return this._applyModification(L,arguments)},_applyCombination:function(W,te){return W.apply(null,[this].concat([].slice.call(te)))},analogous:function(){return this._applyCombination(H,arguments)},complement:function(){return this._applyCombination(D,arguments)},monochromatic:function(){return this._applyCombination(O,arguments)},splitcomplement:function(){return this._applyCombination(z,arguments)},triad:function(){return this._applyCombination(P,arguments)},tetrad:function(){return this._applyCombination(R,arguments)}},s.fromRatio=function(W,te){if(typeof W=="object"){var X={};for(var ye in W)W.hasOwnProperty(ye)&&(ye==="a"?X[ye]=W[ye]:X[ye]=le(W[ye]));W=X}return s(W,te)};function u(W){var te={r:0,g:0,b:0},X=1,ye=null,_e=null,xe=null,Ie=!1,ze=!1;return typeof W=="string"&&(W=ve(W)),typeof W=="object"&&(ke(W.r)&&ke(W.g)&&ke(W.b)?(te=f(W.r,W.g,W.b),Ie=!0,ze=String(W.r).substr(-1)==="%"?"prgb":"rgb"):ke(W.h)&&ke(W.s)&&ke(W.v)?(ye=le(W.s),_e=le(W.v),te=p(W.h,ye,_e),Ie=!0,ze="hsv"):ke(W.h)&&ke(W.s)&&ke(W.l)&&(ye=le(W.s),xe=le(W.l),te=h(W.h,ye,xe),Ie=!0,ze="hsl"),W.hasOwnProperty("a")&&(X=W.a)),X=I(X),{ok:Ie,format:W.format||ze,r:i(255,l(te.r,0)),g:i(255,l(te.g,0)),b:i(255,l(te.b,0)),a:X}}function f(W,te,X){return{r:G(W,255)*255,g:G(te,255)*255,b:G(X,255)*255}}function c(W,te,X){W=G(W,255),te=G(te,255),X=G(X,255);var ye=l(W,te,X),_e=i(W,te,X),xe,Ie,ze=(ye+_e)/2;if(ye==_e)xe=Ie=0;else{var Re=ye-_e;switch(Ie=ze>.5?Re/(2-ye-_e):Re/(ye+_e),ye){case W:xe=(te-X)/Re+(te<X?6:0);break;case te:xe=(X-W)/Re+2;break;case X:xe=(W-te)/Re+4;break}xe/=6}return{h:xe,s:Ie,l:ze}}function h(W,te,X){var ye,_e,xe;W=G(W,360),te=G(te,100),X=G(X,100);function Ie(He,Be,Fe){return Fe<0&&(Fe+=1),Fe>1&&(Fe-=1),Fe<1/6?He+(Be-He)*6*Fe:Fe<1/2?Be:Fe<2/3?He+(Be-He)*(2/3-Fe)*6:He}if(te===0)ye=_e=xe=X;else{var ze=X<.5?X*(1+te):X+te-X*te,Re=2*X-ze;ye=Ie(Re,ze,W+1/3),_e=Ie(Re,ze,W),xe=Ie(Re,ze,W-1/3)}return{r:ye*255,g:_e*255,b:xe*255}}function d(W,te,X){W=G(W,255),te=G(te,255),X=G(X,255);var ye=l(W,te,X),_e=i(W,te,X),xe,Ie,ze=ye,Re=ye-_e;if(Ie=ye===0?0:Re/ye,ye==_e)xe=0;else{switch(ye){case W:xe=(te-X)/Re+(te<X?6:0);break;case te:xe=(X-W)/Re+2;break;case X:xe=(W-te)/Re+4;break}xe/=6}return{h:xe,s:Ie,v:ze}}function p(W,te,X){W=G(W,360)*6,te=G(te,100),X=G(X,100);var ye=e.floor(W),_e=W-ye,xe=X*(1-te),Ie=X*(1-_e*te),ze=X*(1-(1-_e)*te),Re=ye%6,He=[X,Ie,xe,xe,ze,X][Re],Be=[ze,X,X,Ie,xe,xe][Re],Fe=[xe,xe,ze,X,X,Ie][Re];return{r:He*255,g:Be*255,b:Fe*255}}function y(W,te,X,ye){var _e=[ce(n(W).toString(16)),ce(n(te).toString(16)),ce(n(X).toString(16))];return ye&&_e[0].charAt(0)==_e[0].charAt(1)&&_e[1].charAt(0)==_e[1].charAt(1)&&_e[2].charAt(0)==_e[2].charAt(1)?_e[0].charAt(0)+_e[1].charAt(0)+_e[2].charAt(0):_e.join("")}function m(W,te,X,ye,_e){var xe=[ce(n(W).toString(16)),ce(n(te).toString(16)),ce(n(X).toString(16)),ce(Q(ye))];return _e&&xe[0].charAt(0)==xe[0].charAt(1)&&xe[1].charAt(0)==xe[1].charAt(1)&&xe[2].charAt(0)==xe[2].charAt(1)&&xe[3].charAt(0)==xe[3].charAt(1)?xe[0].charAt(0)+xe[1].charAt(0)+xe[2].charAt(0)+xe[3].charAt(0):xe.join("")}function b(W,te,X,ye){var _e=[ce(Q(ye)),ce(n(W).toString(16)),ce(n(te).toString(16)),ce(n(X).toString(16))];return _e.join("")}s.equals=function(W,te){return!W||!te?!1:s(W).toRgbString()==s(te).toRgbString()},s.random=function(){return s.fromRatio({r:o(),g:o(),b:o()})};function _(W,te){te=te===0?0:te||10;var X=s(W).toHsl();return X.s-=te/100,X.s=Z(X.s),s(X)}function T(W,te){te=te===0?0:te||10;var X=s(W).toHsl();return X.s+=te/100,X.s=Z(X.s),s(X)}function x(W){return s(W).desaturate(100)}function M(W,te){te=te===0?0:te||10;var X=s(W).toHsl();return X.l+=te/100,X.l=Z(X.l),s(X)}function A(W,te){te=te===0?0:te||10;var X=s(W).toRgb();return X.r=l(0,i(255,X.r-n(255*-(te/100)))),X.g=l(0,i(255,X.g-n(255*-(te/100)))),X.b=l(0,i(255,X.b-n(255*-(te/100)))),s(X)}function k(W,te){te=te===0?0:te||10;var X=s(W).toHsl();return X.l-=te/100,X.l=Z(X.l),s(X)}function L(W,te){var X=s(W).toHsl(),ye=(X.h+te)%360;return X.h=ye<0?360+ye:ye,s(X)}function D(W){var te=s(W).toHsl();return te.h=(te.h+180)%360,s(te)}function P(W){var te=s(W).toHsl(),X=te.h;return[s(W),s({h:(X+120)%360,s:te.s,l:te.l}),s({h:(X+240)%360,s:te.s,l:te.l})]}function R(W){var te=s(W).toHsl(),X=te.h;return[s(W),s({h:(X+90)%360,s:te.s,l:te.l}),s({h:(X+180)%360,s:te.s,l:te.l}),s({h:(X+270)%360,s:te.s,l:te.l})]}function z(W){var te=s(W).toHsl(),X=te.h;return[s(W),s({h:(X+72)%360,s:te.s,l:te.l}),s({h:(X+216)%360,s:te.s,l:te.l})]}function H(W,te,X){te=te||6,X=X||30;var ye=s(W).toHsl(),_e=360/X,xe=[s(W)];for(ye.h=(ye.h-(_e*te>>1)+720)%360;--te;)ye.h=(ye.h+_e)%360,xe.push(s(ye));return xe}function O(W,te){te=te||6;for(var X=s(W).toHsv(),ye=X.h,_e=X.s,xe=X.v,Ie=[],ze=1/te;te--;)Ie.push(s({h:ye,s:_e,v:xe})),xe=(xe+ze)%1;return Ie}s.mix=function(W,te,X){X=X===0?0:X||50;var ye=s(W).toRgb(),_e=s(te).toRgb(),xe=X/100,Ie={r:(_e.r-ye.r)*xe+ye.r,g:(_e.g-ye.g)*xe+ye.g,b:(_e.b-ye.b)*xe+ye.b,a:(_e.a-ye.a)*xe+ye.a};return s(Ie)},s.readability=function(W,te){var X=s(W),ye=s(te);return(e.max(X.getLuminance(),ye.getLuminance())+.05)/(e.min(X.getLuminance(),ye.getLuminance())+.05)},s.isReadable=function(W,te,X){var ye=s.readability(W,te),_e,xe;switch(xe=!1,_e=be(X),_e.level+_e.size){case"AAsmall":case"AAAlarge":xe=ye>=4.5;break;case"AAlarge":xe=ye>=3;break;case"AAAsmall":xe=ye>=7;break}return xe},s.mostReadable=function(W,te,X){var ye=null,_e=0,xe,Ie,ze,Re;X=X||{},Ie=X.includeFallbackColors,ze=X.level,Re=X.size;for(var He=0;He<te.length;He++)xe=s.readability(W,te[He]),xe>_e&&(_e=xe,ye=s(te[He]));return s.isReadable(W,ye,{level:ze,size:Re})||!Ie?ye:(X.includeFallbackColors=!1,s.mostReadable(W,["#fff","#000"],X))};var U=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"},V=s.hexNames=Y(U);function Y(W){var te={};for(var X in W)W.hasOwnProperty(X)&&(te[W[X]]=X);return te}function I(W){return W=parseFloat(W),(isNaN(W)||W<0||W>1)&&(W=1),W}function G(W,te){re(W)&&(W="100%");var X=se(W);return W=i(te,l(0,parseFloat(W))),X&&(W=parseInt(W*te,10)/100),e.abs(W-te)<1e-6?1:W%te/parseFloat(te)}function Z(W){return i(1,l(0,W))}function K(W){return parseInt(W,16)}function re(W){return typeof W=="string"&&W.indexOf(".")!=-1&&parseFloat(W)===1}function se(W){return typeof W=="string"&&W.indexOf("%")!=-1}function ce(W){return W.length==1?"0"+W:""+W}function le(W){return W<=1&&(W=W*100+"%"),W}function Q(W){return e.round(parseFloat(W)*255).toString(16)}function ge(W){return K(W)/255}var ue=function(){var W="[-\\+]?\\d+%?",te="[-\\+]?\\d*\\.\\d+%?",X="(?:"+te+")|(?:"+W+")",ye="[\\s|\\(]+("+X+")[,|\\s]+("+X+")[,|\\s]+("+X+")\\s*\\)?",_e="[\\s|\\(]+("+X+")[,|\\s]+("+X+")[,|\\s]+("+X+")[,|\\s]+("+X+")\\s*\\)?";return{CSS_UNIT:new RegExp(X),rgb:new RegExp("rgb"+ye),rgba:new RegExp("rgba"+_e),hsl:new RegExp("hsl"+ye),hsla:new RegExp("hsla"+_e),hsv:new RegExp("hsv"+ye),hsva:new RegExp("hsva"+_e),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 ke(W){return!!ue.CSS_UNIT.exec(W)}function ve(W){W=W.replace(r,"").replace(t,"").toLowerCase();var te=!1;if(U[W])W=U[W],te=!0;else if(W=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var X;return(X=ue.rgb.exec(W))?{r:X[1],g:X[2],b:X[3]}:(X=ue.rgba.exec(W))?{r:X[1],g:X[2],b:X[3],a:X[4]}:(X=ue.hsl.exec(W))?{h:X[1],s:X[2],l:X[3]}:(X=ue.hsla.exec(W))?{h:X[1],s:X[2],l:X[3],a:X[4]}:(X=ue.hsv.exec(W))?{h:X[1],s:X[2],v:X[3]}:(X=ue.hsva.exec(W))?{h:X[1],s:X[2],v:X[3],a:X[4]}:(X=ue.hex8.exec(W))?{r:K(X[1]),g:K(X[2]),b:K(X[3]),a:ge(X[4]),format:te?"name":"hex8"}:(X=ue.hex6.exec(W))?{r:K(X[1]),g:K(X[2]),b:K(X[3]),format:te?"name":"hex"}:(X=ue.hex4.exec(W))?{r:K(X[1]+""+X[1]),g:K(X[2]+""+X[2]),b:K(X[3]+""+X[3]),a:ge(X[4]+""+X[4]),format:te?"name":"hex8"}:(X=ue.hex3.exec(W))?{r:K(X[1]+""+X[1]),g:K(X[2]+""+X[2]),b:K(X[3]+""+X[3]),format:te?"name":"hex"}:!1}function be(W){var te,X;return W=W||{level:"AA",size:"small"},te=(W.level||"AA").toUpperCase(),X=(W.size||"small").toLowerCase(),te!=="AA"&&te!=="AAA"&&(te="AA"),X!=="small"&&X!=="large"&&(X="small"),{level:te,size:X}}typeof uh!="undefined"&&uh.exports?uh.exports=s:window.tinycolor=s})(Math)});var mt=B(gc=>{"use strict";var x6=El(),mc=Array.isArray;function mX(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}gc.extendFlat=function(){return yc(arguments,!1,!1,!1)};gc.extendDeep=function(){return yc(arguments,!0,!1,!1)};gc.extendDeepAll=function(){return yc(arguments,!0,!0,!1)};gc.extendDeepNoArrays=function(){return yc(arguments,!0,!1,!0)};function yc(e,r,t,a){var n=e[0],i=e.length,l,o,s,u,f,c,h;if(i===2&&mc(n)&&mc(e[1])&&n.length===0){if(h=mX(e[1],n),h)return n;n.splice(0,n.length)}for(var d=1;d<i;d++){l=e[d];for(o in l)s=n[o],u=l[o],a&&mc(u)?n[o]=u:r&&u&&(x6(u)||(f=mc(u)))?(f?(f=!1,c=s&&mc(s)?s:[]):c=s&&x6(s)?s:{},n[o]=yc([c,u],r,t,a)):(typeof u!="undefined"||t)&&(n[o]=u)}return n}});var jt=B(($pe,b6)=>{"use strict";b6.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 xc=B((Kpe,_6)=>{"use strict";_6.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var du=B((Qpe,M6)=>{"use strict";var w6=xc(),T6=jt(),Py=T6({editType:"none"});Py.family.dflt=w6.HOVERFONT;Py.size.dflt=w6.HOVERFONTSIZE;M6.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:Py,grouptitlefont:T6({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 bc=B((jpe,A6)=>{"use strict";var yX=jt(),fh=du().hoverlabel,ch=mt().extendFlat;A6.exports={hoverlabel:{bgcolor:ch({},fh.bgcolor,{arrayOk:!0}),bordercolor:ch({},fh.bordercolor,{arrayOk:!0}),font:yX({arrayOk:!0,editType:"none"}),align:ch({},fh.align,{arrayOk:!0}),namelength:ch({},fh.namelength,{arrayOk:!0}),editType:"none"}}});var tn=B((eme,k6)=>{"use strict";var gX=jt(),xX=bc();k6.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:gX({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:xX.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 Oo=B((rme,L6)=>{"use strict";var bX=Rn(),vh={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)"]]},q6=vh.RdBu;function _X(e,r){if(r||(r=q6),!e)return r;function t(){try{e=vh[e]||JSON.parse(e)}catch(a){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),C6(e)?e:r}function C6(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||!bX(a[1]).isValid())return!1;r=+a[0]}return!0}function wX(e){return vh[e]!==void 0?!0:C6(e)}L6.exports={scales:vh,defaultScale:q6,get:_X,isValid:wX}});var zn=B(Bo=>{"use strict";Bo.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];Bo.defaultLine="#444";Bo.lightLine="#eee";Bo.background="#fff";Bo.borderLine="#BEC8D9";Bo.lightFraction=100*10/11});var xr=B((ame,S6)=>{"use strict";var an=Rn(),TX=zr(),MX=gn().isTypedArray,ea=S6.exports={},hh=zn();ea.defaults=hh.defaults;var AX=ea.defaultLine=hh.defaultLine;ea.lightLine=hh.lightLine;var Ry=ea.background=hh.background;ea.tinyRGB=function(e){var r=e.toRgb();return"rgb("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+")"};ea.rgb=function(e){return ea.tinyRGB(an(e))};ea.opacity=function(e){return e?an(e).getAlpha():0};ea.addOpacity=function(e,r){var t=an(e).toRgb();return"rgba("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+", "+r+")"};ea.combine=function(e,r){var t=an(e).toRgb();if(t.a===1)return an(e).toRgbString();var a=an(r||Ry).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 an(i).toRgbString()};ea.interpolate=function(e,r,t){var a=an(e).toRgb(),n=an(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 an(i).toRgbString()};ea.contrast=function(e,r,t){var a=an(e);a.getAlpha()!==1&&(a=an(ea.combine(e,Ry)));var n=a.isDark()?r?a.lighten(r):Ry:t?a.darken(t):AX;return n.toString()};ea.stroke=function(e,r){var t=an(r);e.style({stroke:ea.tinyRGB(t),"stroke-opacity":t.getAlpha()})};ea.fill=function(e,r){var t=an(r);e.style({fill:ea.tinyRGB(t),"fill-opacity":t.getAlpha()})};ea.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]=Ey(i[a]);else e[n]=Ey(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]=Ey(i[a][1]));else if(Array.isArray(i)){var l=i[0];if(!Array.isArray(l)&&l&&typeof l=="object")for(a=0;a<i.length;a++)ea.clean(i[a])}else i&&typeof i=="object"&&!MX(i)&&ea.clean(i)}};function Ey(e){if(TX(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 l=Math.round(a[0]*255)+", "+Math.round(a[1]*255)+", "+Math.round(a[2]*255);return n?"rgba("+l+", "+a[3]+")":"rgb("+l+")"}});var pu=B((nme,D6)=>{"use strict";D6.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var mu=B(P6=>{"use strict";P6.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 N6=B(nn=>{"use strict";var zy=zr(),E6=Rn(),R6=mt().extendFlat,kX=tn(),qX=Oo(),CX=xr(),LX=pu().DESELECTDIM,yu=lh(),z6=mu().counter,SX=hu().modHalf,Ni=gn().isArrayOrTypedArray,Rl=gn().isTypedArraySpec,zl=gn().decodeTypedArraySpec;nn.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(Ni(e)?e:Rl(e)?zl(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){Rl(e)&&(e=zl(e)),!zy(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}Rl(e)&&(e=zl(e)),e%1||!zy(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){Rl(e)&&(e=zl(e)),E6(e).isValid()?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){function a(n){return E6(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(qX.get(e,t))}},angle:{coerceFunction:function(e,r,t){Rl(e)&&(e=zl(e)),e==="auto"?r.set("auto"):zy(e)?r.set(SX(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,a){var n=a.regex||z6(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:!!z6(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 l=n[i];a.flags.indexOf(l)===-1||n.indexOf(l)<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(Rl(e)?zl(e):e)}},info_array:{coerceFunction:function(e,r,t,a){function n(_,T,x){var M,A={set:function(k){M=k}};return x===void 0&&(x=T.dflt),nn.valObjectMeta[T.valType].coerceFunction(_,A,x,T),M}if(Rl(e)&&(e=zl(e)),!Ni(e)){r.set(t);return}var i=a.dimensions===2||a.dimensions==="1-2"&&Array.isArray(e)&&Ni(e[0]),l=a.items,o=[],s=Array.isArray(l),u=s&&i&&Ni(l[0]),f=i&&s&&!u,c=s&&!f?l.length:e.length,h,d,p,y,m,b;if(t=Array.isArray(t)?t:[],i)for(h=0;h<c;h++)for(o[h]=[],p=Ni(e[h])?e[h]:[],f?m=l.length:s?m=l[h].length:m=p.length,d=0;d<m;d++)f?y=l[d]:s?y=l[h][d]:y=l,b=n(p[d],y,(t[h]||[])[d]),b!==void 0&&(o[h][d]=b);else for(h=0;h<c;h++)b=n(e[h],s?l[h]:l,t[h]),b!==void 0&&(o[h]=b);r.set(o)},validateFunction:function(e,r){if(!Ni(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(!Ni(e[i])||!r.freeLength&&e[i].length!==t[i].length)return!1;for(var l=0;l<e[i].length;l++)if(!dh(e[i][l],a?t[i][l]:t))return!1}else if(!dh(e[i],a?t[i]:t))return!1;return!0}}};nn.coerce=function(e,r,t,a,n){var i=yu(t,a).get(),l=yu(e,a),o=yu(r,a),s=l.get(),u=r._template;if(s===void 0&&u&&(s=yu(u,a).get(),u=0),n===void 0&&(n=i.dflt),i.arrayOk){if(Ni(s))return o.set(s),s;if(Rl(s))return s=zl(s),o.set(s),s}var f=nn.valObjectMeta[i.valType].coerceFunction;f(s,o,n,i);var c=o.get();return u&&c===n&&!dh(s,i)&&(s=yu(u,a).get(),f(s,o,n,i),c=o.get()),c};nn.coerce2=function(e,r,t,a,n){var i=yu(e,a),l=nn.coerce(e,r,t,a,n),o=i.get();return o!=null?l:!1};nn.coerceFont=function(e,r,t,a){a||(a={}),t=R6({},t),t=R6(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};nn.coercePattern=function(e,r,t,a){var n=e(r+".shape");if(n){e(r+".solidity"),e(r+".size");var i=e(r+".fillmode"),l=i==="overlay";if(!a){var o=e(r+".bgcolor",l?t:void 0);e(r+".fgcolor",l?CX.contrast(o):t)}e(r+".fgopacity",l?.5:1)}};nn.coerceHoverinfo=function(e,r,t){var a=r._module.attributes,n=a.hoverinfo?a:kX,i=n.hoverinfo,l;if(t._dataLength===1){var o=i.dflt==="all"?i.flags.slice():i.dflt.split("+");o.splice(o.indexOf("name"),1),l=o.join("+")}return nn.coerce(e,r,n,"hoverinfo",l)};nn.coerceSelectionMarkerOpacity=function(e,r){if(e.marker){var t=e.marker.opacity;if(t!==void 0){var a,n;!Ni(t)&&!e.selected&&!e.unselected&&(a=t,n=LX*t),r("selected.marker.opacity",a),r("unselected.marker.opacity",n)}}};function dh(e,r){var t=nn.valObjectMeta[r.valType];if(r.arrayOk&&Ni(e))return!0;if(t.validateFunction)return t.validateFunction(e,r);var a={},n=a,i={set:function(l){n=l}};return t.coerceFunction(e,i,a,r),n!==a}nn.validate=dh});var Yo=B((ome,O6)=>{"use strict";var F6={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:{}}},I6={};function H6(e,r){for(var t in e){var a=e[t];a.valType?r[t]=a.dflt:(r[t]||(r[t]={}),H6(a,r[t]))}}H6(F6,I6);O6.exports={configAttributes:F6,dfltConfig:I6}});var Fy=B((sme,B6)=>{"use strict";var Ny=kr(),DX=zr(),_c=[];B6.exports=function(e,r){if(_c.indexOf(e)!==-1)return;_c.push(e);var t=1e3;DX(r)?t=r:r==="long"&&(t=3e3);var a=Ny.select("body").selectAll(".plotly-notifier").data([0]);a.enter().append("div").classed("plotly-notifier",!0);var n=a.selectAll(".notifier-note").data(_c);function i(l){l.duration(700).style("opacity",0).each("end",function(o){var s=_c.indexOf(o);s!==-1&&_c.splice(s,1),Ny.select(this).remove()})}n.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(l){var o=Ny.select(this);o.append("button").classed("notifier-close",!0).html("×").on("click",function(){o.transition().call(i)});for(var s=o.append("p"),u=l.split(/<br\s*\/?>/g),f=0;f<u.length;f++)f&&s.append("br"),s.append("span").text(u[f]);r==="stick"?o.transition().duration(350).style("opacity",1):o.transition().duration(700).style("opacity",1).transition().delay(t).call(i)})}});var Go=B((ume,Y6)=>{"use strict";var gu=Yo().dfltConfig,Iy=Fy(),Hy=Y6.exports={};Hy.log=function(){var e;if(gu.logging>1){var r=["LOG:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.trace.apply(console,r)}if(gu.notifyOnLogging>1){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);Iy(t.join("<br>"),"long")}};Hy.warn=function(){var e;if(gu.logging>0){var r=["WARN:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.trace.apply(console,r)}if(gu.notifyOnLogging>0){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);Iy(t.join("<br>"),"stick")}};Hy.error=function(){var e;if(gu.logging>0){var r=["ERROR:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.error.apply(console,r)}if(gu.notifyOnLogging>0){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);Iy(t.join("<br>"),"stick")}}});var ph=B((fme,G6)=>{"use strict";G6.exports=function(){}});var Oy=B((cme,U6)=>{"use strict";U6.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 W6=B((vme,V6)=>{V6.exports=PX;function PX(){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 Z6=B((hme,X6)=>{X6.exports=EX;function EX(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 $6=B((dme,J6)=>{J6.exports=RX;function RX(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 By=B((pme,K6)=>{K6.exports=zX;function zX(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 j6=B((mme,Q6)=>{Q6.exports=NX;function NX(e,r){if(e===r){var t=r[1],a=r[2],n=r[3],i=r[6],l=r[7],o=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]=l,e[14]=o}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 r7=B((yme,e7)=>{e7.exports=FX;function FX(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],l=r[4],o=r[5],s=r[6],u=r[7],f=r[8],c=r[9],h=r[10],d=r[11],p=r[12],y=r[13],m=r[14],b=r[15],_=t*o-a*l,T=t*s-n*l,x=t*u-i*l,M=a*s-n*o,A=a*u-i*o,k=n*u-i*s,L=f*y-c*p,D=f*m-h*p,P=f*b-d*p,R=c*m-h*y,z=c*b-d*y,H=h*b-d*m,O=_*H-T*z+x*R+M*P-A*D+k*L;return O?(O=1/O,e[0]=(o*H-s*z+u*R)*O,e[1]=(n*z-a*H-i*R)*O,e[2]=(y*k-m*A+b*M)*O,e[3]=(h*A-c*k-d*M)*O,e[4]=(s*P-l*H-u*D)*O,e[5]=(t*H-n*P+i*D)*O,e[6]=(m*x-p*k-b*T)*O,e[7]=(f*k-h*x+d*T)*O,e[8]=(l*z-o*P+u*L)*O,e[9]=(a*P-t*z-i*L)*O,e[10]=(p*A-y*x+b*_)*O,e[11]=(c*x-f*A-d*_)*O,e[12]=(o*D-l*R-s*L)*O,e[13]=(t*R-a*D+n*L)*O,e[14]=(y*T-p*M-m*_)*O,e[15]=(f*M-c*T+h*_)*O,e):null}});var a7=B((gme,t7)=>{t7.exports=IX;function IX(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],l=r[4],o=r[5],s=r[6],u=r[7],f=r[8],c=r[9],h=r[10],d=r[11],p=r[12],y=r[13],m=r[14],b=r[15];return e[0]=o*(h*b-d*m)-c*(s*b-u*m)+y*(s*d-u*h),e[1]=-(a*(h*b-d*m)-c*(n*b-i*m)+y*(n*d-i*h)),e[2]=a*(s*b-u*m)-o*(n*b-i*m)+y*(n*u-i*s),e[3]=-(a*(s*d-u*h)-o*(n*d-i*h)+c*(n*u-i*s)),e[4]=-(l*(h*b-d*m)-f*(s*b-u*m)+p*(s*d-u*h)),e[5]=t*(h*b-d*m)-f*(n*b-i*m)+p*(n*d-i*h),e[6]=-(t*(s*b-u*m)-l*(n*b-i*m)+p*(n*u-i*s)),e[7]=t*(s*d-u*h)-l*(n*d-i*h)+f*(n*u-i*s),e[8]=l*(c*b-d*y)-f*(o*b-u*y)+p*(o*d-u*c),e[9]=-(t*(c*b-d*y)-f*(a*b-i*y)+p*(a*d-i*c)),e[10]=t*(o*b-u*y)-l*(a*b-i*y)+p*(a*u-i*o),e[11]=-(t*(o*d-u*c)-l*(a*d-i*c)+f*(a*u-i*o)),e[12]=-(l*(c*m-h*y)-f*(o*m-s*y)+p*(o*h-s*c)),e[13]=t*(c*m-h*y)-f*(a*m-n*y)+p*(a*h-n*c),e[14]=-(t*(o*m-s*y)-l*(a*m-n*y)+p*(a*s-n*o)),e[15]=t*(o*h-s*c)-l*(a*h-n*c)+f*(a*s-n*o),e}});var i7=B((xme,n7)=>{n7.exports=HX;function HX(e){var r=e[0],t=e[1],a=e[2],n=e[3],i=e[4],l=e[5],o=e[6],s=e[7],u=e[8],f=e[9],c=e[10],h=e[11],d=e[12],p=e[13],y=e[14],m=e[15],b=r*l-t*i,_=r*o-a*i,T=r*s-n*i,x=t*o-a*l,M=t*s-n*l,A=a*s-n*o,k=u*p-f*d,L=u*y-c*d,D=u*m-h*d,P=f*y-c*p,R=f*m-h*p,z=c*m-h*y;return b*z-_*R+T*P+x*D-M*L+A*k}});var o7=B((bme,l7)=>{l7.exports=OX;function OX(e,r,t){var a=r[0],n=r[1],i=r[2],l=r[3],o=r[4],s=r[5],u=r[6],f=r[7],c=r[8],h=r[9],d=r[10],p=r[11],y=r[12],m=r[13],b=r[14],_=r[15],T=t[0],x=t[1],M=t[2],A=t[3];return e[0]=T*a+x*o+M*c+A*y,e[1]=T*n+x*s+M*h+A*m,e[2]=T*i+x*u+M*d+A*b,e[3]=T*l+x*f+M*p+A*_,T=t[4],x=t[5],M=t[6],A=t[7],e[4]=T*a+x*o+M*c+A*y,e[5]=T*n+x*s+M*h+A*m,e[6]=T*i+x*u+M*d+A*b,e[7]=T*l+x*f+M*p+A*_,T=t[8],x=t[9],M=t[10],A=t[11],e[8]=T*a+x*o+M*c+A*y,e[9]=T*n+x*s+M*h+A*m,e[10]=T*i+x*u+M*d+A*b,e[11]=T*l+x*f+M*p+A*_,T=t[12],x=t[13],M=t[14],A=t[15],e[12]=T*a+x*o+M*c+A*y,e[13]=T*n+x*s+M*h+A*m,e[14]=T*i+x*u+M*d+A*b,e[15]=T*l+x*f+M*p+A*_,e}});var u7=B((_me,s7)=>{s7.exports=BX;function BX(e,r,t){var a=t[0],n=t[1],i=t[2],l,o,s,u,f,c,h,d,p,y,m,b;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]):(l=r[0],o=r[1],s=r[2],u=r[3],f=r[4],c=r[5],h=r[6],d=r[7],p=r[8],y=r[9],m=r[10],b=r[11],e[0]=l,e[1]=o,e[2]=s,e[3]=u,e[4]=f,e[5]=c,e[6]=h,e[7]=d,e[8]=p,e[9]=y,e[10]=m,e[11]=b,e[12]=l*a+f*n+p*i+r[12],e[13]=o*a+c*n+y*i+r[13],e[14]=s*a+h*n+m*i+r[14],e[15]=u*a+d*n+b*i+r[15]),e}});var c7=B((wme,f7)=>{f7.exports=YX;function YX(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 h7=B((Tme,v7)=>{v7.exports=GX;function GX(e,r,t,a){var n=a[0],i=a[1],l=a[2],o=Math.sqrt(n*n+i*i+l*l),s,u,f,c,h,d,p,y,m,b,_,T,x,M,A,k,L,D,P,R,z,H,O,U;return Math.abs(o)<1e-6?null:(o=1/o,n*=o,i*=o,l*=o,s=Math.sin(t),u=Math.cos(t),f=1-u,c=r[0],h=r[1],d=r[2],p=r[3],y=r[4],m=r[5],b=r[6],_=r[7],T=r[8],x=r[9],M=r[10],A=r[11],k=n*n*f+u,L=i*n*f+l*s,D=l*n*f-i*s,P=n*i*f-l*s,R=i*i*f+u,z=l*i*f+n*s,H=n*l*f+i*s,O=i*l*f-n*s,U=l*l*f+u,e[0]=c*k+y*L+T*D,e[1]=h*k+m*L+x*D,e[2]=d*k+b*L+M*D,e[3]=p*k+_*L+A*D,e[4]=c*P+y*R+T*z,e[5]=h*P+m*R+x*z,e[6]=d*P+b*R+M*z,e[7]=p*P+_*R+A*z,e[8]=c*H+y*O+T*U,e[9]=h*H+m*O+x*U,e[10]=d*H+b*O+M*U,e[11]=p*H+_*O+A*U,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var p7=B((Mme,d7)=>{d7.exports=UX;function UX(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[4],l=r[5],o=r[6],s=r[7],u=r[8],f=r[9],c=r[10],h=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]=l*n+f*a,e[6]=o*n+c*a,e[7]=s*n+h*a,e[8]=u*n-i*a,e[9]=f*n-l*a,e[10]=c*n-o*a,e[11]=h*n-s*a,e}});var y7=B((Ame,m7)=>{m7.exports=VX;function VX(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],l=r[1],o=r[2],s=r[3],u=r[8],f=r[9],c=r[10],h=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]=l*n-f*a,e[2]=o*n-c*a,e[3]=s*n-h*a,e[8]=i*a+u*n,e[9]=l*a+f*n,e[10]=o*a+c*n,e[11]=s*a+h*n,e}});var x7=B((kme,g7)=>{g7.exports=WX;function WX(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],l=r[1],o=r[2],s=r[3],u=r[4],f=r[5],c=r[6],h=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]=l*n+f*a,e[2]=o*n+c*a,e[3]=s*n+h*a,e[4]=u*n-i*a,e[5]=f*n-l*a,e[6]=c*n-o*a,e[7]=h*n-s*a,e}});var _7=B((qme,b7)=>{b7.exports=XX;function XX(e,r,t){var a,n,i,l=t[0],o=t[1],s=t[2],u=Math.sqrt(l*l+o*o+s*s);return Math.abs(u)<1e-6?null:(u=1/u,l*=u,o*=u,s*=u,a=Math.sin(r),n=Math.cos(r),i=1-n,e[0]=l*l*i+n,e[1]=o*l*i+s*a,e[2]=s*l*i-o*a,e[3]=0,e[4]=l*o*i-s*a,e[5]=o*o*i+n,e[6]=s*o*i+l*a,e[7]=0,e[8]=l*s*i+o*a,e[9]=o*s*i-l*a,e[10]=s*s*i+n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var T7=B((Cme,w7)=>{w7.exports=ZX;function ZX(e,r,t){var a=r[0],n=r[1],i=r[2],l=r[3],o=a+a,s=n+n,u=i+i,f=a*o,c=a*s,h=a*u,d=n*s,p=n*u,y=i*u,m=l*o,b=l*s,_=l*u;return e[0]=1-(d+y),e[1]=c+_,e[2]=h-b,e[3]=0,e[4]=c-_,e[5]=1-(f+y),e[6]=p+m,e[7]=0,e[8]=h+b,e[9]=p-m,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 A7=B((Lme,M7)=>{M7.exports=JX;function JX(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 q7=B((Sme,k7)=>{k7.exports=$X;function $X(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 L7=B((Dme,C7)=>{C7.exports=KX;function KX(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 D7=B((Pme,S7)=>{S7.exports=QX;function QX(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 E7=B((Eme,P7)=>{P7.exports=jX;function jX(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 Yy=B((Rme,R7)=>{R7.exports=eZ;function eZ(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],l=t+t,o=a+a,s=n+n,u=t*l,f=a*l,c=a*o,h=n*l,d=n*o,p=n*s,y=i*l,m=i*o,b=i*s;return e[0]=1-c-p,e[1]=f+b,e[2]=h-m,e[3]=0,e[4]=f-b,e[5]=1-u-p,e[6]=d+y,e[7]=0,e[8]=h+m,e[9]=d-y,e[10]=1-u-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var N7=B((zme,z7)=>{z7.exports=rZ;function rZ(e,r,t,a,n,i,l){var o=1/(t-r),s=1/(n-a),u=1/(i-l);return e[0]=i*2*o,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)*o,e[9]=(n+a)*s,e[10]=(l+i)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=l*i*2*u,e[15]=0,e}});var I7=B((Nme,F7)=>{F7.exports=tZ;function tZ(e,r,t,a,n){var i=1/Math.tan(r/2),l=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)*l,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*n*a*l,e[15]=0,e}});var O7=B((Fme,H7)=>{H7.exports=aZ;function aZ(e,r,t,a){var n=Math.tan(r.upDegrees*Math.PI/180),i=Math.tan(r.downDegrees*Math.PI/180),l=Math.tan(r.leftDegrees*Math.PI/180),o=Math.tan(r.rightDegrees*Math.PI/180),s=2/(l+o),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]=-((l-o)*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 Y7=B((Ime,B7)=>{B7.exports=nZ;function nZ(e,r,t,a,n,i,l){var o=1/(r-t),s=1/(a-n),u=1/(i-l);return e[0]=-2*o,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)*o,e[13]=(n+a)*s,e[14]=(l+i)*u,e[15]=1,e}});var U7=B((Hme,G7)=>{var iZ=By();G7.exports=lZ;function lZ(e,r,t,a){var n,i,l,o,s,u,f,c,h,d,p=r[0],y=r[1],m=r[2],b=a[0],_=a[1],T=a[2],x=t[0],M=t[1],A=t[2];return Math.abs(p-x)<1e-6&&Math.abs(y-M)<1e-6&&Math.abs(m-A)<1e-6?iZ(e):(f=p-x,c=y-M,h=m-A,d=1/Math.sqrt(f*f+c*c+h*h),f*=d,c*=d,h*=d,n=_*h-T*c,i=T*f-b*h,l=b*c-_*f,d=Math.sqrt(n*n+i*i+l*l),d?(d=1/d,n*=d,i*=d,l*=d):(n=0,i=0,l=0),o=c*l-h*i,s=h*n-f*l,u=f*i-c*n,d=Math.sqrt(o*o+s*s+u*u),d?(d=1/d,o*=d,s*=d,u*=d):(o=0,s=0,u=0),e[0]=n,e[1]=o,e[2]=f,e[3]=0,e[4]=i,e[5]=s,e[6]=c,e[7]=0,e[8]=l,e[9]=u,e[10]=h,e[11]=0,e[12]=-(n*p+i*y+l*m),e[13]=-(o*p+s*y+u*m),e[14]=-(f*p+c*y+h*m),e[15]=1,e)}});var W7=B((Ome,V7)=>{V7.exports=oZ;function oZ(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 Gy=B((Bme,X7)=>{X7.exports={create:W6(),clone:Z6(),copy:$6(),identity:By(),transpose:j6(),invert:r7(),adjoint:a7(),determinant:i7(),multiply:o7(),translate:u7(),scale:c7(),rotate:h7(),rotateX:p7(),rotateY:y7(),rotateZ:x7(),fromRotation:_7(),fromRotationTranslation:T7(),fromScaling:A7(),fromTranslation:q7(),fromXRotation:L7(),fromYRotation:D7(),fromZRotation:E7(),fromQuat:Yy(),frustum:N7(),perspective:I7(),perspectiveFromFieldOfView:O7(),ortho:Y7(),lookAt:U7(),str:W7()}});var mh=B(It=>{"use strict";var sZ=Gy();It.init2dArray=function(e,r){for(var t=new Array(e),a=0;a<e;a++)t[a]=new Array(r);return t};It.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};It.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]=It.dot(e[n],r);else if(r[0].length){var i=It.transposeRagged(r);for(a=new Array(i.length),n=0;n<i.length;n++)a[n]=It.dot(e,i[n])}else for(a=0,n=0;n<t;n++)a+=e[n]*r[n];return a};It.translationMatrix=function(e,r){return[[1,0,e],[0,1,r],[0,0,1]]};It.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]]};It.rotationXYMatrix=function(e,r,t){return It.dot(It.dot(It.translationMatrix(r,t),It.rotationMatrix(e)),It.translationMatrix(-r,-t))};It.apply3DTransform=function(e){return function(){var r=arguments,t=arguments.length===1?r[0]:[r[0],r[1],r[2]||0];return It.dot(e,[t[0],t[1],t[2],1]).slice(0,3)}};It.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 It.dot(e,[t[0],t[1],1]).slice(0,2)}};It.apply2DTransform2=function(e){var r=It.apply2DTransform(e);return function(t){return r(t.slice(0,2)).concat(r(t.slice(2,4)))}};It.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]};It.inverseTransformMatrix=function(e){var r=[];return sZ.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 wc=B((Gme,j7)=>{"use strict";var uZ=kr(),Z7=Go(),fZ=mh(),cZ=Gy();function vZ(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 hZ(e){var r=uZ.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function J7(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function dZ(e,r){$7("global",e,r)}function $7(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):Z7.warn("addStyleRule failed"):Z7.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function pZ(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&J7(t)}function mZ(e,r,t,a,n,i){var l=a.split(":"),o=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[l[0]]=l[1])}),u.addEventListener("mouseleave",function(){var f=this.querySelector(t);f&&(r&&this.matches(r)?f.style[l[0]]=l[1]:f.style[o[0]]=o[1])}),u.setAttribute(s,!0))})}function yZ(e){var r=Q7(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=K7(a);if(n){var i=fZ.convertCssMatrix(n);t=cZ.multiply(t,t,i)}}),t}function K7(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 Q7(e){for(var r=[];gZ(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function gZ(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function xZ(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}j7.exports={getGraphDiv:vZ,isPlotDiv:hZ,removeElement:J7,addStyleRule:dZ,addRelatedStyleRule:$7,deleteRelatedStyleRule:pZ,setStyleOnHover:mZ,getFullTransformMatrix:yZ,getElementTransformMatrix:K7,getElementAndAncestors:Q7,equalDomRects:xZ}});var Tc=B((Ume,ew)=>{"use strict";ew.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 ui=B((Vme,ow)=>{"use strict";var tw=mt().extendFlat,bZ=El(),aw={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},nw={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},_Z=aw.flags.slice().concat(["fullReplot"]),wZ=nw.flags.slice().concat("layoutReplot");ow.exports={traces:aw,layout:nw,traceFlags:function(){return rw(_Z)},layoutFlags:function(){return rw(wZ)},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:iw};function rw(e){for(var r={},t=0;t<e.length;t++)r[e[t]]=!1;return r}function iw(e,r,t){var a=tw({},e);for(var n in a){var i=a[n];bZ(i)&&(a[n]=lw(i,r,t,n))}return t==="from-root"&&(a.editType=r),a}function lw(e,r,t,a){if(e.valType){var n=tw({},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]=lw(e.items[i],r,"from-root")}return n}else return iw(e,r,a.charAt(0)==="_"?"nested":"from-root")}});var fi=B(Uy=>{"use strict";Uy.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};Uy.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 Vy=B((Xme,sw)=>{"use strict";sw.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 _a=B(yh=>{"use strict";var uw=Vy(),Zme=uw.FORMAT_LINK,Jme=uw.DATE_FORMAT_LINK;function Wy(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}yh.hovertemplateAttrs=function(e,r){e=e||{},r=r||{};var t=Wy(r),a={valType:"string",dflt:"",editType:e.editType||"none"};return e.arrayOk!==!1&&(a.arrayOk=!0),a};yh.texttemplateAttrs=function(e,r){e=e||{},r=r||{};var t=Wy(r),a={valType:"string",dflt:"",editType:e.editType||"calc"};return e.arrayOk!==!1&&(a.arrayOk=!0),a};yh.shapeTexttemplateAttrs=function(e,r){e=e||{},r=r||{};var t=e.newshape?"new ":"",a=Wy(r),n={valType:"string",dflt:"",editType:e.editType||"arraydraw"};return n}});var bh=B((Kme,pw)=>{"use strict";function Nl(e,r){return r?r.d2l(e):e}function fw(e,r){return r?r.l2d(e):e}function TZ(e){return e.x0}function MZ(e){return e.x1}function AZ(e){return e.y0}function kZ(e){return e.y1}function cw(e){return e.x0shift||0}function vw(e){return e.x1shift||0}function hw(e){return e.y0shift||0}function dw(e){return e.y1shift||0}function gh(e,r){return Nl(e.x1,r)+vw(e)-Nl(e.x0,r)-cw(e)}function xh(e,r,t){return Nl(e.y1,t)+dw(e)-Nl(e.y0,t)-hw(e)}function qZ(e,r){return Math.abs(gh(e,r))}function CZ(e,r,t){return Math.abs(xh(e,r,t))}function LZ(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(gh(e,r),2)+Math.pow(xh(e,r,t),2))}function SZ(e,r){return fw((Nl(e.x1,r)+vw(e)+Nl(e.x0,r)+cw(e))/2,r)}function DZ(e,r,t){return fw((Nl(e.y1,t)+dw(e)+Nl(e.y0,t)+hw(e))/2,t)}function PZ(e,r,t){return e.type!=="line"?void 0:xh(e,r,t)/gh(e,r)}pw.exports={x0:TZ,x1:MZ,y0:AZ,y1:kZ,slope:PZ,dx:gh,dy:xh,width:qZ,height:CZ,length:LZ,xcenter:SZ,ycenter:DZ}});var gw=B((Qme,yw)=>{"use strict";var EZ=ui().overrideAll,Uo=tn(),mw=jt(),RZ=fi().dash,Fl=mt().extendFlat,zZ=_a().shapeTexttemplateAttrs,NZ=bh();yw.exports=EZ({newshape:{visible:Fl({},Uo.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:Fl({},Uo.legend,{}),legendgroup:Fl({},Uo.legendgroup,{}),legendgrouptitle:{text:Fl({},Uo.legendgrouptitle.text,{}),font:mw({})},legendrank:Fl({},Uo.legendrank,{}),legendwidth:Fl({},Uo.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Fl({},RZ,{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:Fl({},Uo.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:zZ({newshape:!0},{keys:Object.keys(NZ)}),font:mw({}),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 bw=B((jme,xw)=>{"use strict";var FZ=fi().dash,IZ=mt().extendFlat;xw.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:IZ({},FZ,{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 _h=B((eye,_w)=>{"use strict";_w.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 xu=B((rye,Aw)=>{"use strict";var Xy=jt(),HZ=Tc(),wh=zn(),ww=gw(),Tw=bw(),OZ=_h(),Mw=mt().extendFlat,Th=Xy({editType:"calc"});Th.family.dflt='"Open Sans", verdana, arial, sans-serif';Th.size.dflt=12;Th.color.dflt=wh.defaultLine;Aw.exports={font:Th,title:{text:{valType:"string",editType:"layoutstyle"},font:Xy({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:Xy({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:Mw(OZ({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:wh.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:wh.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:wh.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:ww.newshape,activeshape:ww.activeshape,newselection:Tw.newselection,activeselection:Tw.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:Mw({},HZ.transition,{editType:"none"})}});var kw=nt(()=>{});var BZ={};var qw=nt(()=>{kw()});var yr=B(Fr=>{"use strict";var bu=Go(),Cw=ph(),Lw=Oy(),YZ=El(),GZ=wc().addStyleRule,Sw=mt(),UZ=tn(),VZ=xu(),WZ=Sw.extendFlat,Zy=Sw.extendDeepAll;Fr.modules={};Fr.allCategories={};Fr.allTypes=[];Fr.subplotsRegistry={};Fr.componentsRegistry={};Fr.layoutArrayContainers=[];Fr.layoutArrayRegexes=[];Fr.traceLayoutAttributes={};Fr.localeRegistry={};Fr.apiMethodRegistry={};Fr.collectableSubplotTypes=null;Fr.register=function(r){if(Fr.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":XZ(a);break;case"transform":$Z(a);break;case"component":JZ(a);break;case"locale":KZ(a);break;case"apiMethod":var n=a.name;Fr.apiMethodRegistry[n]=a.fn;break;default:throw new Error("Invalid module was attempted to be registered!")}}};Fr.getModule=function(e){var r=Fr.modules[Rw(e)];return r?r._module:!1};Fr.traceIs=function(e,r){if(e=Rw(e),e==="various")return!1;var t=Fr.modules[e];return t||(e&&bu.log("Unrecognized trace type "+e+"."),t=Fr.modules[UZ.type.dflt]),!!t.categories[r]};Fr.getComponentMethod=function(e,r){var t=Fr.componentsRegistry[e];return t&&t[r]||Cw};Fr.call=function(){var e=arguments[0],r=[].slice.call(arguments,1);return Fr.apiMethodRegistry[e].apply(null,r)};function XZ(e){var r=e.name,t=e.categories,a=e.meta;if(Fr.modules[r]){bu.log("Type "+r+" already registered");return}Fr.subplotsRegistry[e.basePlotModule.name]||ZZ(e.basePlotModule);for(var n={},i=0;i<t.length;i++)n[t[i]]=!0,Fr.allCategories[t[i]]=!0;Fr.modules[r]={_module:e,categories:n},a&&Object.keys(a).length&&(Fr.modules[r].meta=a),Fr.allTypes.push(r);for(var l in Fr.componentsRegistry)Pw(l,r);e.layoutAttributes&&WZ(Fr.traceLayoutAttributes,e.layoutAttributes);var o=e.basePlotModule,s=o.name;if(s==="mapbox"){var u=o.constants.styleRules;for(var f in u)GZ(".js-plotly-plot .plotly .mapboxgl-"+f,u[f])}s==="map"&&(qw(),My(BZ)),(s==="geo"||s==="mapbox"||s==="map")&&window.PlotlyGeoAssets===void 0&&(window.PlotlyGeoAssets={topojson:{}})}function ZZ(e){var r=e.name;if(Fr.subplotsRegistry[r]){bu.log("Plot type "+r+" already registered.");return}Dw(e),Fr.subplotsRegistry[r]=e;for(var t in Fr.componentsRegistry)Ew(t,e.name)}function JZ(e){if(typeof e.name!="string")throw new Error("Component module *name* must be a string.");var r=e.name;Fr.componentsRegistry[r]=e,e.layoutAttributes&&(e.layoutAttributes._isLinkedToArray&&Lw(Fr.layoutArrayContainers,r),Dw(e));for(var t in Fr.modules)Pw(r,t);for(var a in Fr.subplotsRegistry)Ew(r,a);e.schema&&e.schema.layout&&Zy(VZ,e.schema.layout)}function $Z(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&&bu.log([r+" has both a *transform* and *calcTransform* methods.","Please note that all *transform* methods are executed","before all *calcTransform* methods."].join(" ")),YZ(e.attributes)||bu.log(r+" registered without an *attributes* object."),typeof e.supplyDefaults!="function"&&bu.log(r+" registered without a *supplyDefaults* method.")}function KZ(e){var r=e.name,t=r.split("-")[0],a=e.dictionary,n=e.format,i=a&&Object.keys(a).length,l=n&&Object.keys(n).length,o=Fr.localeRegistry,s=o[r];if(s||(o[r]=s={}),t!==r){var u=o[t];u||(o[t]=u={}),i&&u.dictionary===s.dictionary&&(u.dictionary=a),l&&u.format===s.format&&(u.format=n)}i&&(s.dictionary=a),l&&(s.format=n)}function Dw(e){if(e.layoutAttributes){var r=e.layoutAttributes._arrayAttrRegexps;if(r)for(var t=0;t<r.length;t++)Lw(Fr.layoutArrayRegexes,r[t])}}function Pw(e,r){var t=Fr.componentsRegistry[e].schema;if(!(!t||!t.traces)){var a=t.traces[r];a&&Zy(Fr.modules[r]._module.attributes,a)}}function Ew(e,r){var t=Fr.componentsRegistry[e].schema;if(!(!t||!t.subplots)){var a=Fr.subplotsRegistry[r],n=a.layoutAttributes,i=a.attr==="subplot"?a.name:a.attr;Array.isArray(i)&&(i=i[0]);var l=t.subplots[i];n&&l&&Zy(n,l)}}function Rw(e){return typeof e=="object"&&(e=e.type),e}});var Gw=B(Ht=>{"use strict";var QZ=cu().timeFormat,Bw=zr(),Jy=Go(),Hl=hu().mod,Tu=wt(),Nn=Tu.BADNUM,ln=Tu.ONEDAY,Mc=Tu.ONEHOUR,Il=Tu.ONEMIN,wu=Tu.ONESEC,Ac=Tu.EPOCHJD,il=yr(),zw=cu().utcFormat,jZ=/^\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,eJ=/^\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,Nw=new Date().getFullYear()-70;function ll(e){return e&&il.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}Ht.dateTick0=function(e,r){var t=rJ(e,!!r);if(r<2)return t;var a=Ht.dateTime2ms(t,e);return a+=ln*(r-1),Ht.ms2DateTime(a,0,e)};function rJ(e,r){return ll(e)?r?il.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:il.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}Ht.dfltRange=function(e){return ll(e)?il.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};Ht.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var Ah,kh;Ht.dateTime2ms=function(e,r){if(Ht.isJSDate(e)){var t=e.getTimezoneOffset()*Il,a=(e.getUTCMinutes()-e.getMinutes())*Il+(e.getUTCSeconds()-e.getSeconds())*wu+(e.getUTCMilliseconds()-e.getMilliseconds());if(a){var n=3*Il;t=t-n/2+Hl(a-t+n/2,n)}return e=Number(e)-t,e>=Ah&&e<=kh?e:Nn}if(typeof e!="string"&&typeof e!="number")return Nn;e=String(e);var i=ll(r),l=e.charAt(0);i&&(l==="G"||l==="g")&&(e=e.substr(1),r="");var o=i&&r.substr(0,7)==="chinese",s=e.match(o?eJ:jZ);if(!s)return Nn;var u=s[1],f=s[3]||"1",c=Number(s[5]||1),h=Number(s[7]||0),d=Number(s[9]||0),p=Number(s[11]||0);if(i){if(u.length===2)return Nn;u=Number(u);var y;try{var m=il.getComponentMethod("calendars","getCal")(r);if(o){var b=f.charAt(f.length-1)==="i";f=parseInt(f,10),y=m.newDate(u,m.toMonthIndex(u,f,b),c)}else y=m.newDate(u,Number(f),c)}catch(T){return Nn}return y?(y.toJD()-Ac)*ln+h*Mc+d*Il+p*wu:Nn}u.length===2?u=(Number(u)+2e3-Nw)%100+Nw:u=Number(u),f-=1;var _=new Date(Date.UTC(2e3,f,c,h,d));return _.setUTCFullYear(u),_.getUTCMonth()!==f||_.getUTCDate()!==c?Nn:_.getTime()+p*wu};Ah=Ht.MIN_MS=Ht.dateTime2ms("-9999");kh=Ht.MAX_MS=Ht.dateTime2ms("9999-12-31 23:59:59.9999");Ht.isDateTime=function(e,r){return Ht.dateTime2ms(e,r)!==Nn};function _u(e,r){return String(e+Math.pow(10,r)).substr(1)}var Mh=90*ln,Fw=3*Mc,Iw=5*Il;Ht.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=Ah&&e<=kh))return Nn;r||(r=0);var a=Math.floor(Hl(e+.05,1)*10),n=Math.round(e-a/10),i,l,o,s,u,f;if(ll(t)){var c=Math.floor(n/ln)+Ac,h=Math.floor(Hl(e,ln));try{i=il.getComponentMethod("calendars","getCal")(t).fromJD(c).formatDate("yyyy-mm-dd")}catch(d){i=zw("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;l=r<Mh?Math.floor(h/Mc):0,o=r<Mh?Math.floor(h%Mc/Il):0,s=r<Fw?Math.floor(h%Il/wu):0,u=r<Iw?h%wu*10+a:0}else f=new Date(n),i=zw("%Y-%m-%d")(f),l=r<Mh?f.getUTCHours():0,o=r<Mh?f.getUTCMinutes():0,s=r<Fw?f.getUTCSeconds():0,u=r<Iw?f.getUTCMilliseconds()*10+a:0;return Yw(i,l,o,s,u)};Ht.ms2DateTimeLocal=function(e){if(!(e>=Ah+ln&&e<=kh-ln))return Nn;var r=Math.floor(Hl(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=QZ("%Y-%m-%d")(t),n=t.getHours(),i=t.getMinutes(),l=t.getSeconds(),o=t.getUTCMilliseconds()*10+r;return Yw(a,n,i,l,o)};function Yw(e,r,t,a,n){if((r||t||a||n)&&(e+=" "+_u(r,2)+":"+_u(t,2),(a||n)&&(e+=":"+_u(a,2),n))){for(var i=4;n%10===0;)i-=1,n/=10;e+="."+_u(n,i)}return e}Ht.cleanDate=function(e,r,t){if(e===Nn)return r;if(Ht.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(ll(t))return Jy.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=Ht.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!Ht.isDateTime(e,t))return Jy.error("unrecognized date",e),r;return e};var tJ=/%\d?f/g,aJ=/%h/g,nJ={1:"1",2:"1",3:"2",4:"2"};function Hw(e,r,t,a){e=e.replace(tJ,function(i){var l=Math.min(+i.charAt(1)||6,6),o=(r/1e3%1+2).toFixed(l).substr(2).replace(/0+$/,"")||"0";return o});var n=new Date(Math.floor(r+.05));if(e=e.replace(aJ,function(){return nJ[t("%q")(n)]}),ll(a))try{e=il.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var iJ=[59,59.9,59.99,59.999,59.9999];function lJ(e,r){var t=Hl(e+.05,ln),a=_u(Math.floor(t/Mc),2)+":"+_u(Hl(Math.floor(t/Il),60),2);if(r!=="M"){Bw(r)||(r=0);var n=Math.min(Hl(e/wu,60),iJ[r]),i=(100+n).toFixed(r).substr(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+i}return a}Ht.formatDate=function(e,r,t,a,n,i){if(n=ll(n)&&n,!r)if(t==="y")r=i.year;else if(t==="m")r=i.month;else if(t==="d")r=i.dayMonth+`
|