import{__exports as r}from"../../../_virtual/web.atob.mjs";import{__require as e}from"../internals/export.mjs";import{__require as t}from"../internals/global-this.mjs";import{__require as n}from"../internals/get-built-in.mjs";import{__require as i}from"../internals/function-uncurry-this.mjs";import{__require as o}from"../internals/function-call.mjs";import{__require as a}from"../internals/fails.mjs";import{__require as s}from"../internals/to-string.mjs";import{__require as m}from"../internals/validate-arguments-length.mjs";import{__require as u}from"../internals/base64-map.mjs";var l;function f(){if(l)return r;l=1;var f=e(),_=t(),c=n(),p=i(),g=o(),h=a(),b=s(),j=m(),q=u().c2i,d=/[^\d+/a-z]/i,v=/[\t\n\f\r ]+/g,x=/[=]{1,2}$/,w=c("atob"),C=String.fromCharCode,y=p("".charAt),E=p("".replace),k=p(d.exec),z=!!w&&!h(function(){return"hi"!==w("aGk=")}),A=z&&h(function(){return""!==w(" ")}),D=z&&!h(function(){w("a")}),G=z&&!h(function(){w()}),I=z&&1!==w.length;return f({global:!0,bind:!0,enumerable:!0,forced:!z||A||D||G||I},{atob:function(r){if(j(arguments.length,1),z&&!A&&!D)return g(w,_,r);var e,t,n,i=E(b(r),v,""),o="",a=0,s=0;if(i.length%4==0&&(i=E(i,x,"")),(e=i.length)%4==1||k(d,i))throw new(c("DOMException"))("The string is not correctly encoded","InvalidCharacterError");for(;a<e;)t=y(i,a++),n=s%4?64*n+q[t]:q[t],s++%4&&(o+=C(255&n>>(-2*s&6)));return o}}),r}export{f as __require};