import{O as c,I as u,b5 as h,K as v,M as g}from"./main-74e469cd.js";var o=Symbol("SizeProvider"),I=function(t){var i=u("configProvider",h),s=c(function(){return t.size||i.componentSize});return v(o,s),s},P=function(t){var i=t?c(function(){return t.size}):u(o,c(function(){return"default"}));return i};function p(e,t,i,s){for(var n=e.length,r=i+(s?1:-1);s?r--:++r-1}function b(e,t,i){for(var s=-1,n=e==null?0:e.length;++s-1}function a(e,t){e.classList?e.classList.add(t):f(e,t)||(e.className="".concat(e.className," ").concat(t))}function l(e,t){if(e.classList)e.classList.remove(t);else if(f(e,t)){var i=e.className;e.className=" ".concat(i," ").replace(" ".concat(t," ")," ")}}var L=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant-motion-collapse",i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return{name:t,appear:i,css:!0,onBeforeEnter:function(n){n.style.height="0px",n.style.opacity="0",a(n,t)},onEnter:function(n){g(function(){n.style.height="".concat(n.scrollHeight,"px"),n.style.opacity="1"})},onAfterEnter:function(n){n&&(l(n,t),n.style.height=null,n.style.opacity=null)},onBeforeLeave:function(n){a(n,t),n.style.height="".concat(n.offsetHeight,"px"),n.style.opacity=null},onLeave:function(n){setTimeout(function(){n.style.height="0px",n.style.opacity="0"})},onAfterLeave:function(n){n&&(l(n,t),n.style&&(n.style.height=null,n.style.opacity=null))}}};const E=L;export{I as a,S as b,E as c,b as d,p as e,P as u};