import{L as s}from"./index.8c202964.js";function p(t,f,o={children:"children"}){if(!s(t))return;let n;(function u(i,h){i.forEach((l,c,e)=>{n=l[o.children],f(l,c,e,h)!==!1&&s(n)&&u(n,l)})})(t,null)}function b(t,f,o={}){const n=o.children||"children";return function u(i,h){const l=i.length;let c=null;for(let e=0;e<l;e++){let r=i[e];if(f(r,e,i,h)){c=r;break}const d=r[n];if(s(d)&&(r=u(d,r),r)){c=r;break}}return c}(t,null)}export{b as a,p as t};
