import{a as e}from"./chunk-BNv3lrIs.js";import{n as t}from"./jsx-runtime-pmtNMKr4.js";var n=e(t());function r(e,t){let r=0;return n.Children.map(e,e=>n.isValidElement(e)?t(e,r++):e)}function i(e,t){let r=0;n.Children.forEach(e,e=>{n.isValidElement(e)&&t(e,r++)})}function a(e,t){return n.Children.toArray(e).some(e=>n.isValidElement(e)&&e.type===t)}export{a as n,r,i as t};