const e=/^(?:0|[1-9][0-9]*)$/u;function t(n){let r=[],i=/\.{0,4096}(?<propName>[^.[\]]+)|\['(?<quoted>.{0,4096}?)'\]|\["(?<doubleQuoted>.{0,4096}?)"\]|\[(?<unquoted>.{0,4096}?)\]/uy,a;for(;(a=i.exec(n))!==null;){let{propName:n,quoted:i,doubleQuoted:o,unquoted:s}=a.groups;if(s!==void 0){r.push(...t(s));continue}r.push(n===void 0?i??o:e.test(n)?Number(n):n)}return r}export{t as stringToPath};
//# sourceMappingURL=stringToPath.js.map