blob: d50d346c134c3686001d68b7fea7db195f180161 [file] [log] [blame]
// Code generated by esbuild. DO NOT EDIT.
"use strict";(()=>{function bt(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function xe(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Fe(t){let e,n,r;t.length!==2?(e=bt,n=(f,u)=>bt(t(f),u),r=(f,u)=>t(f)-u):(e=t===bt||t===xe?t:Fy,n=t,r=t);function o(f,u,c=0,s=f.length){if(c<s){if(e(u,u)!==0)return s;do{let d=c+s>>>1;n(f[d],u)<0?c=d+1:s=d}while(c<s)}return c}function i(f,u,c=0,s=f.length){if(c<s){if(e(u,u)!==0)return s;do{let d=c+s>>>1;n(f[d],u)<=0?c=d+1:s=d}while(c<s)}return c}function a(f,u,c=0,s=f.length){let d=o(f,u,c,s-1);return d>c&&r(f[d-1],u)>-r(f[d],u)?d-1:d}return{left:o,center:a,right:i}}function Fy(){return 0}function Bo(t){return t===null?NaN:+t}function*$p(t,e){if(e===void 0)for(let n of t)n!=null&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of t)(r=e(r,++n,t))!=null&&(r=+r)>=r&&(yield r)}}var Ep=Fe(bt),Ip=Ep.right,qy=Ep.left,Yy=Fe(Bo).center,un=Ip;function Jn(t,e){let n=0;if(e===void 0)for(let r of t)r!=null&&(r=+r)>=r&&++n;else{let r=-1;for(let o of t)(o=e(o,++r,t))!=null&&(o=+o)>=o&&++n}return n}function zy(t){return t.length|0}function By(t){return!(t>0)}function Uy(t){return typeof t!="object"||"length"in t?t:Array.from(t)}function Xy(t){return e=>t(...e)}function La(...t){let e=typeof t[t.length-1]=="function"&&Xy(t.pop());t=t.map(Uy);let n=t.map(zy),r=t.length-1,o=new Array(r+1).fill(0),i=[];if(r<0||n.some(By))return i;for(;;){i.push(o.map((f,u)=>t[u][f]));let a=r;for(;++o[a]===n[a];){if(a===0)return e?i.map(e):i;o[a--]=0}}}function Pa(t,e){var n=0,r=0;return Float64Array.from(t,e===void 0?o=>n+=+o||0:o=>n+=+e(o,r++,t)||0)}function Nr(t,e){let n=0,r,o=0,i=0;if(e===void 0)for(let a of t)a!=null&&(a=+a)>=a&&(r=a-o,o+=r/++n,i+=r*(a-o));else{let a=-1;for(let f of t)(f=e(f,++a,t))!=null&&(f=+f)>=f&&(r=f-o,o+=r/++n,i+=r*(f-o))}if(n>1)return i/(n-1)}function Rr(t,e){let n=Nr(t,e);return n&&Math.sqrt(n)}function Ct(t,e){let n,r;if(e===void 0)for(let o of t)o!=null&&(n===void 0?o>=o&&(n=r=o):(n>o&&(n=o),r<o&&(r=o)));else{let o=-1;for(let i of t)(i=e(i,++o,t))!=null&&(n===void 0?i>=i&&(n=r=i):(n>i&&(n=i),r<i&&(r=i)))}return[n,r]}var ae=class{constructor(){this._partials=new Float64Array(32),this._n=0}add(e){let n=this._partials,r=0;for(let o=0;o<this._n&&o<32;o++){let i=n[o],a=e+i,f=Math.abs(e)<Math.abs(i)?e-(a-i):i-(a-e);f&&(n[r++]=f),e=a}return n[r]=e,this._n=r+1,this}valueOf(){let e=this._partials,n=this._n,r,o,i,a=0;if(n>0){for(a=e[--n];n>0&&(r=a,o=e[--n],a=r+o,i=o-(a-r),!i););n>0&&(i<0&&e[n-1]<0||i>0&&e[n-1]>0)&&(o=i*2,r=a+o,o==r-a&&(a=r))}return a}};var Qt=class extends Map{constructor(e,n=Np){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),e!=null)for(let[r,o]of e)this.set(r,o)}get(e){return super.get(rs(this,e))}has(e){return super.has(rs(this,e))}set(e,n){return super.set(kp(this,e),n)}delete(e){return super.delete(Dp(this,e))}},cn=class extends Set{constructor(e,n=Np){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),e!=null)for(let r of e)this.add(r)}has(e){return super.has(rs(this,e))}add(e){return super.add(kp(this,e))}delete(e){return super.delete(Dp(this,e))}};function rs({_intern:t,_key:e},n){let r=e(n);return t.has(r)?t.get(r):n}function kp({_intern:t,_key:e},n){let r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}function Dp({_intern:t,_key:e},n){let r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}function Np(t){return t!==null&&typeof t=="object"?t.valueOf():t}function Uo(t){return t}function sn(t,...e){return is(t,Uo,Uo,e)}function Ce(t,e,...n){return is(t,Uo,e,n)}function os(t,e,...n){return is(t,Array.from,e,n)}function is(t,e,n,r){return function o(i,a){if(a>=r.length)return n(i);let f=new Qt,u=r[a++],c=-1;for(let s of i){let d=u(s,++c,i),l=f.get(d);l?l.push(s):f.set(d,[s])}for(let[s,d]of f)f.set(s,o(d,a));return e(f)}(t,0)}function as(t,e){return Array.from(e,n=>t[n])}function qe(t,...e){if(typeof t[Symbol.iterator]!="function")throw new TypeError("values is not iterable");t=Array.from(t);let[n]=e;if(n&&n.length!==2||e.length>1){let r=Uint32Array.from(t,(o,i)=>i);return e.length>1?(e=e.map(o=>t.map(o)),r.sort((o,i)=>{for(let a of e){let f=Xo(a[o],a[i]);if(f)return f}})):(n=t.map(n),r.sort((o,i)=>Xo(n[o],n[i]))),as(t,r)}return t.sort(fs(n))}function fs(t=bt){if(t===bt)return Xo;if(typeof t!="function")throw new TypeError("compare is not a function");return(e,n)=>{let r=t(e,n);return r||r===0?r:(t(n,n)===0)-(t(e,e)===0)}}function Xo(t,e){return(t==null||!(t>=t))-(e==null||!(e>=e))||(t<e?-1:t>e?1:0)}function Lr(t,e,n){return(e.length!==2?qe(Ce(t,e,n),([r,o],[i,a])=>bt(o,a)||bt(r,i)):qe(sn(t,n),([r,o],[i,a])=>e(o,a)||bt(r,i))).map(([r])=>r)}var Hy=Math.sqrt(50),Wy=Math.sqrt(10),Gy=Math.sqrt(2);function Oa(t,e,n){let r=(e-t)/Math.max(0,n),o=Math.floor(Math.log10(r)),i=r/Math.pow(10,o),a=i>=Hy?10:i>=Wy?5:i>=Gy?2:1,f,u,c;return o<0?(c=Math.pow(10,-o)/a,f=Math.round(t*c),u=Math.round(e*c),f/c<t&&++f,u/c>e&&--u,c=-c):(c=Math.pow(10,o)*a,f=Math.round(t/c),u=Math.round(e/c),f*c<t&&++f,u*c>e&&--u),u<f&&.5<=n&&n<2?Oa(t,e,n*2):[f,u,c]}function Ae(t,e,n){if(e=+e,t=+t,n=+n,!(n>0))return[];if(t===e)return[t];let r=e<t,[o,i,a]=r?Oa(e,t,n):Oa(t,e,n);if(!(i>=o))return[];let f=i-o+1,u=new Array(f);if(r)if(a<0)for(let c=0;c<f;++c)u[c]=(i-c)/-a;else for(let c=0;c<f;++c)u[c]=(i-c)*a;else if(a<0)for(let c=0;c<f;++c)u[c]=(o+c)/-a;else for(let c=0;c<f;++c)u[c]=(o+c)*a;return u}function tr(t,e,n){return e=+e,t=+t,n=+n,Oa(t,e,n)[2]}function Pr(t,e,n){e=+e,t=+t,n=+n;let r=e<t,o=r?tr(e,t,n):tr(t,e,n);return(r?-1:1)*(o<0?1/-o:o)}function Fa(t){return Math.max(1,Math.ceil(Math.log(Jn(t))/Math.LN2)+1)}function Ht(t,e){let n;if(e===void 0)for(let r of t)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let o of t)(o=e(o,++r,t))!=null&&(n<o||n===void 0&&o>=o)&&(n=o)}return n}function qa(t,e){let n,r=-1,o=-1;if(e===void 0)for(let i of t)++o,i!=null&&(n<i||n===void 0&&i>=i)&&(n=i,r=o);else for(let i of t)(i=e(i,++o,t))!=null&&(n<i||n===void 0&&i>=i)&&(n=i,r=o);return r}function Jt(t,e){let n;if(e===void 0)for(let r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let o of t)(o=e(o,++r,t))!=null&&(n>o||n===void 0&&o>=o)&&(n=o)}return n}function Ya(t,e){let n,r=-1,o=-1;if(e===void 0)for(let i of t)++o,i!=null&&(n>i||n===void 0&&i>=i)&&(n=i,r=o);else for(let i of t)(i=e(i,++o,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i,r=o);return r}function za(t,e,n=0,r=1/0,o){if(e=Math.floor(e),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(t.length-1,r)),!(n<=e&&e<=r))return t;for(o=o===void 0?Xo:fs(o);r>n;){if(r-n>600){let u=r-n+1,c=e-n+1,s=Math.log(u),d=.5*Math.exp(2*s/3),l=.5*Math.sqrt(s*d*(u-d)/u)*(c-u/2<0?-1:1),p=Math.max(n,Math.floor(e-c*d/u+l)),m=Math.min(r,Math.floor(e+(u-c)*d/u+l));za(t,e,p,m,o)}let i=t[e],a=n,f=r;for(Ho(t,n,e),o(t[r],i)>0&&Ho(t,n,r);a<f;){for(Ho(t,a,f),++a,--f;o(t[a],i)<0;)++a;for(;o(t[f],i)>0;)--f}o(t[n],i)===0?Ho(t,n,f):(++f,Ho(t,f,r)),f<=e&&(n=f+1),e<=f&&(r=f-1)}return t}function Ho(t,e,n){let r=t[e];t[e]=t[n],t[n]=r}function Wo(t,e=bt){let n,r=!1;if(e.length===1){let o;for(let i of t){let a=e(i);(r?bt(a,o)>0:bt(a,a)===0)&&(n=i,o=a,r=!0)}}else for(let o of t)(r?e(o,n)>0:e(o,o)===0)&&(n=o,r=!0);return n}function ye(t,e,n){if(t=Float64Array.from($p(t,n)),!(!(r=t.length)||isNaN(e=+e))){if(e<=0||r<2)return Jt(t);if(e>=1)return Ht(t);var r,o=(r-1)*e,i=Math.floor(o),a=Ht(za(t,i).subarray(0,i+1)),f=Jt(t.subarray(i+1));return a+(f-a)*(o-i)}}function us(t,e,n=Bo){if(!(!(r=t.length)||isNaN(e=+e))){if(e<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,o=(r-1)*e,i=Math.floor(o),a=+n(t[i],i,t),f=+n(t[i+1],i+1,t);return a+(f-a)*(o-i)}}function Ba(t,e,n){let r=Jn(t),o=ye(t,.75)-ye(t,.25);return r&&o?Math.ceil((n-e)/(2*o*Math.pow(r,-1/3))):1}function Go(t,e,n){let r=Jn(t),o=Rr(t);return r&&o?Math.ceil((n-e)*Math.cbrt(r)/(3.49*o)):1}function Ua(t,e){let n=0,r=0;if(e===void 0)for(let o of t)o!=null&&(o=+o)>=o&&(++n,r+=o);else{let o=-1;for(let i of t)(i=e(i,++o,t))!=null&&(i=+i)>=i&&(++n,r+=i)}if(n)return r/n}function ln(t,e){return ye(t,.5,e)}function*jy(t){for(let e of t)yield*e}function Or(t){return Array.from(jy(t))}function Xa(t,e){let n=new Qt;if(e===void 0)for(let i of t)i!=null&&i>=i&&n.set(i,(n.get(i)||0)+1);else{let i=-1;for(let a of t)(a=e(a,++i,t))!=null&&a>=a&&n.set(a,(n.get(a)||0)+1)}let r,o=0;for(let[i,a]of n)a>o&&(o=a,r=i);return r}function Ha(t,e=Zy){let n=[],r,o=!1;for(let i of t)o&&n.push(e(r,i)),r=i,o=!0;return n}function Zy(t,e){return[t,e]}function er(t,e,n){t=+t,e=+e,n=(o=arguments.length)<2?(e=t,t=0,1):o<3?1:+n;for(var r=-1,o=Math.max(0,Math.ceil((e-t)/n))|0,i=new Array(o);++r<o;)i[r]=t+r*n;return i}function fe(t,e){let n=0;if(e===void 0)for(let r of t)(r=+r)&&(n+=r);else{let r=-1;for(let o of t)(o=+e(o,++r,t))&&(n+=o)}return n}function $n(t){if(typeof t[Symbol.iterator]!="function")throw new TypeError("values is not iterable");return Array.from(t).reverse()}function Rp(t){return t}var cs=1,ss=2,ls=3,Wa=4,Lp=1e-6;function Ky(t){return"translate("+t+",0)"}function Qy(t){return"translate(0,"+t+")"}function Jy(t){return e=>+t(e)}function tb(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function eb(){return!this.__axis}function nb(t,e){var n=[],r=null,o=null,i=6,a=6,f=3,u=typeof window<"u"&&window.devicePixelRatio>1?0:.5,c=t===cs||t===Wa?-1:1,s=t===Wa||t===ss?"x":"y",d=t===cs||t===ls?Ky:Qy;function l(p){var m=r??(e.ticks?e.ticks.apply(e,n):e.domain()),h=o??(e.tickFormat?e.tickFormat.apply(e,n):Rp),g=Math.max(i,0)+f,b=e.range(),x=+b[0]+u,M=+b[b.length-1]+u,y=(e.bandwidth?tb:Jy)(e.copy(),u),w=p.selection?p.selection():p,v=w.selectAll(".domain").data([null]),T=w.selectAll(".tick").data(m,e).order(),E=T.exit(),I=T.enter().append("g").attr("class","tick"),D=T.select("line"),_=T.select("text");v=v.merge(v.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),T=T.merge(I),D=D.merge(I.append("line").attr("stroke","currentColor").attr(s+"2",c*i)),_=_.merge(I.append("text").attr("fill","currentColor").attr(s,c*g).attr("dy",t===cs?"0em":t===ls?"0.71em":"0.32em")),p!==w&&(v=v.transition(p),T=T.transition(p),D=D.transition(p),_=_.transition(p),E=E.transition(p).attr("opacity",Lp).attr("transform",function(L){return isFinite(L=y(L))?d(L+u):this.getAttribute("transform")}),I.attr("opacity",Lp).attr("transform",function(L){var F=this.parentNode.__axis;return d((F&&isFinite(F=F(L))?F:y(L))+u)})),E.remove(),v.attr("d",t===Wa||t===ss?a?"M"+c*a+","+x+"H"+u+"V"+M+"H"+c*a:"M"+u+","+x+"V"+M:a?"M"+x+","+c*a+"V"+u+"H"+M+"V"+c*a:"M"+x+","+u+"H"+M),T.attr("opacity",1).attr("transform",function(L){return d(y(L)+u)}),D.attr(s+"2",c*i),_.attr(s,c*g).text(h),w.filter(eb).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===ss?"start":t===Wa?"end":"middle"),w.each(function(){this.__axis=y})}return l.scale=function(p){return arguments.length?(e=p,l):e},l.ticks=function(){return n=Array.from(arguments),l},l.tickArguments=function(p){return arguments.length?(n=p==null?[]:Array.from(p),l):n.slice()},l.tickValues=function(p){return arguments.length?(r=p==null?null:Array.from(p),l):r&&r.slice()},l.tickFormat=function(p){return arguments.length?(o=p,l):o},l.tickSize=function(p){return arguments.length?(i=a=+p,l):i},l.tickSizeInner=function(p){return arguments.length?(i=+p,l):i},l.tickSizeOuter=function(p){return arguments.length?(a=+p,l):a},l.tickPadding=function(p){return arguments.length?(f=+p,l):f},l.offset=function(p){return arguments.length?(u=+p,l):u},l}function ds(t){return nb(ls,t)}var rb={value:()=>{}};function Op(){for(var t=0,e=arguments.length,n={},r;t<e;++t){if(!(r=arguments[t]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new Ga(n)}function Ga(t){this._=t}function ob(t,e){return t.trim().split(/^|\s+/).map(function(n){var r="",o=n.indexOf(".");if(o>=0&&(r=n.slice(o+1),n=n.slice(0,o)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Ga.prototype=Op.prototype={constructor:Ga,on:function(t,e){var n=this._,r=ob(t+"",n),o,i=-1,a=r.length;if(arguments.length<2){for(;++i<a;)if((o=(t=r[i]).type)&&(o=ib(n[o],t.name)))return o;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++i<a;)if(o=(t=r[i]).type)n[o]=Pp(n[o],t.name,e);else if(e==null)for(o in n)n[o]=Pp(n[o],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new Ga(t)},call:function(t,e){if((o=arguments.length-2)>0)for(var n=new Array(o),r=0,o,i;r<o;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(i=this._[t],r=0,o=i.length;r<o;++r)i[r].value.apply(e,n)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],o=0,i=r.length;o<i;++o)r[o].value.apply(e,n)}};function ib(t,e){for(var n=0,r=t.length,o;n<r;++n)if((o=t[n]).name===e)return o.value}function Pp(t,e,n){for(var r=0,o=t.length;r<o;++r)if(t[r].name===e){t[r]=rb,t=t.slice(0,r).concat(t.slice(r+1));break}return n!=null&&t.push({name:e,value:n}),t}var ps=Op;var Va="http://www.w3.org/1999/xhtml",Ye={svg:"http://www.w3.org/2000/svg",xhtml:Va,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function dn(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),Ye.hasOwnProperty(e)?{space:Ye[e],local:t}:t}function ab(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===Va&&e.documentElement.namespaceURI===Va?e.createElement(t):e.createElementNS(n,t)}}function fb(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function pn(t){var e=dn(t);return(e.local?fb:ab)(e)}function ub(){}function nr(t){return t==null?ub:function(){return this.querySelector(t)}}function Fp(t){typeof t!="function"&&(t=nr(t));for(var e=this._groups,n=e.length,r=new Array(n),o=0;o<n;++o)for(var i=e[o],a=i.length,f=r[o]=new Array(a),u,c,s=0;s<a;++s)(u=i[s])&&(c=t.call(u,u.__data__,s,i))&&("__data__"in u&&(c.__data__=u.__data__),f[s]=c);return new vt(r,this._parents)}function ms(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function cb(){return[]}function Vo(t){return t==null?cb:function(){return this.querySelectorAll(t)}}function sb(t){return function(){return ms(t.apply(this,arguments))}}function qp(t){typeof t=="function"?t=sb(t):t=Vo(t);for(var e=this._groups,n=e.length,r=[],o=[],i=0;i<n;++i)for(var a=e[i],f=a.length,u,c=0;c<f;++c)(u=a[c])&&(r.push(t.call(u,u.__data__,c,a)),o.push(u));return new vt(r,o)}function jo(t){return function(){return this.matches(t)}}function ja(t){return function(e){return e.matches(t)}}var lb=Array.prototype.find;function db(t){return function(){return lb.call(this.children,t)}}function pb(){return this.firstElementChild}function Yp(t){return this.select(t==null?pb:db(typeof t=="function"?t:ja(t)))}var mb=Array.prototype.filter;function hb(){return Array.from(this.children)}function gb(t){return function(){return mb.call(this.children,t)}}function zp(t){return this.selectAll(t==null?hb:gb(typeof t=="function"?t:ja(t)))}function Bp(t){typeof t!="function"&&(t=jo(t));for(var e=this._groups,n=e.length,r=new Array(n),o=0;o<n;++o)for(var i=e[o],a=i.length,f=r[o]=[],u,c=0;c<a;++c)(u=i[c])&&t.call(u,u.__data__,c,i)&&f.push(u);return new vt(r,this._parents)}function Za(t){return new Array(t.length)}function Up(){return new vt(this._enter||this._groups.map(Za),this._parents)}function Zo(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Zo.prototype={constructor:Zo,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function Xp(t){return function(){return t}}function xb(t,e,n,r,o,i){for(var a=0,f,u=e.length,c=i.length;a<c;++a)(f=e[a])?(f.__data__=i[a],r[a]=f):n[a]=new Zo(t,i[a]);for(;a<u;++a)(f=e[a])&&(o[a]=f)}function yb(t,e,n,r,o,i,a){var f,u,c=new Map,s=e.length,d=i.length,l=new Array(s),p;for(f=0;f<s;++f)(u=e[f])&&(l[f]=p=a.call(u,u.__data__,f,e)+"",c.has(p)?o[f]=u:c.set(p,u));for(f=0;f<d;++f)p=a.call(t,i[f],f,i)+"",(u=c.get(p))?(r[f]=u,u.__data__=i[f],c.delete(p)):n[f]=new Zo(t,i[f]);for(f=0;f<s;++f)(u=e[f])&&c.get(l[f])===u&&(o[f]=u)}function bb(t){return t.__data__}function Hp(t,e){if(!arguments.length)return Array.from(this,bb);var n=e?yb:xb,r=this._parents,o=this._groups;typeof t!="function"&&(t=Xp(t));for(var i=o.length,a=new Array(i),f=new Array(i),u=new Array(i),c=0;c<i;++c){var s=r[c],d=o[c],l=d.length,p=wb(t.call(s,s&&s.__data__,c,r)),m=p.length,h=f[c]=new Array(m),g=a[c]=new Array(m),b=u[c]=new Array(l);n(s,d,h,g,b,p,e);for(var x=0,M=0,y,w;x<m;++x)if(y=h[x]){for(x>=M&&(M=x+1);!(w=g[M])&&++M<m;);y._next=w||null}}return a=new vt(a,r),a._enter=f,a._exit=u,a}function wb(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Wp(){return new vt(this._exit||this._groups.map(Za),this._parents)}function Gp(t,e,n){var r=this.enter(),o=this,i=this.exit();return typeof t=="function"?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),e!=null&&(o=e(o),o&&(o=o.selection())),n==null?i.remove():n(i),r&&o?r.merge(o).order():o}function Vp(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,o=n.length,i=r.length,a=Math.min(o,i),f=new Array(o),u=0;u<a;++u)for(var c=n[u],s=r[u],d=c.length,l=f[u]=new Array(d),p,m=0;m<d;++m)(p=c[m]||s[m])&&(l[m]=p);for(;u<o;++u)f[u]=n[u];return new vt(f,this._parents)}function jp(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r=t[e],o=r.length-1,i=r[o],a;--o>=0;)(a=r[o])&&(i&&a.compareDocumentPosition(i)^4&&i.parentNode.insertBefore(a,i),i=a);return this}function Zp(t){t||(t=vb);function e(d,l){return d&&l?t(d.__data__,l.__data__):!d-!l}for(var n=this._groups,r=n.length,o=new Array(r),i=0;i<r;++i){for(var a=n[i],f=a.length,u=o[i]=new Array(f),c,s=0;s<f;++s)(c=a[s])&&(u[s]=c);u.sort(e)}return new vt(o,this._parents).order()}function vb(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function Kp(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function Qp(){return Array.from(this)}function Jp(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],o=0,i=r.length;o<i;++o){var a=r[o];if(a)return a}return null}function tm(){let t=0;for(let e of this)++t;return t}function em(){return!this.node()}function nm(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var o=e[n],i=0,a=o.length,f;i<a;++i)(f=o[i])&&t.call(f,f.__data__,i,o);return this}function Mb(t){return function(){this.removeAttribute(t)}}function Sb(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Tb(t,e){return function(){this.setAttribute(t,e)}}function _b(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Cb(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function Ab(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function rm(t,e){var n=dn(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((e==null?n.local?Sb:Mb:typeof e=="function"?n.local?Ab:Cb:n.local?_b:Tb)(n,e))}function Ka(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function $b(t){return function(){this.style.removeProperty(t)}}function Eb(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Ib(t,e,n){return function(){var r=e.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function om(t,e,n){return arguments.length>1?this.each((e==null?$b:typeof e=="function"?Ib:Eb)(t,e,n??"")):En(this.node(),t)}function En(t,e){return t.style.getPropertyValue(e)||Ka(t).getComputedStyle(t,null).getPropertyValue(e)}function kb(t){return function(){delete this[t]}}function Db(t,e){return function(){this[t]=e}}function Nb(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function im(t,e){return arguments.length>1?this.each((e==null?kb:typeof e=="function"?Nb:Db)(t,e)):this.node()[t]}function am(t){return t.trim().split(/^|\s+/)}function hs(t){return t.classList||new fm(t)}function fm(t){this._node=t,this._names=am(t.getAttribute("class")||"")}fm.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function um(t,e){for(var n=hs(t),r=-1,o=e.length;++r<o;)n.add(e[r])}function cm(t,e){for(var n=hs(t),r=-1,o=e.length;++r<o;)n.remove(e[r])}function Rb(t){return function(){um(this,t)}}function Lb(t){return function(){cm(this,t)}}function Pb(t,e){return function(){(e.apply(this,arguments)?um:cm)(this,t)}}function sm(t,e){var n=am(t+"");if(arguments.length<2){for(var r=hs(this.node()),o=-1,i=n.length;++o<i;)if(!r.contains(n[o]))return!1;return!0}return this.each((typeof e=="function"?Pb:e?Rb:Lb)(n,e))}function Ob(){this.textContent=""}function Fb(t){return function(){this.textContent=t}}function qb(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function lm(t){return arguments.length?this.each(t==null?Ob:(typeof t=="function"?qb:Fb)(t)):this.node().textContent}function Yb(){this.innerHTML=""}function zb(t){return function(){this.innerHTML=t}}function Bb(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function dm(t){return arguments.length?this.each(t==null?Yb:(typeof t=="function"?Bb:zb)(t)):this.node().innerHTML}function Ub(){this.nextSibling&&this.parentNode.appendChild(this)}function pm(){return this.each(Ub)}function Xb(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function mm(){return this.each(Xb)}function hm(t){var e=typeof t=="function"?t:pn(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function Hb(){return null}function gm(t,e){var n=typeof t=="function"?t:pn(t),r=e==null?Hb:typeof e=="function"?e:nr(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function Wb(){var t=this.parentNode;t&&t.removeChild(this)}function xm(){return this.each(Wb)}function Gb(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Vb(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function ym(t){return this.select(t?Vb:Gb)}function bm(t){return arguments.length?this.property("__data__",t):this.node().__data__}function jb(t){return function(e){t.call(this,e,this.__data__)}}function Zb(t){return t.trim().split(/^|\s+/).map(function(e){var n="",r=e.indexOf(".");return r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),{type:e,name:n}})}function Kb(t){return function(){var e=this.__on;if(e){for(var n=0,r=-1,o=e.length,i;n<o;++n)i=e[n],(!t.type||i.type===t.type)&&i.name===t.name?this.removeEventListener(i.type,i.listener,i.options):e[++r]=i;++r?e.length=r:delete this.__on}}}function Qb(t,e,n){return function(){var r=this.__on,o,i=jb(e);if(r){for(var a=0,f=r.length;a<f;++a)if((o=r[a]).type===t.type&&o.name===t.name){this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=i,o.options=n),o.value=e;return}}this.addEventListener(t.type,i,n),o={type:t.type,name:t.name,value:e,listener:i,options:n},r?r.push(o):this.__on=[o]}}function wm(t,e,n){var r=Zb(t+""),o,i=r.length,a;if(arguments.length<2){var f=this.node().__on;if(f){for(var u=0,c=f.length,s;u<c;++u)for(o=0,s=f[u];o<i;++o)if((a=r[o]).type===s.type&&a.name===s.name)return s.value}return}for(f=e?Qb:Kb,o=0;o<i;++o)this.each(f(r[o],e,n));return this}function vm(t,e,n){var r=Ka(t),o=r.CustomEvent;typeof o=="function"?o=new o(e,n):(o=r.document.createEvent("Event"),n?(o.initEvent(e,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(e,!1,!1)),t.dispatchEvent(o)}function Jb(t,e){return function(){return vm(this,t,e)}}function t2(t,e){return function(){return vm(this,t,e.apply(this,arguments))}}function Mm(t,e){return this.each((typeof e=="function"?t2:Jb)(t,e))}function*Sm(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],o=0,i=r.length,a;o<i;++o)(a=r[o])&&(yield a)}var gs=[null];function vt(t,e){this._groups=t,this._parents=e}function Tm(){return new vt([[document.documentElement]],gs)}function e2(){return this}vt.prototype=Tm.prototype={constructor:vt,select:Fp,selectAll:qp,selectChild:Yp,selectChildren:zp,filter:Bp,data:Hp,enter:Up,exit:Wp,join:Gp,merge:Vp,selection:e2,order:jp,sort:Zp,call:Kp,nodes:Qp,node:Jp,size:tm,empty:em,each:nm,attr:rm,style:om,property:im,classed:sm,text:lm,html:dm,raise:pm,lower:mm,append:hm,insert:gm,remove:xm,clone:ym,datum:bm,on:wm,dispatch:Mm,[Symbol.iterator]:Sm};var mn=Tm;function hn(t){return typeof t=="string"?new vt([[document.querySelector(t)]],[document.documentElement]):new vt([[t]],gs)}function _m(t){let e;for(;e=t.sourceEvent;)t=e;return t}function xs(t,e){if(t=_m(t),e===void 0&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,r=r.matrixTransform(e.getScreenCTM().inverse()),[r.x,r.y]}if(e.getBoundingClientRect){var o=e.getBoundingClientRect();return[t.clientX-o.left-e.clientLeft,t.clientY-o.top-e.clientTop]}}return[t.pageX,t.pageY]}function gn(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function In(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Be(){}var kn=.7,ir=1/kn,Fr="\\s*([+-]?\\d+)\\s*",Ko="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ze="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",n2=/^#([0-9a-f]{3,8})$/,r2=new RegExp(`^rgb\\(${Fr},${Fr},${Fr}\\)$`),o2=new RegExp(`^rgb\\(${ze},${ze},${ze}\\)$`),i2=new RegExp(`^rgba\\(${Fr},${Fr},${Fr},${Ko}\\)$`),a2=new RegExp(`^rgba\\(${ze},${ze},${ze},${Ko}\\)$`),f2=new RegExp(`^hsl\\(${Ko},${ze},${ze}\\)$`),u2=new RegExp(`^hsla\\(${Ko},${ze},${ze},${Ko}\\)$`),Cm={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};gn(Be,ue,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Am,formatHex:Am,formatHex8:c2,formatHsl:s2,formatRgb:$m,toString:$m});function Am(){return this.rgb().formatHex()}function c2(){return this.rgb().formatHex8()}function s2(){return Rm(this).formatHsl()}function $m(){return this.rgb().formatRgb()}function ue(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=n2.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?Em(e):n===3?new Tt(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?Qa(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?Qa(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=r2.exec(t))?new Tt(e[1],e[2],e[3],1):(e=o2.exec(t))?new Tt(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=i2.exec(t))?Qa(e[1],e[2],e[3],e[4]):(e=a2.exec(t))?Qa(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=f2.exec(t))?Dm(e[1],e[2]/100,e[3]/100,1):(e=u2.exec(t))?Dm(e[1],e[2]/100,e[3]/100,e[4]):Cm.hasOwnProperty(t)?Em(Cm[t]):t==="transparent"?new Tt(NaN,NaN,NaN,0):null}function Em(t){return new Tt(t>>16&255,t>>8&255,t&255,1)}function Qa(t,e,n,r){return r<=0&&(t=e=n=NaN),new Tt(t,e,n,r)}function Qo(t){return t instanceof Be||(t=ue(t)),t?(t=t.rgb(),new Tt(t.r,t.g,t.b,t.opacity)):new Tt}function be(t,e,n,r){return arguments.length===1?Qo(t):new Tt(t,e,n,r??1)}function Tt(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}gn(Tt,be,In(Be,{brighter(t){return t=t==null?ir:Math.pow(ir,t),new Tt(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?kn:Math.pow(kn,t),new Tt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Tt(or(this.r),or(this.g),or(this.b),tf(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Im,formatHex:Im,formatHex8:l2,formatRgb:km,toString:km}));function Im(){return`#${rr(this.r)}${rr(this.g)}${rr(this.b)}`}function l2(){return`#${rr(this.r)}${rr(this.g)}${rr(this.b)}${rr((isNaN(this.opacity)?1:this.opacity)*255)}`}function km(){let t=tf(this.opacity);return`${t===1?"rgb(":"rgba("}${or(this.r)}, ${or(this.g)}, ${or(this.b)}${t===1?")":`, ${t})`}`}function tf(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function or(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function rr(t){return t=or(t),(t<16?"0":"")+t.toString(16)}function Dm(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new $e(t,e,n,r)}function Rm(t){if(t instanceof $e)return new $e(t.h,t.s,t.l,t.opacity);if(t instanceof Be||(t=ue(t)),!t)return new $e;if(t instanceof $e)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,o=Math.min(e,n,r),i=Math.max(e,n,r),a=NaN,f=i-o,u=(i+o)/2;return f?(e===i?a=(n-r)/f+(n<r)*6:n===i?a=(r-e)/f+2:a=(e-n)/f+4,f/=u<.5?i+o:2-i-o,a*=60):f=u>0&&u<1?0:a,new $e(a,f,u,t.opacity)}function Jo(t,e,n,r){return arguments.length===1?Rm(t):new $e(t,e,n,r??1)}function $e(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}gn($e,Jo,In(Be,{brighter(t){return t=t==null?ir:Math.pow(ir,t),new $e(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?kn:Math.pow(kn,t),new $e(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,o=2*n-r;return new Tt(ys(t>=240?t-240:t+120,o,r),ys(t,o,r),ys(t<120?t+240:t-120,o,r),this.opacity)},clamp(){return new $e(Nm(this.h),Ja(this.s),Ja(this.l),tf(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let t=tf(this.opacity);return`${t===1?"hsl(":"hsla("}${Nm(this.h)}, ${Ja(this.s)*100}%, ${Ja(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Nm(t){return t=(t||0)%360,t<0?t+360:t}function Ja(t){return Math.max(0,Math.min(1,t||0))}function ys(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}var ef=Math.PI/180,nf=180/Math.PI;var rf=18,Lm=.96422,Pm=1,Om=.82521,Fm=4/29,qr=6/29,qm=3*qr*qr,d2=qr*qr*qr;function Ym(t){if(t instanceof Ue)return new Ue(t.l,t.a,t.b,t.opacity);if(t instanceof xn)return zm(t);t instanceof Tt||(t=Qo(t));var e=Ms(t.r),n=Ms(t.g),r=Ms(t.b),o=bs((.2225045*e+.7168786*n+.0606169*r)/Pm),i,a;return e===n&&n===r?i=a=o:(i=bs((.4360747*e+.3850649*n+.1430804*r)/Lm),a=bs((.0139322*e+.0971045*n+.7141733*r)/Om)),new Ue(116*o-16,500*(i-o),200*(o-a),t.opacity)}function Yr(t,e,n,r){return arguments.length===1?Ym(t):new Ue(t,e,n,r??1)}function Ue(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}gn(Ue,Yr,In(Be,{brighter(t){return new Ue(this.l+rf*(t??1),this.a,this.b,this.opacity)},darker(t){return new Ue(this.l-rf*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=Lm*ws(e),t=Pm*ws(t),n=Om*ws(n),new Tt(vs(3.1338561*e-1.6168667*t-.4906146*n),vs(-.9787684*e+1.9161415*t+.033454*n),vs(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function bs(t){return t>d2?Math.pow(t,1/3):t/qm+Fm}function ws(t){return t>qr?t*t*t:qm*(t-Fm)}function vs(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Ms(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function p2(t){if(t instanceof xn)return new xn(t.h,t.c,t.l,t.opacity);if(t instanceof Ue||(t=Ym(t)),t.a===0&&t.b===0)return new xn(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*nf;return new xn(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function ti(t,e,n,r){return arguments.length===1?p2(t):new xn(t,e,n,r??1)}function xn(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function zm(t){if(isNaN(t.h))return new Ue(t.l,0,0,t.opacity);var e=t.h*ef;return new Ue(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}gn(xn,ti,In(Be,{brighter(t){return new xn(this.h,this.c,this.l+rf*(t??1),this.opacity)},darker(t){return new xn(this.h,this.c,this.l-rf*(t??1),this.opacity)},rgb(){return zm(this).rgb()}}));var Hm=-.14861,Ss=1.78277,Ts=-.29227,of=-.90649,ei=1.97294,Bm=ei*of,Um=ei*Ss,Xm=Ss*Ts-of*Hm;function m2(t){if(t instanceof ar)return new ar(t.h,t.s,t.l,t.opacity);t instanceof Tt||(t=Qo(t));var e=t.r/255,n=t.g/255,r=t.b/255,o=(Xm*r+Bm*e-Um*n)/(Xm+Bm-Um),i=r-o,a=(ei*(n-o)-Ts*i)/of,f=Math.sqrt(a*a+i*i)/(ei*o*(1-o)),u=f?Math.atan2(a,i)*nf-120:NaN;return new ar(u<0?u+360:u,f,o,t.opacity)}function te(t,e,n,r){return arguments.length===1?m2(t):new ar(t,e,n,r??1)}function ar(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}gn(ar,te,In(Be,{brighter(t){return t=t==null?ir:Math.pow(ir,t),new ar(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?kn:Math.pow(kn,t),new ar(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=isNaN(this.h)?0:(this.h+120)*ef,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),o=Math.sin(t);return new Tt(255*(e+n*(Hm*r+Ss*o)),255*(e+n*(Ts*r+of*o)),255*(e+n*(ei*r)),this.opacity)}}));function _s(t,e,n,r,o){var i=t*t,a=i*t;return((1-3*t+3*i-a)*e+(4-6*i+3*a)*n+(1+3*t+3*i-3*a)*r+a*o)/6}function Wm(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),o=t[r],i=t[r+1],a=r>0?t[r-1]:2*o-i,f=r<e-1?t[r+2]:2*i-o;return _s((n-r/e)*e,a,o,i,f)}}function Gm(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),o=t[(r+e-1)%e],i=t[r%e],a=t[(r+1)%e],f=t[(r+2)%e];return _s((n-r/e)*e,o,i,a,f)}}var zr=t=>()=>t;function Vm(t,e){return function(n){return t+n*e}}function h2(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function Br(t,e){var n=e-t;return n?Vm(t,n>180||n<-180?n-360*Math.round(n/360):n):zr(isNaN(t)?e:t)}function jm(t){return(t=+t)==1?xt:function(e,n){return n-e?h2(e,n,t):zr(isNaN(e)?n:e)}}function xt(t,e){var n=e-t;return n?Vm(t,n):zr(isNaN(t)?e:t)}var we=function t(e){var n=jm(e);function r(o,i){var a=n((o=be(o)).r,(i=be(i)).r),f=n(o.g,i.g),u=n(o.b,i.b),c=xt(o.opacity,i.opacity);return function(s){return o.r=a(s),o.g=f(s),o.b=u(s),o.opacity=c(s),o+""}}return r.gamma=t,r}(1);function Zm(t){return function(e){var n=e.length,r=new Array(n),o=new Array(n),i=new Array(n),a,f;for(a=0;a<n;++a)f=be(e[a]),r[a]=f.r||0,o[a]=f.g||0,i[a]=f.b||0;return r=t(r),o=t(o),i=t(i),f.opacity=1,function(u){return f.r=r(u),f.g=o(u),f.b=i(u),f+""}}}var Cs=Zm(Wm),g2=Zm(Gm);function Km(t,e){e||(e=[]);var n=t?Math.min(e.length,t.length):0,r=e.slice(),o;return function(i){for(o=0;o<n;++o)r[o]=t[o]*(1-i)+e[o]*i;return r}}function Qm(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Jm(t,e){var n=e?e.length:0,r=t?Math.min(n,t.length):0,o=new Array(r),i=new Array(n),a;for(a=0;a<r;++a)o[a]=Ee(t[a],e[a]);for(;a<n;++a)i[a]=e[a];return function(f){for(a=0;a<r;++a)i[a]=o[a](f);return i}}function th(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function ht(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function eh(t,e){var n={},r={},o;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(o in e)o in t?n[o]=Ee(t[o],e[o]):r[o]=e[o];return function(i){for(o in n)r[o]=n[o](i);return r}}var $s=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,As=new RegExp($s.source,"g");function x2(t){return function(){return t}}function y2(t){return function(e){return t(e)+""}}function ni(t,e){var n=$s.lastIndex=As.lastIndex=0,r,o,i,a=-1,f=[],u=[];for(t=t+"",e=e+"";(r=$s.exec(t))&&(o=As.exec(e));)(i=o.index)>n&&(i=e.slice(n,i),f[a]?f[a]+=i:f[++a]=i),(r=r[0])===(o=o[0])?f[a]?f[a]+=o:f[++a]=o:(f[++a]=null,u.push({i:a,x:ht(r,o)})),n=As.lastIndex;return n<e.length&&(i=e.slice(n),f[a]?f[a]+=i:f[++a]=i),f.length<2?u[0]?y2(u[0].x):x2(e):(e=u.length,function(c){for(var s=0,d;s<e;++s)f[(d=u[s]).i]=d.x(c);return f.join("")})}function Ee(t,e){var n=typeof e,r;return e==null||n==="boolean"?zr(e):(n==="number"?ht:n==="string"?(r=ue(e))?(e=r,we):ni:e instanceof ue?we:e instanceof Date?th:Qm(e)?Km:Array.isArray(e)?Jm:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?eh:ht)(t,e)}function fr(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}var nh=180/Math.PI,af={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Es(t,e,n,r,o,i){var a,f,u;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(u=t*n+e*r)&&(n-=t*u,r-=e*u),(f=Math.sqrt(n*n+r*r))&&(n/=f,r/=f,u/=f),t*r<e*n&&(t=-t,e=-e,u=-u,a=-a),{translateX:o,translateY:i,rotate:Math.atan2(e,t)*nh,skewX:Math.atan(u)*nh,scaleX:a,scaleY:f}}var ff;function rh(t){let e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?af:Es(e.a,e.b,e.c,e.d,e.e,e.f)}function oh(t){return t==null?af:(ff||(ff=document.createElementNS("http://www.w3.org/2000/svg","g")),ff.setAttribute("transform",t),(t=ff.transform.baseVal.consolidate())?(t=t.matrix,Es(t.a,t.b,t.c,t.d,t.e,t.f)):af)}function ih(t,e,n,r){function o(c){return c.length?c.pop()+" ":""}function i(c,s,d,l,p,m){if(c!==d||s!==l){var h=p.push("translate(",null,e,null,n);m.push({i:h-4,x:ht(c,d)},{i:h-2,x:ht(s,l)})}else(d||l)&&p.push("translate("+d+e+l+n)}function a(c,s,d,l){c!==s?(c-s>180?s+=360:s-c>180&&(c+=360),l.push({i:d.push(o(d)+"rotate(",null,r)-2,x:ht(c,s)})):s&&d.push(o(d)+"rotate("+s+r)}function f(c,s,d,l){c!==s?l.push({i:d.push(o(d)+"skewX(",null,r)-2,x:ht(c,s)}):s&&d.push(o(d)+"skewX("+s+r)}function u(c,s,d,l,p,m){if(c!==d||s!==l){var h=p.push(o(p)+"scale(",null,",",null,")");m.push({i:h-4,x:ht(c,d)},{i:h-2,x:ht(s,l)})}else(d!==1||l!==1)&&p.push(o(p)+"scale("+d+","+l+")")}return function(c,s){var d=[],l=[];return c=t(c),s=t(s),i(c.translateX,c.translateY,s.translateX,s.translateY,d,l),a(c.rotate,s.rotate,d,l),f(c.skewX,s.skewX,d,l),u(c.scaleX,c.scaleY,s.scaleX,s.scaleY,d,l),c=s=null,function(p){for(var m=-1,h=l.length,g;++m<h;)d[(g=l[m]).i]=g.x(p);return d.join("")}}}var Is=ih(rh,"px, ","px)","deg)"),ks=ih(oh,", ",")",")");function ah(t){return function(e,n){var r=t((e=Jo(e)).h,(n=Jo(n)).h),o=xt(e.s,n.s),i=xt(e.l,n.l),a=xt(e.opacity,n.opacity);return function(f){return e.h=r(f),e.s=o(f),e.l=i(f),e.opacity=a(f),e+""}}}var Ds=ah(Br),b2=ah(xt);function uf(t,e){var n=xt((t=Yr(t)).l,(e=Yr(e)).l),r=xt(t.a,e.a),o=xt(t.b,e.b),i=xt(t.opacity,e.opacity);return function(a){return t.l=n(a),t.a=r(a),t.b=o(a),t.opacity=i(a),t+""}}function fh(t){return function(e,n){var r=t((e=ti(e)).h,(n=ti(n)).h),o=xt(e.c,n.c),i=xt(e.l,n.l),a=xt(e.opacity,n.opacity);return function(f){return e.h=r(f),e.c=o(f),e.l=i(f),e.opacity=a(f),e+""}}}var Ns=fh(Br),w2=fh(xt);function uh(t){return function e(n){n=+n;function r(o,i){var a=t((o=te(o)).h,(i=te(i)).h),f=xt(o.s,i.s),u=xt(o.l,i.l),c=xt(o.opacity,i.opacity);return function(s){return o.h=a(s),o.s=f(s),o.l=u(Math.pow(s,n)),o.opacity=c(s),o+""}}return r.gamma=e,r}(1)}var v2=uh(Br),Ur=uh(xt);function Xe(t,e){e===void 0&&(e=t,t=Ee);for(var n=0,r=e.length-1,o=e[0],i=new Array(r<0?0:r);n<r;)i[n]=t(o,o=e[++n]);return function(a){var f=Math.max(0,Math.min(r-1,Math.floor(a*=r)));return i[f](a-f)}}function Wt(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t(r/(e-1));return n}var Xr=0,oi=0,ri=0,sh=1e3,cf,ii,sf=0,ur=0,lf=0,ai=typeof performance=="object"&&performance.now?performance:Date,lh=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function ui(){return ur||(lh(M2),ur=ai.now()+lf)}function M2(){ur=0}function fi(){this._call=this._time=this._next=null}fi.prototype=df.prototype={constructor:fi,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?ui():+n)+(e==null?0:+e),!this._next&&ii!==this&&(ii?ii._next=this:cf=this,ii=this),this._call=t,this._time=n,Rs()},stop:function(){this._call&&(this._call=null,this._time=1/0,Rs())}};function df(t,e,n){var r=new fi;return r.restart(t,e,n),r}function dh(){ui(),++Xr;for(var t=cf,e;t;)(e=ur-t._time)>=0&&t._call.call(void 0,e),t=t._next;--Xr}function ch(){ur=(sf=ai.now())+lf,Xr=oi=0;try{dh()}finally{Xr=0,T2(),ur=0}}function S2(){var t=ai.now(),e=t-sf;e>sh&&(lf-=e,sf=t)}function T2(){for(var t,e=cf,n,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:cf=n);ii=t,Rs(r)}function Rs(t){if(!Xr){oi&&(oi=clearTimeout(oi));var e=t-ur;e>24?(t<1/0&&(oi=setTimeout(ch,t-ai.now()-lf)),ri&&(ri=clearInterval(ri))):(ri||(sf=ai.now(),ri=setInterval(S2,sh)),Xr=1,lh(ch))}}function pf(t,e,n){var r=new fi;return e=e==null?0:+e,r.restart(o=>{r.stop(),t(o+e)},e,n),r}var _2=ps("start","end","cancel","interrupt"),C2=[],hh=0,ph=1,hf=2,mf=3,mh=4,gf=5,ci=6;function Dn(t,e,n,r,o,i){var a=t.__transition;if(!a)t.__transition={};else if(n in a)return;A2(t,n,{name:e,index:r,group:o,on:_2,tween:C2,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:hh})}function si(t,e){var n=At(t,e);if(n.state>hh)throw new Error("too late; already scheduled");return n}function Ft(t,e){var n=At(t,e);if(n.state>mf)throw new Error("too late; already running");return n}function At(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function A2(t,e,n){var r=t.__transition,o;r[e]=n,n.timer=df(i,0,n.time);function i(c){n.state=ph,n.timer.restart(a,n.delay,n.time),n.delay<=c&&a(c-n.delay)}function a(c){var s,d,l,p;if(n.state!==ph)return u();for(s in r)if(p=r[s],p.name===n.name){if(p.state===mf)return pf(a);p.state===mh?(p.state=ci,p.timer.stop(),p.on.call("interrupt",t,t.__data__,p.index,p.group),delete r[s]):+s<e&&(p.state=ci,p.timer.stop(),p.on.call("cancel",t,t.__data__,p.index,p.group),delete r[s])}if(pf(function(){n.state===mf&&(n.state=mh,n.timer.restart(f,n.delay,n.time),f(c))}),n.state=hf,n.on.call("start",t,t.__data__,n.index,n.group),n.state===hf){for(n.state=mf,o=new Array(l=n.tween.length),s=0,d=-1;s<l;++s)(p=n.tween[s].value.call(t,t.__data__,n.index,n.group))&&(o[++d]=p);o.length=d+1}}function f(c){for(var s=c<n.duration?n.ease.call(null,c/n.duration):(n.timer.restart(u),n.state=gf,1),d=-1,l=o.length;++d<l;)o[d].call(t,s);n.state===gf&&(n.on.call("end",t,t.__data__,n.index,n.group),u())}function u(){n.state=ci,n.timer.stop(),delete r[e];for(var c in r)return;delete t.__transition}}function xf(t,e){var n=t.__transition,r,o,i=!0,a;if(n){e=e==null?null:e+"";for(a in n){if((r=n[a]).name!==e){i=!1;continue}o=r.state>hf&&r.state<gf,r.state=ci,r.timer.stop(),r.on.call(o?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete n[a]}i&&delete t.__transition}}function gh(t){return this.each(function(){xf(this,t)})}function $2(t,e){var n,r;return function(){var o=Ft(this,t),i=o.tween;if(i!==n){r=n=i;for(var a=0,f=r.length;a<f;++a)if(r[a].name===e){r=r.slice(),r.splice(a,1);break}}o.tween=r}}function E2(t,e,n){var r,o;if(typeof n!="function")throw new Error;return function(){var i=Ft(this,t),a=i.tween;if(a!==r){o=(r=a).slice();for(var f={name:e,value:n},u=0,c=o.length;u<c;++u)if(o[u].name===e){o[u]=f;break}u===c&&o.push(f)}i.tween=o}}function xh(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r=At(this.node(),n).tween,o=0,i=r.length,a;o<i;++o)if((a=r[o]).name===t)return a.value;return null}return this.each((e==null?$2:E2)(n,t,e))}function Hr(t,e,n){var r=t._id;return t.each(function(){var o=Ft(this,r);(o.value||(o.value={}))[e]=n.apply(this,arguments)}),function(o){return At(o,r).value[e]}}function yf(t,e){var n;return(typeof e=="number"?ht:e instanceof ue?we:(n=ue(e))?(e=n,we):ni)(t,e)}function I2(t){return function(){this.removeAttribute(t)}}function k2(t){return function(){this.removeAttributeNS(t.space,t.local)}}function D2(t,e,n){var r,o=n+"",i;return function(){var a=this.getAttribute(t);return a===o?null:a===r?i:i=e(r=a,n)}}function N2(t,e,n){var r,o=n+"",i;return function(){var a=this.getAttributeNS(t.space,t.local);return a===o?null:a===r?i:i=e(r=a,n)}}function R2(t,e,n){var r,o,i;return function(){var a,f=n(this),u;return f==null?void this.removeAttribute(t):(a=this.getAttribute(t),u=f+"",a===u?null:a===r&&u===o?i:(o=u,i=e(r=a,f)))}}function L2(t,e,n){var r,o,i;return function(){var a,f=n(this),u;return f==null?void this.removeAttributeNS(t.space,t.local):(a=this.getAttributeNS(t.space,t.local),u=f+"",a===u?null:a===r&&u===o?i:(o=u,i=e(r=a,f)))}}function yh(t,e){var n=dn(t),r=n==="transform"?ks:yf;return this.attrTween(t,typeof e=="function"?(n.local?L2:R2)(n,r,Hr(this,"attr."+t,e)):e==null?(n.local?k2:I2)(n):(n.local?N2:D2)(n,r,e))}function P2(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function O2(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function F2(t,e){var n,r;function o(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&O2(t,i)),n}return o._value=e,o}function q2(t,e){var n,r;function o(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&P2(t,i)),n}return o._value=e,o}function bh(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;var r=dn(t);return this.tween(n,(r.local?F2:q2)(r,e))}function Y2(t,e){return function(){si(this,t).delay=+e.apply(this,arguments)}}function z2(t,e){return e=+e,function(){si(this,t).delay=e}}function wh(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?Y2:z2)(e,t)):At(this.node(),e).delay}function B2(t,e){return function(){Ft(this,t).duration=+e.apply(this,arguments)}}function U2(t,e){return e=+e,function(){Ft(this,t).duration=e}}function vh(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?B2:U2)(e,t)):At(this.node(),e).duration}function X2(t,e){if(typeof e!="function")throw new Error;return function(){Ft(this,t).ease=e}}function Mh(t){var e=this._id;return arguments.length?this.each(X2(e,t)):At(this.node(),e).ease}function H2(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;Ft(this,t).ease=n}}function Sh(t){if(typeof t!="function")throw new Error;return this.each(H2(this._id,t))}function Th(t){typeof t!="function"&&(t=jo(t));for(var e=this._groups,n=e.length,r=new Array(n),o=0;o<n;++o)for(var i=e[o],a=i.length,f=r[o]=[],u,c=0;c<a;++c)(u=i[c])&&t.call(u,u.__data__,c,i)&&f.push(u);return new ee(r,this._parents,this._name,this._id)}function _h(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,o=n.length,i=Math.min(r,o),a=new Array(r),f=0;f<i;++f)for(var u=e[f],c=n[f],s=u.length,d=a[f]=new Array(s),l,p=0;p<s;++p)(l=u[p]||c[p])&&(d[p]=l);for(;f<r;++f)a[f]=e[f];return new ee(a,this._parents,this._name,this._id)}function W2(t){return(t+"").trim().split(/^|\s+/).every(function(e){var n=e.indexOf(".");return n>=0&&(e=e.slice(0,n)),!e||e==="start"})}function G2(t,e,n){var r,o,i=W2(e)?si:Ft;return function(){var a=i(this,t),f=a.on;f!==r&&(o=(r=f).copy()).on(e,n),a.on=o}}function Ch(t,e){var n=this._id;return arguments.length<2?At(this.node(),n).on.on(t):this.each(G2(n,t,e))}function V2(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function Ah(){return this.on("end.remove",V2(this._id))}function $h(t){var e=this._name,n=this._id;typeof t!="function"&&(t=nr(t));for(var r=this._groups,o=r.length,i=new Array(o),a=0;a<o;++a)for(var f=r[a],u=f.length,c=i[a]=new Array(u),s,d,l=0;l<u;++l)(s=f[l])&&(d=t.call(s,s.__data__,l,f))&&("__data__"in s&&(d.__data__=s.__data__),c[l]=d,Dn(c[l],e,n,l,c,At(s,n)));return new ee(i,this._parents,e,n)}function Eh(t){var e=this._name,n=this._id;typeof t!="function"&&(t=Vo(t));for(var r=this._groups,o=r.length,i=[],a=[],f=0;f<o;++f)for(var u=r[f],c=u.length,s,d=0;d<c;++d)if(s=u[d]){for(var l=t.call(s,s.__data__,d,u),p,m=At(s,n),h=0,g=l.length;h<g;++h)(p=l[h])&&Dn(p,e,n,h,l,m);i.push(l),a.push(s)}return new ee(i,a,e,n)}var j2=mn.prototype.constructor;function Ih(){return new j2(this._groups,this._parents)}function Z2(t,e){var n,r,o;return function(){var i=En(this,t),a=(this.style.removeProperty(t),En(this,t));return i===a?null:i===n&&a===r?o:o=e(n=i,r=a)}}function kh(t){return function(){this.style.removeProperty(t)}}function K2(t,e,n){var r,o=n+"",i;return function(){var a=En(this,t);return a===o?null:a===r?i:i=e(r=a,n)}}function Q2(t,e,n){var r,o,i;return function(){var a=En(this,t),f=n(this),u=f+"";return f==null&&(u=f=(this.style.removeProperty(t),En(this,t))),a===u?null:a===r&&u===o?i:(o=u,i=e(r=a,f))}}function J2(t,e){var n,r,o,i="style."+e,a="end."+i,f;return function(){var u=Ft(this,t),c=u.on,s=u.value[i]==null?f||(f=kh(e)):void 0;(c!==n||o!==s)&&(r=(n=c).copy()).on(a,o=s),u.on=r}}function Dh(t,e,n){var r=(t+="")=="transform"?Is:yf;return e==null?this.styleTween(t,Z2(t,r)).on("end.style."+t,kh(t)):typeof e=="function"?this.styleTween(t,Q2(t,r,Hr(this,"style."+t,e))).each(J2(this._id,t)):this.styleTween(t,K2(t,r,e),n).on("end.style."+t,null)}function tw(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function ew(t,e,n){var r,o;function i(){var a=e.apply(this,arguments);return a!==o&&(r=(o=a)&&tw(t,a,n)),r}return i._value=e,i}function Nh(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;return this.tween(r,ew(t,e,n??""))}function nw(t){return function(){this.textContent=t}}function rw(t){return function(){var e=t(this);this.textContent=e??""}}function Rh(t){return this.tween("text",typeof t=="function"?rw(Hr(this,"text",t)):nw(t==null?"":t+""))}function ow(t){return function(e){this.textContent=t.call(this,e)}}function iw(t){var e,n;function r(){var o=t.apply(this,arguments);return o!==n&&(e=(n=o)&&ow(o)),e}return r._value=t,r}function Lh(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,iw(t))}function Ph(){for(var t=this._name,e=this._id,n=bf(),r=this._groups,o=r.length,i=0;i<o;++i)for(var a=r[i],f=a.length,u,c=0;c<f;++c)if(u=a[c]){var s=At(u,e);Dn(u,t,n,c,a,{time:s.time+s.delay+s.duration,delay:0,duration:s.duration,ease:s.ease})}return new ee(r,this._parents,t,n)}function Oh(){var t,e,n=this,r=n._id,o=n.size();return new Promise(function(i,a){var f={value:a},u={value:function(){--o===0&&i()}};n.each(function(){var c=Ft(this,r),s=c.on;s!==t&&(e=(t=s).copy(),e._.cancel.push(f),e._.interrupt.push(f),e._.end.push(u)),c.on=e}),o===0&&i()})}var aw=0;function ee(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Fh(t){return mn().transition(t)}function bf(){return++aw}var yn=mn.prototype;ee.prototype=Fh.prototype={constructor:ee,select:$h,selectAll:Eh,selectChild:yn.selectChild,selectChildren:yn.selectChildren,filter:Th,merge:_h,selection:Ih,transition:Ph,call:yn.call,nodes:yn.nodes,node:yn.node,size:yn.size,empty:yn.empty,each:yn.each,on:Ch,attr:yh,attrTween:bh,style:Dh,styleTween:Nh,text:Rh,textTween:Lh,remove:Ah,tween:xh,delay:wh,duration:vh,ease:Mh,easeVarying:Sh,end:Oh,[Symbol.iterator]:yn[Symbol.iterator]};function wf(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var fw={time:null,delay:0,duration:250,ease:wf};function uw(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function qh(t){var e,n;t instanceof ee?(e=t._id,t=t._name):(e=bf(),(n=fw).time=ui(),t=t==null?null:t+"");for(var r=this._groups,o=r.length,i=0;i<o;++i)for(var a=r[i],f=a.length,u,c=0;c<f;++c)(u=a[c])&&Dn(u,t,e,c,a,n||uw(u,e));return new ee(r,this._parents,t,e)}mn.prototype.interrupt=gh;mn.prototype.transition=qh;var{abs:kC,max:DC,min:NC}=Math;function Yh(t){return[+t[0],+t[1]]}function cw(t){return[Yh(t[0]),Yh(t[1])]}var RC={name:"x",handles:["w","e"].map(Ls),input:function(t,e){return t==null?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},LC={name:"y",handles:["n","s"].map(Ls),input:function(t,e){return t==null?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},PC={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(Ls),input:function(t){return t==null?null:cw(t)},output:function(t){return t}};function Ls(t){return{type:t}}var Ps=Math.PI,Os=2*Ps,cr=1e-6,sw=Os-cr;function zh(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}function lw(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return zh;let n=10**e;return function(r){this._+=r[0];for(let o=1,i=r.length;o<i;++o)this._+=Math.round(arguments[o]*n)/n+r[o]}}var Wr=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?zh:lw(e)}moveTo(e,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,n){this._append`L${this._x1=+e},${this._y1=+n}`}quadraticCurveTo(e,n,r,o){this._append`Q${+e},${+n},${this._x1=+r},${this._y1=+o}`}bezierCurveTo(e,n,r,o,i,a){this._append`C${+e},${+n},${+r},${+o},${this._x1=+i},${this._y1=+a}`}arcTo(e,n,r,o,i){if(e=+e,n=+n,r=+r,o=+o,i=+i,i<0)throw new Error(`negative radius: ${i}`);let a=this._x1,f=this._y1,u=r-e,c=o-n,s=a-e,d=f-n,l=s*s+d*d;if(this._x1===null)this._append`M${this._x1=e},${this._y1=n}`;else if(l>cr)if(!(Math.abs(d*u-c*s)>cr)||!i)this._append`L${this._x1=e},${this._y1=n}`;else{let p=r-a,m=o-f,h=u*u+c*c,g=p*p+m*m,b=Math.sqrt(h),x=Math.sqrt(l),M=i*Math.tan((Ps-Math.acos((h+l-g)/(2*b*x)))/2),y=M/x,w=M/b;Math.abs(y-1)>cr&&this._append`L${e+y*s},${n+y*d}`,this._append`A${i},${i},0,0,${+(d*p>s*m)},${this._x1=e+w*u},${this._y1=n+w*c}`}}arc(e,n,r,o,i,a){if(e=+e,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let f=r*Math.cos(o),u=r*Math.sin(o),c=e+f,s=n+u,d=1^a,l=a?o-i:i-o;this._x1===null?this._append`M${c},${s}`:(Math.abs(this._x1-c)>cr||Math.abs(this._y1-s)>cr)&&this._append`L${c},${s}`,r&&(l<0&&(l=l%Os+Os),l>sw?this._append`A${r},${r},0,1,${d},${e-f},${n-u}A${r},${r},0,1,${d},${this._x1=c},${this._y1=s}`:l>cr&&this._append`A${r},${r},0,${+(l>=Ps)},${d},${this._x1=e+r*Math.cos(i)},${this._y1=n+r*Math.sin(i)}`)}rect(e,n,r,o){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}h${r=+r}v${+o}h${-r}Z`}toString(){return this._}};function Bh(){return new Wr}Bh.prototype=Wr.prototype;function Gr(t=3){return new Wr(+t)}function Uh(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function sr(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function He(t){return t=sr(Math.abs(t)),t?t[1]:NaN}function Xh(t,e){return function(n,r){for(var o=n.length,i=[],a=0,f=t[0],u=0;o>0&&f>0&&(u+f+1>r&&(f=Math.max(1,r-u)),i.push(n.substring(o-=f,o+f)),!((u+=f+1)>r));)f=t[a=(a+1)%t.length];return i.reverse().join(e)}}function Hh(t){return function(e){return e.replace(/[0-9]/g,function(n){return t[+n]})}}var dw=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function We(t){if(!(e=dw.exec(t)))throw new Error("invalid format: "+t);var e;return new vf({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}We.prototype=vf.prototype;function vf(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}vf.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 Wh(t){t:for(var e=t.length,n=1,r=-1,o;n<e;++n)switch(t[n]){case".":r=o=n;break;case"0":r===0&&(r=n),o=n;break;default:if(!+t[n])break t;r>0&&(r=0);break}return r>0?t.slice(0,r)+t.slice(o+1):t}var Fs;function Gh(t,e){var n=sr(t,e);if(!n)return t+"";var r=n[0],o=n[1],i=o-(Fs=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+sr(t,Math.max(0,e+i-1))[0]}function qs(t,e){var n=sr(t,e);if(!n)return t+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}var Ys={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:Uh,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>qs(t*100,e),r:qs,s:Gh,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function zs(t){return t}var Vh=Array.prototype.map,jh=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function Zh(t){var e=t.grouping===void 0||t.thousands===void 0?zs:Xh(Vh.call(t.grouping,Number),t.thousands+""),n=t.currency===void 0?"":t.currency[0]+"",r=t.currency===void 0?"":t.currency[1]+"",o=t.decimal===void 0?".":t.decimal+"",i=t.numerals===void 0?zs:Hh(Vh.call(t.numerals,String)),a=t.percent===void 0?"%":t.percent+"",f=t.minus===void 0?"\u2212":t.minus+"",u=t.nan===void 0?"NaN":t.nan+"";function c(d){d=We(d);var l=d.fill,p=d.align,m=d.sign,h=d.symbol,g=d.zero,b=d.width,x=d.comma,M=d.precision,y=d.trim,w=d.type;w==="n"?(x=!0,w="g"):Ys[w]||(M===void 0&&(M=12),y=!0,w="g"),(g||l==="0"&&p==="=")&&(g=!0,l="0",p="=");var v=h==="$"?n:h==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",T=h==="$"?r:/[%p]/.test(w)?a:"",E=Ys[w],I=/[defgprs%]/.test(w);M=M===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,M)):Math.max(0,Math.min(20,M));function D(_){var L=v,F=T,P,S,A;if(w==="c")F=E(_)+F,_="";else{_=+_;var N=_<0||1/_<0;if(_=isNaN(_)?u:E(Math.abs(_),M),y&&(_=Wh(_)),N&&+_==0&&m!=="+"&&(N=!1),L=(N?m==="("?m:f:m==="-"||m==="("?"":m)+L,F=(w==="s"?jh[8+Fs/3]:"")+F+(N&&m==="("?")":""),I){for(P=-1,S=_.length;++P<S;)if(A=_.charCodeAt(P),48>A||A>57){F=(A===46?o+_.slice(P+1):_.slice(P))+F,_=_.slice(0,P);break}}}x&&!g&&(_=e(_,1/0));var O=L.length+_.length+F.length,R=O<b?new Array(b-O+1).join(l):"";switch(x&&g&&(_=e(R+_,R.length?b-F.length:1/0),R=""),p){case"<":_=L+_+F+R;break;case"=":_=L+R+_+F;break;case"^":_=R.slice(0,O=R.length>>1)+L+_+F+R.slice(O);break;default:_=R+L+_+F;break}return i(_)}return D.toString=function(){return d+""},D}function s(d,l){var p=c((d=We(d),d.type="f",d)),m=Math.max(-8,Math.min(8,Math.floor(He(l)/3)))*3,h=Math.pow(10,-m),g=jh[8+m/3];return function(b){return p(h*b)+g}}return{format:c,formatPrefix:s}}var Mf,Ge,Sf;Bs({thousands:",",grouping:[3],currency:["$",""]});function Bs(t){return Mf=Zh(t),Ge=Mf.format,Sf=Mf.formatPrefix,Mf}function Us(t){return Math.max(0,-He(Math.abs(t)))}function Xs(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(He(e)/3)))*3-He(Math.abs(t)))}function Hs(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,He(e)-He(t))+1}var U=1e-6,Tf=1e-12,V=Math.PI,ft=V/2,Ws=V/4,Nt=V*2,$t=180/V,ut=V/180,K=Math.abs,ve=Math.atan,qt=Math.atan2,B=Math.cos;var _f=Math.exp;var lr=Math.log,Cf=Math.pow,z=Math.sin,Gt=Math.sign||function(t){return t>0?1:t<0?-1:0},mt=Math.sqrt,Vr=Math.tan;function Af(t){return t>1?0:t<-1?V:Math.acos(t)}function Mt(t){return t>1?ft:t<-1?-ft:Math.asin(t)}function Rt(){}function $f(t,e){t&&Qh.hasOwnProperty(t.type)&&Qh[t.type](t,e)}var Kh={Feature:function(t,e){$f(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,o=n.length;++r<o;)$f(n[r].geometry,e)}},Qh={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,o=n.length;++r<o;)t=n[r],e.point(t[0],t[1],t[2])},LineString:function(t,e){Gs(t.coordinates,e,0)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,o=n.length;++r<o;)Gs(n[r],e,0)},Polygon:function(t,e){Jh(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,o=n.length;++r<o;)Jh(n[r],e)},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,o=n.length;++r<o;)$f(n[r],e)}};function Gs(t,e,n){var r=-1,o=t.length-n,i;for(e.lineStart();++r<o;)i=t[r],e.point(i[0],i[1],i[2]);e.lineEnd()}function Jh(t,e){var n=-1,r=t.length;for(e.polygonStart();++n<r;)Gs(t[n],e,1);e.polygonEnd()}function Ie(t,e){t&&Kh.hasOwnProperty(t.type)?Kh[t.type](t,e):$f(t,e)}function li(t){return[qt(t[1],t[0]),Mt(t[2])]}function Ve(t){var e=t[0],n=t[1],r=B(n);return[r*B(e),r*z(e),z(n)]}function di(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function jr(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function Ef(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function pi(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function mi(t){var e=mt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}function hi(t,e){function n(r,o){return r=t(r,o),e(r[0],r[1])}return t.invert&&e.invert&&(n.invert=function(r,o){return r=e.invert(r,o),r&&t.invert(r[0],r[1])}),n}function Vs(t,e){return K(t)>V&&(t-=Math.round(t/Nt)*Nt),[t,e]}Vs.invert=Vs;function js(t,e,n){return(t%=Nt)?e||n?hi(e0(t),n0(e,n)):e0(t):e||n?n0(e,n):Vs}function t0(t){return function(e,n){return e+=t,K(e)>V&&(e-=Math.round(e/Nt)*Nt),[e,n]}}function e0(t){var e=t0(t);return e.invert=t0(-t),e}function n0(t,e){var n=B(t),r=z(t),o=B(e),i=z(e);function a(f,u){var c=B(u),s=B(f)*c,d=z(f)*c,l=z(u),p=l*n+s*r;return[qt(d*o-p*i,s*n-l*r),Mt(p*o+d*i)]}return a.invert=function(f,u){var c=B(u),s=B(f)*c,d=z(f)*c,l=z(u),p=l*o-d*i;return[qt(d*o+l*i,s*n+p*r),Mt(p*n-s*r)]},a}function r0(t){t=js(t[0]*ut,t[1]*ut,t.length>2?t[2]*ut:0);function e(n){return n=t(n[0]*ut,n[1]*ut),n[0]*=$t,n[1]*=$t,n}return e.invert=function(n){return n=t.invert(n[0]*ut,n[1]*ut),n[0]*=$t,n[1]*=$t,n},e}function i0(t,e,n,r,o,i){if(n){var a=B(e),f=z(e),u=r*n;o==null?(o=e+r*Nt,i=e-u/2):(o=o0(a,o),i=o0(a,i),(r>0?o<i:o>i)&&(o+=r*Nt));for(var c,s=o;r>0?s>i:s<i;s-=u)c=li([a,-f*B(s),-f*z(s)]),t.point(c[0],c[1])}}function o0(t,e){e=Ve(e),e[0]-=t,mi(e);var n=Af(-e[1]);return((-e[2]<0?-n:n)+Nt-U)%Nt}function If(){var t=[],e;return{point:function(n,r,o){e.push([n,r,o])},lineStart:function(){t.push(e=[])},lineEnd:Rt,rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))},result:function(){var n=t;return t=[],e=null,n}}}function Zr(t,e){return K(t[0]-e[0])<U&&K(t[1]-e[1])<U}function kf(t,e,n,r){this.x=t,this.z=e,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function Df(t,e,n,r,o){var i=[],a=[],f,u;if(t.forEach(function(m){if(!((h=m.length-1)<=0)){var h,g=m[0],b=m[h],x;if(Zr(g,b)){if(!g[2]&&!b[2]){for(o.lineStart(),f=0;f<h;++f)o.point((g=m[f])[0],g[1]);o.lineEnd();return}b[0]+=2*U}i.push(x=new kf(g,m,null,!0)),a.push(x.o=new kf(g,null,x,!1)),i.push(x=new kf(b,m,null,!1)),a.push(x.o=new kf(b,null,x,!0))}}),!!i.length){for(a.sort(e),a0(i),a0(a),f=0,u=a.length;f<u;++f)a[f].e=n=!n;for(var c=i[0],s,d;;){for(var l=c,p=!0;l.v;)if((l=l.n)===c)return;s=l.z,o.lineStart();do{if(l.v=l.o.v=!0,l.e){if(p)for(f=0,u=s.length;f<u;++f)o.point((d=s[f])[0],d[1]);else r(l.x,l.n.x,1,o);l=l.n}else{if(p)for(s=l.p.z,f=s.length-1;f>=0;--f)o.point((d=s[f])[0],d[1]);else r(l.x,l.p.x,-1,o);l=l.p}l=l.o,s=l.z,p=!p}while(!l.v);o.lineEnd()}}}function a0(t){if(e=t.length){for(var e,n=0,r=t[0],o;++n<e;)r.n=o=t[n],o.p=r,r=o;r.n=o=t[0],o.p=r}}function Zs(t){return K(t[0])<=V?t[0]:Gt(t[0])*((K(t[0])+V)%Nt-V)}function f0(t,e){var n=Zs(e),r=e[1],o=z(r),i=[z(n),-B(n),0],a=0,f=0,u=new ae;o===1?r=ft+U:o===-1&&(r=-ft-U);for(var c=0,s=t.length;c<s;++c)if(l=(d=t[c]).length)for(var d,l,p=d[l-1],m=Zs(p),h=p[1]/2+Ws,g=z(h),b=B(h),x=0;x<l;++x,m=y,g=v,b=T,p=M){var M=d[x],y=Zs(M),w=M[1]/2+Ws,v=z(w),T=B(w),E=y-m,I=E>=0?1:-1,D=I*E,_=D>V,L=g*v;if(u.add(qt(L*I*z(D),b*T+L*B(D))),a+=_?E+I*Nt:E,_^m>=n^y>=n){var F=jr(Ve(p),Ve(M));mi(F);var P=jr(i,F);mi(P);var S=(_^E>=0?-1:1)*Mt(P[2]);(r>S||r===S&&(F[0]||F[1]))&&(f+=_^E>=0?1:-1)}}return(a<-U||a<U&&u<-Tf)^f&1}function Nf(t,e,n,r){return function(o){var i=e(o),a=If(),f=e(a),u=!1,c,s,d,l={point:p,lineStart:h,lineEnd:g,polygonStart:function(){l.point=b,l.lineStart=x,l.lineEnd=M,s=[],c=[]},polygonEnd:function(){l.point=p,l.lineStart=h,l.lineEnd=g,s=Or(s);var y=f0(c,r);s.length?(u||(o.polygonStart(),u=!0),Df(s,mw,y,n,o)):y&&(u||(o.polygonStart(),u=!0),o.lineStart(),n(null,null,1,o),o.lineEnd()),u&&(o.polygonEnd(),u=!1),s=c=null},sphere:function(){o.polygonStart(),o.lineStart(),n(null,null,1,o),o.lineEnd(),o.polygonEnd()}};function p(y,w){t(y,w)&&o.point(y,w)}function m(y,w){i.point(y,w)}function h(){l.point=m,i.lineStart()}function g(){l.point=p,i.lineEnd()}function b(y,w){d.push([y,w]),f.point(y,w)}function x(){f.lineStart(),d=[]}function M(){b(d[0][0],d[0][1]),f.lineEnd();var y=f.clean(),w=a.result(),v,T=w.length,E,I,D;if(d.pop(),c.push(d),d=null,!!T){if(y&1){if(I=w[0],(E=I.length-1)>0){for(u||(o.polygonStart(),u=!0),o.lineStart(),v=0;v<E;++v)o.point((D=I[v])[0],D[1]);o.lineEnd()}return}T>1&&y&2&&w.push(w.pop().concat(w.shift())),s.push(w.filter(pw))}}return l}}function pw(t){return t.length>1}function mw(t,e){return((t=t.x)[0]<0?t[1]-ft-U:ft-t[1])-((e=e.x)[0]<0?e[1]-ft-U:ft-e[1])}var Ks=Nf(function(){return!0},hw,xw,[-V,-ft]);function hw(t){var e=NaN,n=NaN,r=NaN,o;return{lineStart:function(){t.lineStart(),o=1},point:function(i,a){var f=i>0?V:-V,u=K(i-e);K(u-V)<U?(t.point(e,n=(n+a)/2>0?ft:-ft),t.point(r,n),t.lineEnd(),t.lineStart(),t.point(f,n),t.point(i,n),o=0):r!==f&&u>=V&&(K(e-r)<U&&(e-=r*U),K(i-f)<U&&(i-=f*U),n=gw(e,n,i,a),t.point(r,n),t.lineEnd(),t.lineStart(),t.point(f,n),o=0),t.point(e=i,n=a),r=f},lineEnd:function(){t.lineEnd(),e=n=NaN},clean:function(){return 2-o}}}function gw(t,e,n,r){var o,i,a=z(t-n);return K(a)>U?ve((z(e)*(i=B(r))*z(n)-z(r)*(o=B(e))*z(t))/(o*i*a)):(e+r)/2}function xw(t,e,n,r){var o;if(t==null)o=n*ft,r.point(-V,o),r.point(0,o),r.point(V,o),r.point(V,0),r.point(V,-o),r.point(0,-o),r.point(-V,-o),r.point(-V,0),r.point(-V,o);else if(K(t[0]-e[0])>U){var i=t[0]<e[0]?V:-V;o=n*i/2,r.point(-i,o),r.point(0,o),r.point(i,o)}else r.point(e[0],e[1])}function u0(t){var e=B(t),n=6*ut,r=e>0,o=K(e)>U;function i(s,d,l,p){i0(p,t,n,l,s,d)}function a(s,d){return B(s)*B(d)>e}function f(s){var d,l,p,m,h;return{lineStart:function(){m=p=!1,h=1},point:function(g,b){var x=[g,b],M,y=a(g,b),w=r?y?0:c(g,b):y?c(g+(g<0?V:-V),b):0;if(!d&&(m=p=y)&&s.lineStart(),y!==p&&(M=u(d,x),(!M||Zr(d,M)||Zr(x,M))&&(x[2]=1)),y!==p)h=0,y?(s.lineStart(),M=u(x,d),s.point(M[0],M[1])):(M=u(d,x),s.point(M[0],M[1],2),s.lineEnd()),d=M;else if(o&&d&&r^y){var v;!(w&l)&&(v=u(x,d,!0))&&(h=0,r?(s.lineStart(),s.point(v[0][0],v[0][1]),s.point(v[1][0],v[1][1]),s.lineEnd()):(s.point(v[1][0],v[1][1]),s.lineEnd(),s.lineStart(),s.point(v[0][0],v[0][1],3)))}y&&(!d||!Zr(d,x))&&s.point(x[0],x[1]),d=x,p=y,l=w},lineEnd:function(){p&&s.lineEnd(),d=null},clean:function(){return h|(m&&p)<<1}}}function u(s,d,l){var p=Ve(s),m=Ve(d),h=[1,0,0],g=jr(p,m),b=di(g,g),x=g[0],M=b-x*x;if(!M)return!l&&s;var y=e*b/M,w=-e*x/M,v=jr(h,g),T=pi(h,y),E=pi(g,w);Ef(T,E);var I=v,D=di(T,I),_=di(I,I),L=D*D-_*(di(T,T)-1);if(!(L<0)){var F=mt(L),P=pi(I,(-D-F)/_);if(Ef(P,T),P=li(P),!l)return P;var S=s[0],A=d[0],N=s[1],O=d[1],R;A<S&&(R=S,S=A,A=R);var tt=A-S,Z=K(tt-V)<U,W=Z||tt<U;if(!Z&&O<N&&(R=N,N=O,O=R),W?Z?N+O>0^P[1]<(K(P[0]-S)<U?N:O):N<=P[1]&&P[1]<=O:tt>V^(S<=P[0]&&P[0]<=A)){var Q=pi(I,(-D+F)/_);return Ef(Q,T),[P,li(Q)]}}}function c(s,d){var l=r?t:V-t,p=0;return s<-l?p|=1:s>l&&(p|=2),d<-l?p|=4:d>l&&(p|=8),p}return Nf(a,f,i,r?[0,-t]:[-V,t-V])}function c0(t,e,n,r,o,i){var a=t[0],f=t[1],u=e[0],c=e[1],s=0,d=1,l=u-a,p=c-f,m;if(m=n-a,!(!l&&m>0)){if(m/=l,l<0){if(m<s)return;m<d&&(d=m)}else if(l>0){if(m>d)return;m>s&&(s=m)}if(m=o-a,!(!l&&m<0)){if(m/=l,l<0){if(m>d)return;m>s&&(s=m)}else if(l>0){if(m<s)return;m<d&&(d=m)}if(m=r-f,!(!p&&m>0)){if(m/=p,p<0){if(m<s)return;m<d&&(d=m)}else if(p>0){if(m>d)return;m>s&&(s=m)}if(m=i-f,!(!p&&m<0)){if(m/=p,p<0){if(m>d)return;m>s&&(s=m)}else if(p>0){if(m<s)return;m<d&&(d=m)}return s>0&&(t[0]=a+s*l,t[1]=f+s*p),d<1&&(e[0]=a+d*l,e[1]=f+d*p),!0}}}}}var gi=1e9,Rf=-gi;function Kr(t,e,n,r){function o(c,s){return t<=c&&c<=n&&e<=s&&s<=r}function i(c,s,d,l){var p=0,m=0;if(c==null||(p=a(c,d))!==(m=a(s,d))||u(c,s)<0^d>0)do l.point(p===0||p===3?t:n,p>1?r:e);while((p=(p+d+4)%4)!==m);else l.point(s[0],s[1])}function a(c,s){return K(c[0]-t)<U?s>0?0:3:K(c[0]-n)<U?s>0?2:1:K(c[1]-e)<U?s>0?1:0:s>0?3:2}function f(c,s){return u(c.x,s.x)}function u(c,s){var d=a(c,1),l=a(s,1);return d!==l?d-l:d===0?s[1]-c[1]:d===1?c[0]-s[0]:d===2?c[1]-s[1]:s[0]-c[0]}return function(c){var s=c,d=If(),l,p,m,h,g,b,x,M,y,w,v,T={point:E,lineStart:L,lineEnd:F,polygonStart:D,polygonEnd:_};function E(S,A){o(S,A)&&s.point(S,A)}function I(){for(var S=0,A=0,N=p.length;A<N;++A)for(var O=p[A],R=1,tt=O.length,Z=O[0],W,Q,at=Z[0],Ut=Z[1];R<tt;++R)W=at,Q=Ut,Z=O[R],at=Z[0],Ut=Z[1],Q<=r?Ut>r&&(at-W)*(r-Q)>(Ut-Q)*(t-W)&&++S:Ut<=r&&(at-W)*(r-Q)<(Ut-Q)*(t-W)&&--S;return S}function D(){s=d,l=[],p=[],v=!0}function _(){var S=I(),A=v&&S,N=(l=Or(l)).length;(A||N)&&(c.polygonStart(),A&&(c.lineStart(),i(null,null,1,c),c.lineEnd()),N&&Df(l,f,S,i,c),c.polygonEnd()),s=c,l=p=m=null}function L(){T.point=P,p&&p.push(m=[]),w=!0,y=!1,x=M=NaN}function F(){l&&(P(h,g),b&&y&&d.rejoin(),l.push(d.result())),T.point=E,y&&s.lineEnd()}function P(S,A){var N=o(S,A);if(p&&m.push([S,A]),w)h=S,g=A,b=N,w=!1,N&&(s.lineStart(),s.point(S,A));else if(N&&y)s.point(S,A);else{var O=[x=Math.max(Rf,Math.min(gi,x)),M=Math.max(Rf,Math.min(gi,M))],R=[S=Math.max(Rf,Math.min(gi,S)),A=Math.max(Rf,Math.min(gi,A))];c0(O,R,t,e,n,r)?(y||(s.lineStart(),s.point(O[0],O[1])),s.point(R[0],R[1]),N||s.lineEnd(),v=!1):N&&(s.lineStart(),s.point(S,A),v=!1)}x=S,M=A,y=N}return T}}var xi=t=>t;var Qs=new ae,Js=new ae,s0,l0,tl,el,Nn={point:Rt,lineStart:Rt,lineEnd:Rt,polygonStart:function(){Nn.lineStart=yw,Nn.lineEnd=ww},polygonEnd:function(){Nn.lineStart=Nn.lineEnd=Nn.point=Rt,Qs.add(K(Js)),Js=new ae},result:function(){var t=Qs/2;return Qs=new ae,t}};function yw(){Nn.point=bw}function bw(t,e){Nn.point=d0,s0=tl=t,l0=el=e}function d0(t,e){Js.add(el*t-tl*e),tl=t,el=e}function ww(){d0(s0,l0)}var nl=Nn;var Qr=1/0,Lf=Qr,yi=-Qr,Pf=yi,vw={point:Mw,lineStart:Rt,lineEnd:Rt,polygonStart:Rt,polygonEnd:Rt,result:function(){var t=[[Qr,Lf],[yi,Pf]];return yi=Pf=-(Lf=Qr=1/0),t}};function Mw(t,e){t<Qr&&(Qr=t),t>yi&&(yi=t),e<Lf&&(Lf=e),e>Pf&&(Pf=e)}var Jr=vw;var rl=0,ol=0,bi=0,Of=0,Ff=0,to=0,il=0,al=0,wi=0,h0,g0,je,Ze,ke={point:dr,lineStart:p0,lineEnd:m0,polygonStart:function(){ke.lineStart=_w,ke.lineEnd=Cw},polygonEnd:function(){ke.point=dr,ke.lineStart=p0,ke.lineEnd=m0},result:function(){var t=wi?[il/wi,al/wi]:to?[Of/to,Ff/to]:bi?[rl/bi,ol/bi]:[NaN,NaN];return rl=ol=bi=Of=Ff=to=il=al=wi=0,t}};function dr(t,e){rl+=t,ol+=e,++bi}function p0(){ke.point=Sw}function Sw(t,e){ke.point=Tw,dr(je=t,Ze=e)}function Tw(t,e){var n=t-je,r=e-Ze,o=mt(n*n+r*r);Of+=o*(je+t)/2,Ff+=o*(Ze+e)/2,to+=o,dr(je=t,Ze=e)}function m0(){ke.point=dr}function _w(){ke.point=Aw}function Cw(){x0(h0,g0)}function Aw(t,e){ke.point=x0,dr(h0=je=t,g0=Ze=e)}function x0(t,e){var n=t-je,r=e-Ze,o=mt(n*n+r*r);Of+=o*(je+t)/2,Ff+=o*(Ze+e)/2,to+=o,o=Ze*t-je*e,il+=o*(je+t),al+=o*(Ze+e),wi+=o*3,dr(je=t,Ze=e)}var fl=ke;function qf(t){this._context=t}qf.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:{this._context.moveTo(t,e),this._point=1;break}case 1:{this._context.lineTo(t,e);break}default:{this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,Nt);break}}},result:Rt};var cl=new ae,ul,y0,b0,vi,Mi,Yf={point:Rt,lineStart:function(){Yf.point=$w},lineEnd:function(){ul&&w0(y0,b0),Yf.point=Rt},polygonStart:function(){ul=!0},polygonEnd:function(){ul=null},result:function(){var t=+cl;return cl=new ae,t}};function $w(t,e){Yf.point=w0,y0=vi=t,b0=Mi=e}function w0(t,e){vi-=t,Mi-=e,cl.add(mt(vi*vi+Mi*Mi)),vi=t,Mi=e}var sl=Yf;var v0,zf,M0,S0,eo=class{constructor(e){this._append=e==null?T0:Ew(e),this._radius=4.5,this._=""}pointRadius(e){return this._radius=+e,this}polygonStart(){this._line=0}polygonEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){this._line===0&&(this._+="Z"),this._point=NaN}point(e,n){switch(this._point){case 0:{this._append`M${e},${n}`,this._point=1;break}case 1:{this._append`L${e},${n}`;break}default:{if(this._append`M${e},${n}`,this._radius!==M0||this._append!==zf){let r=this._radius,o=this._;this._="",this._append`m0,${r}a${r},${r} 0 1,1 0,${-2*r}a${r},${r} 0 1,1 0,${2*r}z`,M0=r,zf=this._append,S0=this._,this._=o}this._+=S0;break}}}result(){let e=this._;return this._="",e.length?e:null}};function T0(t){let e=1;this._+=t[0];for(let n=t.length;e<n;++e)this._+=arguments[e]+t[e]}function Ew(t){let e=Math.floor(t);if(!(e>=0))throw new RangeError(`invalid digits: ${t}`);if(e>15)return T0;if(e!==v0){let n=10**e;v0=e,zf=function(o){let i=1;this._+=o[0];for(let a=o.length;i<a;++i)this._+=Math.round(arguments[i]*n)/n+o[i]}}return zf}function Si(t,e){let n=3,r=4.5,o,i;function a(f){return f&&(typeof r=="function"&&i.pointRadius(+r.apply(this,arguments)),Ie(f,o(i))),i.result()}return a.area=function(f){return Ie(f,o(nl)),nl.result()},a.measure=function(f){return Ie(f,o(sl)),sl.result()},a.bounds=function(f){return Ie(f,o(Jr)),Jr.result()},a.centroid=function(f){return Ie(f,o(fl)),fl.result()},a.projection=function(f){return arguments.length?(o=f==null?(t=null,xi):(t=f).stream,a):t},a.context=function(f){return arguments.length?(i=f==null?(e=null,new eo(n)):new qf(e=f),typeof r!="function"&&i.pointRadius(r),a):e},a.pointRadius=function(f){return arguments.length?(r=typeof f=="function"?f:(i.pointRadius(+f),+f),a):r},a.digits=function(f){if(!arguments.length)return n;if(f==null)n=null;else{let u=Math.floor(f);if(!(u>=0))throw new RangeError(`invalid digits: ${f}`);n=u}return e===null&&(i=new eo(n)),a},a.projection(t).digits(n).context(e)}function Ti(t){return{stream:no(t)}}function no(t){return function(e){var n=new ll;for(var r in t)n[r]=t[r];return n.stream=e,n}}function ll(){}ll.prototype={constructor:ll,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function dl(t,e,n){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),r!=null&&t.clipExtent(null),Ie(n,t.stream(Jr)),e(Jr.result()),r!=null&&t.clipExtent(r),t}function _i(t,e,n){return dl(t,function(r){var o=e[1][0]-e[0][0],i=e[1][1]-e[0][1],a=Math.min(o/(r[1][0]-r[0][0]),i/(r[1][1]-r[0][1])),f=+e[0][0]+(o-a*(r[1][0]+r[0][0]))/2,u=+e[0][1]+(i-a*(r[1][1]+r[0][1]))/2;t.scale(150*a).translate([f,u])},n)}function Bf(t,e,n){return _i(t,[[0,0],e],n)}function Uf(t,e,n){return dl(t,function(r){var o=+e,i=o/(r[1][0]-r[0][0]),a=(o-i*(r[1][0]+r[0][0]))/2,f=-i*r[0][1];t.scale(150*i).translate([a,f])},n)}function Xf(t,e,n){return dl(t,function(r){var o=+e,i=o/(r[1][1]-r[0][1]),a=-i*r[0][0],f=(o-i*(r[1][1]+r[0][1]))/2;t.scale(150*i).translate([a,f])},n)}var _0=16,Iw=B(30*ut);function pl(t,e){return+e?Dw(t,e):kw(t)}function kw(t){return no({point:function(e,n){e=t(e,n),this.stream.point(e[0],e[1])}})}function Dw(t,e){function n(r,o,i,a,f,u,c,s,d,l,p,m,h,g){var b=c-r,x=s-o,M=b*b+x*x;if(M>4*e&&h--){var y=a+l,w=f+p,v=u+m,T=mt(y*y+w*w+v*v),E=Mt(v/=T),I=K(K(v)-1)<U||K(i-d)<U?(i+d)/2:qt(w,y),D=t(I,E),_=D[0],L=D[1],F=_-r,P=L-o,S=x*F-b*P;(S*S/M>e||K((b*F+x*P)/M-.5)>.3||a*l+f*p+u*m<Iw)&&(n(r,o,i,a,f,u,_,L,I,y/=T,w/=T,v,h,g),g.point(_,L),n(_,L,I,y,w,v,c,s,d,l,p,m,h,g))}}return function(r){var o,i,a,f,u,c,s,d,l,p,m,h,g={point:b,lineStart:x,lineEnd:y,polygonStart:function(){r.polygonStart(),g.lineStart=w},polygonEnd:function(){r.polygonEnd(),g.lineStart=x}};function b(E,I){E=t(E,I),r.point(E[0],E[1])}function x(){d=NaN,g.point=M,r.lineStart()}function M(E,I){var D=Ve([E,I]),_=t(E,I);n(d,l,s,p,m,h,d=_[0],l=_[1],s=E,p=D[0],m=D[1],h=D[2],_0,r),r.point(d,l)}function y(){g.point=b,r.lineEnd()}function w(){x(),g.point=v,g.lineEnd=T}function v(E,I){M(o=E,I),i=d,a=l,f=p,u=m,c=h,g.point=M}function T(){n(d,l,s,p,m,h,i,a,o,f,u,c,_0,r),g.lineEnd=y,y()}return g}}var Nw=no({point:function(t,e){this.stream.point(t*ut,e*ut)}});function Rw(t){return no({point:function(e,n){var r=t(e,n);return this.stream.point(r[0],r[1])}})}function Lw(t,e,n,r,o){function i(a,f){return a*=r,f*=o,[e+t*a,n-t*f]}return i.invert=function(a,f){return[(a-e)/t*r,(n-f)/t*o]},i}function C0(t,e,n,r,o,i){if(!i)return Lw(t,e,n,r,o);var a=B(i),f=z(i),u=a*t,c=f*t,s=a/t,d=f/t,l=(f*n-a*e)/t,p=(f*e+a*n)/t;function m(h,g){return h*=r,g*=o,[u*h-c*g+e,n-c*h-u*g]}return m.invert=function(h,g){return[r*(s*h-d*g+l),o*(p-d*h-s*g)]},m}function Yt(t){return ml(function(){return t})()}function ml(t){var e,n=150,r=480,o=250,i=0,a=0,f=0,u=0,c=0,s,d=0,l=1,p=1,m=null,h=Ks,g=null,b,x,M,y=xi,w=.5,v,T,E,I,D;function _(S){return E(S[0]*ut,S[1]*ut)}function L(S){return S=E.invert(S[0],S[1]),S&&[S[0]*$t,S[1]*$t]}_.stream=function(S){return I&&D===S?I:I=Nw(Rw(s)(h(v(y(D=S)))))},_.preclip=function(S){return arguments.length?(h=S,m=void 0,P()):h},_.postclip=function(S){return arguments.length?(y=S,g=b=x=M=null,P()):y},_.clipAngle=function(S){return arguments.length?(h=+S?u0(m=S*ut):(m=null,Ks),P()):m*$t},_.clipExtent=function(S){return arguments.length?(y=S==null?(g=b=x=M=null,xi):Kr(g=+S[0][0],b=+S[0][1],x=+S[1][0],M=+S[1][1]),P()):g==null?null:[[g,b],[x,M]]},_.scale=function(S){return arguments.length?(n=+S,F()):n},_.translate=function(S){return arguments.length?(r=+S[0],o=+S[1],F()):[r,o]},_.center=function(S){return arguments.length?(i=S[0]%360*ut,a=S[1]%360*ut,F()):[i*$t,a*$t]},_.rotate=function(S){return arguments.length?(f=S[0]%360*ut,u=S[1]%360*ut,c=S.length>2?S[2]%360*ut:0,F()):[f*$t,u*$t,c*$t]},_.angle=function(S){return arguments.length?(d=S%360*ut,F()):d*$t},_.reflectX=function(S){return arguments.length?(l=S?-1:1,F()):l<0},_.reflectY=function(S){return arguments.length?(p=S?-1:1,F()):p<0},_.precision=function(S){return arguments.length?(v=pl(T,w=S*S),P()):mt(w)},_.fitExtent=function(S,A){return _i(_,S,A)},_.fitSize=function(S,A){return Bf(_,S,A)},_.fitWidth=function(S,A){return Uf(_,S,A)},_.fitHeight=function(S,A){return Xf(_,S,A)};function F(){var S=C0(n,0,0,l,p,d).apply(null,e(i,a)),A=C0(n,r-S[0],o-S[1],l,p,d);return s=js(f,u,c),T=hi(e,A),E=hi(s,T),v=pl(T,w),P()}function P(){return I=D=null,_}return function(){return e=t.apply(this,arguments),_.invert=e.invert&&L,F()}}function ro(t){var e=0,n=V/3,r=ml(t),o=r(e,n);return o.parallels=function(i){return arguments.length?r(e=i[0]*ut,n=i[1]*ut):[e*$t,n*$t]},o}function A0(t){var e=B(t);function n(r,o){return[r*e,z(o)/e]}return n.invert=function(r,o){return[r/e,Mt(o*e)]},n}function $0(t,e){var n=z(t),r=(n+z(e))/2;if(K(r)<U)return A0(t);var o=1+n*(2*r-n),i=mt(o)/r;function a(f,u){var c=mt(o-2*r*z(u))/r;return[c*z(f*=r),i-c*B(f)]}return a.invert=function(f,u){var c=i-u,s=qt(f,K(c))*Gt(c);return c*r<0&&(s-=V*Gt(f)*Gt(c)),[s/r,Mt((o-(f*f+c*c)*r*r)/(2*r))]},a}function Rn(){return ro($0).scale(155.424).center([0,33.6442])}function Ci(){return Rn().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function Pw(t){var e=t.length;return{point:function(n,r){for(var o=-1;++o<e;)t[o].point(n,r)},sphere:function(){for(var n=-1;++n<e;)t[n].sphere()},lineStart:function(){for(var n=-1;++n<e;)t[n].lineStart()},lineEnd:function(){for(var n=-1;++n<e;)t[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<e;)t[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<e;)t[n].polygonEnd()}}}function hl(){var t,e,n=Ci(),r,o=Rn().rotate([154,0]).center([-2,58.5]).parallels([55,65]),i,a=Rn().rotate([157,0]).center([-3,19.9]).parallels([8,18]),f,u,c={point:function(l,p){u=[l,p]}};function s(l){var p=l[0],m=l[1];return u=null,r.point(p,m),u||(i.point(p,m),u)||(f.point(p,m),u)}s.invert=function(l){var p=n.scale(),m=n.translate(),h=(l[0]-m[0])/p,g=(l[1]-m[1])/p;return(g>=.12&&g<.234&&h>=-.425&&h<-.214?o:g>=.166&&g<.234&&h>=-.214&&h<-.115?a:n).invert(l)},s.stream=function(l){return t&&e===l?t:t=Pw([n.stream(e=l),o.stream(l),a.stream(l)])},s.precision=function(l){return arguments.length?(n.precision(l),o.precision(l),a.precision(l),d()):n.precision()},s.scale=function(l){return arguments.length?(n.scale(l),o.scale(l*.35),a.scale(l),s.translate(n.translate())):n.scale()},s.translate=function(l){if(!arguments.length)return n.translate();var p=n.scale(),m=+l[0],h=+l[1];return r=n.translate(l).clipExtent([[m-.455*p,h-.238*p],[m+.455*p,h+.238*p]]).stream(c),i=o.translate([m-.307*p,h+.201*p]).clipExtent([[m-.425*p+U,h+.12*p+U],[m-.214*p-U,h+.234*p-U]]).stream(c),f=a.translate([m-.205*p,h+.212*p]).clipExtent([[m-.214*p+U,h+.166*p+U],[m-.115*p-U,h+.234*p-U]]).stream(c),d()},s.fitExtent=function(l,p){return _i(s,l,p)},s.fitSize=function(l,p){return Bf(s,l,p)},s.fitWidth=function(l,p){return Uf(s,l,p)},s.fitHeight=function(l,p){return Xf(s,l,p)};function d(){return t=e=null,s}return s.scale(1070)}function Hf(t){return function(e,n){var r=B(e),o=B(n),i=t(r*o);return i===1/0?[2,0]:[i*o*z(e),i*z(n)]}}function Ke(t){return function(e,n){var r=mt(e*e+n*n),o=t(r),i=z(o),a=B(o);return[qt(e*i,r*a),Mt(r&&n*i/r)]}}var gl=Hf(function(t){return mt(2/(1+t))});gl.invert=Ke(function(t){return 2*Mt(t/2)});function xl(){return Yt(gl).scale(124.75).clipAngle(180-.001)}var yl=Hf(function(t){return(t=Af(t))&&t/z(t)});yl.invert=Ke(function(t){return t});function bl(){return Yt(yl).scale(79.4188).clipAngle(180-.001)}function oo(t,e){return[t,lr(Vr((ft+e)/2))]}oo.invert=function(t,e){return[t,2*ve(_f(e))-ft]};function wl(){return vl(oo).scale(961/Nt)}function vl(t){var e=Yt(t),n=e.center,r=e.scale,o=e.translate,i=e.clipExtent,a=null,f,u,c;e.scale=function(d){return arguments.length?(r(d),s()):r()},e.translate=function(d){return arguments.length?(o(d),s()):o()},e.center=function(d){return arguments.length?(n(d),s()):n()},e.clipExtent=function(d){return arguments.length?(d==null?a=f=u=c=null:(a=+d[0][0],f=+d[0][1],u=+d[1][0],c=+d[1][1]),s()):a==null?null:[[a,f],[u,c]]};function s(){var d=V*r(),l=e(r0(e.rotate()).invert([0,0]));return i(a==null?[[l[0]-d,l[1]-d],[l[0]+d,l[1]+d]]:t===oo?[[Math.max(l[0]-d,a),f],[Math.min(l[0]+d,u),c]]:[[a,Math.max(l[1]-d,f)],[u,Math.min(l[1]+d,c)]])}return s()}function Wf(t){return Vr((ft+t)/2)}function E0(t,e){var n=B(t),r=t===e?z(t):lr(n/B(e))/lr(Wf(e)/Wf(t)),o=n*Cf(Wf(t),r)/r;if(!r)return oo;function i(a,f){o>0?f<-ft+U&&(f=-ft+U):f>ft-U&&(f=ft-U);var u=o/Cf(Wf(f),r);return[u*z(r*a),o-u*B(r*a)]}return i.invert=function(a,f){var u=o-f,c=Gt(r)*mt(a*a+u*u),s=qt(a,K(u))*Gt(u);return u*r<0&&(s-=V*Gt(a)*Gt(u)),[s/r,2*ve(Cf(o/c,1/r))-ft]},i}function Ml(){return ro(E0).scale(109.5).parallels([30,30])}function io(t,e){return[t,e]}io.invert=io;function Sl(){return Yt(io).scale(152.63)}function I0(t,e){var n=B(t),r=t===e?z(t):(n-B(e))/(e-t),o=n/r+t;if(K(r)<U)return io;function i(a,f){var u=o-f,c=r*a;return[u*z(c),o-u*B(c)]}return i.invert=function(a,f){var u=o-f,c=qt(a,K(u))*Gt(u);return u*r<0&&(c-=V*Gt(a)*Gt(u)),[c/r,o-Gt(r)*mt(a*a+u*u)]},i}function Tl(){return ro(I0).scale(131.154).center([0,13.9389])}var Ai=1.340264,$i=-.081106,Ei=893e-6,Ii=.003796,Gf=mt(3)/2,Ow=12;function _l(t,e){var n=Mt(Gf*z(e)),r=n*n,o=r*r*r;return[t*B(n)/(Gf*(Ai+3*$i*r+o*(7*Ei+9*Ii*r))),n*(Ai+$i*r+o*(Ei+Ii*r))]}_l.invert=function(t,e){for(var n=e,r=n*n,o=r*r*r,i=0,a,f,u;i<Ow&&(f=n*(Ai+$i*r+o*(Ei+Ii*r))-e,u=Ai+3*$i*r+o*(7*Ei+9*Ii*r),n-=a=f/u,r=n*n,o=r*r*r,!(K(a)<Tf));++i);return[Gf*t*(Ai+3*$i*r+o*(7*Ei+9*Ii*r))/B(n),Mt(z(n)/Gf)]};function Cl(){return Yt(_l).scale(177.158)}function Al(t,e){var n=B(e),r=B(t)*n;return[n*z(t)/r,z(e)/r]}Al.invert=Ke(ve);function $l(){return Yt(Al).scale(144.049).clipAngle(60)}function El(t,e){return[B(e)*z(t),z(e)]}El.invert=Ke(Mt);function Il(){return Yt(El).scale(249.5).clipAngle(90+U)}function kl(t,e){var n=B(e),r=1+B(t)*n;return[n*z(t)/r,z(e)/r]}kl.invert=Ke(function(t){return 2*ve(t)});function Dl(){return Yt(kl).scale(250).clipAngle(142)}function Nl(t,e){return[lr(Vr((ft+e)/2)),-t]}Nl.invert=function(t,e){return[-e,2*ve(_f(t))-ft]};function Rl(){var t=vl(Nl),e=t.center,n=t.rotate;return t.center=function(r){return arguments.length?e([-r[1],r[0]]):(r=e(),[r[1],-r[0]])},t.rotate=function(r){return arguments.length?n([r[0],r[1],r.length>2?r[2]+90:90]):(r=n(),[r[0],r[1],r[2]-90])},n([0,0,90]).scale(159.155)}function _t(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function ki(t,e){switch(arguments.length){case 0:break;case 1:{typeof t=="function"?this.interpolator(t):this.range(t);break}default:{this.domain(t),typeof e=="function"?this.interpolator(e):this.range(e);break}}return this}var Di=Symbol("implicit");function pr(){var t=new Qt,e=[],n=[],r=Di;function o(i){let a=t.get(i);if(a===void 0){if(r!==Di)return r;t.set(i,a=e.push(i)-1)}return n[a%n.length]}return o.domain=function(i){if(!arguments.length)return e.slice();e=[],t=new Qt;for(let a of i)t.has(a)||t.set(a,e.push(a)-1);return o},o.range=function(i){return arguments.length?(n=Array.from(i),o):n.slice()},o.unknown=function(i){return arguments.length?(r=i,o):r},o.copy=function(){return pr(e,n).unknown(r)},_t.apply(o,arguments),o}function Ln(){var t=pr().unknown(void 0),e=t.domain,n=t.range,r=0,o=1,i,a,f=!1,u=0,c=0,s=.5;delete t.unknown;function d(){var l=e().length,p=o<r,m=p?o:r,h=p?r:o;i=(h-m)/Math.max(1,l-u+c*2),f&&(i=Math.floor(i)),m+=(h-m-i*(l-u))*s,a=i*(1-u),f&&(m=Math.round(m),a=Math.round(a));var g=er(l).map(function(b){return m+i*b});return n(p?g.reverse():g)}return t.domain=function(l){return arguments.length?(e(l),d()):e()},t.range=function(l){return arguments.length?([r,o]=l,r=+r,o=+o,d()):[r,o]},t.rangeRound=function(l){return[r,o]=l,r=+r,o=+o,f=!0,d()},t.bandwidth=function(){return a},t.step=function(){return i},t.round=function(l){return arguments.length?(f=!!l,d()):f},t.padding=function(l){return arguments.length?(u=Math.min(1,c=+l),d()):u},t.paddingInner=function(l){return arguments.length?(u=Math.min(1,l),d()):u},t.paddingOuter=function(l){return arguments.length?(c=+l,d()):c},t.align=function(l){return arguments.length?(s=Math.max(0,Math.min(1,l)),d()):s},t.copy=function(){return Ln(e(),[r,o]).round(f).paddingInner(u).paddingOuter(c).align(s)},_t.apply(d(),arguments)}function k0(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return k0(e())},t}function Ll(){return k0(Ln.apply(null,arguments).paddingInner(1))}function Pl(t){return function(){return t}}function ao(t){return+t}var D0=[0,1];function oe(t){return t}function Ol(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:Pl(isNaN(e)?NaN:.5)}function Fw(t,e){var n;return t>e&&(n=t,t=e,e=n),function(r){return Math.max(t,Math.min(e,r))}}function qw(t,e,n){var r=t[0],o=t[1],i=e[0],a=e[1];return o<r?(r=Ol(o,r),i=n(a,i)):(r=Ol(r,o),i=n(i,a)),function(f){return i(r(f))}}function Yw(t,e,n){var r=Math.min(t.length,e.length)-1,o=new Array(r),i=new Array(r),a=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<r;)o[a]=Ol(t[a],t[a+1]),i[a]=n(e[a],e[a+1]);return function(f){var u=un(t,f,1,r)-1;return i[u](o[u](f))}}function Qe(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function mr(){var t=D0,e=D0,n=Ee,r,o,i,a=oe,f,u,c;function s(){var l=Math.min(t.length,e.length);return a!==oe&&(a=Fw(t[0],t[l-1])),f=l>2?Yw:qw,u=c=null,d}function d(l){return l==null||isNaN(l=+l)?i:(u||(u=f(t.map(r),e,n)))(r(a(l)))}return d.invert=function(l){return a(o((c||(c=f(e,t.map(r),ht)))(l)))},d.domain=function(l){return arguments.length?(t=Array.from(l,ao),s()):t.slice()},d.range=function(l){return arguments.length?(e=Array.from(l),s()):e.slice()},d.rangeRound=function(l){return e=Array.from(l),n=fr,s()},d.clamp=function(l){return arguments.length?(a=l?!0:oe,s()):a!==oe},d.interpolate=function(l){return arguments.length?(n=l,s()):n},d.unknown=function(l){return arguments.length?(i=l,d):i},function(l,p){return r=l,o=p,s()}}function Ni(){return mr()(oe,oe)}function Fl(t,e,n,r){var o=Pr(t,e,n),i;switch(r=We(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(t),Math.abs(e));return r.precision==null&&!isNaN(i=Xs(o,a))&&(r.precision=i),Sf(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=Hs(o,Math.max(Math.abs(t),Math.abs(e))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=Us(o))&&(r.precision=i-(r.type==="%")*2);break}}return Ge(r)}function bn(t){var e=t.domain;return t.ticks=function(n){var r=e();return Ae(r[0],r[r.length-1],n??10)},t.tickFormat=function(n,r){var o=e();return Fl(o[0],o[o.length-1],n??10,r)},t.nice=function(n){n==null&&(n=10);var r=e(),o=0,i=r.length-1,a=r[o],f=r[i],u,c,s=10;for(f<a&&(c=a,a=f,f=c,c=o,o=i,i=c);s-- >0;){if(c=tr(a,f,n),c===u)return r[o]=a,r[i]=f,e(r);if(c>0)a=Math.floor(a/c)*c,f=Math.ceil(f/c)*c;else if(c<0)a=Math.ceil(a*c)/c,f=Math.floor(f*c)/c;else break;u=c}return t},t}function hr(){var t=Ni();return t.copy=function(){return Qe(t,hr())},_t.apply(t,arguments),bn(t)}function Ri(t){var e;function n(r){return r==null||isNaN(r=+r)?e:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(t=Array.from(r,ao),n):t.slice()},n.unknown=function(r){return arguments.length?(e=r,n):e},n.copy=function(){return Ri(t).unknown(e)},t=arguments.length?Array.from(t,ao):[0,1],bn(n)}function Li(t,e){t=t.slice();var n=0,r=t.length-1,o=t[n],i=t[r],a;return i<o&&(a=n,n=r,r=a,a=o,o=i,i=a),t[n]=e.floor(o),t[r]=e.ceil(i),t}function N0(t){return Math.log(t)}function R0(t){return Math.exp(t)}function zw(t){return-Math.log(-t)}function Bw(t){return-Math.exp(-t)}function Uw(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Xw(t){return t===10?Uw:t===Math.E?Math.exp:e=>Math.pow(t,e)}function Hw(t){return t===Math.E?Math.log:t===10&&Math.log10||t===2&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}function L0(t){return(e,n)=>-t(-e,n)}function ql(t){let e=t(N0,R0),n=e.domain,r=10,o,i;function a(){return o=Hw(r),i=Xw(r),n()[0]<0?(o=L0(o),i=L0(i),t(zw,Bw)):t(N0,R0),e}return e.base=function(f){return arguments.length?(r=+f,a()):r},e.domain=function(f){return arguments.length?(n(f),a()):n()},e.ticks=f=>{let u=n(),c=u[0],s=u[u.length-1],d=s<c;d&&([c,s]=[s,c]);let l=o(c),p=o(s),m,h,g=f==null?10:+f,b=[];if(!(r%1)&&p-l<g){if(l=Math.floor(l),p=Math.ceil(p),c>0){for(;l<=p;++l)for(m=1;m<r;++m)if(h=l<0?m/i(-l):m*i(l),!(h<c)){if(h>s)break;b.push(h)}}else for(;l<=p;++l)for(m=r-1;m>=1;--m)if(h=l>0?m/i(-l):m*i(l),!(h<c)){if(h>s)break;b.push(h)}b.length*2<g&&(b=Ae(c,s,g))}else b=Ae(l,p,Math.min(p-l,g)).map(i);return d?b.reverse():b},e.tickFormat=(f,u)=>{if(f==null&&(f=10),u==null&&(u=r===10?"s":","),typeof u!="function"&&(!(r%1)&&(u=We(u)).precision==null&&(u.trim=!0),u=Ge(u)),f===1/0)return u;let c=Math.max(1,r*f/e.ticks().length);return s=>{let d=s/i(Math.round(o(s)));return d*r<r-.5&&(d*=r),d<=c?u(s):""}},e.nice=()=>n(Li(n(),{floor:f=>i(Math.floor(o(f))),ceil:f=>i(Math.ceil(o(f)))})),e}function Pi(){let t=ql(mr()).domain([1,10]);return t.copy=()=>Qe(t,Pi()).base(t.base()),_t.apply(t,arguments),t}function P0(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function O0(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function Yl(t){var e=1,n=t(P0(e),O0(e));return n.constant=function(r){return arguments.length?t(P0(e=+r),O0(e)):e},bn(n)}function Oi(){var t=Yl(mr());return t.copy=function(){return Qe(t,Oi()).constant(t.constant())},_t.apply(t,arguments)}function F0(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function Ww(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function Gw(t){return t<0?-t*t:t*t}function zl(t){var e=t(oe,oe),n=1;function r(){return n===1?t(oe,oe):n===.5?t(Ww,Gw):t(F0(n),F0(1/n))}return e.exponent=function(o){return arguments.length?(n=+o,r()):n},bn(e)}function Fi(){var t=zl(mr());return t.copy=function(){return Qe(t,Fi()).exponent(t.exponent())},_t.apply(t,arguments),t}function qi(){var t=[],e=[],n=[],r;function o(){var a=0,f=Math.max(1,e.length);for(n=new Array(f-1);++a<f;)n[a-1]=us(t,a/f);return i}function i(a){return a==null||isNaN(a=+a)?r:e[un(n,a)]}return i.invertExtent=function(a){var f=e.indexOf(a);return f<0?[NaN,NaN]:[f>0?n[f-1]:t[0],f<n.length?n[f]:t[t.length-1]]},i.domain=function(a){if(!arguments.length)return t.slice();t=[];for(let f of a)f!=null&&!isNaN(f=+f)&&t.push(f);return t.sort(bt),o()},i.range=function(a){return arguments.length?(e=Array.from(a),o()):e.slice()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.quantiles=function(){return n.slice()},i.copy=function(){return qi().domain(t).range(e).unknown(r)},_t.apply(i,arguments)}function Yi(){var t=[.5],e=[0,1],n,r=1;function o(i){return i!=null&&i<=i?e[un(t,i,0,r)]:n}return o.domain=function(i){return arguments.length?(t=Array.from(i),r=Math.min(t.length,e.length-1),o):t.slice()},o.range=function(i){return arguments.length?(e=Array.from(i),r=Math.min(t.length,e.length-1),o):e.slice()},o.invertExtent=function(i){var a=e.indexOf(i);return[t[a-1],t[a]]},o.unknown=function(i){return arguments.length?(n=i,o):n},o.copy=function(){return Yi().domain(t).range(e).unknown(n)},_t.apply(o,arguments)}var Bl=new Date,Ul=new Date;function dt(t,e,n,r){function o(i){return t(i=arguments.length===0?new Date:new Date(+i)),i}return o.floor=i=>(t(i=new Date(+i)),i),o.ceil=i=>(t(i=new Date(i-1)),e(i,1),t(i),i),o.round=i=>{let a=o(i),f=o.ceil(i);return i-a<f-i?a:f},o.offset=(i,a)=>(e(i=new Date(+i),a==null?1:Math.floor(a)),i),o.range=(i,a,f)=>{let u=[];if(i=o.ceil(i),f=f==null?1:Math.floor(f),!(i<a)||!(f>0))return u;let c;do u.push(c=new Date(+i)),e(i,f),t(i);while(c<i&&i<a);return u},o.filter=i=>dt(a=>{if(a>=a)for(;t(a),!i(a);)a.setTime(a-1)},(a,f)=>{if(a>=a)if(f<0)for(;++f<=0;)for(;e(a,-1),!i(a););else for(;--f>=0;)for(;e(a,1),!i(a););}),n&&(o.count=(i,a)=>(Bl.setTime(+i),Ul.setTime(+a),t(Bl),t(Ul),Math.floor(n(Bl,Ul))),o.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?o.filter(r?a=>r(a)%i===0:a=>o.count(0,a)%i===0):o)),o}var zi=dt(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);zi.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?dt(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):zi);var Dk=zi.range;var Vt=dt(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*1e3)},(t,e)=>(e-t)/1e3,t=>t.getUTCSeconds()),q0=Vt.range;var Pn=dt(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*1e3)},(t,e)=>{t.setTime(+t+e*6e4)},(t,e)=>(e-t)/6e4,t=>t.getMinutes()),Vw=Pn.range,On=dt(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*6e4)},(t,e)=>(e-t)/6e4,t=>t.getUTCMinutes()),jw=On.range;var Fn=dt(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*1e3-t.getMinutes()*6e4)},(t,e)=>{t.setTime(+t+e*36e5)},(t,e)=>(e-t)/36e5,t=>t.getHours()),Zw=Fn.range,qn=dt(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*36e5)},(t,e)=>(e-t)/36e5,t=>t.getUTCHours()),Kw=qn.range;var De=dt(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/864e5,t=>t.getDate()-1),Qw=De.range,yr=dt(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>t.getUTCDate()-1),Jw=yr.range,fo=dt(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>Math.floor(t/864e5)),t6=fo.range;function br(t){return dt(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/6048e5)}var ce=br(0),Yn=br(1),Vf=br(2),jf=br(3),tn=br(4),Zf=br(5),Kf=br(6),z0=ce.range,e6=Yn.range,n6=Vf.range,r6=jf.range,o6=tn.range,i6=Zf.range,a6=Kf.range;function wr(t){return dt(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/6048e5)}var se=wr(0),zn=wr(1),Qf=wr(2),Jf=wr(3),en=wr(4),tu=wr(5),eu=wr(6),B0=se.range,f6=zn.range,u6=Qf.range,c6=Jf.range,s6=en.range,l6=tu.range,d6=eu.range;var Bn=dt(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth()),p6=Bn.range,Un=dt(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth()),m6=Un.range;var jt=dt(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());jt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:dt(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});var h6=jt.range,Zt=dt(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());Zt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:dt(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});var g6=Zt.range;function X0(t,e,n,r,o,i){let a=[[Vt,1,1e3],[Vt,5,5*1e3],[Vt,15,15*1e3],[Vt,30,30*1e3],[i,1,6e4],[i,5,5*6e4],[i,15,15*6e4],[i,30,30*6e4],[o,1,36e5],[o,3,3*36e5],[o,6,6*36e5],[o,12,12*36e5],[r,1,864e5],[r,2,2*864e5],[n,1,6048e5],[e,1,2592e6],[e,3,3*2592e6],[t,1,31536e6]];function f(c,s,d){let l=s<c;l&&([c,s]=[s,c]);let p=d&&typeof d.range=="function"?d:u(c,s,d),m=p?p.range(c,+s+1):[];return l?m.reverse():m}function u(c,s,d){let l=Math.abs(s-c)/d,p=Fe(([,,g])=>g).right(a,l);if(p===a.length)return t.every(Pr(c/31536e6,s/31536e6,d));if(p===0)return zi.every(Math.max(Pr(c,s,d),1));let[m,h]=a[l/a[p-1][2]<a[p][2]/l?p-1:p];return m.every(h)}return[f,u]}var[Xl,Ui]=X0(Zt,Un,se,fo,qn,On),[Hl,Wl]=X0(jt,Bn,ce,De,Fn,Pn);function Gl(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Vl(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Xi(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function jl(t){var e=t.dateTime,n=t.date,r=t.time,o=t.periods,i=t.days,a=t.shortDays,f=t.months,u=t.shortMonths,c=Hi(o),s=Wi(o),d=Hi(i),l=Wi(i),p=Hi(a),m=Wi(a),h=Hi(f),g=Wi(f),b=Hi(u),x=Wi(u),M={a:N,A:O,b:R,B:tt,c:null,d:Z0,e:Z0,f:Y6,g:Z6,G:Q6,H:O6,I:F6,j:q6,L:eg,m:z6,M:B6,p:Z,q:W,Q:J0,s:tg,S:U6,u:X6,U:H6,V:W6,w:G6,W:V6,x:null,X:null,y:j6,Y:K6,Z:J6,"%":Q0},y={a:Q,A:at,b:Ut,B:Oe,c:null,d:K0,e:K0,f:rv,g:pv,G:hv,H:tv,I:ev,j:nv,L:rg,m:ov,M:iv,p:G,q:X,Q:J0,s:tg,S:av,u:fv,U:uv,V:cv,w:sv,W:lv,x:null,X:null,y:dv,Y:mv,Z:gv,"%":Q0},w={a:D,A:_,b:L,B:F,c:P,d:V0,e:V0,f:N6,g:G0,G:W0,H:j0,I:j0,j:E6,L:D6,m:$6,M:I6,p:I,q:A6,Q:L6,s:P6,S:k6,u:M6,U:S6,V:T6,w:v6,W:_6,x:S,X:A,y:G0,Y:W0,Z:C6,"%":R6};M.x=v(n,M),M.X=v(r,M),M.c=v(e,M),y.x=v(n,y),y.X=v(r,y),y.c=v(e,y);function v($,q){return function(Y){var C=[],j=-1,J=0,ot=$.length,lt,Xt,Zn;for(Y instanceof Date||(Y=new Date(+Y));++j<ot;)$.charCodeAt(j)===37&&(C.push($.slice(J,j)),(Xt=H0[lt=$.charAt(++j)])!=null?lt=$.charAt(++j):Xt=lt==="e"?" ":"0",(Zn=q[lt])&&(lt=Zn(Y,Xt)),C.push(lt),J=j+1);return C.push($.slice(J,j)),C.join("")}}function T($,q){return function(Y){var C=Xi(1900,void 0,1),j=E(C,$,Y+="",0),J,ot;if(j!=Y.length)return null;if("Q"in C)return new Date(C.Q);if("s"in C)return new Date(C.s*1e3+("L"in C?C.L:0));if(q&&!("Z"in C)&&(C.Z=0),"p"in C&&(C.H=C.H%12+C.p*12),C.m===void 0&&(C.m="q"in C?C.q:0),"V"in C){if(C.V<1||C.V>53)return null;"w"in C||(C.w=1),"Z"in C?(J=Vl(Xi(C.y,0,1)),ot=J.getUTCDay(),J=ot>4||ot===0?zn.ceil(J):zn(J),J=yr.offset(J,(C.V-1)*7),C.y=J.getUTCFullYear(),C.m=J.getUTCMonth(),C.d=J.getUTCDate()+(C.w+6)%7):(J=Gl(Xi(C.y,0,1)),ot=J.getDay(),J=ot>4||ot===0?Yn.ceil(J):Yn(J),J=De.offset(J,(C.V-1)*7),C.y=J.getFullYear(),C.m=J.getMonth(),C.d=J.getDate()+(C.w+6)%7)}else("W"in C||"U"in C)&&("w"in C||(C.w="u"in C?C.u%7:"W"in C?1:0),ot="Z"in C?Vl(Xi(C.y,0,1)).getUTCDay():Gl(Xi(C.y,0,1)).getDay(),C.m=0,C.d="W"in C?(C.w+6)%7+C.W*7-(ot+5)%7:C.w+C.U*7-(ot+6)%7);return"Z"in C?(C.H+=C.Z/100|0,C.M+=C.Z%100,Vl(C)):Gl(C)}}function E($,q,Y,C){for(var j=0,J=q.length,ot=Y.length,lt,Xt;j<J;){if(C>=ot)return-1;if(lt=q.charCodeAt(j++),lt===37){if(lt=q.charAt(j++),Xt=w[lt in H0?q.charAt(j++):lt],!Xt||(C=Xt($,Y,C))<0)return-1}else if(lt!=Y.charCodeAt(C++))return-1}return C}function I($,q,Y){var C=c.exec(q.slice(Y));return C?($.p=s.get(C[0].toLowerCase()),Y+C[0].length):-1}function D($,q,Y){var C=p.exec(q.slice(Y));return C?($.w=m.get(C[0].toLowerCase()),Y+C[0].length):-1}function _($,q,Y){var C=d.exec(q.slice(Y));return C?($.w=l.get(C[0].toLowerCase()),Y+C[0].length):-1}function L($,q,Y){var C=b.exec(q.slice(Y));return C?($.m=x.get(C[0].toLowerCase()),Y+C[0].length):-1}function F($,q,Y){var C=h.exec(q.slice(Y));return C?($.m=g.get(C[0].toLowerCase()),Y+C[0].length):-1}function P($,q,Y){return E($,e,q,Y)}function S($,q,Y){return E($,n,q,Y)}function A($,q,Y){return E($,r,q,Y)}function N($){return a[$.getDay()]}function O($){return i[$.getDay()]}function R($){return u[$.getMonth()]}function tt($){return f[$.getMonth()]}function Z($){return o[+($.getHours()>=12)]}function W($){return 1+~~($.getMonth()/3)}function Q($){return a[$.getUTCDay()]}function at($){return i[$.getUTCDay()]}function Ut($){return u[$.getUTCMonth()]}function Oe($){return f[$.getUTCMonth()]}function G($){return o[+($.getUTCHours()>=12)]}function X($){return 1+~~($.getUTCMonth()/3)}return{format:function($){var q=v($+="",M);return q.toString=function(){return $},q},parse:function($){var q=T($+="",!1);return q.toString=function(){return $},q},utcFormat:function($){var q=v($+="",y);return q.toString=function(){return $},q},utcParse:function($){var q=T($+="",!0);return q.toString=function(){return $},q}}}var H0={"-":"",_:" ",0:"0"},Lt=/^\s*\d+/,y6=/^%/,b6=/[\\^$*+?|[\]().{}]/g;function nt(t,e,n){var r=t<0?"-":"",o=(r?-t:t)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(e)+o:o)}function w6(t){return t.replace(b6,"\\$&")}function Hi(t){return new RegExp("^(?:"+t.map(w6).join("|")+")","i")}function Wi(t){return new Map(t.map((e,n)=>[e.toLowerCase(),n]))}function v6(t,e,n){var r=Lt.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function M6(t,e,n){var r=Lt.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function S6(t,e,n){var r=Lt.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function T6(t,e,n){var r=Lt.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function _6(t,e,n){var r=Lt.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function W0(t,e,n){var r=Lt.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function G0(t,e,n){var r=Lt.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function C6(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function A6(t,e,n){var r=Lt.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function $6(t,e,n){var r=Lt.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function V0(t,e,n){var r=Lt.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function E6(t,e,n){var r=Lt.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function j0(t,e,n){var r=Lt.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function I6(t,e,n){var r=Lt.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function k6(t,e,n){var r=Lt.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function D6(t,e,n){var r=Lt.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function N6(t,e,n){var r=Lt.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function R6(t,e,n){var r=y6.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function L6(t,e,n){var r=Lt.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function P6(t,e,n){var r=Lt.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Z0(t,e){return nt(t.getDate(),e,2)}function O6(t,e){return nt(t.getHours(),e,2)}function F6(t,e){return nt(t.getHours()%12||12,e,2)}function q6(t,e){return nt(1+De.count(jt(t),t),e,3)}function eg(t,e){return nt(t.getMilliseconds(),e,3)}function Y6(t,e){return eg(t,e)+"000"}function z6(t,e){return nt(t.getMonth()+1,e,2)}function B6(t,e){return nt(t.getMinutes(),e,2)}function U6(t,e){return nt(t.getSeconds(),e,2)}function X6(t){var e=t.getDay();return e===0?7:e}function H6(t,e){return nt(ce.count(jt(t)-1,t),e,2)}function ng(t){var e=t.getDay();return e>=4||e===0?tn(t):tn.ceil(t)}function W6(t,e){return t=ng(t),nt(tn.count(jt(t),t)+(jt(t).getDay()===4),e,2)}function G6(t){return t.getDay()}function V6(t,e){return nt(Yn.count(jt(t)-1,t),e,2)}function j6(t,e){return nt(t.getFullYear()%100,e,2)}function Z6(t,e){return t=ng(t),nt(t.getFullYear()%100,e,2)}function K6(t,e){return nt(t.getFullYear()%1e4,e,4)}function Q6(t,e){var n=t.getDay();return t=n>=4||n===0?tn(t):tn.ceil(t),nt(t.getFullYear()%1e4,e,4)}function J6(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+nt(e/60|0,"0",2)+nt(e%60,"0",2)}function K0(t,e){return nt(t.getUTCDate(),e,2)}function tv(t,e){return nt(t.getUTCHours(),e,2)}function ev(t,e){return nt(t.getUTCHours()%12||12,e,2)}function nv(t,e){return nt(1+yr.count(Zt(t),t),e,3)}function rg(t,e){return nt(t.getUTCMilliseconds(),e,3)}function rv(t,e){return rg(t,e)+"000"}function ov(t,e){return nt(t.getUTCMonth()+1,e,2)}function iv(t,e){return nt(t.getUTCMinutes(),e,2)}function av(t,e){return nt(t.getUTCSeconds(),e,2)}function fv(t){var e=t.getUTCDay();return e===0?7:e}function uv(t,e){return nt(se.count(Zt(t)-1,t),e,2)}function og(t){var e=t.getUTCDay();return e>=4||e===0?en(t):en.ceil(t)}function cv(t,e){return t=og(t),nt(en.count(Zt(t),t)+(Zt(t).getUTCDay()===4),e,2)}function sv(t){return t.getUTCDay()}function lv(t,e){return nt(zn.count(Zt(t)-1,t),e,2)}function dv(t,e){return nt(t.getUTCFullYear()%100,e,2)}function pv(t,e){return t=og(t),nt(t.getUTCFullYear()%100,e,2)}function mv(t,e){return nt(t.getUTCFullYear()%1e4,e,4)}function hv(t,e){var n=t.getUTCDay();return t=n>=4||n===0?en(t):en.ceil(t),nt(t.getUTCFullYear()%1e4,e,4)}function gv(){return"+0000"}function Q0(){return"%"}function J0(t){return+t}function tg(t){return Math.floor(+t/1e3)}var uo,Xn,ig,wn,ag;Zl({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 Zl(t){return uo=jl(t),Xn=uo.format,ig=uo.parse,wn=uo.utcFormat,ag=uo.utcParse,uo}function xv(t){return new Date(t)}function yv(t){return t instanceof Date?+t:+new Date(+t)}function nu(t,e,n,r,o,i,a,f,u,c){var s=Ni(),d=s.invert,l=s.domain,p=c(".%L"),m=c(":%S"),h=c("%I:%M"),g=c("%I %p"),b=c("%a %d"),x=c("%b %d"),M=c("%B"),y=c("%Y");function w(v){return(u(v)<v?p:f(v)<v?m:a(v)<v?h:i(v)<v?g:r(v)<v?o(v)<v?b:x:n(v)<v?M:y)(v)}return s.invert=function(v){return new Date(d(v))},s.domain=function(v){return arguments.length?l(Array.from(v,yv)):l().map(xv)},s.ticks=function(v){var T=l();return t(T[0],T[T.length-1],v??10)},s.tickFormat=function(v,T){return T==null?w:c(T)},s.nice=function(v){var T=l();return(!v||typeof v.range!="function")&&(v=e(T[0],T[T.length-1],v??10)),v?l(Li(T,v)):s},s.copy=function(){return Qe(s,nu(t,e,n,r,o,i,a,f,u,c))},s}function ru(){return _t.apply(nu(Hl,Wl,jt,Bn,ce,De,Fn,Pn,Vt,Xn).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function ou(){return _t.apply(nu(Xl,Ui,Zt,Un,se,yr,qn,On,Vt,wn).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Gi(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function iu(){var t=0,e=.5,n=1,r=1,o,i,a,f,u,c=oe,s,d=!1,l;function p(h){return isNaN(h=+h)?l:(h=.5+((h=+s(h))-i)*(r*h<r*i?f:u),c(d?Math.max(0,Math.min(1,h)):h))}p.domain=function(h){return arguments.length?([t,e,n]=h,o=s(t=+t),i=s(e=+e),a=s(n=+n),f=o===i?0:.5/(i-o),u=i===a?0:.5/(a-i),r=i<o?-1:1,p):[t,e,n]},p.clamp=function(h){return arguments.length?(d=!!h,p):d},p.interpolator=function(h){return arguments.length?(c=h,p):c};function m(h){return function(g){var b,x,M;return arguments.length?([b,x,M]=g,c=Xe(h,[b,x,M]),p):[c(0),c(.5),c(1)]}}return p.range=m(Ee),p.rangeRound=m(fr),p.unknown=function(h){return arguments.length?(l=h,p):l},function(h){return s=h,o=h(t),i=h(e),a=h(n),f=o===i?0:.5/(i-o),u=i===a?0:.5/(a-i),r=i<o?-1:1,p}}function Vi(){var t=bn(iu()(oe));return t.copy=function(){return Gi(t,Vi())},ki.apply(t,arguments)}function au(){var t=ql(iu()).domain([.1,1,10]);return t.copy=function(){return Gi(t,au()).base(t.base())},ki.apply(t,arguments)}function fu(){var t=Yl(iu());return t.copy=function(){return Gi(t,fu()).constant(t.constant())},ki.apply(t,arguments)}function uu(){var t=zl(iu());return t.copy=function(){return Gi(t,uu()).exponent(t.exponent())},ki.apply(t,arguments)}function k(t){for(var e=t.length/6|0,n=new Array(e),r=0;r<e;)n[r]="#"+t.slice(r*6,++r*6);return n}var Kl=k("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");var Ql=k("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");var Jl=k("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");var td=k("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");var ed=k("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");var nd=k("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");var rd=k("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");var od=k("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");var id=k("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var ad=k("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");var H=t=>Cs(t[t.length-1]);var cu=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(k),su=H(cu);var lu=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(k),du=H(lu);var pu=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(k),mu=H(pu);var hu=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(k),gu=H(hu);var ji=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(k),co=H(ji);var xu=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(k),yu=H(xu);var Zi=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(k),so=H(Zi);var bu=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(k),wu=H(bu);var vu=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(k),Mu=H(vu);var Su=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(k),Tu=H(Su);var _u=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(k),Cu=H(_u);var Au=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(k),$u=H(Au);var Eu=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(k),Iu=H(Eu);var ku=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(k),Du=H(ku);var Nu=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(k),Ru=H(Nu);var Lu=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(k),Pu=H(Lu);var Ou=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(k),Fu=H(Ou);var qu=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(k),Yu=H(qu);var zu=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(k),Bu=H(zu);var Uu=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(k),Xu=H(Uu);var Hu=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(k),Wu=H(Hu);var Gu=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(k),Vu=H(Gu);var ju=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(k),Zu=H(ju);var Ku=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(k),Qu=H(Ku);var Ju=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(k),tc=H(Ju);var ec=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(k),nc=H(ec);var rc=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(k),oc=H(rc);function ic(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-t*(35.34-t*(2381.73-t*(6402.7-t*(7024.72-t*2710.57)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+t*(170.73+t*(52.82-t*(131.46-t*(176.58-t*67.37)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+t*(442.36-t*(2482.43-t*(6167.24-t*(6614.94-t*2475.67)))))))+")"}var ac=Ur(te(300,.5,0),te(-240,.5,1));var uc=Ur(te(-100,.75,.35),te(80,1.5,.8)),cc=Ur(te(260,.75,.35),te(80,1.5,.8)),fc=te();function sc(t){(t<0||t>1)&&(t-=Math.floor(t));var e=Math.abs(t-.5);return fc.h=360*t-100,fc.s=1.5-1.5*e,fc.l=.8-.9*e,fc+""}var lc=be(),bv=Math.PI/3,wv=Math.PI*2/3;function dc(t){var e;return t=(.5-t)*Math.PI,lc.r=255*(e=Math.sin(t))*e,lc.g=255*(e=Math.sin(t+bv))*e,lc.b=255*(e=Math.sin(t+wv))*e,lc+""}function pc(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+t*(1172.33-t*(10793.56-t*(33300.12-t*(38394.49-t*14825.05)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+t*(557.33+t*(1225.33-t*(3574.96-t*(1073.77+t*707.56)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+t*(3211.1-t*(15327.97-t*(27814-t*(22569.18-t*6838.66)))))))+")"}function mc(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}var hc=mc(k("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),gc=mc(k("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),xc=mc(k("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),yc=mc(k("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));var fd=Math.cos;var lo=Math.min,Ki=Math.sin,rt=Math.sqrt;var vr=Math.PI,JL=vr/2,po=2*vr;var vv=rt(3),Qi={draw(t,e){let n=rt(e+lo(e/28,.75))*.59436,r=n/2,o=r*vv;t.moveTo(0,n),t.lineTo(0,-n),t.moveTo(-o,-r),t.lineTo(o,r),t.moveTo(-o,r),t.lineTo(o,-r)}};var mo={draw(t,e){let n=rt(e/vr);t.moveTo(n,0),t.arc(0,0,n,0,po)}};var Ji={draw(t,e){let n=rt(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}};var fg=rt(1/3),Mv=fg*2,ta={draw(t,e){let n=rt(e/Mv),r=n*fg;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}};var ea={draw(t,e){let n=rt(e)*.62625;t.moveTo(0,-n),t.lineTo(n,0),t.lineTo(0,n),t.lineTo(-n,0),t.closePath()}};var na={draw(t,e){let n=rt(e-lo(e/7,2))*.87559;t.moveTo(-n,0),t.lineTo(n,0),t.moveTo(0,n),t.lineTo(0,-n)}};var ra={draw(t,e){let n=rt(e),r=-n/2;t.rect(r,r,n,n)}};var oa={draw(t,e){let n=rt(e)*.4431;t.moveTo(n,n),t.lineTo(n,-n),t.lineTo(-n,-n),t.lineTo(-n,n),t.closePath()}};var Sv=.8908130915292852,ug=Ki(vr/10)/Ki(7*vr/10),Tv=Ki(po/10)*ug,_v=-fd(po/10)*ug,ia={draw(t,e){let n=rt(e*Sv),r=Tv*n,o=_v*n;t.moveTo(0,-n),t.lineTo(r,o);for(let i=1;i<5;++i){let a=po*i/5,f=fd(a),u=Ki(a);t.lineTo(u*n,-f*n),t.lineTo(f*r-u*o,u*r+f*o)}t.closePath()}};var ud=rt(3),aa={draw(t,e){let n=-rt(e/(ud*3));t.moveTo(0,n*2),t.lineTo(-ud*n,-n),t.lineTo(ud*n,-n),t.closePath()}};var Cv=rt(3),fa={draw(t,e){let n=rt(e)*.6824,r=n/2,o=n*Cv/2;t.moveTo(0,-n),t.lineTo(o,r),t.lineTo(-o,r),t.closePath()}};var Me=-.5,Se=rt(3)/2,cd=1/rt(12),Av=(cd/2+1)*3,ua={draw(t,e){let n=rt(e/Av),r=n/2,o=n*cd,i=r,a=n*cd+n,f=-i,u=a;t.moveTo(r,o),t.lineTo(i,a),t.lineTo(f,u),t.lineTo(Me*r-Se*o,Se*r+Me*o),t.lineTo(Me*i-Se*a,Se*i+Me*a),t.lineTo(Me*f-Se*u,Se*f+Me*u),t.lineTo(Me*r+Se*o,Me*o-Se*r),t.lineTo(Me*i+Se*a,Me*a-Se*i),t.lineTo(Me*f+Se*u,Me*u-Se*f),t.closePath()}};var ho={draw(t,e){let n=rt(e-lo(e/6,1.7))*.6189;t.moveTo(-n,-n),t.lineTo(n,n),t.moveTo(-n,n),t.lineTo(n,-n)}};var bc=[mo,Ji,ta,ra,ia,aa,ua],sd=[mo,na,ho,fa,Qi,oa,ea];function Hn(t,e,n){this.k=t,this.x=e,this.y=n}Hn.prototype={constructor:Hn,scale:function(t){return t===1?this:new Hn(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new Hn(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var ld=new Hn(1,0,0);dd.prototype=Hn.prototype;function dd(t){for(;!t.__zoom;)if(!(t=t.parentNode))return ld;return t.__zoom}function Ne(t){return t!=null&&!Number.isNaN(t)}function Kt(t,e){return+Ne(e)-+Ne(t)||bt(t,e)}function Mr(t,e){return+Ne(e)-+Ne(t)||xe(t,e)}function wc(t){return t!=null&&`${t}`!=""}function pd(t){return isFinite(t)?t:NaN}function ca(t){return t>0&&isFinite(t)?t:NaN}function vc(t){return t<0&&isFinite(t)?t:NaN}function Mc(t,e){if(t instanceof Date||(t=new Date(+t)),isNaN(t))return typeof e=="function"?e(t):e;let n=t.getUTCHours(),r=t.getUTCMinutes(),o=t.getUTCSeconds(),i=t.getUTCMilliseconds();return`${$v(t.getUTCFullYear(),4)}-${vn(t.getUTCMonth()+1,2)}-${vn(t.getUTCDate(),2)}${n||r||o||i?`T${vn(n,2)}:${vn(r,2)}${o||i?`:${vn(o,2)}${i?`.${vn(i,3)}`:""}`:""}Z`:""}`}function $v(t){return t<0?`-${vn(-t,6)}`:t>9999?`+${vn(t,6)}`:vn(t,4)}function vn(t,e){return`${t}`.padStart(e,"0")}var Ev=/^(?:[-+]\d{2})?\d{4}(?:-\d{2}(?:-\d{2})?)?(?:T\d{2}:\d{2}(?::\d{2}(?:\.\d{3})?)?(?:Z|[-+]\d{2}:?\d{2})?)?$/;function sa(t,e){return Ev.test(t+="")?new Date(t):typeof e=="function"?e(t):e}var Sc=1e3,md=Sc*60,hd=md*60,da=hd*24,Iv=da*7,cg=da*30,kv=da*365,la=[["millisecond",.5*Sc],["second",Sc],["second",30*Sc],["minute",md],["minute",30*md],["hour",hd],["hour",12*hd],["day",da],["day",2*da],["week",Iv],["month",cg],["month",3*cg],["year",kv]],Dv=new Map([["second",Vt],["minute",Pn],["hour",Fn],["day",De],["week",ce],["month",Bn],["year",jt],["monday",Yn],["tuesday",Vf],["wednesday",jf],["thursday",tn],["friday",Zf],["saturday",Kf],["sunday",ce]]),Nv=new Map([["second",Vt],["minute",On],["hour",qn],["day",fo],["week",se],["month",Un],["year",Zt],["monday",zn],["tuesday",Qf],["wednesday",Jf],["thursday",en],["friday",tu],["saturday",eu],["sunday",se]]);function sg(t,e){let n=`${t}`.toLowerCase();n.endsWith("s")&&(n=n.slice(0,-1));let r=1,o=/^(?:(\d+)\s+)/.exec(n);switch(o&&(n=n.slice(o[0].length),r=+o[1]),n){case"quarter":n="month",r*=3;break;case"half":n="month",r*=6;break}let i=e.get(n);if(!i)throw new Error(`unknown interval: ${t}`);if(!(r>1))return i;if(!i.every)throw new Error(`non-periodic interval: ${n}`);return i.every(r)}function lg(t){return sg(t,Dv)}function Tc(t){return sg(t,Nv)}function dg(t){if(!t)return!1;let e=t.floor(new Date(Date.UTC(2e3,11,31)));return Zt(e)>=e}function pg(t){if(!t)return!1;let e=t.floor(new Date(2e3,11,31));return jt(e)>=e}function mg(t,e,n,r){let o=t.type==="time"?Xn:wn,i=r==="left"||r==="right"?(a,f)=>`
${a}
${f}`:r==="top"?(a,f)=>`${f}
${a}`:(a,f)=>`${a}
${f}`;switch(Rv(t,e,n)){case"millisecond":return Sr(o(".%L"),o(":%M:%S"),i);case"second":return Sr(o(":%S"),o("%-I:%M"),i);case"minute":return Sr(o("%-I:%M"),o("%p"),i);case"hour":return Sr(o("%-I %p"),o("%b %-d"),i);case"day":return Sr(o("%-d"),o("%b"),i);case"week":return Sr(o("%-d"),o("%b"),i);case"month":return Sr(o("%b"),o("%Y"),i);case"year":return o("%Y")}throw new Error("unable to format time ticks")}function Rv(t,e,n){let r=ln(Ha(e,(u,c)=>Math.abs(c-u)||NaN));if(r>0)return la[Fe(([,u])=>u).right(la,r,1,la.length)-1][0];let[o,i]=Ct(t.domain()),a=typeof n=="number"?n:10,f=Math.abs(i-o)/a;return la[Fe(([,u])=>Math.log(u)).center(la,Math.log(f))][0]}function Sr(t,e,n){return(r,o,i)=>{let a=t(r,o),f=e(r,o),u=o-Mn(i);return o!==u&&i[u]!==void 0&&f===e(i[u],u)?a:n(a,f)}}var pa=Object.getPrototypeOf(Uint8Array),Lv=Object.prototype.toString;function gt(t,e,n){let r=typeof e;return r==="string"?hg(t,gd(e),n):r==="function"?hg(t,e,n):r==="number"||e instanceof Date||r==="boolean"?pt(t,Wn(e),n):typeof e?.transform=="function"?gg(e.transform(t),n):gg(e,n)}function hg(t,e,n){return pt(t,n?.prototype instanceof pa?Pv(e):e,n)}function gg(t,e){return e===void 0?kt(t):t instanceof e?t:e.prototype instanceof pa&&!(t instanceof pa)?e.from(t,xd):e.from(t)}function Pv(t){return(e,n)=>xd(t(e,n))}var go=[null],gd=t=>e=>e[t],_c={transform:ne},wt={transform:t=>t};var xg=()=>1,yg=()=>!0,Et=t=>t==null?t:`${t}`,ct=t=>t==null?t:+t;var ma=t=>t?t[0]:void 0,Cc=t=>t?t[1]:void 0;var Wn=t=>()=>t;function bg(t){let e=+`${t}`.slice(1)/100;return(n,r)=>ye(n,e,r)}function Tr(t){return t instanceof pa?t:pt(t,xd,Float64Array)}function xd(t){return t==null?NaN:Number(t)}function wg(t){return pt(t,yd)}function yd(t){return t instanceof Date&&!isNaN(t)?t:typeof t=="string"?sa(t):t==null||isNaN(t=+t)?void 0:new Date(t)}function ie(t,e){return t===void 0&&(t=e),t===null?[void 0,"none"]:wo(t)?[void 0,t]:[t,void 0]}function It(t,e){return t===void 0&&(t=e),t===null||typeof t=="number"?[void 0,t]:[t,void 0]}function _r(t,e,n){if(t!=null)return le(t,e,n)}function le(t,e,n){let r=`${t}`.toLowerCase();if(!n.includes(r))throw new Error(`invalid ${e}: ${t}`);return r}function kt(t){return t==null||t instanceof Array||t instanceof pa?t:Array.from(t)}function pt(t,e,n=Array){return t==null?t:t instanceof n?t.map(e):n.from(t,e)}function ha(t,e=Array){return t instanceof e?t.slice():e.from(t)}function vg({x:t,x1:e,x2:n}){return t!==void 0||e!==void 0||n!==void 0}function bd({y:t,y1:e,y2:n}){return t!==void 0||e!==void 0||n!==void 0}function Mg(t){return vg(t)||bd(t)||t.interval!==void 0}function Sn(t){return t?.toString===Lv}function xo(t){return Sn(t)&&(t.type!==void 0||t.domain!==void 0)}function ga(t){return Sn(t)&&typeof t.transform!="function"}function Cr(t){return ga(t)&&t.value===void 0&&t.channel===void 0}function Sg(t,e,n,r=wt){return e===void 0&&n===void 0?(e=0,n=t===void 0?r:t):e===void 0?e=t===void 0?0:t:n===void 0&&(n=t===void 0?0:t),[e,n]}function Ar(t,e){return t===void 0&&e===void 0?[ma,Cc]:[t,e]}function Tg({z:t,fill:e,stroke:n}={}){return t===void 0&&([t]=ie(e)),t===void 0&&([t]=ie(n)),t}function ne(t){let e=t.length,n=new Uint32Array(e);for(let r=0;r<e;++r)n[r]=r;return n}function wd(t,e){return pt(e,n=>t[n])}function _g(t,e,n){return t.subarray?t.subarray(e,n):t.slice(e,n)}function yo(t){return t!==null&&typeof t=="object"?t.valueOf():t}function Cg(t,e){if(e[t]!==void 0)return e[t];switch(t){case"x1":case"x2":t="x";break;case"y1":case"y2":t="y";break}return e[t]}function bo(t){let e;return[{transform:()=>e,label:Re(t)},n=>e=n]}function Te(t){return t==null?[t]:bo(t)}function Re(t,e){return typeof t=="string"?t:t&&t.label!==void 0?t.label:e}function xa(t,e){return{transform(n){let r=t.transform(n),o=e.transform(n);return zt(r)||zt(o)?pt(r,(i,a)=>new Date((+r[a]+ +o[a])/2)):pt(r,(i,a)=>(+r[a]+ +o[a])/2,Float64Array)},label:t.label}}function ya(t,e){let n=vd(e?.interval,e?.type);return n?pt(t,n):t}function vd(t,e){let n=Ac(t,e);return n&&(r=>Ne(r)?n.floor(r):r)}function Ac(t,e){if(t!=null){if(typeof t=="number"){0<t&&t<1&&Number.isInteger(1/t)&&(t=-1/t);let n=Math.abs(t);return t<0?{floor:r=>Math.floor(r*n)/n,offset:r=>(r*n+1)/n,range:(r,o)=>er(Math.ceil(r*n),o*n).map(i=>i/n)}:{floor:r=>Math.floor(r/n)*n,offset:r=>r+n,range:(r,o)=>er(Math.ceil(r/n),o/n).map(i=>i*n)}}if(typeof t=="string")return(e==="time"?lg:Tc)(t);if(typeof t.floor!="function")throw new Error("invalid interval; missing floor method");if(typeof t.offset!="function")throw new Error("invalid interval; missing offset method");return t}}function nn(t,e){if(t=Ac(t,e),t&&typeof t.range!="function")throw new Error("invalid interval: missing range method");return t}function Ag(t,e){if(t=nn(t,e),t&&typeof t.ceil!="function")throw new Error("invalid interval: missing ceil method");return t}function rn(t){return t===void 0||ga(t)?t:{value:t}}function $g(t){return t==null?null:{transform:e=>gt(e,t,Float64Array),label:Re(t)}}function re(t){return t&&typeof t[Symbol.iterator]=="function"}function $c(t){for(let e of t)if(e!=null)return typeof e!="object"||e instanceof Date}function Md(t){for(let e of t){if(e==null)continue;let n=typeof e;return n==="string"||n==="boolean"}}function zt(t){for(let e of t)if(e!=null)return e instanceof Date}function Eg(t){for(let e of t)if(e!=null)return typeof e=="string"&&isNaN(e)&&sa(e)}function Ig(t){for(let e of t)if(e!=null){if(typeof e!="string")return!1;if(e.trim())return!isNaN(e)}}function kg(t){for(let e of t)if(e!=null)return typeof e=="number"}function Ec(t,e){let n;for(let r of t)if(r!=null){if(!e(r))return!1;n=!0}return n}function wo(t){return typeof t!="string"?!1:(t=t.toLowerCase().trim(),t==="none"||t==="currentcolor"||t.startsWith("url(")&&t.endsWith(")")||t.startsWith("var(")&&t.endsWith(")")||ue(t)!==null)}function Dg(t){return typeof t=="number"&&(0<=t&&t<=1||isNaN(t))}function Pt(t){return t==null||$r(t)}function $r(t){return/^\s*none\s*$/i.test(t)}function Ng(t){return/^\s*round\s*$/i.test(t)}function Sd(t,e){return _r(t,e,["middle","top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"])}function vo(t="middle"){return Sd(t,"frameAnchor")}function Mn(t){if(t==null)return;let e=t[0],n=t[t.length-1];return xe(e,n)}function Rg(t={},...e){let n=t;for(let r of e)for(let o in r)if(n[o]===void 0){let i=r[o];n===t?n={...n,[o]:i}:n[o]=i}return n}function Ov(t){console.warn("named iterables are deprecated; please use an object instead");let e=new Set;return Object.fromEntries(Array.from(t,n=>{let{name:r}=n;if(r==null)throw new Error("missing name");let o=`${r}`;if(o==="__proto__")throw new Error(`illegal name: ${o}`);if(e.has(o))throw new Error(`duplicate name: ${o}`);return e.add(o),[r,n]}))}function Td(t){return re(t)?Ov(t):t}var de=Symbol("position"),pe=Symbol("color"),Mo=Symbol("radius"),So=Symbol("length"),To=Symbol("opacity"),_o=Symbol("symbol"),Fv=Symbol("projection"),st=new Map([["x",de],["y",de],["fx",de],["fy",de],["r",Mo],["color",pe],["opacity",To],["symbol",_o],["length",So],["projection",Fv]]);var qv=Math.sqrt(3),Yv=2/qv,zv={draw(t,e){let n=Math.sqrt(e/Math.PI),r=n*Yv,o=r/2;t.moveTo(0,r),t.lineTo(n,o),t.lineTo(n,-o),t.lineTo(0,-r),t.lineTo(-n,-o),t.lineTo(-n,o),t.closePath()}},Lg=new Map([["asterisk",Qi],["circle",mo],["cross",Ji],["diamond",ta],["diamond2",ea],["hexagon",zv],["plus",na],["square",ra],["square2",oa],["star",ia],["times",ho],["triangle",aa],["triangle2",fa],["wye",ua]]);function Pg(t){return t&&typeof t.draw=="function"}function Og(t){return Pg(t)?!0:typeof t!="string"?!1:Lg.has(t.toLowerCase())}function Co(t){if(t==null||Pg(t))return t;let e=Lg.get(`${t}`.toLowerCase());if(e)return e;throw new Error(`invalid symbol: ${t}`)}function Ao({filter:t,sort:e,reverse:n,transform:r,initializer:o,...i}={},a){if(r===void 0&&(t!=null&&(r=Fg(t)),e!=null&&!Cr(e)&&(r=_d(r,Yg(e))),n&&(r=_d(r,qg))),a!=null&&o!=null)throw new Error("transforms cannot be applied after initializers");return{...i,...(e===null||Cr(e))&&{sort:e},transform:_d(r,a)}}function Er({filter:t,sort:e,reverse:n,initializer:r,...o}={},i){return r===void 0&&(t!=null&&(r=Fg(t)),e!=null&&!Cr(e)&&(r=Cd(r,Yg(e))),n&&(r=Cd(r,qg))),{...o,...(e===null||Cr(e))&&{sort:e},initializer:Cd(r,i)}}function _d(t,e){return t==null?e===null?void 0:e:e==null?t===null?void 0:t:function(n,r,o){return{data:n,facets:r}=t.call(this,n,r,o),e.call(this,kt(n),r,o)}}function Cd(t,e){return t==null?e===null?void 0:e:e==null?t===null?void 0:t:function(n,r,o,...i){let a,f,u,c,s,d;return{data:f=n,facets:u=r,channels:a}=t.call(this,n,r,o,...i),{data:s=f,facets:d=u,channels:c}=e.call(this,f,u,{...o,...a},...i),{data:s,facets:d,channels:{...a,...c}}}}function Fg(t){return(e,n)=>{let r=gt(e,t);return{data:e,facets:n.map(o=>o.filter(i=>r[i]))}}}function qg(t,e){return{data:t,facets:e.map(n=>n.slice().reverse())}}function Yg(t){return(typeof t=="function"&&t.length!==1?Bv:Uv)(t)}function Bv(t){return(e,n)=>{let r=(o,i)=>t(e[o],e[i]);return{data:e,facets:n.map(o=>o.slice().sort(r))}}}function Uv(t){let e,n;({channel:e,value:t,order:n}={...rn(t)});let r=e?.startsWith("-");if(r&&(e=e.slice(1)),n===void 0&&(n=r?Mr:Kt),typeof n!="function")switch(`${n}`.toLowerCase()){case"ascending":n=Kt;break;case"descending":n=Mr;break;default:throw new Error(`invalid order: ${n}`)}return(o,i,a)=>{let f;if(e===void 0)f=gt(o,t);else{if(a===void 0)throw new Error("channel sort requires an initializer");if(f=a[e],!f)return{};f=f.value}let u=(c,s)=>n(f[c],f[s]);return{data:o,facets:i.map(c=>c.slice().sort(u))}}}function wa(t,...e){for(let{name:n}of t)if(e.includes(n))return!0;return!1}function Ug(t,e,n=Ad){let r=Object.entries(t);return e.title!=null&&t.title===void 0&&r.push(["title",Vv]),e.href!=null&&t.href===void 0&&r.push(["href",kd]),r.filter(([,o])=>o!==void 0).map(([o,i])=>i===null?Xv(o):n(o,i,e))}function Ad(t,e,n,r=$d){let o;Sn(e)&&"reduce"in e&&(o=e.scale,e=e.reduce);let i=r(t,e,n),[a,f]=bo(i.label),u;return{name:t,output:o===void 0?a:{value:a,scale:o},initialize(c){i.initialize(c),u=f([])},scope(c,s){i.scope(c,s)},reduce(c,s){u.push(i.reduce(c,s))}}}function Xv(t){return{name:t,initialize(){},scope(){},reduce(){}}}function $d(t,e,n,r=va){let o=Cg(t,n),i=r(e,o),a,f;return{label:Re(i===ba?null:o,i.label),initialize(u){a=o===void 0?u:gt(u,o),i.scope==="data"&&(f=i.reduceIndex(ne(u),a))},scope(u,c){i.scope===u&&(f=i.reduceIndex(c,a))},reduce(u,c){return i.scope==null?i.reduceIndex(u,a,c):i.reduceIndex(u,a,f,c)}}}function Ed(t,e){return e?qe(sn(t,n=>e[n]),ma):[[,t]]}function va(t,e,n=Hv){if(t==null)return n(t);if(typeof t.reduceIndex=="function")return t;if(typeof t.reduce=="function"&&Sn(t))return Wv(t);if(typeof t=="function")return Gv(t);if(/^p\d{2}$/i.test(t))return Tn(bg(t));switch(`${t}`.toLowerCase()){case"first":return kd;case"last":return jv;case"identity":return Id;case"count":return ba;case"distinct":return Zv;case"sum":return e==null?ba:Kv;case"proportion":return Bg(e,"data");case"proportion-facet":return Bg(e,"facet");case"deviation":return Tn(Rr);case"min":return Tn(Jt);case"min-index":return Tn(Ya);case"max":return Tn(Ht);case"max-index":return Tn(qa);case"mean":return zg(Ua);case"median":return zg(ln);case"variance":return Tn(Nr);case"mode":return Tn(Xa)}return n(t)}function Hv(t){throw new Error(`invalid reduce: ${t}`)}function Xg(t,e){for(let n in e){let r=e[n];if(r!==void 0&&!t.some(o=>o.name===n))return r}}function Hg(t,e,n){if(e){let r=e.output.transform(),o=(i,a)=>Kt(r[i],r[a]);t.forEach(i=>i.sort(o))}n&&t.forEach(r=>r.reverse())}function Wv(t){return console.warn("deprecated reduce interface; implement reduceIndex instead."),{...t,reduceIndex:t.reduce.bind(t)}}function Gv(t){return{reduceIndex(e,n,r){return t(wd(n,e),r)}}}function Tn(t){return{reduceIndex(e,n){return t(e,r=>n[r])}}}function zg(t){return{reduceIndex(e,n){let r=t(e,o=>n[o]);return zt(n)?new Date(r):r}}}var Id={reduceIndex(t,e){return wd(e,t)}},kd={reduceIndex(t,e){return e[t[0]]}},Vv={reduceIndex(t,e){let r=qe(Ce(t,i=>i.length,i=>e[i]),Cc),o=r.slice(-5).reverse();if(o.length<r.length){let i=r.slice(0,-4);o[5-1]=[`\u2026 ${i.length.toLocaleString("en-US")} more`,fe(i,Cc)]}return o.map(([i,a])=>`${i} (${a.toLocaleString("en-US")})`).join(`
`)}},jv={reduceIndex(t,e){return e[t[t.length-1]]}},ba={label:"Frequency",reduceIndex(t){return t.length}},Zv={label:"Distinct",reduceIndex(t,e){let n=new cn;for(let r of t)n.add(e[r]);return n.size}},Kv=Tn(fe);function Bg(t,e){return t==null?{scope:e,label:"Frequency",reduceIndex:(n,r,o=1)=>n.length/o}:{scope:e,reduceIndex:(n,r,o=1)=>fe(n,i=>r[i])/o}}function $o(t,{scale:e,type:n,value:r,filter:o,hint:i},a){return i===void 0&&typeof r?.transform=="function"&&(i=r.hint),Nd(a,{scale:e,type:n,value:gt(t,r),label:Re(r),filter:o,hint:i})}function Gg(t,e){return Object.fromEntries(Object.entries(t).map(([n,r])=>[n,$o(e,r,n)]))}function Vg(t,e){let n=Object.fromEntries(Object.entries(t).map(([r,{scale:o,value:i}])=>{let a=o==null?null:e[o];return[r,a==null?i:pt(i,a)]}));return n.channels=t,n}function Nd(t,e){let{scale:n,value:r}=e;if(n===!0||n==="auto")switch(t){case"fill":case"stroke":case"color":e.scale=n!==!0&&Ec(r,wo)?null:"color";break;case"fillOpacity":case"strokeOpacity":case"opacity":e.scale=n!==!0&&Ec(r,Dg)?null:"opacity";break;case"symbol":n!==!0&&Ec(r,Og)?(e.scale=null,e.value=pt(r,Co)):e.scale="symbol";break;default:e.scale=st.has(t)?t:null;break}else if(n===!1)e.scale=null;else if(n!=null&&!st.has(n))throw new Error(`unknown scale: ${n}`);return e}function jg(t,e,n,r,o){let{order:i,reverse:a,reduce:f=!0,limit:u}=o;for(let c in o){if(!st.has(c))continue;let{value:s,order:d=i,reverse:l=a,reduce:p=f,limit:m=u}=rn(o[c]),h=s?.startsWith("-");if(h&&(s=s.slice(1)),d=d===void 0?h!==(s==="width"||s==="height")?Kg:Zg:t8(d),p==null||p===!1)continue;let g=c==="fx"||c==="fy"?Jv(e,r[c]):Qv(n,c);if(!g)throw new Error(`missing channel for scale: ${c}`);let b=g.value,[x=0,M=1/0]=re(m)?m:m<0?[m]:[0,m];if(s==null)g.domain=()=>{let y=Array.from(new cn(b));return l&&(y=y.reverse()),(x!==0||M!==1/0)&&(y=y.slice(x,M)),y};else{let y=s==="data"?t:s==="height"?Wg(n,"y1","y2"):s==="width"?Wg(n,"x1","x2"):Dd(n,s,s==="y"?"y2":s==="x"?"x2":void 0),w=va(p===!0?"max":p,y);g.domain=()=>{let v=os(ne(b),T=>w.reduceIndex(T,y),T=>b[T]);return d&&v.sort(d),l&&v.reverse(),(x!==0||M!==1/0)&&(v=v.slice(x,M)),v.map(ma)}}}}function Qv(t,e){for(let n in t){let r=t[n];if(r.scale===e)return r}}function Jv(t,e){let n=t.original;if(n===t)return e;let r=e.value,o=e.value=[];for(let i=0;i<n.length;++i){let a=r[n[i][0]];for(let f of t[i])o[f]=a}return e}function Wg(t,e,n){let r=Dd(t,e),o=Dd(t,n);return pt(o,(i,a)=>Math.abs(i-r[a]),Float64Array)}function Dd(t,e,n){let r=t[e];if(!r&&n!==void 0&&(r=t[n]),r)return r.value;throw new Error(`missing channel: ${e}`)}function t8(t){if(t==null||typeof t=="function")return t;switch(`${t}`.toLowerCase()){case"ascending":return Zg;case"descending":return Kg}throw new Error(`invalid order: ${t}`)}function Zg([t,e],[n,r]){return Kt(e,r)||Kt(t,n)}function Kg([t,e],[n,r]){return Mr(e,r)||Kt(t,n)}function Qg(t,e){let n=t[e];if(n){for(;n.source;)n=n.source;return n.source===null?null:n}}function Eo(t={}){let{document:e=typeof window<"u"?window.document:void 0}=t;return{document:e}}function yt(t,{document:e}){return hn(pn(t).call(e.documentElement))}var Rd=0;function Jg(){let t=Rd;return Rd=0,t}function on(t){console.warn(t),++Rd}var e1=Math.PI,_n=2*e1,t1=.618;function n1({projection:t,inset:e=0,insetTop:n=e,insetRight:r=e,insetBottom:o=e,insetLeft:i=e}={},a){if(t==null)return;if(typeof t.stream=="function")return t;let f,u,c="frame";if(Sn(t)){let w;if({type:t,domain:u,inset:w,insetTop:n=w!==void 0?w:n,insetRight:r=w!==void 0?w:r,insetBottom:o=w!==void 0?w:o,insetLeft:i=w!==void 0?w:i,clip:c=c,...f}=t,t==null)return}typeof t!="function"&&({type:t}=r1(t));let{width:s,height:d,marginLeft:l,marginRight:p,marginTop:m,marginBottom:h}=a,g=s-l-p-i-r,b=d-m-h-n-o;if(t=t?.({width:g,height:b,clip:c,...f}),t==null)return;c=e8(c,l,m,s-p,d-h);let x=l+i,M=m+n,y;if(u!=null){let[[w,v],[T,E]]=Si(t).bounds(u),I=Math.min(g/(T-w),b/(E-v));I>0?(x-=(I*(w+T)-g)/2,M-=(I*(v+E)-b)/2,y=Ti({point(D,_){this.stream.point(D*I+x,_*I+M)}})):on("Warning: the projection could not be fit to the specified domain; using the default scale.")}return y??=x===0&&M===0?o1():Ti({point(w,v){this.stream.point(w+x,v+M)}}),{stream:w=>t.stream(y.stream(c(w)))}}function r1(t){switch(`${t}`.toLowerCase()){case"albers-usa":return Le(hl,.7463,.4673);case"albers":return Ic(Ci,.7463,.4673);case"azimuthal-equal-area":return Le(xl,4,4);case"azimuthal-equidistant":return Le(bl,_n,_n);case"conic-conformal":return Ic(Ml,_n,_n);case"conic-equal-area":return Ic(Rn,6.1702,2.9781);case"conic-equidistant":return Ic(Tl,7.312,3.6282);case"equal-earth":return Le(Cl,5.4133,2.6347);case"equirectangular":return Le(Sl,_n,e1);case"gnomonic":return Le($l,3.4641,3.4641);case"identity":return{type:o1};case"reflect-y":return{type:n8};case"mercator":return Le(wl,_n,_n);case"orthographic":return Le(Il,2,2);case"stereographic":return Le(Dl,2,2);case"transverse-mercator":return Le(Rl,_n,_n);default:throw new Error(`unknown projection type: ${t}`)}}function e8(t,e,n,r,o){if(t===!1||t==null||typeof t=="number")return i=>i;switch(t===!0&&(t="frame"),`${t}`.toLowerCase()){case"frame":return Kr(e,n,r,o);default:throw new Error(`unknown projection clip type: ${t}`)}}function Le(t,e,n){return{type:({width:r,height:o,rotate:i,precision:a=.15,clip:f})=>{let u=t();return a!=null&&u.precision?.(a),i!=null&&u.rotate?.(i),typeof f=="number"&&u.clipAngle?.(f),u.scale(Math.min(r/e,o/n)),u.translate([r/2,o/2]),u},aspectRatio:n/e}}function Ic(t,e,n){let{type:r,aspectRatio:o}=Le(t,e,n);return{type:i=>{let{parallels:a,domain:f,width:u,height:c}=i,s=r(i);return a!=null&&(s.parallels(a),f===void 0&&s.fitSize([u,c],{type:"Sphere"})),s},aspectRatio:o}}var o1=Wn({stream:t=>t}),n8=Wn(Ti({point(t,e){this.stream.point(t,-e)}}));function i1(t,e,n,r){let o=n[t],i=n[e],a=o.length,f=n[t]=new Float64Array(a).fill(NaN),u=n[e]=new Float64Array(a).fill(NaN),c,s=r.stream({point(d,l){f[c]=d,u[c]=l}});for(c=0;c<a;++c)s.point(o[c],i[c])}function a1({projection:t}={}){return t==null?!1:typeof t.stream=="function"?!0:(Sn(t)&&(t=t.type),t!=null)}function f1(t){if(typeof t?.stream=="function")return t1;if(Sn(t)&&(t=t.type),t!=null){if(typeof t!="function"){let{aspectRatio:e}=r1(t);if(e)return e}return t1}}function u1(t){let e=[],n=[],r={scale:"x",value:e},o={scale:"y",value:n},i={point(a,f){e.push(a),n.push(f)},lineStart(){},lineEnd(){},polygonStart(){},polygonEnd(){},sphere(){}};for(let a of t.value)Ie(a,i);return[r,o]}var p1=new Map([["accent",Ql],["category10",Kl],["dark2",Jl],["paired",td],["pastel1",ed],["pastel2",nd],["set1",rd],["set2",od],["set3",id],["tableau10",ad]]);function m1(t){return t!=null&&p1.has(`${t}`.toLowerCase())}var c1=new Map([...p1,["brbg",Cn(cu,su)],["prgn",Cn(lu,du)],["piyg",Cn(pu,mu)],["puor",Cn(hu,gu)],["rdbu",Cn(ji,co)],["rdgy",Cn(xu,yu)],["rdylbu",Cn(Zi,so)],["rdylgn",Cn(bu,wu)],["spectral",Cn(vu,Mu)],["burd",s1(ji,co)],["buylrd",s1(Zi,so)],["blues",Ot(Gu,Vu)],["greens",Ot(ju,Zu)],["greys",Ot(Ku,Qu)],["oranges",Ot(rc,oc)],["purples",Ot(Ju,tc)],["reds",Ot(ec,nc)],["turbo",An(pc)],["viridis",An(hc)],["magma",An(gc)],["inferno",An(xc)],["plasma",An(yc)],["cividis",An(ic)],["cubehelix",An(ac)],["warm",An(uc)],["cool",An(cc)],["bugn",Ot(Su,Tu)],["bupu",Ot(_u,Cu)],["gnbu",Ot(Au,$u)],["orrd",Ot(Eu,Iu)],["pubu",Ot(Nu,Ru)],["pubugn",Ot(ku,Du)],["purd",Ot(Lu,Pu)],["rdpu",Ot(Ou,Fu)],["ylgn",Ot(zu,Bu)],["ylgnbu",Ot(qu,Yu)],["ylorbr",Ot(Uu,Xu)],["ylorrd",Ot(Hu,Wu)],["rainbow",l1(sc)],["sinebow",l1(dc)]]);function Ot(t,e){return({length:n})=>n===1?[t[3][1]]:n===2?[t[3][1],t[3][2]]:(n=Math.max(3,Math.floor(n)),n>9?Wt(e,n):t[n])}function Cn(t,e){return({length:n})=>n===2?[t[3][0],t[3][2]]:(n=Math.max(3,Math.floor(n)),n>11?Wt(e,n):t[n])}function s1(t,e){return({length:n})=>n===2?[t[3][2],t[3][0]]:(n=Math.max(3,Math.floor(n)),n>11?Wt(r=>e(1-r),n):t[n].slice().reverse())}function An(t){return({length:e})=>Wt(t,Math.max(2,Math.floor(e)))}function l1(t){return({length:e})=>Wt(t,Math.floor(e)+1).slice(0,-1)}function Ld(t){let e=`${t}`.toLowerCase();if(!c1.has(e))throw new Error(`unknown ordinal scheme: ${e}`);return c1.get(e)}function Ma(t,e){let n=Ld(t),r=typeof n=="function"?n({length:e}):n;return r.length!==e?r.slice(0,e):r}function h1(t,e="greys"){let n=new Set,[r,o]=Ma(e,2);for(let i of t)if(i!=null)if(i===!0)n.add(o);else if(i===!1)n.add(r);else return;return[...n]}var d1=new Map([["brbg",su],["prgn",du],["piyg",mu],["puor",gu],["rdbu",co],["rdgy",yu],["rdylbu",so],["rdylgn",wu],["spectral",Mu],["burd",t=>co(1-t)],["buylrd",t=>so(1-t)],["blues",Vu],["greens",Zu],["greys",Qu],["purples",tc],["reds",nc],["oranges",oc],["turbo",pc],["viridis",hc],["magma",gc],["inferno",xc],["plasma",yc],["cividis",ic],["cubehelix",ac],["warm",uc],["cool",cc],["bugn",Tu],["bupu",Cu],["gnbu",$u],["orrd",Iu],["pubugn",Du],["pubu",Ru],["purd",Pu],["rdpu",Fu],["ylgnbu",Yu],["ylgn",Bu],["ylorbr",Xu],["ylorrd",Wu],["rainbow",sc],["sinebow",dc]]);function Io(t){let e=`${t}`.toLowerCase();if(!d1.has(e))throw new Error(`unknown quantitative scheme: ${e}`);return d1.get(e)}var r8=new Set(["brbg","prgn","piyg","puor","rdbu","rdgy","rdylbu","rdylgn","spectral","burd","buylrd"]);function g1(t){return t!=null&&r8.has(`${t}`.toLowerCase())}var Od=t=>e=>t(1-e),Pd=[0,1],x1=new Map([["number",ht],["rgb",we],["hsl",Ds],["hcl",Ns],["lab",uf]]);function Fd(t){let e=`${t}`.toLowerCase();if(!x1.has(e))throw new Error(`unknown interpolator: ${e}`);return x1.get(e)}function Do(t,e,n,{type:r,nice:o,clamp:i,zero:a,domain:f=_1(t,n),unknown:u,round:c,scheme:s,interval:d,range:l=st.get(t)===Mo?f8(n,f):st.get(t)===So?u8(n,f):st.get(t)===To?Pd:void 0,interpolate:p=st.get(t)===pe?s==null&&l!==void 0?we:Io(s!==void 0?s:r==="cyclical"?"rainbow":"turbo"):c?fr:ht,reverse:m}){if(d=nn(d,r),(r==="cyclical"||r==="sequential")&&(r="linear"),typeof p!="function"&&(p=Fd(p)),m=!!m,l!==void 0){let h=(f=kt(f)).length,g=(l=kt(l)).length;if(h!==g){if(p.length===1)throw new Error("invalid piecewise interpolator");p=Xe(p,l),l=void 0}}if(p.length===1?(m&&(p=Od(p),m=!1),l===void 0&&(l=Float64Array.from(f,(h,g)=>g/(f.length-1)),l.length===2&&(l=Pd)),e.interpolate((l===Pd?Wn:Sa)(p))):e.interpolate(p),a){let[h,g]=Ct(f);(h>0||g<0)&&(f=ha(f),Mn(f)!==Math.sign(h)?f[f.length-1]=0:f[0]=0)}return m&&(f=$n(f)),e.domain(f).unknown(u),o&&(e.nice(o8(o,r)),f=e.domain()),l!==void 0&&e.range(l),i&&e.clamp(i),{type:r,domain:f,range:l,scale:e,interpolate:p,interval:d}}function o8(t,e){return t===!0?void 0:typeof t=="number"?t:Ag(t,e)}function y1(t,e,n){return Do(t,hr(),e,n)}function b1(t,e,n){return qd(t,e,{...n,exponent:.5})}function qd(t,e,{exponent:n=1,...r}){return Do(t,Fi().exponent(n),e,{...r,type:"pow"})}function w1(t,e,{base:n=10,domain:r=c8(e),...o}){return Do(t,Pi().base(n),e,{...o,domain:r})}function v1(t,e,{constant:n=1,...r}){return Do(t,Oi().constant(n),e,r)}function M1(t,e,{range:n,quantiles:r=n===void 0?5:(n=[...n]).length,n:o=r,scheme:i="rdylbu",domain:a=s8(e),unknown:f,interpolate:u,reverse:c}){return n===void 0&&(n=u!==void 0?Wt(u,o):st.get(t)===pe?Ma(i,o):void 0),a.length>0&&(a=qi(a,n===void 0?{length:o}:n).quantiles()),kc(t,e,{domain:a,range:n,reverse:c,unknown:f})}function S1(t,e,{range:n,n:r=n===void 0?5:(n=[...n]).length,scheme:o="rdylbu",domain:i=_1(t,e),unknown:a,interpolate:f,reverse:u}){let[c,s]=Ct(i),d;return n===void 0?(d=Ae(c,s,r),d[0]<=c&&d.splice(0,1),d[d.length-1]>=s&&d.pop(),r=d.length+1,n=f!==void 0?Wt(f,r):st.get(t)===pe?Ma(o,r):void 0):(d=Wt(ht(c,s),r+1).slice(1,-1),c instanceof Date&&(d=d.map(l=>new Date(l)))),Mn(kt(i))<0&&d.reverse(),kc(t,e,{domain:d,range:n,reverse:u,unknown:a})}function kc(t,e,{domain:n=[0],unknown:r,scheme:o="rdylbu",interpolate:i,range:a=i!==void 0?Wt(i,n.length+1):st.get(t)===pe?Ma(o,n.length+1):void 0,reverse:f}){n=kt(n);let u=Mn(n);if(!isNaN(u)&&!i8(n,u))throw new Error(`the ${t} scale has a non-monotonic domain`);return f&&(a=$n(a)),{type:"threshold",scale:Yi(u<0?$n(n):n,a===void 0?[]:a).unknown(r),domain:n,range:a}}function i8(t,e){for(let n=1,r=t.length,o=t[0];n<r;++n){let i=xe(o,o=t[n]);if(i!==0&&i!==e)return!1}return!0}function T1(){return{type:"identity",scale:Ri()}}function ko(t,e=pd){return t.length?[Jt(t,({value:n})=>n===void 0?n:Jt(n,e)),Ht(t,({value:n})=>n===void 0?n:Ht(n,e))]:[0,1]}function _1(t,e){let n=st.get(t);return(n===Mo||n===To||n===So?a8:ko)(e)}function a8(t){return[0,t.length?Ht(t,({value:e})=>e===void 0?e:Ht(e,pd)):1]}function f8(t,e){let n=t.find(({radius:a})=>a!==void 0);if(n!==void 0)return[0,n.radius];let r=ye(t,.5,({value:a})=>a===void 0?NaN:ye(a,.25,ca)),o=e.map(a=>3*Math.sqrt(a/r)),i=30/Ht(o);return i<1?o.map(a=>a*i):o}function u8(t,e){let n=ln(t,({value:i})=>i===void 0?NaN:ln(i,Math.abs)),r=e.map(i=>12*i/n),o=60/Ht(r);return o<1?r.map(i=>i*o):r}function c8(t){for(let{value:e}of t)if(e!==void 0)for(let n of e){if(n>0)return ko(t,ca);if(n<0)return ko(t,vc)}return[1,10]}function s8(t){let e=[];for(let{value:n}of t)if(n!==void 0)for(let r of n)e.push(r);return e}function Sa(t){return(e,n)=>r=>t(e+r*(n-e))}function Dc(t,e,n,r,{type:o,nice:i,clamp:a,domain:f=ko(r),unknown:u,pivot:c=0,scheme:s,range:d,symmetric:l=!0,interpolate:p=st.get(t)===pe?s==null&&d!==void 0?we:Io(s!==void 0?s:"rdbu"):ht,reverse:m}){c=+c,f=kt(f);let[h,g]=f;if(f.length>2&&on(`Warning: the diverging ${t} scale domain contains extra elements.`),xe(h,g)<0&&([h,g]=[g,h],m=!m),h=Math.min(h,c),g=Math.max(g,c),typeof p!="function"&&(p=Fd(p)),d!==void 0&&(p=p.length===1?Sa(p)(...d):Xe(p,d)),m&&(p=Od(p)),l){let b=n.apply(c),x=b-n.apply(h),M=n.apply(g)-b;x<M?h=n.invert(b-M):x>M&&(g=n.invert(b+x))}return e.domain([h,c,g]).unknown(u).interpolator(p),a&&e.clamp(a),i&&e.nice(i),{type:o,domain:[h,g],pivot:c,interpolate:p,scale:e}}function C1(t,e,n){return Dc(t,Vi(),l8,e,n)}function A1(t,e,n){return Yd(t,e,{...n,exponent:.5})}function Yd(t,e,{exponent:n=1,...r}){return Dc(t,uu().exponent(n=+n),m8(n),e,{...r,type:"diverging-pow"})}function $1(t,e,{base:n=10,pivot:r=1,domain:o=ko(e,r<0?vc:ca),...i}){return Dc(t,au().base(n=+n),d8,e,{domain:o,pivot:r,...i})}function E1(t,e,{constant:n=1,...r}){return Dc(t,fu().constant(n=+n),h8(n),e,r)}var l8={apply(t){return t},invert(t){return t}},d8={apply:Math.log,invert:Math.exp},p8={apply(t){return Math.sign(t)*Math.sqrt(Math.abs(t))},invert(t){return Math.sign(t)*(t*t)}};function m8(t){return t===.5?p8:{apply(e){return Math.sign(e)*Math.pow(Math.abs(e),t)},invert(e){return Math.sign(e)*Math.pow(Math.abs(e),1/t)}}}function h8(t){return{apply(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))},invert(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}}function I1(t,e,n,r){return Do(t,e,n,r)}function k1(t,e,n){return I1(t,ru(),e,n)}function D1(t,e,n){return I1(t,ou(),e,n)}var No=Symbol("ordinal");function R1(t,e,n,{type:r,interval:o,domain:i,range:a,reverse:f,hint:u}){return o=nn(o,r),i===void 0&&(i=q1(n,o,t)),(r==="categorical"||r===No)&&(r="ordinal"),f&&(i=$n(i)),e.domain(i),a!==void 0&&(typeof a=="function"&&(a=a(i)),e.range(a)),{type:r,domain:i,range:a,scale:e,hint:u,interval:o}}function L1(t,e,{type:n,interval:r,domain:o,range:i,scheme:a,unknown:f,...u}){r=nn(r,n),o===void 0&&(o=q1(e,r,t));let c;if(st.get(t)===_o)c=g8(e),i=i===void 0?x8(c):pt(i,Co);else if(st.get(t)===pe&&(i===void 0&&(n==="ordinal"||n===No)&&(i=h1(o,a),i!==void 0&&(a=void 0)),a===void 0&&i===void 0&&(a=n==="ordinal"?"turbo":"tableau10"),a!==void 0))if(i!==void 0){let s=Io(a),d=i[0],l=i[1]-i[0];i=({length:p})=>Wt(m=>s(d+l*m),p)}else i=Ld(a);if(f===Di)throw new Error(`implicit unknown on ${t} scale is not supported`);return R1(t,pr().unknown(f),e,{...u,type:n,domain:o,range:i,hint:c})}function P1(t,e,{align:n=.5,padding:r=.5,...o}){return F1(Ll().align(n).padding(r),e,o,t)}function O1(t,e,{align:n=.5,padding:r=.1,paddingInner:o=r,paddingOuter:i=t==="fx"||t==="fy"?0:r,...a}){return F1(Ln().align(n).paddingInner(o).paddingOuter(i),e,a,t)}function F1(t,e,n,r){let{round:o}=n;return o!==void 0&&t.round(o=!!o),t=R1(r,t,e,n),t.round=o,t}function q1(t,e,n){let r=new cn;for(let{value:o,domain:i}of t){if(i!==void 0)return i();if(o!==void 0)for(let a of o)r.add(a)}if(e!==void 0){let[o,i]=Ct(r).map(e.floor,e);return e.range(o,e.offset(i))}if(r.size>1e4&&st.get(n)===de)throw new Error(`implicit ordinal domain of ${n} scale has more than 10,000 values`);return qe(r,Kt)}function N1(t,e){let n;for(let{hint:r}of t){let o=r?.[e];if(o!==void 0){if(n===void 0)n=o;else if(n!==o)return}}return n}function g8(t){return{fill:N1(t,"fill"),stroke:N1(t,"stroke")}}function x8(t){return Pt(t.fill)?sd:bc}function Ta(t,{label:e,inset:n=0,insetTop:r=n,insetRight:o=n,insetBottom:i=n,insetLeft:a=n,round:f,nice:u,clamp:c,zero:s,align:d,padding:l,projection:p,facet:{label:m=e}={},...h}={}){let g={};for(let[b,x]of t){let M=h[b],y=w8(b,x,{round:st.get(b)===de?f:void 0,nice:u,clamp:c,zero:s,align:d,padding:l,projection:p,...M});if(y){let{label:w=b==="fx"||b==="fy"?m:e,percent:v,transform:T,inset:E,insetTop:I=E!==void 0?E:b==="y"?r:0,insetRight:D=E!==void 0?E:b==="x"?o:0,insetBottom:_=E!==void 0?E:b==="y"?i:0,insetLeft:L=E!==void 0?E:b==="x"?a:0}=M||{};if(T==null)T=void 0;else if(typeof T!="function")throw new Error("invalid scale transform; not a function");y.percent=!!v,y.label=w===void 0?y8(x,y):w,y.transform=T,b==="x"||b==="fx"?(y.insetLeft=+L,y.insetRight=+D):(b==="y"||b==="fy")&&(y.insetTop=+I,y.insetBottom=+_),g[b]=y}}return g}function Bd(t){return Object.fromEntries(Object.entries(t).filter(([,{scale:e}])=>e).map(([e,{scale:n,type:r,interval:o,label:i}])=>(n.type=r,o!=null&&(n.interval=o),i!=null&&(n.label=i),[e,n])))}function U1(t,e){let{x:n,y:r,fx:o,fy:i}=t,a=o||i?Rc(e):e;o&&Y1(o,a),i&&z1(i,a);let f=o||i?Ud(t,e):e;n&&Y1(n,f),r&&z1(r,f)}function y8(t=[],e){let n;for(let{label:r}of t)if(r!==void 0){if(n===void 0)n=r;else if(n!==r)return}if(n!==void 0)return!an(e)&&e.percent&&(n=`${n} (%)`),{inferred:!0,toString:()=>n}}function Rc(t){let{marginTop:e,marginRight:n,marginBottom:r,marginLeft:o,width:i,height:a,facet:{marginTop:f,marginRight:u,marginBottom:c,marginLeft:s}}=t;return{marginTop:Math.max(e,f),marginRight:Math.max(n,u),marginBottom:Math.max(r,c),marginLeft:Math.max(o,s),width:i,height:a}}function Ud({fx:t,fy:e},n){let{marginTop:r,marginRight:o,marginBottom:i,marginLeft:a,width:f,height:u}=Rc(n);return{marginTop:r,marginRight:o,marginBottom:i,marginLeft:a,width:t?t.scale.bandwidth()+a+o:f,height:e?e.scale.bandwidth()+r+i:u,facet:{width:f,height:u}}}function Y1(t,e){if(t.range===void 0){let{insetLeft:n,insetRight:r}=t,{width:o,marginLeft:i=0,marginRight:a=0}=e,f=i+n,u=o-a-r;t.range=[f,Math.max(f,u)],an(t)||(t.range=H1(t)),t.scale.range(t.range)}X1(t)}function z1(t,e){if(t.range===void 0){let{insetTop:n,insetBottom:r}=t,{height:o,marginTop:i=0,marginBottom:a=0}=e,f=i+n,u=o-a-r;t.range=[Math.max(f,u),f],an(t)?t.range.reverse():t.range=H1(t),t.scale.range(t.range)}X1(t)}function X1(t){t.round===void 0&&M8(t)&&b8(t)<=30&&t.scale.round(!0)}function b8({scale:t}){let e=t.domain().length,[n,r]=t.range(),o=t.paddingInner?t.paddingInner():1,i=t.paddingOuter?t.paddingOuter():t.padding(),a=e-o,f=Math.abs(r-n)/Math.max(1,a+i*2);return(f-Math.floor(f))*a}function H1(t){let e=t.scale.domain().length+Xd(t);if(!(e>2))return t.range;let[n,r]=t.range;return Array.from({length:e},(o,i)=>n+i/(e-1)*(r-n))}function w8(t,e=[],n={}){let r=v8(t,e,n);if(n.type===void 0&&n.domain===void 0&&n.range===void 0&&n.interval==null&&t!=="fx"&&t!=="fy"&&an({type:r})){let o=e.map(({value:i})=>i).filter(i=>i!==void 0);o.some(zt)?on(`Warning: some data associated with the ${t} scale are dates. Dates are typically associated with a "utc" or "time" scale rather than a "${Ro(r)}" scale. If you are using a bar mark, you probably want a rect mark with the interval option instead; if you are using a group transform, you probably want a bin transform instead. If you want to treat this data as ordinal, you can specify the interval of the ${t} scale (e.g., d3.utcDay), or you can suppress this warning by setting the type of the ${t} scale to "${Ro(r)}".`):o.some(Eg)?on(`Warning: some data associated with the ${t} scale are strings that appear to be dates (e.g., YYYY-MM-DD). If these strings represent dates, you should parse them to Date objects. Dates are typically associated with a "utc" or "time" scale rather than a "${Ro(r)}" scale. If you are using a bar mark, you probably want a rect mark with the interval option instead; if you are using a group transform, you probably want a bin transform instead. If you want to treat this data as ordinal, you can suppress this warning by setting the type of the ${t} scale to "${Ro(r)}".`):o.some(Ig)&&on(`Warning: some data associated with the ${t} scale are strings that appear to be numbers. If these strings represent numbers, you should parse or coerce them to numbers. Numbers are typically associated with a "linear" scale rather than a "${Ro(r)}" scale. If you want to treat this data as ordinal, you can specify the interval of the ${t} scale (e.g., 1 for integers), or you can suppress this warning by setting the type of the ${t} scale to "${Ro(r)}".`)}switch(n.type=r,r){case"diverging":case"diverging-sqrt":case"diverging-pow":case"diverging-log":case"diverging-symlog":case"cyclical":case"sequential":case"linear":case"sqrt":case"threshold":case"quantile":case"pow":case"log":case"symlog":n=Nc(e,n,Tr);break;case"identity":switch(st.get(t)){case de:n=Nc(e,n,Tr);break;case _o:n=Nc(e,n,S8);break}break;case"utc":case"time":n=Nc(e,n,wg);break}switch(r){case"diverging":return C1(t,e,n);case"diverging-sqrt":return A1(t,e,n);case"diverging-pow":return Yd(t,e,n);case"diverging-log":return $1(t,e,n);case"diverging-symlog":return E1(t,e,n);case"categorical":case"ordinal":case No:return L1(t,e,n);case"cyclical":case"sequential":case"linear":return y1(t,e,n);case"sqrt":return b1(t,e,n);case"threshold":return kc(t,e,n);case"quantile":return M1(t,e,n);case"quantize":return S1(t,e,n);case"pow":return qd(t,e,n);case"log":return w1(t,e,n);case"symlog":return v1(t,e,n);case"utc":return D1(t,e,n);case"time":return k1(t,e,n);case"point":return P1(t,e,n);case"band":return O1(t,e,n);case"identity":return st.get(t)===de?T1():{type:"identity"};case void 0:return;default:throw new Error(`unknown scale type: ${r}`)}}function Ro(t){return typeof t=="symbol"?t.description:t}var B1={toString:()=>"projection"};function v8(t,e,{type:n,domain:r,range:o,scheme:i,pivot:a,projection:f}){if(t==="fx"||t==="fy")return"band";(t==="x"||t==="y")&&f!=null&&(n=B1);for(let{type:c}of e)if(c!==void 0){if(n===void 0)n=c;else if(n!==c)throw new Error(`scale incompatible with channel: ${n} !== ${c}`)}if(n===B1)return;if(n!==void 0)return n;if(r===void 0&&!e.some(({value:c})=>c!==void 0))return;let u=st.get(t);if(u===Mo)return"sqrt";if(u===To||u===So)return"linear";if(u===_o)return"ordinal";if((r||o||[]).length>2)return zd(u);if(r!==void 0){if(Md(r))return zd(u);if(zt(r))return"utc"}else{let c=e.map(({value:s})=>s).filter(s=>s!==void 0);if(c.some(Md))return zd(u);if(c.some(zt))return"utc"}if(u===pe){if(a!=null||g1(i))return"diverging";if(m1(i))return"categorical"}return"linear"}function zd(t){switch(t){case de:return"point";case pe:return No;default:return"ordinal"}}function Lc({type:t}){return t==="time"||t==="utc"}function an({type:t}){return t==="ordinal"||t==="point"||t==="band"||t===No}function Xd({type:t}){return t==="threshold"}function M8({type:t}){return t==="point"||t==="band"}function fn(t){if(t===void 0)return!0;let e=t.domain(),n=t(e[0]);for(let r=1,o=e.length;r<o;++r)if(t(e[r])-n)return!1;return!0}function Nc(t,{domain:e,...n},r){for(let o of t)o.value!==void 0&&(o.value=r(o.value));return{domain:e===void 0?e:r(e),...n}}function S8(t){return pt(t,Co)}function W1(t){return e=>{if(!st.has(e=`${e}`))throw new Error(`unknown scale: ${e}`);return e in t?T8(t[e]):void 0}}function T8({scale:t,type:e,domain:n,range:r,interpolate:o,interval:i,transform:a,percent:f,pivot:u}){if(e==="identity")return{type:"identity",apply:s=>s,invert:s=>s};let c=t.unknown?t.unknown():void 0;return{type:e,domain:ha(n),...r!==void 0&&{range:ha(r)},...a!==void 0&&{transform:a},...f&&{percent:f},...c!==void 0&&{unknown:c},...i!==void 0&&{interval:i},...o!==void 0&&{interpolate:o},...t.clamp&&{clamp:t.clamp()},...u!==void 0&&{pivot:u,symmetric:!1},...t.base&&{base:t.base()},...t.exponent&&{exponent:t.exponent()},...t.constant&&{constant:t.constant()},...t.align&&{align:t.align(),round:t.round()},...t.padding&&(t.paddingInner?{paddingInner:t.paddingInner(),paddingOuter:t.paddingOuter()}:{padding:t.padding()}),...t.bandwidth&&{bandwidth:t.bandwidth(),step:t.step()},apply:s=>t(s),...t.invert&&{invert:s=>t.invert(s)}}}function Pc(t){let e,n;return(...r)=>((n?.length!==r.length||n.some((o,i)=>o!==r[i]))&&(n=r,e=t(...r)),e)}var _8=Pc(t=>new Intl.NumberFormat(t)),kq=Pc((t,e)=>new Intl.DateTimeFormat(t,{timeZone:"UTC",...e&&{month:e}})),Dq=Pc((t,e)=>new Intl.DateTimeFormat(t,{timeZone:"UTC",...e&&{weekday:e}}));function C8(t="en-US"){let e=_8(t);return n=>n!=null&&!isNaN(n)?e.format(n):void 0}function A8(t){return Mc(t,"Invalid Date")}function $8(t="en-US"){let e=C8(t);return n=>(n instanceof Date?A8:typeof n=="number"?e:Et)(n)}var _e=$8();var Bt=(typeof window<"u"?window.devicePixelRatio>1:typeof it>"u")?0:.5,E8=0;function G1(){return`plot-clip-${++E8}`}function V1(t,{title:e,href:n,ariaLabel:r,ariaDescription:o,ariaHidden:i,target:a,fill:f,fillOpacity:u,stroke:c,strokeWidth:s,strokeOpacity:d,strokeLinejoin:l,strokeLinecap:p,strokeMiterlimit:m,strokeDasharray:h,strokeDashoffset:g,opacity:b,mixBlendMode:x,imageFilter:M,paintOrder:y,pointerEvents:w,shapeRendering:v,channels:T},{ariaLabel:E,fill:I="currentColor",fillOpacity:D,stroke:_="none",strokeOpacity:L,strokeWidth:F,strokeLinecap:P,strokeLinejoin:S,strokeMiterlimit:A,paintOrder:N}){I===null&&(f=null,u=null),_===null&&(c=null,d=null),Pt(I)?!Pt(_)&&(!Pt(f)||T?.fill)&&(_="none"):Pt(_)&&(!Pt(c)||T?.stroke)&&(I="none");let[O,R]=ie(f,I),[tt,Z]=It(u,D),[W,Q]=ie(c,_),[at,Ut]=It(d,L),[Oe,G]=It(b);$r(Q)||(s===void 0&&(s=F),p===void 0&&(p=P),l===void 0&&(l=S),m===void 0&&!Ng(l)&&(m=A),!$r(R)&&y===void 0&&(y=N));let[X,$]=It(s);return I!==null&&(t.fill=St(R,"currentColor"),t.fillOpacity=_a(Z,1)),_!==null&&(t.stroke=St(Q,"none"),t.strokeWidth=_a($,1),t.strokeOpacity=_a(Ut,1),t.strokeLinejoin=St(l,"miter"),t.strokeLinecap=St(p,"butt"),t.strokeMiterlimit=_a(m,4),t.strokeDasharray=St(h,"none"),t.strokeDashoffset=St(g,"0")),t.target=Et(a),t.ariaLabel=Et(E),t.ariaDescription=Et(o),t.ariaHidden=Et(i),t.opacity=_a(G,1),t.mixBlendMode=St(x,"normal"),t.imageFilter=St(M,"none"),t.paintOrder=St(y,"normal"),t.pointerEvents=St(w,"auto"),t.shapeRendering=St(v,"auto"),{title:{value:e,optional:!0,filter:null},href:{value:n,optional:!0,filter:null},ariaLabel:{value:r,optional:!0,filter:null},fill:{value:O,scale:"auto",optional:!0},fillOpacity:{value:tt,scale:"auto",optional:!0},stroke:{value:W,scale:"auto",optional:!0},strokeOpacity:{value:at,scale:"auto",optional:!0},strokeWidth:{value:X,optional:!0},opacity:{value:Oe,scale:"auto",optional:!0}}}function I8(t,e){e&&t.filter(n=>wc(e[n])).append("title").call(k8,e)}function k8(t,e){e&&t.text(n=>_e(e[n]))}function Pe(t,{target:e,tip:n},{ariaLabel:r,title:o,fill:i,fillOpacity:a,stroke:f,strokeOpacity:u,strokeWidth:c,opacity:s,href:d}){r&&et(t,"aria-label",l=>r[l]),i&&et(t,"fill",l=>i[l]),a&&et(t,"fill-opacity",l=>a[l]),f&&et(t,"stroke",l=>f[l]),u&&et(t,"stroke-opacity",l=>u[l]),c&&et(t,"stroke-width",l=>c[l]),s&&et(t,"opacity",l=>s[l]),d&&N8(t,l=>d[l],e),n||I8(t,o)}function j1(t){return t===!0?t="frame":t===!1&&(t=null),_r(t,"clip",["frame","sphere"])}function D8(t,e,n,r){let o;switch(e.clip){case"frame":{let{width:i,height:a,marginLeft:f,marginRight:u,marginTop:c,marginBottom:s}=n,d=G1();o=`url(#${d})`,t=yt("svg:g",r).call(l=>l.append("svg:clipPath").attr("id",d).append("rect").attr("x",f).attr("y",c).attr("width",i-u-f).attr("height",a-c-s)).each(function(){this.appendChild(t.node()),t.node=()=>this});break}case"sphere":{let{projection:i}=r;if(!i)throw new Error('the "sphere" clip option requires a projection');let a=G1();o=`url(#${a})`,t.append("clipPath").attr("id",a).append("path").attr("d",Si(i)({type:"Sphere"}));break}}et(t,"aria-label",e.ariaLabel),et(t,"aria-description",e.ariaDescription),et(t,"aria-hidden",e.ariaHidden),et(t,"clip-path",o)}function me(t,e,n,r){D8(t,e,n,r),et(t,"fill",e.fill),et(t,"fill-opacity",e.fillOpacity),et(t,"stroke",e.stroke),et(t,"stroke-width",e.strokeWidth),et(t,"stroke-opacity",e.strokeOpacity),et(t,"stroke-linejoin",e.strokeLinejoin),et(t,"stroke-linecap",e.strokeLinecap),et(t,"stroke-miterlimit",e.strokeMiterlimit),et(t,"stroke-dasharray",e.strokeDasharray),et(t,"stroke-dashoffset",e.strokeDashoffset),et(t,"shape-rendering",e.shapeRendering),et(t,"filter",e.imageFilter),et(t,"paint-order",e.paintOrder);let{pointerEvents:o=r.pointerSticky===!1?"none":void 0}=e;et(t,"pointer-events",o)}function he(t,e){R8(t,"mix-blend-mode",e.mixBlendMode),et(t,"opacity",e.opacity)}function N8(t,e,n){t.each(function(r){let o=e(r);if(o!=null){let i=this.ownerDocument.createElementNS(Ye.svg,"a");i.setAttribute("fill","inherit"),i.setAttributeNS(Ye.xlink,"href",o),n!=null&&i.setAttribute("target",n),this.parentNode.insertBefore(i,this).appendChild(this)}})}function et(t,e,n){n!=null&&t.attr(e,n)}function R8(t,e,n){n!=null&&t.style(e,n)}function ge(t,e,{x:n,y:r},o=Bt,i=Bt){o+=e.dx,i+=e.dy,n?.bandwidth&&(o+=n.bandwidth()/2),r?.bandwidth&&(i+=r.bandwidth()/2),(o||i)&&t.attr("transform",`translate(${o},${i})`)}function St(t,e){if((t=Et(t))!==e)return t}function _a(t,e){if((t=ct(t))!==e)return t}var L8=/^-?([_a-z]|[\240-\377]|\\[0-9a-f]{1,6}(\r\n|[ \t\r\n\f])?|\\[^\r\n\f0-9a-f])([_a-z0-9-]|[\240-\377]|\\[0-9a-f]{1,6}(\r\n|[ \t\r\n\f])?|\\[^\r\n\f0-9a-f])*$/i;function Lo(t){if(t===void 0)return"plot-d6a7b5";if(t=`${t}`,!L8.test(t))throw new Error(`invalid class name: ${t}`);return t}function Po(t,e){if(typeof e=="string")t.property("style",e);else if(e!=null)for(let n of t)Object.assign(n.style,e)}function Gn({frameAnchor:t},{width:e,height:n,marginTop:r,marginRight:o,marginBottom:i,marginLeft:a}){return[/left$/.test(t)?a:/right$/.test(t)?e-o:(a+e-o)/2,/^top/.test(t)?r:/^bottom/.test(t)?n-i:(r+n-i)/2]}function K1(t,e,n={}){let r=.5-Bt,o=.5+Bt,i=.5+Bt,a=.5-Bt;for(let{marginTop:h,marginRight:g,marginBottom:b,marginLeft:x}of e)h>r&&(r=h),g>o&&(o=g),b>i&&(i=b),x>a&&(a=x);let{margin:f,marginTop:u=f!==void 0?f:r,marginRight:c=f!==void 0?f:o,marginBottom:s=f!==void 0?f:i,marginLeft:d=f!==void 0?f:a}=n;u=+u,c=+c,s=+s,d=+d;let{width:l=640,height:p=P8(t,n,{width:l,marginTopDefault:r,marginRightDefault:o,marginBottomDefault:i,marginLeftDefault:a})+Math.max(0,u-r+s-i)}=n;l=+l,p=+p;let m={width:l,height:p,marginTop:u,marginRight:c,marginBottom:s,marginLeft:d};if(t.fx||t.fy){let{margin:h,marginTop:g=h!==void 0?h:u,marginRight:b=h!==void 0?h:c,marginBottom:x=h!==void 0?h:s,marginLeft:M=h!==void 0?h:d}=n.facet??{};g=+g,b=+b,x=+x,M=+M,m.facet={marginTop:g,marginRight:b,marginBottom:x,marginLeft:M}}return m}function P8({x:t,y:e,fy:n,fx:r},{projection:o,aspectRatio:i},{width:a,marginTopDefault:f,marginRightDefault:u,marginBottomDefault:c,marginLeftDefault:s}){let d=n?n.scale.domain().length:1,l=f1(o);if(l){let m=r?r.scale.domain().length:1,h=(1.1*d-.1)/(1.1*m-.1)*l,g=Math.max(.1,Math.min(10,h));return Math.round((a-s-u)*g+f+c)}let p=e?an(e)?e.scale.domain().length:Math.max(7,17/d):1;if(i!=null){if(i=+i,!(isFinite(i)&&i>0))throw new Error(`invalid aspectRatio: ${i}`);let m=Z1("y",e)/(Z1("x",t)*i),h=r?r.scale.bandwidth():1,g=n?n.scale.bandwidth():1,b=h*(a-s-u)-t.insetLeft-t.insetRight;return(m*b+e.insetTop+e.insetBottom)/g+f+c}return!!(e||n)*Math.max(1,Math.min(60,p*d))*20+!!r*30+60}function Z1(t,e){if(!e)throw new Error(`aspectRatio requires ${t} scale`);let{type:n,domain:r}=e,o;switch(n){case"linear":case"utc":case"time":o=Number;break;case"pow":{let f=e.scale.exponent();o=u=>Math.pow(u,f);break}case"log":o=Math.log;break;case"point":case"band":return r.length;default:throw new Error(`unsupported ${t} scale for aspectRatio: ${n}`)}let[i,a]=Ct(r);return Math.abs(o(a)-o(i))}function J1(t,e){let{fx:n,fy:r}=Ta(t,e),o=n?.scale.domain(),i=r?.scale.domain();return o&&i?La(o,i).map(([a,f],u)=>({x:a,y:f,i:u})):o?o.map((a,f)=>({x:a,i:f})):i?i.map((a,f)=>({y:a,i:f})):void 0}function tx(t,{x:e,y:n}){return e&&=jd(e),n&&=jd(n),t.filter(e&&n?r=>e.has(r.x)&&n.has(r.y):e?r=>e.has(r.x):r=>n.has(r.y)).sort(e&&n?(r,o)=>e.get(r.x)-e.get(o.x)||n.get(r.y)-n.get(o.y):e?(r,o)=>e.get(r.x)-e.get(o.x):(r,o)=>n.get(r.y)-n.get(o.y))}function Fc(t,{fx:e,fy:n}){let r=ne(t),o=e?.value,i=n?.value;return e&&n?Ce(r,a=>(a.fx=o[a[0]],a.fy=i[a[0]],a),a=>o[a],a=>i[a]):e?Ce(r,a=>(a.fx=o[a[0]],a),a=>o[a]):Ce(r,a=>(a.fy=i[a[0]],a),a=>i[a])}function ex(t,e,{marginTop:n,marginLeft:r}){return t&&e?({x:o,y:i})=>`translate(${t(o)-r},${e(i)-n})`:t?({x:o})=>`translate(${t(o)-r},0)`:({y:o})=>`translate(0,${e(o)-n})`}function nx(t){let e=[],n=new Uint32Array(fe(t,r=>r.length));for(let r of t){let o=0;for(let i of t)r!==i&&(n.set(i,o),o+=i.length);e.push(n.slice(0,o))}return e}var O8=new Map([["top",Hd],["right",Vd],["bottom",Wd],["left",Gd],["top-left",Oc(Hd,Gd)],["top-right",Oc(Hd,Vd)],["bottom-left",Oc(Wd,Gd)],["bottom-right",Oc(Wd,Vd)],["top-empty",q8],["right-empty",B8],["bottom-empty",Y8],["left-empty",z8],["empty",U8]]);function rx(t){if(t==null)return null;let e=O8.get(`${t}`.toLowerCase());if(e)return e;throw new Error(`invalid facet anchor: ${t}`)}var Q1=new WeakMap;function jd(t){let e=Q1.get(t);return e||Q1.set(t,e=new Qt(pt(t,(n,r)=>[n,r]))),e}function Vn(t,e){return jd(t).get(e)}function F8(t,e,n){return e=yo(e),n=yo(n),t.find(r=>Object.is(yo(r.x),e)&&Object.is(yo(r.y),n))}function qc(t,e,n){return F8(t,e,n)?.empty}function Hd(t,{y:e},{y:n}){return e?Vn(e,n)===0:!0}function Wd(t,{y:e},{y:n}){return e?Vn(e,n)===e.length-1:!0}function Gd(t,{x:e},{x:n}){return e?Vn(e,n)===0:!0}function Vd(t,{x:e},{x:n}){return e?Vn(e,n)===e.length-1:!0}function q8(t,{y:e},{x:n,y:r,empty:o}){if(o)return!1;if(!e)return;let i=Vn(e,r);if(i>0)return qc(t,n,e[i-1])}function Y8(t,{y:e},{x:n,y:r,empty:o}){if(o)return!1;if(!e)return;let i=Vn(e,r);if(i<e.length-1)return qc(t,n,e[i+1])}function z8(t,{x:e},{x:n,y:r,empty:o}){if(o)return!1;if(!e)return;let i=Vn(e,n);if(i>0)return qc(t,e[i-1],r)}function B8(t,{x:e},{x:n,y:r,empty:o}){if(o)return!1;if(!e)return;let i=Vn(e,n);if(i<e.length-1)return qc(t,e[i+1],r)}function U8(t,e,{empty:n}){return n}function Oc(t,e){return function(){return t.apply(null,arguments)&&e.apply(null,arguments)}}function Yc(t,{channels:{fx:e,fy:n},groups:r}){return e&&n?t.map(({x:o,y:i})=>r.get(o)?.get(i)??[]):e?t.map(({x:o})=>r.get(o)??[]):t.map(({y:o})=>r.get(o)??[])}var Dt=class{constructor(e,n={},r={},o){let{facet:i="auto",facetAnchor:a,fx:f,fy:u,sort:c,dx:s=0,dy:d=0,margin:l=0,marginTop:p=l,marginRight:m=l,marginBottom:h=l,marginLeft:g=l,clip:b,channels:x,tip:M,render:y}=r;if(this.data=e,this.sort=Cr(c)?c:null,this.initializer=Er(r).initializer,this.transform=this.initializer?r.transform:Ao(r).transform,i===null||i===!1?this.facet=null:(this.facet=le(i===!0?"include":i,"facet",["auto","include","exclude","super"]),this.fx=e===go&&typeof f=="string"?[f]:f,this.fy=e===go&&typeof u=="string"?[u]:u),this.facetAnchor=rx(a),n=Td(n),x!==void 0&&(n={...X8(x),...n}),o!==void 0&&(n={...V1(this,r,o),...n}),this.channels=Object.fromEntries(Object.entries(n).map(([w,v])=>{if(ga(v.value)){let{value:T,scale:E=v.scale}=v.value;v={...v,scale:E,value:T}}if(e===go&&typeof v.value=="string"){let{value:T}=v;v={...v,value:[T]}}return[w,v]}).filter(([w,{value:v,optional:T}])=>{if(v!=null)return!0;if(T)return!1;throw new Error(`missing channel value: ${w}`)})),this.dx=+s,this.dy=+d,this.marginTop=+p,this.marginRight=+m,this.marginBottom=+h,this.marginLeft=+g,this.clip=j1(b),this.tip=H8(M),this.facet==="super"){if(f||u)throw new Error("super-faceting cannot use fx or fy");for(let w in this.channels){let{scale:v}=n[w];if(!(v!=="x"&&v!=="y"))throw new Error("super-faceting cannot use x or y")}}y!=null&&(this.render=Kd(y,this.render))}initialize(e,n,r){let o=kt(this.data);e===void 0&&o!=null&&(e=[ne(o)]);let i=e;this.transform!=null&&({facets:e,data:o}=this.transform(o,e,r),o=kt(o)),e!==void 0&&(e.original=i);let a=Gg(this.channels,o);return this.sort!=null&&jg(o,e,a,n,this.sort),{data:o,facets:e,channels:a}}filter(e,n,r){for(let o in n){let{filter:i=Ne}=n[o];if(i!==null){let a=r[o];e=e.filter(f=>i(a[f]))}}return e}project(e,n,r){for(let o in e)if(e[o].scale==="x"&&/^x|x$/.test(o)){let i=o.replace(/^x|x$/,"y");i in e&&e[i].scale==="y"&&i1(o,i,n,r.projection)}}scale(e,n,r){let o=Vg(e,n);return r.projection&&this.project(e,o,r),o}};function Zd(...t){return t.plot=Dt.prototype.plot,t}function Kd(t,e){if(t==null)return e===null?void 0:e;if(e==null)return t===null?void 0:t;if(typeof t!="function")throw new TypeError(`invalid render transform: ${t}`);if(typeof e!="function")throw new TypeError(`invalid render transform: ${e}`);return function(n,r,o,i,a,f){return t.call(this,n,r,o,i,a,(u,c,s,d,l)=>e.call(this,u,c,s,d,l,f))}}function X8(t){return Object.fromEntries(Object.entries(Td(t)).map(([e,n])=>(n=rn(n),n.filter===void 0&&n.scale==null&&(n={...n,filter:null}),[e,n])))}function H8(t){return t===!0?"xy":t===!1?null:_r(t,"tip",["x","y","xy"])}function Ca(t,e){return t?.tip===!0?{...t,tip:e}:t}var ox=new WeakMap;function Qd(t,e,{x:n,y:r,px:o,py:i,maxRadius:a=40,channels:f,render:u,...c}={}){return a=+a,o!=null&&(n??=null,f={...f,px:{value:o,scale:"x"}}),i!=null&&(r??=null,f={...f,py:{value:i,scale:"y"}}),{x:n,y:r,channels:f,...c,render:Kd(function(s,d,l,p,m,h){m={...m,pointerSticky:!1};let g=m.ownerSVGElement,{data:b}=m.getMarkState(this),x=ox.get(g);x||ox.set(g,x={sticky:!1,roots:[],renders:[]});let M=x.renders.push(Q)-1,{x:y,y:w,fx:v,fy:T}=d,E=v?v(s.fx)-p.marginLeft:0,I=T?T(s.fy)-p.marginTop:0;y?.bandwidth&&(E+=y.bandwidth()/2),w?.bandwidth&&(I+=w.bandwidth()/2);let D=s.fi!=null,_;if(D){let G=x.facetStates;G||(x.facetStates=G=new Map),_=G.get(this),_||G.set(this,_=new Map)}let[L,F]=Gn(this,p),{px:P,py:S}=l,A=P?G=>P[G]:Jd(l,L),N=S?G=>S[G]:tp(l,F),O,R,tt,Z;function W(G,X){if(D)if(Z&&(Z=cancelAnimationFrame(Z)),G==null)_.delete(s.fi);else{_.set(s.fi,X),Z=requestAnimationFrame(()=>{Z=null;for(let $ of _.values())if($<X){G=null;break}Q(G)});return}Q(G)}function Q(G){if(O===G&&tt===x.sticky)return;O=G,tt=m.pointerSticky=x.sticky;let X=O==null?[]:[O];D&&(X.fx=s.fx,X.fy=s.fy,X.fi=s.fi);let $=h(X,d,l,p,m);if(R){if(D){let q=R.parentNode,Y=R.getAttribute("transform"),C=$.getAttribute("transform");Y?$.setAttribute("transform",Y):$.removeAttribute("transform"),C?q.setAttribute("transform",C):q.removeAttribute("transform"),$.removeAttribute("aria-label"),$.removeAttribute("aria-description"),$.removeAttribute("aria-hidden")}R.replaceWith($)}return x.roots[M]=R=$,m.dispatchValue(O==null?null:b[O]),$}function at(G){if(x.sticky||G.pointerType==="mouse"&&G.buttons===1)return;let[X,$]=xs(G);X-=E,$-=I;let q=null,Y=a*a;for(let C of s){let j=t*(A(C)-X),J=e*(N(C)-$),ot=j*j+J*J;ot<=Y&&(q=C,Y=ot)}W(q,Y)}function Ut(G){G.pointerType==="mouse"&&O!=null&&(x.sticky&&x.roots.some(X=>X?.contains(G.target))||(x.sticky?(x.sticky=!1,x.renders.forEach(X=>X(null))):(x.sticky=!0,Q(O)),G.stopImmediatePropagation()))}function Oe(G){G.pointerType==="mouse"&&(x.sticky||W(null))}return g.addEventListener("pointerenter",at),g.addEventListener("pointermove",at),g.addEventListener("pointerdown",Ut),g.addEventListener("pointerleave",Oe),Q(null)},u)}}function ix(t){return Qd(1,1,t)}function ax(t){return Qd(1,.01,t)}function fx(t){return Qd(.01,1,t)}function Jd({x1:t,x2:e,x:n=t},r){return t&&e?o=>(t[o]+e[o])/2:n?o=>n[o]:()=>r}function tp({y1:t,y2:e,y:n=t},r){return t&&e?o=>(t[o]+e[o])/2:n?o=>n[o]:()=>r}function zc(t){return an(t)&&t.interval===void 0?void 0:"tabular-nums"}function ux(t,e){let{label:n=t.label,tickSize:r=6,width:o=240,height:i=44+r,marginTop:a=18,marginRight:f=0,marginBottom:u=16+r,marginLeft:c=0,style:s,ticks:d=(o-c-f)/64,tickFormat:l,fontVariant:p=zc(t),round:m=!0,opacity:h,className:g}=e,b=Eo(e);g=Lo(g),h=It(h)[1],l===null&&(l=()=>null);let x=yt("svg",b).attr("class",`${g}-ramp`).attr("font-family","system-ui, sans-serif").attr("font-size",10).attr("width",o).attr("height",i).attr("viewBox",`0 0 ${o} ${i}`).call(L=>L.append("style").text(`.${g}-ramp {
display: block;
background: white;
height: auto;
height: intrinsic;
max-width: 100%;
overflow: visible;
}
.${g}-ramp text {
white-space: pre;
}`)).call(Po,s),M=L=>L.selectAll(".tick line").attr("y1",a+u-i),y,w=m?(L,F)=>L.rangeRound(F):(L,F)=>L.range(F),{type:v,domain:T,range:E,interpolate:I,scale:D,pivot:_}=t;if(I){let L=E===void 0?I:Xe(I.length===1?Sa(I):I,E);y=w(D.copy(),Wt(ht(c,o-f),Math.min(T.length+(_!==void 0),E===void 0?1/0:E.length)));let F=256,P=b.document.createElement("canvas");P.width=F,P.height=1;let S=P.getContext("2d");for(let A=0,N=F-1;A<F;++A)S.fillStyle=L(A/N),S.fillRect(A,0,1,1);x.append("image").attr("opacity",h).attr("x",c).attr("y",a).attr("width",o-c-f).attr("height",i-a-u).attr("preserveAspectRatio","none").attr("xlink:href",P.toDataURL())}else if(v==="threshold"){let L=T,F=l===void 0?P=>P:typeof l=="string"?Ge(l):l;y=w(hr().domain([-1,E.length-1]),[c,o-f]),x.append("g").attr("fill-opacity",h).selectAll().data(E).enter().append("rect").attr("x",(P,S)=>y(S-1)).attr("y",a).attr("width",(P,S)=>y(S)-y(S-1)).attr("height",i-a-u).attr("fill",P=>P),d=pt(L,(P,S)=>S),l=P=>F(L[P],P)}else y=w(Ln().domain(T),[c,o-f]),x.append("g").attr("fill-opacity",h).selectAll().data(T).enter().append("rect").attr("x",y).attr("y",a).attr("width",Math.max(0,y.bandwidth()-1)).attr("height",i-a-u).attr("fill",D),M=()=>{};return x.append("g").attr("transform",`translate(0,${i-u})`).call(ds(y).ticks(Array.isArray(d)?null:d,typeof l=="string"?l:void 0).tickFormat(typeof l=="function"?l:void 0).tickSize(r).tickValues(Array.isArray(d)?d:null)).attr("font-size",null).attr("font-family",null).attr("font-variant",St(p,"normal")).call(M).call(L=>L.select(".domain").remove()),n!==void 0&&x.append("text").attr("x",c).attr("y",a-6).attr("fill","currentColor").attr("font-weight","bold").text(n),x.node()}var ep=Math.PI/180;function rp(t,{marker:e,markerStart:n=e,markerMid:r=e,markerEnd:o=e}={}){t.markerStart=np(n),t.markerMid=np(r),t.markerEnd=np(o)}function np(t){if(t==null||t===!1)return null;if(t===!0)return sx;if(typeof t=="function")return t;switch(`${t}`.toLowerCase()){case"none":return null;case"arrow":return cx("auto");case"arrow-reverse":return cx("auto-start-reverse");case"dot":return W8;case"circle":case"circle-fill":return sx;case"circle-stroke":return G8}throw new Error(`invalid marker: ${t}`)}function cx(t){return(e,n)=>yt("svg:marker",n).attr("viewBox","-5 -5 10 10").attr("markerWidth",6.67).attr("markerHeight",6.67).attr("orient",t).attr("fill","none").attr("stroke",e).attr("stroke-width",1.5).attr("stroke-linecap","round").attr("stroke-linejoin","round").call(r=>r.append("path").attr("d","M-1.5,-3l3,3l-3,3")).node()}function W8(t,e){return yt("svg:marker",e).attr("viewBox","-5 -5 10 10").attr("markerWidth",6.67).attr("markerHeight",6.67).attr("fill",t).attr("stroke","none").call(n=>n.append("circle").attr("r",2.5)).node()}function sx(t,e){return yt("svg:marker",e).attr("viewBox","-5 -5 10 10").attr("markerWidth",6.67).attr("markerHeight",6.67).attr("fill",t).attr("stroke","white").attr("stroke-width",1.5).call(n=>n.append("circle").attr("r",3)).node()}function G8(t,e){return yt("svg:marker",e).attr("viewBox","-5 -5 10 10").attr("markerWidth",6.67).attr("markerHeight",6.67).attr("fill","white").attr("stroke",t).attr("stroke-width",1.5).call(n=>n.append("circle").attr("r",3)).node()}var V8=0;function op(t,e,{stroke:n},r){return j8(t,e,n&&(o=>n[o]),r)}function j8(t,{markerStart:e,markerMid:n,markerEnd:r,stroke:o},i=()=>o,a){let f=new Map;function u(c){return function(s){let d=i(s),l=f.get(c);l||f.set(c,l=new Map);let p=l.get(d);if(!p){let m=this.parentNode.insertBefore(c(d,a),this),h=`plot-marker-${++V8}`;m.setAttribute("id",h),l.set(d,p=`url(#${h})`)}return p}}e&&t.attr("marker-start",u(e)),n&&t.attr("marker-mid",u(n)),r&&t.attr("marker-end",u(r))}function Oo({inset:t,insetLeft:e,insetRight:n,...r}={}){return[e,n]=lx(t,e,n),{inset:t,insetLeft:e,insetRight:n,...r}}function Bc({inset:t,insetTop:e,insetBottom:n,...r}={}){return[e,n]=lx(t,e,n),{inset:t,insetTop:e,insetBottom:n,...r}}function lx(t,e,n){return t===void 0&&e===void 0&&n===void 0?Bt?[1,0]:[.5,.5]:[e,n]}function dx(t,{interval:e}){return t={...rn(t)},t.interval=Ac(t.interval===void 0?e:t.interval),t}function ip(t,e,n,r){let{[t]:o,[`${t}1`]:i,[`${t}2`]:a}=n,{value:f,interval:u}=dx(o,n);if(f==null||u==null&&!r)return n;let c=Re(o);if(u==null){let p,m={transform:h=>p||(p=gt(h,f)),label:c};return{...n,[t]:void 0,[`${t}1`]:i===void 0?m:i,[`${t}2`]:a===void 0?m:a}}let s,d;function l(p){return d!==void 0&&p===s?d:d=pt(gt(s=p,f),m=>u.floor(m))}return e({...n,[t]:void 0,[`${t}1`]:i===void 0?{transform:l,label:c}:i,[`${t}2`]:a===void 0?{transform:p=>l(p).map(m=>u.offset(m)),label:c}:a})}function px(t,e,n){let{[t]:r}=n,{value:o,interval:i}=dx(r,n);return o==null||i==null?n:e({...n,[t]:{label:Re(r),transform:a=>{let f=pt(gt(a,o),c=>i.floor(c)),u=f.map(c=>i.offset(c));return f.map(zt(f)?(c,s)=>c==null||isNaN(c=+c)||(s=u[s],s==null)||isNaN(s=+s)?void 0:new Date((c+s)/2):(c,s)=>c==null||(s=u[s],s==null)?NaN:(+c+ +s)/2)}}})}function mx(t={}){return ip("x",Oo,t,!0)}function hx(t={}){return ip("x",Oo,t)}function gx(t={}){return ip("y",Bc,t)}function xx(t={}){return px("x",Oo,t)}function yx(t={}){return px("y",Bc,t)}var bx={ariaLabel:"rule",fill:null,stroke:"currentColor"},Uc=class extends Dt{constructor(e,n={}){let{x:r,y1:o,y2:i,inset:a=0,insetTop:f=a,insetBottom:u=a}=n;super(e,{x:{value:r,scale:"x",optional:!0},y1:{value:o,scale:"y",optional:!0},y2:{value:i,scale:"y",optional:!0}},Ca(n,"x"),bx),this.insetTop=ct(f),this.insetBottom=ct(u),rp(this,n)}render(e,n,r,o,i){let{x:a,y:f}=n,{x:u,y1:c,y2:s}=r,{width:d,height:l,marginTop:p,marginRight:m,marginLeft:h,marginBottom:g}=o,{insetTop:b,insetBottom:x}=this;return yt("svg:g",i).call(me,this,o,i).call(ge,this,{x:u&&a},Bt,0).call(M=>M.selectAll().data(e).enter().append("line").call(he,this).attr("x1",u?y=>u[y]:(h+d-m)/2).attr("x2",u?y=>u[y]:(h+d-m)/2).attr("y1",c&&!fn(f)?y=>c[y]+b:p+b).attr("y2",s&&!fn(f)?f.bandwidth?y=>s[y]+f.bandwidth()-x:y=>s[y]-x:l-g-x).call(Pe,this,r).call(op,this,r,i)).node()}},Xc=class extends Dt{constructor(e,n={}){let{x1:r,x2:o,y:i,inset:a=0,insetRight:f=a,insetLeft:u=a}=n;super(e,{y:{value:i,scale:"y",optional:!0},x1:{value:r,scale:"x",optional:!0},x2:{value:o,scale:"x",optional:!0}},Ca(n,"y"),bx),this.insetRight=ct(f),this.insetLeft=ct(u),rp(this,n)}render(e,n,r,o,i){let{x:a,y:f}=n,{y:u,x1:c,x2:s}=r,{width:d,height:l,marginTop:p,marginRight:m,marginLeft:h,marginBottom:g}=o,{insetLeft:b,insetRight:x}=this;return yt("svg:g",i).call(me,this,o,i).call(ge,this,{y:u&&f},0,Bt).call(M=>M.selectAll().data(e).enter().append("line").call(he,this).attr("x1",c&&!fn(a)?y=>c[y]+b:h+b).attr("x2",s&&!fn(a)?a.bandwidth?y=>s[y]+a.bandwidth()-x:y=>s[y]-x:d-m-x).attr("y1",u?y=>u[y]:(p+l-g)/2).attr("y2",u?y=>u[y]:(p+l-g)/2).call(Pe,this,r).call(op,this,r,i)).node()}};function ap(t,e){let{x:n=wt,y:r,y1:o,y2:i,...a}=gx(e);return[o,i]=wx(r,o,i),new Uc(t,{...a,x:n,y1:o,y2:i})}function Aa(t,e){let{y:n=wt,x:r,x1:o,x2:i,...a}=hx(e);return[o,i]=wx(r,o,i),new Xc(t,{...a,y:n,x1:o,x2:i})}function wx(t,e,n){if(t==null){if(e===void 0){if(n!==void 0)return[0,n]}else if(n===void 0)return[0,e]}else{if(e===void 0)return n===void 0?[0,t]:[t,n];if(n===void 0)return[t,e]}return[e,n]}function Hc(t,...e){let n=e.length;for(let r=0,o=!0;r<n;++r)typeof e[r]!="function"&&(o&&(t=t.slice(),o=!1),t.splice(r,2,t[r]+e[r]+t[r+1]),e.splice(r,1),--r,--n);return r=>{let o=t[0];for(let i=0;i<n;++i)o+=e[i](r)+t[i+1];return o}}var Z8={ariaLabel:"text",strokeLinejoin:"round",strokeWidth:3,paintOrder:"stroke"},_x="\xAD",$a=class extends Dt{constructor(e,n={}){let{x:r,y:o,text:i=re(e)&&$c(e)?wt:_c,frameAnchor:a,textAnchor:f=/right$/i.test(a)?"end":/left$/i.test(a)?"start":"middle",lineAnchor:u=/^top/i.test(a)?"top":/^bottom/i.test(a)?"bottom":"middle",lineHeight:c=1,lineWidth:s=1/0,textOverflow:d,monospace:l,fontFamily:p=l?"ui-monospace, monospace":void 0,fontSize:m,fontStyle:h,fontVariant:g,fontWeight:b,rotate:x}=n,[M,y]=It(x,0),[w,v]=t5(m);if(super(e,{x:{value:r,scale:"x",optional:!0},y:{value:o,scale:"y",optional:!0},fontSize:{value:w,optional:!0},rotate:{value:$g(M),optional:!0},text:{value:i,filter:wc,optional:!0}},n,Z8),this.rotate=y,this.textAnchor=St(f,"middle"),this.lineAnchor=le(u,"lineAnchor",["top","middle","bottom"]),this.lineHeight=+c,this.lineWidth=+s,this.textOverflow=up(d),this.monospace=!!l,this.fontFamily=Et(p),this.fontSize=v,this.fontStyle=Et(h),this.fontVariant=Et(g),this.fontWeight=Et(b),this.frameAnchor=vo(a),!(this.lineWidth>=0))throw new Error(`invalid lineWidth: ${s}`);this.splitLines=lp(this),this.clipLine=dp(this)}render(e,n,r,o,i){let{x:a,y:f}=n,{x:u,y:c,rotate:s,text:d,title:l,fontSize:p}=r,{rotate:m}=this,[h,g]=Gn(this,o);return yt("svg:g",i).call(me,this,o,i).call(sp,this,d,o).call(ge,this,{x:u&&a,y:c&&f}).call(b=>b.selectAll().data(e).enter().append("text").call(he,this).call(K8,this,d,l).attr("transform",Hc`translate(${u?x=>u[x]:h},${c?x=>c[x]:g})${s?x=>` rotate(${s[x]})`:m?` rotate(${m})`:""}`).call(et,"font-size",p&&(x=>p[x])).call(Pe,this,r)).node()}};function up(t){return t==null?null:le(t,"textOverflow",["clip","ellipsis","clip-start","clip-end","ellipsis-start","ellipsis-middle","ellipsis-end"]).replace(/^(clip|ellipsis)$/,"$1-end")}function K8(t,e,n,r){if(!n)return;let{lineAnchor:o,lineHeight:i,textOverflow:a,splitLines:f,clipLine:u}=e;t.each(function(c){let s=f(_e(n[c])??"").map(u),d=s.length,l=o==="top"?.71:o==="bottom"?1-d:(164-d*100)/200;if(d>1){let p=0;for(let m=0;m<d;++m){if(++p,!s[m])continue;let h=this.ownerDocument.createElementNS(Ye.svg,"tspan");h.setAttribute("x",0),m===p-1?h.setAttribute("y",`${(l+m)*i}em`):h.setAttribute("dy",`${p*i}em`),h.textContent=s[m],this.appendChild(h),p=0}}else l&&this.setAttribute("y",`${l*i}em`),this.textContent=s[0];if(a&&!r&&s[0]!==n[c]){let p=this.ownerDocument.createElementNS(Ye.svg,"title");p.textContent=n[c],this.appendChild(p)}})}function cp(t,{x:e,y:n,...r}={}){return r.frameAnchor===void 0&&([e,n]=Ar(e,n)),new $a(t,{...r,x:e,y:n})}function Cx(t,{x:e=wt,...n}={}){return new $a(t,yx({...n,x:e}))}function Ax(t,{y:e=wt,...n}={}){return new $a(t,xx({...n,y:e}))}function sp(t,e,n){et(t,"text-anchor",e.textAnchor),et(t,"font-family",e.fontFamily),et(t,"font-size",e.fontSize),et(t,"font-style",e.fontStyle),et(t,"font-variant",e.fontVariant===void 0?Q8(n):e.fontVariant),et(t,"font-weight",e.fontWeight)}function Q8(t){return t&&(kg(t)||zt(t))?"tabular-nums":void 0}var J8=new Set(["inherit","initial","revert","unset","xx-small","x-small","small","medium","large","x-large","xx-large","xxx-large","larger","smaller"]);function t5(t){return t==null||typeof t=="number"?[void 0,t]:typeof t!="string"?[t,void 0]:(t=t.trim().toLowerCase(),J8.has(t)||/^[+-]?\d*\.?\d+(e[+-]?\d+)?(\w*|%)$/.test(t)?[void 0,t]:[t,void 0])}function e5(t,e,n){let r=[],o,i=0;for(let[a,f,u]of n5(t)){if(o===void 0&&(o=a),i>o&&n(t,o,f)>e&&(r.push(t.slice(o,i)+(t[i-1]===_x?"-":"")),o=a),u){r.push(t.slice(o,f)),o=void 0;continue}i=f}return r}function*n5(t){let e=0,n=0,r=t.length;for(;n<r;){let o=1;switch(t[n]){case _x:case"-":++n,yield[e,n,!1],e=n;break;case" ":for(yield[e,n,!1];t[++n]===" ";);e=n;break;case"\r":t[n+1]===`
`&&++o;case`
`:yield[e,n,!0],n+=o,e=n;break;default:++n;break}}yield[e,n,!0]}var vx={a:56,b:63,c:57,d:63,e:58,f:37,g:62,h:60,i:26,j:26,k:55,l:26,m:88,n:60,o:60,p:62,q:62,r:39,s:54,t:38,u:60,v:55,w:79,x:54,y:55,z:55,A:69,B:67,C:73,D:74,E:61,F:58,G:76,H:75,I:28,J:55,K:67,L:58,M:89,N:75,O:78,P:65,Q:78,R:67,S:65,T:65,U:75,V:69,W:98,X:69,Y:67,Z:67,0:64,1:48,2:62,3:64,4:66,5:63,6:65,7:58,8:65,9:65," ":29,"!":32,'"':49,"'":31,"(":39,")":39,",":31,"-":48,".":31,"/":32,":":31,";":31,"?":52,"\u2018":31,"\u2019":31,"\u201C":47,"\u201D":47,"\u2026":82};function Wc(t,e=0,n=t.length){let r=0;for(let o=e;o<n;o=Fo(t,o))r+=vx[t[o]]??(Ex(t,o)?120:vx.e);return r}function Gc(t,e=0,n=t.length){let r=0;for(let o=e;o<n;o=Fo(t,o))r+=Ex(t,o)?200:100;return r}function lp({monospace:t,lineWidth:e,textOverflow:n}){if(n!=null||e==1/0)return i=>i.split(/\r\n?|\n/g);let r=t?Gc:Wc,o=e*100;return i=>e5(i,o,r)}function dp({monospace:t,lineWidth:e,textOverflow:n}){if(n==null||e==1/0)return i=>i;let r=t?Gc:Wc,o=e*100;switch(n){case"clip-start":return i=>Sx(i,o,r,"");case"clip-end":return i=>Mx(i,o,r,"");case"ellipsis-start":return i=>Sx(i,o,r,Ir);case"ellipsis-middle":return i=>r5(i,o,r,Ir);case"ellipsis-end":return i=>Mx(i,o,r,Ir)}}var Ir="\u2026";function kr(t,e,n,r){let o=[],i=0;for(let a=0,f=0,u=t.length;a<u;a=f){f=Fo(t,a);let c=n(t,a,f);if(i+c>e){for(i+=r;i>e&&a>0;)f=a,a=o.pop(),i-=n(t,a,f);return[a,e-i]}i+=c,o.push(a)}return[-1,0]}function Mx(t,e,n,r){t=t.trim();let o=n(r),[i]=kr(t,e,n,o);return i<0?t:t.slice(0,i).trimEnd()+r}function r5(t,e,n,r){t=t.trim();let o=n(t);if(o<=e)return t;let i=n(r)/2,[a,f]=kr(t,e/2,n,i),[u]=kr(t,o-e/2-f+i,n,-i);return u<0?r:t.slice(0,a).trimEnd()+r+t.slice(Fo(t,u)).trimStart()}function Sx(t,e,n,r){t=t.trim();let o=n(t);if(o<=e)return t;let i=n(r),[a]=kr(t,o-e+i,n,-i);return a<0?r:r+t.slice(Fo(t,a)).trimStart()}var fp=/[\p{Combining_Mark}\p{Emoji_Modifier}]+/uy,Tx=/\p{Extended_Pictographic}/uy;function Fo(t,e){return e+=o5(t,e)?2:1,a5(t,e)&&(e=fp.lastIndex),i5(t,e)?Fo(t,e+1):e}function $x(t,e){return t.charCodeAt(e)<128}function o5(t,e){let n=t.charCodeAt(e);if(n>=55296&&n<56320){let r=t.charCodeAt(e+1);return r>=56320&&r<57344}return!1}function i5(t,e){return t.charCodeAt(e)===8205}function a5(t,e){return $x(t,e)?!1:(fp.lastIndex=e,fp.test(t))}function Ex(t,e){return $x(t,e)?!1:(Tx.lastIndex=e,Tx.test(t))}var f5={ariaLabel:"vector",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinejoin:"round",strokeLinecap:"round"},Ix=3.5,u5=Ix*5,kx={draw(t,e,n){let r=e*n/u5;t.moveTo(0,0),t.lineTo(0,-e),t.moveTo(-r,r-e),t.lineTo(0,-e),t.lineTo(r,r-e)}},c5={draw(t,e,n){t.moveTo(-n,0),t.lineTo(0,-e),t.lineTo(n,0)}},s5=new Map([["arrow",kx],["spike",c5]]);function l5(t){return t&&typeof t.draw=="function"}function d5(t){if(l5(t))return t;let e=s5.get(`${t}`.toLowerCase());if(e)return e;throw new Error(`invalid shape: ${t}`)}var Vc=class extends Dt{constructor(e,n={}){let{x:r,y:o,r:i=Ix,length:a,rotate:f,shape:u=kx,anchor:c="middle",frameAnchor:s}=n,[d,l]=It(a,12),[p,m]=It(f,0);super(e,{x:{value:r,scale:"x",optional:!0},y:{value:o,scale:"y",optional:!0},length:{value:d,scale:"length",optional:!0},rotate:{value:p,optional:!0}},n,f5),this.r=+i,this.length=l,this.rotate=m,this.shape=d5(u),this.anchor=le(c,"anchor",["start","middle","end"]),this.frameAnchor=vo(s)}render(e,n,r,o,i){let{x:a,y:f}=n,{x:u,y:c,length:s,rotate:d}=r,{length:l,rotate:p,anchor:m,shape:h,r:g}=this,[b,x]=Gn(this,o);return yt("svg:g",i).call(me,this,o,i).call(ge,this,{x:u&&a,y:c&&f}).call(M=>M.selectAll().data(e).enter().append("path").call(he,this).attr("transform",Hc`translate(${u?y=>u[y]:b},${c?y=>c[y]:x})${d?y=>` rotate(${d[y]})`:p?` rotate(${p})`:""}${m==="start"?"":m==="end"?s?y=>` translate(0,${s[y]})`:` translate(0,${l})`:s?y=>` translate(0,${s[y]/2})`:` translate(0,${l/2})`}`).attr("d",s?y=>{let w=Gr();return h.draw(w,s[y],g),w}:(()=>{let y=Gr();return h.draw(y,l,g),y})()).call(Pe,this,r)).node()}};function Dx(t,e={}){let{x:n=wt,...r}=e;return new Vc(t,{...r,x:n})}function Nx(t,e={}){let{y:n=wt,...r}=e;return new Vc(t,{...r,y:n})}function jn(t,e){return arguments.length<2&&!re(t)&&(e=t,t=null),e===void 0&&(e={}),[t,e]}function jc({anchor:t}={},e){return t===void 0?e[0]:le(t,"anchor",e)}function Rx(t){return jc(t,["left","right"])}function Lx(t){return jc(t,["right","left"])}function Px(t){return jc(t,["bottom","top"])}function Ox(t){return jc(t,["top","bottom"])}function pp(){let[t,e]=jn(...arguments);return Yx("y",Rx(e),t,e)}function Fx(){let[t,e]=jn(...arguments);return Yx("fy",Lx(e),t,e)}function mp(){let[t,e]=jn(...arguments);return zx("x",Px(e),t,e)}function qx(){let[t,e]=jn(...arguments);return zx("fx",Ox(e),t,e)}function Yx(t,e,n,{color:r="currentColor",opacity:o=1,stroke:i=r,strokeOpacity:a=o,strokeWidth:f=1,fill:u=r,fillOpacity:c=o,textAnchor:s,textStroke:d,textStrokeOpacity:l,textStrokeWidth:p,tickSize:m=t==="y"?6:0,tickPadding:h,tickRotate:g,x:b,margin:x,marginTop:M=x===void 0?20:x,marginRight:y=x===void 0?e==="right"?40:0:x,marginBottom:w=x===void 0?20:x,marginLeft:v=x===void 0?e==="left"?40:0:x,label:T,labelAnchor:E,labelArrow:I,labelOffset:D,..._}){return m=ct(m),h=ct(h),g=ct(g),E!==void 0&&(E=le(E,"labelAnchor",["center","top","bottom"])),I=Jx(I),Zd(m&&!Pt(i)?p5(t,e,n,{stroke:i,strokeOpacity:a,strokeWidth:f,tickSize:m,tickPadding:h,tickRotate:g,x:b,..._}):null,Pt(u)?null:h5(t,e,n,{fill:u,fillOpacity:c,stroke:d,strokeOpacity:l,strokeWidth:p,textAnchor:s,tickSize:m,tickPadding:h,tickRotate:g,x:b,marginTop:M,marginRight:y,marginBottom:w,marginLeft:v,..._}),!Pt(u)&&T!==null?cp([],jx({fill:u,fillOpacity:c,..._},function(L,F,P,S,A){let N=S[t],{marginTop:O,marginRight:R,marginBottom:tt,marginLeft:Z}=t==="y"&&A.inset||A,W=E??(N.bandwidth?"center":"top"),Q=D??(e==="right"?R:Z)-3;return W==="center"?(this.textAnchor=void 0,this.lineAnchor=e==="right"?"bottom":"top",this.frameAnchor=e,this.rotate=-90):(this.textAnchor=e==="right"?"end":"start",this.lineAnchor=W,this.frameAnchor=`${W}-${e}`,this.rotate=0),this.dy=W==="top"?3-O:W==="bottom"?tt-3:0,this.dx=e==="right"?Q:-Q,this.ariaLabel=`${t}-axis label`,{facets:[[0]],channels:{text:{value:[Qx(t,N,{anchor:e,label:T,labelAnchor:W,labelArrow:I})]}}}})):null)}function zx(t,e,n,{color:r="currentColor",opacity:o=1,stroke:i=r,strokeOpacity:a=o,strokeWidth:f=1,fill:u=r,fillOpacity:c=o,textAnchor:s,textStroke:d,textStrokeOpacity:l,textStrokeWidth:p,tickSize:m=t==="x"?6:0,tickPadding:h,tickRotate:g,y:b,margin:x,marginTop:M=x===void 0?e==="top"?30:0:x,marginRight:y=x===void 0?20:x,marginBottom:w=x===void 0?e==="bottom"?30:0:x,marginLeft:v=x===void 0?20:x,label:T,labelAnchor:E,labelArrow:I,labelOffset:D,..._}){return m=ct(m),h=ct(h),g=ct(g),E!==void 0&&(E=le(E,"labelAnchor",["center","left","right"])),I=Jx(I),Zd(m&&!Pt(i)?m5(t,e,n,{stroke:i,strokeOpacity:a,strokeWidth:f,tickSize:m,tickPadding:h,tickRotate:g,y:b,..._}):null,Pt(u)?null:g5(t,e,n,{fill:u,fillOpacity:c,stroke:d,strokeOpacity:l,strokeWidth:p,textAnchor:s,tickSize:m,tickPadding:h,tickRotate:g,y:b,marginTop:M,marginRight:y,marginBottom:w,marginLeft:v,..._}),!Pt(u)&&T!==null?cp([],jx({fill:u,fillOpacity:c,..._},function(L,F,P,S,A){let N=S[t],{marginTop:O,marginRight:R,marginBottom:tt,marginLeft:Z}=t==="x"&&A.inset||A,W=E??(N.bandwidth?"center":"right"),Q=D??(e==="top"?O:tt)-3;return W==="center"?(this.frameAnchor=e,this.textAnchor=void 0):(this.frameAnchor=`${e}-${W}`,this.textAnchor=W==="right"?"end":"start"),this.lineAnchor=e,this.dy=e==="top"?-Q:Q,this.dx=W==="right"?R-3:W==="left"?3-Z:0,this.ariaLabel=`${t}-axis label`,{facets:[[0]],channels:{text:{value:[Qx(t,N,{anchor:e,label:T,labelAnchor:W,labelArrow:I})]}}}})):null)}function p5(t,e,n,{strokeWidth:r=1,strokeLinecap:o=null,strokeLinejoin:i=null,facetAnchor:a=e+(t==="y"?"-empty":""),frameAnchor:f=e,tickSize:u,inset:c=0,insetLeft:s=c,insetRight:d=c,dx:l=0,y:p=t==="y"?void 0:null,...m}){return qo(Nx,t,`${t}-axis tick`,n,{strokeWidth:r,strokeLinecap:o,strokeLinejoin:i,facetAnchor:a,frameAnchor:f,y:p,...m,dx:e==="left"?+l-Bt+ +s:+l+Bt-d,anchor:"start",length:u,shape:e==="left"?b5:w5})}function m5(t,e,n,{strokeWidth:r=1,strokeLinecap:o=null,strokeLinejoin:i=null,facetAnchor:a=e+(t==="x"?"-empty":""),frameAnchor:f=e,tickSize:u,inset:c=0,insetTop:s=c,insetBottom:d=c,dy:l=0,x:p=t==="x"?void 0:null,...m}){return qo(Dx,t,`${t}-axis tick`,n,{strokeWidth:r,strokeLinejoin:i,strokeLinecap:o,facetAnchor:a,frameAnchor:f,x:p,...m,dy:e==="bottom"?+l-Bt-d:+l+Bt+ +s,anchor:"start",length:u,shape:e==="bottom"?x5:y5})}function h5(t,e,n,{facetAnchor:r=e+(t==="y"?"-empty":""),frameAnchor:o=e,tickSize:i,tickRotate:a=0,tickPadding:f=Math.max(3,9-i)+(Math.abs(a)>60?4*Math.cos(a*ep):0),tickFormat:u,text:c=typeof u=="function"?u:void 0,textAnchor:s=Math.abs(a)>60?"middle":e==="left"?"end":"start",lineAnchor:d=a>60?"top":a<-60?"bottom":"middle",fontVariant:l,inset:p=0,insetLeft:m=p,insetRight:h=p,dx:g=0,y:b=t==="y"?void 0:null,...x}){return qo(Ax,t,`${t}-axis tick label`,n,{facetAnchor:r,frameAnchor:o,text:c===void 0?null:c,textAnchor:s,lineAnchor:d,fontVariant:l,rotate:a,y:b,...x,dx:e==="left"?+g-i-f+ +m:+g+ +i+ +f-h},function(M,y,w,v){l===void 0&&(this.fontVariant=Kx(M)),c===void 0&&(v.text=Zx(M,y,w,u,e))})}function g5(t,e,n,{facetAnchor:r=e+(t==="x"?"-empty":""),frameAnchor:o=e,tickSize:i,tickRotate:a=0,tickPadding:f=Math.max(3,9-i)+(Math.abs(a)>=10?4*Math.cos(a*ep):0),tickFormat:u,text:c=typeof u=="function"?u:void 0,textAnchor:s=Math.abs(a)>=10?a<0^e==="bottom"?"start":"end":"middle",lineAnchor:d=Math.abs(a)>=10?"middle":e==="bottom"?"top":"bottom",fontVariant:l,inset:p=0,insetTop:m=p,insetBottom:h=p,dy:g=0,x:b=t==="x"?void 0:null,...x}){return qo(Cx,t,`${t}-axis tick label`,n,{facetAnchor:r,frameAnchor:o,text:c===void 0?null:c,textAnchor:s,lineAnchor:d,fontVariant:l,rotate:a,x:b,...x,dy:e==="bottom"?+g+ +i+ +f-h:+g-i-f+ +m},function(M,y,w,v){l===void 0&&(this.fontVariant=Kx(M)),c===void 0&&(v.text=Zx(M,y,w,u,e))})}function Bx(){let[t,e]=jn(...arguments);return Wx("y",Rx(e),t,e)}function Ux(){let[t,e]=jn(...arguments);return Wx("fy",Lx(e),t,e)}function Xx(){let[t,e]=jn(...arguments);return Gx("x",Px(e),t,e)}function Hx(){let[t,e]=jn(...arguments);return Gx("fx",Ox(e),t,e)}function Wx(t,e,n,{y:r=t==="y"?void 0:null,x:o=null,x1:i=e==="left"?o:null,x2:a=e==="right"?o:null,...f}){return qo(Aa,t,`${t}-grid`,n,{y:r,x1:i,x2:a,...Vx(f)})}function Gx(t,e,n,{x:r=t==="x"?void 0:null,y:o=null,y1:i=e==="top"?o:null,y2:a=e==="bottom"?o:null,...f}){return qo(ap,t,`${t}-grid`,n,{x:r,y1:i,y2:a,...Vx(f)})}function Vx({color:t="currentColor",opacity:e=.1,stroke:n=t,strokeOpacity:r=e,strokeWidth:o=1,...i}){return{stroke:n,strokeOpacity:r,strokeWidth:o,...i}}function jx({fill:t,fillOpacity:e,fontFamily:n,fontSize:r,fontStyle:o,fontWeight:i,monospace:a,pointerEvents:f,shapeRendering:u},c){return[,t]=ie(t),[,e]=It(e),{facet:"super",x:null,y:null,fill:t,fillOpacity:e,fontFamily:n,fontSize:r,fontStyle:o,fontWeight:i,monospace:a,pointerEvents:f,shapeRendering:u,initializer:c}}function qo(t,e,n,r,o,i){let a;function f(s,d,l,p,m,h){let g=s==null&&(e==="fx"||e==="fy"),{[e]:b}=p;if(!b)throw new Error(`missing scale: ${e}`);let{ticks:x,tickSpacing:M,interval:y}=o;if(Lc(b)&&typeof x=="string"&&(y=x,x=void 0),s==null){if(re(x))s=kt(x);else if(b.ticks)if(x!==void 0)s=b.ticks(x);else if(y=nn(y===void 0?b.interval:y,b.type),y!==void 0){let[v,T]=Ct(b.domain());s=y.range(v,y.offset(y.floor(T)))}else{let[v,T]=Ct(b.range());x=(T-v)/(M===void 0?e==="x"?80:35:M),s=b.ticks(x)}else s=b.domain();e==="y"||e==="x"?d=[ne(s)]:a[e]={scale:e,value:wt}}i?.call(this,b,s,x,a);let w=Object.fromEntries(Object.entries(a).map(([v,T])=>[v,{...T,value:gt(s,T.value)}]));return g&&(d=h.filterFacets(s,w)),{data:s,facets:d,channels:w}}let u=Er(o).initializer,c=t(r,Er({...o,initializer:f},u));return r==null?(a=c.channels,c.channels={}):a={},c.ariaLabel=n,c}function Zx(t,e,n,r,o){return{value:Yo(t,e,n,r,o)}}function Yo(t,e,n,r,o){return r===void 0&&Lc(t)?mg(t,e,n,o):t.tickFormat?t.tickFormat(re(n)?null:n,r):r===void 0?dg(t.interval)?wn("%Y"):pg(t.interval)?Xn("%Y"):_e:typeof r=="string"?(zt(t.domain())?wn:Ge)(r):Wn(r)}var x5={draw(t,e){t.moveTo(0,0),t.lineTo(0,e)}},y5={draw(t,e){t.moveTo(0,0),t.lineTo(0,-e)}},b5={draw(t,e){t.moveTo(0,0),t.lineTo(-e,0)}},w5={draw(t,e){t.moveTo(0,0),t.lineTo(e,0)}};function Kx(t){return t.bandwidth&&!t.interval?void 0:"tabular-nums"}function v5(t){return Math.sign(Mn(t.domain()))*Math.sign(Mn(t.range()))}function Qx(t,e,{anchor:n,label:r=e.label,labelAnchor:o,labelArrow:i}={}){if(!(r==null||r.inferred&&M5(e)&&/^(date|time|year)$/i.test(r))){if(r=String(r),i==="auto"&&(i=(!e.bandwidth||e.interval)&&!/[↑↓→←]/.test(r)),!i)return r;if(i===!0){let a=v5(e);a&&(i=/x$/.test(t)||o==="center"?/x$/.test(t)===a<0?"left":"right":a<0?"up":"down")}switch(i){case"left":return`\u2190 ${r}`;case"right":return`${r} \u2192`;case"up":return n==="right"?`${r} \u2191`:`\u2191 ${r}`;case"down":return n==="right"?`${r} \u2193`:`\u2193 ${r}`}return r}}function Jx(t="auto"){return Pt(t)?!1:typeof t=="boolean"?t:le(t,"labelArrow",["auto","up","right","down","left"])}function M5(t){return Lc(t)||t.interval!=null}function ty(t,e){if(e==null)return e;let n=t(e);if(!n)throw new Error(`scale not found: ${e}`);return n}function ey(t,{opacity:e,...n}={}){if(!an(t)&&!Xd(t))throw new Error(`swatches legend requires ordinal or threshold color scale (not ${t.type})`);return ry(t,n,(r,o,i,a)=>r.append("svg").attr("width",i).attr("height",a).attr("fill",o.scale).attr("fill-opacity",It(e)[1]).append("rect").attr("width","100%").attr("height","100%"))}function ny(t,{fill:e=t.hint?.fill!==void 0?t.hint.fill:"none",fillOpacity:n=1,stroke:r=t.hint?.stroke!==void 0?t.hint.stroke:Pt(e)?"currentColor":"none",strokeOpacity:o=1,strokeWidth:i=1.5,r:a=4.5,...f}={},u){let[c,s]=ie(e),[d,l]=ie(r),p=ty(u,c),m=ty(u,d),h=a*a*Math.PI;return n=It(n)[1],o=It(o)[1],i=It(i)[1],ry(t,f,(g,b,x,M)=>g.append("svg").attr("viewBox","-8 -8 16 16").attr("width",x).attr("height",M).attr("fill",c==="color"?y=>p.scale(y):s).attr("fill-opacity",n).attr("stroke",d==="color"?y=>m.scale(y):l).attr("stroke-opacity",o).attr("stroke-width",i).append("path").attr("d",y=>{let w=Gr();return t.scale(y).draw(w,h),w}))}function ry(t,e={},n){let{columns:r,tickFormat:o,fontVariant:i=zc(t),swatchSize:a=15,swatchWidth:f=a,swatchHeight:u=a,marginLeft:c=0,className:s,style:d,width:l}=e,p=Eo(e);s=Lo(s),typeof o!="function"&&(o=Yo(t.scale,t.domain,void 0,o));let m=yt("div",p).attr("class",`${s}-swatches ${s}-swatches-${r!=null?"columns":"wrap"}`),h;return r!=null?(h=`.${s}-swatches-columns .${s}-swatch {
display: flex;
align-items: center;
break-inside: avoid;
padding-bottom: 1px;
}
.${s}-swatches-columns .${s}-swatch::before {
flex-shrink: 0;
}
.${s}-swatches-columns .${s}-swatch-label {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}`,m.style("columns",r).selectAll().data(t.domain).enter().append("div").attr("class",`${s}-swatch`).call(n,t,f,u).call(g=>g.append("div").attr("class",`${s}-swatch-label`).attr("title",o).text(o))):(h=`.${s}-swatches-wrap {
display: flex;
align-items: center;
min-height: 33px;
flex-wrap: wrap;
}
.${s}-swatches-wrap .${s}-swatch {
display: inline-flex;
align-items: center;
margin-right: 1em;
}`,m.selectAll().data(t.domain).enter().append("span").attr("class",`${s}-swatch`).call(n,t,f,u).append(function(){return this.ownerDocument.createTextNode(o.apply(this,arguments))})),m.call(g=>g.insert("style","*").text(`.${s}-swatches {
font-family: system-ui, sans-serif;
font-size: 10px;
margin-bottom: 0.5em;
}
.${s}-swatch > svg {
margin-right: 0.5em;
overflow: visible;
}
${h}`)).style("margin-left",c?`${+c}px`:null).style("width",l===void 0?null:`${+l}px`).style("font-variant",St(i,"normal")).call(Po,d).node()}var hp=new Map([["symbol",ny],["color",ay],["opacity",S5]]);function oy(t,e,n={}){return(r,o)=>{if(!hp.has(r))throw new Error(`unknown legend type: ${r}`);if(r in t)return hp.get(r)(t[r],iy(e,n[r],o),i=>t[i])}}function iy({className:t,...e},{label:n,ticks:r,tickFormat:o}={},i){return Rg(i,{className:t,...e},{label:n,ticks:r,tickFormat:o})}function ay(t,{legend:e=!0,...n}){if(e===!0&&(e=t.type==="ordinal"?"swatches":"ramp"),t.domain!==void 0)switch(`${e}`.toLowerCase()){case"swatches":return ey(t,n);case"ramp":return ux(t,n);default:throw new Error(`unknown legend type: ${e}`)}}function S5({type:t,interpolate:e,...n},{legend:r=!0,color:o=be(0,0,0),...i}){if(!e)throw new Error(`${t} opacity scales are not supported`);if(r===!0&&(r="ramp"),`${r}`.toLowerCase()!=="ramp")throw new Error(`${r} opacity legends are not supported`);return ay({type:t,...n,interpolate:T5(o)},{legend:r,...i})}function T5(t){let{r:e,g:n,b:r}=be(t)||be(0,0,0);return o=>`rgba(${e},${n},${r},${o})`}function fy(t,e,n){let r=[];for(let[o,i]of hp){let a=n[o];if(a?.legend&&o in t){let f=i(t[o],iy(e,t[o],a),u=>t[u]);f!=null&&r.push(f)}}return r}var _5={ariaLabel:"frame",fill:"none",stroke:"currentColor"},C5={ariaLabel:"frame",fill:null,stroke:"currentColor",strokeLinecap:"square"},gp=class extends Dt{constructor(e={}){let{anchor:n=null,inset:r=0,insetTop:o=r,insetRight:i=r,insetBottom:a=r,insetLeft:f=r,rx:u,ry:c}=e;super(go,void 0,e,n==null?_5:C5),this.anchor=_r(n,"anchor",["top","right","bottom","left"]),this.insetTop=ct(o),this.insetRight=ct(i),this.insetBottom=ct(a),this.insetLeft=ct(f),this.rx=ct(u),this.ry=ct(c)}render(e,n,r,o,i){let{marginTop:a,marginRight:f,marginBottom:u,marginLeft:c,width:s,height:d}=o,{anchor:l,insetTop:p,insetRight:m,insetBottom:h,insetLeft:g,rx:b,ry:x}=this,M=c+g,y=s-f-m,w=a+p,v=d-u-h;return yt(l?"svg:line":"svg:rect",i).datum(0).call(me,this,o,i).call(he,this).call(Pe,this,r).call(ge,this,{}).call(l==="left"?T=>T.attr("x1",M).attr("x2",M).attr("y1",w).attr("y2",v):l==="right"?T=>T.attr("x1",y).attr("x2",y).attr("y1",w).attr("y2",v):l==="top"?T=>T.attr("x1",M).attr("x2",y).attr("y1",w).attr("y2",w):l==="bottom"?T=>T.attr("x1",M).attr("x2",y).attr("y1",v).attr("y2",v):T=>T.attr("x",M).attr("y",w).attr("width",y-M).attr("height",v-w).attr("rx",b).attr("ry",x)).node()}};function uy(t){return new gp(t)}var xp={ariaLabel:"tip",fill:"white",stroke:"currentColor"},A5=new Set(["geometry","href","src","ariaLabel"]),bp=class extends Dt{constructor(e,n={}){n.tip&&(n={...n,tip:!1}),n.title===void 0&&re(e)&&$c(e)&&(n={...n,title:wt});let{x:r,y:o,x1:i,x2:a,y1:f,y2:u,anchor:c,monospace:s,fontFamily:d=s?"ui-monospace, monospace":void 0,fontSize:l,fontStyle:p,fontVariant:m,fontWeight:h,lineHeight:g=1,lineWidth:b=20,frameAnchor:x,textAnchor:M="start",textOverflow:y,textPadding:w=8,title:v,pointerSize:T=12,pathFilter:E="drop-shadow(0 3px 4px rgba(0,0,0,0.2))"}=n;super(e,{x:{value:i!=null&&a!=null?null:r,scale:"x",optional:!0},y:{value:f!=null&&u!=null?null:o,scale:"y",optional:!0},x1:{value:i,scale:"x",optional:a==null},y1:{value:f,scale:"y",optional:u==null},x2:{value:a,scale:"x",optional:i==null},y2:{value:u,scale:"y",optional:f==null},title:{value:v,optional:!0}},n,xp),this.anchor=Sd(c,"anchor"),this.previousAnchor=this.anchor??"top-left",this.frameAnchor=vo(x),this.textAnchor=St(M,"middle"),this.textPadding=+w,this.pointerSize=+T,this.pathFilter=Et(E),this.lineHeight=+g,this.lineWidth=+b,this.textOverflow=up(y),this.monospace=!!s,this.fontFamily=Et(d),this.fontSize=ct(l),this.fontStyle=Et(p),this.fontVariant=Et(m),this.fontWeight=Et(h);for(let I in xp)I in this.channels&&(this[I]=xp[I]);this.splitLines=lp(this),this.clipLine=dp(this)}render(e,n,r,o,i){let a=this,{x:f,y:u,fx:c,fy:s}=n,{ownerSVGElement:d,document:l}=i,{anchor:p,monospace:m,lineHeight:h,lineWidth:g}=this,{textPadding:b,pointerSize:x,pathFilter:M}=this,{marginTop:y,marginLeft:w}=o,v=k5(r),{x1:T,y1:E,x2:I,y2:D,x:_=T??I,y:L=E??D}=r,F=c?c(e.fx)-w:0,P=s?s(e.fy)-y:0,[S,A]=Gn(this,o),N=Jd(r,S),O=tp(r,A),R=m?Gc:Wc,tt=R(Ir),Z=c&&Yo(c),W=s&&Yo(s);function*Q(G,X){if("title"in G){let $=G.title.value[X];for(let q of a.splitLines(_e($)))yield{name:"",value:a.clipLine(q)};return}for(let $ in G){if($==="x1"&&"x2"in G||$==="y1"&&"y2"in G)continue;let q=G[$],Y=q.value[X];if(!(!Ne(Y)&&q.scale==null))if($==="x2"&&"x1"in G)yield{name:yp(n,q,"x"),value:cy(G.x1,q,X)};else if($==="y2"&&"y1"in G)yield{name:yp(n,q,"y"),value:cy(G.y1,q,X)};else{let C=q.scale,j={name:yp(n,q,$),value:_e(Y)};(C==="color"||C==="opacity")&&(j[C]=r[$][X]),yield j}}e.fi!=null&&c&&(yield{name:String(c.label??"fx"),value:Z(e.fx)}),e.fi!=null&&s&&(yield{name:String(s.label??"fy"),value:W(e.fy)})}let at=yt("svg:g",i).call(me,this,o,i).call(sp,this).call(ge,this,{x:_&&f,y:L&&u}).call(G=>G.selectAll().data(e).enter().append("g").attr("transform",X=>`translate(${Math.round(N(X))},${Math.round(O(X))})`).call(he,this).call(X=>X.append("path").attr("filter",M)).call(X=>X.append("text").each(function($){let q=hn(this);this.setAttribute("fill","currentColor"),this.setAttribute("fill-opacity",1),this.setAttribute("stroke","none");let Y=new Set;for(let C of Q(v,$)){let j=C.name;j&&Y.has(j)||(Y.add(j),Ut(q,C))}})));function Ut(G,{name:X,value:$,color:q,opacity:Y}){let C=q!=null||Y!=null,j,J=g*100,[ot]=kr(X,J,R,tt);if(ot>=0)X=X.slice(0,ot).trimEnd()+Ir,j=$.trim(),$="";else{(X||!$&&!C)&&($=" "+$);let[Xt]=kr($,J-R(X),R,tt);Xt>=0&&($=$.slice(0,Xt).trimEnd()+Ir,j=$.trim())}let lt=G.append("tspan").attr("x",0).attr("dy",`${h}em`).text("\u200B");X&&lt.append("tspan").attr("font-weight","bold").text(X),$&&lt.append(()=>l.createTextNode($)),C&&lt.append("tspan").text(" \u25A0").attr("fill",q).attr("fill-opacity",Y).style("user-select","none"),j&&lt.append("title").text(j)}function Oe(){let{width:G,height:X}=o.facet??o;at.selectChildren().each(function($){let{x:q,width:Y,height:C}=this.getBBox();Y=Math.round(Y),C=Math.round(C);let j=p;if(j===void 0){j=a.previousAnchor;let lt=N($)+F,Xt=O($)+P,Zn=lt+Y+b*2<G,ka=lt-Y-b*2>0,Da=Xt+C+x+b*2+7<X,Na=Xt-C-x-b*2>0,Ra=(/-left$/.test(j)?Zn||!ka:Zn&&!ka)?"left":"right",ns=(/^top-/.test(j)?Da||!Na:Da&&!Na)?"top":"bottom";j=a.previousAnchor=`${ns}-${Ra}`}let J=this.firstChild,ot=this.lastChild;if(J.setAttribute("d",I5(j,x,b,Y,C)),q)for(let lt of ot.childNodes)lt.setAttribute("x",-q);ot.setAttribute("y",`${+$5(j,ot.childNodes.length,h).toFixed(6)}em`),ot.setAttribute("transform",`translate(${E5(j,x,b,Y,C)})`)})}return d.isConnected?Promise.resolve().then(Oe):typeof requestAnimationFrame<"u"&&requestAnimationFrame(Oe),at.node()}};function sy(t,{x:e,y:n,...r}={}){return r.frameAnchor===void 0&&([e,n]=Ar(e,n)),new bp(t,{...r,x:e,y:n})}function $5(t,e,n){return/^top(?:-|$)/.test(t)?.94-n:-.29-e*n}function E5(t,e,n,r,o){switch(t){case"middle":return[-r/2,o/2];case"top-left":return[n,e+n];case"top":return[-r/2,e/2+n];case"top-right":return[-r-n,e+n];case"right":return[-e/2-r-n,o/2];case"bottom-left":return[n,-e-n];case"bottom":return[-r/2,-e/2-n];case"bottom-right":return[-r-n,-e-n];case"left":return[n+e/2,o/2]}}function I5(t,e,n,r,o){let i=r+n*2,a=o+n*2;switch(t){case"middle":return`M${-i/2},${-a/2}h${i}v${a}h${-i}z`;case"top-left":return`M0,0l${e},${e}h${i-e}v${a}h${-i}z`;case"top":return`M0,0l${e/2},${e/2}h${(i-e)/2}v${a}h${-i}v${-a}h${(i-e)/2}z`;case"top-right":return`M0,0l${-e},${e}h${e-i}v${a}h${i}z`;case"right":return`M0,0l${-e/2},${-e/2}v${e/2-a/2}h${-i}v${a}h${i}v${e/2-a/2}z`;case"bottom-left":return`M0,0l${e},${-e}h${i-e}v${-a}h${-i}z`;case"bottom":return`M0,0l${e/2},${-e/2}h${(i-e)/2}v${-a}h${-i}v${a}h${(i-e)/2}z`;case"bottom-right":return`M0,0l${-e},${-e}h${e-i}v${-a}h${i}z`;case"left":return`M0,0l${e/2},${-e/2}v${e/2-a/2}h${i}v${a}h${-i}v${e/2-a/2}z`}}function k5({channels:t}){let e={};for(let n in t){if(A5.has(n))continue;let r=Qg(t,n);r&&(e[n]=r)}return e}function cy(t,e,n){return e.hint?.length?`${_e(e.value[n]-t.value[n])}`:`${_e(t.value[n])}\u2013${_e(e.value[n])}`}function yp(t,e,n){return String(t[e.scale]?.label??e?.label??n)}function Jc(t={}){let{facet:e,style:n,caption:r,ariaLabel:o,ariaDescription:i}=t,a=Lo(t.className),f=t.marks===void 0?[]:ly(t.marks);f.push(...O5(f));let u=L5(e,t),c=new Map;for(let A of f){let N=dy(A,u,t);N&&c.set(A,N)}let s=new Map;u&&Ea(s,[u],t),Ea(s,c,t);let d=ly(F5(f,s,t));for(let A of d){let N=dy(A,u,t);N&&c.set(A,N)}f.unshift(...d);let l=J1(s,t);if(l!==void 0){let A=u?Yc(l,u):void 0;for(let O of f){if(O.facet===null||O.facet==="super")continue;let R=c.get(O);R!==void 0&&(R.facetsIndex=O.fx!=null||O.fy!=null?Yc(l,R):A)}let N=new Set;for(let{facetsIndex:O}of c.values())O?.forEach((R,tt)=>{R?.length>0&&N.add(tt)});l.forEach(0<N.size&&N.size<l.length?(O,R)=>O.empty=!N.has(R):O=>O.empty=!1);for(let O of f)if(O.facet==="exclude"){let R=c.get(O);R!==void 0&&(R.facetsIndex=nx(R.facetsIndex))}}for(let A of st.keys())xo(t[A])&&A!=="fx"&&A!=="fy"&&s.set(A,[]);let p=new Map;for(let A of f){if(p.has(A))throw new Error("duplicate mark; each mark must be unique");let{facetsIndex:N,channels:O}=c.get(A)??{},{data:R,facets:tt,channels:Z}=A.initialize(N,O,t);Mp(Z,t),p.set(A,{data:R,facets:tt,channels:Z})}let m=Ta(Ea(s,p,t),t),h=Bd(m),g=K1(m,f,t);U1(m,g);let{fx:b,fy:x}=h,M=b||x?Ud(m,g):g,y=b||x?H5(h,g):g,w=Eo(t),v=w.document,T=pn("svg").call(v.documentElement),E=T;w.ownerSVGElement=T,w.className=a,w.projection=n1(t,M),w.filterFacets=(A,N)=>Yc(l,{channels:N,groups:Fc(A,N)}),w.getMarkState=A=>{let N=p.get(A),O=c.get(A);return{...N,channels:{...N.channels,...O?.channels}}},w.dispatchValue=A=>{E.value!==A&&(E.value=A,E.dispatchEvent(new Event("input",{bubbles:!0})))};let I=new Set;for(let[A,N]of p)if(A.initializer!=null){let O=A.facet==="super"?y:M,R=A.initializer(N.data,N.facets,N.channels,h,O,w);if(R.data!==void 0&&(N.data=R.data),R.facets!==void 0&&(N.facets=R.facets),R.channels!==void 0){let{fx:tt,fy:Z,...W}=R.channels;R5(W),Object.assign(N.channels,W);for(let Q of Object.values(W)){let{scale:at}=Q;at!=null&&st.get(at)!==de&&(hy(Q,t),I.add(at))}(tt!=null||Z!=null)&&c.set(A,!0)}}if(I.size){let A=new Map;Ea(A,p,t,R=>I.has(R)),Ea(s,p,t,R=>I.has(R));let N=X5(Ta(A,t),m),O=Bd(N);Object.assign(m,N),Object.assign(h,O)}let D,_;l!==void 0&&(D={x:b?.domain(),y:x?.domain()},l=tx(l,D),_=ex(b,x,g));for(let[A,N]of p)N.values=A.scale(N.channels,h,w);let{width:L,height:F}=g;hn(T).attr("class",a).attr("fill","currentColor").attr("font-family","system-ui, sans-serif").attr("font-size",10).attr("text-anchor","middle").attr("width",L).attr("height",F).attr("viewBox",`0 0 ${L} ${F}`).attr("aria-label",o).attr("aria-description",i).call(A=>A.append("style").text(`.${a} {
display: block;
background: white;
height: auto;
height: intrinsic;
max-width: 100%;
}
.${a} text,
.${a} tspan {
white-space: pre;
}`)).call(Po,n);for(let A of f){let{channels:N,values:O,facets:R}=p.get(A);if(l===void 0||A.facet==="super"){let tt=null;if(R&&(tt=R[0],tt=A.filter(tt,N,O),tt.length===0))continue;let Z=A.render(tt,h,O,y,w);if(Z==null)continue;T.appendChild(Z)}else{let tt;for(let Z of l){if(!(A.facetAnchor?.(l,D,Z)??!Z.empty))continue;let W=null;if(R){let at=c.has(A);if(W=R[at?Z.i:0],W=A.filter(W,N,O),W.length===0)continue;!at&&W===R[0]&&(W=_g(W)),W.fx=Z.x,W.fy=Z.y,W.fi=Z.i}let Q=A.render(W,h,O,M,w);if(Q!=null){(tt??=hn(T).append("g")).append(()=>Q).datum(Z);for(let at of["aria-label","aria-description","aria-hidden","transform"])Q.hasAttribute(at)&&(tt.attr(at,Q.getAttribute(at)),Q.removeAttribute(at))}}tt?.selectChildren().attr("transform",_)}}let P=fy(m,w,t);if(r!=null||P.length>0){E=v.createElement("figure"),E.style.maxWidth="initial";for(let A of P)E.appendChild(A);if(E.appendChild(T),r!=null){let A=v.createElement("figcaption");A.appendChild(r?.ownerDocument?r:v.createTextNode(r)),E.appendChild(A)}}E.scale=W1(m),E.legend=oy(m,w,t);let S=Jg();return S>0&&hn(T).append("text").attr("x",L).attr("y",20).attr("dy","-1em").attr("text-anchor","end").attr("font-family","initial").text("\u26A0\uFE0F").append("title").text(`${S.toLocaleString("en-US")} warning${S===1?"":"s"}. Please check the console.`),E}function D5({marks:t=[],...e}={}){return Jc({...e,marks:[...t,this]})}Dt.prototype.plot=D5;function ly(t){return t.flat(1/0).filter(e=>e!=null).map(N5)}function N5(t){return typeof t.render=="function"?t:new vp(t)}var vp=class extends Dt{constructor(e){if(typeof e!="function")throw new TypeError("invalid mark; missing render function");super(),this.render=e}render(){}};function Mp(t,e){for(let n in t)hy(t[n],e);return t}function hy(t,e){let{scale:n,transform:r=!0}=t;if(n==null||!r)return;let{type:o,percent:i,interval:a,transform:f=i?u=>u*100:vd(a,o)}=e[n]??{};f!=null&&(t.value=pt(t.value,f),t.transform=!1)}function R5(t){for(let e in t)Nd(e,t[e])}function Ea(t,e,n,r=yg){for(let{channels:o}of e.values())for(let i in o){let a=o[i],{scale:f}=a;if(f!=null&&r(f))if(f==="projection"){if(!a1(n)){let u=n.x?.domain===void 0,c=n.y?.domain===void 0;if(u||c){let[s,d]=u1(a);u&&wp(t,"x",s),c&&wp(t,"y",d)}}}else wp(t,f,a)}return t}function wp(t,e,n){let r=t.get(e);r!==void 0?r.push(n):t.set(e,[n])}function L5(t,e){if(t==null)return;let{x:n,y:r}=t;if(n==null&&r==null)return;let o=kt(t.data);if(o==null)throw new Error("missing facet data");let i={};n!=null&&(i.fx=$o(o,{value:n,scale:"fx"})),r!=null&&(i.fy=$o(o,{value:r,scale:"fy"})),Mp(i,e);let a=Fc(o,i);return{channels:i,groups:a,data:t.data}}function dy(t,e,n){if(t.facet===null||t.facet==="super")return;let{fx:r,fy:o}=t;if(r!=null||o!=null){let u=kt(t.data??r??o);if(u===void 0)throw new Error(`missing facet data in ${t.ariaLabel}`);if(u===null)return;let c={};return r!=null&&(c.fx=$o(u,{value:r,scale:"fx"})),o!=null&&(c.fy=$o(u,{value:o,scale:"fy"})),Mp(c,n),{channels:c,groups:Fc(u,c)}}if(e===void 0)return;let{channels:i,groups:a,data:f}=e;if(t.facet!=="auto"||t.data===f)return{channels:i,groups:a};f.length>0&&(a.size>1||a.size===1&&i.fx&&i.fy&&[...a][0][1].size>1)&&kt(t.data)?.length===f.length&&on(`Warning: the ${t.ariaLabel} mark appears to use faceted data, but isn\u2019t faceted. The mark data has the same length as the facet data and the mark facet option is "auto", but the mark data and facet data are distinct. If this mark should be faceted, set the mark facet option to true; otherwise, suppress this warning by setting the mark facet option to false.`)}function P5(t,e={}){return Er({...e,x:null,y:null},(n,r,o,i,a,f)=>f.getMarkState(t))}function O5(t){let e=[];for(let n of t){let r=n.tip;if(r){let i=(r==="x"?ax:r==="y"?fx:ix)(P5(n));i.title=null,e.push(sy(n.data,i))}}return e}function F5(t,e,n){let{projection:r,x:o={},y:i={},fx:a={},fy:f={},axis:u,grid:c,facet:s={},facet:{axis:d=u,grid:l}=s,x:{axis:p=u,grid:m=p===null?null:c}=o,y:{axis:h=u,grid:g=h===null?null:c}=i,fx:{axis:b=d,grid:x=b===null?null:l}=a,fy:{axis:M=d,grid:y=M===null?null:l}=f}=n;(r||!xo(o)&&!py("x",t))&&(p=m=null),(r||!xo(i)&&!py("y",t))&&(h=g=null),e.has("fx")||(b=x=null),e.has("fy")||(M=y=null),p===void 0&&(p=!Qc(t,"x")),h===void 0&&(h=!Qc(t,"y")),b===void 0&&(b=!Qc(t,"fx")),M===void 0&&(M=!Qc(t,"fy")),p===!0&&(p="bottom"),h===!0&&(h="left"),b===!0&&(b=p==="top"||p===null?"bottom":"top"),M===!0&&(M=h==="right"||h===null?"left":"right");let w=[];return Kc(w,y,Ux,f),Zc(w,M,Fx,"right","left",s,f),Kc(w,x,Hx,a),Zc(w,b,qx,"top","bottom",s,a),Kc(w,g,Bx,i),Zc(w,h,pp,"left","right",n,i),Kc(w,m,Xx,o),Zc(w,p,mp,"bottom","top",n,o),w}function Zc(t,e,n,r,o,i,a){if(!e)return;let f=q5(e);a=Y5(f?r:e,i,a);let{line:u}=a;(n===pp||n===mp)&&u&&!$r(u)&&t.push(uy(z5(a))),t.push(n(a)),f&&t.push(n({...a,anchor:o,label:null}))}function Kc(t,e,n,r){!e||$r(e)||t.push(n(B5(e,r)))}function q5(t){return/^\s*both\s*$/i.test(t)}function Y5(t,e,{line:n=e.line,ticks:r,tickSize:o,tickSpacing:i,tickPadding:a,tickFormat:f,tickRotate:u,fontVariant:c,ariaLabel:s,ariaDescription:d,label:l=e.label,labelAnchor:p,labelArrow:m=e.labelArrow,labelOffset:h}){return{anchor:t,line:n,ticks:r,tickSize:o,tickSpacing:i,tickPadding:a,tickFormat:f,tickRotate:u,fontVariant:c,ariaLabel:s,ariaDescription:d,label:l,labelAnchor:p,labelArrow:m,labelOffset:h}}function z5(t){let{anchor:e,line:n}=t;return{anchor:e,facetAnchor:e+"-empty",stroke:n===!0?void 0:n}}function B5(t,{stroke:e=wo(t)?t:void 0,ticks:n=U5(t)?t:void 0,tickSpacing:r,ariaLabel:o,ariaDescription:i}){return{stroke:e,ticks:n,tickSpacing:r,ariaLabel:o,ariaDescription:i}}function U5(t){switch(typeof t){case"number":return!0;case"string":return!wo(t)}return re(t)||typeof t?.range=="function"}function Qc(t,e){let n=`${e}-axis `;return t.some(r=>r.ariaLabel?.startsWith(n))}function py(t,e){for(let n of e)for(let r in n.channels){let{scale:o}=n.channels[r];if(o===t||o==="projection")return!0}return!1}function X5(t,e){for(let n in t){let r=t[n],o=e[n];r.label===void 0&&o&&(r.label=o.label)}return t}function H5({fx:t,fy:e},n){let{marginTop:r,marginRight:o,marginBottom:i,marginLeft:a,width:f,height:u}=Rc(n),c=t&&my(t),s=e&&my(e);return{marginTop:e?s[0]:r,marginRight:t?f-c[1]:o,marginBottom:e?u-s[1]:i,marginLeft:t?c[0]:a,inset:{marginTop:n.marginTop,marginRight:n.marginRight,marginBottom:n.marginBottom,marginLeft:n.marginLeft},width:f,height:u}}function my(t){let e=t.domain(),n=t(e[0]),r=t(e[e.length-1]);return r<n&&([n,r]=[r,n]),[n,r+t.bandwidth()]}function Sp(t={y:"count"},e={}){[t,e]=G5(t,e);let{x:n,y:r}=e;return W5(V5(n,e,wt),null,null,r,t,Oo(e))}function W5(t,e,n,r,{data:o=Id,filter:i=ba,sort:a,reverse:f,...u}={},c={}){t=gy(t),e=gy(e),u=Z5(u,c),o=wy(o,wt),a=a==null?void 0:yy("sort",a,c),i=i==null?void 0:by("filter",i,c),n!=null&&wa(u,"x","x1","x2")&&(n=null),r!=null&&wa(u,"y","y1","y2")&&(r=null);let[s,d]=Te(t),[l,p]=Te(t),[m,h]=Te(e),[g,b]=Te(e),[x,M]=n!=null?[n,"x"]:r!=null?[r,"y"]:[],[y,w]=Te(x),{x:v,y:T,z:E,fill:I,stroke:D,x1:_,x2:L,y1:F,y2:P,domain:S,cumulative:A,thresholds:N,interval:O,...R}=c,[tt,Z]=Te(E),[W]=ie(I),[Q]=ie(D),[at,Ut]=Te(W),[Oe,G]=Te(Q);return{..."z"in c&&{z:tt||E},..."fill"in c&&{fill:at||I},..."stroke"in c&&{stroke:Oe||D},...Ao(R,(X,$,q)=>{let Y=ya(gt(X,x),q?.[M]),C=gt(X,E),j=gt(X,W),J=gt(X,Q),ot=Xg(u,{z:C,fill:j,stroke:J}),lt=[],Xt=[],Zn=Y&&w([]),ka=C&&Z([]),Da=j&&Ut([]),Na=J&&G([]),Ra=t&&d([]),ns=t&&p([]),Cp=e&&h([]),ky=e&&b([]),Dy=t3(t?.(X),e?.(X)),Ny=0;for(let Dr of u)Dr.initialize(X);a&&a.initialize(X),i&&i.initialize(X);for(let Dr of $){let Ap=[];for(let zo of u)zo.scope("facet",Dr);a&&a.scope("facet",Dr),i&&i.scope("facet",Dr);for(let[zo,Ry]of Ed(Dr,ot))for(let[Ly,Py]of Ed(Ry,Y))for(let[Kn,Qn]of Dy(Py))if(!(i&&!i.reduce(Kn,Qn))){Ap.push(Ny++),Xt.push(o.reduceIndex(Kn,X,Qn)),Y&&Zn.push(Ly),C&&ka.push(ot===C?zo:C[Kn[0]]),j&&Da.push(ot===j?zo:j[Kn[0]]),J&&Na.push(ot===J?zo:J[Kn[0]]),Ra&&(Ra.push(Qn.x1),ns.push(Qn.x2)),Cp&&(Cp.push(Qn.y1),ky.push(Qn.y2));for(let Oy of u)Oy.reduce(Kn,Qn);a&&a.reduce(Kn)}lt.push(Ap)}return Hg(lt,a,f),{data:Xt,facets:lt}}),...!wa(u,"x")&&(s?{x1:s,x2:l,x:xa(s,l)}:{x:v,x1:_,x2:L}),...!wa(u,"y")&&(m?{y1:m,y2:g,y:xa(m,g)}:{y:T,y1:F,y2:P}),...y&&{[M]:y},...Object.fromEntries(u.map(({name:X,output:$})=>[X,$]))}}function G5({cumulative:t,domain:e,thresholds:n,interval:r,...o},i){return[o,{cumulative:t,domain:e,thresholds:n,interval:r,...i}]}function V5(t,{cumulative:e,domain:n,thresholds:r,interval:o},i){return t={...rn(t)},t.domain===void 0&&(t.domain=n),t.cumulative===void 0&&(t.cumulative=e),t.thresholds===void 0&&(t.thresholds=r),t.interval===void 0&&(t.interval=o),t.value===void 0&&(t.value=i),t.thresholds=j5(t.thresholds,t.interval),t}function gy(t){if(t==null)return;let{value:e,cumulative:n,domain:r=Ct,thresholds:o}=t,i=a=>{let f=gt(a,e),u;if(zt(f)||Q5(o)){f=pt(f,yd,Float64Array);let[s,d]=typeof r=="function"?r(f):r,l=typeof o=="function"&&!Ia(o)?o(f,s,d):o;typeof l=="number"&&(l=Ui(s,d,l)),Ia(l)&&(r===Ct&&(s=l.floor(s),d=l.offset(l.floor(d))),l=l.range(s,l.offset(d))),u=l}else{f=Tr(f);let[s,d]=typeof r=="function"?r(f):r,l=typeof o=="function"&&!Ia(o)?o(f,s,d):o;if(typeof l=="number")if(r===Ct){let p=tr(s,d,l);if(isFinite(p))if(p>0){let m=Math.round(s/p),h=Math.round(d/p);m*p<=s||--m,h*p>d||++h;let g=h-m+1;l=new Float64Array(g);for(let b=0;b<g;++b)l[b]=(m+b)*p}else if(p<0){p=-p;let m=Math.round(s*p),h=Math.round(d*p);m/p<=s||--m,h/p>d||++h;let g=h-m+1;l=new Float64Array(g);for(let b=0;b<g;++b)l[b]=(m+b)/p}else l=[s];else l=[s]}else l=Ae(s,d,l);else Ia(l)&&(r===Ct&&(s=l.floor(s),d=l.offset(l.floor(d))),l=l.range(s,l.offset(d)));u=l}let c=[];if(u.length===1)c.push([u[0],u[0]]);else for(let s=1;s<u.length;++s)c.push([u[s-1],u[s]]);return c.bin=(n<0?n3:n>0?e3:Tp)(c,u,f),c};return i.label=Re(e),i}function j5(t,e,n=xy){if(t===void 0)return e===void 0?n:nn(e);if(typeof t=="string"){switch(t.toLowerCase()){case"freedman-diaconis":return Ba;case"scott":return Go;case"sturges":return Fa;case"auto":return xy}return Tc(t)}return t}function Z5(t,e){return Ug(t,e,yy)}function yy(t,e,n){return Ad(t,e,n,by)}function by(t,e,n){return $d(t,e,n,wy)}function wy(t,e){return va(t,e,K5)}function K5(t){switch(`${t}`.toLowerCase()){case"x":return r3;case"x1":return i3;case"x2":return a3;case"y":return o3;case"y1":return f3;case"y2":return u3}throw new Error(`invalid bin reduce: ${t}`)}function xy(t,e,n){return Math.min(200,Go(t,e,n))}function Q5(t){return J5(t)||re(t)&&zt(t)}function J5(t){return Ia(t)&&typeof t=="function"&&t()instanceof Date}function Ia(t){return typeof t?.range=="function"}function t3(t,e){return t&&e?function*(n){let r=t.bin(n);for(let[o,[i,a]]of t.entries()){let f=e.bin(r[o]);for(let[u,[c,s]]of e.entries())yield[f[u],{x1:i,y1:c,x2:a,y2:s}]}}:t?function*(n){let r=t.bin(n);for(let[o,[i,a]]of t.entries())yield[r[o],{x1:i,x2:a}]}:function*(n){let r=e.bin(n);for(let[o,[i,a]]of e.entries())yield[r[o],{y1:i,y2:a}]}}function Tp(t,e,n){return e=Tr(e),r=>{let o=t.map(()=>[]);for(let i of r)o[un(e,n[i])-1]?.push(i);return o}}function e3(t,e,n){let r=Tp(t,e,n);return o=>{let i=r(o);for(let a=1,f=i.length;a<f;++a){let u=i[a-1],c=i[a];for(let s of u)c.push(s)}return i}}function n3(t,e,n){let r=Tp(t,e,n);return o=>{let i=r(o);for(let a=i.length-2;a>=0;--a){let f=i[a+1],u=i[a];for(let c of f)u.push(c)}return i}}function vy(t,e){let n=(+t+ +e)/2;return t instanceof Date?new Date(n):n}var r3={reduceIndex(t,e,{x1:n,x2:r}){return vy(n,r)}},o3={reduceIndex(t,e,{y1:n,y2:r}){return vy(n,r)}},i3={reduceIndex(t,e,{x1:n}){return n}},a3={reduceIndex(t,e,{x2:n}){return n}},f3={reduceIndex(t,e,{y1:n}){return n}},u3={reduceIndex(t,e,{y2:n}){return n}};function My(t={}){return bd(t)?t:{...t,y:wt}}function c3(t={},e={}){arguments.length===1&&([t,e]=s3(t));let{x1:n,x:r=n,y:o,...i}=e,[a,f,u,c]=d3(r,o,"x","y",t,i);return{...a,x1:n,x:f,y1:u,y2:c,y:xa(u,c)}}function _y({y:t,y1:e,y2:n,...r}={}){return r=Ca(r,"x"),e===void 0&&n===void 0?c3({y:t,...r}):([e,n]=Sg(t,e,n),{...r,y1:e,y2:n})}function s3(t){let{offset:e,order:n,reverse:r,...o}=t;return[{offset:e,order:n,reverse:r},o]}var l3={length:!0};function d3(t,e=xg,n,r,{offset:o,order:i,reverse:a},f){let u=Tg(f),[c,s]=Te(t),[d,l]=bo(e),[p,m]=bo(e);return d.hint=p.hint=l3,o=p3(o),i=g3(i,o,r),[Ao(f,(h,g,b)=>{let x=t==null?void 0:s(ya(gt(h,t),b?.[n])),M=gt(h,e,Float64Array),y=gt(h,u),w=i&&i(h,x,M,y),v=h.length,T=l(new Float64Array(v)),E=m(new Float64Array(v)),I=[];for(let D of g){let _=x?Array.from(sn(D,L=>x[L]).values()):[D];if(w)for(let L of _)L.sort(w);for(let L of _){let F=0,P=0;a&&L.reverse();for(let S of L){let A=M[S];A<0?F=E[S]=(T[S]=F)+A:A>0?P=E[S]=(T[S]=P)+A:E[S]=T[S]=P}}I.push(_)}return o&&o(I,T,E,y),{data:h,facets:g}}),c,d,p]}function p3(t){if(t!=null){if(typeof t=="function")return t;switch(`${t}`.toLowerCase()){case"expand":case"normalize":return m3;case"center":case"silhouette":return h3;case"wiggle":return Ay}throw new Error(`unknown offset: ${t}`)}}function Cy(t,e){let n=0,r=0;for(let o of t){let i=e[o];i<n&&(n=i),i>r&&(r=i)}return[n,r]}function m3(t,e,n){for(let r of t)for(let o of r){let[i,a]=Cy(o,n);for(let f of o){let u=1/(a-i||1);e[f]=u*(e[f]-i),n[f]=u*(n[f]-i)}}}function h3(t,e,n){for(let r of t){for(let o of r){let[i,a]=Cy(o,n);for(let f of o){let u=(a+i)/2;e[f]-=u,n[f]-=u}}$y(r,e,n)}Ey(t,e,n)}function Ay(t,e,n,r){for(let o of t){let i=new Qt,a=0;for(let f of o){let u=-1,c=f.map(p=>Math.abs(n[p]-e[p])),s=f.map(p=>{u=r?r[p]:++u;let m=n[p]-e[p],h=i.has(u)?m-i.get(u):0;return i.set(u,m),h}),d=[0,...Pa(s)];for(let p of f)e[p]+=a,n[p]+=a;let l=fe(c);l&&(a-=fe(c,(p,m)=>(s[m]/2+d[m])*p)/l)}$y(o,e,n)}Ey(t,e,n)}function $y(t,e,n){let r=Jt(t,o=>Jt(o,i=>e[i]));for(let o of t)for(let i of o)e[i]-=r,n[i]-=r}function Ey(t,e,n){let r=t.length;if(r===1)return;let o=t.map(f=>f.flat()),i=o.map(f=>(Jt(f,u=>e[u])+Ht(f,u=>n[u]))/2),a=Jt(i);for(let f=0;f<r;f++){let u=a-i[f];for(let c of o[f])e[c]+=u,n[c]+=u}}function g3(t,e,n){if(t===void 0&&e===Ay)return Sy(Kt);if(t!=null){if(typeof t=="string"){let r=t.startsWith("-"),o=r?Mr:Kt;switch((r?t.slice(1):t).toLowerCase()){case"value":case n:return x3(o);case"z":return y3(o);case"sum":return b3(o);case"appearance":return w3(o);case"inside-out":return Sy(o)}return Ty(gd(t))}if(typeof t=="function")return(t.length===1?Ty:v3)(t);if(Array.isArray(t))return M3(t);throw new Error(`invalid order: ${t}`)}}function x3(t){return(e,n,r)=>(o,i)=>t(r[o],r[i])}function y3(t){return(e,n,r,o)=>(i,a)=>t(o[i],o[a])}function b3(t){return ts(t,(e,n,r,o)=>Lr(ne(e),i=>fe(i,a=>r[a]),i=>o[i]))}function w3(t){return ts(t,(e,n,r,o)=>Lr(ne(e),i=>n[Wo(i,a=>r[a])],i=>o[i]))}function Sy(t){return ts(t,(e,n,r,o)=>{let i=ne(e),a=Lr(i,d=>n[Wo(d,l=>r[l])],d=>o[d]),f=Ce(i,d=>fe(d,l=>r[l]),d=>o[d]),u=[],c=[],s=0;for(let d of a)s<0?(s+=f.get(d),u.push(d)):(s-=f.get(d),c.push(d));return c.reverse().concat(u)})}function Ty(t){return e=>{let n=gt(e,t);return(r,o)=>Kt(n[r],n[o])}}function v3(t){return e=>(n,r)=>t(e[n],e[r])}function M3(t){return ts(Kt,()=>t)}function ts(t,e){return(n,r,o,i)=>{if(!i)throw new Error("missing channel: z");let a=new Qt(e(n,r,o,i).map((f,u)=>[f,u]));return(f,u)=>t(a.get(i[f]),a.get(i[u]))}}var S3={ariaLabel:"rect"},es=class extends Dt{constructor(e,n={}){let{x1:r,y1:o,x2:i,y2:a,inset:f=0,insetTop:u=f,insetRight:c=f,insetBottom:s=f,insetLeft:d=f,rx:l,ry:p}=n;super(e,{x1:{value:r,scale:"x",optional:!0},y1:{value:o,scale:"y",optional:!0},x2:{value:i,scale:"x",optional:!0},y2:{value:a,scale:"y",optional:!0}},n,S3),this.insetTop=ct(u),this.insetRight=ct(c),this.insetBottom=ct(s),this.insetLeft=ct(d),this.rx=St(l,"auto"),this.ry=St(p,"auto")}render(e,n,r,o,i){let{x:a,y:f}=n,{x1:u,y1:c,x2:s,y2:d}=r,{marginTop:l,marginRight:p,marginBottom:m,marginLeft:h,width:g,height:b}=o,{projection:x}=i,{insetTop:M,insetRight:y,insetBottom:w,insetLeft:v,rx:T,ry:E}=this;return yt("svg:g",i).call(me,this,o,i).call(ge,this,{x:u&&s&&a,y:c&&d&&f},0,0).call(I=>I.selectAll().data(e).enter().append("rect").call(he,this).attr("x",u&&s&&(x||!fn(a))?D=>Math.min(u[D],s[D])+v:h+v).attr("y",c&&d&&(x||!fn(f))?D=>Math.min(c[D],d[D])+M:l+M).attr("width",u&&s&&(x||!fn(a))?D=>Math.max(0,Math.abs(s[D]-u[D])-v-y):g-p-h-y-v).attr("height",c&&d&&(x||!fn(f))?D=>Math.max(0,Math.abs(c[D]-d[D])-M-w):b-l-m-M-w).call(et,"rx",T).call(et,"ry",E).call(Pe,this,r)).node()}};function _p(t,e={}){return Mg(e)||(e={...e,x:_c,y2:wt,interval:1}),new es(t,_y(mx(My(e))))}function Iy(t,e){let n;return(...r)=>{clearTimeout(n),n=setTimeout(()=>t(...r),e)}}window.onload=function(){C3(),A3(),$3(),_3()};function _3(){let t=document.querySelector("html");for(let e of document.querySelectorAll("h2"))e.addEventListener("click",function(){let n=localStorage.getItem("closed-sections")?.split(",");if(n?.includes(this.id)){n=n.filter(o=>o!==this.id);let r=n.join(",");localStorage.setItem("closed-sections",r),t.setAttribute("data-closed-sections",r)}else{n=[this.id].concat(n??[]);let r=n.join(",");localStorage.setItem("closed-sections",r),t.setAttribute("data-closed-sections",r)}})}function C3(){for(let t of Page.Charts.Programs??[])for(let e of t.Counters??[]){let n={tip:!0,x:o=>new Date(o.Week),y:o=>o.Value,interval:Page.Charts.UploadDay,fill:o=>{let i=Number(o.Key);return isNaN(i)?o.Key:i}},r=Jc({nice:!0,x:{type:"utc",domain:Page.Charts.DateRange.map(o=>new Date(o)),label:"Week"},y:{label:"Value"},color:{type:"ordinal",legend:!0,scheme:"Spectral",reverse:!0,label:"Counter"},height:256,style:"overflow:visible;width:100%;background:transparent",marks:[_p(e.Data,Sp({y:"sum"},n)),Aa([0])]});document.querySelector(`[data-chart-id="${e.ID}"]`)?.replaceChildren(r)}}function A3(){let t=document.querySelector(".js-selectConfig");t?.addEventListener("change",()=>{let e=new URLSearchParams(location.search);e.set(t.name,t.value),history.replaceState(null,"","?"+e.toString()),location.reload()})}function $3(){let t=document.querySelectorAll("h1, h2, h3, h4"),e=Iy(()=>{let r=[];for(let u of t){let c=u.getBoundingClientRect();c.height&&c.top<80&&r.unshift(u)}r.length<2&&(r=[]);let o=1/0,i=[];for(let u of r){let c=Number(u.tagName[1]);c<o&&(o=c,i.unshift(u))}let a=document.querySelector(".js-breadcrumb ol"),f=[];for(let u of i){a?.replaceChildren;let c=document.createElement("li"),s=document.createElement("a");s.href=`#${u.id}`,s.innerText=u.getAttribute("data-label")??u.innerText,c.appendChild(s),f.push(c)}a?.replaceChildren(...f)},100),n=new IntersectionObserver(e);for(let r of t)n.observe(r)}})();
/**
* @license
* Copyright 2024 The Go Authors. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
/**
* @license
* Copyright 2023 The Go Authors. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
//# sourceMappingURL=index.min.js.map