import{c as o}from"./p-bd8b186e.js";var e=o((function(o,e){function r(o){o&&o.options&&clearTimeout(o.options.timer)}function t(o,e,r,t){var n={timer:void 0,lastArgs:[]},i=function(){for(var t=this,i=[],u=0;u<arguments.length;u++)i[u]=arguments[u];n.lastArgs=i,n.timer?clearTimeout(n.timer):e&&r.apply(this,n.lastArgs),n.timer=setTimeout((function(){e||r.apply(t,n.lastArgs),n.timer=void 0}),o)};return t&&(i=i.bind(t)),i.options=n,i}function n(o,e,r,n){var i;Object.defineProperty(r,n,{configurable:!0,enumerable:!1,get:function(){return i},set:function(r){i=t(o,e,r,this)}})}function i(o,e,r){var n=r.value;return r.value=t(o,e,n),r}function u(o,e){for(var r=[],t=2;t<arguments.length;t++)r[t-2]=arguments[t];if(0===r.length)throw new Error("function applied debounce decorator should be a method");if(1===r.length)throw new Error("method applied debounce decorator should have valid name");var u=r[0],f=r[1],a=3===r.length&&r[2]?r[2]:Object.getOwnPropertyDescriptor(u,f);if(a)return i(o,e,a);n(o,e,u,f)}function f(){for(var o=[],e=0;e<arguments.length;e++)o[e]=arguments[e];var r=500,t=!1;if(o.length&&("number"==typeof o[0]||"object"==typeof o[0]&&void 0!==o[0].leading)){"number"==typeof o[0]&&(r=o[0]);var n=void 0;return"object"==typeof o[0]&&void 0!==o[0].leading&&(n=o[0]),1<o.length&&"object"==typeof o[1]&&void 0!==o[1].leading&&(n=o[1]),n&&(t=n.leading),function(){for(var o=[],e=0;e<arguments.length;e++)o[e]=arguments[e];return u.apply(void 0,[r,t].concat(o))}}return u.apply(void 0,[r,t].concat(o))}Object.defineProperty(e,"__esModule",{value:!0}),e.cancel=r,e.debounce=f}));export{e as i};
//# sourceMappingURL=p-1b36c529.js.map