import{__exports as r}from"../../../_virtual/base64-vlq2.mjs";import{__require as e}from"./base64.mjs";var o;function t(){if(o)return r;o=1;var t=e();return r.encode=function(r){var e,o="",i=function(r){return r<0?1+(-r<<1):0+(r<<1)}(r);do{e=31&i,(i>>>=5)>0&&(e|=32),o+=t.encode(e)}while(i>0);return o},r.decode=function(r,e,o){var i,n,a,d,u=r.length,s=0,c=0;do{if(e>=u)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(n=t.decode(r.charCodeAt(e++))))throw new Error("Invalid base64 digit: "+r.charAt(e-1));i=!!(32&n),s+=(n&=31)<<c,c+=5}while(i);o.value=(d=(a=s)>>1,1&~a?d:-d),o.rest=e},r}export{t as __require};