import{__spreadArray as r}from"tslib";var n=function(r,i){if(!r)return null;if(r.id===i)return r;if(r.children)for(var e=0,l=r.children;e<l.length;e++){var t=l[e],u=n(t,i);if(u)return u}return null},i=function(n,e,l){if(void 0===l&&(l=[]),!n)return null;var t=r(r([],l,!0),[n.id],!1);if(n.id===e)return t;if(n.children)for(var u=0,f=n.children;u<f.length;u++){var d=f[u],o=i(d,e,t);if(o)return o}return null};export{n as findNodeById,i as findNodePathById};
//# sourceMappingURL=treeUtils.js.map
