(self.webpackChunkwcStripeModules=self.webpackChunkwcStripeModules||[]).push([[96],{334(e){function t(e,t=100,o={}){if("function"!=typeof e)throw new TypeError(`Expected the first parameter to be a function, got \`${typeof e}\`.`);if(t<0)throw new RangeError("`wait` must not be negative.");const{immediate:n}="boolean"==typeof o?{immediate:o}:o;let r,i,c,s,f;function u(){const t=r,o=i;return r=void 0,i=void 0,f=e.apply(t,o),f}function p(){const e=Date.now()-s;e<t&&e>=0?c=setTimeout(p,t-e):(c=void 0,n||(f=u()))}const a=function(...e){if(r&&this!==r&&Object.getPrototypeOf(this)===Object.getPrototypeOf(r))throw new Error("Debounced method called with different contexts of the same prototype.");r=this,i=e,s=Date.now();const o=n&&!c;return c||(c=setTimeout(p,t)),o&&(f=u()),f};return Object.defineProperty(a,"isPending",{get:()=>void 0!==c}),a.clear=()=>{c&&(clearTimeout(c),c=void 0)},a.flush=()=>{c&&a.trigger()},a.trigger=()=>{f=u(),a.clear()},a}e.exports.debounce=t,e.exports=t}}]);