"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("./get.js");function i(e,t,l,u){if(!t.length)return l;const[o,...s]=t;let r;return!e&&typeof o=="number"?r=[]:Array.isArray(e)?r=[...e]:r={...e},u&&l===void 0&&s.length===1?delete r[o][s[0]]:r[o]=i(r[o],s,l,u),r}function c(e,t,l,u=!1){return t.length&&u&&l===void 0&&!n.default(e,t.slice(0,-1))?e:i(e,t,l,u)}exports.default=c;
