import{n as e,r as t}from"./isSymbol.CmW3dkoN.js";import{r as n}from"./toString.tRXNBxtF.js";import{n as r,t as i}from"./_isIterateeCall.BUStsXAd.js";import{a,o,r as s}from"./isArrayLike.Crw2F5li.js";import{A as c,C as l,D as u,E as d,d as f,n as p,t as m}from"./isArrayLikeObject.B3Zf3PTL.js";import{a as h,c as g,d as _,n as v,o as y,r as b,s as x,t as S,u as C}from"./_baseClone.Bcnb-YL-.js";function w(e){var t=r(e),n=t%1;return t===t?n?t-n:t:0}function T(e){return c(function(t,n){var r=-1,a=n.length,o=a>1?n[a-1]:void 0,s=a>2?n[2]:void 0;for(o=e.length>3&&typeof o==`function`?(a--,o):void 0,s&&i(n[0],n[1],s)&&(o=a<3?void 0:o,a=1),t=Object(t);++r<a;){var c=n[r];c&&e(t,c,r,o)}return t})}var E=`[object Object]`,D=Function.prototype,O=Object.prototype,k=D.toString,A=O.hasOwnProperty,j=k.call(Object);function M(n){if(!e(n)||t(n)!=E)return!1;var r=y(n);if(r===null)return!0;var i=A.call(r,`constructor`)&&r.constructor;return typeof i==`function`&&i instanceof i&&k.call(i)==j}var N=1,P=4;function F(e){return S(e,N|P)}function I(e,t,n){(n!==void 0&&!s(e[t],n)||n===void 0&&!(t in e))&&C(e,t,n)}function L(e,t){if((t!==`constructor`||typeof e[t]!=`function`)&&t!=`__proto__`)return e[t]}function R(e){return g(e,x(e))}function z(e,t,r,i,s,c,f){var p=L(e,r),g=L(t,r),y=f.get(g);if(y){I(e,r,y);return}var x=c?c(p,g,r+``,e,t,f):void 0,S=x===void 0;if(S){var C=n(g),w=!C&&d(g),T=!C&&!w&&l(g);x=g,C||w||T?n(p)?x=p:m(p)?x=_(p):w?(S=!1,x=h(g,!0)):T?(S=!1,x=b(g,!0)):x=[]:M(g)||u(g)?(x=p,u(p)?x=R(p):(!o(p)||a(p))&&(x=v(g))):S=!1}S&&(f.set(g,x),s(x,g,i,c,f),f.delete(g)),I(e,r,x)}function B(e,t,n,r,i){e!==t&&p(t,function(a,s){if(i||=new f,o(a))z(e,t,s,n,B,r,i);else{var c=r?r(L(e,s),a,s+``,e,t,i):void 0;c===void 0&&(c=a),I(e,s,c)}},x)}var V=T(function(e,t,n){B(e,t,n)});export{T as a,M as i,B as n,w as o,F as r,V as t};