mirror of
https://github.com/multipleof4/multipleof4.github.io.git
synced 2026-03-16 19:01:06 +00:00
74 lines
59 KiB
HTML
74 lines
59 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title></title>
|
|
<style>
|
|
html, body {
|
|
margin: 0;
|
|
padding: 0;
|
|
height: 100%;
|
|
background: #111;
|
|
color: #fff;
|
|
font-family: monospace;
|
|
}
|
|
#unlock {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 100%;
|
|
gap: 16px;
|
|
padding: 20px;
|
|
box-sizing: border-box;
|
|
}
|
|
#unlock input {
|
|
font-family: monospace;
|
|
font-size: 1.5em;
|
|
padding: 12px;
|
|
border: 1px solid #444;
|
|
border-radius: 4px;
|
|
background: #222;
|
|
color: #fff;
|
|
width: 100%;
|
|
max-width: 400px;
|
|
text-align: center;
|
|
}
|
|
#unlock button {
|
|
font-family: monospace;
|
|
font-size: 1.5em;
|
|
padding: 12px 40px;
|
|
border: none;
|
|
border-radius: 4px;
|
|
background: #fff;
|
|
color: #111;
|
|
cursor: pointer;
|
|
}
|
|
#totp-button {
|
|
display: none;
|
|
justify-content: center;
|
|
align-items: center;
|
|
font-size: min(15vw, 4em);
|
|
width: 100%;
|
|
height: 100%;
|
|
border: none;
|
|
background: #111;
|
|
color: #fff;
|
|
cursor: pointer;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="unlock">
|
|
<input id="password" type="password" placeholder="password" autofocus />
|
|
<button id="go">→</button>
|
|
</div>
|
|
<button id="totp-button"></button>
|
|
<script>var Lt=Object.create;var R0=Object.defineProperty;var Ct=Object.getOwnPropertyDescriptor;var Yt=Object.getOwnPropertyNames;var Ht=Object.getPrototypeOf,Kt=Object.prototype.hasOwnProperty;var M0=(s=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(s,{get:(e,o)=>(typeof require<"u"?require:e)[o]}):s)(function(s){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+s+'" is not supported')});var Ft=(s,e)=>()=>(s&&(e=s(s=0)),e);var k0=(s,e)=>()=>(e||s((e={exports:{}}).exports,e),e.exports),jt=(s,e)=>{for(var o in e)R0(s,o,{get:e[o],enumerable:!0})},Pt=(s,e,o,x)=>{if(e&&typeof e=="object"||typeof e=="function")for(let h of Yt(e))!Kt.call(s,h)&&h!==o&&R0(s,h,{get:()=>e[h],enumerable:!(x=Ct(e,h))||x.enumerable});return s};var zt=(s,e,o)=>(o=s!=null?Lt(Ht(s)):{},Pt(e||!s||!s.__esModule?R0(o,"default",{value:s,enumerable:!0}):o,s));var gt={};jt(gt,{default:()=>Y0});function ft(s,e,o,x){let h,b,v,I=e||[0],E=(o=o||0)>>>3,B=x===-1?3:0;for(h=0;h<s.length;h+=1)v=h+E,b=v>>>2,I.length<=b&&I.push(0),I[b]|=s[h]<<8*(B+x*(v%4));return{value:I,binLen:8*s.length+o}}function Gf(s,e,o){switch(e){case"UTF8":case"UTF16BE":case"UTF16LE":break;default:throw new Error("encoding must be UTF8, UTF16BE, or UTF16LE")}switch(s){case"HEX":return function(x,h,b){return function(v,I,E,B){let H,y,S,z;if(v.length%2!=0)throw new Error("String of HEX type must be in byte increments");let P=I||[0],k=(E=E||0)>>>3,rf=B===-1?3:0;for(H=0;H<v.length;H+=2){if(y=parseInt(v.substr(H,2),16),isNaN(y))throw new Error("String of HEX type contains invalid characters");for(z=(H>>>1)+k,S=z>>>2;P.length<=S;)P.push(0);P[S]|=y<<8*(rf+B*(z%4))}return{value:P,binLen:4*v.length+E}}(x,h,b,o)};case"TEXT":return function(x,h,b){return function(v,I,E,B,H){let y,S,z,P,k,rf,Af,df,gf=0,bf=E||[0],yf=(B=B||0)>>>3;if(I==="UTF8")for(Af=H===-1?3:0,z=0;z<v.length;z+=1)for(y=v.charCodeAt(z),S=[],128>y?S.push(y):2048>y?(S.push(192|y>>>6),S.push(128|63&y)):55296>y||57344<=y?S.push(224|y>>>12,128|y>>>6&63,128|63&y):(z+=1,y=65536+((1023&y)<<10|1023&v.charCodeAt(z)),S.push(240|y>>>18,128|y>>>12&63,128|y>>>6&63,128|63&y)),P=0;P<S.length;P+=1){for(rf=gf+yf,k=rf>>>2;bf.length<=k;)bf.push(0);bf[k]|=S[P]<<8*(Af+H*(rf%4)),gf+=1}else for(Af=H===-1?2:0,df=I==="UTF16LE"&&H!==1||I!=="UTF16LE"&&H===1,z=0;z<v.length;z+=1){for(y=v.charCodeAt(z),df===!0&&(P=255&y,y=P<<8|y>>>8),rf=gf+yf,k=rf>>>2;bf.length<=k;)bf.push(0);bf[k]|=y<<8*(Af+H*(rf%4)),gf+=2}return{value:bf,binLen:8*gf+B}}(x,e,h,b,o)};case"B64":return function(x,h,b){return function(v,I,E,B){let H,y,S,z,P,k,rf,Af=0,df=I||[0],gf=(E=E||0)>>>3,bf=B===-1?3:0,yf=v.indexOf("=");if(v.search(/^[a-zA-Z0-9=+/]+$/)===-1)throw new Error("Invalid character in base-64 string");if(v=v.replace(/=/g,""),yf!==-1&&yf<v.length)throw new Error("Invalid '=' found in base-64 string");for(y=0;y<v.length;y+=4){for(P=v.substr(y,4),z=0,S=0;S<P.length;S+=1)H=ht.indexOf(P.charAt(S)),z|=H<<18-6*S;for(S=0;S<P.length-1;S+=1){for(rf=Af+gf,k=rf>>>2;df.length<=k;)df.push(0);df[k]|=(z>>>16-8*S&255)<<8*(bf+B*(rf%4)),Af+=1}}return{value:df,binLen:8*Af+E}}(x,h,b,o)};case"BYTES":return function(x,h,b){return function(v,I,E,B){let H,y,S,z,P=I||[0],k=(E=E||0)>>>3,rf=B===-1?3:0;for(y=0;y<v.length;y+=1)H=v.charCodeAt(y),z=y+k,S=z>>>2,P.length<=S&&P.push(0),P[S]|=H<<8*(rf+B*(z%4));return{value:P,binLen:8*v.length+E}}(x,h,b,o)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch{throw new Error(ct)}return function(x,h,b){return function(v,I,E,B){return ft(new Uint8Array(v),I,E,B)}(x,h,b,o)};case"UINT8ARRAY":try{new Uint8Array(0)}catch{throw new Error(ut)}return function(x,h,b){return ft(x,h,b,o)};default:throw new Error("format must be HEX, TEXT, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function tt(s,e,o,x){switch(s){case"HEX":return function(h){return function(b,v,I,E){let B="0123456789abcdef",H,y,S="",z=v/8,P=I===-1?3:0;for(H=0;H<z;H+=1)y=b[H>>>2]>>>8*(P+I*(H%4)),S+=B.charAt(y>>>4&15)+B.charAt(15&y);return E.outputUpper?S.toUpperCase():S}(h,e,o,x)};case"B64":return function(h){return function(b,v,I,E){let B,H,y,S,z,P="",k=v/8,rf=I===-1?3:0;for(B=0;B<k;B+=3)for(S=B+1<k?b[B+1>>>2]:0,z=B+2<k?b[B+2>>>2]:0,y=(b[B>>>2]>>>8*(rf+I*(B%4))&255)<<16|(S>>>8*(rf+I*((B+1)%4))&255)<<8|z>>>8*(rf+I*((B+2)%4))&255,H=0;H<4;H+=1)P+=8*B+6*H<=v?ht.charAt(y>>>6*(3-H)&63):E.b64Pad;return P}(h,e,o,x)};case"BYTES":return function(h){return function(b,v,I){let E,B,H="",y=v/8,S=I===-1?3:0;for(E=0;E<y;E+=1)B=b[E>>>2]>>>8*(S+I*(E%4))&255,H+=String.fromCharCode(B);return H}(h,e,o)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch{throw new Error(ct)}return function(h){return function(b,v,I){let E,B=v/8,H=new ArrayBuffer(B),y=new Uint8Array(H),S=I===-1?3:0;for(E=0;E<B;E+=1)y[E]=b[E>>>2]>>>8*(S+I*(E%4))&255;return H}(h,e,o)};case"UINT8ARRAY":try{new Uint8Array(0)}catch{throw new Error(ut)}return function(h){return function(b,v,I){let E,B=v/8,H=I===-1?3:0,y=new Uint8Array(B);for(E=0;E<B;E+=1)y[E]=b[E>>>2]>>>8*(H+I*(E%4))&255;return y}(h,e,o)};default:throw new Error("format must be HEX, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function u0(s,e){let o,x,h=s.binLen>>>3,b=e.binLen>>>3,v=h<<3,I=4-h<<3;if(h%4!=0){for(o=0;o<b;o+=4)x=h+o>>>2,s.value[x]|=e.value[o>>>2]<<v,s.value.push(0),s.value[x+1]|=e.value[o>>>2]>>>I;return(s.value.length<<2)-4>=b+h&&s.value.pop(),{value:s.value,binLen:s.binLen+e.binLen}}return{value:s.value.concat(e.value),binLen:s.binLen+e.binLen}}function et(s){let e={outputUpper:!1,b64Pad:"=",outputLen:-1},o=s||{},x="Output length must be a multiple of 8";if(e.outputUpper=o.outputUpper||!1,o.b64Pad&&(e.b64Pad=o.b64Pad),o.outputLen){if(o.outputLen%8!=0)throw new Error(x);e.outputLen=o.outputLen}else if(o.shakeLen){if(o.shakeLen%8!=0)throw new Error(x);e.outputLen=o.shakeLen}if(typeof e.outputUpper!="boolean")throw new Error("Invalid outputUpper formatting option");if(typeof e.b64Pad!="string")throw new Error("Invalid b64Pad formatting option");return e}function Hf(s,e,o,x){let h=s+" must include a value and format";if(!e){if(!x)throw new Error(h);return x}if(e.value===void 0||!e.format)throw new Error(h);return Gf(e.format,e.encoding||"UTF8",o)(e.value)}function Zf(s,e){return s<<e|s>>>32-e}function mf(s,e){return s>>>e|s<<32-e}function lt(s,e){return s>>>e}function rt(s,e,o){return s^e^o}function bt(s,e,o){return s&e^~s&o}function dt(s,e,o){return s&e^s&o^e&o}function Ot(s){return mf(s,2)^mf(s,13)^mf(s,22)}function Uf(s,e){let o=(65535&s)+(65535&e);return(65535&(s>>>16)+(e>>>16)+(o>>>16))<<16|65535&o}function Xt(s,e,o,x){let h=(65535&s)+(65535&e)+(65535&o)+(65535&x);return(65535&(s>>>16)+(e>>>16)+(o>>>16)+(x>>>16)+(h>>>16))<<16|65535&h}function Qf(s,e,o,x,h){let b=(65535&s)+(65535&e)+(65535&o)+(65535&x)+(65535&h);return(65535&(s>>>16)+(e>>>16)+(o>>>16)+(x>>>16)+(h>>>16)+(b>>>16))<<16|65535&b}function Zt(s){return mf(s,7)^mf(s,18)^lt(s,3)}function Dt(s){return mf(s,6)^mf(s,11)^mf(s,25)}function Gt(s){return[1732584193,4023233417,2562383102,271733878,3285377520]}function yt(s,e){let o,x,h,b,v,I,E,B=[];for(o=e[0],x=e[1],h=e[2],b=e[3],v=e[4],E=0;E<80;E+=1)B[E]=E<16?s[E]:Zf(B[E-3]^B[E-8]^B[E-14]^B[E-16],1),I=E<20?Qf(Zf(o,5),bt(x,h,b),v,1518500249,B[E]):E<40?Qf(Zf(o,5),rt(x,h,b),v,1859775393,B[E]):E<60?Qf(Zf(o,5),dt(x,h,b),v,2400959708,B[E]):Qf(Zf(o,5),rt(x,h,b),v,3395469782,B[E]),v=b,b=h,h=Zf(x,30),x=o,o=I;return e[0]=Uf(o,e[0]),e[1]=Uf(x,e[1]),e[2]=Uf(h,e[2]),e[3]=Uf(b,e[3]),e[4]=Uf(v,e[4]),e}function Vt(s,e,o,x){let h,b=15+(e+65>>>9<<4),v=e+o;for(;s.length<=b;)s.push(0);for(s[e>>>5]|=128<<24-e%32,s[b]=4294967295&v,s[b-1]=v/kf|0,h=0;h<s.length;h+=16)x=yt(s.slice(h,h+16),x);return x}function nt(s){let e;return e=s=="SHA-224"?Cf.slice():Yf.slice(),e}function it(s,e){let o,x,h,b,v,I,E,B,H,y,S,z=[];for(o=e[0],x=e[1],h=e[2],b=e[3],v=e[4],I=e[5],E=e[6],B=e[7],S=0;S<64;S+=1)z[S]=S<16?s[S]:Xt(mf(P=z[S-2],17)^mf(P,19)^lt(P,10),z[S-7],Zt(z[S-15]),z[S-16]),H=Qf(B,Dt(v),bt(v,I,E),C[S],z[S]),y=Uf(Ot(o),dt(o,x,h)),B=E,E=I,I=v,v=Uf(b,H),b=h,h=x,x=o,o=Uf(H,y);var P;return e[0]=Uf(o,e[0]),e[1]=Uf(x,e[1]),e[2]=Uf(h,e[2]),e[3]=Uf(b,e[3]),e[4]=Uf(v,e[4]),e[5]=Uf(I,e[5]),e[6]=Uf(E,e[6]),e[7]=Uf(B,e[7]),e}function st(s,e){let o;return e>32?(o=64-e,new w(s.I<<e|s.N>>>o,s.N<<e|s.I>>>o)):e!==0?(o=32-e,new w(s.N<<e|s.I>>>o,s.I<<e|s.N>>>o)):s}function Rf(s,e){let o;return e<32?(o=32-e,new w(s.N>>>e|s.I<<o,s.I>>>e|s.N<<o)):(o=64-e,new w(s.I>>>e|s.N<<o,s.N>>>e|s.I<<o))}function vt(s,e){return new w(s.N>>>e,s.I>>>e|s.N<<32-e)}function Wt(s,e,o){return new w(s.N&e.N^s.N&o.N^e.N&o.N,s.I&e.I^s.I&o.I^e.I&o.I)}function $t(s){let e=Rf(s,28),o=Rf(s,34),x=Rf(s,39);return new w(e.N^o.N^x.N,e.I^o.I^x.I)}function Tf(s,e){let o,x;o=(65535&s.I)+(65535&e.I),x=(s.I>>>16)+(e.I>>>16)+(o>>>16);let h=(65535&x)<<16|65535&o;return o=(65535&s.N)+(65535&e.N)+(x>>>16),x=(s.N>>>16)+(e.N>>>16)+(o>>>16),new w((65535&x)<<16|65535&o,h)}function Qt(s,e,o,x){let h,b;h=(65535&s.I)+(65535&e.I)+(65535&o.I)+(65535&x.I),b=(s.I>>>16)+(e.I>>>16)+(o.I>>>16)+(x.I>>>16)+(h>>>16);let v=(65535&b)<<16|65535&h;return h=(65535&s.N)+(65535&e.N)+(65535&o.N)+(65535&x.N)+(b>>>16),b=(s.N>>>16)+(e.N>>>16)+(o.N>>>16)+(x.N>>>16)+(h>>>16),new w((65535&b)<<16|65535&h,v)}function kt(s,e,o,x,h){let b,v;b=(65535&s.I)+(65535&e.I)+(65535&o.I)+(65535&x.I)+(65535&h.I),v=(s.I>>>16)+(e.I>>>16)+(o.I>>>16)+(x.I>>>16)+(h.I>>>16)+(b>>>16);let I=(65535&v)<<16|65535&b;return b=(65535&s.N)+(65535&e.N)+(65535&o.N)+(65535&x.N)+(65535&h.N)+(v>>>16),v=(s.N>>>16)+(e.N>>>16)+(o.N>>>16)+(x.N>>>16)+(h.N>>>16)+(b>>>16),new w((65535&v)<<16|65535&b,I)}function $f(s,e){return new w(s.N^e.N,s.I^e.I)}function f1(s){let e=Rf(s,19),o=Rf(s,61),x=vt(s,6);return new w(e.N^o.N^x.N,e.I^o.I^x.I)}function t1(s){let e=Rf(s,1),o=Rf(s,8),x=vt(s,7);return new w(e.N^o.N^x.N,e.I^o.I^x.I)}function e1(s){let e=Rf(s,14),o=Rf(s,18),x=Rf(s,41);return new w(e.N^o.N^x.N,e.I^o.I^x.I)}function ot(s){return s==="SHA-384"?[new w(3418070365,Cf[0]),new w(1654270250,Cf[1]),new w(2438529370,Cf[2]),new w(355462360,Cf[3]),new w(1731405415,Cf[4]),new w(41048885895,Cf[5]),new w(3675008525,Cf[6]),new w(1203062813,Cf[7])]:[new w(Yf[0],4089235720),new w(Yf[1],2227873595),new w(Yf[2],4271175723),new w(Yf[3],1595750129),new w(Yf[4],2917565137),new w(Yf[5],725511199),new w(Yf[6],4215389547),new w(Yf[7],327033209)]}function xt(s,e){let o,x,h,b,v,I,E,B,H,y,S,z,P=[];for(o=e[0],x=e[1],h=e[2],b=e[3],v=e[4],I=e[5],E=e[6],B=e[7],S=0;S<80;S+=1)S<16?(z=2*S,P[S]=new w(s[z],s[z+1])):P[S]=Qt(f1(P[S-2]),P[S-7],t1(P[S-15]),P[S-16]),H=kt(B,e1(v),(rf=I,Af=E,new w((k=v).N&rf.N^~k.N&Af.N,k.I&rf.I^~k.I&Af.I)),r1[S],P[S]),y=Tf($t(o),Wt(o,x,h)),B=E,E=I,I=v,v=Tf(b,H),b=h,h=x,x=o,o=Tf(H,y);var k,rf,Af;return e[0]=Tf(o,e[0]),e[1]=Tf(x,e[1]),e[2]=Tf(h,e[2]),e[3]=Tf(b,e[3]),e[4]=Tf(v,e[4]),e[5]=Tf(I,e[5]),e[6]=Tf(E,e[6]),e[7]=Tf(B,e[7]),e}function C0(s){let e,o=[];for(e=0;e<5;e+=1)o[e]=[new w(0,0),new w(0,0),new w(0,0),new w(0,0),new w(0,0)];return o}function o1(s){let e,o=[];for(e=0;e<5;e+=1)o[e]=s[e].slice();return o}function c0(s,e){let o,x,h,b,v=[],I=[];if(s!==null)for(x=0;x<s.length;x+=2)e[(x>>>1)%5][(x>>>1)/5|0]=$f(e[(x>>>1)%5][(x>>>1)/5|0],new w(s[x+1],s[x]));for(o=0;o<24;o+=1){for(b=C0(),x=0;x<5;x+=1)v[x]=(E=e[x][0],B=e[x][1],H=e[x][2],y=e[x][3],S=e[x][4],new w(E.N^B.N^H.N^y.N^S.N,E.I^B.I^H.I^y.I^S.I));for(x=0;x<5;x+=1)I[x]=$f(v[(x+4)%5],st(v[(x+1)%5],1));for(x=0;x<5;x+=1)for(h=0;h<5;h+=1)e[x][h]=$f(e[x][h],I[x]);for(x=0;x<5;x+=1)for(h=0;h<5;h+=1)b[h][(2*x+3*h)%5]=st(e[x][h],s1[x][h]);for(x=0;x<5;x+=1)for(h=0;h<5;h+=1)e[x][h]=$f(b[x][h],new w(~b[(x+1)%5][h].N&b[(x+2)%5][h].N,~b[(x+1)%5][h].I&b[(x+2)%5][h].I));e[0][0]=$f(e[0][0],i1[o])}var E,B,H,y,S;return e}function At(s){let e,o,x=0,h=[0,0],b=[4294967295&s,s/kf&2097151];for(e=6;e>=0;e--)o=b[e>>2]>>>8*e&255,o===0&&x===0||(h[x+1>>2]|=o<<8*(x+1),x+=1);return x=x!==0?x:1,h[0]|=x,{value:x+1>4?h:[h[0]],binLen:8+8*x}}function L0(s){return u0(At(s.binLen),s)}function at(s,e){let o,x=At(e);x=u0(x,s);let h=e>>>2,b=(h-x.value.length%h)%h;for(o=0;o<b;o++)x.value.push(0);return x.value}var ht,ct,ut,kf,C,Cf,Yf,f0,wt,Df,qt,Jt,w,r1,n1,i1,s1,x1,Y0,pt=Ft(()=>{ht="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ct="ARRAYBUFFER not supported by this environment",ut="UINT8ARRAY not supported by this environment";kf=4294967296,C=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],Cf=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428],Yf=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],f0="Chosen SHA variant is not supported",wt="Cannot set numRounds with MAC";Df=class{constructor(e,o,x){let h=x||{};if(this.t=o,this.i=h.encoding||"UTF8",this.numRounds=h.numRounds||1,isNaN(this.numRounds)||this.numRounds!==parseInt(this.numRounds,10)||1>this.numRounds)throw new Error("numRounds must a integer >= 1");this.o=e,this.h=[],this.u=0,this.l=!1,this.A=0,this.H=!1,this.S=[],this.p=[]}update(e){let o,x=0,h=this.m>>>5,b=this.C(e,this.h,this.u),v=b.binLen,I=b.value,E=v>>>5;for(o=0;o<E;o+=h)x+this.m<=v&&(this.U=this.v(I.slice(o,o+h),this.U),x+=this.m);return this.A+=x,this.h=I.slice(x>>>5),this.u=v%this.m,this.l=!0,this}getHash(e,o){let x,h,b=this.R,v=et(o);if(this.K){if(v.outputLen===-1)throw new Error("Output length must be specified in options");b=v.outputLen}let I=tt(e,b,this.T,v);if(this.H&&this.g)return I(this.g(v));for(h=this.F(this.h.slice(),this.u,this.A,this.L(this.U),b),x=1;x<this.numRounds;x+=1)this.K&&b%32!=0&&(h[h.length-1]&=16777215>>>24-b%32),h=this.F(h,b,0,this.B(this.o),b);return I(h)}setHMACKey(e,o,x){if(!this.M)throw new Error("Variant does not support HMAC");if(this.l)throw new Error("Cannot set MAC key after calling update");let h=Gf(o,(x||{}).encoding||"UTF8",this.T);this.k(h(e))}k(e){let o=this.m>>>3,x=o/4-1,h;if(this.numRounds!==1)throw new Error(wt);if(this.H)throw new Error("MAC key already set");for(o<e.binLen/8&&(e.value=this.F(e.value,e.binLen,0,this.B(this.o),this.R));e.value.length<=x;)e.value.push(0);for(h=0;h<=x;h+=1)this.S[h]=909522486^e.value[h],this.p[h]=1549556828^e.value[h];this.U=this.v(this.S,this.U),this.A=this.m,this.H=!0}getHMAC(e,o){let x=et(o);return tt(e,this.R,this.T,x)(this.Y())}Y(){let e;if(!this.H)throw new Error("Cannot call getHMAC without first setting MAC key");let o=this.F(this.h.slice(),this.u,this.A,this.L(this.U),this.R);return e=this.v(this.p,this.B(this.o)),e=this.F(o,this.R,this.m,e,this.R),e}};qt=class extends Df{constructor(s,e,o){if(s!=="SHA-1")throw new Error(f0);super(s,e,o);let x=o||{};this.M=!0,this.g=this.Y,this.T=-1,this.C=Gf(this.t,this.i,this.T),this.v=yt,this.L=function(h){return h.slice()},this.B=Gt,this.F=Vt,this.U=[1732584193,4023233417,2562383102,271733878,3285377520],this.m=512,this.R=160,this.K=!1,x.hmacKey&&this.k(Hf("hmacKey",x.hmacKey,this.T))}};Jt=class extends Df{constructor(s,e,o){if(s!=="SHA-224"&&s!=="SHA-256")throw new Error(f0);super(s,e,o);let x=o||{};this.g=this.Y,this.M=!0,this.T=-1,this.C=Gf(this.t,this.i,this.T),this.v=it,this.L=function(h){return h.slice()},this.B=nt,this.F=function(h,b,v,I){return function(E,B,H,y,S){let z,P,k=15+(B+65>>>9<<4),rf=B+H;for(;E.length<=k;)E.push(0);for(E[B>>>5]|=128<<24-B%32,E[k]=4294967295&rf,E[k-1]=rf/kf|0,z=0;z<E.length;z+=16)y=it(E.slice(z,z+16),y);return P=S==="SHA-224"?[y[0],y[1],y[2],y[3],y[4],y[5],y[6]]:y,P}(h,b,v,I,s)},this.U=nt(s),this.m=512,this.R=s==="SHA-224"?224:256,this.K=!1,x.hmacKey&&this.k(Hf("hmacKey",x.hmacKey,this.T))}},w=class{constructor(e,o){this.N=e,this.I=o}};r1=[new w(C[0],3609767458),new w(C[1],602891725),new w(C[2],3964484399),new w(C[3],2173295548),new w(C[4],4081628472),new w(C[5],3053834265),new w(C[6],2937671579),new w(C[7],3664609560),new w(C[8],2734883394),new w(C[9],1164996542),new w(C[10],1323610764),new w(C[11],3590304994),new w(C[12],4068182383),new w(C[13],991336113),new w(C[14],633803317),new w(C[15],3479774868),new w(C[16],2666613458),new w(C[17],944711139),new w(C[18],2341262773),new w(C[19],2007800933),new w(C[20],1495990901),new w(C[21],1856431235),new w(C[22],3175218132),new w(C[23],2198950837),new w(C[24],3999719339),new w(C[25],766784016),new w(C[26],2566594879),new w(C[27],3203337956),new w(C[28],1034457026),new w(C[29],2466948901),new w(C[30],3758326383),new w(C[31],168717936),new w(C[32],1188179964),new w(C[33],1546045734),new w(C[34],1522805485),new w(C[35],2643833823),new w(C[36],2343527390),new w(C[37],1014477480),new w(C[38],1206759142),new w(C[39],344077627),new w(C[40],1290863460),new w(C[41],3158454273),new w(C[42],3505952657),new w(C[43],106217008),new w(C[44],3606008344),new w(C[45],1432725776),new w(C[46],1467031594),new w(C[47],851169720),new w(C[48],3100823752),new w(C[49],1363258195),new w(C[50],3750685593),new w(C[51],3785050280),new w(C[52],3318307427),new w(C[53],3812723403),new w(C[54],2003034995),new w(C[55],3602036899),new w(C[56],1575990012),new w(C[57],1125592928),new w(C[58],2716904306),new w(C[59],442776044),new w(C[60],593698344),new w(C[61],3733110249),new w(C[62],2999351573),new w(C[63],3815920427),new w(3391569614,3928383900),new w(3515267271,566280711),new w(3940187606,3454069534),new w(4118630271,4000239992),new w(116418474,1914138554),new w(174292421,2731055270),new w(289380356,3203993006),new w(460393269,320620315),new w(685471733,587496836),new w(852142971,1086792851),new w(1017036298,365543100),new w(1126000580,2618297676),new w(1288033470,3409855158),new w(1501505948,4234509866),new w(1607167915,987167468),new w(1816402316,1246189591)];n1=class extends Df{constructor(s,e,o){if(s!=="SHA-384"&&s!=="SHA-512")throw new Error(f0);super(s,e,o);let x=o||{};this.g=this.Y,this.M=!0,this.T=-1,this.C=Gf(this.t,this.i,this.T),this.v=xt,this.L=function(h){return h.slice()},this.B=ot,this.F=function(h,b,v,I){return function(E,B,H,y,S){let z,P,k=31+(B+129>>>10<<5),rf=B+H;for(;E.length<=k;)E.push(0);for(E[B>>>5]|=128<<24-B%32,E[k]=4294967295&rf,E[k-1]=rf/kf|0,z=0;z<E.length;z+=32)y=xt(E.slice(z,z+32),y);return P=S==="SHA-384"?[y[0].N,y[0].I,y[1].N,y[1].I,y[2].N,y[2].I,y[3].N,y[3].I,y[4].N,y[4].I,y[5].N,y[5].I]:[y[0].N,y[0].I,y[1].N,y[1].I,y[2].N,y[2].I,y[3].N,y[3].I,y[4].N,y[4].I,y[5].N,y[5].I,y[6].N,y[6].I,y[7].N,y[7].I],P}(h,b,v,I,s)},this.U=ot(s),this.m=1024,this.R=s==="SHA-384"?384:512,this.K=!1,x.hmacKey&&this.k(Hf("hmacKey",x.hmacKey,this.T))}},i1=[new w(0,1),new w(0,32898),new w(2147483648,32906),new w(2147483648,2147516416),new w(0,32907),new w(0,2147483649),new w(2147483648,2147516545),new w(2147483648,32777),new w(0,138),new w(0,136),new w(0,2147516425),new w(0,2147483658),new w(0,2147516555),new w(2147483648,139),new w(2147483648,32905),new w(2147483648,32771),new w(2147483648,32770),new w(2147483648,128),new w(0,32778),new w(2147483648,2147483658),new w(2147483648,2147516545),new w(2147483648,32896),new w(0,2147483649),new w(2147483648,2147516424)],s1=[[0,36,3,41,18],[1,44,10,45,2],[62,6,43,15,61],[28,55,25,21,56],[27,20,39,8,14]];x1=class extends Df{constructor(s,e,o){let x=6,h=0;super(s,e,o);let b=o||{};if(this.numRounds!==1){if(b.kmacKey||b.hmacKey)throw new Error(wt);if(this.o==="CSHAKE128"||this.o==="CSHAKE256")throw new Error("Cannot set numRounds for CSHAKE variants")}switch(this.T=1,this.C=Gf(this.t,this.i,this.T),this.v=c0,this.L=o1,this.B=C0,this.U=C0(),this.K=!1,s){case"SHA3-224":this.m=h=1152,this.R=224,this.M=!0,this.g=this.Y;break;case"SHA3-256":this.m=h=1088,this.R=256,this.M=!0,this.g=this.Y;break;case"SHA3-384":this.m=h=832,this.R=384,this.M=!0,this.g=this.Y;break;case"SHA3-512":this.m=h=576,this.R=512,this.M=!0,this.g=this.Y;break;case"SHAKE128":x=31,this.m=h=1344,this.R=-1,this.K=!0,this.M=!1,this.g=null;break;case"SHAKE256":x=31,this.m=h=1088,this.R=-1,this.K=!0,this.M=!1,this.g=null;break;case"KMAC128":x=4,this.m=h=1344,this.X(o),this.R=-1,this.K=!0,this.M=!1,this.g=this._;break;case"KMAC256":x=4,this.m=h=1088,this.X(o),this.R=-1,this.K=!0,this.M=!1,this.g=this._;break;case"CSHAKE128":this.m=h=1344,x=this.O(o),this.R=-1,this.K=!0,this.M=!1,this.g=null;break;case"CSHAKE256":this.m=h=1088,x=this.O(o),this.R=-1,this.K=!0,this.M=!1,this.g=null;break;default:throw new Error(f0)}this.F=function(v,I,E,B,H){return function(y,S,z,P,k,rf,Af){let df,gf,bf=0,yf=[],Kf=k>>>5,t0=S>>>5;for(df=0;df<t0&&S>=k;df+=Kf)P=c0(y.slice(df,df+Kf),P),S-=k;for(y=y.slice(df),S%=k;y.length<Kf;)y.push(0);for(df=S>>>3,y[df>>2]^=rf<<df%4*8,y[Kf-1]^=2147483648,P=c0(y,P);32*yf.length<Af&&(gf=P[bf%5][bf/5|0],yf.push(gf.I),!(32*yf.length>=Af));)yf.push(gf.N),bf+=1,64*bf%k==0&&(c0(null,P),bf=0);return yf}(v,I,0,B,h,x,H)},b.hmacKey&&this.k(Hf("hmacKey",b.hmacKey,this.T))}O(s,e){let o=function(h){let b=h||{};return{funcName:Hf("funcName",b.funcName,1,{value:[],binLen:0}),customization:Hf("Customization",b.customization,1,{value:[],binLen:0})}}(s||{});e&&(o.funcName=e);let x=u0(L0(o.funcName),L0(o.customization));if(o.customization.binLen!==0||o.funcName.binLen!==0){let h=at(x,this.m>>>3);for(let b=0;b<h.length;b+=this.m>>>5)this.U=this.v(h.slice(b,b+(this.m>>>5)),this.U),this.A+=this.m;return 4}return 31}X(s){let e=function(x){let h=x||{};return{kmacKey:Hf("kmacKey",h.kmacKey,1),funcName:{value:[1128353099],binLen:32},customization:Hf("Customization",h.customization,1,{value:[],binLen:0})}}(s||{});this.O(s,e.funcName);let o=at(L0(e.kmacKey),this.m>>>3);for(let x=0;x<o.length;x+=this.m>>>5)this.U=this.v(o.slice(x,x+(this.m>>>5)),this.U),this.A+=this.m;this.H=!0}_(s){let e=u0({value:this.h.slice(),binLen:this.u},function(o){let x,h,b=0,v=[0,0],I=[4294967295&o,o/kf&2097151];for(x=6;x>=0;x--)h=I[x>>2]>>>8*x&255,h===0&&b===0||(v[b>>2]|=h<<8*b,b+=1);return b=b!==0?b:1,v[b>>2]|=b<<8*b,{value:b+1>4?v:[v[0]],binLen:8+8*b}}(s.outputLen));return this.F(e.value,e.binLen,this.A,this.L(this.U),s.outputLen)}},Y0=class{constructor(e,o,x){if(e=="SHA-1")this.P=new qt(e,o,x);else if(e=="SHA-224"||e=="SHA-256")this.P=new Jt(e,o,x);else if(e=="SHA-384"||e=="SHA-512")this.P=new n1(e,o,x);else{if(e!="SHA3-224"&&e!="SHA3-256"&&e!="SHA3-384"&&e!="SHA3-512"&&e!="SHAKE128"&&e!="SHAKE256"&&e!="CSHAKE128"&&e!="CSHAKE256"&&e!="KMAC128"&&e!="KMAC256")throw new Error(f0);this.P=new x1(e,o,x)}}update(e){return this.P.update(e),this}getHash(e,o){return this.P.getHash(e,o)}setHMACKey(e,o,x){this.P.setHMACKey(e,o,x)}getHMAC(e,o){return this.P.getHMAC(e,o)}}});var Et=k0(()=>{});var _t=k0((_1,l0)=>{(function(s){"use strict";var e=function(t){var n,r=new Float64Array(16);if(t)for(n=0;n<t.length;n++)r[n]=t[n];return r},o=function(){throw new Error("no PRNG")},x=new Uint8Array(16),h=new Uint8Array(32);h[0]=9;var b=e(),v=e([1]),I=e([56129,1]),E=e([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),B=e([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),H=e([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),y=e([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),S=e([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function z(t,n,r,f){t[n]=r>>24&255,t[n+1]=r>>16&255,t[n+2]=r>>8&255,t[n+3]=r&255,t[n+4]=f>>24&255,t[n+5]=f>>16&255,t[n+6]=f>>8&255,t[n+7]=f&255}function P(t,n,r,f,i){var c,u=0;for(c=0;c<i;c++)u|=t[n+c]^r[f+c];return(1&u-1>>>8)-1}function k(t,n,r,f){return P(t,n,r,f,16)}function rf(t,n,r,f){return P(t,n,r,f,32)}function Af(t,n,r,f){for(var i=f[0]&255|(f[1]&255)<<8|(f[2]&255)<<16|(f[3]&255)<<24,c=r[0]&255|(r[1]&255)<<8|(r[2]&255)<<16|(r[3]&255)<<24,u=r[4]&255|(r[5]&255)<<8|(r[6]&255)<<16|(r[7]&255)<<24,g=r[8]&255|(r[9]&255)<<8|(r[10]&255)<<16|(r[11]&255)<<24,N=r[12]&255|(r[13]&255)<<8|(r[14]&255)<<16|(r[15]&255)<<24,F=f[4]&255|(f[5]&255)<<8|(f[6]&255)<<16|(f[7]&255)<<24,m=n[0]&255|(n[1]&255)<<8|(n[2]&255)<<16|(n[3]&255)<<24,of=n[4]&255|(n[5]&255)<<8|(n[6]&255)<<16|(n[7]&255)<<24,M=n[8]&255|(n[9]&255)<<8|(n[10]&255)<<16|(n[11]&255)<<24,X=n[12]&255|(n[13]&255)<<8|(n[14]&255)<<16|(n[15]&255)<<24,Z=f[8]&255|(f[9]&255)<<8|(f[10]&255)<<16|(f[11]&255)<<24,J=r[16]&255|(r[17]&255)<<8|(r[18]&255)<<16|(r[19]&255)<<24,q=r[20]&255|(r[21]&255)<<8|(r[22]&255)<<16|(r[23]&255)<<24,D=r[24]&255|(r[25]&255)<<8|(r[26]&255)<<16|(r[27]&255)<<24,V=r[28]&255|(r[29]&255)<<8|(r[30]&255)<<16|(r[31]&255)<<24,G=f[12]&255|(f[13]&255)<<8|(f[14]&255)<<16|(f[15]&255)<<24,L=i,j=c,R=u,Y=g,K=N,T=F,l=m,d=of,_=M,A=X,p=Z,U=J,O=q,W=D,Q=V,$=G,a,tf=0;tf<20;tf+=2)a=L+O|0,K^=a<<7|a>>>25,a=K+L|0,_^=a<<9|a>>>23,a=_+K|0,O^=a<<13|a>>>19,a=O+_|0,L^=a<<18|a>>>14,a=T+j|0,A^=a<<7|a>>>25,a=A+T|0,W^=a<<9|a>>>23,a=W+A|0,j^=a<<13|a>>>19,a=j+W|0,T^=a<<18|a>>>14,a=p+l|0,Q^=a<<7|a>>>25,a=Q+p|0,R^=a<<9|a>>>23,a=R+Q|0,l^=a<<13|a>>>19,a=l+R|0,p^=a<<18|a>>>14,a=$+U|0,Y^=a<<7|a>>>25,a=Y+$|0,d^=a<<9|a>>>23,a=d+Y|0,U^=a<<13|a>>>19,a=U+d|0,$^=a<<18|a>>>14,a=L+Y|0,j^=a<<7|a>>>25,a=j+L|0,R^=a<<9|a>>>23,a=R+j|0,Y^=a<<13|a>>>19,a=Y+R|0,L^=a<<18|a>>>14,a=T+K|0,l^=a<<7|a>>>25,a=l+T|0,d^=a<<9|a>>>23,a=d+l|0,K^=a<<13|a>>>19,a=K+d|0,T^=a<<18|a>>>14,a=p+A|0,U^=a<<7|a>>>25,a=U+p|0,_^=a<<9|a>>>23,a=_+U|0,A^=a<<13|a>>>19,a=A+_|0,p^=a<<18|a>>>14,a=$+Q|0,O^=a<<7|a>>>25,a=O+$|0,W^=a<<9|a>>>23,a=W+O|0,Q^=a<<13|a>>>19,a=Q+W|0,$^=a<<18|a>>>14;L=L+i|0,j=j+c|0,R=R+u|0,Y=Y+g|0,K=K+N|0,T=T+F|0,l=l+m|0,d=d+of|0,_=_+M|0,A=A+X|0,p=p+Z|0,U=U+J|0,O=O+q|0,W=W+D|0,Q=Q+V|0,$=$+G|0,t[0]=L>>>0&255,t[1]=L>>>8&255,t[2]=L>>>16&255,t[3]=L>>>24&255,t[4]=j>>>0&255,t[5]=j>>>8&255,t[6]=j>>>16&255,t[7]=j>>>24&255,t[8]=R>>>0&255,t[9]=R>>>8&255,t[10]=R>>>16&255,t[11]=R>>>24&255,t[12]=Y>>>0&255,t[13]=Y>>>8&255,t[14]=Y>>>16&255,t[15]=Y>>>24&255,t[16]=K>>>0&255,t[17]=K>>>8&255,t[18]=K>>>16&255,t[19]=K>>>24&255,t[20]=T>>>0&255,t[21]=T>>>8&255,t[22]=T>>>16&255,t[23]=T>>>24&255,t[24]=l>>>0&255,t[25]=l>>>8&255,t[26]=l>>>16&255,t[27]=l>>>24&255,t[28]=d>>>0&255,t[29]=d>>>8&255,t[30]=d>>>16&255,t[31]=d>>>24&255,t[32]=_>>>0&255,t[33]=_>>>8&255,t[34]=_>>>16&255,t[35]=_>>>24&255,t[36]=A>>>0&255,t[37]=A>>>8&255,t[38]=A>>>16&255,t[39]=A>>>24&255,t[40]=p>>>0&255,t[41]=p>>>8&255,t[42]=p>>>16&255,t[43]=p>>>24&255,t[44]=U>>>0&255,t[45]=U>>>8&255,t[46]=U>>>16&255,t[47]=U>>>24&255,t[48]=O>>>0&255,t[49]=O>>>8&255,t[50]=O>>>16&255,t[51]=O>>>24&255,t[52]=W>>>0&255,t[53]=W>>>8&255,t[54]=W>>>16&255,t[55]=W>>>24&255,t[56]=Q>>>0&255,t[57]=Q>>>8&255,t[58]=Q>>>16&255,t[59]=Q>>>24&255,t[60]=$>>>0&255,t[61]=$>>>8&255,t[62]=$>>>16&255,t[63]=$>>>24&255}function df(t,n,r,f){for(var i=f[0]&255|(f[1]&255)<<8|(f[2]&255)<<16|(f[3]&255)<<24,c=r[0]&255|(r[1]&255)<<8|(r[2]&255)<<16|(r[3]&255)<<24,u=r[4]&255|(r[5]&255)<<8|(r[6]&255)<<16|(r[7]&255)<<24,g=r[8]&255|(r[9]&255)<<8|(r[10]&255)<<16|(r[11]&255)<<24,N=r[12]&255|(r[13]&255)<<8|(r[14]&255)<<16|(r[15]&255)<<24,F=f[4]&255|(f[5]&255)<<8|(f[6]&255)<<16|(f[7]&255)<<24,m=n[0]&255|(n[1]&255)<<8|(n[2]&255)<<16|(n[3]&255)<<24,of=n[4]&255|(n[5]&255)<<8|(n[6]&255)<<16|(n[7]&255)<<24,M=n[8]&255|(n[9]&255)<<8|(n[10]&255)<<16|(n[11]&255)<<24,X=n[12]&255|(n[13]&255)<<8|(n[14]&255)<<16|(n[15]&255)<<24,Z=f[8]&255|(f[9]&255)<<8|(f[10]&255)<<16|(f[11]&255)<<24,J=r[16]&255|(r[17]&255)<<8|(r[18]&255)<<16|(r[19]&255)<<24,q=r[20]&255|(r[21]&255)<<8|(r[22]&255)<<16|(r[23]&255)<<24,D=r[24]&255|(r[25]&255)<<8|(r[26]&255)<<16|(r[27]&255)<<24,V=r[28]&255|(r[29]&255)<<8|(r[30]&255)<<16|(r[31]&255)<<24,G=f[12]&255|(f[13]&255)<<8|(f[14]&255)<<16|(f[15]&255)<<24,L=i,j=c,R=u,Y=g,K=N,T=F,l=m,d=of,_=M,A=X,p=Z,U=J,O=q,W=D,Q=V,$=G,a,tf=0;tf<20;tf+=2)a=L+O|0,K^=a<<7|a>>>25,a=K+L|0,_^=a<<9|a>>>23,a=_+K|0,O^=a<<13|a>>>19,a=O+_|0,L^=a<<18|a>>>14,a=T+j|0,A^=a<<7|a>>>25,a=A+T|0,W^=a<<9|a>>>23,a=W+A|0,j^=a<<13|a>>>19,a=j+W|0,T^=a<<18|a>>>14,a=p+l|0,Q^=a<<7|a>>>25,a=Q+p|0,R^=a<<9|a>>>23,a=R+Q|0,l^=a<<13|a>>>19,a=l+R|0,p^=a<<18|a>>>14,a=$+U|0,Y^=a<<7|a>>>25,a=Y+$|0,d^=a<<9|a>>>23,a=d+Y|0,U^=a<<13|a>>>19,a=U+d|0,$^=a<<18|a>>>14,a=L+Y|0,j^=a<<7|a>>>25,a=j+L|0,R^=a<<9|a>>>23,a=R+j|0,Y^=a<<13|a>>>19,a=Y+R|0,L^=a<<18|a>>>14,a=T+K|0,l^=a<<7|a>>>25,a=l+T|0,d^=a<<9|a>>>23,a=d+l|0,K^=a<<13|a>>>19,a=K+d|0,T^=a<<18|a>>>14,a=p+A|0,U^=a<<7|a>>>25,a=U+p|0,_^=a<<9|a>>>23,a=_+U|0,A^=a<<13|a>>>19,a=A+_|0,p^=a<<18|a>>>14,a=$+Q|0,O^=a<<7|a>>>25,a=O+$|0,W^=a<<9|a>>>23,a=W+O|0,Q^=a<<13|a>>>19,a=Q+W|0,$^=a<<18|a>>>14;t[0]=L>>>0&255,t[1]=L>>>8&255,t[2]=L>>>16&255,t[3]=L>>>24&255,t[4]=T>>>0&255,t[5]=T>>>8&255,t[6]=T>>>16&255,t[7]=T>>>24&255,t[8]=p>>>0&255,t[9]=p>>>8&255,t[10]=p>>>16&255,t[11]=p>>>24&255,t[12]=$>>>0&255,t[13]=$>>>8&255,t[14]=$>>>16&255,t[15]=$>>>24&255,t[16]=l>>>0&255,t[17]=l>>>8&255,t[18]=l>>>16&255,t[19]=l>>>24&255,t[20]=d>>>0&255,t[21]=d>>>8&255,t[22]=d>>>16&255,t[23]=d>>>24&255,t[24]=_>>>0&255,t[25]=_>>>8&255,t[26]=_>>>16&255,t[27]=_>>>24&255,t[28]=A>>>0&255,t[29]=A>>>8&255,t[30]=A>>>16&255,t[31]=A>>>24&255}function gf(t,n,r,f){Af(t,n,r,f)}function bf(t,n,r,f){df(t,n,r,f)}var yf=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function Kf(t,n,r,f,i,c,u){var g=new Uint8Array(16),N=new Uint8Array(64),F,m;for(m=0;m<16;m++)g[m]=0;for(m=0;m<8;m++)g[m]=c[m];for(;i>=64;){for(gf(N,g,u,yf),m=0;m<64;m++)t[n+m]=r[f+m]^N[m];for(F=1,m=8;m<16;m++)F=F+(g[m]&255)|0,g[m]=F&255,F>>>=8;i-=64,n+=64,f+=64}if(i>0)for(gf(N,g,u,yf),m=0;m<i;m++)t[n+m]=r[f+m]^N[m];return 0}function t0(t,n,r,f,i){var c=new Uint8Array(16),u=new Uint8Array(64),g,N;for(N=0;N<16;N++)c[N]=0;for(N=0;N<8;N++)c[N]=f[N];for(;r>=64;){for(gf(u,c,i,yf),N=0;N<64;N++)t[n+N]=u[N];for(g=1,N=8;N<16;N++)g=g+(c[N]&255)|0,c[N]=g&255,g>>>=8;r-=64,n+=64}if(r>0)for(gf(u,c,i,yf),N=0;N<r;N++)t[n+N]=u[N];return 0}function F0(t,n,r,f,i){var c=new Uint8Array(32);bf(c,f,i,yf);for(var u=new Uint8Array(8),g=0;g<8;g++)u[g]=f[g+16];return t0(t,n,r,u,c)}function b0(t,n,r,f,i,c,u){var g=new Uint8Array(32);bf(g,c,u,yf);for(var N=new Uint8Array(8),F=0;F<8;F++)N[F]=c[F+16];return Kf(t,n,r,f,i,N,g)}var e0=function(t){this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0;var n,r,f,i,c,u,g,N;n=t[0]&255|(t[1]&255)<<8,this.r[0]=n&8191,r=t[2]&255|(t[3]&255)<<8,this.r[1]=(n>>>13|r<<3)&8191,f=t[4]&255|(t[5]&255)<<8,this.r[2]=(r>>>10|f<<6)&7939,i=t[6]&255|(t[7]&255)<<8,this.r[3]=(f>>>7|i<<9)&8191,c=t[8]&255|(t[9]&255)<<8,this.r[4]=(i>>>4|c<<12)&255,this.r[5]=c>>>1&8190,u=t[10]&255|(t[11]&255)<<8,this.r[6]=(c>>>14|u<<2)&8191,g=t[12]&255|(t[13]&255)<<8,this.r[7]=(u>>>11|g<<5)&8065,N=t[14]&255|(t[15]&255)<<8,this.r[8]=(g>>>8|N<<8)&8191,this.r[9]=N>>>5&127,this.pad[0]=t[16]&255|(t[17]&255)<<8,this.pad[1]=t[18]&255|(t[19]&255)<<8,this.pad[2]=t[20]&255|(t[21]&255)<<8,this.pad[3]=t[22]&255|(t[23]&255)<<8,this.pad[4]=t[24]&255|(t[25]&255)<<8,this.pad[5]=t[26]&255|(t[27]&255)<<8,this.pad[6]=t[28]&255|(t[29]&255)<<8,this.pad[7]=t[30]&255|(t[31]&255)<<8};e0.prototype.blocks=function(t,n,r){for(var f=this.fin?0:2048,i,c,u,g,N,F,m,of,M,X,Z,J,q,D,V,G,L,j,R,Y=this.h[0],K=this.h[1],T=this.h[2],l=this.h[3],d=this.h[4],_=this.h[5],A=this.h[6],p=this.h[7],U=this.h[8],O=this.h[9],W=this.r[0],Q=this.r[1],$=this.r[2],a=this.r[3],tf=this.r[4],xf=this.r[5],af=this.r[6],ff=this.r[7],nf=this.r[8],sf=this.r[9];r>=16;)i=t[n+0]&255|(t[n+1]&255)<<8,Y+=i&8191,c=t[n+2]&255|(t[n+3]&255)<<8,K+=(i>>>13|c<<3)&8191,u=t[n+4]&255|(t[n+5]&255)<<8,T+=(c>>>10|u<<6)&8191,g=t[n+6]&255|(t[n+7]&255)<<8,l+=(u>>>7|g<<9)&8191,N=t[n+8]&255|(t[n+9]&255)<<8,d+=(g>>>4|N<<12)&8191,_+=N>>>1&8191,F=t[n+10]&255|(t[n+11]&255)<<8,A+=(N>>>14|F<<2)&8191,m=t[n+12]&255|(t[n+13]&255)<<8,p+=(F>>>11|m<<5)&8191,of=t[n+14]&255|(t[n+15]&255)<<8,U+=(m>>>8|of<<8)&8191,O+=of>>>5|f,M=0,X=M,X+=Y*W,X+=K*(5*sf),X+=T*(5*nf),X+=l*(5*ff),X+=d*(5*af),M=X>>>13,X&=8191,X+=_*(5*xf),X+=A*(5*tf),X+=p*(5*a),X+=U*(5*$),X+=O*(5*Q),M+=X>>>13,X&=8191,Z=M,Z+=Y*Q,Z+=K*W,Z+=T*(5*sf),Z+=l*(5*nf),Z+=d*(5*ff),M=Z>>>13,Z&=8191,Z+=_*(5*af),Z+=A*(5*xf),Z+=p*(5*tf),Z+=U*(5*a),Z+=O*(5*$),M+=Z>>>13,Z&=8191,J=M,J+=Y*$,J+=K*Q,J+=T*W,J+=l*(5*sf),J+=d*(5*nf),M=J>>>13,J&=8191,J+=_*(5*ff),J+=A*(5*af),J+=p*(5*xf),J+=U*(5*tf),J+=O*(5*a),M+=J>>>13,J&=8191,q=M,q+=Y*a,q+=K*$,q+=T*Q,q+=l*W,q+=d*(5*sf),M=q>>>13,q&=8191,q+=_*(5*nf),q+=A*(5*ff),q+=p*(5*af),q+=U*(5*xf),q+=O*(5*tf),M+=q>>>13,q&=8191,D=M,D+=Y*tf,D+=K*a,D+=T*$,D+=l*Q,D+=d*W,M=D>>>13,D&=8191,D+=_*(5*sf),D+=A*(5*nf),D+=p*(5*ff),D+=U*(5*af),D+=O*(5*xf),M+=D>>>13,D&=8191,V=M,V+=Y*xf,V+=K*tf,V+=T*a,V+=l*$,V+=d*Q,M=V>>>13,V&=8191,V+=_*W,V+=A*(5*sf),V+=p*(5*nf),V+=U*(5*ff),V+=O*(5*af),M+=V>>>13,V&=8191,G=M,G+=Y*af,G+=K*xf,G+=T*tf,G+=l*a,G+=d*$,M=G>>>13,G&=8191,G+=_*Q,G+=A*W,G+=p*(5*sf),G+=U*(5*nf),G+=O*(5*ff),M+=G>>>13,G&=8191,L=M,L+=Y*ff,L+=K*af,L+=T*xf,L+=l*tf,L+=d*a,M=L>>>13,L&=8191,L+=_*$,L+=A*Q,L+=p*W,L+=U*(5*sf),L+=O*(5*nf),M+=L>>>13,L&=8191,j=M,j+=Y*nf,j+=K*ff,j+=T*af,j+=l*xf,j+=d*tf,M=j>>>13,j&=8191,j+=_*a,j+=A*$,j+=p*Q,j+=U*W,j+=O*(5*sf),M+=j>>>13,j&=8191,R=M,R+=Y*sf,R+=K*nf,R+=T*ff,R+=l*af,R+=d*xf,M=R>>>13,R&=8191,R+=_*tf,R+=A*a,R+=p*$,R+=U*Q,R+=O*W,M+=R>>>13,R&=8191,M=(M<<2)+M|0,M=M+X|0,X=M&8191,M=M>>>13,Z+=M,Y=X,K=Z,T=J,l=q,d=D,_=V,A=G,p=L,U=j,O=R,n+=16,r-=16;this.h[0]=Y,this.h[1]=K,this.h[2]=T,this.h[3]=l,this.h[4]=d,this.h[5]=_,this.h[6]=A,this.h[7]=p,this.h[8]=U,this.h[9]=O},e0.prototype.finish=function(t,n){var r=new Uint16Array(10),f,i,c,u;if(this.leftover){for(u=this.leftover,this.buffer[u++]=1;u<16;u++)this.buffer[u]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(f=this.h[1]>>>13,this.h[1]&=8191,u=2;u<10;u++)this.h[u]+=f,f=this.h[u]>>>13,this.h[u]&=8191;for(this.h[0]+=f*5,f=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=f,f=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=f,r[0]=this.h[0]+5,f=r[0]>>>13,r[0]&=8191,u=1;u<10;u++)r[u]=this.h[u]+f,f=r[u]>>>13,r[u]&=8191;for(r[9]-=8192,i=(f^1)-1,u=0;u<10;u++)r[u]&=i;for(i=~i,u=0;u<10;u++)this.h[u]=this.h[u]&i|r[u];for(this.h[0]=(this.h[0]|this.h[1]<<13)&65535,this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535,this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535,this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535,this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535,this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535,this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535,this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535,c=this.h[0]+this.pad[0],this.h[0]=c&65535,u=1;u<8;u++)c=(this.h[u]+this.pad[u]|0)+(c>>>16)|0,this.h[u]=c&65535;t[n+0]=this.h[0]>>>0&255,t[n+1]=this.h[0]>>>8&255,t[n+2]=this.h[1]>>>0&255,t[n+3]=this.h[1]>>>8&255,t[n+4]=this.h[2]>>>0&255,t[n+5]=this.h[2]>>>8&255,t[n+6]=this.h[3]>>>0&255,t[n+7]=this.h[3]>>>8&255,t[n+8]=this.h[4]>>>0&255,t[n+9]=this.h[4]>>>8&255,t[n+10]=this.h[5]>>>0&255,t[n+11]=this.h[5]>>>8&255,t[n+12]=this.h[6]>>>0&255,t[n+13]=this.h[6]>>>8&255,t[n+14]=this.h[7]>>>0&255,t[n+15]=this.h[7]>>>8&255},e0.prototype.update=function(t,n,r){var f,i;if(this.leftover){for(i=16-this.leftover,i>r&&(i=r),f=0;f<i;f++)this.buffer[this.leftover+f]=t[n+f];if(r-=i,n+=i,this.leftover+=i,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(r>=16&&(i=r-r%16,this.blocks(t,n,i),n+=i,r-=i),r){for(f=0;f<r;f++)this.buffer[this.leftover+f]=t[n+f];this.leftover+=r}};function d0(t,n,r,f,i,c){var u=new e0(c);return u.update(r,f,i),u.finish(t,n),0}function j0(t,n,r,f,i,c){var u=new Uint8Array(16);return d0(u,0,r,f,i,c),k(t,n,u,0)}function y0(t,n,r,f,i){var c;if(r<32)return-1;for(b0(t,0,n,0,r,f,i),d0(t,16,t,32,r-32,t),c=0;c<16;c++)t[c]=0;return 0}function v0(t,n,r,f,i){var c,u=new Uint8Array(32);if(r<32||(F0(u,0,32,f,i),j0(n,16,n,32,r-32,u)!==0))return-1;for(b0(t,0,n,0,r,f,i),c=0;c<32;c++)t[c]=0;return 0}function Mf(t,n){var r;for(r=0;r<16;r++)t[r]=n[r]|0}function A0(t){var n,r,f=1;for(n=0;n<16;n++)r=t[n]+f+65535,f=Math.floor(r/65536),t[n]=r-f*65536;t[0]+=f-1+37*(f-1)}function Pf(t,n,r){for(var f,i=~(r-1),c=0;c<16;c++)f=i&(t[c]^n[c]),t[c]^=f,n[c]^=f}function zf(t,n){var r,f,i,c=e(),u=e();for(r=0;r<16;r++)u[r]=n[r];for(A0(u),A0(u),A0(u),f=0;f<2;f++){for(c[0]=u[0]-65517,r=1;r<15;r++)c[r]=u[r]-65535-(c[r-1]>>16&1),c[r-1]&=65535;c[15]=u[15]-32767-(c[14]>>16&1),i=c[15]>>16&1,c[14]&=65535,Pf(u,c,1-i)}for(r=0;r<16;r++)t[2*r]=u[r]&255,t[2*r+1]=u[r]>>8}function P0(t,n){var r=new Uint8Array(32),f=new Uint8Array(32);return zf(r,t),zf(f,n),rf(r,0,f,0)}function z0(t){var n=new Uint8Array(32);return zf(n,t),n[0]&1}function g0(t,n){var r;for(r=0;r<16;r++)t[r]=n[2*r]+(n[2*r+1]<<8);t[15]&=32767}function Sf(t,n,r){for(var f=0;f<16;f++)t[f]=n[f]+r[f]}function Bf(t,n,r){for(var f=0;f<16;f++)t[f]=n[f]-r[f]}function ef(t,n,r){var f,i,c=0,u=0,g=0,N=0,F=0,m=0,of=0,M=0,X=0,Z=0,J=0,q=0,D=0,V=0,G=0,L=0,j=0,R=0,Y=0,K=0,T=0,l=0,d=0,_=0,A=0,p=0,U=0,O=0,W=0,Q=0,$=0,a=r[0],tf=r[1],xf=r[2],af=r[3],ff=r[4],nf=r[5],sf=r[6],lf=r[7],hf=r[8],cf=r[9],uf=r[10],wf=r[11],vf=r[12],pf=r[13],Ef=r[14],_f=r[15];f=n[0],c+=f*a,u+=f*tf,g+=f*xf,N+=f*af,F+=f*ff,m+=f*nf,of+=f*sf,M+=f*lf,X+=f*hf,Z+=f*cf,J+=f*uf,q+=f*wf,D+=f*vf,V+=f*pf,G+=f*Ef,L+=f*_f,f=n[1],u+=f*a,g+=f*tf,N+=f*xf,F+=f*af,m+=f*ff,of+=f*nf,M+=f*sf,X+=f*lf,Z+=f*hf,J+=f*cf,q+=f*uf,D+=f*wf,V+=f*vf,G+=f*pf,L+=f*Ef,j+=f*_f,f=n[2],g+=f*a,N+=f*tf,F+=f*xf,m+=f*af,of+=f*ff,M+=f*nf,X+=f*sf,Z+=f*lf,J+=f*hf,q+=f*cf,D+=f*uf,V+=f*wf,G+=f*vf,L+=f*pf,j+=f*Ef,R+=f*_f,f=n[3],N+=f*a,F+=f*tf,m+=f*xf,of+=f*af,M+=f*ff,X+=f*nf,Z+=f*sf,J+=f*lf,q+=f*hf,D+=f*cf,V+=f*uf,G+=f*wf,L+=f*vf,j+=f*pf,R+=f*Ef,Y+=f*_f,f=n[4],F+=f*a,m+=f*tf,of+=f*xf,M+=f*af,X+=f*ff,Z+=f*nf,J+=f*sf,q+=f*lf,D+=f*hf,V+=f*cf,G+=f*uf,L+=f*wf,j+=f*vf,R+=f*pf,Y+=f*Ef,K+=f*_f,f=n[5],m+=f*a,of+=f*tf,M+=f*xf,X+=f*af,Z+=f*ff,J+=f*nf,q+=f*sf,D+=f*lf,V+=f*hf,G+=f*cf,L+=f*uf,j+=f*wf,R+=f*vf,Y+=f*pf,K+=f*Ef,T+=f*_f,f=n[6],of+=f*a,M+=f*tf,X+=f*xf,Z+=f*af,J+=f*ff,q+=f*nf,D+=f*sf,V+=f*lf,G+=f*hf,L+=f*cf,j+=f*uf,R+=f*wf,Y+=f*vf,K+=f*pf,T+=f*Ef,l+=f*_f,f=n[7],M+=f*a,X+=f*tf,Z+=f*xf,J+=f*af,q+=f*ff,D+=f*nf,V+=f*sf,G+=f*lf,L+=f*hf,j+=f*cf,R+=f*uf,Y+=f*wf,K+=f*vf,T+=f*pf,l+=f*Ef,d+=f*_f,f=n[8],X+=f*a,Z+=f*tf,J+=f*xf,q+=f*af,D+=f*ff,V+=f*nf,G+=f*sf,L+=f*lf,j+=f*hf,R+=f*cf,Y+=f*uf,K+=f*wf,T+=f*vf,l+=f*pf,d+=f*Ef,_+=f*_f,f=n[9],Z+=f*a,J+=f*tf,q+=f*xf,D+=f*af,V+=f*ff,G+=f*nf,L+=f*sf,j+=f*lf,R+=f*hf,Y+=f*cf,K+=f*uf,T+=f*wf,l+=f*vf,d+=f*pf,_+=f*Ef,A+=f*_f,f=n[10],J+=f*a,q+=f*tf,D+=f*xf,V+=f*af,G+=f*ff,L+=f*nf,j+=f*sf,R+=f*lf,Y+=f*hf,K+=f*cf,T+=f*uf,l+=f*wf,d+=f*vf,_+=f*pf,A+=f*Ef,p+=f*_f,f=n[11],q+=f*a,D+=f*tf,V+=f*xf,G+=f*af,L+=f*ff,j+=f*nf,R+=f*sf,Y+=f*lf,K+=f*hf,T+=f*cf,l+=f*uf,d+=f*wf,_+=f*vf,A+=f*pf,p+=f*Ef,U+=f*_f,f=n[12],D+=f*a,V+=f*tf,G+=f*xf,L+=f*af,j+=f*ff,R+=f*nf,Y+=f*sf,K+=f*lf,T+=f*hf,l+=f*cf,d+=f*uf,_+=f*wf,A+=f*vf,p+=f*pf,U+=f*Ef,O+=f*_f,f=n[13],V+=f*a,G+=f*tf,L+=f*xf,j+=f*af,R+=f*ff,Y+=f*nf,K+=f*sf,T+=f*lf,l+=f*hf,d+=f*cf,_+=f*uf,A+=f*wf,p+=f*vf,U+=f*pf,O+=f*Ef,W+=f*_f,f=n[14],G+=f*a,L+=f*tf,j+=f*xf,R+=f*af,Y+=f*ff,K+=f*nf,T+=f*sf,l+=f*lf,d+=f*hf,_+=f*cf,A+=f*uf,p+=f*wf,U+=f*vf,O+=f*pf,W+=f*Ef,Q+=f*_f,f=n[15],L+=f*a,j+=f*tf,R+=f*xf,Y+=f*af,K+=f*ff,T+=f*nf,l+=f*sf,d+=f*lf,_+=f*hf,A+=f*cf,p+=f*uf,U+=f*wf,O+=f*vf,W+=f*pf,Q+=f*Ef,$+=f*_f,c+=38*j,u+=38*R,g+=38*Y,N+=38*K,F+=38*T,m+=38*l,of+=38*d,M+=38*_,X+=38*A,Z+=38*p,J+=38*U,q+=38*O,D+=38*W,V+=38*Q,G+=38*$,i=1,f=c+i+65535,i=Math.floor(f/65536),c=f-i*65536,f=u+i+65535,i=Math.floor(f/65536),u=f-i*65536,f=g+i+65535,i=Math.floor(f/65536),g=f-i*65536,f=N+i+65535,i=Math.floor(f/65536),N=f-i*65536,f=F+i+65535,i=Math.floor(f/65536),F=f-i*65536,f=m+i+65535,i=Math.floor(f/65536),m=f-i*65536,f=of+i+65535,i=Math.floor(f/65536),of=f-i*65536,f=M+i+65535,i=Math.floor(f/65536),M=f-i*65536,f=X+i+65535,i=Math.floor(f/65536),X=f-i*65536,f=Z+i+65535,i=Math.floor(f/65536),Z=f-i*65536,f=J+i+65535,i=Math.floor(f/65536),J=f-i*65536,f=q+i+65535,i=Math.floor(f/65536),q=f-i*65536,f=D+i+65535,i=Math.floor(f/65536),D=f-i*65536,f=V+i+65535,i=Math.floor(f/65536),V=f-i*65536,f=G+i+65535,i=Math.floor(f/65536),G=f-i*65536,f=L+i+65535,i=Math.floor(f/65536),L=f-i*65536,c+=i-1+37*(i-1),i=1,f=c+i+65535,i=Math.floor(f/65536),c=f-i*65536,f=u+i+65535,i=Math.floor(f/65536),u=f-i*65536,f=g+i+65535,i=Math.floor(f/65536),g=f-i*65536,f=N+i+65535,i=Math.floor(f/65536),N=f-i*65536,f=F+i+65535,i=Math.floor(f/65536),F=f-i*65536,f=m+i+65535,i=Math.floor(f/65536),m=f-i*65536,f=of+i+65535,i=Math.floor(f/65536),of=f-i*65536,f=M+i+65535,i=Math.floor(f/65536),M=f-i*65536,f=X+i+65535,i=Math.floor(f/65536),X=f-i*65536,f=Z+i+65535,i=Math.floor(f/65536),Z=f-i*65536,f=J+i+65535,i=Math.floor(f/65536),J=f-i*65536,f=q+i+65535,i=Math.floor(f/65536),q=f-i*65536,f=D+i+65535,i=Math.floor(f/65536),D=f-i*65536,f=V+i+65535,i=Math.floor(f/65536),V=f-i*65536,f=G+i+65535,i=Math.floor(f/65536),G=f-i*65536,f=L+i+65535,i=Math.floor(f/65536),L=f-i*65536,c+=i-1+37*(i-1),t[0]=c,t[1]=u,t[2]=g,t[3]=N,t[4]=F,t[5]=m,t[6]=of,t[7]=M,t[8]=X,t[9]=Z,t[10]=J,t[11]=q,t[12]=D,t[13]=V,t[14]=G,t[15]=L}function If(t,n){ef(t,n,n)}function O0(t,n){var r=e(),f;for(f=0;f<16;f++)r[f]=n[f];for(f=253;f>=0;f--)If(r,r),f!==2&&f!==4&&ef(r,r,n);for(f=0;f<16;f++)t[f]=r[f]}function X0(t,n){var r=e(),f;for(f=0;f<16;f++)r[f]=n[f];for(f=250;f>=0;f--)If(r,r),f!==1&&ef(r,r,n);for(f=0;f<16;f++)t[f]=r[f]}function r0(t,n,r){var f=new Uint8Array(32),i=new Float64Array(80),c,u,g=e(),N=e(),F=e(),m=e(),of=e(),M=e();for(u=0;u<31;u++)f[u]=n[u];for(f[31]=n[31]&127|64,f[0]&=248,g0(i,r),u=0;u<16;u++)N[u]=i[u],m[u]=g[u]=F[u]=0;for(g[0]=m[0]=1,u=254;u>=0;--u)c=f[u>>>3]>>>(u&7)&1,Pf(g,N,c),Pf(F,m,c),Sf(of,g,F),Bf(g,g,F),Sf(F,N,m),Bf(N,N,m),If(m,of),If(M,g),ef(g,F,g),ef(F,N,of),Sf(of,g,F),Bf(g,g,F),If(N,g),Bf(F,m,M),ef(g,F,I),Sf(g,g,m),ef(F,F,g),ef(g,m,M),ef(m,N,i),If(N,of),Pf(g,N,c),Pf(F,m,c);for(u=0;u<16;u++)i[u+16]=g[u],i[u+32]=F[u],i[u+48]=N[u],i[u+64]=m[u];var X=i.subarray(32),Z=i.subarray(16);return O0(X,X),ef(Z,Z,X),zf(t,Z),0}function n0(t,n){return r0(t,n,h)}function Z0(t,n){return o(n,32),n0(t,n)}function i0(t,n,r){var f=new Uint8Array(32);return r0(f,r,n),bf(t,x,f,yf)}var D0=y0,It=v0;function St(t,n,r,f,i,c){var u=new Uint8Array(32);return i0(u,i,c),D0(t,n,r,f,u)}function Bt(t,n,r,f,i,c){var u=new Uint8Array(32);return i0(u,i,c),It(t,n,r,f,u)}var G0=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function V0(t,n,r,f){for(var i=new Int32Array(16),c=new Int32Array(16),u,g,N,F,m,of,M,X,Z,J,q,D,V,G,L,j,R,Y,K,T,l,d,_,A,p,U,O=t[0],W=t[1],Q=t[2],$=t[3],a=t[4],tf=t[5],xf=t[6],af=t[7],ff=n[0],nf=n[1],sf=n[2],lf=n[3],hf=n[4],cf=n[5],uf=n[6],wf=n[7],vf=0;f>=128;){for(K=0;K<16;K++)T=8*K+vf,i[K]=r[T+0]<<24|r[T+1]<<16|r[T+2]<<8|r[T+3],c[K]=r[T+4]<<24|r[T+5]<<16|r[T+6]<<8|r[T+7];for(K=0;K<80;K++)if(u=O,g=W,N=Q,F=$,m=a,of=tf,M=xf,X=af,Z=ff,J=nf,q=sf,D=lf,V=hf,G=cf,L=uf,j=wf,l=af,d=wf,_=d&65535,A=d>>>16,p=l&65535,U=l>>>16,l=(a>>>14|hf<<18)^(a>>>18|hf<<14)^(hf>>>9|a<<23),d=(hf>>>14|a<<18)^(hf>>>18|a<<14)^(a>>>9|hf<<23),_+=d&65535,A+=d>>>16,p+=l&65535,U+=l>>>16,l=a&tf^~a&xf,d=hf&cf^~hf&uf,_+=d&65535,A+=d>>>16,p+=l&65535,U+=l>>>16,l=G0[K*2],d=G0[K*2+1],_+=d&65535,A+=d>>>16,p+=l&65535,U+=l>>>16,l=i[K%16],d=c[K%16],_+=d&65535,A+=d>>>16,p+=l&65535,U+=l>>>16,A+=_>>>16,p+=A>>>16,U+=p>>>16,R=p&65535|U<<16,Y=_&65535|A<<16,l=R,d=Y,_=d&65535,A=d>>>16,p=l&65535,U=l>>>16,l=(O>>>28|ff<<4)^(ff>>>2|O<<30)^(ff>>>7|O<<25),d=(ff>>>28|O<<4)^(O>>>2|ff<<30)^(O>>>7|ff<<25),_+=d&65535,A+=d>>>16,p+=l&65535,U+=l>>>16,l=O&W^O&Q^W&Q,d=ff&nf^ff&sf^nf&sf,_+=d&65535,A+=d>>>16,p+=l&65535,U+=l>>>16,A+=_>>>16,p+=A>>>16,U+=p>>>16,X=p&65535|U<<16,j=_&65535|A<<16,l=F,d=D,_=d&65535,A=d>>>16,p=l&65535,U=l>>>16,l=R,d=Y,_+=d&65535,A+=d>>>16,p+=l&65535,U+=l>>>16,A+=_>>>16,p+=A>>>16,U+=p>>>16,F=p&65535|U<<16,D=_&65535|A<<16,W=u,Q=g,$=N,a=F,tf=m,xf=of,af=M,O=X,nf=Z,sf=J,lf=q,hf=D,cf=V,uf=G,wf=L,ff=j,K%16===15)for(T=0;T<16;T++)l=i[T],d=c[T],_=d&65535,A=d>>>16,p=l&65535,U=l>>>16,l=i[(T+9)%16],d=c[(T+9)%16],_+=d&65535,A+=d>>>16,p+=l&65535,U+=l>>>16,R=i[(T+1)%16],Y=c[(T+1)%16],l=(R>>>1|Y<<31)^(R>>>8|Y<<24)^R>>>7,d=(Y>>>1|R<<31)^(Y>>>8|R<<24)^(Y>>>7|R<<25),_+=d&65535,A+=d>>>16,p+=l&65535,U+=l>>>16,R=i[(T+14)%16],Y=c[(T+14)%16],l=(R>>>19|Y<<13)^(Y>>>29|R<<3)^R>>>6,d=(Y>>>19|R<<13)^(R>>>29|Y<<3)^(Y>>>6|R<<26),_+=d&65535,A+=d>>>16,p+=l&65535,U+=l>>>16,A+=_>>>16,p+=A>>>16,U+=p>>>16,i[T]=p&65535|U<<16,c[T]=_&65535|A<<16;l=O,d=ff,_=d&65535,A=d>>>16,p=l&65535,U=l>>>16,l=t[0],d=n[0],_+=d&65535,A+=d>>>16,p+=l&65535,U+=l>>>16,A+=_>>>16,p+=A>>>16,U+=p>>>16,t[0]=O=p&65535|U<<16,n[0]=ff=_&65535|A<<16,l=W,d=nf,_=d&65535,A=d>>>16,p=l&65535,U=l>>>16,l=t[1],d=n[1],_+=d&65535,A+=d>>>16,p+=l&65535,U+=l>>>16,A+=_>>>16,p+=A>>>16,U+=p>>>16,t[1]=W=p&65535|U<<16,n[1]=nf=_&65535|A<<16,l=Q,d=sf,_=d&65535,A=d>>>16,p=l&65535,U=l>>>16,l=t[2],d=n[2],_+=d&65535,A+=d>>>16,p+=l&65535,U+=l>>>16,A+=_>>>16,p+=A>>>16,U+=p>>>16,t[2]=Q=p&65535|U<<16,n[2]=sf=_&65535|A<<16,l=$,d=lf,_=d&65535,A=d>>>16,p=l&65535,U=l>>>16,l=t[3],d=n[3],_+=d&65535,A+=d>>>16,p+=l&65535,U+=l>>>16,A+=_>>>16,p+=A>>>16,U+=p>>>16,t[3]=$=p&65535|U<<16,n[3]=lf=_&65535|A<<16,l=a,d=hf,_=d&65535,A=d>>>16,p=l&65535,U=l>>>16,l=t[4],d=n[4],_+=d&65535,A+=d>>>16,p+=l&65535,U+=l>>>16,A+=_>>>16,p+=A>>>16,U+=p>>>16,t[4]=a=p&65535|U<<16,n[4]=hf=_&65535|A<<16,l=tf,d=cf,_=d&65535,A=d>>>16,p=l&65535,U=l>>>16,l=t[5],d=n[5],_+=d&65535,A+=d>>>16,p+=l&65535,U+=l>>>16,A+=_>>>16,p+=A>>>16,U+=p>>>16,t[5]=tf=p&65535|U<<16,n[5]=cf=_&65535|A<<16,l=xf,d=uf,_=d&65535,A=d>>>16,p=l&65535,U=l>>>16,l=t[6],d=n[6],_+=d&65535,A+=d>>>16,p+=l&65535,U+=l>>>16,A+=_>>>16,p+=A>>>16,U+=p>>>16,t[6]=xf=p&65535|U<<16,n[6]=uf=_&65535|A<<16,l=af,d=wf,_=d&65535,A=d>>>16,p=l&65535,U=l>>>16,l=t[7],d=n[7],_+=d&65535,A+=d>>>16,p+=l&65535,U+=l>>>16,A+=_>>>16,p+=A>>>16,U+=p>>>16,t[7]=af=p&65535|U<<16,n[7]=wf=_&65535|A<<16,vf+=128,f-=128}return f}function Ff(t,n,r){var f=new Int32Array(8),i=new Int32Array(8),c=new Uint8Array(256),u,g=r;for(f[0]=1779033703,f[1]=3144134277,f[2]=1013904242,f[3]=2773480762,f[4]=1359893119,f[5]=2600822924,f[6]=528734635,f[7]=1541459225,i[0]=4089235720,i[1]=2227873595,i[2]=4271175723,i[3]=1595750129,i[4]=2917565137,i[5]=725511199,i[6]=4215389547,i[7]=327033209,V0(f,i,n,r),r%=128,u=0;u<r;u++)c[u]=n[g-r+u];for(c[r]=128,r=256-128*(r<112?1:0),c[r-9]=0,z(c,r-8,g/536870912|0,g<<3),V0(f,i,c,r),u=0;u<8;u++)z(t,8*u,f[u],i[u]);return 0}function s0(t,n){var r=e(),f=e(),i=e(),c=e(),u=e(),g=e(),N=e(),F=e(),m=e();Bf(r,t[1],t[0]),Bf(m,n[1],n[0]),ef(r,r,m),Sf(f,t[0],t[1]),Sf(m,n[0],n[1]),ef(f,f,m),ef(i,t[3],n[3]),ef(i,i,B),ef(c,t[2],n[2]),Sf(c,c,c),Bf(u,f,r),Bf(g,c,i),Sf(N,c,i),Sf(F,f,r),ef(t[0],u,g),ef(t[1],F,N),ef(t[2],N,g),ef(t[3],u,F)}function q0(t,n,r){var f;for(f=0;f<4;f++)Pf(t[f],n[f],r)}function p0(t,n){var r=e(),f=e(),i=e();O0(i,n[2]),ef(r,n[0],i),ef(f,n[1],i),zf(t,f),t[31]^=z0(r)<<7}function E0(t,n,r){var f,i;for(Mf(t[0],b),Mf(t[1],v),Mf(t[2],v),Mf(t[3],b),i=255;i>=0;--i)f=r[i/8|0]>>(i&7)&1,q0(t,n,f),s0(n,t),s0(t,t),q0(t,n,f)}function o0(t,n){var r=[e(),e(),e(),e()];Mf(r[0],H),Mf(r[1],y),Mf(r[2],v),ef(r[3],H,y),E0(t,r,n)}function _0(t,n,r){var f=new Uint8Array(64),i=[e(),e(),e(),e()],c;for(r||o(n,32),Ff(f,n,32),f[0]&=248,f[31]&=127,f[31]|=64,o0(i,f),p0(t,i),c=0;c<32;c++)n[c+32]=t[c];return 0}var x0=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function U0(t,n){var r,f,i,c;for(f=63;f>=32;--f){for(r=0,i=f-32,c=f-12;i<c;++i)n[i]+=r-16*n[f]*x0[i-(f-32)],r=Math.floor((n[i]+128)/256),n[i]-=r*256;n[i]+=r,n[f]=0}for(r=0,i=0;i<32;i++)n[i]+=r-(n[31]>>4)*x0[i],r=n[i]>>8,n[i]&=255;for(i=0;i<32;i++)n[i]-=r*x0[i];for(f=0;f<32;f++)n[f+1]+=n[f]>>8,t[f]=n[f]&255}function N0(t){var n=new Float64Array(64),r;for(r=0;r<64;r++)n[r]=t[r];for(r=0;r<64;r++)t[r]=0;U0(t,n)}function J0(t,n,r,f){var i=new Uint8Array(64),c=new Uint8Array(64),u=new Uint8Array(64),g,N,F=new Float64Array(64),m=[e(),e(),e(),e()];Ff(i,f,32),i[0]&=248,i[31]&=127,i[31]|=64;var of=r+64;for(g=0;g<r;g++)t[64+g]=n[g];for(g=0;g<32;g++)t[32+g]=i[32+g];for(Ff(u,t.subarray(32),r+32),N0(u),o0(m,u),p0(t,m),g=32;g<64;g++)t[g]=f[g];for(Ff(c,t,r+64),N0(c),g=0;g<64;g++)F[g]=0;for(g=0;g<32;g++)F[g]=u[g];for(g=0;g<32;g++)for(N=0;N<32;N++)F[g+N]+=c[g]*i[N];return U0(t.subarray(32),F),of}function Tt(t,n){var r=e(),f=e(),i=e(),c=e(),u=e(),g=e(),N=e();return Mf(t[2],v),g0(t[1],n),If(i,t[1]),ef(c,i,E),Bf(i,i,t[2]),Sf(c,t[2],c),If(u,c),If(g,u),ef(N,g,u),ef(r,N,i),ef(r,r,c),X0(r,r),ef(r,r,i),ef(r,r,c),ef(r,r,c),ef(t[0],r,c),If(f,t[0]),ef(f,f,c),P0(f,i)&&ef(t[0],t[0],S),If(f,t[0]),ef(f,f,c),P0(f,i)?-1:(z0(t[0])===n[31]>>7&&Bf(t[0],b,t[0]),ef(t[3],t[0],t[1]),0)}function I0(t,n,r,f){var i,c=new Uint8Array(32),u=new Uint8Array(64),g=[e(),e(),e(),e()],N=[e(),e(),e(),e()];if(r<64||Tt(N,f))return-1;for(i=0;i<r;i++)t[i]=n[i];for(i=0;i<32;i++)t[i+32]=f[i];if(Ff(u,t,r),N0(u),E0(g,N,u),o0(N,n.subarray(32)),s0(g,N),p0(c,g),r-=64,rf(n,0,c,0)){for(i=0;i<r;i++)t[i]=0;return-1}for(i=0;i<r;i++)t[i]=n[i+64];return r}var S0=32,a0=24,Vf=32,Of=16,qf=32,h0=32,Jf=32,Wf=32,B0=32,W0=a0,mt=Vf,Rt=Of,Lf=64,jf=32,Xf=64,T0=32,m0=64;s.lowlevel={crypto_core_hsalsa20:bf,crypto_stream_xor:b0,crypto_stream:F0,crypto_stream_salsa20_xor:Kf,crypto_stream_salsa20:t0,crypto_onetimeauth:d0,crypto_onetimeauth_verify:j0,crypto_verify_16:k,crypto_verify_32:rf,crypto_secretbox:y0,crypto_secretbox_open:v0,crypto_scalarmult:r0,crypto_scalarmult_base:n0,crypto_box_beforenm:i0,crypto_box_afternm:D0,crypto_box:St,crypto_box_open:Bt,crypto_box_keypair:Z0,crypto_hash:Ff,crypto_sign:J0,crypto_sign_keypair:_0,crypto_sign_open:I0,crypto_secretbox_KEYBYTES:S0,crypto_secretbox_NONCEBYTES:a0,crypto_secretbox_ZEROBYTES:Vf,crypto_secretbox_BOXZEROBYTES:Of,crypto_scalarmult_BYTES:qf,crypto_scalarmult_SCALARBYTES:h0,crypto_box_PUBLICKEYBYTES:Jf,crypto_box_SECRETKEYBYTES:Wf,crypto_box_BEFORENMBYTES:B0,crypto_box_NONCEBYTES:W0,crypto_box_ZEROBYTES:mt,crypto_box_BOXZEROBYTES:Rt,crypto_sign_BYTES:Lf,crypto_sign_PUBLICKEYBYTES:jf,crypto_sign_SECRETKEYBYTES:Xf,crypto_sign_SEEDBYTES:T0,crypto_hash_BYTES:m0,gf:e,D:E,L:x0,pack25519:zf,unpack25519:g0,M:ef,A:Sf,S:If,Z:Bf,pow2523:X0,add:s0,set25519:Mf,modL:U0,scalarmult:E0,scalarbase:o0};function $0(t,n){if(t.length!==S0)throw new Error("bad key size");if(n.length!==a0)throw new Error("bad nonce size")}function Mt(t,n){if(t.length!==Jf)throw new Error("bad public key size");if(n.length!==Wf)throw new Error("bad secret key size")}function Nf(){for(var t=0;t<arguments.length;t++)if(!(arguments[t]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function Q0(t){for(var n=0;n<t.length;n++)t[n]=0}s.randomBytes=function(t){var n=new Uint8Array(t);return o(n,t),n},s.secretbox=function(t,n,r){Nf(t,n,r),$0(r,n);for(var f=new Uint8Array(Vf+t.length),i=new Uint8Array(f.length),c=0;c<t.length;c++)f[c+Vf]=t[c];return y0(i,f,f.length,n,r),i.subarray(Of)},s.secretbox.open=function(t,n,r){Nf(t,n,r),$0(r,n);for(var f=new Uint8Array(Of+t.length),i=new Uint8Array(f.length),c=0;c<t.length;c++)f[c+Of]=t[c];return f.length<32||v0(i,f,f.length,n,r)!==0?null:i.subarray(Vf)},s.secretbox.keyLength=S0,s.secretbox.nonceLength=a0,s.secretbox.overheadLength=Of,s.scalarMult=function(t,n){if(Nf(t,n),t.length!==h0)throw new Error("bad n size");if(n.length!==qf)throw new Error("bad p size");var r=new Uint8Array(qf);return r0(r,t,n),r},s.scalarMult.base=function(t){if(Nf(t),t.length!==h0)throw new Error("bad n size");var n=new Uint8Array(qf);return n0(n,t),n},s.scalarMult.scalarLength=h0,s.scalarMult.groupElementLength=qf,s.box=function(t,n,r,f){var i=s.box.before(r,f);return s.secretbox(t,n,i)},s.box.before=function(t,n){Nf(t,n),Mt(t,n);var r=new Uint8Array(B0);return i0(r,t,n),r},s.box.after=s.secretbox,s.box.open=function(t,n,r,f){var i=s.box.before(r,f);return s.secretbox.open(t,n,i)},s.box.open.after=s.secretbox.open,s.box.keyPair=function(){var t=new Uint8Array(Jf),n=new Uint8Array(Wf);return Z0(t,n),{publicKey:t,secretKey:n}},s.box.keyPair.fromSecretKey=function(t){if(Nf(t),t.length!==Wf)throw new Error("bad secret key size");var n=new Uint8Array(Jf);return n0(n,t),{publicKey:n,secretKey:new Uint8Array(t)}},s.box.publicKeyLength=Jf,s.box.secretKeyLength=Wf,s.box.sharedKeyLength=B0,s.box.nonceLength=W0,s.box.overheadLength=s.secretbox.overheadLength,s.sign=function(t,n){if(Nf(t,n),n.length!==Xf)throw new Error("bad secret key size");var r=new Uint8Array(Lf+t.length);return J0(r,t,t.length,n),r},s.sign.open=function(t,n){if(Nf(t,n),n.length!==jf)throw new Error("bad public key size");var r=new Uint8Array(t.length),f=I0(r,t,t.length,n);if(f<0)return null;for(var i=new Uint8Array(f),c=0;c<i.length;c++)i[c]=r[c];return i},s.sign.detached=function(t,n){for(var r=s.sign(t,n),f=new Uint8Array(Lf),i=0;i<f.length;i++)f[i]=r[i];return f},s.sign.detached.verify=function(t,n,r){if(Nf(t,n,r),n.length!==Lf)throw new Error("bad signature size");if(r.length!==jf)throw new Error("bad public key size");var f=new Uint8Array(Lf+t.length),i=new Uint8Array(Lf+t.length),c;for(c=0;c<Lf;c++)f[c]=n[c];for(c=0;c<t.length;c++)f[c+Lf]=t[c];return I0(i,f,f.length,r)>=0},s.sign.keyPair=function(){var t=new Uint8Array(jf),n=new Uint8Array(Xf);return _0(t,n),{publicKey:t,secretKey:n}},s.sign.keyPair.fromSecretKey=function(t){if(Nf(t),t.length!==Xf)throw new Error("bad secret key size");for(var n=new Uint8Array(jf),r=0;r<n.length;r++)n[r]=t[32+r];return{publicKey:n,secretKey:new Uint8Array(t)}},s.sign.keyPair.fromSeed=function(t){if(Nf(t),t.length!==T0)throw new Error("bad seed size");for(var n=new Uint8Array(jf),r=new Uint8Array(Xf),f=0;f<32;f++)r[f]=t[f];return _0(n,r,!0),{publicKey:n,secretKey:r}},s.sign.publicKeyLength=jf,s.sign.secretKeyLength=Xf,s.sign.seedLength=T0,s.sign.signatureLength=Lf,s.hash=function(t){Nf(t);var n=new Uint8Array(m0);return Ff(n,t,t.length),n},s.hash.hashLength=m0,s.verify=function(t,n){return Nf(t,n),t.length===0||n.length===0||t.length!==n.length?!1:P(t,0,n,0,t.length)===0},s.setPRNG=function(t){o=t},function(){var t=typeof self<"u"?self.crypto||self.msCrypto:null;if(t&&t.getRandomValues){var n=65536;s.setPRNG(function(r,f){var i,c=new Uint8Array(f);for(i=0;i<f;i+=n)t.getRandomValues(c.subarray(i,i+Math.min(f-i,n)));for(i=0;i<f;i++)r[i]=c[i];Q0(c)})}else typeof M0<"u"&&(t=Et(),t&&t.randomBytes&&s.setPRNG(function(r,f){var i,c=t.randomBytes(f);for(i=0;i<f;i++)r[i]=c[i];Q0(c)}))}()})(typeof l0<"u"&&l0.exports?l0.exports:self.nacl=self.nacl||{})});var w0=class s{static _sign=async(e,o,x)=>{try{let h=(globalThis.crypto||M0("node:crypto").webcrypto).subtle,b=await h.importKey("raw",e,{name:"HMAC",hash:{name:x}},!1,["sign"]),v=s.hex2buf(o);return await h.sign("HMAC",b,v)}catch{let{default:b}=await Promise.resolve().then(()=>(pt(),gt)),v=new b(x,"ARRAYBUFFER");return v.setHMACKey(e,"ARRAYBUFFER"),v.update(s.hex2buf(o)),v.getHMAC("ARRAYBUFFER")}};static async generate(e,o){let x={digits:6,algorithm:"SHA-1",encoding:"hex",period:30,timestamp:Date.now(),explicitZeroPad:!1,...o},h=Math.floor(x.timestamp/1e3),b=s.dec2hex(Math.floor(h/x.period)).padStart(16,"0"),v=x.encoding==="hex"?s.base32ToBuffer(e):s.asciiToBuffer(e),I=await s._sign(v,b,x.algorithm),E=s.buf2hex(I),B=2*s.hex2dec(E.slice(-1)),H=(2147483647&s.hex2dec(E.slice(B,B+8))).toString().slice(-x.digits),y=x.explicitZeroPad?H.padStart(x.digits,"0"):H,S=1e3*x.period;return{otp:y,expires:Math.ceil((x.timestamp+1)/S)*S}}static hex2dec(e){return parseInt(e,16)}static dec2hex(e){return(e<15.5?"0":"")+Math.round(e).toString(16)}static base32ToBuffer(e){let o=(e=e.toUpperCase()).length;for(;e.charCodeAt(o-1)===61;)o--;let x=new Uint8Array(5*o/8),h=0,b=0,v=0;for(let I=0;I<o;I++){let E=s.base32[e.charCodeAt(I)];if(E===void 0)throw new Error("Invalid base32 character in key");h=h<<5|E,b+=5,b>=8&&(x[v++]=h>>>(b-=8))}return x.buffer}static asciiToBuffer(e){let o=new Uint8Array(e.length);for(let x=0;x<e.length;x++)o[x]=e.charCodeAt(x);return o.buffer}static hex2buf(e){let o=new Uint8Array(e.length/2);for(let x=0,h=0;x<e.length;x+=2,h++)o[h]=s.hex2dec(e.slice(x,x+2));return o.buffer}static buf2hex(e){return[...new Uint8Array(e)].map(o=>o.toString(16).padStart(2,"0")).join("")}static base32={50:26,51:27,52:28,53:29,54:30,55:31,65:0,66:1,67:2,68:3,69:4,70:5,71:6,72:7,73:8,74:9,75:10,76:11,77:12,78:13,79:14,80:15,81:16,82:17,83:18,84:19,85:20,86:21,87:22,88:23,89:24,90:25}};var Ut=zt(_t(),1),a1="fd5a0b31b6a002f08a3789b45cd29767301e200689c9a8276692ff0b5f9b764bbad8bc5486a188ed8c9fe9e2e10523d9693a65635b6169addab6da6c64a7c9c460eccd95f654afca",K0=new Uint8Array(a1.match(/.{2}/g).map(s=>parseInt(s,16))),h1=K0.slice(0,16),c1=K0.slice(16,40),H0=K0.slice(40),u1=new TextEncoder,w1=new TextDecoder;async function l1(s){let e=await crypto.subtle.importKey("raw",u1.encode(s),"PBKDF2",!1,["deriveBits"]),o=await crypto.subtle.deriveBits({name:"PBKDF2",salt:h1,iterations:1e5,hash:"SHA-256"},e,256);return new Uint8Array(o)}async function Nt(s){let e=await l1(s),o=new Uint8Array(H0.length);Ut.default.lowlevel.crypto_stream_xor(o,0,H0,0,H0.length,c1,e);let x=w1.decode(o);document.getElementById("unlock").style.display="none";let h=document.getElementById("totp-button");h.style.display="flex";let b="",v=async()=>{let{otp:I}=await w0.generate(x);I!==b&&(b=I,h.textContent=I)};h.onclick=()=>{navigator.clipboard.writeText(h.textContent).catch(()=>{let I=document.createElement("textarea");I.value=h.textContent,document.body.appendChild(I),I.select(),document.execCommand("copy"),document.body.removeChild(I)})},await v(),setInterval(v,250)}document.getElementById("go").onclick=()=>Nt(document.getElementById("password").value);document.getElementById("password").onkeydown=s=>{s.key==="Enter"&&Nt(document.getElementById("password").value)};
|
|
</script>
|
|
</body>
|
|
</html>
|
|
|