"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("./color.cjs.js"),O=require("../../../../unist-util-is@6.0.1/node_modules/unist-util-is/lib/index.cjs.js"),m=[],b=!0,y=!1,P="skip";function S(t,o,u,s){let d;typeof o=="function"&&typeof u!="function"?(s=u,u=o):d=o;const I=O.convert(d),a=s?-1:1;p(t,void 0,[])();function p(n,N,l){const r=n&&typeof n=="object"?n:{};if(typeof r.type=="string"){const e=typeof r.tagName=="string"?r.tagName:typeof r.name=="string"?r.name:void 0;Object.defineProperty(h,"name",{value:"node ("+E.color(n.type+(e?"<"+e+">":""))+")"})}return h;function h(){let e=m,c,i,g;if((!o||I(n,N,l[l.length-1]||void 0))&&(e=j(u(n,l)),e[0]===y))return e;if("children"in n&&n.children){const f=n;if(f.children&&e[0]!==P)for(i=(s?f.children.length:-1)+a,g=l.concat(f);i>-1&&i<f.children.length;){const T=f.children[i];if(c=p(T,i,g)(),c[0]===y)return c;i=typeof c[1]=="number"?c[1]:i+a}}return e}}}function j(t){return Array.isArray(t)?t:typeof t=="number"?[b,t]:t==null?m:[t]}exports.CONTINUE=b;exports.EXIT=y;exports.SKIP=P;exports.visitParents=S;
//# sourceMappingURL=index.cjs.js.map
