import{d3 as S,d4 as C,d5 as Y,d6 as U,d7 as _,d8 as P,d9 as H,da as T,db as N,dc as V,dd as j,de as w,df as z,dg as W,dh as R,di as K,dj as q,dk as F,dl as A,dm as O,dn as X,dp as I,dq as $}from"./index.0308b213.js";function J(l){if(l){for(var i=[],r=0;r=0&&a.attr(o.oldLayoutSelect),O(g,"emphasis")>=0&&a.attr(o.oldLayoutEmphasis)),X(a,v,r,d)}else if(a.attr(v),!q(a).valueAnimation){var c=F(a.style.opacity,1);a.style.opacity=0,A(a,{style:{opacity:c}},r,d)}if(o.oldLayout=v,a.states.select){var L=o.oldLayoutSelect={};y(L,v,x),y(L,a.states.select,x)}if(a.states.emphasis){var u=o.oldLayoutEmphasis={};y(u,v,x),y(u,a.states.emphasis,x)}I(a,d,s,r,r)}if(e&&!e.ignore&&!e.invisible){var o=Z(e),t=o.oldLayout,p={points:e.shape.points};t?(e.attr({shape:t}),X(e,{shape:p},r)):(e.setShape(p),e.style.strokePercent=0,A(e,{style:{strokePercent:1}},r)),o.oldLayout=p}},l}();const ee=k;var m=S();function te(l){l.registerUpdateLifecycle("series:beforeupdate",function(i,r,a){var e=m(r).labelManager;e||(e=m(r).labelManager=new ee),e.clearLabels()}),l.registerUpdateLifecycle("series:layoutlabels",function(i,r,a){var e=m(r).labelManager;a.updatedSeries.forEach(function(o){e.addLabelsOfSeries(r.getViewOfSeriesModel(o))}),e.updateLayoutConfig(r),e.layout(r),e.processLabelsOverall()})}export{te as i};