function padNumber(r,e,n){const t=void 0!==n?r.toFixed(n):""+r;let i=t.indexOf(".");return(i=-1===i?t.length:i)>e?t:new Array(1+e-i).join("0")+t}function compareVersions(r,e){var n=(""+r).split("."),t=(""+e).split(".");for(let r=0;r<Math.max(n.length,t.length);r++){var i=parseInt(n[r]||"0",10),o=parseInt(t[r]||"0",10);if(o<i)return 1;if(i<o)return-1}return 0}export{padNumber,compareVersions};