import{b as m,a as b,c as d,d as h,i as l}from"./_baseUniq-DT1kfcxk.js";import{am as o,an as g,ao as p}from"./mermaid.core-7TB2QPZo.js";function M(a){var n=a==null?0:a.length;return n?m(a):[]}function v(a,n){var s=-1,t=o(a)?Array(a.length):[];return b(a,function(f,i,e){t[++s]=n(f,i,e)}),t}function k(a,n){var s=g(a)?h:v;return s(a,d(n))}function x(a,n){return a<n}function A(a,n,s){for(var t=-1,f=a.length;++t<f;){var i=a[t],e=n(i);if(e!=null&&(r===void 0?e===e&&!l(e):s(e,r)))var r=e,u=i}return u}function w(a){return a&&a.length?A(a,p,x):void 0}export{x as a,A as b,v as c,w as d,M as f,k as m};
