import{f as r,d as t,e as n,b as o,a,c as u}from"./p-BTHqaZIi.js";import{a as i}from"./p-v6b303K5.js";import{b as s}from"./p-D_uMnX5g.js";import{i as e}from"./p-BJQylLSL.js";import{a as f}from"./p-Bj622DVt.js";var c=Object.prototype.hasOwnProperty;function p(r,t){return null!=r&&c.call(r,t)}function v(t,n){return null!=t&&r(t,n,p)}function m(r){if("function"!=typeof r)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!r.call(this);case 1:return!r.call(this,t[0]);case 2:return!r.call(this,t[0],t[1]);case 3:return!r.call(this,t[0],t[1],t[2])}return!r.apply(this,t)}}function l(r,o,a,u){if(!e(r))return r;for(var f=-1,c=(o=t(o,r)).length,p=c-1,v=r;null!=v&&++f<c;){var m=n(o[f]),l=a;if("__proto__"===m||"constructor"===m||"prototype"===m)return r;if(f!=p){var h=v[m];void 0===(l=u?u(h,m,v):void 0)&&(l=e(h)?h:s(o[f+1])?[]:{})}i(v,m,l),v=v[m]}return r}function h(r,n,a){for(var u=-1,i=n.length,s={};++u<i;){var e=n[u],f=o(r,e);a(f,e)&&l(s,t(e,r),f)}return s}function j(r,t){if(null==r)return{};var n=a(f(r),(function(r){return[r]}));return t=u(t),h(r,n,(function(r,n){return t(r,n[0])}))}export{l as a,h as b,v as h,m as n,j as p}