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