"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./index.cjs390.js"),g=require("./index.cjs391.js"),v=require("./index.cjs226.js"),b=(t,o,c=3)=>{let s=0;const d=p(50,250);return g(n=>{const r=n.loaded,e=n.lengthComputable?n.total:void 0,l=r-s,a=d(l),u=r<=e;s=r;const i={loaded:r,total:e,progress:e?r/e:void 0,bytes:l,rate:a||void 0,estimated:a&&e&&u?(e-r)/a:void 0,event:n,lengthComputable:e!=null,[o?"download":"upload"]:!0};t(i)},c)},m=(t,o)=>{const c=t!=null;return[s=>o[0]({lengthComputable:c,total:t,loaded:s}),o[1]]},y=t=>(...o)=>v.asap(()=>t(...o));exports.asyncDecorator=y;exports.progressEventDecorator=m;exports.progressEventReducer=b;
//# sourceMappingURL=index.cjs333.js.map
