import _memoizeCapped_default from "./_memoizeCapped.js";
var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, reEscapeChar = /\\(\\)?/g, _stringToPath_default = _memoizeCapped_default(function(e) {
	var r = [];
	return e.charCodeAt(0) === 46 && r.push(""), e.replace(rePropName, function(e, n, i, a) {
		r.push(i ? a.replace(reEscapeChar, "$1") : n || e);
	}), r;
});
export { _stringToPath_default as default };
