import{d as U}from"./d3-dispatch-kxCwF96_.js";import{t as H,a as b,n as L}from"./d3-timer-DdKHrDhs.js";import{i as $,a as R,b as q,c as B,d as J}from"./d3-interpolate-B6xYU604.js";import{c as F}from"./d3-color-9lF95FHy.js";import{n as P,m as K,a as Q,b as W,c as x,d as w}from"./d3-selection-DSeOx27A.js";import{c as X}from"./d3-ease-DRPgKoYJ.js";var Y=U("start","end","cancel","interrupt"),Z=[],V=0,I=1,N=2,m=3,D=4,E=5,T=6;function A(t,r,n,e,i,o){var a=t.__transition;if(!a)t.__transition={};else if(n in a)return;j(t,n,{name:r,index:e,group:i,on:Y,tween:Z,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:V})}function C(t,r){var n=v(t,r);if(n.state>V)throw new Error("too late; already scheduled");return n}function p(t,r){var n=v(t,r);if(n.state>m)throw new Error("too late; already running");return n}function v(t,r){var n=t.__transition;if(!n||!(n=n[r]))throw new Error("transition not found");return n}function j(t,r,n){var e=t.__transition,i;e[r]=n,n.timer=H(o,0,n.time);function o(c){n.state=I,n.timer.restart(a,n.delay,n.time),n.delay<=c&&a(c-n.delay)}function a(c){var l,_,h,f;if(n.state!==I)return u();for(l in e)if(f=e[l],f.name===n.name){if(f.state===m)return b(a);f.state===D?(f.state=T,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete e[l]):+lN&&e.state=0&&(r=r.slice(0,n)),!r||r==="start"})}function Ft(t,r,n){var e,i,o=Rt(r)?C:p;return function(){var a=o(this,t),s=a.on;s!==e&&(i=(e=s).copy()).on(r,n),a.on=i}}function It(t,r){var n=this._id;return arguments.length<2?v(this.node(),n).on.on(t):this.each(Ft(n,t,r))}function Dt(t){return function(){var r=this.parentNode;for(var n in this.__transition)if(+n!==t)return;r&&r.removeChild(this)}}function Pt(){return this.on("end.remove",Dt(this._id))}function Vt(t){var r=this._name,n=this._id;typeof t!="function"&&(t=Q(t));for(var e=this._groups,i=e.length,o=new Array(i),a=0;a