function G(n){return Array.prototype.concat.apply([],n)}const l=Object.prototype.toString,P=Object.prototype.hasOwnProperty;function p(n){return n===void 0}function O(n){return n!==void 0}function _(n){return n==null}function y(n){return l.call(n)==="[object Array]"}function S(n){return l.call(n)==="[object Object]"}function T(n){return l.call(n)==="[object Number]"}function w(n){const t=l.call(n);return t==="[object Function]"||t==="[object AsyncFunction]"||t==="[object GeneratorFunction]"||t==="[object AsyncGeneratorFunction]"||t==="[object Proxy]"}function q(n){return l.call(n)==="[object String]"}function z(n){if(!y(n))throw new Error("must supply array")}function m(n,t){return P.call(n,t)}function v(n,t){const r=j(t);let e;return c(n,function(u,o){if(r(u,o))return e=u,!1}),e}function B(n,t){const r=j(t);let e=y(n)?-1:void 0;return c(n,function(u,o){if(r(u,o))return e=o,!1}),e}function C(n,t){const r=j(t);let e=[];return c(n,function(u,o){r(u,o)&&e.push(u)}),e}function c(n,t){let r,e;if(p(n))return;const u=y(n)?U:R;for(let o in n)if(m(n,o)&&(r=n[o],e=t(r,u(o)),e===!1))return r}function K(n,t){if(p(n))return[];z(n);const r=j(t);return n.filter(function(e,u){return!r(e,u)})}function k(n,t,r){return c(n,function(e,u){r=t(r,e,u)}),r}function A(n,t){return!!k(n,function(r,e,u){return r&&t(e,u)},!0)}function H(n,t){return!!v(n,t)}function b(n,t){let r=[];return c(n,function(e,u){r.push(t(e,u))}),r}function E(n){return n&&Object.keys(n)||[]}function I(n){return E(n).length}function J(n){return b(n,t=>t)}function F(n,t,r={}){return t=d(t),c(n,function(e){let u=t(e)||"_",o=r[u];o||(o=r[u]=[]),o.push(e)}),r}function x(n,...t){n=d(n);let r={};return c(t,e=>F(e,n,r)),b(r,function(e,u){return e[0]})}const L=x;function M(n,t){t=d(t);let r=[];return c(n,function(e,u){let o=t(e,u),f={d:o,v:e};for(var i=0;ie.v)}function Q(n){return function(t){return A(n,function(r,e){return t[e]===r})}}function d(n){return w(n)?n:t=>t[n]}function j(n){return w(n)?n:t=>t===n}function R(n){return n}function U(n){return Number(n)}function V(n,t){let r,e,u,o;function f(a){let D=Date.now(),g=a?0:o+t-D;if(g>0)return i(g);n.apply(u,e),s()}function i(a){r=setTimeout(f,a)}function s(){r&&clearTimeout(r),r=o=e=u=void 0}function N(){r&&f(!0),s()}function h(...a){o=Date.now(),e=a,u=this,r||i(t)}return h.flush=N,h.cancel=s,h}function W(n,t){return n.bind(t)}function X(n,...t){return Object.assign(n,...t)}function Y(n,t,r){let e=n;return c(t,function(u,o){if(typeof u!="number"&&typeof u!="string")throw new Error("illegal key type: "+typeof u+". Key should be of type number or string.");if(u==="constructor")throw new Error("illegal key: constructor");if(u==="__proto__")throw new Error("illegal key: __proto__");let f=t[o+1],i=e[u];O(f)&&_(i)&&(i=e[u]=isNaN(+f)?{}:[]),p(f)?p(r)?delete e[u]:e[u]=r:e=i}),n}function Z(n,t){let r={},e=Object(n);return c(t,function(u){u in e&&(r[u]=n[u])}),r}function $(n,t){let r={},e=Object(n);return c(e,function(u,o){t.indexOf(o)===-1&&(r[o]=u)}),r}export{J as A,_ as B,x as C,L as D,E,K as F,I as G,y as a,C as b,v as c,S as d,X as e,c as f,F as g,p as h,T as i,A as j,m as k,V as l,W as m,w as n,q as o,Y as p,Z as q,k as r,M as s,B as t,H as u,b as v,$ as w,Q as x,O as y,G as z};