"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7149],{9238:function(t,e,n){n.d(e,{J0:function(){return d},QP:function(){return f},b5:function(){return v},iy:function(){return s},mi:function(){return c},uT:function(){return h}});var r=n(8755),i=n(3736),o=n(683),l=n(9289),a=n(7982),u=n(3925);function c(t,{scale:e,type:n,value:r,filter:i,hint:l,label:a=(0,o.Aj)(r)},u){return void 0===l&&"function"==typeof r?.transform&&(l=r.hint),d(u,{scale:e,type:n,value:(0,o.dj)(t,r),label:a,filter:i,hint:l})}function f(t,e){return Object.fromEntries(Object.entries(t).map(([t,n])=>[t,c(e,n,t)]))}function s(t,e){let n=Object.fromEntries(Object.entries(t).map(([t,{scale:n,value:r}])=>{let i=null==n?null:e[n];return[t,null==i?r:(0,o.UI)(r,i)]}));return n.channels=t,n}function d(t,e){let{scale:n,value:r}=e;if(!0===n||"auto"===n)switch(t){case"fill":case"stroke":case"color":e.scale=!0!==n&&(0,o.N3)(r,o.D5)?null:"color";break;case"fillOpacity":case"strokeOpacity":case"opacity":e.scale=!0!==n&&(0,o.N3)(r,o.bY)?null:"opacity";break;case"symbol":!0!==n&&(0,o.N3)(r,a.yk)?(e.scale=null,e.value=(0,o.UI)(r,a.sr)):e.scale="symbol";break;default:e.scale=l.i_.has(t)?t:null}else if(!1===n)e.scale=null;else if(null!=n&&!l.i_.has(n))throw Error(`unknown scale: ${n}`);return e}function h(t,e,n,i,a){let{order:c,reverse:f,reduce:s=!0,limit:d}=a;for(let h in a){if(!l.i_.has(h))continue;let{value:v,order:b=c,reverse:w=f,reduce:x=s,limit:$=d}=(0,o.i)(a[h]),k=v?.startsWith("-");if(k&&(v=v.slice(1)),b=void 0===b?k!==("width"===v||"height"===v)?y:g:function(t){if(null==t||"function"==typeof t)return t;switch(`${t}`.toLowerCase()){case"ascending":return g;case"descending":return y}throw Error(`invalid order: ${t}`)}(b),null==x||!1===x)continue;let M="fx"===h||"fy"===h?function(t,e){let n=t.original;if(n===t)return e;let r=e.value,i=e.value=[];for(let e=0;e<n.length;++e){let o=r[n[e][0]];for(let n of t[e])i[n]=o}return e}(e,i[h]):function(t,e){for(let n in t){let r=t[n];if(r.scale===e)return r}}(n,h);if(!M)throw Error(`missing channel for scale: ${h}`);let E=M.value,[A=0,L=1/0]=(0,o.TW)($)?$:$<0?[$]:[0,$];if(null==v)M.domain=()=>{let t=Array.from(new r.H0G(E));return w&&(t=t.reverse()),(0!==A||L!==1/0)&&(t=t.slice(A,L)),t};else{let e="data"===v?t:"height"===v?p(n,"y1","y2"):"width"===v?p(n,"x1","x2"):m(n,v,"y"===v?"y2":"x"===v?"x2":void 0),i=(0,u.si)(!0===x?"max":x,e);M.domain=()=>{let t=(0,r.Q3u)((0,o.w6)(E),t=>i.reduceIndex(t,e),t=>E[t]);return b&&t.sort(b),w&&t.reverse(),(0!==A||L!==1/0)&&(t=t.slice(A,L)),t.map(o.Ps)}}}}function p(t,e,n){let r=m(t,e),i=m(t,n);return(0,o.UI)(i,(t,e)=>Math.abs(t-r[e]),Float64Array)}function m(t,e,n){let r=t[e];if(r||void 0===n||(r=t[n]),r)return r.value;throw Error(`missing channel: ${e}`)}function g([t,e],[n,r]){return(0,i.Wv)(e,r)||(0,i.Wv)(t,n)}function y([t,e],[n,r]){return(0,i.Zj)(e,r)||(0,i.Wv)(t,n)}function v(t,e){let n=t[e];if(n){for(;n.source;)n=n.source;return null===n.source?null:n}}},1032:function(t,e,n){n.d(e,{U:function(){return l},k:function(){return o}});var r=n(8755),i=n(683);function o(t={}){let{document:e="undefined"!=typeof window?window.document:void 0,clip:n}=t;return{document:e,clip:(0,i.td)(n)}}function l(t,{document:e}){return(0,r.Ys)((0,r.DuN)(t).call(e.documentElement))}},3736:function(t,e,n){n.d(e,{PV:function(){return a},Wv:function(){return o},Zj:function(){return l},i1:function(){return c},pd:function(){return f},ri:function(){return i},yx:function(){return u}});var r=n(8755);function i(t){return null!=t&&!Number.isNaN(t)}function o(t,e){return+i(e)-+i(t)||(0,r.j2p)(t,e)}function l(t,e){return+i(e)-+i(t)||(0,r.$1i)(t,e)}function a(t){return null!=t&&""!=`${t}`}function u(t){return isFinite(t)?t:NaN}function c(t){return t>0&&isFinite(t)?t:NaN}function f(t){return t<0&&isFinite(t)?t:NaN}},2325:function(t,e,n){n.d(e,{Ib:function(){return a},Py:function(){return c},Rm:function(){return $},Rx:function(){return u},al:function(){return l},lv:function(){return d},my:function(){return f}});var r=n(8755),i=n(683),o=n(9698);function l(t,e){let{fx:n,fy:i}=(0,o.D5)(t,e),l=n?.scale.domain(),a=i?.scale.domain();return l&&a?(0,r.kCc)(l,a).map(([t,e],n)=>({x:t,y:e,i:n})):l?l.map((t,e)=>({x:t,i:e})):a?a.map((t,e)=>({y:t,i:e})):void 0}function a(t,{x:e,y:n}){return e&&=p(e),n&&=p(n),t.filter(e&&n?t=>e.has(t.x)&&n.has(t.y):e?t=>e.has(t.x):t=>n.has(t.y)).sort(e&&n?(t,r)=>e.get(t.x)-e.get(r.x)||n.get(t.y)-n.get(r.y):e?(t,n)=>e.get(t.x)-e.get(n.x):(t,e)=>n.get(t.y)-n.get(e.y))}function u(t,{fx:e,fy:n}){let o=(0,i.w6)(t),l=e?.value,a=n?.value;return e&&n?(0,r.jJk)(o,t=>(t.fx=l[t[0]],t.fy=a[t[0]],t),t=>l[t],t=>a[t]):e?(0,r.jJk)(o,t=>(t.fx=l[t[0]],t),t=>l[t]):(0,r.jJk)(o,t=>(t.fy=a[t[0]],t),t=>a[t])}function c(t,e,{marginTop:n,marginLeft:r}){return t&&e?({x:i,y:o})=>`translate(${t(i)-r},${e(o)-n})`:t?({x:e})=>`translate(${t(e)-r},0)`:({y:t})=>`translate(0,${e(t)-n})`}function f(t){let e=[],n=new Uint32Array((0,r.Smz)(t,t=>t.length));for(let r of t){let i=0;for(let e of t)r!==e&&(n.set(e,i),i+=e.length);e.push(n.slice(0,i))}return e}let s=new Map([["top",y],["right",w],["bottom",v],["left",b],["top-left",x(y,b)],["top-right",x(y,w)],["bottom-left",x(v,b)],["bottom-right",x(v,w)],["top-empty",function(t,{y:e},{x:n,y:r,empty:i}){if(i)return!1;if(!e)return;let o=m(e,r);if(o>0)return g(t,n,e[o-1])}],["right-empty",function(t,{x:e},{x:n,y:r,empty:i}){if(i)return!1;if(!e)return;let o=m(e,n);if(o<e.length-1)return g(t,e[o+1],r)}],["bottom-empty",function(t,{y:e},{x:n,y:r,empty:i}){if(i)return!1;if(!e)return;let o=m(e,r);if(o<e.length-1)return g(t,n,e[o+1])}],["left-empty",function(t,{x:e},{x:n,y:r,empty:i}){if(i)return!1;if(!e)return;let o=m(e,n);if(o>0)return g(t,e[o-1],r)}],["empty",function(t,e,{empty:n}){return n}]]);function d(t){if(null==t)return null;let e=s.get(`${t}`.toLowerCase());if(e)return e;throw Error(`invalid facet anchor: ${t}`)}let h=new WeakMap;function p(t){let e=h.get(t);return e||h.set(t,e=new r.Ljd((0,i.UI)(t,(t,e)=>[t,e]))),e}function m(t,e){return p(t).get(e)}function g(t,e,n){var r,o;return(r=e,o=n,r=(0,i.mM)(r),o=(0,i.mM)(o),t.find(t=>Object.is((0,i.mM)(t.x),r)&&Object.is((0,i.mM)(t.y),o)))?.empty}function y(t,{y:e},{y:n}){return!e||0===m(e,n)}function v(t,{y:e},{y:n}){return!e||m(e,n)===e.length-1}function b(t,{x:e},{x:n}){return!e||0===m(e,n)}function w(t,{x:e},{x:n}){return!e||m(e,n)===e.length-1}function x(t,e){return function(){return t.apply(null,arguments)&&e.apply(null,arguments)}}function $(t,{channels:{fx:e,fy:n},groups:r}){return e&&n?t.map(({x:t,y:e})=>r.get(t)?.get(e)??[]):e?t.map(({x:t})=>r.get(t)??[]):t.map(({y:t})=>r.get(t)??[])}},3786:function(t,e,n){function r(t,e){return`${t}`.padStart(e,"0")}n.d(e,{HI:function(){return d},Tm:function(){return s},bh:function(){return c},$y:function(){return f}});var i=n(683);function o(t){let e,n;return(...r)=>((n?.length!==r.length||n.some((t,e)=>t!==r[e]))&&(n=r,e=t(...r)),e)}let l=o(t=>new Intl.NumberFormat(t)),a=o((t,e)=>new Intl.DateTimeFormat(t,{timeZone:"UTC",...e&&{month:e}})),u=o((t,e)=>new Intl.DateTimeFormat(t,{timeZone:"UTC",...e&&{weekday:e}}));function c(t="en-US",e="short"){let n=a(t,e);return t=>null==t||isNaN(t=+new Date(Date.UTC(2e3,+t)))?void 0:n.format(t)}function f(t="en-US",e="short"){let n=u(t,e);return t=>null==t||isNaN(t=+new Date(Date.UTC(2001,0,+t)))?void 0:n.format(t)}function s(t){return function(t,e){var n;if(t instanceof Date||(t=new Date(+t)),isNaN(t))return"function"==typeof e?e(t):e;let i=t.getUTCHours(),o=t.getUTCMinutes(),l=t.getUTCSeconds(),a=t.getUTCMilliseconds();return`${(n=t.getUTCFullYear())<0?`-${r(-n,6)}`:n>9999?`+${r(n,6)}`:r(n,4)}-${r(t.getUTCMonth()+1,2)}-${r(t.getUTCDate(),2)}${i||o||l||a?`T${r(i,2)}:${r(o,2)}${l||a?`:${r(l,2)}${a?`.${r(a,3)}`:""}`:""}Z`:""}`}(t,"Invalid Date")}let d=function(t="en-US"){let e=function(t="en-US"){let e=l(t);return t=>null==t||isNaN(t)?void 0:e.format(t)}(t);return t=>(t instanceof Date?s:"number"==typeof t?e:i.Z_)(t)}()},4810:function(t,e,n){n.d(e,{D7:function(){return s},NF:function(){return f},TT:function(){return c},cx:function(){return u},rt:function(){return d}});var r=n(8755),i=n(2186),o=n(6243);let l=new WeakMap;function a(t,e,{x:n,y:a,px:u,py:c,maxRadius:f=40,channels:h,render:p,...m}={}){return f=+f,null!=u&&(n??=null,h={...h,px:{value:u,scale:"x"}}),null!=c&&(a??=null,h={...h,py:{value:c,scale:"y"}}),{x:n,y:a,channels:h,...m,render:(0,i.U6)(function(n,i,a,u,c,h){let p,m,g,y,v;let b=(c={...c,pointerSticky:!1}).ownerSVGElement,{data:w}=c.getMarkState(this),x=l.get(b);x||l.set(b,x={sticky:!1,roots:[],renders:[]});let $=x.renders.push(S)-1,{x:k,y:M,fx:E,fy:A}=i,L=E?E(n.fx)-u.marginLeft:0,C=A?A(n.fy)-u.marginTop:0;k?.bandwidth&&(L+=k.bandwidth()/2),M?.bandwidth&&(C+=M.bandwidth()/2);let j=null!=n.fi;if(j){let t=x.facetStates;t||(x.facetStates=t=new Map),(p=t.get(this))||t.set(this,p=new Map)}let[z,_]=(0,o.fs)(this,u),{px:I,py:D}=a,N=I?t=>I[t]:s(a,z),W=D?t=>D[t]:d(a,_);function U(t,e){if(j){if(v&&(v=cancelAnimationFrame(v)),null==t)p.delete(n.fi);else{p.set(n.fi,e),v=requestAnimationFrame(()=>{for(let[r,i]of(v=null,p))if(i<e||i===e&&r<n.fi){t=null;break}S(t)});return}}S(t)}function S(t){if(m===t&&y===x.sticky)return;m=t,y=c.pointerSticky=x.sticky;let e=null==m?[]:[m];j&&(e.fx=n.fx,e.fy=n.fy,e.fi=n.fi);let r=h(e,i,a,u,c);if(g){if(j){let t=g.parentNode,e=g.getAttribute("transform"),n=r.getAttribute("transform");e?r.setAttribute("transform",e):r.removeAttribute("transform"),n?t.setAttribute("transform",n):t.removeAttribute("transform"),r.removeAttribute("aria-label"),r.removeAttribute("aria-description"),r.removeAttribute("aria-hidden")}g.replaceWith(r)}return x.roots[$]=g=r,null==m&&p?.size>1||c.dispatchValue(null==m?null:w[m]),r}function R(i){if(x.sticky||"mouse"===i.pointerType&&1===i.buttons)return;let[o,l]=(0,r.cx$)(i);o-=L,l-=C;let a=o<u.marginLeft||o>u.width-u.marginRight?1:t,c=l<u.marginTop||l>u.height-u.marginBottom?1:e,s=null,d=f*f;for(let t of n){let e=a*(N(t)-o),n=c*(W(t)-l),r=e*e+n*n;r<=d&&(s=t,d=r)}if(null!=s&&(1!==t||1!==e)){let t=N(s)-o,e=W(s)-l;d=t*t+e*e}U(s,d)}return b.addEventListener("pointerenter",R),b.addEventListener("pointermove",R),b.addEventListener("pointerdown",function(t){"mouse"===t.pointerType&&null!=m&&(x.sticky&&x.roots.some(e=>e?.contains(t.target))||(x.sticky?(x.sticky=!1,x.renders.forEach(t=>t(null))):(x.sticky=!0,S(m)),t.stopImmediatePropagation()))}),b.addEventListener("pointerleave",function(t){"mouse"!==t.pointerType||x.sticky||U(null)}),S(null)},p)}}function u(t){return a(1,1,t)}function c(t){return a(1,.01,t)}function f(t){return a(.01,1,t)}function s({x1:t,x2:e,x:n=t},r){return t&&e?n=>(t[n]+e[n])/2:n?t=>n[t]:()=>r}function d({y1:t,y2:e,y:n=t},r){return t&&e?n=>(t[n]+e[n])/2:n?t=>n[t]:()=>r}},9684:function(t,e,n){n.d(e,{hg:function(){return v},SR:function(){return m},j3:function(){return p}});var r=n(8755),i=n(1032),o=n(9698);function l(t){return(0,o.a3)(t)&&void 0===t.interval?void 0:"tabular-nums"}var a=n(683),u=n(7354),c=n(6243),f=n(5921);function s(t,e){if(null==e)return e;let n=t(e);if(!n)throw Error(`scale not found: ${e}`);return n}function d(t,e={},n){let r,{columns:o,tickFormat:a,fontVariant:u=l(t),swatchSize:s=15,swatchWidth:d=s,swatchHeight:h=s,marginLeft:p=0,className:m,style:g,width:y}=e,v=(0,i.k)(e);m=(0,c.uB)(m),a=(0,f.No)(t.scale,t.domain,void 0,a);let b=(0,i.U)("div",v).attr("class",`${m}-swatches ${m}-swatches-${null!=o?"columns":"wrap"}`);return null!=o?(r=`:where(.${m}-swatches-columns .${m}-swatch) {
  display: flex;
  align-items: center;
  break-inside: avoid;
  padding-bottom: 1px;
}
:where(.${m}-swatches-columns .${m}-swatch::before) {
  flex-shrink: 0;
}
:where(.${m}-swatches-columns .${m}-swatch-label) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}`,b.style("columns",o).selectAll().data(t.domain).enter().append("div").attr("class",`${m}-swatch`).call(n,t,d,h).call(t=>t.append("div").attr("class",`${m}-swatch-label`).attr("title",a).text(a))):(r=`:where(.${m}-swatches-wrap) {
  display: flex;
  align-items: center;
  min-height: 33px;
  flex-wrap: wrap;
}
:where(.${m}-swatches-wrap .${m}-swatch) {
  display: inline-flex;
  align-items: center;
  margin-right: 1em;
}`,b.selectAll().data(t.domain).enter().append("span").attr("class",`${m}-swatch`).call(n,t,d,h).append(function(){return this.ownerDocument.createTextNode(a.apply(this,arguments))})),b.call(t=>t.insert("style","*").text(`:where(.${m}-swatches) {
  font-family: system-ui, sans-serif;
  font-size: 10px;
  margin-bottom: 0.5em;
}
:where(.${m}-swatch > svg) {
  margin-right: 0.5em;
  overflow: visible;
}
${r}`)).style("margin-left",p?`${+p}px`:null).style("width",void 0===y?null:`${+y}px`).style("font-variant",(0,c.J4)(u,"normal")).call(c.jb,g).node()}let h=new Map([["symbol",function(t,{fill:e=t.hint?.fill!==void 0?t.hint.fill:"none",fillOpacity:n=1,stroke:i=t.hint?.stroke!==void 0?t.hint.stroke:(0,a.U_)(e)?"currentColor":"none",strokeOpacity:o=1,strokeWidth:l=1.5,r:u=4.5,...c}={},f){let[h,p]=(0,a.uw)(e),[m,g]=(0,a.uw)(i),y=s(f,h),v=s(f,m),b=u*u*Math.PI;return n=(0,a.g_)(n)[1],o=(0,a.g_)(o)[1],l=(0,a.g_)(l)[1],d(t,c,(e,i,a,u)=>e.append("svg").attr("viewBox","-8 -8 16 16").attr("width",a).attr("height",u).attr("fill","color"===h?t=>y.scale(t):p).attr("fill-opacity",n).attr("stroke","color"===m?t=>v.scale(t):g).attr("stroke-opacity",o).attr("stroke-width",l).append("path").attr("d",e=>{let n=(0,r.xKz)();return t.scale(e).draw(n,b),n}))}],["color",y],["opacity",function({type:t,interpolate:e,...n},{legend:i=!0,color:o=(0,r.B8C)(0,0,0),...l}){if(!e)throw Error(`${t} opacity scales are not supported`);if(!0===i&&(i="ramp"),"ramp"!==`${i}`.toLowerCase())throw Error(`${i} opacity legends are not supported`);return y({type:t,...n,interpolate:function(t){let{r:e,g:n,b:i}=(0,r.B8C)(t)||(0,r.B8C)(0,0,0);return t=>`rgba(${e},${n},${i},${t})`}(o)},{legend:i,...l})}]]);function p(t={}){for(let[e,n]of h){let r=t[e];if((0,a.n3)(r)){let l;let u=(0,i.k)(t);if("symbol"===e){let{fill:e,stroke:n=void 0===e&&(0,a.n3)(t.color)?"color":void 0}=t;l={fill:e,stroke:n}}return n((0,o.Mz)(e,r,l),g(u,r,t),e=>(0,a.n3)(t[e])?(0,o.Mz)(e,t[e]):null)}}throw Error("unknown legend type; no scale found")}function m(t,e,n={}){return(r,i)=>{if(!h.has(r))throw Error(`unknown legend type: ${r}`);if(r in t)return h.get(r)(t[r],g(e,n[r],i),e=>t[e])}}function g({className:t,...e},{label:n,ticks:r,tickFormat:i}={},o){return(0,a.ED)(o,{className:t,...e},{label:n,ticks:r,tickFormat:i})}function y(t,{legend:e=!0,...n}){if(!0===e&&(e="ordinal"===t.type?"swatches":"ramp"),void 0!==t.domain)switch(`${e}`.toLowerCase()){case"swatches":return function(t,{opacity:e,...n}={}){if(!(0,o.a3)(t)&&!(0,o.dj)(t))throw Error(`swatches legend requires ordinal or threshold color scale (not ${t.type})`);return d(t,n,(t,n,r,i)=>t.append("svg").attr("width",r).attr("height",i).attr("fill",n.scale).attr("fill-opacity",(0,a.g_)(e)[1]).append("rect").attr("width","100%").attr("height","100%"))}(t,n);case"ramp":return function(t,e){let n,{label:o=t.label,tickSize:f=6,width:s=240,height:d=44+f,marginTop:h=18,marginRight:p=0,marginBottom:m=16+f,marginLeft:g=0,style:y,ticks:v=(s-g-p)/64,tickFormat:b,fontVariant:w=l(t),round:x=!0,opacity:$,className:k}=e,M=(0,i.k)(e);k=(0,c.uB)(k),$=(0,a.g_)($)[1],null===b&&(b=()=>null);let E=(0,i.U)("svg",M).attr("class",`${k}-ramp`).attr("font-family","system-ui, sans-serif").attr("font-size",10).attr("width",s).attr("height",d).attr("viewBox",`0 0 ${s} ${d}`).call(t=>t.append("style").text(`:where(.${k}-ramp) {
  display: block;
  height: auto;
  height: intrinsic;
  max-width: 100%;
  overflow: visible;
}
:where(.${k}-ramp text) {
  white-space: pre;
}`)).call(c.jb,y),A=t=>t.selectAll(".tick line").attr("y1",h+m-d),L=x?(t,e)=>t.rangeRound(e):(t,e)=>t.range(e),{type:C,domain:j,range:z,interpolate:_,scale:I,pivot:D}=t;if(_){let t=void 0===z?_:(0,r.sOJ)(1===_.length?(0,u.LG)(_):_,z);n=L(I.copy(),(0,r.q$2)((0,r.k46)(g,s-p),Math.min(j.length+(void 0!==D),void 0===z?1/0:z.length)));let e=M.document.createElement("canvas");e.width=256,e.height=1;let i=e.getContext("2d");for(let e=0;e<256;++e)i.fillStyle=t(e/255),i.fillRect(e,0,1,1);E.append("image").attr("opacity",$).attr("x",g).attr("y",h).attr("width",s-g-p).attr("height",d-h-m).attr("preserveAspectRatio","none").attr("xlink:href",e.toDataURL())}else if("threshold"===C){let t=void 0===b?t=>t:"string"==typeof b?(0,r.WUZ)(b):b;n=L((0,r.BYU)().domain([-1,z.length-1]),[g,s-p]),E.append("g").attr("fill-opacity",$).selectAll().data(z).enter().append("rect").attr("x",(t,e)=>n(e-1)).attr("y",h).attr("width",(t,e)=>n(e)-n(e-1)).attr("height",d-h-m).attr("fill",t=>t),v=(0,a.UI)(j,(t,e)=>e),b=e=>t(j[e],e)}else n=L((0,r.tiA)().domain(j),[g,s-p]),E.append("g").attr("fill-opacity",$).selectAll().data(j).enter().append("rect").attr("x",n).attr("y",h).attr("width",Math.max(0,n.bandwidth()-1)).attr("height",d-h-m).attr("fill",I),A=()=>{};return E.append("g").attr("transform",`translate(0,${d-m})`).call((0,r.LLu)(n).ticks(Array.isArray(v)?null:v,"string"==typeof b?b:void 0).tickFormat("function"==typeof b?b:void 0).tickSize(f).tickValues(Array.isArray(v)?v:null)).attr("font-size",null).attr("font-family",null).attr("font-variant",(0,c.J4)(w,"normal")).call(A).call(t=>t.select(".domain").remove()),void 0!==o&&E.append("text").attr("x",g).attr("y",h-6).attr("fill","currentColor").attr("font-weight","bold").text(o),E.node()}(t,n);default:throw Error(`unknown legend type: ${e}`)}}function v(t,e,n){let r=[];for(let[i,o]of h){let l=n[i];if(l?.legend&&i in t){let n=o(t[i],g(e,t[i],l),e=>t[e]);null!=n&&r.push(n)}}return r}},2186:function(t,e,n){n.d(e,{EI:function(){return s},U6:function(){return d},so:function(){return h},vc:function(){return f}});var r=n(9238),i=n(3736),o=n(2325),l=n(683),a=n(1838),u=n(6243),c=n(4883);class f{constructor(t,e={},n={},r){let{facet:i="auto",facetAnchor:a,fx:f,fy:s,sort:h,dx:p=0,dy:m=0,margin:g=0,marginTop:y=g,marginRight:v=g,marginBottom:b=g,marginLeft:w=g,clip:x=r?.clip,channels:$,tip:k,render:M}=n;if(this.data=t,this.sort=(0,l.Y4)(h)?h:null,this.initializer=(0,c.zj)(n).initializer,this.transform=this.initializer?n.transform:(0,c.RB)(n).transform,null===i||!1===i?this.facet=null:(this.facet=(0,l.$E)(!0===i?"include":i,"facet",["auto","include","exclude","super"]),this.fx=t===l.ri&&"string"==typeof f?[f]:f,this.fy=t===l.ri&&"string"==typeof s?[s]:s),this.facetAnchor=(0,o.lv)(a),e=(0,l.xk)(e),void 0!==$&&(e={...Object.fromEntries(Object.entries((0,l.xk)($)).map(([t,e])=>(void 0===(e="string"==typeof e?{value:e,label:t}:(0,l.i)(e)).filter&&null==e.scale&&(e={...e,filter:null}),[t,e]))),...e}),void 0!==r&&(e={...(0,u.W2)(this,n,r),...e}),this.channels=Object.fromEntries(Object.entries(e).map(([e,n])=>{if((0,l.wq)(n.value)){let{value:t,label:e=n.label,scale:r=n.scale}=n.value;n={...n,label:e,scale:r,value:t}}if(t===l.ri&&"string"==typeof n.value){let{value:t}=n;n={...n,value:[t]}}return[e,n]}).filter(([t,{value:e,optional:n}])=>{if(null!=e)return!0;if(n)return!1;throw Error(`missing channel value: ${t}`)})),this.dx=+p,this.dy=+m,this.marginTop=+y,this.marginRight=+v,this.marginBottom=+b,this.marginLeft=+w,this.clip=(0,l.td)(x),this.tip=!0===k?"xy":!1===k||null==k?null:"string"==typeof k?(0,l.$E)(k,"tip",["x","y","xy"]):k,"super"===this.facet){if(f||s)throw Error("super-faceting cannot use fx or fy");for(let t in this.channels){let{scale:n}=e[t];if("x"===n||"y"===n)throw Error("super-faceting cannot use x or y")}}null!=M&&(this.render=d(M,this.render))}initialize(t,e,n){let i=(0,l.lE)(this.data);void 0===t&&null!=i&&(t=[(0,l.w6)(i)]);let o=t;null!=this.transform&&({facets:t,data:i}=this.transform(i,t,n),i=(0,l.lE)(i)),void 0!==t&&(t.original=o);let a=(0,r.QP)(this.channels,i);return null!=this.sort&&(0,r.uT)(i,t,a,e,this.sort),{data:i,facets:t,channels:a}}filter(t,e,n){for(let r in e){let{filter:o=i.ri}=e[r];if(null!==o){let e=n[r];t=t.filter(t=>o(e[t]))}}return t}project(t,e,n){for(let r in t)if("x"===t[r].scale&&/^x|x$/.test(r)){let i=r.replace(/^x|x$/,"y");i in t&&"y"===t[i].scale&&(0,a.iV)(r,i,e,n.projection)}}scale(t,e,n){let i=(0,r.iy)(t,e);return n.projection&&this.project(t,i,n),i}}function s(...t){return t.plot=f.prototype.plot,t}function d(t,e){if(null==t)return null===e?void 0:e;if(null==e)return null===t?void 0:t;if("function"!=typeof t)throw TypeError(`invalid render transform: ${t}`);if("function"!=typeof e)throw TypeError(`invalid render transform: ${e}`);return function(n,r,i,o,l,a){return t.call(this,n,r,i,o,l,(t,n,r,i,o)=>e.call(this,t,n,r,i,o,a))}}function h(t,e){return t?.tip===!0?{...t,tip:e}:(0,l.Kn)(t?.tip)&&void 0===t.tip.pointer?{...t,tip:{...t.tip,pointer:e}}:t}},2175:function(t,e,n){n.d(e,{Mt:function(){return d},PP:function(){return i},ge:function(){return h}});var r=n(1032);function i(t,{marker:e,markerStart:n=e,markerMid:r=e,markerEnd:i=e}={}){t.markerStart=o(n),t.markerMid=o(r),t.markerEnd=o(i)}function o(t){if(null==t||!1===t)return null;if(!0===t)return u;if("function"==typeof t)return t;switch(`${t}`.toLowerCase()){case"none":return null;case"arrow":return l("auto");case"arrow-reverse":return l("auto-start-reverse");case"dot":return a;case"circle":case"circle-fill":return u;case"circle-stroke":return c;case"tick":return f("auto");case"tick-x":return f(90);case"tick-y":return f(0)}throw Error(`invalid marker: ${t}`)}function l(t){return(e,n)=>(0,r.U)("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(t=>t.append("path").attr("d","M-1.5,-3l3,3l-3,3")).node()}function a(t,e){return(0,r.U)("svg:marker",e).attr("viewBox","-5 -5 10 10").attr("markerWidth",6.67).attr("markerHeight",6.67).attr("fill",t).attr("stroke","none").call(t=>t.append("circle").attr("r",2.5)).node()}function u(t,e){return(0,r.U)("svg:marker",e).attr("viewBox","-5 -5 10 10").attr("markerWidth",6.67).attr("markerHeight",6.67).attr("fill",t).attr("stroke","var(--plot-background)").attr("stroke-width",1.5).call(t=>t.append("circle").attr("r",3)).node()}function c(t,e){return(0,r.U)("svg:marker",e).attr("viewBox","-5 -5 10 10").attr("markerWidth",6.67).attr("markerHeight",6.67).attr("fill","var(--plot-background)").attr("stroke",t).attr("stroke-width",1.5).call(t=>t.append("circle").attr("r",3)).node()}function f(t){return(e,n)=>(0,r.U)("svg:marker",n).attr("viewBox","-3 -3 6 6").attr("markerWidth",6).attr("markerHeight",6).attr("orient",t).attr("stroke",e).call(t=>t.append("path").attr("d","M0,-3v6")).node()}let s=0;function d(t,e,{stroke:n},r){return p(t,e,n&&(t=>n[t]),r)}function h(t,e,{stroke:n},r){return p(t,e,n&&(([t])=>n[t]),r)}function p(t,{markerStart:e,markerMid:n,markerEnd:r,stroke:i},o=()=>i,l){let a=new Map;function u(t){return function(e){let n=o(e),r=a.get(t);r||a.set(t,r=new Map);let i=r.get(n);if(!i){let e=this.parentNode.insertBefore(t(n,l),this),o=`plot-marker-${++s}`;e.setAttribute("id",o),r.set(n,i=`url(#${o})`)}return i}}e&&t.attr("marker-start",u(e)),n&&t.attr("marker-mid",u(n)),r&&t.attr("marker-end",u(r))}},5921:function(t,e,n){n.d(e,{A:function(){return z},EK:function(){return k},Hh:function(){return C},Me:function(){return $},Nb:function(){return E},No:function(){return R},WF:function(){return j},lU:function(){return M},qv:function(){return _}});var r=n(8755),i=n(3786),o=n(2186),l=n(6916),a=n(683),u=n(9698),c=n(6243),f=n(3330),s=n(4883),d=n(5793),h=n(4497),p=n(625),m=n(1957);function g(t,e){return arguments.length<2&&!(0,a.TW)(t)&&(e=t,t=null),void 0===e&&(e={}),[t,e]}function y({anchor:t}={},e){return void 0===t?e[0]:(0,a.$E)(t,"anchor",e)}function v(t){return y(t,["left","right"])}function b(t){return y(t,["right","left"])}function w(t){return y(t,["bottom","top"])}function x(t){return y(t,["top","bottom"])}function $(){let[t,e]=g(...arguments);return A("y",v(e),t,e)}function k(){let[t,e]=g(...arguments);return A("fy",b(e),t,e)}function M(){let[t,e]=g(...arguments);return L("x",w(e),t,e)}function E(){let[t,e]=g(...arguments);return L("fx",x(e),t,e)}function A(t,e,n,{color:r="currentColor",opacity:i=1,stroke:u=r,strokeOpacity:f=i,strokeWidth:s=1,fill:d=r,fillOpacity:h=i,textAnchor:g,textStroke:y,textStrokeOpacity:v,textStrokeWidth:b,tickSize:w="y"===t?6:0,tickPadding:x,tickRotate:$,x:k,margin:M,marginTop:E=void 0===M?20:M,marginRight:A=void 0===M?"right"===e?40:0:M,marginBottom:L=void 0===M?20:M,marginLeft:C=void 0===M?"left"===e?40:0:M,label:j,labelAnchor:z,labelArrow:_,labelOffset:I,...D}){return w=(0,a.Rx)(w),x=(0,a.Rx)(x),$=(0,a.Rx)($),void 0!==z&&(z=(0,a.$E)(z,"labelAnchor",["center","top","bottom"])),_=P(_),(0,o.EI)(w&&!(0,a.U_)(u)?function(t,e,n,{strokeWidth:r=1,strokeLinecap:i=null,strokeLinejoin:o=null,facetAnchor:l=e+("y"===t?"-empty":""),frameAnchor:a=e,tickSize:u,inset:f=0,insetLeft:s=f,insetRight:d=f,dx:h=0,y:p="y"===t?void 0:null,...g}){return U(m.Zm,t,n,{ariaLabel:`${t}-axis tick`,ariaHidden:!0},{strokeWidth:r,strokeLinecap:i,strokeLinejoin:o,facetAnchor:l,frameAnchor:a,y:p,...g,dx:"left"===e?+h-c.cv+ +s:+h+c.cv-d,anchor:"start",length:u,shape:"left"===e?F:B})}(t,e,n,{stroke:u,strokeOpacity:f,strokeWidth:s,tickSize:w,tickPadding:x,tickRotate:$,x:k,...D}):null,(0,a.U_)(d)?null:function(t,e,n,{facetAnchor:r=e+("y"===t?"-empty":""),frameAnchor:i=e,tickSize:o,tickRotate:a=0,tickPadding:u=Math.max(3,9-o)+(Math.abs(a)>60?4*Math.cos(a*l.u):0),text:c,textAnchor:f=Math.abs(a)>60?"middle":"left"===e?"end":"start",lineAnchor:s=a>60?"top":a<-60?"bottom":"middle",fontVariant:d,inset:h=0,insetLeft:m=h,insetRight:g=h,dx:y=0,y:v="y"===t?void 0:null,...b}){return U(p.qU,t,n,{ariaLabel:`${t}-axis tick label`},{facetAnchor:r,frameAnchor:i,text:c,textAnchor:f,lineAnchor:s,fontVariant:d,rotate:a,y:v,...b,dx:"left"===e?+y-o-u+ +m:+y+ +o+ +u-g},function(t,n,r,i,o){void 0===d&&(this.fontVariant=Y(t)),void 0===c&&(o.text=S(t,n,r,i,e))})}(t,e,n,{fill:d,fillOpacity:h,stroke:y,strokeOpacity:v,strokeWidth:b,textAnchor:g,tickSize:w,tickPadding:x,tickRotate:$,x:k,marginTop:E,marginRight:A,marginBottom:L,marginLeft:C,...D}),(0,a.U_)(d)||null===j?null:(0,p.fL)([],W({fill:d,fillOpacity:h,...D},function(n,r,i,o,l){let a=o[t],{marginTop:u,marginRight:c,marginBottom:f,marginLeft:s}="y"===t&&l.inset||l,d=z??(a.bandwidth?"center":"top"),h=I??("right"===e?c:s)-3;return"center"===d?(this.textAnchor=void 0,this.lineAnchor="right"===e?"bottom":"top",this.frameAnchor=e,this.rotate=-90):(this.textAnchor="right"===e?"end":"start",this.lineAnchor=d,this.frameAnchor=`${d}-${e}`,this.rotate=0),this.dy="top"===d?3-u:"bottom"===d?f-3:0,this.dx="right"===e?h:-h,this.ariaLabel=`${t}-axis label`,{facets:[[0]],channels:{text:{value:[H(t,a,{anchor:e,label:j,labelAnchor:d,labelArrow:_})]}}}})))}function L(t,e,n,{color:r="currentColor",opacity:i=1,stroke:u=r,strokeOpacity:f=i,strokeWidth:s=1,fill:d=r,fillOpacity:h=i,textAnchor:g,textStroke:y,textStrokeOpacity:v,textStrokeWidth:b,tickSize:w="x"===t?6:0,tickPadding:x,tickRotate:$,y:k,margin:M,marginTop:E=void 0===M?"top"===e?30:0:M,marginRight:A=void 0===M?20:M,marginBottom:L=void 0===M?"bottom"===e?30:0:M,marginLeft:C=void 0===M?20:M,label:j,labelAnchor:z,labelArrow:_,labelOffset:I,...D}){return w=(0,a.Rx)(w),x=(0,a.Rx)(x),$=(0,a.Rx)($),void 0!==z&&(z=(0,a.$E)(z,"labelAnchor",["center","left","right"])),_=P(_),(0,o.EI)(w&&!(0,a.U_)(u)?function(t,e,n,{strokeWidth:r=1,strokeLinecap:i=null,strokeLinejoin:o=null,facetAnchor:l=e+("x"===t?"-empty":""),frameAnchor:a=e,tickSize:u,inset:f=0,insetTop:s=f,insetBottom:d=f,dy:h=0,x:p="x"===t?void 0:null,...g}){return U(m.al,t,n,{ariaLabel:`${t}-axis tick`,ariaHidden:!0},{strokeWidth:r,strokeLinejoin:o,strokeLinecap:i,facetAnchor:l,frameAnchor:a,x:p,...g,dy:"bottom"===e?+h-c.cv-d:+h+c.cv+ +s,anchor:"start",length:u,shape:"bottom"===e?O:q})}(t,e,n,{stroke:u,strokeOpacity:f,strokeWidth:s,tickSize:w,tickPadding:x,tickRotate:$,y:k,...D}):null,(0,a.U_)(d)?null:function(t,e,n,{facetAnchor:r=e+("x"===t?"-empty":""),frameAnchor:i=e,tickSize:o,tickRotate:a=0,tickPadding:u=Math.max(3,9-o)+(Math.abs(a)>=10?4*Math.cos(a*l.u):0),text:c,textAnchor:f=Math.abs(a)>=10?a<0^"bottom"===e?"start":"end":"middle",lineAnchor:s=Math.abs(a)>=10?"middle":"bottom"===e?"top":"bottom",fontVariant:d,inset:h=0,insetTop:m=h,insetBottom:g=h,dy:y=0,x:v="x"===t?void 0:null,...b}){return U(p.zP,t,n,{ariaLabel:`${t}-axis tick label`},{facetAnchor:r,frameAnchor:i,text:void 0===c?null:c,textAnchor:f,lineAnchor:s,fontVariant:d,rotate:a,x:v,...b,dy:"bottom"===e?+y+ +o+ +u-g:+y-o-u+ +m},function(t,n,r,i,o){void 0===d&&(this.fontVariant=Y(t)),void 0===c&&(o.text=S(t,n,r,i,e))})}(t,e,n,{fill:d,fillOpacity:h,stroke:y,strokeOpacity:v,strokeWidth:b,textAnchor:g,tickSize:w,tickPadding:x,tickRotate:$,y:k,marginTop:E,marginRight:A,marginBottom:L,marginLeft:C,...D}),(0,a.U_)(d)||null===j?null:(0,p.fL)([],W({fill:d,fillOpacity:h,...D},function(n,r,i,o,l){let a=o[t],{marginTop:u,marginRight:c,marginBottom:f,marginLeft:s}="x"===t&&l.inset||l,d=z??(a.bandwidth?"center":"right"),h=I??("top"===e?u:f)-3;return"center"===d?(this.frameAnchor=e,this.textAnchor=void 0):(this.frameAnchor=`${e}-${d}`,this.textAnchor="right"===d?"end":"start"),this.lineAnchor=e,this.dy="top"===e?-h:h,this.dx="right"===d?c-3:"left"===d?3-s:0,this.ariaLabel=`${t}-axis label`,{facets:[[0]],channels:{text:{value:[H(t,a,{anchor:e,label:j,labelAnchor:d,labelArrow:_})]}}}})))}function C(){let[t,e]=g(...arguments);return I("y",v(e),t,e)}function j(){let[t,e]=g(...arguments);return I("fy",b(e),t,e)}function z(){let[t,e]=g(...arguments);return D("x",w(e),t,e)}function _(){let[t,e]=g(...arguments);return D("fx",x(e),t,e)}function I(t,e,n,{y:r="y"===t?void 0:null,x:i=null,x1:o="left"===e?i:null,x2:l="right"===e?i:null,...a}){return U(h.VD,t,n,{ariaLabel:`${t}-grid`,ariaHidden:!0},{y:r,x1:o,x2:l,...N(a)})}function D(t,e,n,{x:r="x"===t?void 0:null,y:i=null,y1:o="top"===e?i:null,y2:l="bottom"===e?i:null,...a}){return U(h.mc,t,n,{ariaLabel:`${t}-grid`,ariaHidden:!0},{x:r,y1:o,y2:l,...N(a)})}function N({color:t="currentColor",opacity:e=.1,stroke:n=t,strokeOpacity:r=e,strokeWidth:i=1,...o}){return{stroke:n,strokeOpacity:r,strokeWidth:i,...o}}function W({fill:t,fillOpacity:e,fontFamily:n,fontSize:r,fontStyle:i,fontVariant:o,fontWeight:l,monospace:u,pointerEvents:c,shapeRendering:f,clip:s=!1},d){return[,t]=(0,a.uw)(t),[,e]=(0,a.g_)(e),{facet:"super",x:null,y:null,fill:t,fillOpacity:e,fontFamily:n,fontSize:r,fontStyle:i,fontVariant:o,fontWeight:l,monospace:u,pointerEvents:c,shapeRendering:f,clip:s,initializer:d}}function U(t,e,n,i,o,l){let u;let c=(0,s.zj)(o).initializer,h=t(n,(0,s.zj)({...o,initializer:function(t,n,i,c,s,h){let p=null==t&&("fx"===e||"fy"===e),{[e]:m}=c;if(!m)throw Error(`missing scale: ${e}`);let g=m.domain(),{interval:y,ticks:v,tickFormat:b,tickSpacing:w="x"===e?80:35}=o;if("string"==typeof v&&Z(m)&&(y=v,v=void 0),void 0===v&&(v=(0,a.rn)(y,m.type)??function(t,e){let[n,i]=(0,r.Wem)(t.range());return(i-n)/e}(m,w)),null==t){if((0,a.TW)(v))t=(0,a.lE)(v);else if((0,a.NX)(v))t=T(v,...(0,r.Wem)(g));else if(m.interval){let e=m.interval;if(m.ticks){let[n,i]=(0,r.Wem)(g),o=(i-n)/e[f.yy];t=T(e=(0,f.Oi)(e,o/v)??e,n,i)}else{let n=(t=g).length;(e=(0,f.Oi)(e,n/v)??e)!==m.interval&&(t=T(e,...(0,r.Wem)(t)))}if(e===m.interval){let e=Math.round(t.length/v);e>1&&(t=t.filter((t,n)=>n%e==0))}}else t=m.ticks?m.ticks(v):g;if(!m.ticks&&t.length&&t!==g){let n=new r.H0G(g);(t=t.filter(t=>n.has(t))).length||(0,d.Z)(`Warning: the ${e}-axis ticks appear to not align with the scale domain, resulting in no ticks. Try different ticks?`)}"y"===e||"x"===e?n=[(0,a.w6)(t)]:u[e]={scale:e,value:a.yR}}l?.call(this,m,t,v,b,u);let x=Object.fromEntries(Object.entries(u).map(([e,n])=>[e,{...n,value:(0,a.dj)(t,n.value)}]));return p&&(n=h.filterFacets(t,x)),{data:t,facets:n,channels:x}}},c));return null==n?(u=h.channels,h.channels={}):u={},void 0!==i&&Object.assign(h,i),void 0===h.clip&&(h.clip=!1),h}function S(t,e,n,r,i){return{value:R(t,e,n,r,i)}}function R(t,e,n,o,l){return"function"==typeof o?o:void 0===o&&e&&(0,a.IC)(e)?(0,f.uf)(t.type,e,l)??i.HI:t.tickFormat?t.tickFormat("number"==typeof n?n:null,o):void 0===o?i.HI:"string"==typeof o?((0,a.IC)(t.domain())?r.g0u:r.WUZ)(o):(0,a.a9)(o)}function T(t,e,n){return t.range(e,t.offset(t.floor(n)))}let O={draw(t,e){t.moveTo(0,0),t.lineTo(0,e)}},q={draw(t,e){t.moveTo(0,0),t.lineTo(0,-e)}},F={draw(t,e){t.moveTo(0,0),t.lineTo(-e,0)}},B={draw(t,e){t.moveTo(0,0),t.lineTo(e,0)}};function Y(t){return t.bandwidth&&!t.interval?void 0:"tabular-nums"}function H(t,e,{anchor:n,label:r=e.label,labelAnchor:i,labelArrow:o}={}){if(!(null==r||r.inferred&&Z(e)&&/^(date|time|year)$/i.test(r))){if(r=String(r),"auto"===o&&(o=(!e.bandwidth||e.interval)&&!/[↑↓→←]/.test(r)),!o)return r;if(!0===o){let n=(0,u.uu)(e);n&&(o=/x$/.test(t)||"center"===i?/x$/.test(t)===n<0?"left":"right":n<0?"up":"down")}switch(o){case"left":return`← ${r}`;case"right":return`${r} →`;case"up":return"right"===n?`${r} ↑`:`↑ ${r}`;case"down":return"right"===n?`${r} ↓`:`↓ ${r}`}return r}}function P(t="auto"){return!(0,a.U_)(t)&&("boolean"==typeof t?t:(0,a.$E)(t,"labelArrow",["auto","up","right","down","left"]))}function Z(t){return(0,a.IC)(t.domain())}},6294:function(t,e,n){n.d(e,{R:function(){return c},W:function(){return f}});var r=n(1032),i=n(2186),o=n(683),l=n(6243);let a={ariaLabel:"frame",fill:"none",stroke:"currentColor",clip:!1},u={ariaLabel:"frame",fill:null,stroke:"currentColor",strokeLinecap:"square",clip:!1};class c extends i.vc{constructor(t={}){let{anchor:e=null,inset:n=0,insetTop:r=n,insetRight:i=n,insetBottom:l=n,insetLeft:c=n,rx:f,ry:s}=t;super(o.ri,void 0,t,null==e?a:u),this.anchor=(0,o.hU)(e,"anchor",["top","right","bottom","left"]),this.insetTop=(0,o.Rx)(r),this.insetRight=(0,o.Rx)(i),this.insetBottom=(0,o.Rx)(l),this.insetLeft=(0,o.Rx)(c),this.rx=(0,o.Rx)(f),this.ry=(0,o.Rx)(s)}render(t,e,n,i,o){let{marginTop:a,marginRight:u,marginBottom:c,marginLeft:f,width:s,height:d}=i,{anchor:h,insetTop:p,insetRight:m,insetBottom:g,insetLeft:y,rx:v,ry:b}=this,w=f+y,x=s-u-m,$=a+p,k=d-c-g;return(0,r.U)(h?"svg:line":"svg:rect",o).datum(0).call(l.dD,this,i,o).call(l.CU,this).call(l.Cp,this,n).call(l.Ne,this,{}).call("left"===h?t=>t.attr("x1",w).attr("x2",w).attr("y1",$).attr("y2",k):"right"===h?t=>t.attr("x1",x).attr("x2",x).attr("y1",$).attr("y2",k):"top"===h?t=>t.attr("x1",w).attr("x2",x).attr("y1",$).attr("y2",$):"bottom"===h?t=>t.attr("x1",w).attr("x2",x).attr("y1",k).attr("y2",k):t=>t.attr("x",w).attr("y",$).attr("width",x-w).attr("height",k-$).attr("rx",v).attr("ry",b)).node()}}function f(t){return new c(t)}},4497:function(t,e,n){n.d(e,{Gb:function(){return d},VD:function(){return p},Xy:function(){return s},mc:function(){return h}});var r=n(1032),i=n(2186),o=n(2175),l=n(683),a=n(9698),u=n(6243),c=n(491);let f={ariaLabel:"rule",fill:null,stroke:"currentColor"};class s extends i.vc{constructor(t,e={}){let{x:n,y1:r,y2:a,inset:u=0,insetTop:c=u,insetBottom:s=u}=e;super(t,{x:{value:n,scale:"x",optional:!0},y1:{value:r,scale:"y",optional:!0},y2:{value:a,scale:"y",optional:!0}},(0,i.so)(e,"x"),f),this.insetTop=(0,l.Rx)(c),this.insetBottom=(0,l.Rx)(s),(0,o.PP)(this,e)}render(t,e,n,i,l){let{x:c,y:f}=e,{x:s,y1:d,y2:h}=n,{width:p,height:m,marginTop:g,marginRight:y,marginLeft:v,marginBottom:b}=i,{insetTop:w,insetBottom:x}=this;return(0,r.U)("svg:g",l).call(u.dD,this,i,l).call(u.Ne,this,{x:s&&c},u.cv,0).call(e=>e.selectAll().data(t).enter().append("line").call(u.CU,this).attr("x1",s?t=>s[t]:(v+p-y)/2).attr("x2",s?t=>s[t]:(v+p-y)/2).attr("y1",d&&!(0,a.zb)(f)?t=>d[t]+w:g+w).attr("y2",h&&!(0,a.zb)(f)?f.bandwidth?t=>h[t]+f.bandwidth()-x:t=>h[t]-x:m-b-x).call(u.Cp,this,n).call(o.Mt,this,n,l)).node()}}class d extends i.vc{constructor(t,e={}){let{x1:n,x2:r,y:a,inset:u=0,insetRight:c=u,insetLeft:s=u}=e;super(t,{y:{value:a,scale:"y",optional:!0},x1:{value:n,scale:"x",optional:!0},x2:{value:r,scale:"x",optional:!0}},(0,i.so)(e,"y"),f),this.insetRight=(0,l.Rx)(c),this.insetLeft=(0,l.Rx)(s),(0,o.PP)(this,e)}render(t,e,n,i,l){let{x:c,y:f}=e,{y:s,x1:d,x2:h}=n,{width:p,height:m,marginTop:g,marginRight:y,marginLeft:v,marginBottom:b}=i,{insetLeft:w,insetRight:x}=this;return(0,r.U)("svg:g",l).call(u.dD,this,i,l).call(u.Ne,this,{y:s&&f},0,u.cv).call(e=>e.selectAll().data(t).enter().append("line").call(u.CU,this).attr("x1",d&&!(0,a.zb)(c)?t=>d[t]+w:v+w).attr("x2",h&&!(0,a.zb)(c)?c.bandwidth?t=>h[t]+c.bandwidth()-x:t=>h[t]-x:p-y-x).attr("y1",s?t=>s[t]:(g+m-b)/2).attr("y2",s?t=>s[t]:(g+m-b)/2).call(u.Cp,this,n).call(o.Mt,this,n,l)).node()}}function h(t,e){let{x:n=l.yR,y:r,y1:i,y2:o,...a}=(0,c.HE)(e);return[i,o]=m(r,i,o),new s(t,{...a,x:n,y1:i,y2:o})}function p(t,e){let{y:n=l.yR,x:r,x1:i,x2:o,...a}=(0,c.ut)(e);return[i,o]=m(r,i,o),new d(t,{...a,y:n,x1:i,x2:o})}function m(t,e,n){if(null==t){if(void 0===e){if(void 0!==n)return[0,n]}else if(void 0===n)return[0,e]}else if(void 0===e)return void 0===n?[0,t]:[t,n];else if(void 0===n)return[t,e];return[e,n]}},625:function(t,e,n){n.d(e,{CW:function(){return b},LH:function(){return A},Ve:function(){return E},fL:function(){return g},g9:function(){return $},pL:function(){return k},qU:function(){return v},tl:function(){return p},vt:function(){return M},xv:function(){return h},z7:function(){return L},zP:function(){return y}});var r=n(8755),i=n(1032),o=n(3736),l=n(3786),a=n(2186),u=n(683),c=n(6243),f=n(9337),s=n(491);let d={ariaLabel:"text",strokeLinejoin:"round",strokeWidth:3,paintOrder:"stroke"};class h extends a.vc{constructor(t,e={}){var n;let{x:r,y:i,text:l=(0,u.TW)(t)&&(0,u.LB)(t)?u.yR:u.cq,frameAnchor:a,textAnchor:f=/right$/i.test(a)?"end":/left$/i.test(a)?"start":"middle",lineAnchor:s=/^top/i.test(a)?"top":/^bottom/i.test(a)?"bottom":"middle",lineHeight:h=1,lineWidth:m=1/0,textOverflow:g,monospace:y,fontFamily:v=y?"ui-monospace, monospace":void 0,fontSize:b,fontStyle:x,fontVariant:$,fontWeight:k,rotate:A}=e,[L,C]=(0,u.g_)(A,0),[j,z]=null==(n=b)||"number"==typeof n?[void 0,n]:"string"!=typeof n?[n,void 0]:(n=n.trim().toLowerCase(),w.has(n)||/^[+-]?\d*\.?\d+(e[+-]?\d+)?(\w*|%)$/.test(n)?[void 0,n]:[n,void 0]);if(super(t,{x:{value:r,scale:"x",optional:!0},y:{value:i,scale:"y",optional:!0},fontSize:{value:j,optional:!0},rotate:{value:(0,u.Fo)(L),optional:!0},text:{value:l,filter:o.PV,optional:!0}},e,d),this.rotate=C,this.textAnchor=(0,c.J4)(f,"middle"),this.lineAnchor=(0,u.$E)(s,"lineAnchor",["top","middle","bottom"]),this.lineHeight=+h,this.lineWidth=+m,this.textOverflow=p(g),this.monospace=!!y,this.fontFamily=(0,u.Z_)(v),this.fontSize=z,this.fontStyle=(0,u.Z_)(x),this.fontVariant=(0,u.Z_)($),this.fontWeight=(0,u.Z_)(k),this.frameAnchor=(0,u.mV)(a),!(this.lineWidth>=0))throw Error(`invalid lineWidth: ${m}`);this.splitLines=M(this),this.clipLine=E(this)}render(t,e,n,r,o){let{x:l,y:a}=e,{x:u,y:s,rotate:d,text:h,title:p,fontSize:g}=n,{rotate:y}=this,[v,w]=(0,c.fs)(this,r);return(0,i.U)("svg:g",o).call(c.dD,this,r,o).call(b,this,h,r).call(c.Ne,this,{x:u&&l,y:s&&a}).call(e=>e.selectAll().data(t).enter().append("text").call(c.CU,this).call(m,this,h,p).attr("transform",(0,f.X)`translate(${u?t=>u[t]:v},${s?t=>s[t]:w})${d?t=>` rotate(${d[t]})`:y?` rotate(${y})`:""}`).call(c.HD,"font-size",g&&(t=>g[t])).call(c.Cp,this,n)).node()}}function p(t){return null==t?null:(0,u.$E)(t,"textOverflow",["clip","ellipsis","clip-start","clip-end","ellipsis-start","ellipsis-middle","ellipsis-end"]).replace(/^(clip|ellipsis)$/,"$1-end")}function m(t,e,n,i){if(!n)return;let{lineAnchor:o,lineHeight:a,textOverflow:u,splitLines:c,clipLine:f}=e;t.each(function(t){let e=c((0,l.HI)(n[t])??"").map(f),s=e.length,d="top"===o?.71:"bottom"===o?1-s:(164-100*s)/200;if(s>1){let t=0;for(let n=0;n<s;++n){if(++t,!e[n])continue;let i=this.ownerDocument.createElementNS(r.aC9.svg,"tspan");i.setAttribute("x",0),n===t-1?i.setAttribute("y",`${(d+n)*a}em`):i.setAttribute("dy",`${t*a}em`),i.textContent=e[n],this.appendChild(i),t=0}}else d&&this.setAttribute("y",`${d*a}em`),this.textContent=e[0];if(u&&!i&&e[0]!==n[t]){let e=this.ownerDocument.createElementNS(r.aC9.svg,"title");e.textContent=n[t],this.appendChild(e)}})}function g(t,{x:e,y:n,...r}={}){return void 0===r.frameAnchor&&([e,n]=(0,u.NK)(e,n)),new h(t,{...r,x:e,y:n})}function y(t,{x:e=u.yR,...n}={}){return new h(t,(0,s.uW)({...n,x:e}))}function v(t,{y:e=u.yR,...n}={}){return new h(t,(0,s.y6)({...n,y:e}))}function b(t,e,n){(0,c.HD)(t,"text-anchor",e.textAnchor),(0,c.HD)(t,"font-family",e.fontFamily),(0,c.HD)(t,"font-size",e.fontSize),(0,c.HD)(t,"font-style",e.fontStyle),(0,c.HD)(t,"font-variant",void 0===e.fontVariant?n&&((0,u.kE)(n)||(0,u.IC)(n))?"tabular-nums":void 0:e.fontVariant),(0,c.HD)(t,"font-weight",e.fontWeight)}let w=new Set(["inherit","initial","revert","unset","xx-small","x-small","small","medium","large","x-large","xx-large","xxx-large","larger","smaller"]),x={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,"‘":31,"’":31,"“":47,"”":47,"…":82};function $(t,e=0,n=t.length){let r=0;for(let i=e;i<n;i=I(t,i))r+=x[t[i]]??(N(t,i)?120:x.e);return r}function k(t,e=0,n=t.length){let r=0;for(let i=e;i<n;i=I(t,i))r+=N(t,i)?126:63;return r}function M({monospace:t,lineWidth:e,textOverflow:n}){if(null!=n||e==1/0)return t=>t.split(/\r\n?|\n/g);let r=t?k:$,i=100*e;return t=>(function(t,e,n){let r=[],i,o=0;for(let[l,a,u]of function*(t){let e=0,n=0,r=t.length;for(;n<r;){let r=1;switch(t[n]){case"\xad":case"-":++n,yield[e,n,!1],e=n;break;case" ":for(yield[e,n,!1];" "===t[++n];);e=n;break;case"\r":"\n"===t[n+1]&&++r;case"\n":yield[e,n,!0],n+=r,e=n;break;default:++n}}yield[e,n,!0]}(t)){if(void 0===i&&(i=l),o>i&&n(t,i,a)>e&&(r.push(t.slice(i,o)+("\xad"===t[o-1]?"-":"")),i=l),u){r.push(t.slice(i,a)),i=void 0;continue}o=a}return r})(t,i,r)}function E({monospace:t,lineWidth:e,textOverflow:n}){if(null==n||e==1/0)return t=>t;let r=t?k:$,i=100*e;switch(n){case"clip-start":return t=>j(t,i,r,"");case"clip-end":return t=>C(t,i,r,"");case"ellipsis-start":return t=>j(t,i,r,A);case"ellipsis-middle":return t=>(function(t,e,n,r){let i=n(t=t.trim());if(i<=e)return t;let o=n(r)/2,[l,a]=L(t,e/2,n,o),[u]=L(t,i-e/2-a+o,n,-o);return u<0?r:t.slice(0,l).trimEnd()+r+t.slice(I(t,u)).trimStart()})(t,i,r,A);case"ellipsis-end":return t=>C(t,i,r,A)}}let A="…";function L(t,e,n,r){let i=[],o=0;for(let l=0,a=0,u=t.length;l<u;l=a){a=I(t,l);let u=n(t,l,a);if(o+u>e){for(o+=r;o>e&&l>0;)a=l,o-=n(t,l=i.pop(),a);return[l,e-o]}o+=u,i.push(l)}return[-1,0]}function C(t,e,n,r){t=t.trim();let i=n(r),[o]=L(t,e,n,i);return o<0?t:t.slice(0,o).trimEnd()+r}function j(t,e,n,r){let i=n(t=t.trim());if(i<=e)return t;let o=n(r),[l]=L(t,i-e+o,n,-o);return l<0?r:r+t.slice(I(t,l)).trimStart()}let z=/[\p{Combining_Mark}\p{Emoji_Modifier}]+/uy,_=/\p{Extended_Pictographic}/uy;function I(t,e){var n,r;return(e+=!function(t,e){let n=t.charCodeAt(e);if(n>=55296&&n<56320){let n=t.charCodeAt(e+1);return n>=56320&&n<57344}return!1}(t,e)?1:2,!D(t,n=e)&&(z.lastIndex=n,z.test(t))&&(e=z.lastIndex),r=e,8205===t.charCodeAt(r))?I(t,e+1):e}function D(t,e){return 128>t.charCodeAt(e)}function N(t,e){return!D(t,e)&&(_.lastIndex=e,_.test(t))}},1133:function(t,e,n){n.d(e,{C:function(){return g},I:function(){return y}});var r=n(8755),i=n(9238),o=n(1032),l=n(3736),a=n(3786),u=n(4810),c=n(2186),f=n(683),s=n(6243),d=n(5921),h=n(625);let p={ariaLabel:"tip",fill:"var(--plot-background)",stroke:"currentColor"},m=new Set(["geometry","href","src","ariaLabel","scales"]);class g extends c.vc{constructor(t,e={}){e.tip&&(e={...e,tip:!1}),void 0===e.title&&(0,f.TW)(t)&&(0,f.LB)(t)&&(e={...e,title:f.yR});let{x:n,y:r,x1:i,x2:o,y1:l,y2:a,anchor:u,preferredAnchor:c="bottom",monospace:d,fontFamily:m=d?"ui-monospace, monospace":void 0,fontSize:g,fontStyle:y,fontVariant:v,fontWeight:b,lineHeight:w=1,lineWidth:x=20,frameAnchor:$,format:k,textAnchor:M="start",textOverflow:E,textPadding:A=8,title:L,pointerSize:C=12,pathFilter:j="drop-shadow(0 3px 4px rgba(0,0,0,0.2))"}=e;for(let k in super(t,{x:{value:null!=i&&null!=o?null:n,scale:"x",optional:!0},y:{value:null!=l&&null!=a?null:r,scale:"y",optional:!0},x1:{value:i,scale:"x",optional:null==o},y1:{value:l,scale:"y",optional:null==a},x2:{value:o,scale:"x",optional:null==i},y2:{value:a,scale:"y",optional:null==l},title:{value:L,optional:!0}},e,p),this.anchor=(0,f.fR)(u,"anchor"),this.preferredAnchor=(0,f.fR)(c,"preferredAnchor"),this.frameAnchor=(0,f.mV)($),this.textAnchor=(0,s.J4)(M,"middle"),this.textPadding=+A,this.pointerSize=+C,this.pathFilter=(0,f.Z_)(j),this.lineHeight=+w,this.lineWidth=+x,this.textOverflow=(0,h.tl)(E),this.monospace=!!d,this.fontFamily=(0,f.Z_)(m),this.fontSize=(0,f.Rx)(g),this.fontStyle=(0,f.Z_)(y),this.fontVariant=(0,f.Z_)(v),this.fontWeight=(0,f.Z_)(b),p)k in this.channels&&(this[k]=p[k]);this.splitLines=(0,h.vt)(this),this.clipLine=(0,h.Ve)(this),this.format={...k}}render(t,e,n,i,l){let a,c;let f=this,{x:d,y:p,fx:m,fy:g}=e,{ownerSVGElement:y,document:b}=l,{anchor:$,monospace:k,lineHeight:M,lineWidth:E}=this,{textPadding:A,pointerSize:L,pathFilter:C}=this,{marginTop:j,marginLeft:z}=i,{x1:_,y1:I,x2:D,y2:N,x:W=_??D,y:U=I??N}=n,S=m?m(t.fx)-z:0,R=g?g(t.fy)-j:0,[T,O]=(0,s.fs)(this,i),q=(0,u.D7)(n,T),F=(0,u.rt)(n,O),B=k?h.pL:h.g9,Y=B(h.LH);"title"in n?(a=n.channels,c=w):(a=v.call(this,n,e),c=x);let H=(0,o.U)("svg:g",l).call(s.dD,this,i,l).call(h.CW,this).call(s.Ne,this,{x:W&&d,y:U&&p}).call(i=>i.selectAll().data(t).enter().append("g").attr("transform",t=>`translate(${Math.round(q(t))},${Math.round(F(t))})`).call(s.CU,this).call(t=>t.append("path").attr("filter",C)).call(i=>i.append("text").each(function(i){let o=(0,r.Ys)(this);this.setAttribute("fill","currentColor"),this.setAttribute("fill-opacity",1),this.setAttribute("stroke","none");let l=c.call(f,i,t,a,e,n);if("string"==typeof l)for(let t of f.splitLines(l))P(o,{value:f.clipLine(t)});else{let t=new Set;for(let e of l){let{label:n=""}=e;n&&t.has(n)||(t.add(n),P(o,e))}}})));function P(t,{label:e,value:n,color:r,opacity:i}){let o;e??="",n??="";let l=null!=r||null!=i,a=100*E,[u]=(0,h.z7)(e,a,B,Y);if(u>=0)e=e.slice(0,u).trimEnd()+h.LH,o=n.trim(),n="";else{!e&&(n||l)||(n=" "+n);let[t]=(0,h.z7)(n,a-B(e),B,Y);t>=0&&(o=n.trim(),n=n.slice(0,t).trimEnd()+h.LH)}let c=t.append("tspan").attr("x",0).attr("dy",`${M}em`).text("​");e&&c.append("tspan").attr("font-weight","bold").text(e),n&&c.append(()=>b.createTextNode(n)),l&&c.append("tspan").text(" ■").attr("fill",r).attr("fill-opacity",i).style("user-select","none"),o&&c.append("title").text(o)}function Z(){let{width:t,height:e}=i.facet??i;H.selectChildren().each(function(n){var r,i;let{x:o,width:l,height:a}=this.getBBox();l=Math.round(l),a=Math.round(a);let u=$;if(void 0===u){let r=q(n)+S,i=F(n)+R,o=r+l+L+2*A<t,c=r-l-L-2*A>0,s=i+a+L+2*A<e,d=i-a-L-2*A>0;u=o&&c?s&&d?f.preferredAnchor:d?"bottom":"top":s&&d?o?"left":"right":(o||c)&&(s||d)?`${d?"bottom":"top"}-${o?"left":"right"}`:f.preferredAnchor}let c=this.firstChild,s=this.lastChild;if(c.setAttribute("d",function(t,e,n,r,i){let o=r+2*n,l=i+2*n;switch(t){case"middle":return`M${-o/2},${-l/2}h${o}v${l}h${-o}z`;case"top-left":return`M0,0l${e},${e}h${o-e}v${l}h${-o}z`;case"top":return`M0,0l${e/2},${e/2}h${(o-e)/2}v${l}h${-o}v${-l}h${(o-e)/2}z`;case"top-right":return`M0,0l${-e},${e}h${e-o}v${l}h${o}z`;case"right":return`M0,0l${-e/2},${-e/2}v${e/2-l/2}h${-o}v${l}h${o}v${e/2-l/2}z`;case"bottom-left":return`M0,0l${e},${-e}h${o-e}v${-l}h${-o}z`;case"bottom":return`M0,0l${e/2},${-e/2}h${(o-e)/2}v${-l}h${-o}v${l}h${(o-e)/2}z`;case"bottom-right":return`M0,0l${-e},${-e}h${e-o}v${-l}h${o}z`;case"left":return`M0,0l${e/2},${-e/2}v${e/2-l/2}h${o}v${l}h${-o}v${e/2-l/2}z`}}(u,L,A,l,a)),o)for(let t of s.childNodes)t.setAttribute("x",-o);s.setAttribute("y",`${+(r=u,i=s.childNodes.length,/^top(?:-|$)/.test(r)?.94-M:-.29-i*M).toFixed(6)}em`),s.setAttribute("transform",`translate(${function(t,e,n,r,i){switch(t){case"middle":return[-r/2,i/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,i/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,i/2]}}(u,L,A,l,a)})`)}),H.attr("visibility",null)}return t.length&&(H.attr("visibility","hidden"),y.isConnected?Promise.resolve().then(Z):"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(Z)),H.node()}}function y(t,{x:e,y:n,...r}={}){return void 0===r.frameAnchor&&([e,n]=(0,f.NK)(e,n)),new g(t,{...r,x:e,y:n})}function v({channels:t},e){let n={},o=this.format;for(let e in o=b(o,t,"x"),o=b(o,t,"y"),this.format=o,o){let r=o[e];if(null!==r&&!1!==r){if("fx"===e||"fy"===e)n[e]=!0;else{let r=(0,i.b5)(t,e);r&&(n[e]=r)}}}for(let e in t){if(e in n||e in o||m.has(e))continue;let r=(0,i.b5)(t,e);r&&(n[e]=r)}for(let t in!this.facet||(!e.fx||"fx"in o||(n.fx=!0),!e.fy||"fy"in o||(n.fy=!0)),n){let i=this.format[t];if("string"==typeof i){let o=n[t]?.value??e[t]?.domain()??[];this.format[t]=((0,f.IC)(o)?r.g0u:r.WUZ)(i)}else if(void 0===i||!0===i){let n=e[t];this.format[t]=n?.bandwidth?(0,d.No)(n,n.domain()):a.HI}}return n}function b(t,e,n){if(!(n in t))return t;let r=`${n}1`,i=`${n}2`;if((r in t||!(r in e))&&(i in t||!(i in e)))return t;let o=Object.entries(t),l=t[n];return o.splice(o.findIndex(([t])=>t===n)+1,0,[r,l],[i,l]),Object.fromEntries(o)}function w(t,e,{title:n}){return(0,a.HI)(n.value[t],t)}function*x(t,e,n,r,i){for(let o in n){if("fx"===o||"fy"===o){yield{label:M(r,n,o),value:this.format[o](e[o],t)};continue}if("x1"===o&&"x2"in n||"y1"===o&&"y2"in n)continue;let a=n[o];if("x2"===o&&"x1"in n)yield{label:k(r,n,"x"),value:$(this.format.x2,n.x1,a,t)};else if("y2"===o&&"y1"in n)yield{label:k(r,n,"y"),value:$(this.format.y2,n.y1,a,t)};else{let e=a.value[t],u=a.scale;if(!(0,l.ri)(e)&&null==u)continue;yield{label:M(r,n,o),value:this.format[o](e,t),color:"color"===u?i[o][t]:null,opacity:"opacity"===u?i[o][t]:null}}}}function $(t,e,n,r){return n.hint?.length?`${t(n.value[r]-e.value[r],r)}`:`${t(e.value[r],r)}–${t(n.value[r],r)}`}function k(t,e,n){let r=M(t,e,`${n}1`,n),i=M(t,e,`${n}2`,n);return r===i?r:`${r}–${i}`}function M(t,e,n,r=n){let i=e[n],o=t[i?.scale??n];return String(o?.label??i?.label??r)}},1957:function(t,e,n){n.d(e,{E6:function(){return y},OW:function(){return h},Zm:function(){return g},al:function(){return m},xr:function(){return p}});var r=n(8755),i=n(1032),o=n(2186),l=n(683),a=n(6243),u=n(9337);let c={ariaLabel:"vector",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinejoin:"round",strokeLinecap:"round"},f={draw(t,e,n){let r=e*n/17.5;t.moveTo(0,0),t.lineTo(0,-e),t.moveTo(-r,r-e),t.lineTo(0,-e),t.lineTo(r,r-e)}},s={draw(t,e,n){t.moveTo(-n,0),t.lineTo(0,-e),t.lineTo(n,0)}},d=new Map([["arrow",f],["spike",s]]);class h extends o.vc{constructor(t,e={}){let{x:n,y:r,r:i=3.5,length:o,rotate:a,shape:u=f,anchor:s="middle",frameAnchor:h}=e,[p,m]=(0,l.g_)(o,12),[g,y]=(0,l.g_)(a,0);super(t,{x:{value:n,scale:"x",optional:!0},y:{value:r,scale:"y",optional:!0},length:{value:p,scale:"length",optional:!0},rotate:{value:g,optional:!0}},e,c),this.r=+i,this.length=m,this.rotate=y,this.shape=function(t){if(t&&"function"==typeof t.draw)return t;let e=d.get(`${t}`.toLowerCase());if(e)return e;throw Error(`invalid shape: ${t}`)}(u),this.anchor=(0,l.$E)(s,"anchor",["start","middle","end"]),this.frameAnchor=(0,l.mV)(h)}render(t,e,n,o,l){let{x:c,y:f}=e,{x:s,y:d,length:h,rotate:p}=n,{length:m,rotate:g,anchor:y,shape:v,r:b}=this,[w,x]=(0,a.fs)(this,o);return(0,i.U)("svg:g",l).call(a.dD,this,o,l).call(a.Ne,this,{x:s&&c,y:d&&f}).call(e=>e.selectAll().data(t).enter().append("path").call(a.CU,this).attr("transform",(0,u.X)`translate(${s?t=>s[t]:w},${d?t=>d[t]:x})${p?t=>` rotate(${p[t]})`:g?` rotate(${g})`:""}${"start"===y?"":"end"===y?h?t=>` translate(0,${h[t]})`:` translate(0,${m})`:h?t=>` translate(0,${h[t]/2})`:` translate(0,${m/2})`}`).attr("d",h?t=>{let e=(0,r.xKz)();return v.draw(e,h[t],b),e}:(()=>{let t=(0,r.xKz)();return v.draw(t,m,b),t})()).call(a.Cp,this,n)).node()}}function p(t,e={}){let{x:n,y:r,...i}=e;return void 0===e.frameAnchor&&([n,r]=(0,l.NK)(n,r)),new h(t,{...i,x:n,y:r})}function m(t,e={}){let{x:n=l.yR,...r}=e;return new h(t,{...r,x:n})}function g(t,e={}){let{y:n=l.yR,...r}=e;return new h(t,{...r,y:n})}function y(t,e={}){let{shape:n=s,stroke:r=c.stroke,strokeWidth:i=1,fill:o=r,fillOpacity:l=.3,anchor:a="start",...u}=e;return p(t,{...u,shape:n,stroke:r,strokeWidth:i,fill:o,fillOpacity:l,anchor:a})}},6916:function(t,e,n){n.d(e,{u:function(){return r}});let r=Math.PI/180},683:function(t,e,n){n.d(e,{c9:function(){return u},lE:function(){return W},bZ:function(){return z},lh:function(){return j},k8:function(){return L},$Q:function(){return tt},a9:function(){return E},EP:function(){return m},Ps:function(){return $},Du:function(){return R},ho:function(){return O},P2:function(){return T},yR:function(){return y},cq:function(){return g},ED:function(){return tz},D5:function(){return tk},Y4:function(){return Y},N3:function(){return tx},NX:function(){return tf},TW:function(){return tp},Wi:function(){return tA},U_:function(){return tE},kE:function(){return tw},Hv:function(){return tb},Kn:function(){return q},bY:function(){return tM},wq:function(){return B},c$:function(){return tg},ZW:function(){return tL},n3:function(){return F},IC:function(){return ty},sp:function(){return tv},LB:function(){return tm},_l:function(){return tc},IR:function(){return th},mM:function(){return G},$E:function(){return N},Aj:function(){return tn},UI:function(){return U},fR:function(){return tC},e7:function(){return ti},td:function(){return tI},uw:function(){return _},AM:function(){return te},mV:function(){return tj},zE:function(){return Q},yL:function(){return tl},Dr:function(){return to},hU:function(){return D},xk:function(){return t_},RT:function(){return tu},g_:function(){return I},rn:function(){return ta},NK:function(){return P},i:function(){return ts},iJ:function(){return Z},en:function(){return H},Pi:function(){return tr},Rx:function(){return x},Fo:function(){return td},J_:function(){return v},Pe:function(){return A},w6:function(){return V},Qy:function(){return f},E0:function(){return k},ri:function(){return p},tP:function(){return S},Z_:function(){return w},ON:function(){return X},qn:function(){return J},aE:function(){return K},EA:function(){return M},dj:function(){return s},co:function(){return b}});var r=n(8755);let i=/^(?:[-+]\d{2})?\d{4}(?:-\d{2}(?:-\d{2})?)?(?:T\d{2}:\d{2}(?::\d{2}(?:\.\d{3})?)?(?:Z|[-+]\d{2}:?\d{2})?)?$/;function o(t,e){return i.test(t+="")?new Date(t):"function"==typeof e?e(t):e}var l=n(3736),a=n(3330);let u=Object.getPrototypeOf(Uint8Array),c=Object.prototype.toString,f=Symbol("reindex");function s(t,e,n){var r,i;let o=typeof e;return"string"===o?d(t,m(e),n):"function"===o?d(t,e,n):"number"===o||e instanceof Date||"boolean"===o?U(t,E(e),n):"function"==typeof e?.transform?h(e.transform(t),n):(r=h(e,n),(i=t?.[f])?J(r,i):r)}function d(t,e,n){return U(t,n?.prototype instanceof u?(t,n)=>C(e(t,n)):e,n)}function h(t,e){return void 0===e?W(t):t instanceof e?t:e.prototype instanceof u&&!(t instanceof u)?e.from(t,C):e.from(t)}let p=[null],m=t=>e=>e[t],g={transform:V},y={transform:t=>t},v=()=>1,b=()=>!0,w=t=>null==t?t:`${t}`,x=t=>null==t?t:+t,$=t=>t?t[0]:void 0,k=t=>t?t[1]:void 0,M=t=>t?t[2]:void 0,E=t=>()=>t;function A(t){let e=+`${t}`.slice(1)/100;return(t,n)=>(0,r.VRg)(t,e,n)}function L(t){return t instanceof u?t:U(t,C,Float64Array)}function C(t){return null==t?NaN:Number(t)}function j(t){return U(t,z)}function z(t){return t instanceof Date&&!isNaN(t)?t:"string"==typeof t?o(t):null==t||isNaN(t=+t)?void 0:new Date(t)}function _(t,e){return void 0===t&&(t=e),null===t?[void 0,"none"]:tk(t)?[void 0,t]:[t,void 0]}function I(t,e){return void 0===t&&(t=e),null===t||"number"==typeof t?[void 0,t]:[t,void 0]}function D(t,e,n){if(null!=t)return N(t,e,n)}function N(t,e,n){let r=`${t}`.toLowerCase();if(!n.includes(r))throw Error(`invalid ${e}: ${t}`);return r}function W(t){return null==t||t instanceof Array||t instanceof u?t:Array.from(t)}function U(t,e,n=Array){return null==t?t:t instanceof n?t.map(e):n.from(t,e)}function S(t,e=Array){return t instanceof e?t.slice():e.from(t)}function R({x:t,x1:e,x2:n}){return void 0!==t||void 0!==e||void 0!==n}function T({y:t,y1:e,y2:n}){return void 0!==t||void 0!==e||void 0!==n}function O(t){return R(t)||T(t)||void 0!==t.interval}function q(t){return t?.toString===c}function F(t){return q(t)&&(void 0!==t.type||void 0!==t.domain)}function B(t){return q(t)&&"function"!=typeof t.transform}function Y(t){return B(t)&&void 0===t.value&&void 0===t.channel}function H(t,e,n,r=y){return void 0===e&&void 0===n?(e=0,n=void 0===t?r:t):void 0===e?e=void 0===t?0:t:void 0===n&&(n=void 0===t?0:t),[e,n]}function P(t,e){return void 0===t&&void 0===e?[$,k]:[t,e]}function Z({z:t,fill:e,stroke:n}={}){return void 0===t&&([t]=_(e)),void 0===t&&([t]=_(n)),t}function V(t){let e=t.length,n=new Uint32Array(e);for(let t=0;t<e;++t)n[t]=t;return n}function J(t,e){return U(e,e=>t[e],t.constructor)}function K(t){return 1===t.length?(e,n)=>t(J(n,e)):t}function X(t,e,n){return t.subarray?t.subarray(e,n):t.slice(e,n)}function G(t){return null!==t&&"object"==typeof t?t.valueOf():t}function Q(t,e){if(void 0!==e[t])return e[t];switch(t){case"x1":case"x2":t="x";break;case"y1":case"y2":t="y"}return e[t]}function tt(t){let e;return[{transform:()=>e,label:tn(t)},t=>e=t]}function te(t){return null==t?[t]:tt(t)}function tn(t,e){return"string"==typeof t?t:t&&void 0!==t.label?t.label:e}function tr(t,e){return{transform(n){let r=t.transform(n),i=e.transform(n);return ty(r)||ty(i)?U(r,(t,e)=>new Date((+r[e]+ +i[e])/2)):U(r,(t,e)=>(+r[e]+ +i[e])/2,Float64Array)},label:t.label}}function ti(t,e){let n=to(e?.interval,e?.type);return n?U(t,n):t}function to(t,e){let n=tl(t,e);return n&&(t=>(0,l.ri)(t)?n.floor(t):t)}function tl(t,e){if(null!=t){if("number"==typeof t){0<t&&t<1&&Number.isInteger(1/t)&&(t=-1/t);let e=Math.abs(t);return t<0?{floor:t=>Math.floor(t*e)/e,offset:t=>(t*e+1)/e,range:(t,n)=>(0,r.w6H)(Math.ceil(t*e),n*e).map(t=>t/e)}:{floor:t=>Math.floor(t/e)*e,offset:t=>t+e,range:(t,n)=>(0,r.w6H)(Math.ceil(t/e),n/e).map(t=>t*e)}}if("string"==typeof t)return("time"===e?a.lg:a.I4)(t);if("function"!=typeof t.floor)throw Error("invalid interval; missing floor method");if("function"!=typeof t.offset)throw Error("invalid interval; missing offset method");return t}}function ta(t,e){if((t=tl(t,e))&&"function"!=typeof t.range)throw Error("invalid interval: missing range method");return t}function tu(t,e){if((t=ta(t,e))&&"function"!=typeof t.ceil)throw Error("invalid interval: missing ceil method");return t}function tc(t){return tf(t)&&"function"==typeof t?.floor&&t.floor() instanceof Date}function tf(t){return"function"==typeof t?.range}function ts(t){return void 0===t||B(t)?t:{value:t}}function td(t){return null==t?null:{transform:e=>s(e,t,Float64Array),label:tn(t)}}function th(t){if(!tp(t))return!1;for(let e of t)if(null!=e)return"object"==typeof e&&"0"in e&&"1"in e}function tp(t){return t&&"function"==typeof t[Symbol.iterator]}function tm(t){for(let e of t)if(null!=e)return"object"!=typeof e||e instanceof Date}function tg(t){for(let e of t){if(null==e)continue;let t=typeof e;return"string"===t||"boolean"===t}}function ty(t){for(let e of t)if(null!=e)return e instanceof Date}function tv(t){for(let e of t)if(null!=e)return"string"==typeof e&&isNaN(e)&&o(e)}function tb(t){for(let e of t)if(null!=e){if("string"!=typeof e)return!1;if(e.trim())return!isNaN(e)}}function tw(t){for(let e of t)if(null!=e)return"number"==typeof e}function tx(t,e){let n;for(let r of t)if(null!=r){if(!e(r))return!1;n=!0}return n}let t$=new Set("none,currentcolor,transparent,aliceblue,antiquewhite,aqua,aquamarine,azure,beige,bisque,black,blanchedalmond,blue,blueviolet,brown,burlywood,cadetblue,chartreuse,chocolate,coral,cornflowerblue,cornsilk,crimson,cyan,darkblue,darkcyan,darkgoldenrod,darkgray,darkgreen,darkgrey,darkkhaki,darkmagenta,darkolivegreen,darkorange,darkorchid,darkred,darksalmon,darkseagreen,darkslateblue,darkslategray,darkslategrey,darkturquoise,darkviolet,deeppink,deepskyblue,dimgray,dimgrey,dodgerblue,firebrick,floralwhite,forestgreen,fuchsia,gainsboro,ghostwhite,gold,goldenrod,gray,green,greenyellow,grey,honeydew,hotpink,indianred,indigo,ivory,khaki,lavender,lavenderblush,lawngreen,lemonchiffon,lightblue,lightcoral,lightcyan,lightgoldenrodyellow,lightgray,lightgreen,lightgrey,lightpink,lightsalmon,lightseagreen,lightskyblue,lightslategray,lightslategrey,lightsteelblue,lightyellow,lime,limegreen,linen,magenta,maroon,mediumaquamarine,mediumblue,mediumorchid,mediumpurple,mediumseagreen,mediumslateblue,mediumspringgreen,mediumturquoise,mediumvioletred,midnightblue,mintcream,mistyrose,moccasin,navajowhite,navy,oldlace,olive,olivedrab,orange,orangered,orchid,palegoldenrod,palegreen,paleturquoise,palevioletred,papayawhip,peachpuff,peru,pink,plum,powderblue,purple,rebeccapurple,red,rosybrown,royalblue,saddlebrown,salmon,sandybrown,seagreen,seashell,sienna,silver,skyblue,slateblue,slategray,slategrey,snow,springgreen,steelblue,tan,teal,thistle,tomato,turquoise,violet,wheat,white,whitesmoke,yellow".split(","));function tk(t){return"string"==typeof t&&(t=t.toLowerCase().trim(),/^#[0-9a-f]{3,8}$/.test(t)||/^(?:url|var|rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch|color|color-mix)\(.*\)$/.test(t)||t$.has(t))}function tM(t){return"number"==typeof t&&(0<=t&&t<=1||isNaN(t))}function tE(t){return null==t||tA(t)}function tA(t){return/^\s*none\s*$/i.test(t)}function tL(t){return/^\s*round\s*$/i.test(t)}function tC(t,e){return D(t,e,["middle","top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"])}function tj(t="middle"){return tC(t,"frameAnchor")}function tz(t={},...e){let n=t;for(let r of e)for(let e in r)if(void 0===n[e]){let i=r[e];n===t?n={...n,[e]:i}:n[e]=i}return n}function t_(t){return tp(t)?function(t){console.warn("named iterables are deprecated; please use an object instead");let e=new Set;return Object.fromEntries(Array.from(t,t=>{let{name:n}=t;if(null==n)throw Error("missing name");let r=`${n}`;if("__proto__"===r)throw Error(`illegal name: ${r}`);if(e.has(r))throw Error(`duplicate name: ${r}`);return e.add(r),[n,t]}))}(t):t}function tI(t){return!0===t?t="frame":!1===t?t=null:null!=t&&(t=N(t,"clip",["frame","sphere"])),t}},6641:function(t,e,n){n.d(e,{Y:function(){return i}});var r=n(8755);function i(t){if(null==t)return;let e=t[0],n=t[t.length-1];return(0,r.$1i)(e,n)}},1635:function(t,e,n){n.d(e,{g:function(){return x}});var r=n(8755),i=n(9238),o=n(1032),l=n(1838),a=n(9698),u=n(6243);function c(t,e){let n;if(!e)throw Error(`aspectRatio requires ${t} scale`);let{type:i,domain:o}=e;switch(i){case"linear":case"utc":case"time":n=Number;break;case"pow":{let t=e.scale.exponent();n=e=>Math.pow(e,t);break}case"log":n=Math.log;break;case"point":case"band":return o.length;default:throw Error(`unsupported ${t} scale for aspectRatio: ${i}`)}let[l,a]=(0,r.Wem)(o);return Math.abs(n(a)-n(l))}var f=n(2325),s=n(4810),d=n(9684),h=n(2186),p=n(5921),m=n(6294),g=n(1133),y=n(683),v=n(9289),b=n(4883),w=n(5793);function x(t={}){let e,n;let{facet:h,style:m,title:x,subtitle:M,caption:E,ariaLabel:j,ariaDescription:U}=t,S=(0,u.uB)(t.className),R=void 0===t.marks?[]:k(t.marks);R.push(...function(t){let e=[];for(let n of t){let t=n.tip;if(t){!0===t?t={}:"string"==typeof t&&(t={pointer:t});let{pointer:r,preferredAnchor:i}=t;(t=(r=/^x$/i.test(r)?s.TT:/^y$/i.test(r)?s.NF:s.cx)(function(t,e={}){return(0,b.zj)({...e,x:null,y:null},(e,n,r,i,o,l)=>l.getMarkState(t))}(n,t))).title=null,void 0===i&&(t.preferredAnchor=r===s.NF?"left":"bottom");let o=(0,g.I)(n.data,t);o.facet=n.facet,o.facetAnchor=n.facetAnchor,e.push(o)}}return e}(R));let T=function(t,e){if(null==t)return;let{x:n,y:r}=t;if(null==n&&null==r)return;let o=(0,y.lE)(t.data);if(null==o)throw Error("missing facet data");let l={};null!=n&&(l.fx=(0,i.mi)(o,{value:n,scale:"fx"})),null!=r&&(l.fy=(0,i.mi)(o,{value:r,scale:"fy"})),A(l,e);let a=(0,f.Rx)(o,l);return{channels:l,groups:a,data:t.data}}(h,t),O=new Map;for(let e of R){let n=z(e,T,t);n&&O.set(e,n)}let q=new Map;T&&C(q,[T],t),C(q,O,t);let F=k(function(t,e,n){let{projection:r,x:i={},y:o={},fx:l={},fy:a={},axis:u,grid:c,facet:f={},facet:{axis:s=u,grid:d}=f,x:{axis:h=u,grid:m=null===h?null:c}=i,y:{axis:g=u,grid:v=null===g?null:c}=o,fx:{axis:b=s,grid:w=null===b?null:d}=l,fy:{axis:x=s,grid:$=null===x?null:d}=a}=n;!r&&((0,y.n3)(i)||N("x",t))||(h=m=null),!r&&((0,y.n3)(o)||N("y",t))||(g=v=null),e.has("fx")||(b=w=null),e.has("fy")||(x=$=null),void 0===h&&(h=!D(t,"x")),void 0===g&&(g=!D(t,"y")),void 0===b&&(b=!D(t,"fx")),void 0===x&&(x=!D(t,"fy")),!0===h&&(h="bottom"),!0===g&&(g="left"),!0===b&&(b="top"===h||null===h?"bottom":"top"),!0===x&&(x="right"===g||null===g?"left":"right");let k=[];return I(k,$,p.WF,a),_(k,x,p.EK,"right","left",f,a),I(k,w,p.qv,l),_(k,b,p.Nb,"top","bottom",f,l),I(k,v,p.Hh,o),_(k,g,p.Me,"left","right",n,o),I(k,m,p.A,i),_(k,h,p.lU,"bottom","top",n,i),k}(R,q,t));for(let e of F){let n=z(e,T,t);n&&O.set(e,n)}R.unshift(...F);let B=(0,f.al)(q,t);if(void 0!==B){let t=T?(0,f.Rm)(B,T):void 0;for(let e of R){if(null===e.facet||"super"===e.facet)continue;let n=O.get(e);void 0!==n&&(n.facetsIndex=null!=e.fx||null!=e.fy?(0,f.Rm)(B,n):t)}let e=new Set;for(let{facetsIndex:t}of O.values())t?.forEach((t,n)=>{t?.length>0&&e.add(n)});for(let t of(B.forEach(0<e.size&&e.size<B.length?(t,n)=>t.empty=!e.has(n):t=>t.empty=!1),R))if("exclude"===t.facet){let e=O.get(t);void 0!==e&&(e.facetsIndex=(0,f.my)(e.facetsIndex))}}for(let e of v.i_.keys())(0,y.n3)(t[e])&&"fx"!==e&&"fy"!==e&&q.set(e,[]);let Y=new Map;for(let e of R){if(Y.has(e))throw Error("duplicate mark; each mark must be unique");let{facetsIndex:n,channels:r}=O.get(e)??{},{data:i,facets:o,channels:l}=e.initialize(n,r,t);A(l,t),Y.set(e,{data:i,facets:o,channels:l})}let H=(0,a.D5)(C(q,Y,t),t),P=function(t,e,n={}){let r=.5-u.cv,i=.5+u.cv,o=.5+u.cv,f=.5-u.cv;for(let{marginTop:t,marginRight:n,marginBottom:l,marginLeft:a}of e)t>r&&(r=t),n>i&&(i=n),l>o&&(o=l),a>f&&(f=a);let{margin:s,marginTop:d=void 0!==s?s:r,marginRight:h=void 0!==s?s:i,marginBottom:p=void 0!==s?s:o,marginLeft:m=void 0!==s?s:f}=n;d=+d;let{width:g=640,height:y=function({x:t,y:e,fy:n,fx:r},{projection:i,aspectRatio:o},{width:u,marginTopDefault:f,marginRightDefault:s,marginBottomDefault:d,marginLeftDefault:h}){let p=n?n.scale.domain().length:1,m=(0,l.tA)(i);if(m)return Math.round((u-h-s)*Math.max(.1,Math.min(10,(1.1*p-.1)/(1.1*(r?r.scale.domain().length:1)-.1)*m))+f+d);let g=e?(0,a.a3)(e)?e.scale.domain().length:Math.max(7,17/p):1;if(null!=o){if(!(isFinite(o=+o)&&o>0))throw Error(`invalid aspectRatio: ${o}`);let i=c("y",e)/(c("x",t)*o),l=r?r.scale.bandwidth():1,a=n?n.scale.bandwidth():1;return(i*(l*(u-h-s)-t.insetLeft-t.insetRight)+e.insetTop+e.insetBottom)/a+f+d}return!!(e||n)*Math.max(1,Math.min(60,g*p))*20+30*!!r+60}(t,n,{width:g,marginTopDefault:r,marginRightDefault:i,marginBottomDefault:o,marginLeftDefault:f})+Math.max(0,d-r+p-o)}=n,v={width:g=+g,height:y=+y,marginTop:d,marginRight:h=+h,marginBottom:p=+p,marginLeft:m=+m};if(t.fx||t.fy){let{margin:t,marginTop:e=void 0!==t?t:d,marginRight:r=void 0!==t?t:h,marginBottom:i=void 0!==t?t:p,marginLeft:o=void 0!==t?t:m}=n.facet??{};e=+e,r=+r,i=+i,o=+o,v.facet={marginTop:e,marginRight:r,marginBottom:i,marginLeft:o}}return v}(H,R,t);(0,a.Sc)(H,P);let Z=(0,a.RC)(H),{fx:V,fy:J}=Z,K=V||J?(0,a.IB)(H,P):P,X=V||J?function({fx:t,fy:e},n){let{marginTop:r,marginRight:i,marginBottom:o,marginLeft:l,width:u,height:c}=(0,a.Pf)(n),f=t&&W(t),s=e&&W(e);return{marginTop:e?s[0]:r,marginRight:t?u-f[1]:i,marginBottom:e?c-s[1]:o,marginLeft:t?f[0]:l,inset:{marginTop:n.marginTop,marginRight:n.marginRight,marginBottom:n.marginBottom,marginLeft:n.marginLeft},width:u,height:c}}(Z,P):P,G=(0,o.k)(t),Q=G.document,tt=(0,r.DuN)("svg").call(Q.documentElement),te=tt;G.ownerSVGElement=tt,G.className=S,G.projection=(0,l.UQ)(t,K),G.filterFacets=(t,e)=>(0,f.Rm)(B,{channels:e,groups:(0,f.Rx)(t,e)}),G.getMarkState=t=>{let e=Y.get(t),n=O.get(t);return{...e,channels:{...e.channels,...n?.channels}}},G.dispatchValue=t=>{te.value!==t&&(te.value=t,te.dispatchEvent(new Event("input",{bubbles:!0})))};let tn=new Set;for(let[e,n]of Y)if(null!=e.initializer){let r="super"===e.facet?X:K,o=e.initializer(n.data,n.facets,n.channels,Z,r,G);if(void 0!==o.data&&(n.data=o.data),void 0!==o.facets&&(n.facets=o.facets),void 0!==o.channels){let{fx:r,fy:l,...a}=o.channels;for(let e of(function(t){for(let e in t)(0,i.J0)(e,t[e])}(a),Object.assign(n.channels,a),Object.values(a))){let{scale:n}=e;null==n||(0,v.WK)(v.i_.get(n))||(L(e,t),tn.add(n))}(null!=r||null!=l)&&O.set(e,!0)}}if(tn.size){let e=new Map;C(e,Y,t,t=>tn.has(t)),C(q,Y,t,t=>tn.has(t));let n=function(t,e){for(let n in t){let r=t[n],i=e[n];void 0===r.label&&i&&(r.label=i.label)}return t}((0,a.D5)(e,t),H),{scales:r,...i}=(0,a.RC)(n);Object.assign(H,n),Object.assign(Z,i),Object.assign(Z.scales,r)}for(let[t,r]of(void 0!==B&&(e={x:V?.domain(),y:J?.domain()},B=(0,f.Ib)(B,e),n=(0,f.Py)(V,J,P)),Y))r.values=t.scale(r.channels,Z,G);let{width:tr,height:ti}=P;for(let t of((0,r.Ys)(tt).attr("class",S).attr("fill","currentColor").attr("font-family","system-ui, sans-serif").attr("font-size",10).attr("text-anchor","middle").attr("width",tr).attr("height",ti).attr("viewBox",`0 0 ${tr} ${ti}`).attr("aria-label",j).attr("aria-description",U).call(t=>t.append("style").text(`:where(.${S}) {
  --plot-background: white;
  display: block;
  height: auto;
  height: intrinsic;
  max-width: 100%;
}
:where(.${S} text),
:where(.${S} tspan) {
  white-space: pre;
}`)).call(u.jb,m),R)){let{channels:i,values:o,facets:l}=Y.get(t);if(void 0===B||"super"===t.facet){let e=null;if(l&&(e=l[0],0===(e=t.filter(e,i,o)).length))continue;let n=t.render(e,Z,o,X,G);if(null==n)continue;tt.appendChild(n)}else{let a;for(let n of B){if(!(t.facetAnchor?.(B,e,n)??!n.empty))continue;let u=null;if(l){let e=O.has(t);if(u=l[e?n.i:0],0===(u=t.filter(u,i,o)).length)continue;e||u!==l[0]||(u=(0,y.ON)(u)),u.fx=n.x,u.fy=n.y,u.fi=n.i}let c=t.render(u,Z,o,K,G);if(null!=c)for(let t of((a??=(0,r.Ys)(tt).append("g")).append(()=>c).datum(n),["aria-label","aria-description","aria-hidden","transform"]))c.hasAttribute(t)&&(a.attr(t,c.getAttribute(t)),c.removeAttribute(t))}a?.selectChildren().attr("transform",n)}}let to=(0,d.hg)(H,G,t),{figure:tl=null!=x||null!=M||null!=E||to.length>0}=t;tl&&((te=Q.createElement("figure")).className=`${S}-figure`,te.style.maxWidth="initial",null!=x&&te.append($(Q,x,"h2")),null!=M&&te.append($(Q,M,"h3")),te.append(...to,tt),null!=E&&te.append(function(t,e){let n=t.createElement("figcaption");return n.append(e),n}(Q,E))),te.scale=(0,a.wg)(Z.scales),te.legend=(0,d.SR)(H,G,t);let ta=(0,w.b)();return ta>0&&(0,r.Ys)(tt).append("text").attr("x",tr).attr("y",20).attr("dy","-1em").attr("text-anchor","end").attr("font-family","initial").text("⚠️").append("title").text(`${ta.toLocaleString("en-US")} warning${1===ta?"":"s"}. Please check the console.`),te}function $(t,e,n){if(e.ownerDocument)return e;let r=t.createElement(n);return r.append(e),r}function k(t){return t.flat(1/0).filter(t=>null!=t).map(M)}function M(t){return"function"==typeof t.render?t:new E(t)}h.vc.prototype.plot=function({marks:t=[],...e}={}){return x({...e,marks:[...t,this]})};class E extends h.vc{constructor(t){if("function"!=typeof t)throw TypeError("invalid mark; missing render function");super(),this.render=t}render(){}}function A(t,e){for(let n in t)L(t[n],e);return t}function L(t,e){let{scale:n,transform:r=!0}=t;if(null==n||!r)return;let{type:i,percent:o,interval:l,transform:a=o?t=>100*t:(0,y.Dr)(l,i)}=e[n]??{};null!=a&&(t.value=(0,y.UI)(t.value,a),t.transform=!1)}function C(t,e,n,r=y.co){for(let{channels:i}of e.values())for(let e in i){let o=i[e],{scale:a}=o;if(null!=a&&r(a)){if("projection"===a){if(!(0,l.Do)(n)){let e=n.x?.domain===void 0,r=n.y?.domain===void 0;if(e||r){let[n,i]=(0,l.Kx)(o);e&&j(t,"x",n),r&&j(t,"y",i)}}}else j(t,a,o)}}return t}function j(t,e,n){let r=t.get(e);void 0!==r?r.push(n):t.set(e,[n])}function z(t,e,n){if(null===t.facet||"super"===t.facet)return;let{fx:r,fy:o}=t;if(null!=r||null!=o){let e=(0,y.lE)(t.data??r??o);if(void 0===e)throw Error(`missing facet data in ${t.ariaLabel}`);if(null===e)return;let l={};return null!=r&&(l.fx=(0,i.mi)(e,{value:r,scale:"fx"})),null!=o&&(l.fy=(0,i.mi)(e,{value:o,scale:"fy"})),A(l,n),{channels:l,groups:(0,f.Rx)(e,l)}}if(void 0===e)return;let{channels:l,groups:a,data:u}=e;if("auto"!==t.facet||t.data===u)return{channels:l,groups:a};u.length>0&&(a.size>1||1===a.size&&l.fx&&l.fy&&[...a][0][1].size>1)&&y.lE(t.data)?.length===u.length&&(0,w.Z)(`Warning: the ${t.ariaLabel} mark appears to use faceted data, but isn’t 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 _(t,e,n,r,i,o,l){if(!e)return;let a=/^\s*both\s*$/i.test(e),{line:u}=l=function(t,e,{line:n=e.line,ticks:r,tickSize:i,tickSpacing:o,tickPadding:l,tickFormat:a,tickRotate:u,fontVariant:c,ariaLabel:f,ariaDescription:s,label:d=e.label,labelAnchor:h,labelArrow:p=e.labelArrow,labelOffset:m}){return{anchor:t,line:n,ticks:r,tickSize:i,tickSpacing:o,tickPadding:l,tickFormat:a,tickRotate:u,fontVariant:c,ariaLabel:f,ariaDescription:s,label:d,labelAnchor:h,labelArrow:p,labelOffset:m}}(a?r:e,o,l);(n===p.Me||n===p.lU)&&u&&!(0,y.Wi)(u)&&t.push((0,m.W)(function(t){let{anchor:e,line:n}=t;return{anchor:e,facetAnchor:e+"-empty",stroke:!0===n?void 0:n}}(l))),t.push(n(l)),a&&t.push(n({...l,anchor:i,label:null}))}function I(t,e,n,r){!e||(0,y.Wi)(e)||t.push(n(function(t,{stroke:e=(0,y.D5)(t)?t:void 0,ticks:n=!function(t){switch(typeof t){case"number":return!0;case"string":return!(0,y.D5)(t)}return(0,y.TW)(t)||"function"==typeof t?.range}(t)?void 0:t,tickSpacing:r,ariaLabel:i,ariaDescription:o}){return{stroke:e,ticks:n,tickSpacing:r,ariaLabel:i,ariaDescription:o}}(e,r)))}function D(t,e){let n=`${e}-axis `;return t.some(t=>t.ariaLabel?.startsWith(n))}function N(t,e){for(let n of e)for(let e in n.channels){let{scale:r}=n.channels[e];if(r===t||"projection"===r)return!0}return!1}function W(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()]}},1838:function(t,e,n){n.d(e,{Do:function(){return g},Kx:function(){return b},Q9:function(){return v},UQ:function(){return c},iV:function(){return m},tA:function(){return y}});var r=n(8755),i=n(9238),o=n(683),l=n(5793);let a=Math.PI,u=2*a;function c({projection:t,inset:e=0,insetTop:n=e,insetRight:i=e,insetBottom:a=e,insetLeft:u=e}={},c){let s,d,p;if(null==t)return;if("function"==typeof t.stream)return t;let m="frame";if((0,o.Kn)(t)){let e;if({type:t,domain:d,inset:e,insetTop:n=undefined!==e?e:n,insetRight:i=undefined!==e?e:i,insetBottom:a=undefined!==e?e:a,insetLeft:u=undefined!==e?e:u,clip:m=m,...s}=t,null==t)return}"function"!=typeof t&&({type:t}=f(t));let{width:g,height:y,marginLeft:v,marginRight:b,marginTop:w,marginBottom:x}=c,$=g-v-b-u-i,k=y-w-x-n-a;if(null==(t=t?.({width:$,height:k,clip:m,...s})))return;m=function(t,e,n,i,o){if(!1===t||null==t||"number"==typeof t)return t=>t;if(!0===t&&(t="frame"),"frame"===`${t}`.toLowerCase())return(0,r.LFO)(e,n,i,o);throw Error(`unknown projection clip type: ${t}`)}(m,v,w,g-b,y-x);let M=v+u,E=w+n;if(null!=d){let[[e,n],[i,o]]=(0,r.l49)(t).bounds(d),a=Math.min($/(i-e),k/(o-n));a>0?(M-=(a*(e+i)-$)/2,E-=(a*(n+o)-k)/2,p=(0,r.jDJ)({point(t,e){this.stream.point(t*a+M,e*a+E)}})):(0,l.Z)("Warning: the projection could not be fit to the specified domain; using the default scale.")}return p??=0===M&&0===E?h():(0,r.jDJ)({point(t,e){this.stream.point(t+M,e+E)}}),{stream:e=>t.stream(p.stream(m(e)))}}function f(t){switch(`${t}`.toLowerCase()){case"albers-usa":return s(r.wk1,.7463,.4673);case"albers":return d(r.FWi,.7463,.4673);case"azimuthal-equal-area":return s(r.RfZ,4,4);case"azimuthal-equidistant":return s(r.aMF,u,u);case"conic-conformal":return d(r.tJK,u,u);case"conic-equal-area":return d(r.ETF,6.1702,2.9781);case"conic-equidistant":return d(r.ahy,7.312,3.6282);case"equal-earth":return s(r.bft,5.4133,2.6347);case"equirectangular":return s(r.ESh,u,a);case"gnomonic":return s(r.Bqu,3.4641,3.4641);case"identity":return{type:h};case"reflect-y":return{type:p};case"mercator":return s(r.mw4,u,u);case"orthographic":return s(r.WvA,2,2);case"stereographic":return s(r.knt,2,2);case"transverse-mercator":return s(r.Ili,u,u);default:throw Error(`unknown projection type: ${t}`)}}function s(t,e,n){return{type:({width:r,height:i,rotate:o,precision:l=.15,clip:a})=>{let u=t();return null!=l&&u.precision?.(l),null!=o&&u.rotate?.(o),"number"==typeof a&&u.clipAngle?.(a),u.scale(Math.min(r/e,i/n)),u.translate([r/2,i/2]),u},aspectRatio:n/e}}function d(t,e,n){let{type:r,aspectRatio:i}=s(t,e,n);return{type:t=>{let{parallels:e,domain:n,width:i,height:o}=t,l=r(t);return null!=e&&(l.parallels(e),void 0===n&&l.fitSize([i,o],{type:"Sphere"})),l},aspectRatio:i}}let h=(0,o.a9)({stream:t=>t}),p=(0,o.a9)((0,r.jDJ)({point(t,e){this.stream.point(t,-e)}}));function m(t,e,n,r){let i;let o=n[t],l=n[e],a=o.length,u=n[t]=new Float64Array(a).fill(NaN),c=n[e]=new Float64Array(a).fill(NaN),f=r.stream({point(t,e){u[i]=t,c[i]=e}});for(i=0;i<a;++i)f.point(o[i],l[i])}function g({projection:t}={}){return null!=t&&("function"==typeof t.stream||((0,o.Kn)(t)&&(t=t.type),null!=t))}function y(t){if("function"==typeof t?.stream)return .618;if((0,o.Kn)(t)&&(t=t.type),null!=t){if("function"!=typeof t){let{aspectRatio:e}=f(t);if(e)return e}return .618}}function v(t,e,{projection:n}){let{x:r,y:l}=t,a={};return r&&(a.x=r),l&&(a.y=l),a=(0,i.iy)(a,e),n&&r?.scale==="x"&&l?.scale==="y"&&m("x","y",a,n),r&&(a.x=(0,o.k8)(a.x)),l&&(a.y=(0,o.k8)(a.y)),a}function b(t){let e=[],n=[],i={point(t,r){e.push(t),n.push(r)},lineStart(){},lineEnd(){},polygonStart(){},polygonEnd(){},sphere(){}};for(let e of t.value)(0,r.HZh)(e,i);return[{scale:"x",value:e},{scale:"y",value:n}]}},9698:function(t,e,n){n.d(e,{Sc:function(){return M},RC:function(){return k},D5:function(){return $},wg:function(){return Y},uu:function(){return E},IB:function(){return L},zb:function(){return O},a3:function(){return R},dj:function(){return T},Mz:function(){return I},Pf:function(){return A},bA:function(){return B}});var r=n(683),i=n(6641),o=n(9289),l=n(7354),a=n(8755),u=n(3736),c=n(5793),f=n(3911);function s(t,e,n,i,{type:u,nice:s,clamp:d,domain:h=(0,l.ip)(i),unknown:p,pivot:m=0,scheme:g,range:y,symmetric:v=!0,interpolate:b=o.i_.get(t)===o.$_?null==g&&void 0!==y?a.LX0:(0,f.Dp)(void 0!==g?g:"rdbu"):a.k46,reverse:w}){m=+m;let[x,$]=h=(0,r.lE)(h);if(h.length>2&&(0,c.Z)(`Warning: the diverging ${t} scale domain contains extra elements.`),0>(0,a.$1i)(x,$)&&([x,$]=[$,x],w=!w),x=Math.min(x,m),$=Math.max($,m),"function"!=typeof b&&(b=(0,l.LF)(b)),void 0!==y&&(b=1===b.length?(0,l.LG)(b)(...y):(0,a.sOJ)(b,y)),w&&(b=(0,l.RR)(b)),v){let t=n.apply(m),e=t-n.apply(x),r=n.apply($)-t;e<r?x=n.invert(t-r):e>r&&($=n.invert(t+e))}return e.domain([x,m,$]).unknown(p).interpolator(b),d&&e.clamp(d),s&&e.nice(s),{type:u,domain:[x,$],pivot:m,interpolate:b,scale:e}}function d(t,e,{exponent:n=1,...r}){var i;return s(t,(0,a.dKC)().exponent(n=+n),.5===(i=n)?m:{apply:t=>Math.sign(t)*Math.pow(Math.abs(t),i),invert:t=>Math.sign(t)*Math.pow(Math.abs(t),1/i)},e,{...r,type:"diverging-pow"})}let h={apply:t=>t,invert:t=>t},p={apply:Math.log,invert:Math.exp},m={apply:t=>Math.sign(t)*Math.sqrt(Math.abs(t)),invert:t=>t*t*Math.sign(t)};var g=n(7982);let y=Symbol("ordinal");function v(t,e,n,{type:i,interval:o,domain:l,range:u,reverse:c,hint:f}){return o=(0,r.rn)(o,i),void 0===l&&(l=w(n,o,t)),("categorical"===i||i===y)&&(i="ordinal"),c&&(l=(0,a.GYS)(l)),l=e.domain(l).domain(),void 0!==u&&("function"==typeof u&&(u=u(l)),e.range(u)),{type:i,domain:l,range:u,scale:e,hint:f,interval:o}}function b(t,e,n,r){let{round:i}=n;return void 0!==i&&t.round(i=!!i),(t=v(r,t,e,n)).round=i,t}function w(t,e,n){let r=new a.H0G;for(let{value:e,domain:n}of t){if(void 0!==n)return n();if(void 0!==e)for(let t of e)r.add(t)}if(void 0!==e){let[t,n]=(0,a.Wem)(r).map(e.floor,e);return e.range(t,e.offset(n))}if(r.size>1e4&&o.i_.get(n)===o.FK)throw Error(`implicit ordinal domain of ${n} scale has more than 10,000 values`);return(0,a.DYV)(r,u.Wv)}function x(t,e){let n;for(let{hint:r}of t){let t=r?.[e];if(void 0!==t){if(void 0===n)n=t;else if(n!==t)return}}return n}function $(t,{label:e,inset:n=0,insetTop:r=n,insetRight:i=n,insetBottom:l=n,insetLeft:a=n,round:u,nice:c,clamp:f,zero:s,align:d,padding:h,projection:p,facet:{label:m=e}={},...g}={}){let y={};for(let[n,v]of t){let t=g[n],b=D(n,v,{round:o.i_.get(n)===o.FK?u:void 0,nice:c,clamp:f,zero:s,align:d,padding:h,projection:p,...t});if(b){let{label:o="fx"===n||"fy"===n?m:e,percent:u,transform:c,inset:f,insetTop:s=void 0!==f?f:"y"===n?r:0,insetRight:d=void 0!==f?f:"x"===n?i:0,insetBottom:h=void 0!==f?f:"y"===n?l:0,insetLeft:p=void 0!==f?f:"x"===n?a:0}=t||{};if(null==c)c=void 0;else if("function"!=typeof c)throw Error("invalid scale transform; not a function");b.percent=!!u,b.label=void 0===o?function(t=[],e){let n;for(let{label:e}of t)if(void 0!==e){if(void 0===n)n=e;else if(n!==e)return}if(void 0!==n)return!R(e)&&e.percent&&(n=`${n} (%)`),{inferred:!0,toString:()=>n}}(v,b):o,b.transform=c,"x"===n||"fx"===n?(b.insetLeft=+p,b.insetRight=+d):("y"===n||"fy"===n)&&(b.insetTop=+s,b.insetBottom=+h),y[n]=b}}return y}function k(t){let e={},n={scales:e};for(let[r,i]of Object.entries(t)){let{scale:t,type:o,interval:l,label:a}=i;e[r]=H(i),n[r]=t,t.type=o,null!=l&&(t.interval=l),null!=a&&(t.label=a)}return n}function M(t,e){let{x:n,y:r,fx:i,fy:o}=t,l=i||o?A(e):e;i&&C(i,l),o&&j(o,l);let a=i||o?L(t,e):e;n&&C(n,a),r&&j(r,a)}function E(t){return Math.sign((0,i.Y)(t.domain()))*Math.sign((0,i.Y)(t.range()))}function A(t){let{marginTop:e,marginRight:n,marginBottom:r,marginLeft:i,width:o,height:l,facet:{marginTop:a,marginRight:u,marginBottom:c,marginLeft:f}}=t;return{marginTop:Math.max(e,a),marginRight:Math.max(n,u),marginBottom:Math.max(r,c),marginLeft:Math.max(i,f),width:o,height:l}}function L({fx:t,fy:e},n){let{marginTop:r,marginRight:i,marginBottom:o,marginLeft:l,width:a,height:u}=A(n);return{marginTop:r,marginRight:i,marginBottom:o,marginLeft:l,width:t?t.scale.bandwidth()+l+i:a,height:e?e.scale.bandwidth()+r+o:u,facet:{width:a,height:u}}}function C(t,e){if(void 0===t.range){let{insetLeft:n,insetRight:r}=t,{width:i,marginLeft:o=0,marginRight:l=0}=e,a=o+n;t.range=[a,Math.max(a,i-l-r)],R(t)||(t.range=_(t)),t.scale.range(t.range)}z(t)}function j(t,e){if(void 0===t.range){let{insetTop:n,insetBottom:r}=t,{height:i,marginTop:o=0,marginBottom:l=0}=e,a=o+n;t.range=[Math.max(a,i-l-r),a],R(t)?t.range.reverse():t.range=_(t),t.scale.range(t.range)}z(t)}function z(t){void 0===t.round&&function({type:t}){return"point"===t||"band"===t}(t)&&30>=function({scale:t}){let e=t.domain().length,[n,r]=t.range(),i=t.paddingInner?t.paddingInner():1,o=t.paddingOuter?t.paddingOuter():t.padding(),l=e-i,a=Math.abs(r-n)/Math.max(1,l+2*o);return(a-Math.floor(a))*l}(t)&&t.scale.round(!0)}function _(t){let e=t.scale.domain().length+T(t);if(!(e>2))return t.range;let[n,r]=t.range;return Array.from({length:e},(t,i)=>n+i/(e-1)*(r-n))}function I(t,e,n){return D(t,void 0===n?void 0:[{hint:n}],{...e})}function D(t,e=[],n={}){var i,m,$,k,M;let E=function(t,e,{type:n,domain:i,range:l,scheme:a,pivot:u,projection:c}){if(n=W(n),"fx"===t||"fy"===t)return"band";for(let r of(("x"===t||"y"===t)&&null!=c&&(n=U),e)){let t=W(r.type);if(void 0!==t){if(void 0===n)n=t;else if(n!==t)throw Error(`scale incompatible with channel: ${n} !== ${t}`)}}if(n===U)return;if(void 0!==n)return n;if(void 0===i&&!e.some(({value:t})=>void 0!==t))return;let s=o.i_.get(t);if(s===o.q0)return"sqrt";if(s===o.Oh||s===o.kE)return"linear";if(s===o.NA)return"ordinal";if((i||l||[]).length>2)return S(s);if(void 0!==i){if((0,r.c$)(i))return S(s);if((0,r.IC)(i))return"utc"}else{let t=e.map(({value:t})=>t).filter(t=>void 0!==t);if(t.some(r.c$))return S(s);if(t.some(r.IC))return"utc"}if(s===o.$_){if(null!=u||(0,f.OD)(a))return"diverging";if((0,f.rO)(a))return"categorical"}return"linear"}(t,e,n);if(void 0===n.type&&void 0===n.domain&&void 0===n.range&&null==n.interval&&"fx"!==t&&"fy"!==t&&R({type:E})){let n=e.map(({value:t})=>t).filter(t=>void 0!==t);n.some(r.IC)?(0,c.Z)(`Warning: some data associated with the ${t} scale are dates. Dates are typically associated with a "utc" or "time" scale rather than a "${N(E)}" 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 "${N(E)}".`):n.some(r.sp)?(0,c.Z)(`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 "${N(E)}" 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 "${N(E)}".`):n.some(r.Hv)&&(0,c.Z)(`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 "${N(E)}" 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 "${N(E)}".`)}switch(n.type=E,E){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=q(e,n,r.k8);break;case"identity":switch(o.i_.get(t)){case o.FK:n=q(e,n,r.k8);break;case o.NA:n=q(e,n,F)}break;case"utc":case"time":n=q(e,n,r.lh)}switch(E){case"diverging":return i=n,s(t,(0,a.ABA)(),h,e,i);case"diverging-sqrt":return d(t,e,{...n,exponent:.5});case"diverging-pow":return d(t,e,n);case"diverging-log":return function(t,e,{base:n=10,pivot:r=1,domain:i=(0,l.ip)(e,r<0?u.pd:u.i1),...o}){return s(t,(0,a.WrP)().base(n=+n),p,e,{domain:i,pivot:r,...o})}(t,e,n);case"diverging-symlog":return function(t,e,{constant:n=1,...r}){var i;return s(t,(0,a.b4L)().constant(n=+n),(i=n,{apply:t=>Math.sign(t)*Math.log1p(Math.abs(t/i)),invert:t=>Math.sign(t)*Math.expm1(Math.abs(t))*i}),e,r)}(t,e,n);case"categorical":case"ordinal":case y:return function(t,e,{type:n,interval:i,domain:l,range:u,scheme:c,unknown:s,...d}){let h;if(i=(0,r.rn)(i,n),void 0===l&&(l=w(e,i,t)),o.i_.get(t)===o.NA){var p;h={fill:x(e,"fill"),stroke:x(e,"stroke")},u=void 0===u?(p=h,(0,r.U_)(p.fill)?a.WY2:a.Hlc):(0,r.UI)(u,g.sr)}else if(o.i_.get(t)===o.$_&&(void 0===u&&("ordinal"===n||n===y)&&void 0!==(u=(0,f.wr)(l,c))&&(c=void 0),void 0===c&&void 0===u&&(c="ordinal"===n?"turbo":"observable10"),void 0!==c)){if(void 0!==u){let t=(0,f.Dp)(c),e=u[0],n=u[1]-u[0];u=({length:r})=>(0,a.q$2)(r=>t(e+n*r),r)}else u=(0,f.TI)(c)}if(s===a.qmc)throw Error(`implicit unknown on ${t} scale is not supported`);return v(t,(0,a.PKp)().unknown(s),e,{...d,type:n,domain:l,range:u,hint:h})}(t,e,n);case"cyclical":case"sequential":case"linear":return(0,l.Py)(t,e,n);case"sqrt":return(0,l.JI)(t,e,n);case"threshold":return(0,l.x6)(t,e,n);case"quantile":return(0,l.hv)(t,e,n);case"quantize":return(0,l.bm)(t,e,n);case"pow":return(0,l.vv)(t,e,n);case"log":return(0,l.eG)(t,e,n);case"symlog":return(0,l.jz)(t,e,n);case"utc":return m=n,$=(0,a.KYF)(),(0,l.GX)(t,$,e,m);case"time":return k=n,M=(0,a.Xf)(),(0,l.GX)(t,M,e,k);case"point":return function(t,e,{align:n=.5,padding:r=.5,...i}){return b((0,a.q2y)().align(n).padding(r),e,i,t)}(t,e,n);case"band":return function(t,e,{align:n=.5,padding:r=.1,paddingInner:i=r,paddingOuter:o="fx"===t||"fy"===t?0:r,...l}){return b((0,a.tiA)().align(n).paddingInner(i).paddingOuter(o),e,l,t)}(t,e,n);case"identity":return(0,l.As)(t);case void 0:return;default:throw Error(`unknown scale type: ${E}`)}}function N(t){return"symbol"==typeof t?t.description:t}function W(t){return"string"==typeof t?`${t}`.toLowerCase():t}let U={toString:()=>"projection"};function S(t){switch(t){case o.FK:return"point";case o.$_:return y;default:return"ordinal"}}function R({type:t}){return"ordinal"===t||"point"===t||"band"===t||t===y}function T({type:t}){return"threshold"===t}function O(t){if(void 0===t)return!0;let e=t.domain(),n=t(e[0]);for(let r=1,i=e.length;r<i;++r)if(t(e[r])-n)return!1;return!0}function q(t,{domain:e,...n},r){for(let n of t)void 0!==n.value&&(void 0===e&&(e=n.value?.domain),n.value=r(n.value));return{domain:void 0===e?e:r(e),...n}}function F(t){return(0,r.UI)(t,g.sr)}function B(t={}){let e;for(let n in t)if(o.i_.has(n)&&(0,r.n3)(t[n])){if(void 0!==e)throw Error("ambiguous scale definition; multiple scales found");e=H(I(n,t[n]))}if(void 0===e)throw Error("invalid scale definition; no scale found");return e}function Y(t){return e=>{if(!o.i_.has(e=`${e}`))throw Error(`unknown scale: ${e}`);return t[e]}}function H({scale:t,type:e,domain:n,range:i,interpolate:o,interval:l,transform:a,percent:u,pivot:c}){if("identity"===e)return{type:"identity",apply:t=>t,invert:t=>t};let f=t.unknown?t.unknown():void 0;return{type:e,domain:(0,r.tP)(n),...void 0!==i&&{range:(0,r.tP)(i)},...void 0!==a&&{transform:a},...u&&{percent:u},...void 0!==f&&{unknown:f},...void 0!==l&&{interval:l},...void 0!==o&&{interpolate:o},...t.clamp&&{clamp:t.clamp()},...void 0!==c&&{pivot:c,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:e=>t(e),...t.invert&&{invert:e=>t.invert(e)}}}},9289:function(t,e,n){n.d(e,{$_:function(){return i},FK:function(){return r},NA:function(){return u},Oh:function(){return a},WK:function(){return s},i_:function(){return f},kE:function(){return l},q0:function(){return o},ur:function(){return d}});let r=Symbol("position"),i=Symbol("color"),o=Symbol("radius"),l=Symbol("length"),a=Symbol("opacity"),u=Symbol("symbol"),c=Symbol("projection"),f=new Map([["x",r],["y",r],["fx",r],["fy",r],["r",o],["color",i],["opacity",a],["symbol",u],["length",l],["projection",c]]);function s(t){return t===r||t===c}function d(t){return t===r||t===o||t===l||t===a}},7354:function(t,e,n){n.d(e,{As:function(){return $},GX:function(){return h},JI:function(){return m},LF:function(){return d},LG:function(){return E},Py:function(){return p},RR:function(){return c},bm:function(){return w},eG:function(){return y},hv:function(){return b},ip:function(){return k},jz:function(){return v},vv:function(){return g},x6:function(){return x}});var r=n(8755),i=n(3736),o=n(683),l=n(6641),a=n(9289),u=n(3911);let c=t=>e=>t(1-e),f=[0,1],s=new Map([["number",r.k46],["rgb",r.LX0],["hsl",r.USs],["hcl",r.JHv],["lab",r.uUj]]);function d(t){let e=`${t}`.toLowerCase();if(!s.has(e))throw Error(`unknown interpolator: ${e}`);return s.get(e)}function h(t,e,n,{type:s,nice:h,clamp:p,zero:m,domain:g=M(t,n),unknown:y,round:v,scheme:b,interval:w,range:x=a.i_.get(t)===a.q0?function(t,e){let n=t.find(({radius:t})=>void 0!==t);if(void 0!==n)return[0,n.radius];let o=(0,r.VRg)(t,.5,({value:t})=>void 0===t?NaN:(0,r.VRg)(t,.25,i.i1)),l=e.map(t=>3*Math.sqrt(t/o)),a=30/(0,r.Fp7)(l);return a<1?l.map(t=>t*a):l}(n,g):a.i_.get(t)===a.kE?function(t,e){let n=(0,r.C2o)(t,({value:t})=>void 0===t?NaN:(0,r.C2o)(t,Math.abs)),i=e.map(t=>12*t/n),o=60/(0,r.Fp7)(i);return o<1?i.map(t=>t*o):i}(n,g):a.i_.get(t)===a.Oh?f:void 0,interpolate:$=a.i_.get(t)===a.$_?null==b&&void 0!==x?r.LX0:(0,u.Dp)(void 0!==b?b:"cyclical"===s?"rainbow":"turbo"):v?r.uLU:r.k46,reverse:k}){var A;if(w=(0,o.rn)(w,s),("cyclical"===s||"sequential"===s)&&(s="linear"),"function"!=typeof $&&($=d($)),k=!!k,void 0!==x&&(g=(0,o.lE)(g)).length!==(x=(0,o.lE)(x)).length){if(1===$.length)throw Error("invalid piecewise interpolator");$=(0,r.sOJ)($,x),x=void 0}if(1===$.length?(k&&($=c($),k=!1),void 0===x&&2===(x=Float64Array.from(g,(t,e)=>e/(g.length-1))).length&&(x=f),e.interpolate((x===f?o.a9:E)($))):e.interpolate($),m){let[t,e]=(0,r.Wem)(g);(t>0||e<0)&&(g=(0,o.tP)(g),(0,l.Y)(g)!==Math.sign(t)?g[g.length-1]=0:g[0]=0)}return k&&(g=(0,r.GYS)(g)),e.domain(g).unknown(y),h&&(e.nice((A=s,!0===h?void 0:"number"==typeof h?h:(0,o.RT)(h,A))),g=e.domain()),void 0!==x&&e.range(x),p&&e.clamp(p),{type:s,domain:g,range:x,scale:e,interpolate:$,interval:w}}function p(t,e,n){return h(t,(0,r.BYU)(),e,n)}function m(t,e,n){return g(t,e,{...n,exponent:.5})}function g(t,e,{exponent:n=1,...i}){return h(t,(0,r.vY$)().exponent(n),e,{...i,type:"pow"})}function y(t,e,{base:n=10,domain:o=function(t){for(let{value:e}of t)if(void 0!==e)for(let n of e){if(n>0)return k(t,i.i1);if(n<0)return k(t,i.pd)}return[1,10]}(e),...l}){return h(t,(0,r.p2C)().base(n),e,{...l,domain:o})}function v(t,e,{constant:n=1,...i}){return h(t,(0,r.eh9)().constant(n),e,i)}function b(t,e,{range:n,quantiles:i=void 0===n?5:(n=[...n]).length,n:o=i,scheme:l="rdylbu",domain:c=function(t){let e=[];for(let{value:n}of t)if(void 0!==n)for(let t of n)e.push(t);return e}(e),unknown:f,interpolate:s,reverse:d}){return void 0===n&&(n=void 0!==s?(0,r.q$2)(s,o):a.i_.get(t)===a.$_?(0,u.B_)(l,o):void 0),c.length>0&&(c=(0,r.FTZ)(c,void 0===n?{length:o}:n).quantiles()),x(t,e,{domain:c,range:n,reverse:d,unknown:f})}function w(t,e,{range:n,n:i=void 0===n?5:(n=[...n]).length,scheme:c="rdylbu",domain:f=M(t,e),unknown:s,interpolate:d,reverse:h}){let p;let[m,g]=(0,r.Wem)(f);return void 0===n?((p=(0,r.sdl)(m,g,i))[0]<=m&&p.splice(0,1),p[p.length-1]>=g&&p.pop(),i=p.length+1,n=void 0!==d?(0,r.q$2)(d,i):a.i_.get(t)===a.$_?(0,u.B_)(c,i):void 0):(p=(0,r.q$2)((0,r.k46)(m,g),i+1).slice(1,-1),m instanceof Date&&(p=p.map(t=>new Date(t)))),0>(0,l.Y)((0,o.lE)(f))&&p.reverse(),x(t,e,{domain:p,range:n,reverse:h,unknown:s})}function x(t,e,{domain:n=[0],unknown:i,scheme:c="rdylbu",interpolate:f,range:s=void 0!==f?(0,r.q$2)(f,n.length+1):a.i_.get(t)===a.$_?(0,u.B_)(c,n.length+1):void 0,reverse:d}){n=(0,o.lE)(n);let h=(0,l.Y)(n);if(!isNaN(h)&&!function(t,e){for(let n=1,i=t.length,o=t[0];n<i;++n){let i=(0,r.$1i)(o,o=t[n]);if(0!==i&&i!==e)return!1}return!0}(n,h))throw Error(`the ${t} scale has a non-monotonic domain`);return d&&(s=(0,r.GYS)(s)),{type:"threshold",scale:(0,r.ut0)(h<0?(0,r.GYS)(n):n,void 0===s?[]:s).unknown(i),domain:n,range:s}}function $(t){return{type:"identity",scale:(0,a.ur)(a.i_.get(t))?(0,r.ezW)():t=>t}}function k(t,e=i.yx){return t.length?[(0,r.VV$)(t,({value:t})=>void 0===t?t:(0,r.VV$)(t,e)),(0,r.Fp7)(t,({value:t})=>void 0===t?t:(0,r.Fp7)(t,e))]:[0,1]}function M(t,e){let n=a.i_.get(t);return(n===a.q0||n===a.Oh||n===a.kE?function(t){return[0,t.length?(0,r.Fp7)(t,({value:t})=>void 0===t?t:(0,r.Fp7)(t,i.yx)):1]}:k)(e)}function E(t){return(e,n)=>r=>t(e+r*(n-e))}},3911:function(t,e,n){n.d(e,{B_:function(){return h},Dp:function(){return g},OD:function(){return v},TI:function(){return d},rO:function(){return o},wr:function(){return p}});var r=n(8755);let i=new Map([["accent",r.Mr0],["category10",r.Cn1],["dark2",r.XgA],["observable10",r.Ho],["paired",r.xHP],["pastel1",r.rp],["pastel2",r.i4X],["set1",r.yKE],["set2",r.W1Y],["set3",r.UCG],["tableau10",r.K2I]]);function o(t){return null!=t&&i.has(`${t}`.toLowerCase())}let l=new Map([...i,["brbg",u(r.QAz,r.yll)],["prgn",u(r.UhD,r.nnd)],["piyg",u(r.LxA,r.qw8)],["puor",u(r.$Kk,r.xNW)],["rdbu",u(r.HWp,r.DeQ)],["rdgy",u(r.u_L,r.PLC)],["rdylbu",u(r.XXD,r.zJm)],["rdylgn",u(r.KrL,r.BT8)],["spectral",u(r.lqd,r.T0$)],["burd",c(r.HWp,r.DeQ)],["buylrd",c(r.XXD,r.zJm)],["blues",a(r.KHk,r.sY$)],["greens",a(r.YoJ,r.Maq)],["greys",a(r.bUD,r.A_t)],["oranges",a(r.P0_,r.n$j)],["purples",a(r.DRS,r.XWu)],["reds",a(r.zU5,r.bc$)],["turbo",f(r._BJ)],["viridis",f(r.Vaf)],["magma",f(r.Gii)],["inferno",f(r.sN9)],["plasma",f(r.iAt)],["cividis",f(r.r1t)],["cubehelix",f(r.yBY)],["warm",f(r.AO_)],["cool",f(r.vcY)],["bugn",a(r.S1w,r.pls)],["bupu",a(r.DQq,r.hbk)],["gnbu",a(r.ATy,r.XwM)],["orrd",a(r.plj,r.RZU)],["pubu",a(r.UV8,r.GMc)],["pubugn",a(r.g1E,r.S7V)],["purd",a(r.F6U,r.cUW)],["rdpu",a(r.zsO,r.A4V)],["ylgn",a(r.GEx,r.aEZ)],["ylgnbu",a(r.YiU,r.HtN)],["ylorbr",a(r.GbK,r.Y_x)],["ylorrd",a(r.M7X,r.cjJ)],["rainbow",s(r.ICD)],["sinebow",s(r.OOA)]]);function a(t,e){return({length:n})=>1===n?[t[3][1]]:2===n?[t[3][1],t[3][2]]:(n=Math.max(3,Math.floor(n)))>9?(0,r.q$2)(e,n):t[n]}function u(t,e){return({length:n})=>2===n?[t[3][0],t[3][2]]:(n=Math.max(3,Math.floor(n)))>11?(0,r.q$2)(e,n):t[n]}function c(t,e){return({length:n})=>2===n?[t[3][2],t[3][0]]:(n=Math.max(3,Math.floor(n)))>11?(0,r.q$2)(t=>e(1-t),n):t[n].slice().reverse()}function f(t){return({length:e})=>(0,r.q$2)(t,Math.max(2,Math.floor(e)))}function s(t){return({length:e})=>(0,r.q$2)(t,Math.floor(e)+1).slice(0,-1)}function d(t){let e=`${t}`.toLowerCase();if(!l.has(e))throw Error(`unknown ordinal scheme: ${e}`);return l.get(e)}function h(t,e){let n=d(t),r="function"==typeof n?n({length:e}):n;return r.length!==e?r.slice(0,e):r}function p(t,e="greys"){let n=new Set,[r,i]=h(e,2);for(let e of t)if(null!=e){if(!0===e)n.add(i);else{if(!1!==e)return;n.add(r)}}return[...n]}let m=new Map([["brbg",r.yll],["prgn",r.nnd],["piyg",r.qw8],["puor",r.xNW],["rdbu",r.DeQ],["rdgy",r.PLC],["rdylbu",r.zJm],["rdylgn",r.BT8],["spectral",r.T0$],["burd",t=>(0,r.DeQ)(1-t)],["buylrd",t=>(0,r.zJm)(1-t)],["blues",r.sY$],["greens",r.Maq],["greys",r.A_t],["purples",r.XWu],["reds",r.bc$],["oranges",r.n$j],["turbo",r._BJ],["viridis",r.Vaf],["magma",r.Gii],["inferno",r.sN9],["plasma",r.iAt],["cividis",r.r1t],["cubehelix",r.yBY],["warm",r.AO_],["cool",r.vcY],["bugn",r.pls],["bupu",r.hbk],["gnbu",r.XwM],["orrd",r.RZU],["pubugn",r.S7V],["pubu",r.GMc],["purd",r.cUW],["rdpu",r.A4V],["ylgnbu",r.HtN],["ylgn",r.aEZ],["ylorbr",r.Y_x],["ylorrd",r.cjJ],["rainbow",r.ICD],["sinebow",r.OOA]]);function g(t){let e=`${t}`.toLowerCase();if(!m.has(e))throw Error(`unknown quantitative scheme: ${e}`);return m.get(e)}let y=new Set(["brbg","prgn","piyg","puor","rdbu","rdgy","rdylbu","rdylgn","spectral","burd","buylrd"]);function v(t){return null!=t&&y.has(`${t}`.toLowerCase())}},6243:function(t,e,n){n.d(e,{CU:function(){return w},Cp:function(){return m},DB:function(){return g},HD:function(){return $},J4:function(){return M},J_:function(){return y},Ne:function(){return k},W2:function(){return d},aE:function(){return s},cv:function(){return c},dD:function(){return b},fs:function(){return j},jb:function(){return C},uB:function(){return L},xu:function(){return v}});var r=n(8755),i=n(1032),o=n(3736),l=n(3786),a=n(683),u=n(5793);let c=("undefined"!=typeof window?window.devicePixelRatio>1:"undefined"==typeof it)?0:.5,f=0;function s(){return`plot-clip-${++f}`}function d(t,{title:e,href:n,ariaLabel:r,ariaDescription:i,ariaHidden:o,target:l,fill:u,fillOpacity:c,stroke:f,strokeWidth:s,strokeOpacity:d,strokeLinejoin:h,strokeLinecap:p,strokeMiterlimit:m,strokeDasharray:g,strokeDashoffset:y,opacity:v,mixBlendMode:b,imageFilter:w,paintOrder:x,pointerEvents:$,shapeRendering:k,channels:A},{ariaLabel:L,fill:C="currentColor",fillOpacity:j,stroke:z="none",strokeOpacity:_,strokeWidth:I,strokeLinecap:D,strokeLinejoin:N,strokeMiterlimit:W,paintOrder:U}){null===C&&(u=null,c=null),null===z&&(f=null,d=null),(0,a.U_)(C)?!(0,a.U_)(z)&&(!(0,a.U_)(u)||A?.fill)&&(z="none"):(0,a.U_)(z)&&(!(0,a.U_)(f)||A?.stroke)&&(C="none");let[S,R]=(0,a.uw)(u,C),[T,O]=(0,a.g_)(c,j),[q,F]=(0,a.uw)(f,z),[B,Y]=(0,a.g_)(d,_),[H,P]=(0,a.g_)(v);(0,a.Wi)(F)||(void 0===s&&(s=I),void 0===p&&(p=D),void 0===h&&(h=N),void 0!==m||(0,a.ZW)(h)||(m=W),(0,a.Wi)(R)||void 0!==x||(x=U));let[Z,V]=(0,a.g_)(s);return null!==C&&(t.fill=M(R,"currentColor"),t.fillOpacity=E(O,1)),null!==z&&(t.stroke=M(F,"none"),t.strokeWidth=E(V,1),t.strokeOpacity=E(Y,1),t.strokeLinejoin=M(h,"miter"),t.strokeLinecap=M(p,"butt"),t.strokeMiterlimit=E(m,4),t.strokeDasharray=M(g,"none"),t.strokeDashoffset=M(y,"0")),t.target=(0,a.Z_)(l),t.ariaLabel=(0,a.Z_)(L),t.ariaDescription=(0,a.Z_)(i),t.ariaHidden=(0,a.Z_)(o),t.opacity=E(P,1),t.mixBlendMode=M(b,"normal"),t.imageFilter=M(w,"none"),t.paintOrder=M(x,"normal"),t.pointerEvents=M($,"auto"),t.shapeRendering=M(k,"auto"),{title:{value:e,optional:!0,filter:null},href:{value:n,optional:!0,filter:null},ariaLabel:{value:r,optional:!0,filter:null},fill:{value:S,scale:"auto",optional:!0},fillOpacity:{value:T,scale:"auto",optional:!0},stroke:{value:q,scale:"auto",optional:!0},strokeOpacity:{value:B,scale:"auto",optional:!0},strokeWidth:{value:Z,optional:!0},opacity:{value:H,scale:"auto",optional:!0}}}function h(t,e){e&&t.text(t=>(0,l.HI)(e[t]))}function p(t,e){e&&t.text(([t])=>(0,l.HI)(e[t]))}function m(t,{target:e,tip:n},{ariaLabel:r,title:i,fill:l,fillOpacity:a,stroke:u,strokeOpacity:c,strokeWidth:f,opacity:s,href:d}){r&&$(t,"aria-label",t=>r[t]),l&&$(t,"fill",t=>l[t]),a&&$(t,"fill-opacity",t=>a[t]),u&&$(t,"stroke",t=>u[t]),c&&$(t,"stroke-opacity",t=>c[t]),f&&$(t,"stroke-width",t=>f[t]),s&&$(t,"opacity",t=>s[t]),d&&x(t,t=>d[t],e),!n&&i&&t.filter(t=>(0,o.PV)(i[t])).append("title").call(h,i)}function g(t,{target:e,tip:n},{ariaLabel:r,title:i,fill:l,fillOpacity:a,stroke:u,strokeOpacity:c,strokeWidth:f,opacity:s,href:d}){r&&$(t,"aria-label",([t])=>r[t]),l&&$(t,"fill",([t])=>l[t]),a&&$(t,"fill-opacity",([t])=>a[t]),u&&$(t,"stroke",([t])=>u[t]),c&&$(t,"stroke-opacity",([t])=>c[t]),f&&$(t,"stroke-width",([t])=>f[t]),s&&$(t,"opacity",([t])=>s[t]),d&&x(t,([t])=>d[t],e),!n&&i&&t.filter(([t])=>(0,o.PV)(i[t])).append("title").call(p,i)}function y(t,e,n){let i=(0,r.ruo)(t,t=>e[t]);return void 0===n&&i.size>1+t.length>>1&&(0,u.Z)("Warning: the implicit z channel has high cardinality. This may occur when the fill or stroke channel is associated with quantitative data rather than ordinal or categorical data. You can suppress this warning by setting the z option explicitly; if this data represents a single series, set z to null."),i.values()}function*v(t,e,n,r){let{z:i}=n,{z:l}=r,u=function({ariaLabel:t,title:e,fill:n,fillOpacity:r,stroke:i,strokeOpacity:o,strokeWidth:l,opacity:a,href:u},{tip:c}){return[t,c?void 0:e,n,r,i,o,l,a,u].filter(t=>void 0!==t)}(r,n),c=[...e,...u];for(let e of l?y(t,l,i):[t]){let t,n;t:for(let r of e){for(let t of c)if(!(0,o.ri)(t[r])){n&&n.push(-1);continue t}if(void 0===t){n&&(yield n),t=u.map(t=>(0,a.mM)(t[r])),n=[r];continue}n.push(r);for(let e=0;e<u.length;++e)if((0,a.mM)(u[e][r])!==t[e]){yield n,t=u.map(t=>(0,a.mM)(t[r])),n=[r];continue t}}n&&(yield n)}}function b(t,e,n,o){!function(t,e,n,o){let l;let{clip:a=o.clip}=e;switch(a){case"frame":{let{width:e,height:r,marginLeft:a,marginRight:u,marginTop:c,marginBottom:f}=n,d=s();l=`url(#${d})`,t=(0,i.U)("svg:g",o).call(t=>t.append("svg:clipPath").attr("id",d).append("rect").attr("x",a).attr("y",c).attr("width",e-u-a).attr("height",r-c-f)).each(function(){this.appendChild(t.node()),t.node=()=>this});break}case"sphere":{let{projection:e}=o;if(!e)throw Error('the "sphere" clip option requires a projection');let n=s();l=`url(#${n})`,t.append("clipPath").attr("id",n).append("path").attr("d",(0,r.l49)(e)({type:"Sphere"}))}}$(t,"aria-label",e.ariaLabel),$(t,"aria-description",e.ariaDescription),$(t,"aria-hidden",e.ariaHidden),$(t,"clip-path",l)}(t,e,n,o),$(t,"fill",e.fill),$(t,"fill-opacity",e.fillOpacity),$(t,"stroke",e.stroke),$(t,"stroke-width",e.strokeWidth),$(t,"stroke-opacity",e.strokeOpacity),$(t,"stroke-linejoin",e.strokeLinejoin),$(t,"stroke-linecap",e.strokeLinecap),$(t,"stroke-miterlimit",e.strokeMiterlimit),$(t,"stroke-dasharray",e.strokeDasharray),$(t,"stroke-dashoffset",e.strokeDashoffset),$(t,"shape-rendering",e.shapeRendering),$(t,"filter",e.imageFilter),$(t,"paint-order",e.paintOrder);let{pointerEvents:l=!1===o.pointerSticky?"none":void 0}=e;$(t,"pointer-events",l)}function w(t,e){var n,r;n="mix-blend-mode",null!=(r=e.mixBlendMode)&&t.style(n,r),$(t,"opacity",e.opacity)}function x(t,e,n){t.each(function(t){let i=e(t);if(null!=i){let t=this.ownerDocument.createElementNS(r.aC9.svg,"a");t.setAttribute("fill","inherit"),t.setAttributeNS(r.aC9.xlink,"href",i),null!=n&&t.setAttribute("target",n),this.parentNode.insertBefore(t,this).appendChild(this)}})}function $(t,e,n){null!=n&&t.attr(e,n)}function k(t,e,{x:n,y:r},i=c,o=c){i+=e.dx,o+=e.dy,n?.bandwidth&&(i+=n.bandwidth()/2),r?.bandwidth&&(o+=r.bandwidth()/2),(i||o)&&t.attr("transform",`translate(${i},${o})`)}function M(t,e){if((t=(0,a.Z_)(t))!==e)return t}function E(t,e){if((t=(0,a.Rx)(t))!==e)return t}let A=/^-?([_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 L(t){if(void 0===t)return"plot-d6a7b5";if(t=`${t}`,!A.test(t))throw Error(`invalid class name: ${t}`);return t}function C(t,e){if("string"==typeof e)t.property("style",e);else if(null!=e)for(let n of t)Object.assign(n.style,e)}function j({frameAnchor:t},{width:e,height:n,marginTop:r,marginRight:i,marginBottom:o,marginLeft:l}){return[/left$/.test(t)?l:/right$/.test(t)?e-i:(l+e-i)/2,/^top/.test(t)?r:/^bottom/.test(t)?n-o:(r+n-o)/2]}},7982:function(t,e,n){n.d(e,{Ek:function(){return f},US:function(){return o},qB:function(){return i},sr:function(){return c},yk:function(){return u}});var r=n(8755);let i=Math.sqrt(3),o=2/i,l=new Map([["asterisk",r.E1T],["circle",r.JFv],["cross",r.tJO],["diamond",r.rZl],["diamond2",r.syu],["hexagon",{draw(t,e){let n=Math.sqrt(e/Math.PI),r=n*o,i=r/2;t.moveTo(0,r),t.lineTo(n,i),t.lineTo(n,-i),t.lineTo(0,-r),t.lineTo(-n,-i),t.lineTo(-n,i),t.closePath()}}],["plus",r.X_O],["square",r.m_s],["square2",r.hsf],["star",r.Hmc],["times",r.NZj],["triangle",r.P67],["triangle2",r.vgc],["wye",r.n31]]);function a(t){return t&&"function"==typeof t.draw}function u(t){return!!a(t)||"string"==typeof t&&l.has(t.toLowerCase())}function c(t){if(null==t||a(t))return t;let e=l.get(`${t}`.toLowerCase());if(e)return e;throw Error(`invalid symbol: ${t}`)}function f(t){if(null==t||a(t))return[void 0,t];if("string"==typeof t){let e=l.get(`${t}`.toLowerCase());if(e)return[void 0,e]}return[t,void 0]}},9337:function(t,e,n){n.d(e,{X:function(){return r}});function r(t,...e){let n=e.length;for(let r=0,i=!0;r<n;++r)"function"!=typeof e[r]&&(i&&(t=t.slice(),i=!1),t.splice(r,2,t[r]+e[r]+t[r+1]),e.splice(r,1),--r,--n);return r=>{let i=t[0];for(let o=0;o<n;++o)i+=e[o](r)+t[o+1];return i}}},3330:function(t,e,n){n.d(e,{I4:function(){return g},Oi:function(){return v},VF:function(){return p},lg:function(){return m},uf:function(){return w},yy:function(){return c}});var r=n(8755),i=n(6641);let o=[["millisecond",1],["2 milliseconds",2],["5 milliseconds",5],["10 milliseconds",10],["20 milliseconds",20],["50 milliseconds",50],["100 milliseconds",100],["200 milliseconds",200],["500 milliseconds",500],["second",1e3],["5 seconds",5e3],["15 seconds",15e3],["30 seconds",3e4],["minute",6e4],["5 minutes",3e5],["15 minutes",9e5],["30 minutes",18e5],["hour",36e5],["3 hours",108e5],["6 hours",216e5],["12 hours",432e5],["day",864e5],["2 days",1728e5],["week",6048e5],["2 weeks",12096e5],["month",2592e6],["3 months",7776e6],["6 months",15552e6],["year",31536e6],["2 years",63072e6],["5 years",15768e7],["10 years",31536e7],["20 years",63072e7],["50 years",15768e8],["100 years",31536e8]],l=new Map([["second",1e3],["minute",6e4],["hour",36e5],["day",864e5],["monday",6048e5],["tuesday",6048e5],["wednesday",6048e5],["thursday",6048e5],["friday",6048e5],["saturday",6048e5],["sunday",6048e5],["week",6048e5],["month",2592e6],["year",31536e6]]),a=new Map([["second",r.S1K],["minute",r.Z_i],["hour",r.WQD],["day",r.rr1],["monday",r.Ox9],["tuesday",r.YDX],["wednesday",r.EFj],["thursday",r.Igq],["friday",r.y2j],["saturday",r.LqH],["sunday",r.Zyz],["week",r.NGh],["month",r.F0B],["year",r.jBk]]),u=new Map([["second",r.OLw],["minute",r.rzb],["hour",r.lME],["day",r.KBf],["monday",r.l68],["tuesday",r.J1],["wednesday",r.b3N],["thursday",r.hBw],["friday",r.QQA],["saturday",r.g4i],["sunday",r.Ox3],["week",r.YFY],["month",r.meP],["year",r.olf]]),c=Symbol("intervalDuration"),f=Symbol("intervalType");for(let[t,e]of a)e[c]=l.get(t),e[f]="time";for(let[t,e]of u)e[c]=l.get(t),e[f]="utc";let s=[["year",r.olf,"utc"],["month",r.meP,"utc"],["day",r.KBf,"utc",15552e6],["hour",r.lME,"utc",2592e5],["minute",r.rzb,"utc",216e5],["second",r.OLw,"utc",18e5]],d=[["year",r.jBk,"time"],["month",r.F0B,"time"],["day",r.rr1,"time",15552e6],["hour",r.WQD,"time",2592e5],["minute",r.Z_i,"time",216e5],["second",r.S1K,"time",18e5]],h=[s[0],d[0],s[1],d[1],s[2],d[2],...s.slice(3)];function p(t){let e=`${t}`.toLowerCase();e.endsWith("s")&&(e=e.slice(0,-1));let n=1,r=/^(?:(\d+)\s+)/.exec(e);switch(r&&(e=e.slice(r[0].length),n=+r[1]),e){case"quarter":e="month",n*=3;break;case"half":e="month",n*=6}let i=u.get(e);if(!i)throw Error(`unknown interval: ${t}`);if(n>1&&!i.every)throw Error(`non-periodic interval: ${e}`);return[e,n]}function m(t){return y(p(t),"time")}function g(t){return y(p(t),"utc")}function y([t,e],n){let r=("time"===n?a:u).get(t);return e>1&&((r=r.every(e))[c]=l.get(t)*e,r[f]=n),r}function v(t,e){if(!(e>1))return;let n=t[c];if(!o.some(([,t])=>t===n)||n%864e5==0&&864e5<n&&n<2592e6)return;let[i]=o[(0,r.YFb)(([,t])=>Math.log(t)).center(o,Math.log(n*e))];return("time"===t[f]?m:g)(i)}function b(t,e,n){let i="time"===e?r.i$Z:r.g0u;if(null==n)return i("year"===t?"%Y":"month"===t?"%Y-%m":"day"===t?"%Y-%m-%d":"hour"===t||"minute"===t?"%Y-%m-%dT%H:%M":"second"===t?"%Y-%m-%dT%H:%M:%S":"%Y-%m-%dT%H:%M:%S.%L");let o="left"===n||"right"===n?(t,e)=>`
${t}
${e}`:"top"===n?(t,e)=>`${e}
${t}`:(t,e)=>`${t}
${e}`;switch(t){case"millisecond":return x(i(".%L"),i(":%M:%S"),o);case"second":return x(i(":%S"),i("%-I:%M"),o);case"minute":return x(i("%-I:%M"),i("%p"),o);case"hour":return x(i("%-I %p"),i("%b %-d"),o);case"day":return x(i("%-d"),i("%b"),o);case"month":return x(i("%b"),i("%Y"),o);case"year":return i("%Y")}throw Error("unable to format time ticks")}function w(t,e,n){let i=(0,r.Fp7)((0,r.XaM)(e,(t,e)=>Math.abs(e-t)));if(i<1e3)return b("millisecond","utc",n);for(let[r,o,l,a]of"time"===t?d:"utc"===t?s:h){if(i>a||"hour"===r&&!i)break;if(e.every(t=>o.floor(t)>=t))return b(r,l,n)}}function x(t,e,n){return(r,o,l)=>{let a=t(r,o),u=e(r,o),c=o-(0,i.Y)(l);return o!==c&&void 0!==l[c]&&u===e(l[c],c)?a:n(a,u)}}},4883:function(t,e,n){n.d(e,{DY:function(){return g},GY:function(){return h},RB:function(){return l},TV:function(){return m},hX:function(){return s},zj:function(){return a}});var r=n(8755),i=n(3736),o=n(683);function l({filter:t,sort:e,reverse:n,transform:r,initializer:i,...l}={},a){if(void 0===r&&(null!=t&&(r=d(t)),null==e||(0,o.Y4)(e)||(r=u(r,y(e))),n&&(r=u(r,p))),null!=a&&null!=i)throw Error("transforms cannot be applied after initializers");return{...l,...(null===e||(0,o.Y4)(e))&&{sort:e},transform:u(r,a)}}function a({filter:t,sort:e,reverse:n,initializer:r,...i}={},l){return void 0===r&&(null!=t&&(r=d(t)),null==e||(0,o.Y4)(e)||(r=c(r,y(e))),n&&(r=c(r,p))),{...i,...(null===e||(0,o.Y4)(e))&&{sort:e},initializer:c(r,l)}}function u(t,e){return null==t?null===e?void 0:e:null==e?null===t?void 0:t:function(n,r,i){return{data:n,facets:r}=t.call(this,n,r,i),e.call(this,(0,o.lE)(n),r,i)}}function c(t,e){return null==t?null===e?void 0:e:null==e?null===t?void 0:t:function(n,r,i,...o){let l,a,u,c,f,s;return{data:a=n,facets:u=r,channels:l}=t.call(this,n,r,i,...o),{data:f=a,facets:s=u,channels:c}=e.call(this,a,u,{...i,...l},...o),{data:f,facets:s,channels:{...l,...c}}}}function f(t,e){return(null!=t.initializer?a:l)(t,e)}function s(t,e){return f(e,d(t))}function d(t){return(e,n)=>{let r=(0,o.dj)(e,t);return{data:e,facets:n.map(t=>t.filter(t=>r[t]))}}}function h({sort:t,...e}={}){return{...f(e,p),sort:(0,o.Y4)(t)?t:null}}function p(t,e){return{data:t,facets:e.map(t=>t.slice().reverse())}}function m({seed:t,sort:e,...n}={}){return{...f(n,v(null==t?Math.random:(0,r.b2d)(t))),sort:(0,o.Y4)(e)?e:null}}function g(t,{sort:e,...n}={}){return{...((0,o.wq)(t)&&void 0!==t.channel?a:f)(n,y(t)),sort:(0,o.Y4)(e)?e:null}}function y(t){return("function"==typeof t&&1!==t.length?function(t){return(e,n)=>{let r=(n,r)=>t(e[n],e[r]);return{data:e,facets:n.map(t=>t.slice().sort(r))}}}:v)(t)}function v(t){let e,n;({channel:e,value:t,order:n}={...(0,o.i)(t)});let r=e?.startsWith("-");if(r&&(e=e.slice(1)),void 0===n&&(n=r?i.Zj:i.Wv),"function"!=typeof n)switch(`${n}`.toLowerCase()){case"ascending":n=i.Wv;break;case"descending":n=i.Zj;break;default:throw Error(`invalid order: ${n}`)}return(r,i,l)=>{let a;if(void 0===e)a=(0,o.dj)(r,t);else{if(void 0===l)throw Error("channel sort requires an initializer");if(!(a=l[e]))return{};a=a.value}let u=(t,e)=>n(a[t],a[e]);return{data:r,facets:i.map(t=>t.slice().sort(u))}}}},3925:function(t,e,n){n.d(e,{B2:function(){return m},BI:function(){return u},Gf:function(){return E},J_:function(){return a},Mo:function(){return g},PW:function(){return C},Qs:function(){return M},RI:function(){return d},T3:function(){return b},U0:function(){return R},Xk:function(){return h},ah:function(){return j},is:function(){return c},lL:function(){return I},ru:function(){return f},sE:function(){return T},si:function(){return y},vK:function(){return p}});var r=n(8755),i=n(3736),o=n(683),l=n(4883);function a(t,e){return s(null,null,t,e)}function u(t={y:"count"},e={}){let{x:n=o.yR}=e;if(null==n)throw Error("missing channel: x");return s(n,null,t,e)}function c(t={x:"count"},e={}){let{y:n=o.yR}=e;if(null==n)throw Error("missing channel: y");return s(null,n,t,e)}function f(t={fill:"count"},e={}){let{x:n,y:r}=e;if([n,r]=(0,o.NK)(n,r),null==n)throw Error("missing channel: x");if(null==r)throw Error("missing channel: y");return s(n,r,t,e)}function s(t,e,{data:n=C,filter:r,sort:i,reverse:a,...u}={},c={}){u=b(u,c),n=$(n,o.yR),i=null==i?void 0:w("sort",i,c),r=null==r?void 0:x("filter",r,c);let[f,s]=(0,o.AM)(t),[h,p]=(0,o.AM)(e),{z:m,fill:y,stroke:v,x1:k,x2:A,y1:L,y2:j,...z}=c,[_,I]=(0,o.AM)(m),[D]=(0,o.uw)(y),[N]=(0,o.uw)(v),[W,U]=(0,o.AM)(D),[S,R]=(0,o.AM)(N);return{..."z"in c&&{z:_||m},..."fill"in c&&{fill:W||y},..."stroke"in c&&{stroke:S||v},...(0,l.RB)(z,(l,c,f)=>{let d=(0,o.e7)((0,o.dj)(l,t),f?.x),h=(0,o.e7)((0,o.dj)(l,e),f?.y),y=(0,o.dj)(l,m),v=(0,o.dj)(l,D),b=(0,o.dj)(l,N),w=M(u,{z:y,fill:v,stroke:b}),x=[],$=[],k=d&&s([]),A=h&&p([]),L=y&&I([]),C=v&&U([]),j=b&&R([]),z=0;for(let t of u)t.initialize(l);for(let t of(i&&i.initialize(l),r&&r.initialize(l),c)){let e=[];for(let e of u)e.scope("facet",t);for(let[o,a]of(i&&i.scope("facet",t),r&&r.scope("facet",t),g(t,w)))for(let[t,c]of g(a,h))for(let[a,f]of g(c,d)){let c={data:l};if(d&&(c.x=a),h&&(c.y=t),w&&(c.z=o),!r||r.reduce(f,c)){for(let r of(e.push(z++),$.push(n.reduceIndex(f,l,c)),d&&k.push(a),h&&A.push(t),y&&L.push(w===y?o:y[f[0]]),v&&C.push(w===v?o:v[f[0]]),b&&j.push(w===b?o:b[f[0]]),u))r.reduce(f,c);i&&i.reduce(f,c)}}x.push(e)}return E(x,i,a),{data:$,facets:x}}),...!d(u,"x")&&(f?{x:f}:{x1:k,x2:A}),...!d(u,"y")&&(h?{y:h}:{y1:L,y2:j}),...Object.fromEntries(u.map(({name:t,output:e})=>[t,e]))}}function d(t,...e){for(let{name:n}of t)if(e.includes(n))return!0;return!1}function h(t,e,n=p){let r=Object.entries(t);return null!=e.title&&void 0===t.title&&r.push(["title",z]),null!=e.href&&void 0===t.href&&r.push(["href",j]),r.filter(([,t])=>void 0!==t).map(([t,r])=>null===r?{name:t,initialize(){},scope(){},reduce(){}}:n(t,r,e))}function p(t,e,n,r=m){let i,l;(0,o.Kn)(e)&&"reduce"in e&&(i=e.scale,e=e.reduce);let a=r(t,e,n),[u,c]=(0,o.$Q)(a.label);return{name:t,output:void 0===i?u:{value:u,scale:i},initialize(t){a.initialize(t),l=c([])},scope(t,e){a.scope(t,e)},reduce(t,e){l.push(a.reduce(t,e))}}}function m(t,e,n,r=y){let i,l;let a=(0,o.zE)(t,n),u=r(e,a);return{label:(0,o.Aj)(u===I?null:a,u.label),initialize(t){i=void 0===a?t:(0,o.dj)(t,a),"data"===u.scope&&(l=u.reduceIndex((0,o.w6)(t),i))},scope(t,e){u.scope===t&&(l=u.reduceIndex(e,i))},reduce:(t,e)=>null==u.scope?u.reduceIndex(t,i,e):u.reduceIndex(t,i,l,e)}}function g(t,e){return e?(0,r.ruo)(t,t=>e[t]):[[,t]]}function y(t,e,n=v){if(null==t)return n(t);if("function"==typeof t.reduceIndex)return t;if("function"==typeof t.reduce&&(0,o.Kn)(t))return console.warn("deprecated reduce interface; implement reduceIndex instead."),{...t,reduceIndex:t.reduce.bind(t)};if("function"==typeof t)return{reduceIndex:(e,n,r)=>t((0,o.qn)(n,e),r)};if(/^p\d{2}$/i.test(t))return A((0,o.Pe)(t));switch(`${t}`.toLowerCase()){case"first":return j;case"last":return _;case"identity":return C;case"count":return I;case"distinct":return D;case"sum":return null==e?I:N;case"proportion":return W(e,"data");case"proportion-facet":return W(e,"facet");case"deviation":return A(r.P3);case"min":return A(r.VV$);case"min-index":return A(r._Di);case"max":return A(r.Fp7);case"max-index":return A(r.F_Y);case"mean":return L(r.J69);case"median":return L(r.C2o);case"variance":return A(r.CAK);case"mode":return A(r.xJM)}return n(t)}function v(t){throw Error(`invalid reduce: ${t}`)}function b(t,e){return h(t,e,w)}function w(t,e,n){return p(t,e,n,x)}function x(t,e,n){return m(t,e,n,$)}function $(t,e){return y(t,e,k)}function k(t){switch(`${t}`.toLowerCase()){case"x":return U;case"y":return S;case"z":return R}throw Error(`invalid group reduce: ${t}`)}function M(t,e){for(let n in e){let r=e[n];if(void 0!==r&&!t.some(t=>t.name===n))return r}}function E(t,e,n){if(e){let n=e.output.transform(),r=(t,e)=>(0,i.Wv)(n[t],n[e]);t.forEach(t=>t.sort(r))}n&&t.forEach(t=>t.reverse())}function A(t){return{reduceIndex:(e,n)=>t(e,t=>n[t])}}function L(t){return{reduceIndex(e,n){let r=t(e,t=>n[t]);return(0,o.IC)(n)?new Date(r):r}}}let C={reduceIndex:(t,e)=>(0,o.qn)(e,t)},j={reduceIndex:(t,e)=>e[t[0]]},z={reduceIndex(t,e){let n=(0,r.DYV)((0,r.jJk)(t,t=>t.length,t=>e[t]),o.E0),i=n.slice(-5).reverse();if(i.length<n.length){let t=n.slice(0,-4);i[4]=[`… ${t.length.toLocaleString("en-US")} more`,(0,r.Smz)(t,o.E0)]}return i.map(([t,e])=>`${t} (${e.toLocaleString("en-US")})`).join("\n")}},_={reduceIndex:(t,e)=>e[t[t.length-1]]},I={label:"Frequency",reduceIndex:t=>t.length},D={label:"Distinct",reduceIndex(t,e){let n=new r.H0G;for(let r of t)n.add(e[r]);return n.size}},N=A(r.Smz);function W(t,e){return null==t?{scope:e,label:"Frequency",reduceIndex:(t,e,n=1)=>t.length/n}:{scope:e,reduceIndex:(t,e,n=1)=>(0,r.Smz)(t,t=>e[t])/n}}let U={reduceIndex:(t,e,{x:n})=>n},S={reduceIndex:(t,e,{y:n})=>n},R={reduceIndex:(t,e,{z:n})=>n};function T(t){if("function"!=typeof t)throw Error(`invalid test function: ${t}`);return{reduceIndex:(e,n,{data:r})=>n[e.find(e=>t(r[e],e,r))]}}},4419:function(t,e,n){n.d(e,{F:function(){return o},Q:function(){return i}});var r=n(683);function i(t={}){return(0,r.Du)(t)?t:{...t,x:r.yR}}function o(t={}){return(0,r.P2)(t)?t:{...t,y:r.yR}}},7693:function(t,e,n){n.d(e,{X:function(){return i},u:function(){return o}});var r=n(6243);function i({inset:t,insetLeft:e,insetRight:n,...r}={}){return[e,n]=l(t,e,n),{inset:t,insetLeft:e,insetRight:n,...r}}function o({inset:t,insetTop:e,insetBottom:n,...r}={}){return[e,n]=l(t,e,n),{inset:t,insetTop:e,insetBottom:n,...r}}function l(t,e,n){return void 0===t&&void 0===e&&void 0===n?r.cv?[1,0]:[.5,.5]:[e,n]}},491:function(t,e,n){n.d(e,{HE:function(){return s},kH:function(){return u},nS:function(){return c},uW:function(){return h},ut:function(){return f},y6:function(){return d}});var r=n(683),i=n(7693);function o(t,{interval:e}){return(t={...(0,r.i)(t)}).interval=(0,r.yL)(void 0===t.interval?e:t.interval),t}function l(t,e,n,i){let l,a;let{[t]:u,[`${t}1`]:c,[`${t}2`]:f}=n,{value:s,interval:d}=o(u,n);if(null==s||null==d&&!i)return n;let h=(0,r.Aj)(u);if(null==d){let e;let o={transform:t=>e||(e=(0,r.dj)(t,s)),label:h};return{...n,[t]:void 0,[`${t}1`]:void 0===c?o:c,[`${t}2`]:void 0!==f||c===f&&i?f:o}}function p(t){return void 0!==a&&t===l?a:a=(0,r.UI)((0,r.dj)(l=t,s),t=>d.floor(t))}return e({...n,[t]:void 0,[`${t}1`]:void 0===c?{transform:p,label:h}:c,[`${t}2`]:void 0===f?{transform:t=>p(t).map(t=>d.offset(t)),label:h}:f})}function a(t,e,n){let{[t]:i}=n,{value:l,interval:a}=o(i,n);return null==l||null==a?n:e({...n,[t]:{label:(0,r.Aj)(i),transform:t=>{let e=(0,r.UI)((0,r.dj)(t,l),t=>a.floor(t)),n=e.map(t=>a.offset(t));return e.map((0,r.IC)(e)?(t,e)=>null==t||isNaN(t=+t)||null==(e=n[e])||isNaN(e=+e)?void 0:new Date((t+e)/2):(t,e)=>null==t||null==(e=n[e])?NaN:(+t+ +e)/2)}}})}function u(t={}){return l("x",i.X,t,!0)}function c(t={}){return l("y",i.u,t,!0)}function f(t={}){return l("x",i.X,t)}function s(t={}){return l("y",i.u,t)}function d(t={}){return a("x",i.X,t)}function h(t={}){return a("y",i.u,t)}},7623:function(t,e,n){n.d(e,{JU:function(){return p},Qx:function(){return m},gg:function(){return u},HQ:function(){return c},mO:function(){return f},xo:function(){return s},Gx:function(){return d},eh:function(){return h}});var r=n(8755),i=n(3736),o=n(2186),l=n(683),a=n(4883);function u(t={},e={}){1==arguments.length&&([t,e]=g(t));let{y1:n,y:r=n,x:i,...o}=e,[a,u,c,f]=v(r,i,"y","x",t,o);return{...a,y1:n,y:u,x1:c,x2:f,x:(0,l.Pi)(c,f)}}function c(t={},e={}){1==arguments.length&&([t,e]=g(t));let{y1:n,y:r=n,x:i}=e,[o,l,a]=v(r,i,"y","x",t,e);return{...o,y1:n,y:l,x:a}}function f(t={},e={}){1==arguments.length&&([t,e]=g(t));let{y1:n,y:r=n,x:i}=e,[o,l,,a]=v(r,i,"y","x",t,e);return{...o,y1:n,y:l,x:a}}function s(t={},e={}){1==arguments.length&&([t,e]=g(t));let{x1:n,x:r=n,y:i,...o}=e,[a,u,c,f]=v(r,i,"x","y",t,o);return{...a,x1:n,x:u,y1:c,y2:f,y:(0,l.Pi)(c,f)}}function d(t={},e={}){1==arguments.length&&([t,e]=g(t));let{x1:n,x:r=n,y:i}=e,[o,l,a]=v(r,i,"x","y",t,e);return{...o,x1:n,x:l,y:a}}function h(t={},e={}){1==arguments.length&&([t,e]=g(t));let{x1:n,x:r=n,y:i}=e,[o,l,,a]=v(r,i,"x","y",t,e);return{...o,x1:n,x:l,y:a}}function p({x:t,x1:e,x2:n,...r}={}){return(r=(0,o.so)(r,"y"),void 0===e&&void 0===n)?u({x:t,...r}):([e,n]=(0,l.en)(t,e,n),{...r,x1:e,x2:n})}function m({y:t,y1:e,y2:n,...r}={}){return(r=(0,o.so)(r,"x"),void 0===e&&void 0===n)?s({y:t,...r}):([e,n]=(0,l.en)(t,e,n),{...r,y1:e,y2:n})}function g(t){let{offset:e,order:n,reverse:r,...i}=t;return[{offset:e,order:n,reverse:r},i]}let y={length:!0};function v(t,e=l.J_,n,o,{offset:u,order:c,reverse:f},s){if(null===e)throw Error(`stack requires ${o}`);let d=(0,l.iJ)(s),[h,p]=(0,l.AM)(t),[m,g]=(0,l.$Q)(e),[v,b]=(0,l.$Q)(e);return m.hint=v.hint=y,u=function(t){if(null!=t){if("function"==typeof t)return t;switch(`${t}`.toLowerCase()){case"expand":case"normalize":return w;case"center":case"silhouette":return x;case"wiggle":return $}throw Error(`unknown offset: ${t}`)}}(u),c=function(t,e,n){if(void 0===t&&e===$)return E(i.Wv);if(null!=t){if("string"==typeof t){let e=t.startsWith("-"),o=e?i.Zj:i.Wv;switch((e?t.slice(1):t).toLowerCase()){case"value":case n:return(t,e,n)=>(t,e)=>o(n[t],n[e]);case"z":return(t,e,n,r)=>(t,e)=>o(r[t],r[e]);case"sum":return L(o,(t,e,n,i)=>(0,r.IRY)((0,l.w6)(t),t=>(0,r.Smz)(t,t=>n[t]),t=>i[t]));case"appearance":return L(o,(t,e,n,i)=>(0,r.IRY)((0,l.w6)(t),t=>e[(0,r.vtb)(t,t=>n[t])],t=>i[t]));case"inside-out":return E(o)}return A((0,l.EP)(t))}if("function"==typeof t)return(1===t.length?A:function(t){return e=>(n,r)=>t(e[n],e[r])})(t);if(Array.isArray(t))return L(i.Wv,()=>t);throw Error(`invalid order: ${t}`)}}(c,u,o),[(0,a.RB)(s,(i,o,a)=>{({data:i,facets:o}=function(t,e){if(1===e.length)return{data:t,facets:e};let n=t.length,r=new Uint8Array(n),i=0;for(let t of e)for(let e of t)r[e]&&++i,r[e]=1;if(0===i)return{data:t,facets:e};let o=(t=(0,l.tP)(t))[l.Qy]=new Uint32Array(n+i);e=e.map(t=>(0,l.tP)(t,Uint32Array));let a=n;for(let n of(r.fill(0),e))for(let e=0,i=n.length;e<i;++e){let i=n[e];r[i]?(n[e]=a,t[a]=t[i],o[a]=i,++a):o[i]=i,r[i]=1}return{data:t,facets:e}}(i,o));let s=null==t?void 0:p((0,l.e7)((0,l.dj)(i,t),a?.[n])),h=(0,l.dj)(i,e,Float64Array),m=(0,l.dj)(i,d),y=c&&c(i,s,h,m),v=i.length,w=g(new Float64Array(v)),x=b(new Float64Array(v)),$=[];for(let t of o){let e=s?Array.from((0,r.ruo)(t,t=>s[t]).values()):[t];if(y)for(let t of e)t.sort(y);for(let t of e){let e=0,n=0;for(let r of(f&&t.reverse(),t)){let t=h[r];t<0?e=x[r]=(w[r]=e)+t:t>0?n=x[r]=(w[r]=n)+t:x[r]=w[r]=n}}$.push(e)}return u&&u($,w,x,m),{data:i,facets:o}}),h,m,v]}function b(t,e){let n=0,r=0;for(let i of t){let t=e[i];t<n&&(n=t),t>r&&(r=t)}return[n,r]}function w(t,e,n){for(let r of t)for(let t of r){let[r,i]=b(t,n);for(let o of t){let t=1/(i-r||1);e[o]=t*(e[o]-r),n[o]=t*(n[o]-r)}}}function x(t,e,n){for(let r of t){for(let t of r){let[r,i]=b(t,n);for(let o of t){let t=(i+r)/2;e[o]-=t,n[o]-=t}}k(r,e,n)}M(t,e,n)}function $(t,e,n,i){for(let o of t){let t=new r.Ljd,l=0;for(let a of o){let o=-1,u=a.map(t=>Math.abs(n[t]-e[t])),c=a.map(r=>{o=i?i[r]:++o;let l=n[r]-e[r],a=t.has(o)?l-t.get(o):0;return t.set(o,l),a}),f=[0,...(0,r.zbp)(c)];for(let t of a)e[t]+=l,n[t]+=l;let s=(0,r.Smz)(u);s&&(l-=(0,r.Smz)(u,(t,e)=>(c[e]/2+f[e])*t)/s)}k(o,e,n)}M(t,e,n)}function k(t,e,n){let i=(0,r.VV$)(t,t=>(0,r.VV$)(t,t=>e[t]));for(let r of t)for(let t of r)e[t]-=i,n[t]-=i}function M(t,e,n){let i=t.length;if(1===i)return;let o=t.map(t=>t.flat()),l=o.map(t=>((0,r.VV$)(t,t=>e[t])+(0,r.Fp7)(t,t=>n[t]))/2),a=(0,r.VV$)(l);for(let t=0;t<i;t++){let r=a-l[t];for(let i of o[t])e[i]+=r,n[i]+=r}}function E(t){return L(t,(t,e,n,i)=>{let o=(0,l.w6)(t),a=(0,r.IRY)(o,t=>e[(0,r.vtb)(t,t=>n[t])],t=>i[t]),u=(0,r.jJk)(o,t=>(0,r.Smz)(t,t=>n[t]),t=>i[t]),c=[],f=[],s=0;for(let t of a)s<0?(s+=u.get(t),c.push(t)):(s-=u.get(t),f.push(t));return f.reverse().concat(c)})}function A(t){return e=>{let n=(0,l.dj)(e,t);return(t,e)=>(0,i.Wv)(n[t],n[e])}}function L(t,e){return(n,i,o,l)=>{if(!l)throw Error("missing channel: z");let a=new r.Ljd(e(n,i,o,l).map((t,e)=>[t,e]));return(e,n)=>t(a.get(l[e]),a.get(l[n]))}}},5793:function(t,e,n){let r;n.d(e,{Z:function(){return l},b:function(){return o}});let i=0;function o(){let t=i;return i=0,r=void 0,t}function l(t){t!==r&&(r=t,console.warn(t),++i)}}}]);