import{a as js,d as tu}from"./chunk-OSRY5VT3.min.js";var ui=js((er,nr)=>{(function(t,e){typeof er=="object"&&typeof nr<"u"?nr.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(er,(function(){"use strict";var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",o="minute",a="hour",s="day",f="week",u="month",c="quarter",h="year",l="date",p="Invalid Date",x=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(y){var m=["th","st","nd","rd"],d=y%100;return"["+y+(m[(d-20)%10]||m[d]||m[0])+"]"}},T=function(y,m,d){var k=String(y);return!k||k.length>=m?y:""+Array(m+1-k.length).join(d)+y},I={s:T,z:function(y){var m=-y.utcOffset(),d=Math.abs(m),k=Math.floor(d/60),g=d%60;return(m<=0?"+":"-")+T(k,2,"0")+":"+T(g,2,"0")},m:function y(m,d){if(m.date()1)return y(D[0])}else{var R=m.name;N[R]=m,g=R}return!k&&g&&(S=g),g||!k&&S},F=function(y,m){if(v(y))return y.clone();var d=typeof m=="object"?m:{};return d.date=y,d.args=arguments,new H(d)},O=I;O.l=P,O.i=v,O.w=function(y,m){return F(y,{locale:m.$L,utc:m.$u,x:m.$x,$offset:m.$offset})};var H=(function(){function y(d){this.$L=P(d.locale,null,!0),this.parse(d),this.$x=this.$x||d.x||{},this[$]=!0}var m=y.prototype;return m.parse=function(d){this.$d=(function(k){var g=k.date,A=k.utc;if(g===null)return new Date(NaN);if(O.u(g))return new Date;if(g instanceof Date)return new Date(g);if(typeof g=="string"&&!/Z$/i.test(g)){var D=g.match(x);if(D){var R=D[2]-1||0,z=(D[7]||"0").substring(0,3);return A?new Date(Date.UTC(D[1],R,D[3]||1,D[4]||0,D[5]||0,D[6]||0,z)):new Date(D[1],R,D[3]||1,D[4]||0,D[5]||0,D[6]||0,z)}}return new Date(g)})(d),this.init()},m.init=function(){var d=this.$d;this.$y=d.getFullYear(),this.$M=d.getMonth(),this.$D=d.getDate(),this.$W=d.getDay(),this.$H=d.getHours(),this.$m=d.getMinutes(),this.$s=d.getSeconds(),this.$ms=d.getMilliseconds()},m.$utils=function(){return O},m.isValid=function(){return this.$d.toString()!==p},m.isSame=function(d,k){var g=F(d);return this.startOf(k)<=g&&g<=this.endOf(k)},m.isAfter=function(d,k){return F(d)fi(t,"name",{value:e,configurable:!0}),Wh=(t,e)=>{for(var n in e)fi(t,n,{get:e[n],enumerable:!0})},Tt={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},ct={trace:Ot((...t)=>{},"trace"),debug:Ot((...t)=>{},"debug"),info:Ot((...t)=>{},"info"),warn:Ot((...t)=>{},"warn"),error:Ot((...t)=>{},"error"),fatal:Ot((...t)=>{},"fatal")},Vh=Ot(function(t="fatal"){let e=Tt.fatal;typeof t=="string"?t.toLowerCase()in Tt&&(e=Tt[t]):typeof t=="number"&&(e=t),ct.trace=()=>{},ct.debug=()=>{},ct.info=()=>{},ct.warn=()=>{},ct.error=()=>{},ct.fatal=()=>{},e<=Tt.fatal&&(ct.fatal=console.error?console.error.bind(console,ht("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",ht("FATAL"))),e<=Tt.error&&(ct.error=console.error?console.error.bind(console,ht("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",ht("ERROR"))),e<=Tt.warn&&(ct.warn=console.warn?console.warn.bind(console,ht("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",ht("WARN"))),e<=Tt.info&&(ct.info=console.info?console.info.bind(console,ht("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",ht("INFO"))),e<=Tt.debug&&(ct.debug=console.debug?console.debug.bind(console,ht("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",ht("DEBUG"))),e<=Tt.trace&&(ct.trace=console.debug?console.debug.bind(console,ht("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",ht("TRACE")))},"setLogLevel"),ht=Ot(t=>`%c${(0,li.default)().format("ss.SSS")} : ${t} : `,"format");function ci(t,e){let n;if(e===void 0)for(let r of t)r!=null&&(n=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n=i)&&(n=i)}return n}function hi(t,e){let n;if(e===void 0)for(let r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function Bt(t,e){return t==null||e==null?NaN:te?1:t>=e?0:NaN}function rr(t,e){return t==null||e==null?NaN:et?1:e>=t?0:NaN}function qt(t){let e,n,r;t.length!==2?(e=Bt,n=(s,f)=>Bt(t(s),f),r=(s,f)=>t(s)-f):(e=t===Bt||t===rr?t:eu,n=t,r=t);function i(s,f,u=0,c=s.length){if(u>>1;n(s[h],f)<0?u=h+1:c=h}while(u>>1;n(s[h],f)<=0?u=h+1:c=h}while(uu&&r(s[h-1],f)>-r(s[h],f)?h-1:h}return{left:i,center:a,right:o}}function eu(){return 0}function ir(t){return t===null?NaN:+t}var pi=qt(Bt),mi=pi.right,nu=pi.left,ru=qt(ir).center,or=mi;var ue=class extends Map{constructor(e,n=au){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),e!=null)for(let[r,i]of e)this.set(r,i)}get(e){return super.get(di(this,e))}has(e){return super.has(di(this,e))}set(e,n){return super.set(iu(this,e),n)}delete(e){return super.delete(ou(this,e))}};function di({_intern:t,_key:e},n){let r=e(n);return t.has(r)?t.get(r):n}function iu({_intern:t,_key:e},n){let r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}function ou({_intern:t,_key:e},n){let r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}function au(t){return t!==null&&typeof t=="object"?t.valueOf():t}var su=Math.sqrt(50),uu=Math.sqrt(10),fu=Math.sqrt(2);function rn(t,e,n){let r=(e-t)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=su?10:o>=uu?5:o>=fu?2:1,s,f,u;return i<0?(u=Math.pow(10,-i)/a,s=Math.round(t*u),f=Math.round(e*u),s/ue&&--f,u=-u):(u=Math.pow(10,i)*a,s=Math.round(t/u),f=Math.round(e/u),s*ue&&--f),f0))return[];if(t===e)return[t];let r=e=i))return[];let s=o-i+1,f=new Array(s);if(r)if(a<0)for(let u=0;u+t(e)}function pu(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function mu(){return!this.__axis}function gi(t,e){var n=[],r=null,i=null,o=6,a=6,s=3,f=typeof window<"u"&&window.devicePixelRatio>1?0:.5,u=t===un||t===sn?-1:1,c=t===sn||t===ar?"x":"y",h=t===un||t===sr?lu:cu;function l(p){var x=r??(e.ticks?e.ticks.apply(e,n):e.domain()),b=i??(e.tickFormat?e.tickFormat.apply(e,n):xi),M=Math.max(o,0)+s,T=e.range(),I=+T[0]+f,S=+T[T.length-1]+f,N=(e.bandwidth?pu:hu)(e.copy(),f),$=p.selection?p.selection():p,v=$.selectAll(".domain").data([null]),P=$.selectAll(".tick").data(x,e).order(),F=P.exit(),O=P.enter().append("g").attr("class","tick"),H=P.select("line"),C=P.select("text");v=v.merge(v.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),P=P.merge(O),H=H.merge(O.append("line").attr("stroke","currentColor").attr(c+"2",u*o)),C=C.merge(O.append("text").attr("fill","currentColor").attr(c,u*M).attr("dy",t===un?"0em":t===sr?"0.71em":"0.32em")),p!==$&&(v=v.transition(p),P=P.transition(p),H=H.transition(p),C=C.transition(p),F=F.transition(p).attr("opacity",_i).attr("transform",function(y){return isFinite(y=N(y))?h(y+f):this.getAttribute("transform")}),O.attr("opacity",_i).attr("transform",function(y){var m=this.parentNode.__axis;return h((m&&isFinite(m=m(y))?m:N(y))+f)})),F.remove(),v.attr("d",t===sn||t===ar?a?"M"+u*a+","+I+"H"+f+"V"+S+"H"+u*a:"M"+f+","+I+"V"+S:a?"M"+I+","+u*a+"V"+f+"H"+S+"V"+u*a:"M"+I+","+f+"H"+S),P.attr("opacity",1).attr("transform",function(y){return h(N(y)+f)}),H.attr(c+"2",u*o),C.attr(c,u*M).text(b),$.filter(mu).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===ar?"start":t===sn?"end":"middle"),$.each(function(){this.__axis=N})}return l.scale=function(p){return arguments.length?(e=p,l):e},l.ticks=function(){return n=Array.from(arguments),l},l.tickArguments=function(p){return arguments.length?(n=p==null?[]:Array.from(p),l):n.slice()},l.tickValues=function(p){return arguments.length?(r=p==null?null:Array.from(p),l):r&&r.slice()},l.tickFormat=function(p){return arguments.length?(i=p,l):i},l.tickSize=function(p){return arguments.length?(o=a=+p,l):o},l.tickSizeInner=function(p){return arguments.length?(o=+p,l):o},l.tickSizeOuter=function(p){return arguments.length?(a=+p,l):a},l.tickPadding=function(p){return arguments.length?(s=+p,l):s},l.offset=function(p){return arguments.length?(f=+p,l):f},l}function du(t){return gi(un,t)}function xu(t){return gi(sr,t)}function _u(){}function Wt(t){return t==null?_u:function(){return this.querySelector(t)}}function yi(t){typeof t!="function"&&(t=Wt(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i=S&&(S=I+1);!($=M[S])&&++S=0;)(a=r[i])&&(o&&a.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(a,o),o=a);return this}function $i(t){t||(t=Du);function e(h,l){return h&&l?t(h.__data__,l.__data__):!h-!l}for(var n=this._groups,r=n.length,i=new Array(r),o=0;oe?1:t>=e?0:NaN}function Oi(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function Ii(){return Array.from(this)}function Ei(){for(var t=this._groups,e=0,n=t.length;e=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),fr.hasOwnProperty(e)?{space:fr[e],local:t}:t}function $u(t){return function(){this.removeAttribute(t)}}function Ou(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Iu(t,e){return function(){this.setAttribute(t,e)}}function Eu(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Ru(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function Pu(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function Fi(t,e){var n=kt(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((e==null?n.local?Ou:$u:typeof e=="function"?n.local?Pu:Ru:n.local?Eu:Iu)(n,e))}function hn(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Yu(t){return function(){this.style.removeProperty(t)}}function Fu(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Uu(t,e,n){return function(){var r=e.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function Ui(t,e,n){return arguments.length>1?this.each((e==null?Yu:typeof e=="function"?Uu:Fu)(t,e,n??"")):It(this.node(),t)}function It(t,e){return t.style.getPropertyValue(e)||hn(t).getComputedStyle(t,null).getPropertyValue(e)}function zu(t){return function(){delete this[t]}}function Lu(t,e){return function(){this[t]=e}}function Hu(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function zi(t,e){return arguments.length>1?this.each((e==null?zu:typeof e=="function"?Hu:Lu)(t,e)):this.node()[t]}function Li(t){return t.trim().split(/^|\s+/)}function lr(t){return t.classList||new Hi(t)}function Hi(t){this._node=t,this._names=Li(t.getAttribute("class")||"")}Hi.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function Bi(t,e){for(var n=lr(t),r=-1,i=e.length;++r=0&&(n=e.slice(r+1),e=e.slice(0,r)),{type:e,name:n}})}function ff(t){return function(){var e=this.__on;if(e){for(var n=0,r=-1,i=e.length,o;n>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?mn(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?mn(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=xf.exec(t))?new tt(e[1],e[2],e[3],1):(e=_f.exec(t))?new tt(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=gf.exec(t))?mn(e[1],e[2],e[3],e[4]):(e=yf.exec(t))?mn(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=vf.exec(t))?ho(e[1],e[2]/100,e[3]/100,1):(e=wf.exec(t))?ho(e[1],e[2]/100,e[3]/100,e[4]):ao.hasOwnProperty(t)?fo(ao[t]):t==="transparent"?new tt(NaN,NaN,NaN,0):null}function fo(t){return new tt(t>>16&255,t>>8&255,t&255,1)}function mn(t,e,n,r){return r<=0&&(t=e=n=NaN),new tt(t,e,n,r)}function pr(t){return t instanceof Et||(t=xt(t)),t?(t=t.rgb(),new tt(t.r,t.g,t.b,t.opacity)):new tt}function he(t,e,n,r){return arguments.length===1?pr(t):new tt(t,e,n,r??1)}function tt(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}Vt(tt,he,le(Et,{brighter(t){return t=t==null?xn:Math.pow(xn,t),new tt(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Ee:Math.pow(Ee,t),new tt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new tt(Gt(this.r),Gt(this.g),Gt(this.b),_n(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:lo,formatHex:lo,formatHex8:Tf,formatRgb:co,toString:co}));function lo(){return`#${Xt(this.r)}${Xt(this.g)}${Xt(this.b)}`}function Tf(){return`#${Xt(this.r)}${Xt(this.g)}${Xt(this.b)}${Xt((isNaN(this.opacity)?1:this.opacity)*255)}`}function co(){let t=_n(this.opacity);return`${t===1?"rgb(":"rgba("}${Gt(this.r)}, ${Gt(this.g)}, ${Gt(this.b)}${t===1?")":`, ${t})`}`}function _n(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Gt(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Xt(t){return t=Gt(t),(t<16?"0":"")+t.toString(16)}function ho(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new dt(t,e,n,r)}function mo(t){if(t instanceof dt)return new dt(t.h,t.s,t.l,t.opacity);if(t instanceof Et||(t=xt(t)),!t)return new dt;if(t instanceof dt)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,f=(o+i)/2;return s?(e===o?a=(n-r)/s+(n0&&f<1?0:a,new dt(a,s,f,t.opacity)}function xo(t,e,n,r){return arguments.length===1?mo(t):new dt(t,e,n,r??1)}function dt(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}Vt(dt,xo,le(Et,{brighter(t){return t=t==null?xn:Math.pow(xn,t),new dt(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Ee:Math.pow(Ee,t),new dt(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new tt(hr(t>=240?t-240:t+120,i,r),hr(t,i,r),hr(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new dt(po(this.h),dn(this.s),dn(this.l),_n(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let t=_n(this.opacity);return`${t===1?"hsl(":"hsla("}${po(this.h)}, ${dn(this.s)*100}%, ${dn(this.l)*100}%${t===1?")":`, ${t})`}`}}));function po(t){return t=(t||0)%360,t<0?t+360:t}function dn(t){return Math.max(0,Math.min(1,t||0))}function hr(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}var _o=Math.PI/180,go=180/Math.PI;var gn=18,yo=.96422,vo=1,wo=.82521,bo=4/29,pe=6/29,Mo=3*pe*pe,kf=pe*pe*pe;function To(t){if(t instanceof vt)return new vt(t.l,t.a,t.b,t.opacity);if(t instanceof Ct)return ko(t);t instanceof tt||(t=pr(t));var e=_r(t.r),n=_r(t.g),r=_r(t.b),i=mr((.2225045*e+.7168786*n+.0606169*r)/vo),o,a;return e===n&&n===r?o=a=i:(o=mr((.4360747*e+.3850649*n+.1430804*r)/yo),a=mr((.0139322*e+.0971045*n+.7141733*r)/wo)),new vt(116*i-16,500*(o-i),200*(i-a),t.opacity)}function gr(t,e,n,r){return arguments.length===1?To(t):new vt(t,e,n,r??1)}function vt(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}Vt(vt,gr,le(Et,{brighter(t){return new vt(this.l+gn*(t??1),this.a,this.b,this.opacity)},darker(t){return new vt(this.l-gn*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=yo*dr(e),t=vo*dr(t),n=wo*dr(n),new tt(xr(3.1338561*e-1.6168667*t-.4906146*n),xr(-.9787684*e+1.9161415*t+.033454*n),xr(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function mr(t){return t>kf?Math.pow(t,1/3):t/Mo+bo}function dr(t){return t>pe?t*t*t:Mo*(t-bo)}function xr(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function _r(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Sf(t){if(t instanceof Ct)return new Ct(t.h,t.c,t.l,t.opacity);if(t instanceof vt||(t=To(t)),t.a===0&&t.b===0)return new Ct(NaN,0()=>t;function So(t,e){return function(n){return t+n*e}}function Cf(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function Co(t,e){var n=e-t;return n?So(t,n>180||n<-180?n-360*Math.round(n/360):n):me(isNaN(t)?e:t)}function No(t){return(t=+t)==1?Nt:function(e,n){return n-e?Cf(e,n,t):me(isNaN(e)?n:e)}}function Nt(t,e){var n=e-t;return n?So(t,n):me(isNaN(t)?e:t)}function Ao(t){return function(e,n){var r=t((e=Pe(e)).h,(n=Pe(n)).h),i=Nt(e.c,n.c),o=Nt(e.l,n.l),a=Nt(e.opacity,n.opacity);return function(s){return e.h=r(s),e.c=i(s),e.l=o(s),e.opacity=a(s),e+""}}}var Nf=Ao(Co),Af=Ao(Nt);function yr(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}function Do(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,s=rn&&(o=e.slice(n,o),s[a]?s[a]+=o:s[++a]=o),(r=r[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,f.push({i:a,x:et(r,i)})),n=vr.lastIndex;return n180?c+=360:c-u>180&&(u+=360),l.push({i:h.push(i(h)+"rotate(",null,r)-2,x:et(u,c)})):c&&h.push(i(h)+"rotate("+c+r)}function s(u,c,h,l){u!==c?l.push({i:h.push(i(h)+"skewX(",null,r)-2,x:et(u,c)}):c&&h.push(i(h)+"skewX("+c+r)}function f(u,c,h,l,p,x){if(u!==h||c!==l){var b=p.push(i(p)+"scale(",null,",",null,")");x.push({i:b-4,x:et(u,h)},{i:b-2,x:et(c,l)})}else(h!==1||l!==1)&&p.push(i(p)+"scale("+h+","+l+")")}return function(u,c){var h=[],l=[];return u=t(u),c=t(c),o(u.translateX,u.translateY,c.translateX,c.translateY,h,l),a(u.rotate,c.rotate,h,l),s(u.skewX,c.skewX,h,l),f(u.scaleX,u.scaleY,c.scaleX,c.scaleY,h,l),u=c=null,function(p){for(var x=-1,b=l.length,M;++x=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function Kt(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function wt(t){return t=Kt(Math.abs(t)),t?t[1]:NaN}function Bo(t,e){return function(n,r){for(var i=n.length,o=[],a=0,s=t[0],f=0;i>0&&s>0&&(f+s+1>r&&(s=Math.max(1,r-f)),o.push(n.substring(i-=s,i+s)),!((f+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(e)}}function qo(t){return function(e){return e.replace(/[0-9]/g,function(n){return t[+n]})}}var Ef=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Rt(t){if(!(e=Ef.exec(t)))throw new Error("invalid format: "+t);var e;return new wn({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}Rt.prototype=wn.prototype;function wn(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}wn.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Wo(t){t:for(var e=t.length,n=1,r=-1,i;n0&&(r=0);break}return r>0?t.slice(0,r)+t.slice(i+1):t}var Sr;function Vo(t,e){var n=Kt(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(Sr=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Kt(t,Math.max(0,e+o-1))[0]}function Cr(t,e){var n=Kt(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}var Nr={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:Ho,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Cr(t*100,e),r:Cr,s:Vo,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Ar(t){return t}var Xo=Array.prototype.map,Go=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function Zo(t){var e=t.grouping===void 0||t.thousands===void 0?Ar:Bo(Xo.call(t.grouping,Number),t.thousands+""),n=t.currency===void 0?"":t.currency[0]+"",r=t.currency===void 0?"":t.currency[1]+"",i=t.decimal===void 0?".":t.decimal+"",o=t.numerals===void 0?Ar:qo(Xo.call(t.numerals,String)),a=t.percent===void 0?"%":t.percent+"",s=t.minus===void 0?"\u2212":t.minus+"",f=t.nan===void 0?"NaN":t.nan+"";function u(h){h=Rt(h);var l=h.fill,p=h.align,x=h.sign,b=h.symbol,M=h.zero,T=h.width,I=h.comma,S=h.precision,N=h.trim,$=h.type;$==="n"?(I=!0,$="g"):Nr[$]||(S===void 0&&(S=12),N=!0,$="g"),(M||l==="0"&&p==="=")&&(M=!0,l="0",p="=");var v=b==="$"?n:b==="#"&&/[boxX]/.test($)?"0"+$.toLowerCase():"",P=b==="$"?r:/[%p]/.test($)?a:"",F=Nr[$],O=/[defgprs%]/.test($);S=S===void 0?6:/[gprs]/.test($)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function H(C){var y=v,m=P,d,k,g;if($==="c")m=F(C)+m,C="";else{C=+C;var A=C<0||1/C<0;if(C=isNaN(C)?f:F(Math.abs(C),S),N&&(C=Wo(C)),A&&+C==0&&x!=="+"&&(A=!1),y=(A?x==="("?x:s:x==="-"||x==="("?"":x)+y,m=($==="s"?Go[8+Sr/3]:"")+m+(A&&x==="("?")":""),O){for(d=-1,k=C.length;++dg||g>57){m=(g===46?i+C.slice(d+1):C.slice(d))+m,C=C.slice(0,d);break}}}I&&!M&&(C=e(C,1/0));var D=y.length+C.length+m.length,R=D>1)+y+C+m+R.slice(D);break;default:C=R+y+C+m;break}return o(C)}return H.toString=function(){return h+""},H}function c(h,l){var p=u((h=Rt(h),h.type="f",h)),x=Math.max(-8,Math.min(8,Math.floor(wt(l)/3)))*3,b=Math.pow(10,-x),M=Go[8+x/3];return function(T){return p(b*T)+M}}return{format:u,formatPrefix:c}}var bn,Mn,Tn;Dr({thousands:",",grouping:[3],currency:["$",""]});function Dr(t){return bn=Zo(t),Mn=bn.format,Tn=bn.formatPrefix,bn}function $r(t){return Math.max(0,-wt(Math.abs(t)))}function Or(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(wt(e)/3)))*3-wt(Math.abs(t)))}function Ir(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,wt(e)-wt(t))+1}function Rf(t){var e=0,n=t.children,r=n&&n.length;if(!r)e=1;else for(;--r>=0;)e+=n[r].value;t.value=e}function Qo(){return this.eachAfter(Rf)}function Ko(t,e){let n=-1;for(let r of this)t.call(e,r,++n,this);return this}function Jo(t,e){for(var n=this,r=[n],i,o,a=-1;n=r.pop();)if(t.call(e,n,++a,this),i=n.children)for(o=i.length-1;o>=0;--o)r.push(i[o]);return this}function jo(t,e){for(var n=this,r=[n],i=[],o,a,s,f=-1;n=r.pop();)if(i.push(n),o=n.children)for(a=0,s=o.length;a=0;)n+=r[i].value;e.value=n})}function na(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})}function ra(t){for(var e=this,n=Pf(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r}function Pf(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}function ia(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e}function oa(){return Array.from(this)}function aa(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t}function sa(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e}function*ua(){var t=this,e,n=[t],r,i,o;do for(e=n.reverse(),n=[];t=e.pop();)if(yield t,r=t.children)for(i=0,o=r.length;i=0;--s)i.push(o=a[s]=new Fe(a[s])),o.parent=r,o.depth=r.depth+1;return n.eachBefore(Lf)}function Yf(){return kn(this).eachBefore(zf)}function Ff(t){return t.children}function Uf(t){return Array.isArray(t)?t[1]:null}function zf(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function Lf(t){var e=0;do t.height=e;while((t=t.parent)&&t.height<++e)}function Fe(t){this.data=t,this.depth=this.height=0,this.parent=null}Fe.prototype=kn.prototype={constructor:Fe,count:Qo,each:Ko,eachAfter:jo,eachBefore:Jo,find:ta,sum:ea,sort:na,path:ra,ancestors:ia,descendants:oa,leaves:aa,links:sa,copy:Yf,[Symbol.iterator]:ua};function fa(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function la(t,e,n,r,i){for(var o=t.children,a,s=-1,f=o.length,u=t.value&&(r-e)/t.value;++sI&&(I=u),v=M*M*$,S=Math.max(I/v,v/T),S>N){M-=u;break}N=S}a.push(f={value:M,dice:p1?r:1)},n})(Hf);function pa(t){if(typeof t!="function")throw new Error;return t}function de(){return 0}function xe(t){return function(){return t}}function qf(){var t=ha,e=!1,n=1,r=1,i=[0],o=de,a=de,s=de,f=de,u=de;function c(l){return l.x0=l.y0=0,l.x1=n,l.y1=r,l.eachBefore(h),i=[0],e&&l.eachBefore(fa),l}function h(l){var p=i[l.depth],x=l.x0+p,b=l.y0+p,M=l.x1-p,T=l.y1-p;Me&&(n=t,t=e,e=n),function(r){return Math.max(t,Math.min(e,r))}}function Vf(t,e,n){var r=t[0],i=t[1],o=e[0],a=e[1];return i2?Xf:Vf,f=u=null,h}function h(l){return l==null||isNaN(l=+l)?o:(f||(f=s(t.map(r),e,n)))(r(a(l)))}return h.invert=function(l){return a(i((u||(u=s(e,t.map(r),et)))(l)))},h.domain=function(l){return arguments.length?(t=Array.from(l,Yr),c()):t.slice()},h.range=function(l){return arguments.length?(e=Array.from(l),c()):e.slice()},h.rangeRound=function(l){return e=Array.from(l),n=br,c()},h.clamp=function(l){return arguments.length?(a=l?!0:_e,c()):a!==_e},h.interpolate=function(l){return arguments.length?(n=l,c()):n},h.unknown=function(l){return arguments.length?(o=l,h):o},function(l,p){return r=l,i=p,c()}}function ze(){return Gf()(_e,_e)}function Ur(t,e,n,r){var i=fe(t,e,n),o;switch(r=Rt(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(t),Math.abs(e));return r.precision==null&&!isNaN(o=Or(i,a))&&(r.precision=o),Tn(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=Ir(i,Math.max(Math.abs(t),Math.abs(e))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=$r(i))&&(r.precision=o-(r.type==="%")*2);break}}return Mn(r)}function Zf(t){var e=t.domain;return t.ticks=function(n){var r=e();return on(r[0],r[r.length-1],n??10)},t.tickFormat=function(n,r){var i=e();return Ur(i[0],i[i.length-1],n??10,r)},t.nice=function(n){n==null&&(n=10);var r=e(),i=0,o=r.length-1,a=r[i],s=r[o],f,u,c=10;for(s0;){if(u=De(a,s,n),u===f)return r[i]=a,r[o]=s,e(r);if(u>0)a=Math.floor(a/u)*u,s=Math.ceil(s/u)*u;else if(u<0)a=Math.ceil(a*u)/u,s=Math.floor(s*u)/u;else break;f=u}return t},t}function zr(){var t=ze();return t.copy=function(){return Sn(t,zr())},Pt.apply(t,arguments),Zf(t)}var Lr=new Date,Hr=new Date;function L(t,e,n,r){function i(o){return t(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(t(o=new Date(+o)),o),i.ceil=o=>(t(o=new Date(o-1)),e(o,1),t(o),o),i.round=o=>{let a=i(o),s=i.ceil(o);return o-a(e(o=new Date(+o),a==null?1:Math.floor(a)),o),i.range=(o,a,s)=>{let f=[];if(o=i.ceil(o),s=s==null?1:Math.floor(s),!(o0))return f;let u;do f.push(u=new Date(+o)),e(o,s),t(o);while(uL(a=>{if(a>=a)for(;t(a),!o(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;e(a,-1),!o(a););else for(;--s>=0;)for(;e(a,1),!o(a););}),n&&(i.count=(o,a)=>(Lr.setTime(+o),Hr.setTime(+a),t(Lr),t(Hr),Math.floor(n(Lr,Hr))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?a=>r(a)%o===0:a=>i.count(0,a)%o===0):i)),i}var Jt=L(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Jt.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?L(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Jt);var da=Jt.range;var bt=L(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*1e3)},(t,e)=>(e-t)/1e3,t=>t.getUTCSeconds()),xa=bt.range;var ge=L(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*1e3)},(t,e)=>{t.setTime(+t+e*6e4)},(t,e)=>(e-t)/6e4,t=>t.getMinutes()),Qf=ge.range,Cn=L(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*6e4)},(t,e)=>(e-t)/6e4,t=>t.getUTCMinutes()),Kf=Cn.range;var ye=L(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*1e3-t.getMinutes()*6e4)},(t,e)=>{t.setTime(+t+e*36e5)},(t,e)=>(e-t)/36e5,t=>t.getHours()),Jf=ye.range,Nn=L(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*36e5)},(t,e)=>(e-t)/36e5,t=>t.getUTCHours()),jf=Nn.range;var At=L(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/864e5,t=>t.getDate()-1),tl=At.range,He=L(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>t.getUTCDate()-1),el=He.range,An=L(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>Math.floor(t/864e5)),nl=An.range;function ee(t){return L(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/6048e5)}var Dt=ee(0),ve=ee(1),ga=ee(2),ya=ee(3),Yt=ee(4),va=ee(5),wa=ee(6),ba=Dt.range,rl=ve.range,il=ga.range,ol=ya.range,al=Yt.range,sl=va.range,ul=wa.range;function ne(t){return L(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/6048e5)}var re=ne(0),we=ne(1),Ma=ne(2),Ta=ne(3),Ft=ne(4),ka=ne(5),Sa=ne(6),Ca=re.range,fl=we.range,ll=Ma.range,cl=Ta.range,hl=Ft.range,pl=ka.range,ml=Sa.range;var be=L(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth()),dl=be.range,Dn=L(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth()),xl=Dn.range;var ft=L(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());ft.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:L(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});var _l=ft.range,_t=L(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());_t.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:L(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});var gl=_t.range;function Aa(t,e,n,r,i,o){let a=[[bt,1,1e3],[bt,5,5*1e3],[bt,15,15*1e3],[bt,30,30*1e3],[o,1,6e4],[o,5,5*6e4],[o,15,15*6e4],[o,30,30*6e4],[i,1,36e5],[i,3,3*36e5],[i,6,6*36e5],[i,12,12*36e5],[r,1,864e5],[r,2,2*864e5],[n,1,6048e5],[e,1,2592e6],[e,3,3*2592e6],[t,1,31536e6]];function s(u,c,h){let l=cM).right(a,l);if(p===a.length)return t.every(fe(u/31536e6,c/31536e6,h));if(p===0)return Jt.every(Math.max(fe(u,c,h),1));let[x,b]=a[l/a[p-1][2]53)return null;"w"in _||(_.w=1),"Z"in _?(B=Vr(Be(_.y,0,1)),st=B.getUTCDay(),B=st>4||st===0?we.ceil(B):we(B),B=He.offset(B,(_.V-1)*7),_.y=B.getUTCFullYear(),_.m=B.getUTCMonth(),_.d=B.getUTCDate()+(_.w+6)%7):(B=Wr(Be(_.y,0,1)),st=B.getDay(),B=st>4||st===0?ve.ceil(B):ve(B),B=At.offset(B,(_.V-1)*7),_.y=B.getFullYear(),_.m=B.getMonth(),_.d=B.getDate()+(_.w+6)%7)}else("W"in _||"U"in _)&&("w"in _||(_.w="u"in _?_.u%7:"W"in _?1:0),st="Z"in _?Vr(Be(_.y,0,1)).getUTCDay():Wr(Be(_.y,0,1)).getDay(),_.m=0,_.d="W"in _?(_.w+6)%7+_.W*7-(st+5)%7:_.w+_.U*7-(st+6)%7);return"Z"in _?(_.H+=_.Z/100|0,_.M+=_.Z%100,Vr(_)):Wr(_)}}function F(w,E,Y,_){for(var ot=0,B=E.length,st=Y.length,ut,Ht;ot=st)return-1;if(ut=E.charCodeAt(ot++),ut===37){if(ut=E.charAt(ot++),Ht=$[ut in Da?E.charAt(ot++):ut],!Ht||(_=Ht(w,Y,_))<0)return-1}else if(ut!=Y.charCodeAt(_++))return-1}return _}function O(w,E,Y){var _=u.exec(E.slice(Y));return _?(w.p=c.get(_[0].toLowerCase()),Y+_[0].length):-1}function H(w,E,Y){var _=p.exec(E.slice(Y));return _?(w.w=x.get(_[0].toLowerCase()),Y+_[0].length):-1}function C(w,E,Y){var _=h.exec(E.slice(Y));return _?(w.w=l.get(_[0].toLowerCase()),Y+_[0].length):-1}function y(w,E,Y){var _=T.exec(E.slice(Y));return _?(w.m=I.get(_[0].toLowerCase()),Y+_[0].length):-1}function m(w,E,Y){var _=b.exec(E.slice(Y));return _?(w.m=M.get(_[0].toLowerCase()),Y+_[0].length):-1}function d(w,E,Y){return F(w,e,E,Y)}function k(w,E,Y){return F(w,n,E,Y)}function g(w,E,Y){return F(w,r,E,Y)}function A(w){return a[w.getDay()]}function D(w){return o[w.getDay()]}function R(w){return f[w.getMonth()]}function z(w){return s[w.getMonth()]}function q(w){return i[+(w.getHours()>=12)]}function V(w){return 1+~~(w.getMonth()/3)}function K(w){return a[w.getUTCDay()]}function lt(w){return o[w.getUTCDay()]}function Z(w){return f[w.getUTCMonth()]}function mt(w){return s[w.getUTCMonth()]}function at(w){return i[+(w.getUTCHours()>=12)]}function G(w){return 1+~~(w.getUTCMonth()/3)}return{format:function(w){var E=v(w+="",S);return E.toString=function(){return w},E},parse:function(w){var E=P(w+="",!1);return E.toString=function(){return w},E},utcFormat:function(w){var E=v(w+="",N);return E.toString=function(){return w},E},utcParse:function(w){var E=P(w+="",!0);return E.toString=function(){return w},E}}}var Da={"-":"",_:" ",0:"0"},J=/^\s*\d+/,bl=/^%/,Ml=/[\\^$*+?|[\]().{}]/g;function U(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o[e.toLowerCase(),n]))}function kl(t,e,n){var r=J.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Sl(t,e,n){var r=J.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Cl(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Nl(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Al(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function $a(t,e,n){var r=J.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Oa(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Dl(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function $l(t,e,n){var r=J.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function Ol(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Ia(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Il(t,e,n){var r=J.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Ea(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function El(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Rl(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Pl(t,e,n){var r=J.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Yl(t,e,n){var r=J.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Fl(t,e,n){var r=bl.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Ul(t,e,n){var r=J.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function zl(t,e,n){var r=J.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Ra(t,e){return U(t.getDate(),e,2)}function Ll(t,e){return U(t.getHours(),e,2)}function Hl(t,e){return U(t.getHours()%12||12,e,2)}function Bl(t,e){return U(1+At.count(ft(t),t),e,3)}function za(t,e){return U(t.getMilliseconds(),e,3)}function ql(t,e){return za(t,e)+"000"}function Wl(t,e){return U(t.getMonth()+1,e,2)}function Vl(t,e){return U(t.getMinutes(),e,2)}function Xl(t,e){return U(t.getSeconds(),e,2)}function Gl(t){var e=t.getDay();return e===0?7:e}function Zl(t,e){return U(Dt.count(ft(t)-1,t),e,2)}function La(t){var e=t.getDay();return e>=4||e===0?Yt(t):Yt.ceil(t)}function Ql(t,e){return t=La(t),U(Yt.count(ft(t),t)+(ft(t).getDay()===4),e,2)}function Kl(t){return t.getDay()}function Jl(t,e){return U(ve.count(ft(t)-1,t),e,2)}function jl(t,e){return U(t.getFullYear()%100,e,2)}function tc(t,e){return t=La(t),U(t.getFullYear()%100,e,2)}function ec(t,e){return U(t.getFullYear()%1e4,e,4)}function nc(t,e){var n=t.getDay();return t=n>=4||n===0?Yt(t):Yt.ceil(t),U(t.getFullYear()%1e4,e,4)}function rc(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+U(e/60|0,"0",2)+U(e%60,"0",2)}function Pa(t,e){return U(t.getUTCDate(),e,2)}function ic(t,e){return U(t.getUTCHours(),e,2)}function oc(t,e){return U(t.getUTCHours()%12||12,e,2)}function ac(t,e){return U(1+He.count(_t(t),t),e,3)}function Ha(t,e){return U(t.getUTCMilliseconds(),e,3)}function sc(t,e){return Ha(t,e)+"000"}function uc(t,e){return U(t.getUTCMonth()+1,e,2)}function fc(t,e){return U(t.getUTCMinutes(),e,2)}function lc(t,e){return U(t.getUTCSeconds(),e,2)}function cc(t){var e=t.getUTCDay();return e===0?7:e}function hc(t,e){return U(re.count(_t(t)-1,t),e,2)}function Ba(t){var e=t.getUTCDay();return e>=4||e===0?Ft(t):Ft.ceil(t)}function pc(t,e){return t=Ba(t),U(Ft.count(_t(t),t)+(_t(t).getUTCDay()===4),e,2)}function mc(t){return t.getUTCDay()}function dc(t,e){return U(we.count(_t(t)-1,t),e,2)}function xc(t,e){return U(t.getUTCFullYear()%100,e,2)}function _c(t,e){return t=Ba(t),U(t.getUTCFullYear()%100,e,2)}function gc(t,e){return U(t.getUTCFullYear()%1e4,e,4)}function yc(t,e){var n=t.getUTCDay();return t=n>=4||n===0?Ft(t):Ft.ceil(t),U(t.getUTCFullYear()%1e4,e,4)}function vc(){return"+0000"}function Ya(){return"%"}function Fa(t){return+t}function Ua(t){return Math.floor(+t/1e3)}var Me,$n,qa,Wa,Va;Gr({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Gr(t){return Me=Xr(t),$n=Me.format,qa=Me.parse,Wa=Me.utcFormat,Va=Me.utcParse,Me}function Zr(t,e){t=t.slice();var n=0,r=t.length-1,i=t[n],o=t[r],a;return o1?0:t<-1?Te:Math.acos(t)}function Kr(t){return t>=1?Ve:t<=-1?-Ve:Math.asin(t)}var Jr=Math.PI,jr=2*Jr,oe=1e-6,Tc=jr-oe;function Ja(t){this._+=t[0];for(let e=1,n=t.length;e=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Ja;let n=10**e;return function(r){this._+=r[0];for(let i=1,o=r.length;ioe)if(!(Math.abs(h*f-u*c)>oe)||!o)this._append`L${this._x1=e},${this._y1=n}`;else{let p=r-a,x=i-s,b=f*f+u*u,M=p*p+x*x,T=Math.sqrt(b),I=Math.sqrt(l),S=o*Math.tan((Jr-Math.acos((b+l-M)/(2*T*I)))/2),N=S/I,$=S/T;Math.abs(N-1)>oe&&this._append`L${e+N*c},${n+N*h}`,this._append`A${o},${o},0,0,${+(h*p>c*x)},${this._x1=e+$*f},${this._y1=n+$*u}`}}arc(e,n,r,i,o,a){if(e=+e,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),f=r*Math.sin(i),u=e+s,c=n+f,h=1^a,l=a?i-o:o-i;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>oe||Math.abs(this._y1-c)>oe)&&this._append`L${u},${c}`,r&&(l<0&&(l=l%jr+jr),l>Tc?this._append`A${r},${r},0,1,${h},${e-s},${n-f}A${r},${r},0,1,${h},${this._x1=u},${this._y1=c}`:l>oe&&this._append`A${r},${r},0,${+(l>=Jr)},${h},${this._x1=e+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(e,n,r,i){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}};function ja(){return new ae}ja.prototype=ae.prototype;function In(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(n==null)e=null;else{let r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);e=r}return t},()=>new ae(e)}function Sc(t){return t.innerRadius}function Cc(t){return t.outerRadius}function Nc(t){return t.startAngle}function Ac(t){return t.endAngle}function Dc(t){return t&&t.padAngle}function $c(t,e,n,r,i,o,a,s){var f=n-t,u=r-e,c=a-i,h=s-o,l=h*f-c*u;if(!(l*ld*d+k*k&&(F=H,O=C),{cx:F,cy:O,x01:-c,y01:-h,x11:F*(i/$-1),y11:O*(i/$-1)}}function Oc(){var t=Sc,e=Cc,n=W(0),r=null,i=Nc,o=Ac,a=Dc,s=null,f=In(u);function u(){var c,h,l=+t.apply(this,arguments),p=+e.apply(this,arguments),x=i.apply(this,arguments)-Ve,b=o.apply(this,arguments)-Ve,M=Qr(b-x),T=b>x;if(s||(s=c=f()),pj))s.moveTo(0,0);else if(M>ke-j)s.moveTo(p*Ut(x),p*gt(x)),s.arc(0,0,p,x,b,!T),l>j&&(s.moveTo(l*Ut(b),l*gt(b)),s.arc(0,0,l,b,x,T));else{var I=x,S=b,N=x,$=b,v=M,P=M,F=a.apply(this,arguments)/2,O=F>j&&(r?+r.apply(this,arguments):ie(l*l+p*p)),H=On(Qr(p-l)/2,+n.apply(this,arguments)),C=H,y=H,m,d;if(O>j){var k=Kr(O/l*gt(F)),g=Kr(O/p*gt(F));(v-=k*2)>j?(k*=T?1:-1,N+=k,$-=k):(v=0,N=$=(x+b)/2),(P-=g*2)>j?(g*=T?1:-1,I+=g,S-=g):(P=0,I=S=(x+b)/2)}var A=p*Ut(I),D=p*gt(I),R=l*Ut($),z=l*gt($);if(H>j){var q=p*Ut(S),V=p*gt(S),K=l*Ut(N),lt=l*gt(N),Z;if(Mj?y>j?(m=En(K,lt,A,D,p,y,T),d=En(q,V,R,z,p,y,T),s.moveTo(m.cx+m.x01,m.cy+m.y01),yj)||!(v>j)?s.lineTo(R,z):C>j?(m=En(R,z,q,V,l,-C,T),d=En(A,D,K,lt,l,-C,T),s.lineTo(m.cx+m.x01,m.cy+m.y01),Ct?1:e>=t?0:NaN}function is(t){return t}function Ec(){var t=is,e=rs,n=null,r=W(0),i=W(ke),o=W(0);function a(s){var f,u=(s=Rn(s)).length,c,h,l=0,p=new Array(u),x=new Array(u),b=+r.apply(this,arguments),M=Math.min(ke,Math.max(-ke,i.apply(this,arguments)-b)),T,I=Math.min(Math.abs(M)/u,o.apply(this,arguments)),S=I*(M<0?-1:1),N;for(f=0;f0&&(l+=N);for(e!=null?p.sort(function($,v){return e(x[$],x[v])}):n!=null&&p.sort(function($,v){return n(s[$],s[v])}),f=0,h=l?(M-u*S)/l:0;f0?N*h:0)+S,x[c]={data:s[c],index:f,value:N,startAngle:b,endAngle:T,padAngle:I};return x}return a.value=function(s){return arguments.length?(t=typeof s=="function"?s:W(+s),a):t},a.sortValues=function(s){return arguments.length?(e=s,n=null,a):e},a.sort=function(s){return arguments.length?(n=s,e=null,a):n},a.startAngle=function(s){return arguments.length?(r=typeof s=="function"?s:W(+s),a):r},a.endAngle=function(s){return arguments.length?(i=typeof s=="function"?s:W(+s),a):i},a.padAngle=function(s){return arguments.length?(o=typeof s=="function"?s:W(+s),a):o},a}function Se(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function Xe(t){this._context=t}Xe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Se(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Se(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Rc(t){return new Xe(t)}var Pn=class{constructor(e,n){this._context=e,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,n){switch(e=+e,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,n,e,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,e,this._y0,e,n);break}}this._x0=e,this._y0=n}};function Pc(t){return new Pn(t,!0)}function Yc(t){return new Pn(t,!1)}function pt(){}function os(t){this._context=t}os.prototype={areaStart:pt,areaEnd:pt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Se(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Fc(t){return new os(t)}function as(t){this._context=t}as.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Se(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Uc(t){return new as(t)}function ss(t,e){this._basis=new Xe(t),this._beta=e}ss.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r=t[0],i=e[0],o=t[n]-r,a=e[n]-i,s=-1,f;++s<=n;)f=s/n,this._basis.point(this._beta*t[s]+(1-this._beta)*(r+f*o),this._beta*e[s]+(1-this._beta)*(i+f*a));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var zc=(function t(e){function n(r){return e===1?new Xe(r):new ss(r,e)}return n.beta=function(r){return t(+r)},n})(.85);function Ce(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function Yn(t,e){this._context=t,this._k=(1-e)/6}Yn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Ce(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Ce(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Lc=(function t(e){function n(r){return new Yn(r,e)}return n.tension=function(r){return t(+r)},n})(0);function Fn(t,e){this._context=t,this._k=(1-e)/6}Fn.prototype={areaStart:pt,areaEnd:pt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Ce(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Hc=(function t(e){function n(r){return new Fn(r,e)}return n.tension=function(r){return t(+r)},n})(0);function Un(t,e){this._context=t,this._k=(1-e)/6}Un.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ce(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Bc=(function t(e){function n(r){return new Un(r,e)}return n.tension=function(r){return t(+r)},n})(0);function Ge(t,e,n){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>j){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,f=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/f,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/f}if(t._l23_a>j){var u=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,c=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*u+t._x1*t._l23_2a-e*t._l12_2a)/c,a=(a*u+t._y1*t._l23_2a-n*t._l12_2a)/c}t._context.bezierCurveTo(r,i,o,a,t._x2,t._y2)}function us(t,e){this._context=t,this._alpha=e}us.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Ge(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var qc=(function t(e){function n(r){return e?new us(r,e):new Yn(r,0)}return n.alpha=function(r){return t(+r)},n})(.5);function fs(t,e){this._context=t,this._alpha=e}fs.prototype={areaStart:pt,areaEnd:pt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Ge(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Wc=(function t(e){function n(r){return e?new fs(r,e):new Fn(r,0)}return n.alpha=function(r){return t(+r)},n})(.5);function ls(t,e){this._context=t,this._alpha=e}ls.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ge(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Vc=(function t(e){function n(r){return e?new ls(r,e):new Un(r,0)}return n.alpha=function(r){return t(+r)},n})(.5);function cs(t){this._context=t}cs.prototype={areaStart:pt,areaEnd:pt,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function Xc(t){return new cs(t)}function hs(t){return t<0?-1:1}function ps(t,e,n){var r=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(n-t._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(hs(o)+hs(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function ms(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function ei(t,e,n){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,s=(o-r)/3;t._context.bezierCurveTo(r+s,i+s*e,o-s,a-s*n,o,a)}function zn(t){this._context=t}zn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:ei(this,this._t0,ms(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,ei(this,ms(this,n=ps(this,t,e)),n);break;default:ei(this,this._t0,n=ps(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}};function ds(t){this._context=new xs(t)}(ds.prototype=Object.create(zn.prototype)).point=function(t,e){zn.prototype.point.call(this,e,t)};function xs(t){this._context=t}xs.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,o){this._context.bezierCurveTo(e,t,r,n,o,i)}};function Gc(t){return new zn(t)}function Zc(t){return new ds(t)}function gs(t){this._context=t}gs.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),n===2)this._context.lineTo(t[1],e[1]);else for(var r=_s(t),i=_s(e),o=0,a=1;a=0;--e)i[e]=(a[e]-i[e+1])/o[e];for(o[n-1]=(t[n]+i[n-1])/2,e=0;e=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}break}}this._x=t,this._y=e}};function Kc(t){return new Ln(t,.5)}function Jc(t){return new Ln(t,0)}function jc(t){return new Ln(t,1)}var th={value:()=>{}};function vs(){for(var t=0,e=arguments.length,n={},r;t=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Hn.prototype=vs.prototype={constructor:Hn,on:function(t,e){var n=this._,r=eh(t+"",n),i,o=-1,a=r.length;if(arguments.length<2){for(;++o0)for(var n=new Array(i),r=0,i,o;r=0&&t._call.call(void 0,e),t=t._next;--Ne}function ws(){se=(qn=Je.now())+Wn,Ne=Qe=0;try{Ts()}finally{Ne=0,oh(),se=0}}function ih(){var t=Je.now(),e=t-qn;e>bs&&(Wn-=e,qn=t)}function oh(){for(var t,e=Bn,n,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Bn=n);Ke=t,ri(r)}function ri(t){if(!Ne){Qe&&(Qe=clearTimeout(Qe));var e=t-se;e>24?(t<1/0&&(Qe=setTimeout(ws,t-Je.now()-Wn)),Ze&&(Ze=clearInterval(Ze))):(Ze||(qn=Je.now(),Ze=setInterval(ih,bs)),Ne=1,Ms(ws))}}function Xn(t,e,n){var r=new je;return e=e==null?0:+e,r.restart(i=>{r.stop(),t(i+e)},e,n),r}var ah=ni("start","end","cancel","interrupt"),sh=[],Cs=0,ks=1,Zn=2,Gn=3,Ss=4,Qn=5,en=6;function zt(t,e,n,r,i,o){var a=t.__transition;if(!a)t.__transition={};else if(n in a)return;uh(t,n,{name:e,index:r,group:i,on:ah,tween:sh,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:Cs})}function nn(t,e){var n=Q(t,e);if(n.state>Cs)throw new Error("too late; already scheduled");return n}function rt(t,e){var n=Q(t,e);if(n.state>Gn)throw new Error("too late; already running");return n}function Q(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function uh(t,e,n){var r=t.__transition,i;r[e]=n,n.timer=Vn(o,0,n.time);function o(u){n.state=ks,n.timer.restart(a,n.delay,n.time),n.delay<=u&&a(u-n.delay)}function a(u){var c,h,l,p;if(n.state!==ks)return f();for(c in r)if(p=r[c],p.name===n.name){if(p.state===Gn)return Xn(a);p.state===Ss?(p.state=en,p.timer.stop(),p.on.call("interrupt",t,t.__data__,p.index,p.group),delete r[c]):+cZn&&r.state=0&&(e=e.slice(0,n)),!e||e==="start"})}function Nh(t,e,n){var r,i,o=Ch(e)?nn:rt;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(e,n),a.on=i}}function Fs(t,e){var n=this._id;return arguments.length<2?Q(this.node(),n).on.on(t):this.each(Nh(n,t,e))}function Ah(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function Us(){return this.on("end.remove",Ah(this._id))}function zs(t){var e=this._name,n=this._id;typeof t!="function"&&(t=Wt(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a