"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.throttle=throttle;var _debounce=require("./debounce"),_isObject=require("./isObject"),FUNC_ERROR_TEXT="Expected a function";function throttle(e,t,i){var r=!0,n=!0;if("function"!=typeof e)throw new TypeError(FUNC_ERROR_TEXT);return(0,_isObject.isObject)(i)&&(r="leading"in i?!!i.leading:r,n="trailing"in i?!!i.trailing:n),(0,_debounce.debounce)(e,t,{leading:r,maxWait:t,trailing:n})}