import{a as i}from"../chunks/chunk.LZRL7OLU.js";import"../chunks/chunk.OBAEIKIV.js";import"../chunks/chunk.6EV4YU6C.js";function m(e){let s=new FormData(e),o={};return s.forEach((r,t)=>{if(Reflect.has(o,t)){let n=o[t];Array.isArray(n)?n.push(r):o[t]=[o[t],r]}else o[t]=r}),o}function d(e){let o=[...e.getRootNode().querySelectorAll("*")],r=[...e.elements],t=i.get(e),n=t?Array.from(t):[];return[...r,...n].sort((l,c)=>o.indexOf(l)<o.indexOf(c)?-1:o.indexOf(l)>o.indexOf(c)?1:0)}export{d as getFormControls,m as serialize};
