import{t as g,l as c,a5 as w,ad as b,z as h,b6 as N,ae as M,D as o,Q as d,T as n,E as x}from"./index-CEmnTf-r.js";var I=function(r){g(t,r);function t(a){var e=r.call(this,a)||this;return e.state={activeIndex:-1},e}return t.prototype.componentDidUpdate=function(a){var e=this.props.items||[];this.state.activeIndex>0&&!e[this.state.activeIndex]&&this.setState({activeIndex:0})},t.prototype.handleClick=function(a){var e=this.props,s=e.dispatchEvent,i=e.data;s(a,i)},t.prototype.handleMouseEnter=function(a){var e=this.props,s=e.dispatchEvent,i=e.data;s(a,i)},t.prototype.handleMouseLeave=function(a){var e=this.props,s=e.dispatchEvent,i=e.data;s(a,i)},t.prototype.renderBody=function(a){var e=this.props,s=e.children,i=e.render,p=e.disabled,l=a==null?void 0:a.body,u=s?typeof s=="function"?s(this.props):s:l?i("body",l,{disabled:p}):null;return c.createElement("div",{style:{display:"inline"}},u)},t.prototype.switchTo=function(a){var e=this.props.items||[];a>=0&&a