import{c as I,e as l,k as O,g as P,h as b,j as w,l as F,m,t as M,n as _}from"./_baseUniq-CDbk2EfG.js";import{at as p,aO as A,aP as E,aQ as N,aR as o,aS as R,aT as S,aU as T,aV as G}from"./mermaid.core-BXMH5ggS.js";import{W as L,X,Y as v}from"./index-DzPG15y2.js";var g=1/0,Y=17976931348623157e292;function $(n){if(!n)return n===0?n:0;if(n=L(n),n===g||n===-g){var r=n<0?-1:1;return r*Y}return n===n?n:0}function q(n){var r=$(n),a=r%1;return r===r?a?r-a:r:0}function j(n){var r=n==null?0:n.length;return r?I(n):[]}var x=Object.prototype,z=x.hasOwnProperty,k=p(function(n,r){n=Object(n);var a=-1,i=r.length,t=i>2?r[2]:void 0;for(t&&A(r[0],r[1],t)&&(i=1);++a<i;)for(var f=r[a],e=E(f),s=-1,u=e.length;++s<u;){var d=e[s],h=n[d];(h===void 0||N(h,x[d])&&!z.call(n,d))&&(n[d]=f[d])}return n});function nn(n){var r=n==null?0:n.length;return r?n[r-1]:void 0}function B(n){return function(r,a,i){var t=Object(r);if(!o(r)){var f=l(a);r=O(r),a=function(s){return f(t[s],s,t)}}var e=n(r,a,i);return e>-1?t[f?r[e]:e]:void 0}}var C=Math.max;function H(n,r,a){var i=n==null?0:n.length;if(!i)return-1;var t=a==null?0:q(a);return t<0&&(t=C(i+t,0)),P(n,l(r),t)}var rn=B(H);function K(n,r){var a=-1,i=o(n)?Array(n.length):[];return b(n,function(t,f,e){i[++a]=r(t,f,e)}),i}function an(n,r){var a=R(n)?w:K;return a(n,l(r))}var Q=Object.prototype,U=Q.hasOwnProperty;function W(n,r){return n!=null&&U.call(n,r)}function tn(n,r){return n!=null&&F(n,r,W)}function D(n,r){return n<r}function J(n,r,a){for(var i=-1,t=n.length;++i<t;){var f=n[i],e=r(f);if(e!=null&&(s===void 0?e===e&&!X(e):a(e,s)))var s=e,u=f}return u}function en(n){return n&&n.length?J(n,S,D):void 0}function Z(n,r,a,i){if(!v(n))return n;r=m(r,n);for(var t=-1,f=r.length,e=f-1,s=n;s!=null&&++t<f;){var u=M(r[t]),d=a;if(u==="__proto__"||u==="constructor"||u==="prototype")return n;if(t!=e){var h=s[u];d=void 0,d===void 0&&(d=v(h)?h:T(r[t+1])?[]:{})}G(s,u,d),s=s[u]}return n}function sn(n,r,a){for(var i=-1,t=r.length,f={};++i<t;){var e=r[i],s=_(n,e);a(s,e)&&Z(f,m(e,n),s)}return f}export{D as a,J as b,K as c,sn as d,en as e,j as f,rn as g,tn as h,k as i,q as j,nn as l,an as m,$ as t};
