import{D as e,L as t,M as n,O as r,R as i,V as a,_ as o,a as s,c,h as l,i as u,l as d,p as f,r as ee,s as te,v as p,w as m,y as ne,z as h}from"./isArrayLikeObject.D7zZ4-oH.js";import{r as g,t as _}from"./_getTag.BIq2tBWt.js";function v(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function y(e){return m(e)?l(e):g(e)}function b(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function x(t,n){return t&&e(n,y(n),t)}function re(t,n){return t&&e(n,f(n),t)}function S(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function C(){return[]}var w=Object.prototype.propertyIsEnumerable,T=Object.getOwnPropertySymbols,E=T?function(e){return e==null?[]:(e=Object(e),S(T(e),function(t){return w.call(e,t)}))}:C;function ie(t,n){return e(t,E(t),n)}var D=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)b(t,E(e)),e=d(e);return t}:C;function ae(t,n){return e(t,D(t),n)}function O(e,t,n){var r=t(e);return i(e)?r:b(r,n(e))}function k(e){return O(e,y,E)}function A(e){return O(e,f,D)}var oe=Object.prototype.hasOwnProperty;function se(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]==`string`&&oe.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}function ce(e,t){var n=t?s(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var j=/\w*$/;function M(e){var t=new e.constructor(e.source,j.exec(e));return t.lastIndex=e.lastIndex,t}var N=a?a.prototype:void 0,P=N?N.valueOf:void 0;function F(e){return P?Object(P.call(e)):{}}var I=`[object Boolean]`,L=`[object Date]`,R=`[object Map]`,z=`[object Number]`,B=`[object RegExp]`,V=`[object Set]`,H=`[object String]`,U=`[object Symbol]`,W=`[object ArrayBuffer]`,G=`[object DataView]`,le=`[object Float32Array]`,ue=`[object Float64Array]`,de=`[object Int8Array]`,fe=`[object Int16Array]`,pe=`[object Int32Array]`,me=`[object Uint8Array]`,he=`[object Uint8ClampedArray]`,ge=`[object Uint16Array]`,_e=`[object Uint32Array]`;function ve(e,t,n){var r=e.constructor;switch(t){case W:return s(e);case I:case L:return new r(+e);case G:return ce(e,n);case le:case ue:case de:case fe:case pe:case me:case he:case ge:case _e:return u(e,n);case R:return new r;case z:case H:return new r(e);case B:return M(e);case V:return new r;case U:return F(e)}}var ye=`[object Map]`;function be(e){return h(e)&&_(e)==ye}var K=o&&o.isMap,xe=K?p(K):be,Se=`[object Set]`;function Ce(e){return h(e)&&_(e)==Se}var q=o&&o.isSet,we=q?p(q):Ce,Te=1,Ee=2,De=4,J=`[object Arguments]`,Oe=`[object Array]`,ke=`[object Boolean]`,Ae=`[object Date]`,je=`[object Error]`,Y=`[object Function]`,Me=`[object GeneratorFunction]`,Ne=`[object Map]`,Pe=`[object Number]`,X=`[object Object]`,Fe=`[object RegExp]`,Ie=`[object Set]`,Le=`[object String]`,Re=`[object Symbol]`,ze=`[object WeakMap]`,Be=`[object ArrayBuffer]`,Ve=`[object DataView]`,He=`[object Float32Array]`,Ue=`[object Float64Array]`,Z=`[object Int8Array]`,We=`[object Int16Array]`,Ge=`[object Int32Array]`,Ke=`[object Uint8Array]`,qe=`[object Uint8ClampedArray]`,Je=`[object Uint16Array]`,Ye=`[object Uint32Array]`,Q={};Q[J]=Q[Oe]=Q[Be]=Q[Ve]=Q[ke]=Q[Ae]=Q[He]=Q[Ue]=Q[Z]=Q[We]=Q[Ge]=Q[Ne]=Q[Pe]=Q[X]=Q[Fe]=Q[Ie]=Q[Le]=Q[Re]=Q[Ke]=Q[qe]=Q[Je]=Q[Ye]=!0,Q[je]=Q[Y]=Q[ze]=!1;function $(e,a,o,s,l,u){var d,p=a&Te,m=a&Ee,h=a&De;if(o&&(d=l?o(e,s,l,u):o(e)),d!==void 0)return d;if(!t(e))return e;var g=i(e);if(g){if(d=se(e),!p)return n(e,d)}else{var b=_(e),S=b==Y||b==Me;if(ne(e))return te(e,p);if(b==X||b==J||S&&!l){if(d=m||S?{}:ee(e),!p)return m?ae(e,re(d,e)):ie(e,x(d,e))}else{if(!Q[b])return l?e:{};d=ve(e,b,p)}}u||=new c;var C=u.get(e);if(C)return C;u.set(e,d),we(e)?e.forEach(function(t){d.add($(t,a,o,t,e,u))}):xe(e)&&e.forEach(function(t,n){d.set(n,$(t,a,o,n,e,u))});var w=g?void 0:(h?m?A:k:m?f:y)(e);return v(w||e,function(t,n){w&&(n=t,t=e[n]),r(d,n,$(t,a,o,n,e,u))}),d}var Xe=4;function Ze(e){return $(e,Xe)}export{b as a,S as i,A as n,y as o,k as r,v as s,Ze as t};