import{r as e}from"./fp.D6iSEN_M.js";import{t}from"./jsx-runtime.2Bc2s-6V.js";import{t as n}from"./Loader.CNPeb8pz.js";import"./loaders.Dnk_6rDo.js";var r=(e,t)=>a(e+t),i=e=>e%1==0,a=e=>i(e)?e:parseFloat(e.toPrecision(12)),o=(e,t)=>a(e*t),s=(e,t)=>{let n=10**t;return a(Math.round(a(e*n))/n)},c=(e,t)=>{let n=10**t;return a(Math.trunc(a(e*n))/n)},l=(e,t)=>{let n=10**t;return a(Math.ceil(a(e*n))/n)},u=e=>{let[,t]=e.toString().split(`.`);return t?t.length:0},d=({array:t,k:n,bankers:r=[],roundingFunc:i=e})=>{let a=0,s=[],c=(e,l)=>{for(let u=l,d=t.length-n+e+1;u<d;u++)s[e]=t[u],e<n-1?c(e+1,u+1):r.every(e=>s.includes(e))&&(a+=i(s.reduce(o,1)))};return c(0,0),a},f=(e,t=0)=>{let n=10**t,r=+(t?e*n:e).toFixed(8),i=Math.floor(r),a=r-i,o=a>.49999999&&a<.50000001?i%2==0?i:i+1:Math.round(r);return t?o/n:o},p=(e,t=1)=>e<=1?t:p(e-1,e*t),m=(e,t)=>t*100/e,h=(e,t)=>e*t/100,g=e=>Math.floor(Math.random()*e)+1,_=t(),v=()=>(0,_.jsx)(`div`,{children:(0,_.jsx)(n,{size:`small`})});export{p as a,g as c,i as d,o as f,s as h,c as i,u as l,r as m,f as n,d as o,l as p,h as r,a as s,v as t,m as u};