var u=i;function i(){var r=[].slice.call(arguments),c=!1;typeof r[0]=="boolean"&&(c=r.shift());var t=r[0];if(f(t))throw new Error("extendee must be an object");for(var s=r.slice(1),l=s.length,o=0;o<l;o++){var a=s[o];for(var e in a)if(Object.prototype.hasOwnProperty.call(a,e)){var n=a[e];if(c&&b(n)){var p=Array.isArray(n)?[]:{};t[e]=i(!0,Object.prototype.hasOwnProperty.call(t,e)&&!f(t[e])?t[e]:p,n)}else t[e]=n}}return t}function b(r){return Array.isArray(r)||{}.toString.call(r)=="[object Object]"}function f(r){return!r||typeof r!="object"&&typeof r!="function"}export{u as o};
