archethic
Version:
Archethic Javascript SDK
1 lines • 474 kB
JavaScript
"use strict";var archethic=(()=>{var y5=Object.create;var qf=Object.defineProperty;var g5=Object.getOwnPropertyDescriptor;var m5=Object.getOwnPropertyNames;var w5=Object.getPrototypeOf,_5=Object.prototype.hasOwnProperty;var w0=(r=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(r,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):r)(function(r){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+r+'" is not supported')});var R=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),ys=(r,e)=>{for(var t in e)qf(r,t,{get:e[t],enumerable:!0})},rh=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of m5(e))!_5.call(r,i)&&i!==t&&qf(r,i,{get:()=>e[i],enumerable:!(n=g5(e,i))||n.enumerable});return r};var We=(r,e,t)=>(t=r!=null?y5(w5(r)):{},rh(e||!r||!r.__esModule?qf(t,"default",{value:r,enumerable:!0}):t,r)),A5=r=>rh(qf({},"__esModule",{value:!0}),r);var fh=R(Bf=>{"use strict";Bf.byteLength=E5;Bf.toByteArray=q5;Bf.fromByteArray=I5;var fn=[],kt=[],S5=typeof Uint8Array<"u"?Uint8Array:Array,gs="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(si=0,nh=gs.length;si<nh;++si)fn[si]=gs[si],kt[gs.charCodeAt(si)]=si;var si,nh;kt["-".charCodeAt(0)]=62;kt["_".charCodeAt(0)]=63;function ih(r){var e=r.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=r.indexOf("=");t===-1&&(t=e);var n=t===e?0:4-t%4;return[t,n]}function E5(r){var e=ih(r),t=e[0],n=e[1];return(t+n)*3/4-n}function M5(r,e,t){return(e+t)*3/4-t}function q5(r){var e,t=ih(r),n=t[0],i=t[1],f=new S5(M5(r,n,i)),a=0,s=i>0?n-4:n,d;for(d=0;d<s;d+=4)e=kt[r.charCodeAt(d)]<<18|kt[r.charCodeAt(d+1)]<<12|kt[r.charCodeAt(d+2)]<<6|kt[r.charCodeAt(d+3)],f[a++]=e>>16&255,f[a++]=e>>8&255,f[a++]=e&255;return i===2&&(e=kt[r.charCodeAt(d)]<<2|kt[r.charCodeAt(d+1)]>>4,f[a++]=e&255),i===1&&(e=kt[r.charCodeAt(d)]<<10|kt[r.charCodeAt(d+1)]<<4|kt[r.charCodeAt(d+2)]>>2,f[a++]=e>>8&255,f[a++]=e&255),f}function B5(r){return fn[r>>18&63]+fn[r>>12&63]+fn[r>>6&63]+fn[r&63]}function C5(r,e,t){for(var n,i=[],f=e;f<t;f+=3)n=(r[f]<<16&16711680)+(r[f+1]<<8&65280)+(r[f+2]&255),i.push(B5(n));return i.join("")}function I5(r){for(var e,t=r.length,n=t%3,i=[],f=16383,a=0,s=t-n;a<s;a+=f)i.push(C5(r,a,a+f>s?s:a+f));return n===1?(e=r[t-1],i.push(fn[e>>2]+fn[e<<4&63]+"==")):n===2&&(e=(r[t-2]<<8)+r[t-1],i.push(fn[e>>10]+fn[e>>4&63]+fn[e<<2&63]+"=")),i.join("")}});var ah=R(ms=>{ms.read=function(r,e,t,n,i){var f,a,s=i*8-n-1,d=(1<<s)-1,u=d>>1,v=-7,p=t?i-1:0,y=t?-1:1,_=r[e+p];for(p+=y,f=_&(1<<-v)-1,_>>=-v,v+=s;v>0;f=f*256+r[e+p],p+=y,v-=8);for(a=f&(1<<-v)-1,f>>=-v,v+=n;v>0;a=a*256+r[e+p],p+=y,v-=8);if(f===0)f=1-u;else{if(f===d)return a?NaN:(_?-1:1)*(1/0);a=a+Math.pow(2,n),f=f-u}return(_?-1:1)*a*Math.pow(2,f-n)};ms.write=function(r,e,t,n,i,f){var a,s,d,u=f*8-i-1,v=(1<<u)-1,p=v>>1,y=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,_=n?0:f-1,q=n?1:-1,T=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=v):(a=Math.floor(Math.log(e)/Math.LN2),e*(d=Math.pow(2,-a))<1&&(a--,d*=2),a+p>=1?e+=y/d:e+=y*Math.pow(2,1-p),e*d>=2&&(a++,d/=2),a+p>=v?(s=0,a=v):a+p>=1?(s=(e*d-1)*Math.pow(2,i),a=a+p):(s=e*Math.pow(2,p-1)*Math.pow(2,i),a=0));i>=8;r[t+_]=s&255,_+=q,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;r[t+_]=a&255,_+=q,a/=256,u-=8);r[t+_-q]|=T*128}});var Ah=R(Fi=>{"use strict";var ws=fh(),Ni=ah(),oh=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Fi.Buffer=te;Fi.SlowBuffer=N5;Fi.INSPECT_MAX_BYTES=50;var Cf=2147483647;Fi.kMaxLength=Cf;te.TYPED_ARRAY_SUPPORT=P5();!te.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function P5(){try{let r=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(r,e),r.foo()===42}catch{return!1}}Object.defineProperty(te.prototype,"parent",{enumerable:!0,get:function(){if(te.isBuffer(this))return this.buffer}});Object.defineProperty(te.prototype,"offset",{enumerable:!0,get:function(){if(te.isBuffer(this))return this.byteOffset}});function yn(r){if(r>Cf)throw new RangeError('The value "'+r+'" is invalid for option "size"');let e=new Uint8Array(r);return Object.setPrototypeOf(e,te.prototype),e}function te(r,e,t){if(typeof r=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Es(r)}return dh(r,e,t)}te.poolSize=8192;function dh(r,e,t){if(typeof r=="string")return R5(r,e);if(ArrayBuffer.isView(r))return T5(r);if(r==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r);if(an(r,ArrayBuffer)||r&&an(r.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(an(r,SharedArrayBuffer)||r&&an(r.buffer,SharedArrayBuffer)))return As(r,e,t);if(typeof r=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=r.valueOf&&r.valueOf();if(n!=null&&n!==r)return te.from(n,e,t);let i=k5(r);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof r[Symbol.toPrimitive]=="function")return te.from(r[Symbol.toPrimitive]("string"),e,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r)}te.from=function(r,e,t){return dh(r,e,t)};Object.setPrototypeOf(te.prototype,Uint8Array.prototype);Object.setPrototypeOf(te,Uint8Array);function hh(r){if(typeof r!="number")throw new TypeError('"size" argument must be of type number');if(r<0)throw new RangeError('The value "'+r+'" is invalid for option "size"')}function O5(r,e,t){return hh(r),r<=0?yn(r):e!==void 0?typeof t=="string"?yn(r).fill(e,t):yn(r).fill(e):yn(r)}te.alloc=function(r,e,t){return O5(r,e,t)};function Es(r){return hh(r),yn(r<0?0:Ms(r)|0)}te.allocUnsafe=function(r){return Es(r)};te.allocUnsafeSlow=function(r){return Es(r)};function R5(r,e){if((typeof e!="string"||e==="")&&(e="utf8"),!te.isEncoding(e))throw new TypeError("Unknown encoding: "+e);let t=lh(r,e)|0,n=yn(t),i=n.write(r,e);return i!==t&&(n=n.slice(0,i)),n}function _s(r){let e=r.length<0?0:Ms(r.length)|0,t=yn(e);for(let n=0;n<e;n+=1)t[n]=r[n]&255;return t}function T5(r){if(an(r,Uint8Array)){let e=new Uint8Array(r);return As(e.buffer,e.byteOffset,e.byteLength)}return _s(r)}function As(r,e,t){if(e<0||r.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(r.byteLength<e+(t||0))throw new RangeError('"length" is outside of buffer bounds');let n;return e===void 0&&t===void 0?n=new Uint8Array(r):t===void 0?n=new Uint8Array(r,e):n=new Uint8Array(r,e,t),Object.setPrototypeOf(n,te.prototype),n}function k5(r){if(te.isBuffer(r)){let e=Ms(r.length)|0,t=yn(e);return t.length===0||r.copy(t,0,0,e),t}if(r.length!==void 0)return typeof r.length!="number"||Bs(r.length)?yn(0):_s(r);if(r.type==="Buffer"&&Array.isArray(r.data))return _s(r.data)}function Ms(r){if(r>=Cf)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Cf.toString(16)+" bytes");return r|0}function N5(r){return+r!=r&&(r=0),te.alloc(+r)}te.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==te.prototype};te.compare=function(e,t){if(an(e,Uint8Array)&&(e=te.from(e,e.offset,e.byteLength)),an(t,Uint8Array)&&(t=te.from(t,t.offset,t.byteLength)),!te.isBuffer(e)||!te.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,i=t.length;for(let f=0,a=Math.min(n,i);f<a;++f)if(e[f]!==t[f]){n=e[f],i=t[f];break}return n<i?-1:i<n?1:0};te.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};te.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return te.alloc(0);let n;if(t===void 0)for(t=0,n=0;n<e.length;++n)t+=e[n].length;let i=te.allocUnsafe(t),f=0;for(n=0;n<e.length;++n){let a=e[n];if(an(a,Uint8Array))f+a.length>i.length?(te.isBuffer(a)||(a=te.from(a)),a.copy(i,f)):Uint8Array.prototype.set.call(i,a,f);else if(te.isBuffer(a))a.copy(i,f);else throw new TypeError('"list" argument must be an Array of Buffers');f+=a.length}return i};function lh(r,e){if(te.isBuffer(r))return r.length;if(ArrayBuffer.isView(r)||an(r,ArrayBuffer))return r.byteLength;if(typeof r!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof r);let t=r.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&t===0)return 0;let i=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return Ss(r).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return _h(r).length;default:if(i)return n?-1:Ss(r).length;e=(""+e).toLowerCase(),i=!0}}te.byteLength=lh;function U5(r,e,t){let n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,e>>>=0,t<=e))return"";for(r||(r="utf8");;)switch(r){case"hex":return W5(this,e,t);case"utf8":case"utf-8":return ph(this,e,t);case"ascii":return K5(this,e,t);case"latin1":case"binary":return J5(this,e,t);case"base64":return H5(this,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G5(this,e,t);default:if(n)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),n=!0}}te.prototype._isBuffer=!0;function ci(r,e,t){let n=r[e];r[e]=r[t],r[t]=n}te.prototype.swap16=function(){let e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)ci(this,t,t+1);return this};te.prototype.swap32=function(){let e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)ci(this,t,t+3),ci(this,t+1,t+2);return this};te.prototype.swap64=function(){let e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)ci(this,t,t+7),ci(this,t+1,t+6),ci(this,t+2,t+5),ci(this,t+3,t+4);return this};te.prototype.toString=function(){let e=this.length;return e===0?"":arguments.length===0?ph(this,0,e):U5.apply(this,arguments)};te.prototype.toLocaleString=te.prototype.toString;te.prototype.equals=function(e){if(!te.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:te.compare(this,e)===0};te.prototype.inspect=function(){let e="",t=Fi.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"};oh&&(te.prototype[oh]=te.prototype.inspect);te.prototype.compare=function(e,t,n,i,f){if(an(e,Uint8Array)&&(e=te.from(e,e.offset,e.byteLength)),!te.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),i===void 0&&(i=0),f===void 0&&(f=this.length),t<0||n>e.length||i<0||f>this.length)throw new RangeError("out of range index");if(i>=f&&t>=n)return 0;if(i>=f)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,f>>>=0,this===e)return 0;let a=f-i,s=n-t,d=Math.min(a,s),u=this.slice(i,f),v=e.slice(t,n);for(let p=0;p<d;++p)if(u[p]!==v[p]){a=u[p],s=v[p];break}return a<s?-1:s<a?1:0};function vh(r,e,t,n,i){if(r.length===0)return-1;if(typeof t=="string"?(n=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,Bs(t)&&(t=i?0:r.length-1),t<0&&(t=r.length+t),t>=r.length){if(i)return-1;t=r.length-1}else if(t<0)if(i)t=0;else return-1;if(typeof e=="string"&&(e=te.from(e,n)),te.isBuffer(e))return e.length===0?-1:sh(r,e,t,n,i);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(r,e,t):Uint8Array.prototype.lastIndexOf.call(r,e,t):sh(r,[e],t,n,i);throw new TypeError("val must be string, number or Buffer")}function sh(r,e,t,n,i){let f=1,a=r.length,s=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(r.length<2||e.length<2)return-1;f=2,a/=2,s/=2,t/=2}function d(v,p){return f===1?v[p]:v.readUInt16BE(p*f)}let u;if(i){let v=-1;for(u=t;u<a;u++)if(d(r,u)===d(e,v===-1?0:u-v)){if(v===-1&&(v=u),u-v+1===s)return v*f}else v!==-1&&(u-=u-v),v=-1}else for(t+s>a&&(t=a-s),u=t;u>=0;u--){let v=!0;for(let p=0;p<s;p++)if(d(r,u+p)!==d(e,p)){v=!1;break}if(v)return u}return-1}te.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1};te.prototype.indexOf=function(e,t,n){return vh(this,e,t,n,!0)};te.prototype.lastIndexOf=function(e,t,n){return vh(this,e,t,n,!1)};function F5(r,e,t,n){t=Number(t)||0;let i=r.length-t;n?(n=Number(n),n>i&&(n=i)):n=i;let f=e.length;n>f/2&&(n=f/2);let a;for(a=0;a<n;++a){let s=parseInt(e.substr(a*2,2),16);if(Bs(s))return a;r[t+a]=s}return a}function j5(r,e,t,n){return If(Ss(e,r.length-t),r,t,n)}function L5(r,e,t,n){return If(Z5(e),r,t,n)}function D5(r,e,t,n){return If(_h(e),r,t,n)}function z5(r,e,t,n){return If(Q5(e,r.length-t),r,t,n)}te.prototype.write=function(e,t,n,i){if(t===void 0)i="utf8",n=this.length,t=0;else if(n===void 0&&typeof t=="string")i=t,n=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let f=this.length-t;if((n===void 0||n>f)&&(n=f),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let a=!1;for(;;)switch(i){case"hex":return F5(this,e,t,n);case"utf8":case"utf-8":return j5(this,e,t,n);case"ascii":case"latin1":case"binary":return L5(this,e,t,n);case"base64":return D5(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z5(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0}};te.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function H5(r,e,t){return e===0&&t===r.length?ws.fromByteArray(r):ws.fromByteArray(r.slice(e,t))}function ph(r,e,t){t=Math.min(r.length,t);let n=[],i=e;for(;i<t;){let f=r[i],a=null,s=f>239?4:f>223?3:f>191?2:1;if(i+s<=t){let d,u,v,p;switch(s){case 1:f<128&&(a=f);break;case 2:d=r[i+1],(d&192)===128&&(p=(f&31)<<6|d&63,p>127&&(a=p));break;case 3:d=r[i+1],u=r[i+2],(d&192)===128&&(u&192)===128&&(p=(f&15)<<12|(d&63)<<6|u&63,p>2047&&(p<55296||p>57343)&&(a=p));break;case 4:d=r[i+1],u=r[i+2],v=r[i+3],(d&192)===128&&(u&192)===128&&(v&192)===128&&(p=(f&15)<<18|(d&63)<<12|(u&63)<<6|v&63,p>65535&&p<1114112&&(a=p))}}a===null?(a=65533,s=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|a&1023),n.push(a),i+=s}return $5(n)}var ch=4096;function $5(r){let e=r.length;if(e<=ch)return String.fromCharCode.apply(String,r);let t="",n=0;for(;n<e;)t+=String.fromCharCode.apply(String,r.slice(n,n+=ch));return t}function K5(r,e,t){let n="";t=Math.min(r.length,t);for(let i=e;i<t;++i)n+=String.fromCharCode(r[i]&127);return n}function J5(r,e,t){let n="";t=Math.min(r.length,t);for(let i=e;i<t;++i)n+=String.fromCharCode(r[i]);return n}function W5(r,e,t){let n=r.length;(!e||e<0)&&(e=0),(!t||t<0||t>n)&&(t=n);let i="";for(let f=e;f<t;++f)i+=ey[r[f]];return i}function G5(r,e,t){let n=r.slice(e,t),i="";for(let f=0;f<n.length-1;f+=2)i+=String.fromCharCode(n[f]+n[f+1]*256);return i}te.prototype.slice=function(e,t){let n=this.length;e=~~e,t=t===void 0?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<e&&(t=e);let i=this.subarray(e,t);return Object.setPrototypeOf(i,te.prototype),i};function $r(r,e,t){if(r%1!==0||r<0)throw new RangeError("offset is not uint");if(r+e>t)throw new RangeError("Trying to access beyond buffer length")}te.prototype.readUintLE=te.prototype.readUIntLE=function(e,t,n){e=e>>>0,t=t>>>0,n||$r(e,t,this.length);let i=this[e],f=1,a=0;for(;++a<t&&(f*=256);)i+=this[e+a]*f;return i};te.prototype.readUintBE=te.prototype.readUIntBE=function(e,t,n){e=e>>>0,t=t>>>0,n||$r(e,t,this.length);let i=this[e+--t],f=1;for(;t>0&&(f*=256);)i+=this[e+--t]*f;return i};te.prototype.readUint8=te.prototype.readUInt8=function(e,t){return e=e>>>0,t||$r(e,1,this.length),this[e]};te.prototype.readUint16LE=te.prototype.readUInt16LE=function(e,t){return e=e>>>0,t||$r(e,2,this.length),this[e]|this[e+1]<<8};te.prototype.readUint16BE=te.prototype.readUInt16BE=function(e,t){return e=e>>>0,t||$r(e,2,this.length),this[e]<<8|this[e+1]};te.prototype.readUint32LE=te.prototype.readUInt32LE=function(e,t){return e=e>>>0,t||$r(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};te.prototype.readUint32BE=te.prototype.readUInt32BE=function(e,t){return e=e>>>0,t||$r(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};te.prototype.readBigUInt64LE=Tn(function(e){e=e>>>0,Ui(e,"offset");let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&_0(e,this.length-8);let i=t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,f=this[++e]+this[++e]*2**8+this[++e]*2**16+n*2**24;return BigInt(i)+(BigInt(f)<<BigInt(32))});te.prototype.readBigUInt64BE=Tn(function(e){e=e>>>0,Ui(e,"offset");let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&_0(e,this.length-8);let i=t*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],f=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n;return(BigInt(i)<<BigInt(32))+BigInt(f)});te.prototype.readIntLE=function(e,t,n){e=e>>>0,t=t>>>0,n||$r(e,t,this.length);let i=this[e],f=1,a=0;for(;++a<t&&(f*=256);)i+=this[e+a]*f;return f*=128,i>=f&&(i-=Math.pow(2,8*t)),i};te.prototype.readIntBE=function(e,t,n){e=e>>>0,t=t>>>0,n||$r(e,t,this.length);let i=t,f=1,a=this[e+--i];for(;i>0&&(f*=256);)a+=this[e+--i]*f;return f*=128,a>=f&&(a-=Math.pow(2,8*t)),a};te.prototype.readInt8=function(e,t){return e=e>>>0,t||$r(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};te.prototype.readInt16LE=function(e,t){e=e>>>0,t||$r(e,2,this.length);let n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};te.prototype.readInt16BE=function(e,t){e=e>>>0,t||$r(e,2,this.length);let n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};te.prototype.readInt32LE=function(e,t){return e=e>>>0,t||$r(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};te.prototype.readInt32BE=function(e,t){return e=e>>>0,t||$r(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};te.prototype.readBigInt64LE=Tn(function(e){e=e>>>0,Ui(e,"offset");let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&_0(e,this.length-8);let i=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(n<<24);return(BigInt(i)<<BigInt(32))+BigInt(t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)});te.prototype.readBigInt64BE=Tn(function(e){e=e>>>0,Ui(e,"offset");let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&_0(e,this.length-8);let i=(t<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(i)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n)});te.prototype.readFloatLE=function(e,t){return e=e>>>0,t||$r(e,4,this.length),Ni.read(this,e,!0,23,4)};te.prototype.readFloatBE=function(e,t){return e=e>>>0,t||$r(e,4,this.length),Ni.read(this,e,!1,23,4)};te.prototype.readDoubleLE=function(e,t){return e=e>>>0,t||$r(e,8,this.length),Ni.read(this,e,!0,52,8)};te.prototype.readDoubleBE=function(e,t){return e=e>>>0,t||$r(e,8,this.length),Ni.read(this,e,!1,52,8)};function bt(r,e,t,n,i,f){if(!te.isBuffer(r))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<f)throw new RangeError('"value" argument is out of bounds');if(t+n>r.length)throw new RangeError("Index out of range")}te.prototype.writeUintLE=te.prototype.writeUIntLE=function(e,t,n,i){if(e=+e,t=t>>>0,n=n>>>0,!i){let s=Math.pow(2,8*n)-1;bt(this,e,t,n,s,0)}let f=1,a=0;for(this[t]=e&255;++a<n&&(f*=256);)this[t+a]=e/f&255;return t+n};te.prototype.writeUintBE=te.prototype.writeUIntBE=function(e,t,n,i){if(e=+e,t=t>>>0,n=n>>>0,!i){let s=Math.pow(2,8*n)-1;bt(this,e,t,n,s,0)}let f=n-1,a=1;for(this[t+f]=e&255;--f>=0&&(a*=256);)this[t+f]=e/a&255;return t+n};te.prototype.writeUint8=te.prototype.writeUInt8=function(e,t,n){return e=+e,t=t>>>0,n||bt(this,e,t,1,255,0),this[t]=e&255,t+1};te.prototype.writeUint16LE=te.prototype.writeUInt16LE=function(e,t,n){return e=+e,t=t>>>0,n||bt(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2};te.prototype.writeUint16BE=te.prototype.writeUInt16BE=function(e,t,n){return e=+e,t=t>>>0,n||bt(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2};te.prototype.writeUint32LE=te.prototype.writeUInt32LE=function(e,t,n){return e=+e,t=t>>>0,n||bt(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4};te.prototype.writeUint32BE=te.prototype.writeUInt32BE=function(e,t,n){return e=+e,t=t>>>0,n||bt(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function xh(r,e,t,n,i){wh(e,n,i,r,t,7);let f=Number(e&BigInt(4294967295));r[t++]=f,f=f>>8,r[t++]=f,f=f>>8,r[t++]=f,f=f>>8,r[t++]=f;let a=Number(e>>BigInt(32)&BigInt(4294967295));return r[t++]=a,a=a>>8,r[t++]=a,a=a>>8,r[t++]=a,a=a>>8,r[t++]=a,t}function bh(r,e,t,n,i){wh(e,n,i,r,t,7);let f=Number(e&BigInt(4294967295));r[t+7]=f,f=f>>8,r[t+6]=f,f=f>>8,r[t+5]=f,f=f>>8,r[t+4]=f;let a=Number(e>>BigInt(32)&BigInt(4294967295));return r[t+3]=a,a=a>>8,r[t+2]=a,a=a>>8,r[t+1]=a,a=a>>8,r[t]=a,t+8}te.prototype.writeBigUInt64LE=Tn(function(e,t=0){return xh(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))});te.prototype.writeBigUInt64BE=Tn(function(e,t=0){return bh(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))});te.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t=t>>>0,!i){let d=Math.pow(2,8*n-1);bt(this,e,t,n,d-1,-d)}let f=0,a=1,s=0;for(this[t]=e&255;++f<n&&(a*=256);)e<0&&s===0&&this[t+f-1]!==0&&(s=1),this[t+f]=(e/a>>0)-s&255;return t+n};te.prototype.writeIntBE=function(e,t,n,i){if(e=+e,t=t>>>0,!i){let d=Math.pow(2,8*n-1);bt(this,e,t,n,d-1,-d)}let f=n-1,a=1,s=0;for(this[t+f]=e&255;--f>=0&&(a*=256);)e<0&&s===0&&this[t+f+1]!==0&&(s=1),this[t+f]=(e/a>>0)-s&255;return t+n};te.prototype.writeInt8=function(e,t,n){return e=+e,t=t>>>0,n||bt(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1};te.prototype.writeInt16LE=function(e,t,n){return e=+e,t=t>>>0,n||bt(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2};te.prototype.writeInt16BE=function(e,t,n){return e=+e,t=t>>>0,n||bt(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2};te.prototype.writeInt32LE=function(e,t,n){return e=+e,t=t>>>0,n||bt(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4};te.prototype.writeInt32BE=function(e,t,n){return e=+e,t=t>>>0,n||bt(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};te.prototype.writeBigInt64LE=Tn(function(e,t=0){return xh(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});te.prototype.writeBigInt64BE=Tn(function(e,t=0){return bh(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function yh(r,e,t,n,i,f){if(t+n>r.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function gh(r,e,t,n,i){return e=+e,t=t>>>0,i||yh(r,e,t,4,34028234663852886e22,-34028234663852886e22),Ni.write(r,e,t,n,23,4),t+4}te.prototype.writeFloatLE=function(e,t,n){return gh(this,e,t,!0,n)};te.prototype.writeFloatBE=function(e,t,n){return gh(this,e,t,!1,n)};function mh(r,e,t,n,i){return e=+e,t=t>>>0,i||yh(r,e,t,8,17976931348623157e292,-17976931348623157e292),Ni.write(r,e,t,n,52,8),t+8}te.prototype.writeDoubleLE=function(e,t,n){return mh(this,e,t,!0,n)};te.prototype.writeDoubleBE=function(e,t,n){return mh(this,e,t,!1,n)};te.prototype.copy=function(e,t,n,i){if(!te.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<n&&(i=n),i===n||e.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-n&&(i=e.length-t+n);let f=i-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,n,i):Uint8Array.prototype.set.call(e,this.subarray(n,i),t),f};te.prototype.fill=function(e,t,n,i){if(typeof e=="string"){if(typeof t=="string"?(i=t,t=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!te.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(e.length===1){let a=e.charCodeAt(0);(i==="utf8"&&a<128||i==="latin1")&&(e=a)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t=t>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);let f;if(typeof e=="number")for(f=t;f<n;++f)this[f]=e;else{let a=te.isBuffer(e)?e:te.from(e,i),s=a.length;if(s===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(f=0;f<n-t;++f)this[f+t]=a[f%s]}return this};var ki={};function qs(r,e,t){ki[r]=class extends t{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${r}]`,this.stack,delete this.name}get code(){return r}set code(i){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:i,writable:!0})}toString(){return`${this.name} [${r}]: ${this.message}`}}}qs("ERR_BUFFER_OUT_OF_BOUNDS",function(r){return r?`${r} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError);qs("ERR_INVALID_ARG_TYPE",function(r,e){return`The "${r}" argument must be of type number. Received type ${typeof e}`},TypeError);qs("ERR_OUT_OF_RANGE",function(r,e,t){let n=`The value of "${r}" is out of range.`,i=t;return Number.isInteger(t)&&Math.abs(t)>2**32?i=uh(String(t)):typeof t=="bigint"&&(i=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(i=uh(i)),i+="n"),n+=` It must be ${e}. Received ${i}`,n},RangeError);function uh(r){let e="",t=r.length,n=r[0]==="-"?1:0;for(;t>=n+4;t-=3)e=`_${r.slice(t-3,t)}${e}`;return`${r.slice(0,t)}${e}`}function Y5(r,e,t){Ui(e,"offset"),(r[e]===void 0||r[e+t]===void 0)&&_0(e,r.length-(t+1))}function wh(r,e,t,n,i,f){if(r>t||r<e){let a=typeof e=="bigint"?"n":"",s;throw f>3?e===0||e===BigInt(0)?s=`>= 0${a} and < 2${a} ** ${(f+1)*8}${a}`:s=`>= -(2${a} ** ${(f+1)*8-1}${a}) and < 2 ** ${(f+1)*8-1}${a}`:s=`>= ${e}${a} and <= ${t}${a}`,new ki.ERR_OUT_OF_RANGE("value",s,r)}Y5(n,i,f)}function Ui(r,e){if(typeof r!="number")throw new ki.ERR_INVALID_ARG_TYPE(e,"number",r)}function _0(r,e,t){throw Math.floor(r)!==r?(Ui(r,t),new ki.ERR_OUT_OF_RANGE(t||"offset","an integer",r)):e<0?new ki.ERR_BUFFER_OUT_OF_BOUNDS:new ki.ERR_OUT_OF_RANGE(t||"offset",`>= ${t?1:0} and <= ${e}`,r)}var V5=/[^+/0-9A-Za-z-_]/g;function X5(r){if(r=r.split("=")[0],r=r.trim().replace(V5,""),r.length<2)return"";for(;r.length%4!==0;)r=r+"=";return r}function Ss(r,e){e=e||1/0;let t,n=r.length,i=null,f=[];for(let a=0;a<n;++a){if(t=r.charCodeAt(a),t>55295&&t<57344){if(!i){if(t>56319){(e-=3)>-1&&f.push(239,191,189);continue}else if(a+1===n){(e-=3)>-1&&f.push(239,191,189);continue}i=t;continue}if(t<56320){(e-=3)>-1&&f.push(239,191,189),i=t;continue}t=(i-55296<<10|t-56320)+65536}else i&&(e-=3)>-1&&f.push(239,191,189);if(i=null,t<128){if((e-=1)<0)break;f.push(t)}else if(t<2048){if((e-=2)<0)break;f.push(t>>6|192,t&63|128)}else if(t<65536){if((e-=3)<0)break;f.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((e-=4)<0)break;f.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return f}function Z5(r){let e=[];for(let t=0;t<r.length;++t)e.push(r.charCodeAt(t)&255);return e}function Q5(r,e){let t,n,i,f=[];for(let a=0;a<r.length&&!((e-=2)<0);++a)t=r.charCodeAt(a),n=t>>8,i=t%256,f.push(i),f.push(n);return f}function _h(r){return ws.toByteArray(X5(r))}function If(r,e,t,n){let i;for(i=0;i<n&&!(i+t>=e.length||i>=r.length);++i)e[i+t]=r[i];return i}function an(r,e){return r instanceof e||r!=null&&r.constructor!=null&&r.constructor.name!=null&&r.constructor.name===e.name}function Bs(r){return r!==r}var ey=function(){let r="0123456789abcdef",e=new Array(256);for(let t=0;t<16;++t){let n=t*16;for(let i=0;i<16;++i)e[n+i]=r[t]+r[i]}return e}();function Tn(r){return typeof BigInt>"u"?ry:r}function ry(){throw new Error("BigInt not supported")}});var jh=R(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});var tB=new Uint8Array(16),Rh=new Uint8Array(32);Rh[0]=9;function Me(r){var e,t=new Float64Array(16);if(r)for(e=0;e<r.length;e++)t[e]=r[e];return t}var Rs=Me(),Li=Me([1]),fy=Me([56129,1]),ay=Me([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),oy=Me([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),Mh=Me([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),qh=Me([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),sy=Me([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function Bh(r,e,t,n){r[e]=t>>24&255,r[e+1]=t>>16&255,r[e+2]=t>>8&255,r[e+3]=t&255,r[e+4]=n>>24&255,r[e+5]=n>>16&255,r[e+6]=n>>8&255,r[e+7]=n&255}function cy(r,e,t,n,i){var f,a=0;for(f=0;f<i;f++)a|=r[e+f]^t[n+f];return(1&a-1>>>8)-1}function Th(r,e,t,n){return cy(r,e,t,n,32)}function kn(r,e){var t;for(t=0;t<16;t++)r[t]=e[t]|0}function Ps(r){var e,t,n=1;for(e=0;e<16;e++)t=r[e]+n+65535,n=Math.floor(t/65536),r[e]=t-n*65536;r[0]+=n-1+37*(n-1)}function ji(r,e,t){for(var n,i=~(t-1),f=0;f<16;f++)n=i&(r[f]^e[f]),r[f]^=n,e[f]^=n}function Di(r,e){var t,n,i,f=Me(),a=Me();for(t=0;t<16;t++)a[t]=e[t];for(Ps(a),Ps(a),Ps(a),n=0;n<2;n++){for(f[0]=a[0]-65517,t=1;t<15;t++)f[t]=a[t]-65535-(f[t-1]>>16&1),f[t-1]&=65535;f[15]=a[15]-32767-(f[14]>>16&1),i=f[15]>>16&1,f[14]&=65535,ji(a,f,1-i)}for(t=0;t<16;t++)r[2*t]=a[t]&255,r[2*t+1]=a[t]>>8}function Ch(r,e){var t=new Uint8Array(32),n=new Uint8Array(32);return Di(t,r),Di(n,e),Th(t,0,n,0)}function kh(r){var e=new Uint8Array(32);return Di(e,r),e[0]&1}function Ns(r,e){var t;for(t=0;t<16;t++)r[t]=e[2*t]+(e[2*t+1]<<8);r[15]&=32767}function Jt(r,e,t){for(var n=0;n<16;n++)r[n]=e[n]+t[n]}function Gt(r,e,t){for(var n=0;n<16;n++)r[n]=e[n]-t[n]}function nr(r,e,t){var n,i,f=0,a=0,s=0,d=0,u=0,v=0,p=0,y=0,_=0,q=0,T=0,N=0,B=0,O=0,F=0,L=0,J=0,K=0,ee=0,W=0,j=0,m=0,o=0,c=0,x=0,b=0,w=0,P=0,k=0,I=0,h=0,A=t[0],$=t[1],z=t[2],ie=t[3],V=t[4],pe=t[5],he=t[6],S=t[7],Y=t[8],X=t[9],ae=t[10],ne=t[11],ue=t[12],me=t[13],le=t[14],Ee=t[15];n=e[0],f+=n*A,a+=n*$,s+=n*z,d+=n*ie,u+=n*V,v+=n*pe,p+=n*he,y+=n*S,_+=n*Y,q+=n*X,T+=n*ae,N+=n*ne,B+=n*ue,O+=n*me,F+=n*le,L+=n*Ee,n=e[1],a+=n*A,s+=n*$,d+=n*z,u+=n*ie,v+=n*V,p+=n*pe,y+=n*he,_+=n*S,q+=n*Y,T+=n*X,N+=n*ae,B+=n*ne,O+=n*ue,F+=n*me,L+=n*le,J+=n*Ee,n=e[2],s+=n*A,d+=n*$,u+=n*z,v+=n*ie,p+=n*V,y+=n*pe,_+=n*he,q+=n*S,T+=n*Y,N+=n*X,B+=n*ae,O+=n*ne,F+=n*ue,L+=n*me,J+=n*le,K+=n*Ee,n=e[3],d+=n*A,u+=n*$,v+=n*z,p+=n*ie,y+=n*V,_+=n*pe,q+=n*he,T+=n*S,N+=n*Y,B+=n*X,O+=n*ae,F+=n*ne,L+=n*ue,J+=n*me,K+=n*le,ee+=n*Ee,n=e[4],u+=n*A,v+=n*$,p+=n*z,y+=n*ie,_+=n*V,q+=n*pe,T+=n*he,N+=n*S,B+=n*Y,O+=n*X,F+=n*ae,L+=n*ne,J+=n*ue,K+=n*me,ee+=n*le,W+=n*Ee,n=e[5],v+=n*A,p+=n*$,y+=n*z,_+=n*ie,q+=n*V,T+=n*pe,N+=n*he,B+=n*S,O+=n*Y,F+=n*X,L+=n*ae,J+=n*ne,K+=n*ue,ee+=n*me,W+=n*le,j+=n*Ee,n=e[6],p+=n*A,y+=n*$,_+=n*z,q+=n*ie,T+=n*V,N+=n*pe,B+=n*he,O+=n*S,F+=n*Y,L+=n*X,J+=n*ae,K+=n*ne,ee+=n*ue,W+=n*me,j+=n*le,m+=n*Ee,n=e[7],y+=n*A,_+=n*$,q+=n*z,T+=n*ie,N+=n*V,B+=n*pe,O+=n*he,F+=n*S,L+=n*Y,J+=n*X,K+=n*ae,ee+=n*ne,W+=n*ue,j+=n*me,m+=n*le,o+=n*Ee,n=e[8],_+=n*A,q+=n*$,T+=n*z,N+=n*ie,B+=n*V,O+=n*pe,F+=n*he,L+=n*S,J+=n*Y,K+=n*X,ee+=n*ae,W+=n*ne,j+=n*ue,m+=n*me,o+=n*le,c+=n*Ee,n=e[9],q+=n*A,T+=n*$,N+=n*z,B+=n*ie,O+=n*V,F+=n*pe,L+=n*he,J+=n*S,K+=n*Y,ee+=n*X,W+=n*ae,j+=n*ne,m+=n*ue,o+=n*me,c+=n*le,x+=n*Ee,n=e[10],T+=n*A,N+=n*$,B+=n*z,O+=n*ie,F+=n*V,L+=n*pe,J+=n*he,K+=n*S,ee+=n*Y,W+=n*X,j+=n*ae,m+=n*ne,o+=n*ue,c+=n*me,x+=n*le,b+=n*Ee,n=e[11],N+=n*A,B+=n*$,O+=n*z,F+=n*ie,L+=n*V,J+=n*pe,K+=n*he,ee+=n*S,W+=n*Y,j+=n*X,m+=n*ae,o+=n*ne,c+=n*ue,x+=n*me,b+=n*le,w+=n*Ee,n=e[12],B+=n*A,O+=n*$,F+=n*z,L+=n*ie,J+=n*V,K+=n*pe,ee+=n*he,W+=n*S,j+=n*Y,m+=n*X,o+=n*ae,c+=n*ne,x+=n*ue,b+=n*me,w+=n*le,P+=n*Ee,n=e[13],O+=n*A,F+=n*$,L+=n*z,J+=n*ie,K+=n*V,ee+=n*pe,W+=n*he,j+=n*S,m+=n*Y,o+=n*X,c+=n*ae,x+=n*ne,b+=n*ue,w+=n*me,P+=n*le,k+=n*Ee,n=e[14],F+=n*A,L+=n*$,J+=n*z,K+=n*ie,ee+=n*V,W+=n*pe,j+=n*he,m+=n*S,o+=n*Y,c+=n*X,x+=n*ae,b+=n*ne,w+=n*ue,P+=n*me,k+=n*le,I+=n*Ee,n=e[15],L+=n*A,J+=n*$,K+=n*z,ee+=n*ie,W+=n*V,j+=n*pe,m+=n*he,o+=n*S,c+=n*Y,x+=n*X,b+=n*ae,w+=n*ne,P+=n*ue,k+=n*me,I+=n*le,h+=n*Ee,f+=38*J,a+=38*K,s+=38*ee,d+=38*W,u+=38*j,v+=38*m,p+=38*o,y+=38*c,_+=38*x,q+=38*b,T+=38*w,N+=38*P,B+=38*k,O+=38*I,F+=38*h,i=1,n=f+i+65535,i=Math.floor(n/65536),f=n-i*65536,n=a+i+65535,i=Math.floor(n/65536),a=n-i*65536,n=s+i+65535,i=Math.floor(n/65536),s=n-i*65536,n=d+i+65535,i=Math.floor(n/65536),d=n-i*65536,n=u+i+65535,i=Math.floor(n/65536),u=n-i*65536,n=v+i+65535,i=Math.floor(n/65536),v=n-i*65536,n=p+i+65535,i=Math.floor(n/65536),p=n-i*65536,n=y+i+65535,i=Math.floor(n/65536),y=n-i*65536,n=_+i+65535,i=Math.floor(n/65536),_=n-i*65536,n=q+i+65535,i=Math.floor(n/65536),q=n-i*65536,n=T+i+65535,i=Math.floor(n/65536),T=n-i*65536,n=N+i+65535,i=Math.floor(n/65536),N=n-i*65536,n=B+i+65535,i=Math.floor(n/65536),B=n-i*65536,n=O+i+65535,i=Math.floor(n/65536),O=n-i*65536,n=F+i+65535,i=Math.floor(n/65536),F=n-i*65536,n=L+i+65535,i=Math.floor(n/65536),L=n-i*65536,f+=i-1+37*(i-1),i=1,n=f+i+65535,i=Math.floor(n/65536),f=n-i*65536,n=a+i+65535,i=Math.floor(n/65536),a=n-i*65536,n=s+i+65535,i=Math.floor(n/65536),s=n-i*65536,n=d+i+65535,i=Math.floor(n/65536),d=n-i*65536,n=u+i+65535,i=Math.floor(n/65536),u=n-i*65536,n=v+i+65535,i=Math.floor(n/65536),v=n-i*65536,n=p+i+65535,i=Math.floor(n/65536),p=n-i*65536,n=y+i+65535,i=Math.floor(n/65536),y=n-i*65536,n=_+i+65535,i=Math.floor(n/65536),_=n-i*65536,n=q+i+65535,i=Math.floor(n/65536),q=n-i*65536,n=T+i+65535,i=Math.floor(n/65536),T=n-i*65536,n=N+i+65535,i=Math.floor(n/65536),N=n-i*65536,n=B+i+65535,i=Math.floor(n/65536),B=n-i*65536,n=O+i+65535,i=Math.floor(n/65536),O=n-i*65536,n=F+i+65535,i=Math.floor(n/65536),F=n-i*65536,n=L+i+65535,i=Math.floor(n/65536),L=n-i*65536,f+=i-1+37*(i-1),r[0]=f,r[1]=a,r[2]=s,r[3]=d,r[4]=u,r[5]=v,r[6]=p,r[7]=y,r[8]=_,r[9]=q,r[10]=T,r[11]=N,r[12]=B,r[13]=O,r[14]=F,r[15]=L}function Wt(r,e){nr(r,e,e)}function Us(r,e){var t=Me(),n;for(n=0;n<16;n++)t[n]=e[n];for(n=253;n>=0;n--)Wt(t,t),n!==2&&n!==4&&nr(t,t,e);for(n=0;n<16;n++)r[n]=t[n]}function uy(r,e){var t=Me(),n;for(n=0;n<16;n++)t[n]=e[n];for(n=250;n>=0;n--)Wt(t,t),n!==1&&nr(t,t,e);for(n=0;n<16;n++)r[n]=t[n]}function Nh(r,e,t){var n=new Uint8Array(32),i=new Float64Array(80),f,a,s=Me(),d=Me(),u=Me(),v=Me(),p=Me(),y=Me();for(a=0;a<31;a++)n[a]=e[a];for(n[31]=e[31]&127|64,n[0]&=248,Ns(i,t),a=0;a<16;a++)d[a]=i[a],v[a]=s[a]=u[a]=0;for(s[0]=v[0]=1,a=254;a>=0;--a)f=n[a>>>3]>>>(a&7)&1,ji(s,d,f),ji(u,v,f),Jt(p,s,u),Gt(s,s,u),Jt(u,d,v),Gt(d,d,v),Wt(v,p),Wt(y,s),nr(s,u,s),nr(u,d,p),Jt(p,s,u),Gt(s,s,u),Wt(d,s),Gt(u,v,y),nr(s,u,fy),Jt(s,s,v),nr(u,u,s),nr(s,v,y),nr(v,d,i),Wt(d,p),ji(s,d,f),ji(u,v,f);for(a=0;a<16;a++)i[a+16]=s[a],i[a+32]=u[a],i[a+48]=d[a],i[a+64]=v[a];var _=i.subarray(32),q=i.subarray(16);return Us(_,_),nr(q,q,_),Di(r,q),0}function dy(r,e){return Nh(r,e,Rh)}var Ih=[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 Ph(r,e,t,n){for(var i=new Int32Array(16),f=new Int32Array(16),a,s,d,u,v,p,y,_,q,T,N,B,O,F,L,J,K,ee,W,j,m,o,c,x,b,w,P=r[0],k=r[1],I=r[2],h=r[3],A=r[4],$=r[5],z=r[6],ie=r[7],V=e[0],pe=e[1],he=e[2],S=e[3],Y=e[4],X=e[5],ae=e[6],ne=e[7],ue=0;n>=128;){for(W=0;W<16;W++)j=8*W+ue,i[W]=t[j+0]<<24|t[j+1]<<16|t[j+2]<<8|t[j+3],f[W]=t[j+4]<<24|t[j+5]<<16|t[j+6]<<8|t[j+7];for(W=0;W<80;W++)if(a=P,s=k,d=I,u=h,v=A,p=$,y=z,_=ie,q=V,T=pe,N=he,B=S,O=Y,F=X,L=ae,J=ne,m=ie,o=ne,c=o&65535,x=o>>>16,b=m&65535,w=m>>>16,m=(A>>>14|Y<<32-14)^(A>>>18|Y<<32-18)^(Y>>>41-32|A<<32-(41-32)),o=(Y>>>14|A<<32-14)^(Y>>>18|A<<32-18)^(A>>>41-32|Y<<32-(41-32)),c+=o&65535,x+=o>>>16,b+=m&65535,w+=m>>>16,m=A&$^~A&z,o=Y&X^~Y&ae,c+=o&65535,x+=o>>>16,b+=m&65535,w+=m>>>16,m=Ih[W*2],o=Ih[W*2+1],c+=o&65535,x+=o>>>16,b+=m&65535,w+=m>>>16,m=i[W%16],o=f[W%16],c+=o&65535,x+=o>>>16,b+=m&65535,w+=m>>>16,x+=c>>>16,b+=x>>>16,w+=b>>>16,K=b&65535|w<<16,ee=c&65535|x<<16,m=K,o=ee,c=o&65535,x=o>>>16,b=m&65535,w=m>>>16,m=(P>>>28|V<<32-28)^(V>>>34-32|P<<32-(34-32))^(V>>>39-32|P<<32-(39-32)),o=(V>>>28|P<<32-28)^(P>>>34-32|V<<32-(34-32))^(P>>>39-32|V<<32-(39-32)),c+=o&65535,x+=o>>>16,b+=m&65535,w+=m>>>16,m=P&k^P&I^k&I,o=V&pe^V&he^pe&he,c+=o&65535,x+=o>>>16,b+=m&65535,w+=m>>>16,x+=c>>>16,b+=x>>>16,w+=b>>>16,_=b&65535|w<<16,J=c&65535|x<<16,m=u,o=B,c=o&65535,x=o>>>16,b=m&65535,w=m>>>16,m=K,o=ee,c+=o&65535,x+=o>>>16,b+=m&65535,w+=m>>>16,x+=c>>>16,b+=x>>>16,w+=b>>>16,u=b&65535|w<<16,B=c&65535|x<<16,k=a,I=s,h=d,A=u,$=v,z=p,ie=y,P=_,pe=q,he=T,S=N,Y=B,X=O,ae=F,ne=L,V=J,W%16===15)for(j=0;j<16;j++)m=i[j],o=f[j],c=o&65535,x=o>>>16,b=m&65535,w=m>>>16,m=i[(j+9)%16],o=f[(j+9)%16],c+=o&65535,x+=o>>>16,b+=m&65535,w+=m>>>16,K=i[(j+1)%16],ee=f[(j+1)%16],m=(K>>>1|ee<<32-1)^(K>>>8|ee<<32-8)^K>>>7,o=(ee>>>1|K<<32-1)^(ee>>>8|K<<32-8)^(ee>>>7|K<<32-7),c+=o&65535,x+=o>>>16,b+=m&65535,w+=m>>>16,K=i[(j+14)%16],ee=f[(j+14)%16],m=(K>>>19|ee<<32-19)^(ee>>>61-32|K<<32-(61-32))^K>>>6,o=(ee>>>19|K<<32-19)^(K>>>61-32|ee<<32-(61-32))^(ee>>>6|K<<32-6),c+=o&65535,x+=o>>>16,b+=m&65535,w+=m>>>16,x+=c>>>16,b+=x>>>16,w+=b>>>16,i[j]=b&65535|w<<16,f[j]=c&65535|x<<16;m=P,o=V,c=o&65535,x=o>>>16,b=m&65535,w=m>>>16,m=r[0],o=e[0],c+=o&65535,x+=o>>>16,b+=m&65535,w+=m>>>16,x+=c>>>16,b+=x>>>16,w+=b>>>16,r[0]=P=b&65535|w<<16,e[0]=V=c&65535|x<<16,m=k,o=pe,c=o&65535,x=o>>>16,b=m&65535,w=m>>>16,m=r[1],o=e[1],c+=o&65535,x+=o>>>16,b+=m&65535,w+=m>>>16,x+=c>>>16,b+=x>>>16,w+=b>>>16,r[1]=k=b&65535|w<<16,e[1]=pe=c&65535|x<<16,m=I,o=he,c=o&65535,x=o>>>16,b=m&65535,w=m>>>16,m=r[2],o=e[2],c+=o&65535,x+=o>>>16,b+=m&65535,w+=m>>>16,x+=c>>>16,b+=x>>>16,w+=b>>>16,r[2]=I=b&65535|w<<16,e[2]=he=c&65535|x<<16,m=h,o=S,c=o&65535,x=o>>>16,b=m&65535,w=m>>>16,m=r[3],o=e[3],c+=o&65535,x+=o>>>16,b+=m&65535,w+=m>>>16,x+=c>>>16,b+=x>>>16,w+=b>>>16,r[3]=h=b&65535|w<<16,e[3]=S=c&65535|x<<16,m=A,o=Y,c=o&65535,x=o>>>16,b=m&65535,w=m>>>16,m=r[4],o=e[4],c+=o&65535,x+=o>>>16,b+=m&65535,w+=m>>>16,x+=c>>>16,b+=x>>>16,w+=b>>>16,r[4]=A=b&65535|w<<16,e[4]=Y=c&65535|x<<16,m=$,o=X,c=o&65535,x=o>>>16,b=m&65535,w=m>>>16,m=r[5],o=e[5],c+=o&65535,x+=o>>>16,b+=m&65535,w+=m>>>16,x+=c>>>16,b+=x>>>16,w+=b>>>16,r[5]=$=b&65535|w<<16,e[5]=X=c&65535|x<<16,m=z,o=ae,c=o&65535,x=o>>>16,b=m&65535,w=m>>>16,m=r[6],o=e[6],c+=o&65535,x+=o>>>16,b+=m&65535,w+=m>>>16,x+=c>>>16,b+=x>>>16,w+=b>>>16,r[6]=z=b&65535|w<<16,e[6]=ae=c&65535|x<<16,m=ie,o=ne,c=o&65535,x=o>>>16,b=m&65535,w=m>>>16,m=r[7],o=e[7],c+=o&65535,x+=o>>>16,b+=m&65535,w+=m>>>16,x+=c>>>16,b+=x>>>16,w+=b>>>16,r[7]=ie=b&65535|w<<16,e[7]=ne=c&65535|x<<16,ue+=128,n-=128}return n}function S0(r,e,t){var n=new Int32Array(8),i=new Int32Array(8),f=new Uint8Array(256),a,s=t;for(n[0]=1779033703,n[1]=3144134277,n[2]=1013904242,n[3]=2773480762,n[4]=1359893119,n[5]=2600822924,n[6]=528734635,n[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,Ph(n,i,e,t),t%=128,a=0;a<t;a++)f[a]=e[s-t+a];for(f[t]=128,t=256-128*(t<112?1:0),f[t-9]=0,Bh(f,t-8,s/536870912|0,s<<3),Ph(n,i,f,t),a=0;a<8;a++)Bh(r,8*a,n[a],i[a]);return 0}function Ts(r,e){var t=Me(),n=Me(),i=Me(),f=Me(),a=Me(),s=Me(),d=Me(),u=Me(),v=Me();Gt(t,r[1],r[0]),Gt(v,e[1],e[0]),nr(t,t,v),Jt(n,r[0],r[1]),Jt(v,e[0],e[1]),nr(n,n,v),nr(i,r[3],e[3]),nr(i,i,oy),nr(f,r[2],e[2]),Jt(f,f,f),Gt(a,n,t),Gt(s,f,i),Jt(d,f,i),Jt(u,n,t),nr(r[0],a,s),nr(r[1],u,d),nr(r[2],d,s),nr(r[3],a,u)}function Oh(r,e,t){var n;for(n=0;n<4;n++)ji(r[n],e[n],t)}function Tf(r,e){var t=Me(),n=Me(),i=Me();Us(i,e[2]),nr(t,e[0],i),nr(n,e[1],i),Di(r,n),r[31]^=kh(t)<<7}function Uh(r,e,t){var n,i;for(kn(r[0],Rs),kn(r[1],Li),kn(r[2],Li),kn(r[3],Rs),i=255;i>=0;--i)n=t[i/8|0]>>(i&7)&1,Oh(r,e,n),Ts(e,r),Ts(r,r),Oh(r,e,n)}function kf(r,e){var t=[Me(),Me(),Me(),Me()];kn(t[0],Mh),kn(t[1],qh),kn(t[2],Li),nr(t[3],Mh,qh),Uh(r,t,e)}var Os=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 Fs(r,e){var t,n,i,f;for(n=63;n>=32;--n){for(t=0,i=n-32,f=n-12;i<f;++i)e[i]+=t-16*e[n]*Os[i-(n-32)],t=e[i]+128>>8,e[i]-=t*256;e[i]+=t,e[n]=0}for(t=0,i=0;i<32;i++)e[i]+=t-(e[31]>>4)*Os[i],t=e[i]>>8,e[i]&=255;for(i=0;i<32;i++)e[i]-=t*Os[i];for(n=0;n<32;n++)e[n+1]+=e[n]>>8,r[n]=e[n]&255}function E0(r){var e=new Float64Array(64),t;for(t=0;t<64;t++)e[t]=r[t];for(t=0;t<64;t++)r[t]=0;Fs(r,e)}function hy(r,e,t,n){var i=new Uint8Array(64),f=new Uint8Array(64),a,s,d=new Float64Array(64),u=[Me(),Me(),Me(),Me()];for(a=0;a<t;a++)r[64+a]=e[a];for(a=0;a<32;a++)r[32+a]=n[a];for(S0(f,r.subarray(32),t+32),E0(f),kf(u,f),Tf(r,u),a=0;a<32;a++)r[a+32]=n[32+a];for(S0(i,r,t+64),E0(i),a=0;a<64;a++)d[a]=0;for(a=0;a<32;a++)d[a]=f[a];for(a=0;a<32;a++)for(s=0;s<32;s++)d[a+s]+=i[a]*n[s];return Fs(r.subarray(32),d),t+64}function ly(r,e,t,n,i){var f=new Uint8Array(64),a=new Uint8Array(64),s,d,u=new Float64Array(64),v=[Me(),Me(),Me(),Me()];for(r[0]=254,s=1;s<32;s++)r[s]=255;for(s=0;s<32;s++)r[32+s]=n[s];for(s=0;s<t;s++)r[64+s]=e[s];for(s=0;s<64;s++)r[t+64+s]=i[s];for(S0(a,r,t+128),E0(a),kf(v,a),Tf(r,v),s=0;s<32;s++)r[s+32]=n[32+s];for(S0(f,r,t+64),E0(f),s=0;s<64;s++)r[t+64+s]=0;for(s=0;s<64;s++)u[s]=0;for(s=0;s<32;s++)u[s]=a[s];for(s=0;s<32;s++)for(d=0;d<32;d++)u[s+d]+=f[s]*n[d];return Fs(r.subarray(32,t+64),u),t+64}function ks(r,e,t,n,i){for(var f=new Uint8Array(64),a=[Me(),Me(),Me(),Me()],s=0;s<32;s++)f[s]=n[s];f[0]&=248,f[31]&=127,f[31]|=64,kf(a,f),Tf(f.subarray(32),a);var d=f[63]&128,u;return i?u=ly(r,e,t,f,i):u=hy(r,e,t,f),r[63]|=d,u}function vy(r,e){var t=Me(),n=Me(),i=Me(),f=Me(),a=Me(),s=Me(),d=Me();return kn(r[2],Li),Ns(r[1],e),Wt(i,r[1]),nr(f,i,ay),Gt(i,i,r[2]),Jt(f,r[2],f),Wt(a,f),Wt(s,a),nr(d,s,a),nr(t,d,i),nr(t,t,f),uy(t,t),nr(t,t,i),nr(t,t,f),nr(t,t,f),nr(r[0],t,f),Wt(n,r[0]),nr(n,n,f),Ch(n,i)&&nr(r[0],r[0],sy),Wt(n,r[0]),nr(n,n,f),Ch(n,i)?-1:(kh(r[0])===e[31]>>7&&Gt(r[0],Rs,r[0]),nr(r[3],r[0],r[1]),0)}function py(r,e,t,n){var i,f,a=new Uint8Array(32),s=new Uint8Array(64),d=[Me(),Me(),Me(),Me()],u=[Me(),Me(),Me(),Me()];if(f=-1,t<64||vy(u,n))return-1;for(i=0;i<t;i++)r[i]=e[i];for(i=0;i<32;i++)r[i+32]=n[i];if(S0(s,r,t),E0(s),Uh(d,u,s),kf(u,e.subarray(32)),Ts(d,u),Tf(a,d),t-=64,Th(e,0,a,0)){for(i=0;i<t;i++)r[i]=0;return-1}for(i=0;i<t;i++)r[i]=e[i+64];return f=t,f}function xy(r){var e=new Uint8Array(32),t=Me(),n=Me(),i=Me();return Ns(t,r),Jt(n,t,Li),Gt(i,t,Li),Us(n,n),nr(n,n,i),Di(e,n),e}function Fh(r,e,t,n){var i=xy(n);return i[31]|=e[63]&128,e[63]&=127,py(r,e,t,i)}function Nn(...r){var e,t;for(t=0;t<arguments.length;t++)if((e=Object.prototype.toString.call(arguments[t]))!=="[object Uint8Array]")throw new TypeError("unexpected type "+e+", use Uint8Array")}function by(r,e){if(Nn(e,r),e.length!==32)throw new Error("wrong public key length");if(r.length!==32)throw new Error("wrong secret key length");var t=new Uint8Array(32);return Nh(t,r,e),t}mn.sharedKey=by;function yy(r,e,t){if(Nn(e,r),r.length!==32)throw new Error("wrong secret key length");if(t){if(Nn(t),t.length!==64)throw new Error("wrong random data length");var n=new Uint8Array(128+e.length);return ks(n,e,e.length,r,t),new Uint8Array(n.subarray(0,64+e.length))}else{var i=new Uint8Array(64+e.length);return ks(i,e,e.length,r),i}}mn.signMessage=yy;function gy(r,e){if(Nn(e,r),r.length!==32)throw new Error("wrong public key length");var t=new Uint8Array(e.length),n=Fh(t,e,e.length,r);if(n<0)return null;for(var i=new Uint8Array(n),f=0;f<i.length;f++)i[f]=t[f];return i}mn.openMessage=gy;function my(r,e,t){if(Nn(r,e),r.length!==32)throw new Error("wrong secret key length");if(t&&(Nn(t),t.length!==64))throw new Error("wrong random data length");var n=new Uint8Array((t?128:64)+e.length);ks(n,e,e.length,r,t);for(var i=new Uint8Array(64),f=0;f<i.length;f++)i[f]=n[f];return i}mn.sign=my;function wy(r,e,t){if(Nn(e,t,r),t.length!==64)throw new Error("wrong signature length");if(r.length!==32)throw new Error("wrong public key length");var n=new Uint8Array(64+e.length),i=new Uint8Array(64+e.length),f;for(f=0;f<64;f++)n[f]=t[f];for(f=0;f<e.length;f++)n[f+64]=e[f];return Fh(i,n,n.length,r)>=0}mn.verify=wy;function _y(r){if(Nn(r),r.length!==32)throw new Error("wrong seed length");for(var e=new Uint8Array(32),t=new Uint8Array(32),n=0;n<32;n++)e[n]=r[n];return dy(t,e),e[0]&=248,e[31]&=127,e[31]|=64,t[31]&=127,{public:t,private:e}}mn.generateKeyPair=_y;mn.default={}});var Nf=R(()=>{});var ir=R((Uf,Lh)=>{(function(r,e){typeof Uf=="object"?Lh.exports=Uf=e():typeof define=="function"&&define.amd?define([],e):r.CryptoJS=e()})(Uf,function(){var r=r||function(e,t){var n;if(typeof window<"u"&&window.crypto&&(n=window.crypto),typeof self<"u"&&self.crypto&&(n=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(n=globalThis.crypto),!n&&typeof window<"u"&&window.msCrypto&&(n=window.msCrypto),!n&&typeof window<"u"&&window.crypto&&(n=window.crypto),!n&&typeof w0=="function")try{n=Nf()}catch{}var i=function(){if(n){if(typeof n.getRandomValues=="function")try{return n.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof n.randomBytes=="function")try{return n.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},f=Object.create||function(){function B(){}return function(O){var F;return B.prototype=O,F=new B,B.prototype=null,F}}(),a={},s=a.lib={},d=s.Base=function(){return{extend:function(B){var O=f(this);return B&&O.mixIn(B),(!O.hasOwnProperty("init")||this.init===O.init)&&(O.init=function(){O.$super.init.apply(this,arguments)}),O.init.prototype=O,O.$super=this,O},create:function(){var B=this.extend();return B.init.apply(B,arguments),B},init:function(){},mixIn:function(B){for(var O in B)B.hasOwnProperty(O)&&(this[O]=B[O]);B.hasOwnProperty("toString")&&(this.toString=B.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),u=s.WordArray=d.extend({init:function(B,O){B=this.words=B||[],O!=t?this.sigBytes=O:this.sigBytes=B.length*4},toString:function(B){return(B||p).stringify(this)},concat:function(B){var O=this.words,F=B.words,L=this.sigBytes,J=B.sigBytes;if(this.clamp(),L%4)for(var K=0;K<J;K++){var ee=F[K>>>2]>>>24-K%4*8&255;O[L+K>>>2]|=ee<<24-(L+K)%4*8}else for(var W=0;W<J;W+=4)O[L+W>>>2]=F[W>>>2];return this.sigBytes+=J,this},clamp:function(){var B=this.words,O=this.sigBytes;B[O>>>2]&=4294967295<<32-O%4*8,B.length=e.ceil(O/4)},clone:function(){var B=d.clone.call(this);return B.words=this.words.slice(0),B},random:function(B){for(var O=[],F=0;F<B;F+=4)O.push(i());return new u.init(O,B)}}),v=a.enc={},p=v.Hex={stringify:function(B){for(var O=B.words,F=B.sigBytes,L=[],J=0;J<F;J++){var K=O[J>>>2]>>>24-J%4*8&255;L.push((K>>>4).toString(16)),L.push((K&15).toString(16))}return L.join("")},parse:function(B){for(var O=B.length,F=[],L=0;L<O;L+=2)F[L>>>3]|=parseInt(B.substr(L,2),16)<<24-L%8*4;return new u.init(F,O/2)}},y=v.Latin1={stringify:function(B){for(var O=B.words,F=B.sigBytes,L=[],J=0;J<F;J++){var K=O[J>>>2]>>>24-J%4*8&255;L.push(String.fromCharCode(K))}return L.join("")},parse:function(B){for(var O=B.length,F=[],L=0;L<O;L++)F[L>>>2]|=(B.charCodeAt(L)&255)<<24-L%4*8;return new u.init(F,O)}},_=v.Utf8={stringify:function(B){try{return decodeURIComponent(escape(y.stringify(B)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(B){return y.parse(unescape(encodeURIComponent(B)))}},q=s.BufferedBlockAlgorithm=d.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(B){typeof B=="string"&&(B=_.parse(B)),this._data.concat(B),this._nDataBytes+=B.sigBytes},_process:function(B){var O,F=this._data,L=F.words,J=F.sigBytes,K=this.blockSize,ee=K*4,W=J/ee;B?W=e.ceil(W):W=e.max((W|0)-