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