Files
wifi-densepose/examples/rvf/dashboard/dist/assets/d3-BwsdWUnD.js
ruv d803bfe2b1 Squashed 'vendor/ruvector/' content from commit b64c2172
git-subtree-dir: vendor/ruvector
git-subtree-split: b64c21726f2bb37286d9ee36a7869fef60cc6900
2026-02-28 14:39:40 -05:00

2 lines
36 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
function nt(t,n){return t==null||n==null?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function hn(t,n){return t==null||n==null?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function Xt(t){let n,e,r;t.length!==2?(n=nt,e=(f,u)=>nt(t(f),u),r=(f,u)=>t(f)-u):(n=t===nt||t===hn?t:dn,e=t,r=t);function i(f,u,s=0,c=f.length){if(s<c){if(n(u,u)!==0)return c;do{const h=s+c>>>1;e(f[h],u)<0?s=h+1:c=h}while(s<c)}return s}function o(f,u,s=0,c=f.length){if(s<c){if(n(u,u)!==0)return c;do{const h=s+c>>>1;e(f[h],u)<=0?s=h+1:c=h}while(s<c)}return s}function a(f,u,s=0,c=f.length){const h=i(f,u,s,c-1);return h>s&&r(f[h-1],u)>-r(f[h],u)?h-1:h}return{left:i,center:a,right:o}}function dn(){return 0}function gn(t){return t===null?NaN:+t}const mn=Xt(nt),pn=mn.right;Xt(gn).center;const xn=Math.sqrt(50),yn=Math.sqrt(10),_n=Math.sqrt(2);function et(t,n,e){const r=(n-t)/Math.max(0,e),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=xn?10:o>=yn?5:o>=_n?2:1;let f,u,s;return i<0?(s=Math.pow(10,-i)/a,f=Math.round(t*s),u=Math.round(n*s),f/s<t&&++f,u/s>n&&--u,s=-s):(s=Math.pow(10,i)*a,f=Math.round(t/s),u=Math.round(n/s),f*s<t&&++f,u*s>n&&--u),u<f&&.5<=e&&e<2?et(t,n,e*2):[f,u,s]}function wn(t,n,e){if(n=+n,t=+t,e=+e,!(e>0))return[];if(t===n)return[t];const r=n<t,[i,o,a]=r?et(n,t,e):et(t,n,e);if(!(o>=i))return[];const f=o-i+1,u=new Array(f);if(r)if(a<0)for(let s=0;s<f;++s)u[s]=(o-s)/-a;else for(let s=0;s<f;++s)u[s]=(o-s)*a;else if(a<0)for(let s=0;s<f;++s)u[s]=(i+s)/-a;else for(let s=0;s<f;++s)u[s]=(i+s)*a;return u}function gt(t,n,e){return n=+n,t=+t,e=+e,et(t,n,e)[2]}function bn(t,n,e){n=+n,t=+t,e=+e;const r=n<t,i=r?gt(n,t,e):gt(t,n,e);return(r?-1:1)*(i<0?1/-i:i)}function vn(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t);break}return this}function vt(t,n,e){t.prototype=n.prototype=e,e.constructor=t}function Zt(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function Y(){}var X=.7,rt=1/X,B="\\s*([+-]?\\d+)\\s*",Z="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",R="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Mn=/^#([0-9a-f]{3,8})$/,$n=new RegExp(`^rgb\\(${B},${B},${B}\\)$`),Nn=new RegExp(`^rgb\\(${R},${R},${R}\\)$`),kn=new RegExp(`^rgba\\(${B},${B},${B},${Z}\\)$`),An=new RegExp(`^rgba\\(${R},${R},${R},${Z}\\)$`),Sn=new RegExp(`^hsl\\(${Z},${R},${R}\\)$`),En=new RegExp(`^hsla\\(${Z},${R},${R},${Z}\\)$`),St={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};vt(Y,K,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Et,formatHex:Et,formatHex8:Rn,formatHsl:Cn,formatRgb:Rt,toString:Rt});function Et(){return this.rgb().formatHex()}function Rn(){return this.rgb().formatHex8()}function Cn(){return Kt(this).formatHsl()}function Rt(){return this.rgb().formatRgb()}function K(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=Mn.exec(t))?(e=n[1].length,n=parseInt(n[1],16),e===6?Ct(n):e===3?new v(n>>8&15|n>>4&240,n>>4&15|n&240,(n&15)<<4|n&15,1):e===8?W(n>>24&255,n>>16&255,n>>8&255,(n&255)/255):e===4?W(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|n&240,((n&15)<<4|n&15)/255):null):(n=$n.exec(t))?new v(n[1],n[2],n[3],1):(n=Nn.exec(t))?new v(n[1]*255/100,n[2]*255/100,n[3]*255/100,1):(n=kn.exec(t))?W(n[1],n[2],n[3],n[4]):(n=An.exec(t))?W(n[1]*255/100,n[2]*255/100,n[3]*255/100,n[4]):(n=Sn.exec(t))?Ht(n[1],n[2]/100,n[3]/100,1):(n=En.exec(t))?Ht(n[1],n[2]/100,n[3]/100,n[4]):St.hasOwnProperty(t)?Ct(St[t]):t==="transparent"?new v(NaN,NaN,NaN,0):null}function Ct(t){return new v(t>>16&255,t>>8&255,t&255,1)}function W(t,n,e,r){return r<=0&&(t=n=e=NaN),new v(t,n,e,r)}function Pn(t){return t instanceof Y||(t=K(t)),t?(t=t.rgb(),new v(t.r,t.g,t.b,t.opacity)):new v}function mt(t,n,e,r){return arguments.length===1?Pn(t):new v(t,n,e,r??1)}function v(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}vt(v,mt,Zt(Y,{brighter(t){return t=t==null?rt:Math.pow(rt,t),new v(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?X:Math.pow(X,t),new v(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new v(z(this.r),z(this.g),z(this.b),it(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:Pt,formatHex:Pt,formatHex8:Fn,formatRgb:Ft,toString:Ft}));function Pt(){return`#${q(this.r)}${q(this.g)}${q(this.b)}`}function Fn(){return`#${q(this.r)}${q(this.g)}${q(this.b)}${q((isNaN(this.opacity)?1:this.opacity)*255)}`}function Ft(){const t=it(this.opacity);return`${t===1?"rgb(":"rgba("}${z(this.r)}, ${z(this.g)}, ${z(this.b)}${t===1?")":`, ${t})`}`}function it(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function z(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function q(t){return t=z(t),(t<16?"0":"")+t.toString(16)}function Ht(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new E(t,n,e,r)}function Kt(t){if(t instanceof E)return new E(t.h,t.s,t.l,t.opacity);if(t instanceof Y||(t=K(t)),!t)return new E;if(t instanceof E)return t;t=t.rgb();var n=t.r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),a=NaN,f=o-i,u=(o+i)/2;return f?(n===o?a=(e-r)/f+(e<r)*6:e===o?a=(r-n)/f+2:a=(n-e)/f+4,f/=u<.5?o+i:2-o-i,a*=60):f=u>0&&u<1?0:a,new E(a,f,u,t.opacity)}function Hn(t,n,e,r){return arguments.length===1?Kt(t):new E(t,n,e,r??1)}function E(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}vt(E,Hn,Zt(Y,{brighter(t){return t=t==null?rt:Math.pow(rt,t),new E(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?X:Math.pow(X,t),new E(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new v(lt(t>=240?t-240:t+120,i,r),lt(t,i,r),lt(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new E(Lt(this.h),j(this.s),j(this.l),it(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(){const t=it(this.opacity);return`${t===1?"hsl(":"hsla("}${Lt(this.h)}, ${j(this.s)*100}%, ${j(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Lt(t){return t=(t||0)%360,t<0?t+360:t}function j(t){return Math.max(0,Math.min(1,t||0))}function lt(t,n,e){return(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)*255}const Mt=t=>()=>t;function Ln(t,n){return function(e){return t+e*n}}function qn(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}function zn(t){return(t=+t)==1?Yt:function(n,e){return e-n?qn(n,e,t):Mt(isNaN(n)?e:n)}}function Yt(t,n){var e=n-t;return e?Ln(t,e):Mt(isNaN(t)?n:t)}const qt=(function t(n){var e=zn(n);function r(i,o){var a=e((i=mt(i)).r,(o=mt(o)).r),f=e(i.g,o.g),u=e(i.b,o.b),s=Yt(i.opacity,o.opacity);return function(c){return i.r=a(c),i.g=f(c),i.b=u(c),i.opacity=s(c),i+""}}return r.gamma=t,r})(1);function In(t,n){n||(n=[]);var e=t?Math.min(n.length,t.length):0,r=n.slice(),i;return function(o){for(i=0;i<e;++i)r[i]=t[i]*(1-o)+n[i]*o;return r}}function Tn(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Vn(t,n){var e=n?n.length:0,r=t?Math.min(e,t.length):0,i=new Array(r),o=new Array(e),a;for(a=0;a<r;++a)i[a]=$t(t[a],n[a]);for(;a<e;++a)o[a]=n[a];return function(f){for(a=0;a<r;++a)o[a]=i[a](f);return o}}function Bn(t,n){var e=new Date;return t=+t,n=+n,function(r){return e.setTime(t*(1-r)+n*r),e}}function ot(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}}function Dn(t,n){var e={},r={},i;(t===null||typeof t!="object")&&(t={}),(n===null||typeof n!="object")&&(n={});for(i in n)i in t?e[i]=$t(t[i],n[i]):r[i]=n[i];return function(o){for(i in e)r[i]=e[i](o);return r}}var pt=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ct=new RegExp(pt.source,"g");function On(t){return function(){return t}}function Un(t){return function(n){return t(n)+""}}function Xn(t,n){var e=pt.lastIndex=ct.lastIndex=0,r,i,o,a=-1,f=[],u=[];for(t=t+"",n=n+"";(r=pt.exec(t))&&(i=ct.exec(n));)(o=i.index)>e&&(o=n.slice(e,o),f[a]?f[a]+=o:f[++a]=o),(r=r[0])===(i=i[0])?f[a]?f[a]+=i:f[++a]=i:(f[++a]=null,u.push({i:a,x:ot(r,i)})),e=ct.lastIndex;return e<n.length&&(o=n.slice(e),f[a]?f[a]+=o:f[++a]=o),f.length<2?u[0]?Un(u[0].x):On(n):(n=u.length,function(s){for(var c=0,h;c<n;++c)f[(h=u[c]).i]=h.x(s);return f.join("")})}function $t(t,n){var e=typeof n,r;return n==null||e==="boolean"?Mt(n):(e==="number"?ot:e==="string"?(r=K(n))?(n=r,qt):Xn:n instanceof K?qt:n instanceof Date?Bn:Tn(n)?In:Array.isArray(n)?Vn:typeof n.valueOf!="function"&&typeof n.toString!="function"||isNaN(n)?Dn:ot)(t,n)}function Zn(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}}function Kn(t){return function(){return t}}function Yn(t){return+t}var zt=[0,1];function V(t){return t}function xt(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:Kn(isNaN(n)?NaN:.5)}function Gn(t,n){var e;return t>n&&(e=t,t=n,n=e),function(r){return Math.max(t,Math.min(n,r))}}function Qn(t,n,e){var r=t[0],i=t[1],o=n[0],a=n[1];return i<r?(r=xt(i,r),o=e(a,o)):(r=xt(r,i),o=e(o,a)),function(f){return o(r(f))}}function Jn(t,n,e){var r=Math.min(t.length,n.length)-1,i=new Array(r),o=new Array(r),a=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++a<r;)i[a]=xt(t[a],t[a+1]),o[a]=e(n[a],n[a+1]);return function(f){var u=pn(t,f,1,r)-1;return o[u](i[u](f))}}function Wn(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function jn(){var t=zt,n=zt,e=$t,r,i,o,a=V,f,u,s;function c(){var l=Math.min(t.length,n.length);return a!==V&&(a=Gn(t[0],t[l-1])),f=l>2?Jn:Qn,u=s=null,h}function h(l){return l==null||isNaN(l=+l)?o:(u||(u=f(t.map(r),n,e)))(r(a(l)))}return h.invert=function(l){return a(i((s||(s=f(n,t.map(r),ot)))(l)))},h.domain=function(l){return arguments.length?(t=Array.from(l,Yn),c()):t.slice()},h.range=function(l){return arguments.length?(n=Array.from(l),c()):n.slice()},h.rangeRound=function(l){return n=Array.from(l),e=Zn,c()},h.clamp=function(l){return arguments.length?(a=l?!0:V,c()):a!==V},h.interpolate=function(l){return arguments.length?(e=l,c()):e},h.unknown=function(l){return arguments.length?(o=l,h):o},function(l,d){return r=l,i=d,c()}}function te(){return jn()(V,V)}function ne(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function at(t,n){if(!isFinite(t)||t===0)return null;var e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"),r=t.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+t.slice(e+1)]}function D(t){return t=at(Math.abs(t)),t?t[1]:NaN}function ee(t,n){return function(e,r){for(var i=e.length,o=[],a=0,f=t[0],u=0;i>0&&f>0&&(u+f+1>r&&(f=Math.max(1,r-u)),o.push(e.substring(i-=f,i+f)),!((u+=f+1)>r));)f=t[a=(a+1)%t.length];return o.reverse().join(n)}}function re(t){return function(n){return n.replace(/[0-9]/g,function(e){return t[+e]})}}var ie=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ft(t){if(!(n=ie.exec(t)))throw new Error("invalid format: "+t);var n;return new Nt({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}ft.prototype=Nt.prototype;function Nt(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+""}Nt.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 oe(t){t:for(var n=t.length,e=1,r=-1,i;e<n;++e)switch(t[e]){case".":r=i=e;break;case"0":r===0&&(r=e),i=e;break;default:if(!+t[e])break t;r>0&&(r=0);break}return r>0?t.slice(0,r)+t.slice(i+1):t}var ut;function ae(t,n){var e=at(t,n);if(!e)return ut=void 0,t.toPrecision(n);var r=e[0],i=e[1],o=i-(ut=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")+at(t,Math.max(0,n+o-1))[0]}function It(t,n){var e=at(t,n);if(!e)return t+"";var r=e[0],i=e[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")}const Tt={"%":(t,n)=>(t*100).toFixed(n),b:t=>Math.round(t).toString(2),c:t=>t+"",d:ne,e:(t,n)=>t.toExponential(n),f:(t,n)=>t.toFixed(n),g:(t,n)=>t.toPrecision(n),o:t=>Math.round(t).toString(8),p:(t,n)=>It(t*100,n),r:It,s:ae,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Vt(t){return t}var Bt=Array.prototype.map,Dt=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function fe(t){var n=t.grouping===void 0||t.thousands===void 0?Vt:ee(Bt.call(t.grouping,Number),t.thousands+""),e=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?Vt:re(Bt.call(t.numerals,String)),a=t.percent===void 0?"%":t.percent+"",f=t.minus===void 0?"":t.minus+"",u=t.nan===void 0?"NaN":t.nan+"";function s(h,l){h=ft(h);var d=h.fill,m=h.align,y=h.sign,M=h.symbol,$=h.zero,_=h.width,w=h.comma,p=h.precision,b=h.trim,x=h.type;x==="n"?(w=!0,x="g"):Tt[x]||(p===void 0&&(p=12),b=!0,x="g"),($||d==="0"&&m==="=")&&($=!0,d="0",m="=");var S=(l&&l.prefix!==void 0?l.prefix:"")+(M==="$"?e:M==="#"&&/[boxX]/.test(x)?"0"+x.toLowerCase():""),O=(M==="$"?r:/[%p]/.test(x)?a:"")+(l&&l.suffix!==void 0?l.suffix:""),F=Tt[x],H=/[defgprs%]/.test(x);p=p===void 0?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,p)):Math.max(0,Math.min(20,p));function P(g){var N=S,k=O,I,At,G;if(x==="c")k=F(g)+k,g="";else{g=+g;var Q=g<0||1/g<0;if(g=isNaN(g)?u:F(Math.abs(g),p),b&&(g=oe(g)),Q&&+g==0&&y!=="+"&&(Q=!1),N=(Q?y==="("?y:f:y==="-"||y==="("?"":y)+N,k=(x==="s"&&!isNaN(g)&&ut!==void 0?Dt[8+ut/3]:"")+k+(Q&&y==="("?")":""),H){for(I=-1,At=g.length;++I<At;)if(G=g.charCodeAt(I),48>G||G>57){k=(G===46?i+g.slice(I+1):g.slice(I))+k,g=g.slice(0,I);break}}}w&&!$&&(g=n(g,1/0));var J=N.length+g.length+k.length,C=J<_?new Array(_-J+1).join(d):"";switch(w&&$&&(g=n(C+g,C.length?_-k.length:1/0),C=""),m){case"<":g=N+g+k+C;break;case"=":g=N+C+g+k;break;case"^":g=C.slice(0,J=C.length>>1)+N+g+k+C.slice(J);break;default:g=C+N+g+k;break}return o(g)}return P.toString=function(){return h+""},P}function c(h,l){var d=Math.max(-8,Math.min(8,Math.floor(D(l)/3)))*3,m=Math.pow(10,-d),y=s((h=ft(h),h.type="f",h),{suffix:Dt[8+d/3]});return function(M){return y(m*M)}}return{format:s,formatPrefix:c}}var tt,Gt,Qt;ue({thousands:",",grouping:[3],currency:["$",""]});function ue(t){return tt=fe(t),Gt=tt.format,Qt=tt.formatPrefix,tt}function se(t){return Math.max(0,-D(Math.abs(t)))}function le(t,n){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(D(n)/3)))*3-D(Math.abs(t)))}function ce(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,D(n)-D(t))+1}function he(t,n,e,r){var i=bn(t,n,e),o;switch(r=ft(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(t),Math.abs(n));return r.precision==null&&!isNaN(o=le(i,a))&&(r.precision=o),Qt(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=ce(i,Math.max(Math.abs(t),Math.abs(n))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=se(i))&&(r.precision=o-(r.type==="%")*2);break}}return Gt(r)}function de(t){var n=t.domain;return t.ticks=function(e){var r=n();return wn(r[0],r[r.length-1],e??10)},t.tickFormat=function(e,r){var i=n();return he(i[0],i[i.length-1],e??10,r)},t.nice=function(e){e==null&&(e=10);var r=n(),i=0,o=r.length-1,a=r[i],f=r[o],u,s,c=10;for(f<a&&(s=a,a=f,f=s,s=i,i=o,o=s);c-- >0;){if(s=gt(a,f,e),s===u)return r[i]=a,r[o]=f,n(r);if(s>0)a=Math.floor(a/s)*s,f=Math.ceil(f/s)*s;else if(s<0)a=Math.ceil(a*s)/s,f=Math.floor(f*s)/s;else break;u=s}return t},t}function ge(){var t=te();return t.copy=function(){return Wn(t,ge())},vn.apply(t,arguments),de(t)}var yt="http://www.w3.org/1999/xhtml";const Ot={svg:"http://www.w3.org/2000/svg",xhtml:yt,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Jt(t){var n=t+="",e=n.indexOf(":");return e>=0&&(n=t.slice(0,e))!=="xmlns"&&(t=t.slice(e+1)),Ot.hasOwnProperty(n)?{space:Ot[n],local:t}:t}function me(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===yt&&n.documentElement.namespaceURI===yt?n.createElement(t):n.createElementNS(e,t)}}function pe(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Wt(t){var n=Jt(t);return(n.local?pe:me)(n)}function xe(){}function jt(t){return t==null?xe:function(){return this.querySelector(t)}}function ye(t){typeof t!="function"&&(t=jt(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o=n[i],a=o.length,f=r[i]=new Array(a),u,s,c=0;c<a;++c)(u=o[c])&&(s=t.call(u,u.__data__,c,o))&&("__data__"in u&&(s.__data__=u.__data__),f[c]=s);return new A(r,this._parents)}function _e(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function we(){return[]}function be(t){return t==null?we:function(){return this.querySelectorAll(t)}}function ve(t){return function(){return _e(t.apply(this,arguments))}}function Me(t){typeof t=="function"?t=ve(t):t=be(t);for(var n=this._groups,e=n.length,r=[],i=[],o=0;o<e;++o)for(var a=n[o],f=a.length,u,s=0;s<f;++s)(u=a[s])&&(r.push(t.call(u,u.__data__,s,a)),i.push(u));return new A(r,i)}function $e(t){return function(){return this.matches(t)}}function tn(t){return function(n){return n.matches(t)}}var Ne=Array.prototype.find;function ke(t){return function(){return Ne.call(this.children,t)}}function Ae(){return this.firstElementChild}function Se(t){return this.select(t==null?Ae:ke(typeof t=="function"?t:tn(t)))}var Ee=Array.prototype.filter;function Re(){return Array.from(this.children)}function Ce(t){return function(){return Ee.call(this.children,t)}}function Pe(t){return this.selectAll(t==null?Re:Ce(typeof t=="function"?t:tn(t)))}function Fe(t){typeof t!="function"&&(t=$e(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o=n[i],a=o.length,f=r[i]=[],u,s=0;s<a;++s)(u=o[s])&&t.call(u,u.__data__,s,o)&&f.push(u);return new A(r,this._parents)}function nn(t){return new Array(t.length)}function He(){return new A(this._enter||this._groups.map(nn),this._parents)}function st(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}st.prototype={constructor:st,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function Le(t){return function(){return t}}function qe(t,n,e,r,i,o){for(var a=0,f,u=n.length,s=o.length;a<s;++a)(f=n[a])?(f.__data__=o[a],r[a]=f):e[a]=new st(t,o[a]);for(;a<u;++a)(f=n[a])&&(i[a]=f)}function ze(t,n,e,r,i,o,a){var f,u,s=new Map,c=n.length,h=o.length,l=new Array(c),d;for(f=0;f<c;++f)(u=n[f])&&(l[f]=d=a.call(u,u.__data__,f,n)+"",s.has(d)?i[f]=u:s.set(d,u));for(f=0;f<h;++f)d=a.call(t,o[f],f,o)+"",(u=s.get(d))?(r[f]=u,u.__data__=o[f],s.delete(d)):e[f]=new st(t,o[f]);for(f=0;f<c;++f)(u=n[f])&&s.get(l[f])===u&&(i[f]=u)}function Ie(t){return t.__data__}function Te(t,n){if(!arguments.length)return Array.from(this,Ie);var e=n?ze:qe,r=this._parents,i=this._groups;typeof t!="function"&&(t=Le(t));for(var o=i.length,a=new Array(o),f=new Array(o),u=new Array(o),s=0;s<o;++s){var c=r[s],h=i[s],l=h.length,d=Ve(t.call(c,c&&c.__data__,s,r)),m=d.length,y=f[s]=new Array(m),M=a[s]=new Array(m),$=u[s]=new Array(l);e(c,h,y,M,$,d,n);for(var _=0,w=0,p,b;_<m;++_)if(p=y[_]){for(_>=w&&(w=_+1);!(b=M[w])&&++w<m;);p._next=b||null}}return a=new A(a,r),a._enter=f,a._exit=u,a}function Ve(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Be(){return new A(this._exit||this._groups.map(nn),this._parents)}function De(t,n,e){var r=this.enter(),i=this,o=this.exit();return typeof t=="function"?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),n!=null&&(i=n(i),i&&(i=i.selection())),e==null?o.remove():e(o),r&&i?r.merge(i).order():i}function Oe(t){for(var n=t.selection?t.selection():t,e=this._groups,r=n._groups,i=e.length,o=r.length,a=Math.min(i,o),f=new Array(i),u=0;u<a;++u)for(var s=e[u],c=r[u],h=s.length,l=f[u]=new Array(h),d,m=0;m<h;++m)(d=s[m]||c[m])&&(l[m]=d);for(;u<i;++u)f[u]=e[u];return new A(f,this._parents)}function Ue(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var r=t[n],i=r.length-1,o=r[i],a;--i>=0;)(a=r[i])&&(o&&a.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(a,o),o=a);return this}function Xe(t){t||(t=Ze);function n(h,l){return h&&l?t(h.__data__,l.__data__):!h-!l}for(var e=this._groups,r=e.length,i=new Array(r),o=0;o<r;++o){for(var a=e[o],f=a.length,u=i[o]=new Array(f),s,c=0;c<f;++c)(s=a[c])&&(u[c]=s);u.sort(n)}return new A(i,this._parents).order()}function Ze(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function Ke(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function Ye(){return Array.from(this)}function Ge(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null}function Qe(){let t=0;for(const n of this)++t;return t}function Je(){return!this.node()}function We(t){for(var n=this._groups,e=0,r=n.length;e<r;++e)for(var i=n[e],o=0,a=i.length,f;o<a;++o)(f=i[o])&&t.call(f,f.__data__,o,i);return this}function je(t){return function(){this.removeAttribute(t)}}function tr(t){return function(){this.removeAttributeNS(t.space,t.local)}}function nr(t,n){return function(){this.setAttribute(t,n)}}function er(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function rr(t,n){return function(){var e=n.apply(this,arguments);e==null?this.removeAttribute(t):this.setAttribute(t,e)}}function ir(t,n){return function(){var e=n.apply(this,arguments);e==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function or(t,n){var e=Jt(t);if(arguments.length<2){var r=this.node();return e.local?r.getAttributeNS(e.space,e.local):r.getAttribute(e)}return this.each((n==null?e.local?tr:je:typeof n=="function"?e.local?ir:rr:e.local?er:nr)(e,n))}function en(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function ar(t){return function(){this.style.removeProperty(t)}}function fr(t,n,e){return function(){this.style.setProperty(t,n,e)}}function ur(t,n,e){return function(){var r=n.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function sr(t,n,e){return arguments.length>1?this.each((n==null?ar:typeof n=="function"?ur:fr)(t,n,e??"")):lr(this.node(),t)}function lr(t,n){return t.style.getPropertyValue(n)||en(t).getComputedStyle(t,null).getPropertyValue(n)}function cr(t){return function(){delete this[t]}}function hr(t,n){return function(){this[t]=n}}function dr(t,n){return function(){var e=n.apply(this,arguments);e==null?delete this[t]:this[t]=e}}function gr(t,n){return arguments.length>1?this.each((n==null?cr:typeof n=="function"?dr:hr)(t,n)):this.node()[t]}function rn(t){return t.trim().split(/^|\s+/)}function kt(t){return t.classList||new on(t)}function on(t){this._node=t,this._names=rn(t.getAttribute("class")||"")}on.prototype={add:function(t){var n=this._names.indexOf(t);n<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function an(t,n){for(var e=kt(t),r=-1,i=n.length;++r<i;)e.add(n[r])}function fn(t,n){for(var e=kt(t),r=-1,i=n.length;++r<i;)e.remove(n[r])}function mr(t){return function(){an(this,t)}}function pr(t){return function(){fn(this,t)}}function xr(t,n){return function(){(n.apply(this,arguments)?an:fn)(this,t)}}function yr(t,n){var e=rn(t+"");if(arguments.length<2){for(var r=kt(this.node()),i=-1,o=e.length;++i<o;)if(!r.contains(e[i]))return!1;return!0}return this.each((typeof n=="function"?xr:n?mr:pr)(e,n))}function _r(){this.textContent=""}function wr(t){return function(){this.textContent=t}}function br(t){return function(){var n=t.apply(this,arguments);this.textContent=n??""}}function vr(t){return arguments.length?this.each(t==null?_r:(typeof t=="function"?br:wr)(t)):this.node().textContent}function Mr(){this.innerHTML=""}function $r(t){return function(){this.innerHTML=t}}function Nr(t){return function(){var n=t.apply(this,arguments);this.innerHTML=n??""}}function kr(t){return arguments.length?this.each(t==null?Mr:(typeof t=="function"?Nr:$r)(t)):this.node().innerHTML}function Ar(){this.nextSibling&&this.parentNode.appendChild(this)}function Sr(){return this.each(Ar)}function Er(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Rr(){return this.each(Er)}function Cr(t){var n=typeof t=="function"?t:Wt(t);return this.select(function(){return this.appendChild(n.apply(this,arguments))})}function Pr(){return null}function Fr(t,n){var e=typeof t=="function"?t:Wt(t),r=n==null?Pr:typeof n=="function"?n:jt(n);return this.select(function(){return this.insertBefore(e.apply(this,arguments),r.apply(this,arguments)||null)})}function Hr(){var t=this.parentNode;t&&t.removeChild(this)}function Lr(){return this.each(Hr)}function qr(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function zr(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function Ir(t){return this.select(t?zr:qr)}function Tr(t){return arguments.length?this.property("__data__",t):this.node().__data__}function Vr(t){return function(n){t.call(this,n,this.__data__)}}function Br(t){return t.trim().split(/^|\s+/).map(function(n){var e="",r=n.indexOf(".");return r>=0&&(e=n.slice(r+1),n=n.slice(0,r)),{type:n,name:e}})}function Dr(t){return function(){var n=this.__on;if(n){for(var e=0,r=-1,i=n.length,o;e<i;++e)o=n[e],(!t.type||o.type===t.type)&&o.name===t.name?this.removeEventListener(o.type,o.listener,o.options):n[++r]=o;++r?n.length=r:delete this.__on}}}function Or(t,n,e){return function(){var r=this.__on,i,o=Vr(n);if(r){for(var a=0,f=r.length;a<f;++a)if((i=r[a]).type===t.type&&i.name===t.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=o,i.options=e),i.value=n;return}}this.addEventListener(t.type,o,e),i={type:t.type,name:t.name,value:n,listener:o,options:e},r?r.push(i):this.__on=[i]}}function Ur(t,n,e){var r=Br(t+""),i,o=r.length,a;if(arguments.length<2){var f=this.node().__on;if(f){for(var u=0,s=f.length,c;u<s;++u)for(i=0,c=f[u];i<o;++i)if((a=r[i]).type===c.type&&a.name===c.name)return c.value}return}for(f=n?Or:Dr,i=0;i<o;++i)this.each(f(r[i],n,e));return this}function un(t,n,e){var r=en(t),i=r.CustomEvent;typeof i=="function"?i=new i(n,e):(i=r.document.createEvent("Event"),e?(i.initEvent(n,e.bubbles,e.cancelable),i.detail=e.detail):i.initEvent(n,!1,!1)),t.dispatchEvent(i)}function Xr(t,n){return function(){return un(this,t,n)}}function Zr(t,n){return function(){return un(this,t,n.apply(this,arguments))}}function Kr(t,n){return this.each((typeof n=="function"?Zr:Xr)(t,n))}function*Yr(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],i=0,o=r.length,a;i<o;++i)(a=r[i])&&(yield a)}var Gr=[null];function A(t,n){this._groups=t,this._parents=n}function Qr(){return this}A.prototype={constructor:A,select:ye,selectAll:Me,selectChild:Se,selectChildren:Pe,filter:Fe,data:Te,enter:He,exit:Be,join:De,merge:Oe,selection:Qr,order:Ue,sort:Xe,call:Ke,nodes:Ye,node:Ge,size:Qe,empty:Je,each:We,attr:or,style:sr,property:gr,classed:yr,text:vr,html:kr,raise:Sr,lower:Rr,append:Cr,insert:Fr,remove:Lr,clone:Ir,datum:Tr,on:Ur,dispatch:Kr,[Symbol.iterator]:Yr};function ci(t){return typeof t=="string"?new A([[document.querySelector(t)]],[document.documentElement]):new A([[t]],Gr)}function T(t){return function(){return t}}const _t=Math.PI,wt=2*_t,L=1e-6,Jr=wt-L;function sn(t){this._+=t[0];for(let n=1,e=t.length;n<e;++n)this._+=arguments[n]+t[n]}function Wr(t){let n=Math.floor(t);if(!(n>=0))throw new Error(`invalid digits: ${t}`);if(n>15)return sn;const e=10**n;return function(r){this._+=r[0];for(let i=1,o=r.length;i<o;++i)this._+=Math.round(arguments[i]*e)/e+r[i]}}class jr{constructor(n){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=n==null?sn:Wr(n)}moveTo(n,e){this._append`M${this._x0=this._x1=+n},${this._y0=this._y1=+e}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(n,e){this._append`L${this._x1=+n},${this._y1=+e}`}quadraticCurveTo(n,e,r,i){this._append`Q${+n},${+e},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(n,e,r,i,o,a){this._append`C${+n},${+e},${+r},${+i},${this._x1=+o},${this._y1=+a}`}arcTo(n,e,r,i,o){if(n=+n,e=+e,r=+r,i=+i,o=+o,o<0)throw new Error(`negative radius: ${o}`);let a=this._x1,f=this._y1,u=r-n,s=i-e,c=a-n,h=f-e,l=c*c+h*h;if(this._x1===null)this._append`M${this._x1=n},${this._y1=e}`;else if(l>L)if(!(Math.abs(h*u-s*c)>L)||!o)this._append`L${this._x1=n},${this._y1=e}`;else{let d=r-a,m=i-f,y=u*u+s*s,M=d*d+m*m,$=Math.sqrt(y),_=Math.sqrt(l),w=o*Math.tan((_t-Math.acos((y+l-M)/(2*$*_)))/2),p=w/_,b=w/$;Math.abs(p-1)>L&&this._append`L${n+p*c},${e+p*h}`,this._append`A${o},${o},0,0,${+(h*d>c*m)},${this._x1=n+b*u},${this._y1=e+b*s}`}}arc(n,e,r,i,o,a){if(n=+n,e=+e,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let f=r*Math.cos(i),u=r*Math.sin(i),s=n+f,c=e+u,h=1^a,l=a?i-o:o-i;this._x1===null?this._append`M${s},${c}`:(Math.abs(this._x1-s)>L||Math.abs(this._y1-c)>L)&&this._append`L${s},${c}`,r&&(l<0&&(l=l%wt+wt),l>Jr?this._append`A${r},${r},0,1,${h},${n-f},${e-u}A${r},${r},0,1,${h},${this._x1=s},${this._y1=c}`:l>L&&this._append`A${r},${r},0,${+(l>=_t)},${h},${this._x1=n+r*Math.cos(o)},${this._y1=e+r*Math.sin(o)}`)}rect(n,e,r,i){this._append`M${this._x0=this._x1=+n},${this._y0=this._y1=+e}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function ti(t){let n=3;return t.digits=function(e){if(!arguments.length)return n;if(e==null)n=null;else{const r=Math.floor(e);if(!(r>=0))throw new RangeError(`invalid digits: ${e}`);n=r}return t},()=>new jr(n)}function ni(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function ln(t){this._context=t}ln.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n);break}}};function ei(t){return new ln(t)}function ri(t){return t[0]}function ii(t){return t[1]}function hi(t,n){var e=T(!0),r=null,i=ei,o=null,a=ti(f);t=typeof t=="function"?t:t===void 0?ri:T(t),n=typeof n=="function"?n:n===void 0?ii:T(n);function f(u){var s,c=(u=ni(u)).length,h,l=!1,d;for(r==null&&(o=i(d=a())),s=0;s<=c;++s)!(s<c&&e(h=u[s],s,u))===l&&((l=!l)?o.lineStart():o.lineEnd()),l&&o.point(+t(h,s,u),+n(h,s,u));if(d)return o=null,d+""||null}return f.x=function(u){return arguments.length?(t=typeof u=="function"?u:T(+u),f):t},f.y=function(u){return arguments.length?(n=typeof u=="function"?u:T(+u),f):n},f.defined=function(u){return arguments.length?(e=typeof u=="function"?u:T(!!u),f):e},f.curve=function(u){return arguments.length?(i=u,r!=null&&(o=i(r)),f):i},f.context=function(u){return arguments.length?(u==null?r=o=null:o=i(r=u),f):r},f}function oi(t){return t}var ht=1,dt=2,bt=3,U=4,Ut=1e-6;function ai(t){return"translate("+t+",0)"}function fi(t){return"translate(0,"+t+")"}function ui(t){return n=>+t(n)}function si(t,n){return n=Math.max(0,t.bandwidth()-n*2)/2,t.round()&&(n=Math.round(n)),e=>+t(e)+n}function li(){return!this.__axis}function cn(t,n){var e=[],r=null,i=null,o=6,a=6,f=3,u=typeof window<"u"&&window.devicePixelRatio>1?0:.5,s=t===ht||t===U?-1:1,c=t===U||t===dt?"x":"y",h=t===ht||t===bt?ai:fi;function l(d){var m=r??(n.ticks?n.ticks.apply(n,e):n.domain()),y=i??(n.tickFormat?n.tickFormat.apply(n,e):oi),M=Math.max(o,0)+f,$=n.range(),_=+$[0]+u,w=+$[$.length-1]+u,p=(n.bandwidth?si:ui)(n.copy(),u),b=d.selection?d.selection():d,x=b.selectAll(".domain").data([null]),S=b.selectAll(".tick").data(m,n).order(),O=S.exit(),F=S.enter().append("g").attr("class","tick"),H=S.select("line"),P=S.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),S=S.merge(F),H=H.merge(F.append("line").attr("stroke","currentColor").attr(c+"2",s*o)),P=P.merge(F.append("text").attr("fill","currentColor").attr(c,s*M).attr("dy",t===ht?"0em":t===bt?"0.71em":"0.32em")),d!==b&&(x=x.transition(d),S=S.transition(d),H=H.transition(d),P=P.transition(d),O=O.transition(d).attr("opacity",Ut).attr("transform",function(g){return isFinite(g=p(g))?h(g+u):this.getAttribute("transform")}),F.attr("opacity",Ut).attr("transform",function(g){var N=this.parentNode.__axis;return h((N&&isFinite(N=N(g))?N:p(g))+u)})),O.remove(),x.attr("d",t===U||t===dt?a?"M"+s*a+","+_+"H"+u+"V"+w+"H"+s*a:"M"+u+","+_+"V"+w:a?"M"+_+","+s*a+"V"+u+"H"+w+"V"+s*a:"M"+_+","+u+"H"+w),S.attr("opacity",1).attr("transform",function(g){return h(p(g)+u)}),H.attr(c+"2",s*o),P.attr(c,s*M).text(y),b.filter(li).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===dt?"start":t===U?"end":"middle"),b.each(function(){this.__axis=p})}return l.scale=function(d){return arguments.length?(n=d,l):n},l.ticks=function(){return e=Array.from(arguments),l},l.tickArguments=function(d){return arguments.length?(e=d==null?[]:Array.from(d),l):e.slice()},l.tickValues=function(d){return arguments.length?(r=d==null?null:Array.from(d),l):r&&r.slice()},l.tickFormat=function(d){return arguments.length?(i=d,l):i},l.tickSize=function(d){return arguments.length?(o=a=+d,l):o},l.tickSizeInner=function(d){return arguments.length?(o=+d,l):o},l.tickSizeOuter=function(d){return arguments.length?(a=+d,l):a},l.tickPadding=function(d){return arguments.length?(f=+d,l):f},l.offset=function(d){return arguments.length?(u=+d,l):u},l}function di(t){return cn(bt,t)}function gi(t){return cn(U,t)}export{di as a,gi as b,hi as c,ge as l,ci as s};