function e(e){return e.trim()||void 0}function t(e){if(typeof e==`number`&&Number.isFinite(e))return e;if(typeof e==`string`){let t=Number.parseFloat(e);if(Number.isFinite(t))return t}}function n(t){if(typeof t==`number`)return Number.isSafeInteger(t)?t:void 0;if(typeof t!=`string`)return;let n=e(t);if(!n||!/^[+-]?\d+$/.test(n))return;let r=Number(n);return Number.isSafeInteger(r)?r:void 0}function r(e){let t=n(e);return t!==void 0&&t>0?t:void 0}function i(e){let t=n(e);return t!==void 0&&t>=0?t:void 0}export{r as i,n,i as r,t};
