import{S as e,d as t,g as n,h as r,n as i,p as a,s as o,u as s,x as c,y as l}from"./_Uint8Array.DjkcCK1N.js";import{a as u,c as d,d as f,i as p,n as m,s as h,t as g,u as _}from"./_initCloneObject.CsAKJ5eP.js";import{n as v}from"./_arrayIncludesWith.b4wEvreZ.js";import{n as y,t as b}from"./isArrayLikeObject.B-9Qzj88.js";function x(e,t,i){if(!c(i))return!1;var o=typeof t;return(o==`number`?a(i)&&n(t,i.length):o==`string`&&t in i)?r(i[t],e):!1}function S(e){return y(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a==`function`?(i--,a):void 0,o&&x(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,a)}return t})}function C(e,t,n){(n!==void 0&&!r(e[t],n)||n===void 0&&!(t in e))&&_(e,t,n)}function w(e,t){if(!(t===`constructor`&&typeof e[t]==`function`)&&t!=`__proto__`)return e[t]}function T(e){return d(e,h(e))}function E(n,r,i,a,d,h,_){var v=w(n,i),y=w(r,i),x=_.get(y);if(x){C(n,i,x);return}var S=h?h(v,y,i+``,n,r,_):void 0,E=S===void 0;if(E){var D=e(y),O=!D&&s(y),k=!D&&!O&&o(y);S=y,D||O||k?e(v)?S=v:b(v)?S=f(v):O?(E=!1,S=p(y,!0)):k?(E=!1,S=m(y,!0)):S=[]:u(y)||t(y)?(S=v,t(v)?S=T(v):(!c(v)||l(v))&&(S=g(y))):E=!1}E&&(_.set(y,S),d(S,y,a,h,_),_.delete(y)),C(n,i,S)}function D(e,t,n,r,a){e!==t&&v(t,function(o,s){if(a||=new i,c(o))E(e,t,s,n,D,r,a);else{var l=r?r(w(e,s),o,s+``,e,t,a):void 0;l===void 0&&(l=o),C(e,s,l)}},h)}var O=S(function(e,t,n){D(e,t,n)});export{S as n,x as r,O as t};