import{s as e}from"./rolldown-runtime-C5c2KzVm.js";import{$P as t}from"./lucide-C4oWPzu4.js";import{r as n}from"./bundle-mjs-C4g7ASB5.js";import{s as r}from"./dist-CImBN8k_.js";var i=e(t(),1),a=n(),o=Symbol.for(`react.lazy`),s=i.use;function c(e){return typeof e==`object`&&!!e&&`then`in e}function l(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===o&&`_payload`in e&&c(e._payload)}function u(e){let t=f(e),n=i.forwardRef((e,n)=>{let{children:r,...o}=e;l(r)&&typeof s==`function`&&(r=s(r._payload));let c=i.Children.toArray(r),u=c.find(m);if(u){let e=u.props.children,r=c.map(t=>t===u?i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null:t);return(0,a.jsx)(t,{...o,ref:n,children:i.isValidElement(e)?i.cloneElement(e,void 0,r):null})}return(0,a.jsx)(t,{...o,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}var d=u(`Slot`);function f(e){let t=i.forwardRef((e,t)=>{let{children:n,...a}=e;if(l(n)&&typeof s==`function`&&(n=s(n._payload)),i.isValidElement(n)){let e=g(n),o=h(a,n.props);return n.type!==i.Fragment&&(o.ref=t?r(t,e):e),i.cloneElement(n,o)}return i.Children.count(n)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var p=Symbol(`radix.slottable`);function m(e){return i.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===p}function h(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function g(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}export{u as n,d as t};