import{r as A,c as k,h as Y}from"./d3-color-amxIadob.js";const X=r=>()=>r;function D(r,n){return function(t){return r+t*n}}function E(r,n,t){return r=Math.pow(r,t),n=Math.pow(n,t)-r,t=1/t,function(i){return Math.pow(r+i*n,t)}}function O(r,n){var t=n-r;return t?D(r,t>180||t<-180?t-360*Math.round(t/360):t):X(isNaN(r)?n:r)}function R(r){return(r=+r)==1?v:function(n,t){return t-n?E(n,t,r):X(isNaN(n)?t:n)}}function v(r,n){var t=n-r;return t?D(r,t):X(isNaN(r)?n:r)}const S=(function r(n){var t=R(n);function i(e,l){var o=t((e=A(e)).r,(l=A(l)).r),f=t(e.g,l.g),p=t(e.b,l.b),c=v(e.opacity,l.opacity);return function(u){return e.r=o(u),e.g=f(u),e.b=p(u),e.opacity=c(u),e+""}}return i.gamma=r,i})(1);function V(r,n){n||(n=[]);var t=r?Math.min(n.length,r.length):0,i=n.slice(),e;return function(l){for(e=0;et&&(l=n.slice(t,l),f[o]?f[o]+=l:f[++o]=l),(i=i[0])===(e=e[0])?f[o]?f[o]+=e:f[++o]=e:(f[++o]=null,p.push({i:o,x:g(i,e)})),t=x.lastIndex;return t180?u+=360:u-c>180&&(c+=360),a.push({i:s.push(e(s)+"rotate(",null,i)-2,x:g(c,u)})):u&&s.push(e(s)+"rotate("+u+i)}function f(c,u,s,a){c!==u?a.push({i:s.push(e(s)+"skewX(",null,i)-2,x:g(c,u)}):u&&s.push(e(s)+"skewX("+u+i)}function p(c,u,s,a,h,w){if(c!==s||u!==a){var m=h.push(e(h)+"scale(",null,",",null,")");w.push({i:m-4,x:g(c,s)},{i:m-2,x:g(u,a)})}else(s!==1||a!==1)&&h.push(e(h)+"scale("+s+","+a+")")}return function(c,u){var s=[],a=[];return c=r(c),u=r(u),l(c.translateX,c.translateY,u.translateX,u.translateY,s,a),o(c.rotate,u.rotate,s,a),f(c.skewX,u.skewX,s,a),p(c.scaleX,c.scaleY,u.scaleX,u.scaleY,s,a),c=u=null,function(h){for(var w=-1,m=a.length,y;++w