import{D as y,k as w,S as $,l as F,E as b,F as E,h as D,G as P,b as G,B as N,a as R,y as K}from"./helpers.2304d5ee.js";import{a as Q}from"./_arrayEach.6af5abac.js";import{k as x,c as W,g as p,e as Y}from"./_getTag.f48446e8.js";import{P as B,Q as q,R as H,T as J}from"./index.684c656d.js";import{a as V,g as X}from"./_getAllKeysIn.4f27d7aa.js";function Z(r,t){return r&&y(t,x(t),r)}function v(r,t){return r&&y(t,w(t),r)}function z(r,t){return y(r,W(r),t)}function k(r,t){return y(r,V(r),t)}var rr=Object.prototype,tr=rr.hasOwnProperty;function er(r){var t=r.length,a=new r.constructor(t);return t&&typeof r[0]=="string"&&tr.call(r,"index")&&(a.index=r.index,a.input=r.input),a}function nr(r,t){var a=t?B(r.buffer):r.buffer;return new r.constructor(a,r.byteOffset,r.byteLength)}var ar=/\w*$/;function or(r){var t=new r.constructor(r.source,ar.exec(r));return t.lastIndex=r.lastIndex,t}var S=$?$.prototype:void 0,_=S?S.valueOf:void 0;function cr(r){return _?Object(_.call(r)):{}}var sr="[object Boolean]",ir="[object Date]",fr="[object Map]",gr="[object Number]",ur="[object RegExp]",br="[object Set]",yr="[object String]",lr="[object Symbol]",pr="[object ArrayBuffer]",Tr="[object DataView]",jr="[object Float32Array]",Ar="[object Float64Array]",mr="[object Int8Array]",dr="[object Int16Array]",$r="[object Int32Array]",Sr="[object Uint8Array]",_r="[object Uint8ClampedArray]",Ir="[object Uint16Array]",Or="[object Uint32Array]";function wr(r,t,a){var f=r.constructor;switch(t){case pr:return B(r);case sr:case ir:return new f(+r);case Tr:return nr(r,a);case jr:case Ar:case mr:case dr:case $r:case Sr:case _r:case Ir:case Or:return q(r,a);case fr:return new f;case gr:case yr:return new f(r);case ur:return or(r);case br:return new f;case lr:return cr(r)}}var Fr="[object Map]";function Er(r){return F(r)&&p(r)==Fr}var I=b&&b.isMap,xr=I?E(I):Er,Br="[object Set]";function Cr(r){return F(r)&&p(r)==Br}var O=b&&b.isSet,Lr=O?E(O):Cr,Ur=1,hr=2,Mr=4,C="[object Arguments]",Dr="[object Array]",Pr="[object Boolean]",Gr="[object Date]",Nr="[object Error]",L="[object Function]",Rr="[object GeneratorFunction]",Kr="[object Map]",Qr="[object Number]",U="[object Object]",Wr="[object RegExp]",Yr="[object Set]",qr="[object String]",Hr="[object Symbol]",Jr="[object WeakMap]",Vr="[object ArrayBuffer]",Xr="[object DataView]",Zr="[object Float32Array]",vr="[object Float64Array]",zr="[object Int8Array]",kr="[object Int16Array]",rt="[object Int32Array]",tt="[object Uint8Array]",et="[object Uint8ClampedArray]",nt="[object Uint16Array]",at="[object Uint32Array]",e={};e[C]=e[Dr]=e[Vr]=e[Xr]=e[Pr]=e[Gr]=e[Zr]=e[vr]=e[zr]=e[kr]=e[rt]=e[Kr]=e[Qr]=e[U]=e[Wr]=e[Yr]=e[qr]=e[Hr]=e[tt]=e[et]=e[nt]=e[at]=!0;e[Nr]=e[L]=e[Jr]=!1;function l(r,t,a,f,T,c){var n,g=t&Ur,u=t&hr,h=t&Mr;if(n!==void 0)return n;if(!D(r))return r;var j=R(r);if(j){if(n=er(r),!g)return P(r,n)}else{var i=p(r),A=i==L||i==Rr;if(G(r))return H(r,g);if(i==U||i==C||A&&!T){if(n=u||A?{}:J(r),!g)return u?k(r,v(n,r)):z(r,Z(n,r))}else{if(!e[i])return T?r:{};n=wr(r,i,g)}}c||(c=new N);var m=c.get(r);if(m)return m;c.set(r,n),Lr(r)?r.forEach(function(o){n.add(l(o,t,a,o,r,c))}):xr(r)&&r.forEach(function(o,s){n.set(s,l(o,t,a,s,r,c))});var M=h?u?X:Y:u?w:x,d=j?void 0:M(r);return Q(d||r,function(o,s){d&&(s=o,o=r[s]),K(n,s,l(o,t,a,s,r,c))}),n}export{l as b};
