import{a4 as r,f as o,am as u,l as n}from"./et3mnfcx.js";var _=(e=>(e[e.text=1]="text",e[e.class=2]="class",e[e.style=4]="style",e[e.props=8]="props",e[e.full_props=16]="full_props",e[e.hydrate_events=32]="hydrate_events",e[e.stable_fragment=64]="stable_fragment",e[e.keyed_fragment=128]="keyed_fragment",e[e.unkeyed_fragment=256]="unkeyed_fragment",e[e.need_patch=512]="need_patch",e[e.dynamic_slots=1024]="dynamic_slots",e[e.hoisted=-1]="hoisted",e[e.bail=-2]="bail",e))(_||{});function l(e){return r(e)&&e.type===o}function d(e){return r(e)&&e.type===u}function m(e){return r(e)&&!l(e)&&!d(e)}const s=e=>{const n=n(e)?e:[e],t=[];return n.foreach(e=>{var a;n(e)?t.push(...s(e)):r(e)&&n(e.children)?t.push(...s(e.children)):(t.push(e),r(e)&&((a=e.component)!=null&&a.subtree)&&t.push(...s(e.component.subtree)))}),t};export{_ as p,m as a,s as f,l as i};