import{af as E,b1 as e,F as s,cj as r,cr as T,cs as t}from"./index-ip5gDR6L.js";var n=(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))(n||{});function a(E){return e(E)&&E.type===s}function o(E){return e(E)&&!a(E)&&!function(E){return e(E)&&E.type===r}(E)}const S=E=>{if(!e(E))return{};const s=E.props||{},r=(e(E.type)?E.type.props:void 0)||{},n={};return Object.keys(r).forEach(E=>{T(r[E],"default")&&(n[E]=r[E].default)}),Object.keys(s).forEach(E=>{n[t(E)]=s[E]}),n},p=s=>{const r=E(s)?s:[s],T=[];return r.forEach(s=>{var r;E(s)?T.push(...p(s)):e(s)&&(null==(r=s.component)?void 0:r.subTree)?T.push(s,...p(s.component.subTree)):e(s)&&E(s.children)?T.push(...p(s.children)):e(s)&&2===s.shapeFlag?T.push(...p(s.type())):T.push(s)}),T};export{n as P,o as a,p as f,S as g,a as i};
