wowok_agent
Version:
Create, collaborate, and transact on your own terms with the AI-driven web3 collaboration protocol.
2 lines • 7.83 kB
JavaScript
/*! For license information please see 606.ecbe2de3a45dcb73e156.js.LICENSE.txt */
"use strict";(this.webpackChunkwowok_agent=this.webpackChunkwowok_agent||[]).push([[606],{6013:(t,e,n)=>{n.d(e,{ol:()=>r});var s=n(9190),i=n(2531);class r extends i.Vw{constructor(t,e,n,s){super(),this.blockLen=t,this.outputLen=e,this.padOffset=n,this.isLE=s,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=(0,i.O8)(this.buffer)}update(t){(0,s.CC)(this);const{view:e,buffer:n,blockLen:r}=this,o=(t=(0,i.ZJ)(t)).length;for(let s=0;s<o;){const h=Math.min(r-this.pos,o-s);if(h!==r)n.set(t.subarray(s,s+h),this.pos),this.pos+=h,s+=h,this.pos===r&&(this.process(e,0),this.pos=0);else{const e=(0,i.O8)(t);for(;r<=o-s;s+=r)this.process(e,s)}}return this.length+=t.length,this.roundClean(),this}digestInto(t){(0,s.CC)(this),(0,s.Ht)(t,this),this.finished=!0;const{buffer:e,view:n,blockLen:r,isLE:o}=this;let{pos:h}=this;e[h++]=128,this.buffer.subarray(h).fill(0),this.padOffset>r-h&&(this.process(n,0),h=0);for(let t=h;t<r;t++)e[t]=0;!function(t,e,n,s){if("function"==typeof t.setBigUint64)return t.setBigUint64(e,n,s);const i=BigInt(32),r=BigInt(4294967295),o=Number(n>>i&r),h=Number(n&r),u=s?4:0,f=s?0:4;t.setUint32(e+u,o,s),t.setUint32(e+f,h,s)}(n,r-8,BigInt(8*this.length),o),this.process(n,0);const u=(0,i.O8)(t),f=this.outputLen;if(f%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const c=f/4,d=this.get();if(c>d.length)throw new Error("_sha2: outputLen bigger than state");for(let t=0;t<c;t++)u.setUint32(4*t,d[t],o)}digest(){const{buffer:t,outputLen:e}=this;this.digestInto(t);const n=t.slice(0,e);return this.destroy(),n}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:e,buffer:n,length:s,finished:i,destroyed:r,pos:o}=this;return t.length=s,t.pos=o,t.finished=i,t.destroyed=r,s%e&&t.buffer.set(n),t}}},6216:(t,e,n)=>{n.d(e,{ev:()=>w});var s=n(4443),i=n(2531),r=n(1057),o=n(8030);const h=BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"),u=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752"),f=(BigInt(0),BigInt(1)),c=BigInt(2),d=(BigInt(3),BigInt(5)),l=BigInt(8);function a(t){return t[0]&=248,t[31]&=127,t[31]|=64,t}function g(t,e){const n=h,s=(0,o.zi)(e*e*e,n),i=function(t){const e=BigInt(10),n=BigInt(20),s=BigInt(40),i=BigInt(80),r=h,u=t*t%r*t%r,l=(0,o.zH)(u,c,r)*u%r,a=(0,o.zH)(l,f,r)*t%r,g=(0,o.zH)(a,d,r)*a%r,p=(0,o.zH)(g,e,r)*g%r,b=(0,o.zH)(p,n,r)*p%r,w=(0,o.zH)(b,s,r)*b%r,y=(0,o.zH)(w,i,r)*w%r,B=(0,o.zH)(y,i,r)*w%r,I=(0,o.zH)(B,e,r)*g%r;return{pow_p_5_8:(0,o.zH)(I,c,r)*t%r,b2:u}}(t*(0,o.zi)(s*s*e,n)).pow_p_5_8;let r=(0,o.zi)(t*s*i,n);const l=(0,o.zi)(e*r*r,n),a=r,g=(0,o.zi)(r*u,n),p=l===t,b=l===(0,o.zi)(-t,n),w=l===(0,o.zi)(-t*u,n);return p&&(r=a),(b||w)&&(r=g),(0,o.dQ)(r,n)&&(r=(0,o.zi)(-r,n)),{isValid:p||b,value:r}}const p=(()=>(0,o.D0)(h,void 0,!0))(),b=(()=>({a:BigInt(-1),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),Fp:p,n:BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"),h:l,Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960"),hash:s.Zf,randomBytes:i.po,adjustScalarBytes:a,uvRatio:g}))(),w=(()=>(0,r.n)(b))()},8447:(t,e,n)=>{n.d(e,{Y:()=>o,y:()=>r});var s=n(9190),i=n(2531);const r=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9]);class o extends i.Vw{constructor(t,e,n={},r,o,h){if(super(),this.blockLen=t,this.outputLen=e,this.length=0,this.pos=0,this.finished=!1,this.destroyed=!1,(0,s.Fe)(t),(0,s.Fe)(e),(0,s.Fe)(r),e<0||e>r)throw new Error("outputLen bigger than keyLen");if(void 0!==n.key&&(n.key.length<1||n.key.length>r))throw new Error("key length must be undefined or 1.."+r);if(void 0!==n.salt&&n.salt.length!==o)throw new Error("salt must be undefined or "+o);if(void 0!==n.personalization&&n.personalization.length!==h)throw new Error("personalization must be undefined or "+h);this.buffer=new Uint8Array(t),this.buffer32=(0,i.DH)(this.buffer)}update(t){(0,s.CC)(this);const{blockLen:e,buffer:n,buffer32:r}=this,o=(t=(0,i.ZJ)(t)).length,h=t.byteOffset,u=t.buffer;for(let s=0;s<o;){this.pos===e&&(i.qv||(0,i.Fc)(r),this.compress(r,0,!1),i.qv||(0,i.Fc)(r),this.pos=0);const f=Math.min(e-this.pos,o-s),c=h+s;if(f!==e||c%4||!(s+f<o))n.set(t.subarray(s,s+f),this.pos),this.pos+=f,this.length+=f,s+=f;else{const t=new Uint32Array(u,c,Math.floor((o-s)/4));i.qv||(0,i.Fc)(t);for(let n=0;s+e<o;n+=r.length,s+=e)this.length+=e,this.compress(t,n,!1);i.qv||(0,i.Fc)(t)}}return this}digestInto(t){(0,s.CC)(this),(0,s.Ht)(t,this);const{pos:e,buffer32:n}=this;this.finished=!0,this.buffer.subarray(e).fill(0),i.qv||(0,i.Fc)(n),this.compress(n,0,!0),i.qv||(0,i.Fc)(n);const r=(0,i.DH)(t);this.get().forEach(((t,e)=>r[e]=(0,i.c)(t)))}digest(){const{buffer:t,outputLen:e}=this;this.digestInto(t);const n=t.slice(0,e);return this.destroy(),n}_cloneInto(t){const{buffer:e,length:n,finished:s,destroyed:i,outputLen:r,pos:o}=this;return t||(t=new this.constructor({dkLen:r})),t.set(...this.get()),t.length=n,t.finished=s,t.destroyed=i,t.outputLen=r,t.buffer.set(e),t.pos=o,t}}},9190:(t,e,n)=>{function s(t){if(!Number.isSafeInteger(t)||t<0)throw new Error("positive integer expected, got "+t)}function i(t,...e){if(!((n=t)instanceof Uint8Array||ArrayBuffer.isView(n)&&"Uint8Array"===n.constructor.name))throw new Error("Uint8Array expected");var n;if(e.length>0&&!e.includes(t.length))throw new Error("Uint8Array expected of length "+e+", got length="+t.length)}function r(t){if("function"!=typeof t||"function"!=typeof t.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");s(t.outputLen),s(t.blockLen)}function o(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function h(t,e){i(t);const n=e.outputLen;if(t.length<n)throw new Error("digestInto() expects output buffer of length at least "+n)}n.d(e,{CC:()=>o,DO:()=>i,Fe:()=>s,Ht:()=>h,sd:()=>r})},9271:(t,e,n)=>{n.d(e,{Ay:()=>o});const s=BigInt(2**32-1),i=BigInt(32);function r(t,e=!1){return e?{h:Number(t&s),l:Number(t>>i&s)}:{h:0|Number(t>>i&s),l:0|Number(t&s)}}const o={fromBig:r,split:function(t,e=!1){let n=new Uint32Array(t.length),s=new Uint32Array(t.length);for(let i=0;i<t.length;i++){const{h:o,l:h}=r(t[i],e);[n[i],s[i]]=[o,h]}return[n,s]},toBig:(t,e)=>BigInt(t>>>0)<<i|BigInt(e>>>0),shrSH:(t,e,n)=>t>>>n,shrSL:(t,e,n)=>t<<32-n|e>>>n,rotrSH:(t,e,n)=>t>>>n|e<<32-n,rotrSL:(t,e,n)=>t<<32-n|e>>>n,rotrBH:(t,e,n)=>t<<64-n|e>>>n-32,rotrBL:(t,e,n)=>t>>>n-32|e<<64-n,rotr32H:(t,e)=>e,rotr32L:(t,e)=>t,rotlSH:(t,e,n)=>t<<n|e>>>32-n,rotlSL:(t,e,n)=>e<<n|t>>>32-n,rotlBH:(t,e,n)=>e<<n-32|t>>>64-n,rotlBL:(t,e,n)=>t<<n-32|e>>>64-n,add:function(t,e,n,s){const i=(e>>>0)+(s>>>0);return{h:t+n+(i/2**32|0)|0,l:0|i}},add3L:(t,e,n)=>(t>>>0)+(e>>>0)+(n>>>0),add3H:(t,e,n,s)=>e+n+s+(t/2**32|0)|0,add4L:(t,e,n,s)=>(t>>>0)+(e>>>0)+(n>>>0)+(s>>>0),add4H:(t,e,n,s,i)=>e+n+s+i+(t/2**32|0)|0,add5H:(t,e,n,s,i,r)=>e+n+s+i+r+(t/2**32|0)|0,add5L:(t,e,n,s,i)=>(t>>>0)+(e>>>0)+(n>>>0)+(s>>>0)+(i>>>0)}}}]);