const e=[5e3,1e4,3e4,6e4];function t(t){return e[Math.min(t,e.length-1)]??6e4}function n(n,r,i){n.commandPollCounts||=new Map;let a=n.commandPollCounts.get(r),o=Date.now();if(i)return n.commandPollCounts.set(r,{count:0,lastPollAt:o}),e[0]??5e3;let s=(a?.count??-1)+1;return n.commandPollCounts.set(r,{count:s,lastPollAt:o}),t(s)}function r(e,t){e.commandPollCounts?.delete(t)}function i(e,t=36e5){if(!e.commandPollCounts)return;let n=Date.now();for(let[r,i]of e.commandPollCounts.entries())n-i.lastPollAt>t&&e.commandPollCounts.delete(r)}Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return i}});
