import{c as y}from"./core-js-2d8c9565.js";var p,W;function Z(){if(W)return p;W=1;var x="Expected a function",I=0/0,_="[object Symbol]",C=/^\s+|\s+$/g,M=/^[-+]0x[0-9a-f]+$/i,N=/^0b[01]+$/i,R=/^0o[0-7]+$/i,$=parseInt,A=typeof y=="object"&&y&&y.Object===Object&&y,B=typeof self=="object"&&self&&self.Object===Object&&self,F=A||B||Function("return this")(),q=Object.prototype,G=q.toString,P=Math.max,D=Math.min,h=function(){return F.Date.now()};function H(e,r,n){var f,a,g,c,i,u,s=0,S=!1,d=!1,j=!0;if(typeof e!="function")throw new TypeError(x);r=O(r)||0,m(n)&&(S=!!n.leading,d="maxWait"in n,g=d?P(O(n.maxWait)||0,r):g,j="trailing"in n?!!n.trailing:j);function v(t){var o=f,l=a;return f=a=void 0,s=t,c=e.apply(l,o),c}function J(t){return s=t,i=setTimeout(b,r),S?v(t):c}function K(t){var o=t-u,l=t-s,L=r-o;return d?D(L,g-l):L}function E(t){var o=t-u,l=t-s;return u===void 0||o>=r||o<0||d&&l>=g}function b(){var t=h();if(E(t))return k(t);i=setTimeout(b,K(t))}function k(t){return i=void 0,j&&f?v(t):(f=a=void 0,c)}function Q(){i!==void 0&&clearTimeout(i),s=0,f=u=a=i=void 0}function V(){return i===void 0?c:k(h())}function T(){var t=h(),o=E(t);if(f=arguments,a=this,u=t,o){if(i===void 0)return J(u);if(d)return i=setTimeout(b,r),v(u)}return i===void 0&&(i=setTimeout(b,r)),c}return T.cancel=Q,T.flush=V,T}function U(e,r,n){var f=!0,a=!0;if(typeof e!="function")throw new TypeError(x);return m(n)&&(f="leading"in n?!!n.leading:f,a="trailing"in n?!!n.trailing:a),H(e,r,{leading:f,maxWait:r,trailing:a})}function m(e){var r=typeof e;return!!e&&(r=="object"||r=="function")}function X(e){return!!e&&typeof e=="object"}function z(e){return typeof e=="symbol"||X(e)&&G.call(e)==_}function O(e){if(typeof e=="number")return e;if(z(e))return I;if(m(e)){var r=typeof e.valueOf=="function"?e.valueOf():e;e=m(r)?r+"":r}if(typeof e!="string")return e===0?e:+e;e=e.replace(C,"");var n=N.test(e);return n||R.test(e)?$(e.slice(2),n?2:8):M.test(e)?I:+e}return p=U,p}export{Z as r};
