import{__exports as e}from"../../../../_virtual/Container2.mjs";import{__require as t}from"./Node.mjs";var o;function r(){if(o)return e;o=1,Object.defineProperty(e,"__esModule",{value:!0});var r,n=t(),s=(r=n)&&r.__esModule?r:{default:r};function i(e){var t=this;this.constructor(e),this.nodes=e.nodes,void 0===this.after&&(this.after=this.nodes.length>0?this.nodes[this.nodes.length-1].after:""),void 0===this.before&&(this.before=this.nodes.length>0?this.nodes[0].before:""),void 0===this.sourceIndex&&(this.sourceIndex=this.before.length),this.nodes.forEach(function(e){e.parent=t})}return i.prototype=Object.create(s.default.prototype),i.constructor=s.default,i.prototype.walk=function(e,t){for(var o="string"==typeof e||e instanceof RegExp,r=o?t:e,n="string"==typeof e?new RegExp(e):e,s=0;s<this.nodes.length;s++){var i=this.nodes[s];if((!o||n.test(i.type))&&r&&!1===r(i,s,this.nodes))return!1;if(i.nodes&&!1===i.walk(e,t))return!1}return!0},i.prototype.each=function(){for(var e=arguments.length<=0||void 0===arguments[0]?function(){}:arguments[0],t=0;t<this.nodes.length;t++){if(!1===e(this.nodes[t],t,this.nodes))return!1}return!0},e.default=i,e}export{r as __require};