const BASE64_CHARS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",BASE64_CODES=new Uint8Array(123);for(let t=0;t<BASE64_CHARS.length;++t)BASE64_CODES[BASE64_CHARS.charCodeAt(t)]=t;export function decode(t){let e=3*t.length/4>>>0;61===t.charCodeAt(t.length-2)?e-=2:61===t.charCodeAt(t.length-1)&&(e-=1);const A=new Uint8Array(e);for(let S=0,r=0;S<t.length;S+=4){const e=BASE64_CODES[t.charCodeAt(S+0)],C=BASE64_CODES[t.charCodeAt(S+1)],n=BASE64_CODES[t.charCodeAt(S+2)],o=BASE64_CODES[t.charCodeAt(S+3)];A[r++]=e<<2|C>>4,A[r++]=(15&C)<<4|n>>2,A[r++]=(3&n)<<6|63&o}return A.buffer}