import{j as v,k as A}from"./app-32ed258c.js";var M=typeof v=="object"&&v&&v.Object===Object&&v,B=M,U=B,D=typeof self=="object"&&self&&self.Object===Object&&self,X=U||D||Function("return this")(),w=X,H=w,q=H.Symbol,G=q,x=G,L=Object.prototype,z=L.hasOwnProperty,J=L.toString,m=x?x.toStringTag:void 0;function K(e){var t=z.call(e,m),n=e[m];try{e[m]=void 0;var i=!0}catch{}var o=J.call(e);return i&&(t?e[m]=n:delete e[m]),o}var Q=K,V=Object.prototype,Y=V.toString;function Z(e){return Y.call(e)}var ee=Z,E=G,te=Q,re=ee,ne="[object Null]",ie="[object Undefined]",I=E?E.toStringTag:void 0;function ae(e){return e==null?e===void 0?ie:ne:I&&I in Object(e)?te(e):re(e)}var oe=ae;function fe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var S=fe;function ce(e){return e!=null&&typeof e=="object"}var se=ce,ue=oe,de=se,be="[object Symbol]";function le(e){return typeof e=="symbol"||de(e)&&ue(e)==be}var me=le,ge=w,ve=function(){return ge.Date.now()},Te=ve,ye=/\s/;function je(e){for(var t=e.length;t--&&ye.test(e.charAt(t)););return t}var $e=je,Se=$e,Oe=/^\s+/;function pe(e){return e&&e.slice(0,Se(e)+1).replace(Oe,"")}var _e=pe,he=_e,k=S,xe=me,R=0/0,Ee=/^[-+]0x[0-9a-f]+$/i,Ie=/^0b[01]+$/i,ke=/^0o[0-7]+$/i,Re=parseInt;function Ne(e){if(typeof e=="number")return e;if(xe(e))return R;if(k(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=k(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=he(e);var n=Ie.test(e);return n||ke.test(e)?Re(e.slice(2),n?2:8):Ee.test(e)?R:+e}var we=Ne,Ge=S,$=Te,N=we,Le="Expected a function",We=Math.max,Ce=Math.min;function Fe(e,t,n){var i,o,u,s,a,c,d=0,O=!1,b=!1,T=!0;if(typeof e!="function")throw new TypeError(Le);t=N(t)||0,Ge(n)&&(O=!!n.leading,b="maxWait"in n,u=b?We(N(n.maxWait)||0,t):u,T="trailing"in n?!!n.trailing:T);function y(r){var f=i,l=o;return i=o=void 0,d=r,s=e.apply(l,f),s}function W(r){return d=r,a=setTimeout(g,t),O?y(r):s}function C(r){var f=r-c,l=r-d,h=t-f;return b?Ce(h,u-l):h}function p(r){var f=r-c,l=r-d;return c===void 0||f>=t||f<0||b&&l>=u}function g(){var r=$();if(p(r))return _(r);a=setTimeout(g,C(r))}function _(r){return a=void 0,T&&i?y(r):(i=o=void 0,s)}function F(){a!==void 0&&clearTimeout(a),d=0,i=c=o=a=void 0}function P(){return a===void 0?s:_($())}function j(){var r=$(),f=p(r);if(i=arguments,o=this,c=r,f){if(a===void 0)return W(c);if(b)return clearTimeout(a),a=setTimeout(g,t),y(c)}return a===void 0&&(a=setTimeout(g,t)),s}return j.cancel=F,j.flush=P,j}var Pe=Fe,Ae=Pe,Me=S,Be="Expected a function";function Ue(e,t,n){var i=!0,o=!0;if(typeof e!="function")throw new TypeError(Be);return Me(n)&&(i="leading"in n?!!n.leading:i,o="trailing"in n?!!n.trailing:o),Ae(e,t,{leading:i,maxWait:t,trailing:o})}var De=Ue;const He=A(De);export{G as _,me as a,oe as b,w as c,se as d,B as e,S as i,He as t};
