@smartledger/bsv 7.8.0 → 7.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,27 +1,27 @@
1
- var bsvStatusList=(()=>{var DE=Object.create;var z0=Object.defineProperty;var NE=Object.getOwnPropertyDescriptor;var PE=Object.getOwnPropertyNames;var LE=Object.getPrototypeOf,CE=Object.prototype.hasOwnProperty;var UE=(e,t,r)=>()=>{if(r)throw r[0];try{return e&&(t=e(e=0)),t}catch(i){throw r=[i],i}};var k=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var FE=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of PE(t))!CE.call(e,n)&&n!==r&&z0(e,n,{get:()=>t[n],enumerable:!(i=NE(t,n))||i.enumerable});return e};var Z0=(e,t,r)=>(r=e!=null?DE(LE(e)):{},FE(t||!e||!e.__esModule?z0(r,"default",{value:e,enumerable:!0}):r,e));var V0=k((kO,G0)=>{m();var et=G0.exports={},sr,ur;function Ku(){throw new Error("setTimeout has not been defined")}function Gu(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?sr=setTimeout:sr=Ku}catch{sr=Ku}try{typeof clearTimeout=="function"?ur=clearTimeout:ur=Gu}catch{ur=Gu}})();function H0(e){if(sr===setTimeout)return setTimeout(e,0);if((sr===Ku||!sr)&&setTimeout)return sr=setTimeout,setTimeout(e,0);try{return sr(e,0)}catch{try{return sr.call(null,e,0)}catch{return sr.call(this,e,0)}}}function jE(e){if(ur===clearTimeout)return clearTimeout(e);if((ur===Gu||!ur)&&clearTimeout)return ur=clearTimeout,clearTimeout(e);try{return ur(e)}catch{try{return ur.call(null,e)}catch{return ur.call(this,e)}}}var Mr=[],Sn=!1,ki,uf=-1;function zE(){!Sn||!ki||(Sn=!1,ki.length?Mr=ki.concat(Mr):uf=-1,Mr.length&&W0())}function W0(){if(!Sn){var e=H0(zE);Sn=!0;for(var t=Mr.length;t;){for(ki=Mr,Mr=[];++uf<t;)ki&&ki[uf].run();uf=-1,t=Mr.length}ki=null,Sn=!1,jE(e)}}et.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];Mr.push(new K0(e,t)),Mr.length===1&&!Sn&&H0(W0)};function K0(e,t){this.fun=e,this.array=t}K0.prototype.run=function(){this.fun.apply(null,this.array)};et.title="browser";et.browser=!0;et.env={};et.argv=[];et.version="";et.versions={};function Ar(){}et.on=Ar;et.addListener=Ar;et.once=Ar;et.off=Ar;et.removeListener=Ar;et.removeAllListeners=Ar;et.emit=Ar;et.prependListener=Ar;et.prependOnceListener=Ar;et.listeners=function(e){return[]};et.binding=function(e){throw new Error("process.binding is not supported")};et.cwd=function(){return"/"};et.chdir=function(e){throw new Error("process.chdir is not supported")};et.umask=function(){return 0}});var J0=k(lf=>{"use strict";m();lf.byteLength=HE;lf.toByteArray=KE;lf.fromByteArray=$E;var lr=[],Tt=[],ZE=typeof Uint8Array<"u"?Uint8Array:Array,Vu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Ti=0,$0=Vu.length;Ti<$0;++Ti)lr[Ti]=Vu[Ti],Tt[Vu.charCodeAt(Ti)]=Ti;var Ti,$0;Tt[45]=62;Tt[95]=63;function Y0(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var i=r===t?0:4-r%4;return[r,i]}function HE(e){var t=Y0(e),r=t[0],i=t[1];return(r+i)*3/4-i}function WE(e,t,r){return(t+r)*3/4-r}function KE(e){var t,r=Y0(e),i=r[0],n=r[1],a=new ZE(WE(e,i,n)),o=0,s=n>0?i-4:i,y;for(y=0;y<s;y+=4)t=Tt[e.charCodeAt(y)]<<18|Tt[e.charCodeAt(y+1)]<<12|Tt[e.charCodeAt(y+2)]<<6|Tt[e.charCodeAt(y+3)],a[o++]=t>>16&255,a[o++]=t>>8&255,a[o++]=t&255;return n===2&&(t=Tt[e.charCodeAt(y)]<<2|Tt[e.charCodeAt(y+1)]>>4,a[o++]=t&255),n===1&&(t=Tt[e.charCodeAt(y)]<<10|Tt[e.charCodeAt(y+1)]<<4|Tt[e.charCodeAt(y+2)]>>2,a[o++]=t>>8&255,a[o++]=t&255),a}function GE(e){return lr[e>>18&63]+lr[e>>12&63]+lr[e>>6&63]+lr[e&63]}function VE(e,t,r){for(var i,n=[],a=t;a<r;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(e[a+2]&255),n.push(GE(i));return n.join("")}function $E(e){for(var t,r=e.length,i=r%3,n=[],a=16383,o=0,s=r-i;o<s;o+=a)n.push(VE(e,o,o+a>s?s:o+a));return i===1?(t=e[r-1],n.push(lr[t>>2]+lr[t<<4&63]+"==")):i===2&&(t=(e[r-2]<<8)+e[r-1],n.push(lr[t>>10]+lr[t>>4&63]+lr[t<<2&63]+"=")),n.join("")}});var X0=k($u=>{m();$u.read=function(e,t,r,i,n){var a,o,s=n*8-i-1,y=(1<<s)-1,_=y>>1,x=-7,B=r?n-1:0,R=r?-1:1,T=e[t+B];for(B+=R,a=T&(1<<-x)-1,T>>=-x,x+=s;x>0;a=a*256+e[t+B],B+=R,x-=8);for(o=a&(1<<-x)-1,a>>=-x,x+=i;x>0;o=o*256+e[t+B],B+=R,x-=8);if(a===0)a=1-_;else{if(a===y)return o?NaN:(T?-1:1)*(1/0);o=o+Math.pow(2,i),a=a-_}return(T?-1:1)*o*Math.pow(2,a-i)};$u.write=function(e,t,r,i,n,a){var o,s,y,_=a*8-n-1,x=(1<<_)-1,B=x>>1,R=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,T=i?0:a-1,O=i?1:-1,D=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=x):(o=Math.floor(Math.log(t)/Math.LN2),t*(y=Math.pow(2,-o))<1&&(o--,y*=2),o+B>=1?t+=R/y:t+=R*Math.pow(2,1-B),t*y>=2&&(o++,y/=2),o+B>=x?(s=0,o=x):o+B>=1?(s=(t*y-1)*Math.pow(2,n),o=o+B):(s=t*Math.pow(2,B-1)*Math.pow(2,n),o=0));n>=8;e[r+T]=s&255,T+=O,s/=256,n-=8);for(o=o<<n|s,_+=n;_>0;e[r+T]=o&255,T+=O,o/=256,_-=8);e[r+T-O]|=D*128}});var st=k(Rn=>{"use strict";m();var Yu=J0(),An=X0(),Q0=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Rn.Buffer=q;Rn.SlowBuffer=t6;Rn.INSPECT_MAX_BYTES=50;var hf=2147483647;Rn.kMaxLength=hf;q.TYPED_ARRAY_SUPPORT=YE();!q.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 YE(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(q.prototype,"parent",{enumerable:!0,get:function(){if(q.isBuffer(this))return this.buffer}});Object.defineProperty(q.prototype,"offset",{enumerable:!0,get:function(){if(q.isBuffer(this))return this.byteOffset}});function Br(e){if(e>hf)throw new RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,q.prototype),t}function q(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return el(e)}return id(e,t,r)}q.poolSize=8192;function id(e,t,r){if(typeof e=="string")return XE(e,t);if(ArrayBuffer.isView(e))return QE(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(hr(e,ArrayBuffer)||e&&hr(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(hr(e,SharedArrayBuffer)||e&&hr(e.buffer,SharedArrayBuffer)))return Xu(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let i=e.valueOf&&e.valueOf();if(i!=null&&i!==e)return q.from(i,t,r);let n=e6(e);if(n)return n;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return q.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}q.from=function(e,t,r){return id(e,t,r)};Object.setPrototypeOf(q.prototype,Uint8Array.prototype);Object.setPrototypeOf(q,Uint8Array);function nd(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function JE(e,t,r){return nd(e),e<=0?Br(e):t!==void 0?typeof r=="string"?Br(e).fill(t,r):Br(e).fill(t):Br(e)}q.alloc=function(e,t,r){return JE(e,t,r)};function el(e){return nd(e),Br(e<0?0:tl(e)|0)}q.allocUnsafe=function(e){return el(e)};q.allocUnsafeSlow=function(e){return el(e)};function XE(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!q.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let r=ad(e,t)|0,i=Br(r),n=i.write(e,t);return n!==r&&(i=i.slice(0,n)),i}function Ju(e){let t=e.length<0?0:tl(e.length)|0,r=Br(t);for(let i=0;i<t;i+=1)r[i]=e[i]&255;return r}function QE(e){if(hr(e,Uint8Array)){let t=new Uint8Array(e);return Xu(t.buffer,t.byteOffset,t.byteLength)}return Ju(e)}function Xu(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');let i;return t===void 0&&r===void 0?i=new Uint8Array(e):r===void 0?i=new Uint8Array(e,t):i=new Uint8Array(e,t,r),Object.setPrototypeOf(i,q.prototype),i}function e6(e){if(q.isBuffer(e)){let t=tl(e.length)|0,r=Br(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||il(e.length)?Br(0):Ju(e);if(e.type==="Buffer"&&Array.isArray(e.data))return Ju(e.data)}function tl(e){if(e>=hf)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+hf.toString(16)+" bytes");return e|0}function t6(e){return+e!=e&&(e=0),q.alloc(+e)}q.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==q.prototype};q.compare=function(t,r){if(hr(t,Uint8Array)&&(t=q.from(t,t.offset,t.byteLength)),hr(r,Uint8Array)&&(r=q.from(r,r.offset,r.byteLength)),!q.isBuffer(t)||!q.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;let i=t.length,n=r.length;for(let a=0,o=Math.min(i,n);a<o;++a)if(t[a]!==r[a]){i=t[a],n=r[a];break}return i<n?-1:n<i?1:0};q.isEncoding=function(t){switch(String(t).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}};q.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return q.alloc(0);let i;if(r===void 0)for(r=0,i=0;i<t.length;++i)r+=t[i].length;let n=q.allocUnsafe(r),a=0;for(i=0;i<t.length;++i){let o=t[i];if(hr(o,Uint8Array))a+o.length>n.length?(q.isBuffer(o)||(o=q.from(o)),o.copy(n,a)):Uint8Array.prototype.set.call(n,o,a);else if(q.isBuffer(o))o.copy(n,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=o.length}return n};function ad(e,t){if(q.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||hr(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,i=arguments.length>2&&arguments[2]===!0;if(!i&&r===0)return 0;let n=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return Qu(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return pd(e).length;default:if(n)return i?-1:Qu(e).length;t=(""+t).toLowerCase(),n=!0}}q.byteLength=ad;function r6(e,t,r){let i=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return c6(this,t,r);case"utf8":case"utf-8":return fd(this,t,r);case"ascii":return l6(this,t,r);case"latin1":case"binary":return h6(this,t,r);case"base64":return s6(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d6(this,t,r);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}q.prototype._isBuffer=!0;function Ii(e,t,r){let i=e[t];e[t]=e[r],e[r]=i}q.prototype.swap16=function(){let t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;r<t;r+=2)Ii(this,r,r+1);return this};q.prototype.swap32=function(){let t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let r=0;r<t;r+=4)Ii(this,r,r+3),Ii(this,r+1,r+2);return this};q.prototype.swap64=function(){let t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let r=0;r<t;r+=8)Ii(this,r,r+7),Ii(this,r+1,r+6),Ii(this,r+2,r+5),Ii(this,r+3,r+4);return this};q.prototype.toString=function(){let t=this.length;return t===0?"":arguments.length===0?fd(this,0,t):r6.apply(this,arguments)};q.prototype.toLocaleString=q.prototype.toString;q.prototype.equals=function(t){if(!q.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:q.compare(this,t)===0};q.prototype.inspect=function(){let t="",r=Rn.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};Q0&&(q.prototype[Q0]=q.prototype.inspect);q.prototype.compare=function(t,r,i,n,a){if(hr(t,Uint8Array)&&(t=q.from(t,t.offset,t.byteLength)),!q.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),i===void 0&&(i=t?t.length:0),n===void 0&&(n=0),a===void 0&&(a=this.length),r<0||i>t.length||n<0||a>this.length)throw new RangeError("out of range index");if(n>=a&&r>=i)return 0;if(n>=a)return-1;if(r>=i)return 1;if(r>>>=0,i>>>=0,n>>>=0,a>>>=0,this===t)return 0;let o=a-n,s=i-r,y=Math.min(o,s),_=this.slice(n,a),x=t.slice(r,i);for(let B=0;B<y;++B)if(_[B]!==x[B]){o=_[B],s=x[B];break}return o<s?-1:s<o?1:0};function od(e,t,r,i,n){if(e.length===0)return-1;if(typeof r=="string"?(i=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,il(r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0)if(n)r=0;else return-1;if(typeof t=="string"&&(t=q.from(t,i)),q.isBuffer(t))return t.length===0?-1:ed(e,t,r,i,n);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):ed(e,[t],r,i,n);throw new TypeError("val must be string, number or Buffer")}function ed(e,t,r,i,n){let a=1,o=e.length,s=t.length;if(i!==void 0&&(i=String(i).toLowerCase(),i==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le")){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,r/=2}function y(x,B){return a===1?x[B]:x.readUInt16BE(B*a)}let _;if(n){let x=-1;for(_=r;_<o;_++)if(y(e,_)===y(t,x===-1?0:_-x)){if(x===-1&&(x=_),_-x+1===s)return x*a}else x!==-1&&(_-=_-x),x=-1}else for(r+s>o&&(r=o-s),_=r;_>=0;_--){let x=!0;for(let B=0;B<s;B++)if(y(e,_+B)!==y(t,B)){x=!1;break}if(x)return _}return-1}q.prototype.includes=function(t,r,i){return this.indexOf(t,r,i)!==-1};q.prototype.indexOf=function(t,r,i){return od(this,t,r,i,!0)};q.prototype.lastIndexOf=function(t,r,i){return od(this,t,r,i,!1)};function i6(e,t,r,i){r=Number(r)||0;let n=e.length-r;i?(i=Number(i),i>n&&(i=n)):i=n;let a=t.length;i>a/2&&(i=a/2);let o;for(o=0;o<i;++o){let s=parseInt(t.substr(o*2,2),16);if(il(s))return o;e[r+o]=s}return o}function n6(e,t,r,i){return cf(Qu(t,e.length-r),e,r,i)}function a6(e,t,r,i){return cf(g6(t),e,r,i)}function o6(e,t,r,i){return cf(pd(t),e,r,i)}function f6(e,t,r,i){return cf(b6(t,e.length-r),e,r,i)}q.prototype.write=function(t,r,i,n){if(r===void 0)n="utf8",i=this.length,r=0;else if(i===void 0&&typeof r=="string")n=r,i=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(i)?(i=i>>>0,n===void 0&&(n="utf8")):(n=i,i=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let a=this.length-r;if((i===void 0||i>a)&&(i=a),t.length>0&&(i<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return i6(this,t,r,i);case"utf8":case"utf-8":return n6(this,t,r,i);case"ascii":case"latin1":case"binary":return a6(this,t,r,i);case"base64":return o6(this,t,r,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return f6(this,t,r,i);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}};q.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function s6(e,t,r){return t===0&&r===e.length?Yu.fromByteArray(e):Yu.fromByteArray(e.slice(t,r))}function fd(e,t,r){r=Math.min(e.length,r);let i=[],n=t;for(;n<r;){let a=e[n],o=null,s=a>239?4:a>223?3:a>191?2:1;if(n+s<=r){let y,_,x,B;switch(s){case 1:a<128&&(o=a);break;case 2:y=e[n+1],(y&192)===128&&(B=(a&31)<<6|y&63,B>127&&(o=B));break;case 3:y=e[n+1],_=e[n+2],(y&192)===128&&(_&192)===128&&(B=(a&15)<<12|(y&63)<<6|_&63,B>2047&&(B<55296||B>57343)&&(o=B));break;case 4:y=e[n+1],_=e[n+2],x=e[n+3],(y&192)===128&&(_&192)===128&&(x&192)===128&&(B=(a&15)<<18|(y&63)<<12|(_&63)<<6|x&63,B>65535&&B<1114112&&(o=B))}}o===null?(o=65533,s=1):o>65535&&(o-=65536,i.push(o>>>10&1023|55296),o=56320|o&1023),i.push(o),n+=s}return u6(i)}var td=4096;function u6(e){let t=e.length;if(t<=td)return String.fromCharCode.apply(String,e);let r="",i=0;for(;i<t;)r+=String.fromCharCode.apply(String,e.slice(i,i+=td));return r}function l6(e,t,r){let i="";r=Math.min(e.length,r);for(let n=t;n<r;++n)i+=String.fromCharCode(e[n]&127);return i}function h6(e,t,r){let i="";r=Math.min(e.length,r);for(let n=t;n<r;++n)i+=String.fromCharCode(e[n]);return i}function c6(e,t,r){let i=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>i)&&(r=i);let n="";for(let a=t;a<r;++a)n+=_6[e[a]];return n}function d6(e,t,r){let i=e.slice(t,r),n="";for(let a=0;a<i.length-1;a+=2)n+=String.fromCharCode(i[a]+i[a+1]*256);return n}q.prototype.slice=function(t,r){let i=this.length;t=~~t,r=r===void 0?i:~~r,t<0?(t+=i,t<0&&(t=0)):t>i&&(t=i),r<0?(r+=i,r<0&&(r=0)):r>i&&(r=i),r<t&&(r=t);let n=this.subarray(t,r);return Object.setPrototypeOf(n,q.prototype),n};function at(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}q.prototype.readUintLE=q.prototype.readUIntLE=function(t,r,i){t=t>>>0,r=r>>>0,i||at(t,r,this.length);let n=this[t],a=1,o=0;for(;++o<r&&(a*=256);)n+=this[t+o]*a;return n};q.prototype.readUintBE=q.prototype.readUIntBE=function(t,r,i){t=t>>>0,r=r>>>0,i||at(t,r,this.length);let n=this[t+--r],a=1;for(;r>0&&(a*=256);)n+=this[t+--r]*a;return n};q.prototype.readUint8=q.prototype.readUInt8=function(t,r){return t=t>>>0,r||at(t,1,this.length),this[t]};q.prototype.readUint16LE=q.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||at(t,2,this.length),this[t]|this[t+1]<<8};q.prototype.readUint16BE=q.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||at(t,2,this.length),this[t]<<8|this[t+1]};q.prototype.readUint32LE=q.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||at(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};q.prototype.readUint32BE=q.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||at(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};q.prototype.readBigUInt64LE=Zr(function(t){t=t>>>0,Bn(t,"offset");let r=this[t],i=this[t+7];(r===void 0||i===void 0)&&Na(t,this.length-8);let n=r+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,a=this[++t]+this[++t]*2**8+this[++t]*2**16+i*2**24;return BigInt(n)+(BigInt(a)<<BigInt(32))});q.prototype.readBigUInt64BE=Zr(function(t){t=t>>>0,Bn(t,"offset");let r=this[t],i=this[t+7];(r===void 0||i===void 0)&&Na(t,this.length-8);let n=r*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],a=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+i;return(BigInt(n)<<BigInt(32))+BigInt(a)});q.prototype.readIntLE=function(t,r,i){t=t>>>0,r=r>>>0,i||at(t,r,this.length);let n=this[t],a=1,o=0;for(;++o<r&&(a*=256);)n+=this[t+o]*a;return a*=128,n>=a&&(n-=Math.pow(2,8*r)),n};q.prototype.readIntBE=function(t,r,i){t=t>>>0,r=r>>>0,i||at(t,r,this.length);let n=r,a=1,o=this[t+--n];for(;n>0&&(a*=256);)o+=this[t+--n]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*r)),o};q.prototype.readInt8=function(t,r){return t=t>>>0,r||at(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};q.prototype.readInt16LE=function(t,r){t=t>>>0,r||at(t,2,this.length);let i=this[t]|this[t+1]<<8;return i&32768?i|4294901760:i};q.prototype.readInt16BE=function(t,r){t=t>>>0,r||at(t,2,this.length);let i=this[t+1]|this[t]<<8;return i&32768?i|4294901760:i};q.prototype.readInt32LE=function(t,r){return t=t>>>0,r||at(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};q.prototype.readInt32BE=function(t,r){return t=t>>>0,r||at(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};q.prototype.readBigInt64LE=Zr(function(t){t=t>>>0,Bn(t,"offset");let r=this[t],i=this[t+7];(r===void 0||i===void 0)&&Na(t,this.length-8);let n=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(i<<24);return(BigInt(n)<<BigInt(32))+BigInt(r+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24)});q.prototype.readBigInt64BE=Zr(function(t){t=t>>>0,Bn(t,"offset");let r=this[t],i=this[t+7];(r===void 0||i===void 0)&&Na(t,this.length-8);let n=(r<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(n)<<BigInt(32))+BigInt(this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+i)});q.prototype.readFloatLE=function(t,r){return t=t>>>0,r||at(t,4,this.length),An.read(this,t,!0,23,4)};q.prototype.readFloatBE=function(t,r){return t=t>>>0,r||at(t,4,this.length),An.read(this,t,!1,23,4)};q.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||at(t,8,this.length),An.read(this,t,!0,52,8)};q.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||at(t,8,this.length),An.read(this,t,!1,52,8)};function xt(e,t,r,i,n,a){if(!q.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||t<a)throw new RangeError('"value" argument is out of bounds');if(r+i>e.length)throw new RangeError("Index out of range")}q.prototype.writeUintLE=q.prototype.writeUIntLE=function(t,r,i,n){if(t=+t,r=r>>>0,i=i>>>0,!n){let s=Math.pow(2,8*i)-1;xt(this,t,r,i,s,0)}let a=1,o=0;for(this[r]=t&255;++o<i&&(a*=256);)this[r+o]=t/a&255;return r+i};q.prototype.writeUintBE=q.prototype.writeUIntBE=function(t,r,i,n){if(t=+t,r=r>>>0,i=i>>>0,!n){let s=Math.pow(2,8*i)-1;xt(this,t,r,i,s,0)}let a=i-1,o=1;for(this[r+a]=t&255;--a>=0&&(o*=256);)this[r+a]=t/o&255;return r+i};q.prototype.writeUint8=q.prototype.writeUInt8=function(t,r,i){return t=+t,r=r>>>0,i||xt(this,t,r,1,255,0),this[r]=t&255,r+1};q.prototype.writeUint16LE=q.prototype.writeUInt16LE=function(t,r,i){return t=+t,r=r>>>0,i||xt(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};q.prototype.writeUint16BE=q.prototype.writeUInt16BE=function(t,r,i){return t=+t,r=r>>>0,i||xt(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};q.prototype.writeUint32LE=q.prototype.writeUInt32LE=function(t,r,i){return t=+t,r=r>>>0,i||xt(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};q.prototype.writeUint32BE=q.prototype.writeUInt32BE=function(t,r,i){return t=+t,r=r>>>0,i||xt(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function sd(e,t,r,i,n){dd(t,i,n,e,r,7);let a=Number(t&BigInt(4294967295));e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,r}function ud(e,t,r,i,n){dd(t,i,n,e,r,7);let a=Number(t&BigInt(4294967295));e[r+7]=a,a=a>>8,e[r+6]=a,a=a>>8,e[r+5]=a,a=a>>8,e[r+4]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=o,o=o>>8,e[r+2]=o,o=o>>8,e[r+1]=o,o=o>>8,e[r]=o,r+8}q.prototype.writeBigUInt64LE=Zr(function(t,r=0){return sd(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});q.prototype.writeBigUInt64BE=Zr(function(t,r=0){return ud(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});q.prototype.writeIntLE=function(t,r,i,n){if(t=+t,r=r>>>0,!n){let y=Math.pow(2,8*i-1);xt(this,t,r,i,y-1,-y)}let a=0,o=1,s=0;for(this[r]=t&255;++a<i&&(o*=256);)t<0&&s===0&&this[r+a-1]!==0&&(s=1),this[r+a]=(t/o>>0)-s&255;return r+i};q.prototype.writeIntBE=function(t,r,i,n){if(t=+t,r=r>>>0,!n){let y=Math.pow(2,8*i-1);xt(this,t,r,i,y-1,-y)}let a=i-1,o=1,s=0;for(this[r+a]=t&255;--a>=0&&(o*=256);)t<0&&s===0&&this[r+a+1]!==0&&(s=1),this[r+a]=(t/o>>0)-s&255;return r+i};q.prototype.writeInt8=function(t,r,i){return t=+t,r=r>>>0,i||xt(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};q.prototype.writeInt16LE=function(t,r,i){return t=+t,r=r>>>0,i||xt(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};q.prototype.writeInt16BE=function(t,r,i){return t=+t,r=r>>>0,i||xt(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};q.prototype.writeInt32LE=function(t,r,i){return t=+t,r=r>>>0,i||xt(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};q.prototype.writeInt32BE=function(t,r,i){return t=+t,r=r>>>0,i||xt(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};q.prototype.writeBigInt64LE=Zr(function(t,r=0){return sd(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});q.prototype.writeBigInt64BE=Zr(function(t,r=0){return ud(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ld(e,t,r,i,n,a){if(r+i>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function hd(e,t,r,i,n){return t=+t,r=r>>>0,n||ld(e,t,r,4,34028234663852886e22,-34028234663852886e22),An.write(e,t,r,i,23,4),r+4}q.prototype.writeFloatLE=function(t,r,i){return hd(this,t,r,!0,i)};q.prototype.writeFloatBE=function(t,r,i){return hd(this,t,r,!1,i)};function cd(e,t,r,i,n){return t=+t,r=r>>>0,n||ld(e,t,r,8,17976931348623157e292,-17976931348623157e292),An.write(e,t,r,i,52,8),r+8}q.prototype.writeDoubleLE=function(t,r,i){return cd(this,t,r,!0,i)};q.prototype.writeDoubleBE=function(t,r,i){return cd(this,t,r,!1,i)};q.prototype.copy=function(t,r,i,n){if(!q.isBuffer(t))throw new TypeError("argument should be a Buffer");if(i||(i=0),!n&&n!==0&&(n=this.length),r>=t.length&&(r=t.length),r||(r=0),n>0&&n<i&&(n=i),n===i||t.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-r<n-i&&(n=t.length-r+i);let a=n-i;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,i,n):Uint8Array.prototype.set.call(t,this.subarray(i,n),r),a};q.prototype.fill=function(t,r,i,n){if(typeof t=="string"){if(typeof r=="string"?(n=r,r=0,i=this.length):typeof i=="string"&&(n=i,i=this.length),n!==void 0&&typeof n!="string")throw new TypeError("encoding must be a string");if(typeof n=="string"&&!q.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(t.length===1){let o=t.charCodeAt(0);(n==="utf8"&&o<128||n==="latin1")&&(t=o)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(r<0||this.length<r||this.length<i)throw new RangeError("Out of range index");if(i<=r)return this;r=r>>>0,i=i===void 0?this.length:i>>>0,t||(t=0);let a;if(typeof t=="number")for(a=r;a<i;++a)this[a]=t;else{let o=q.isBuffer(t)?t:q.from(t,n),s=o.length;if(s===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(a=0;a<i-r;++a)this[a+r]=o[a%s]}return this};var Mn={};function rl(e,t,r){Mn[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(n){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:n,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}rl("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError);rl("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError);rl("ERR_OUT_OF_RANGE",function(e,t,r){let i=`The value of "${e}" is out of range.`,n=r;return Number.isInteger(r)&&Math.abs(r)>2**32?n=rd(String(r)):typeof r=="bigint"&&(n=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(n=rd(n)),n+="n"),i+=` It must be ${t}. Received ${n}`,i},RangeError);function rd(e){let t="",r=e.length,i=e[0]==="-"?1:0;for(;r>=i+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function p6(e,t,r){Bn(t,"offset"),(e[t]===void 0||e[t+r]===void 0)&&Na(t,e.length-(r+1))}function dd(e,t,r,i,n,a){if(e>r||e<t){let o=typeof t=="bigint"?"n":"",s;throw a>3?t===0||t===BigInt(0)?s=`>= 0${o} and < 2${o} ** ${(a+1)*8}${o}`:s=`>= -(2${o} ** ${(a+1)*8-1}${o}) and < 2 ** ${(a+1)*8-1}${o}`:s=`>= ${t}${o} and <= ${r}${o}`,new Mn.ERR_OUT_OF_RANGE("value",s,e)}p6(i,n,a)}function Bn(e,t){if(typeof e!="number")throw new Mn.ERR_INVALID_ARG_TYPE(t,"number",e)}function Na(e,t,r){throw Math.floor(e)!==e?(Bn(e,r),new Mn.ERR_OUT_OF_RANGE(r||"offset","an integer",e)):t<0?new Mn.ERR_BUFFER_OUT_OF_BOUNDS:new Mn.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}var v6=/[^+/0-9A-Za-z-_]/g;function y6(e){if(e=e.split("=")[0],e=e.trim().replace(v6,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function Qu(e,t){t=t||1/0;let r,i=e.length,n=null,a=[];for(let o=0;o<i;++o){if(r=e.charCodeAt(o),r>55295&&r<57344){if(!n){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(o+1===i){(t-=3)>-1&&a.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),n=r;continue}r=(n-55296<<10|r-56320)+65536}else n&&(t-=3)>-1&&a.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return a}function g6(e){let t=[];for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function b6(e,t){let r,i,n,a=[];for(let o=0;o<e.length&&!((t-=2)<0);++o)r=e.charCodeAt(o),i=r>>8,n=r%256,a.push(n),a.push(i);return a}function pd(e){return Yu.toByteArray(y6(e))}function cf(e,t,r,i){let n;for(n=0;n<i&&!(n+r>=t.length||n>=e.length);++n)t[n+r]=e[n];return n}function hr(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function il(e){return e!==e}var _6=(function(){let e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){let i=r*16;for(let n=0;n<16;++n)t[i+n]=e[r]+e[n]}return t})();function Zr(e){return typeof BigInt>"u"?m6:e}function m6(){throw new Error("BigInt not supported")}});var M,I,m=UE(()=>{M=Z0(V0()),I=Z0(st())});var Ne=k((nl,yd)=>{m();var df=st(),cr=df.Buffer;function vd(e,t){for(var r in e)t[r]=e[r]}cr.from&&cr.alloc&&cr.allocUnsafe&&cr.allocUnsafeSlow?yd.exports=df:(vd(df,nl),nl.Buffer=Oi);function Oi(e,t,r){return cr(e,t,r)}Oi.prototype=Object.create(cr.prototype);vd(cr,Oi);Oi.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return cr(e,t,r)};Oi.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var i=cr(e);return t!==void 0?typeof r=="string"?i.fill(t,r):i.fill(t):i.fill(0),i};Oi.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return cr(e)};Oi.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return df.SlowBuffer(e)}});var qi=k((FO,ol)=>{"use strict";m();var al=65536,w6=4294967295;function x6(){throw new Error(`Secure random number generation is not supported by this browser.
2
- Use Chrome, Firefox or Internet Explorer 11`)}var E6=Ne().Buffer,pf=globalThis.crypto||globalThis.msCrypto;pf&&pf.getRandomValues?ol.exports=S6:ol.exports=x6;function S6(e,t){if(e>w6)throw new RangeError("requested too many random bytes");var r=E6.allocUnsafe(e);if(e>0)if(e>al)for(var i=0;i<e;i+=al)pf.getRandomValues(r.slice(i,i+al));else pf.getRandomValues(r);return typeof t=="function"?M.default.nextTick(function(){t(null,r)}):r}});var re=k((zO,fl)=>{m();typeof Object.create=="function"?fl.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:fl.exports=function(t,r){if(r){t.super_=r;var i=function(){};i.prototype=r.prototype,t.prototype=new i,t.prototype.constructor=t}}});var Tn=k((HO,sl)=>{"use strict";m();var kn=typeof Reflect=="object"?Reflect:null,gd=kn&&typeof kn.apply=="function"?kn.apply:function(t,r,i){return Function.prototype.apply.call(t,r,i)},vf;kn&&typeof kn.ownKeys=="function"?vf=kn.ownKeys:Object.getOwnPropertySymbols?vf=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:vf=function(t){return Object.getOwnPropertyNames(t)};function M6(e){console&&console.warn&&console.warn(e)}var _d=Number.isNaN||function(t){return t!==t};function We(){We.init.call(this)}sl.exports=We;sl.exports.once=k6;We.EventEmitter=We;We.prototype._events=void 0;We.prototype._eventsCount=0;We.prototype._maxListeners=void 0;var bd=10;function yf(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(We,"defaultMaxListeners",{enumerable:!0,get:function(){return bd},set:function(e){if(typeof e!="number"||e<0||_d(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");bd=e}});We.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};We.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||_d(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function md(e){return e._maxListeners===void 0?We.defaultMaxListeners:e._maxListeners}We.prototype.getMaxListeners=function(){return md(this)};We.prototype.emit=function(t){for(var r=[],i=1;i<arguments.length;i++)r.push(arguments[i]);var n=t==="error",a=this._events;if(a!==void 0)n=n&&a.error===void 0;else if(!n)return!1;if(n){var o;if(r.length>0&&(o=r[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var y=a[t];if(y===void 0)return!1;if(typeof y=="function")gd(y,this,r);else for(var _=y.length,x=Md(y,_),i=0;i<_;++i)gd(x[i],this,r);return!0};function wd(e,t,r,i){var n,a,o;if(yf(r),a=e._events,a===void 0?(a=e._events=Object.create(null),e._eventsCount=0):(a.newListener!==void 0&&(e.emit("newListener",t,r.listener?r.listener:r),a=e._events),o=a[t]),o===void 0)o=a[t]=r,++e._eventsCount;else if(typeof o=="function"?o=a[t]=i?[r,o]:[o,r]:i?o.unshift(r):o.push(r),n=md(e),n>0&&o.length>n&&!o.warned){o.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=o.length,M6(s)}return e}We.prototype.addListener=function(t,r){return wd(this,t,r,!1)};We.prototype.on=We.prototype.addListener;We.prototype.prependListener=function(t,r){return wd(this,t,r,!0)};function A6(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function xd(e,t,r){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},n=A6.bind(i);return n.listener=r,i.wrapFn=n,n}We.prototype.once=function(t,r){return yf(r),this.on(t,xd(this,t,r)),this};We.prototype.prependOnceListener=function(t,r){return yf(r),this.prependListener(t,xd(this,t,r)),this};We.prototype.removeListener=function(t,r){var i,n,a,o,s;if(yf(r),n=this._events,n===void 0)return this;if(i=n[t],i===void 0)return this;if(i===r||i.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete n[t],n.removeListener&&this.emit("removeListener",t,i.listener||r));else if(typeof i!="function"){for(a=-1,o=i.length-1;o>=0;o--)if(i[o]===r||i[o].listener===r){s=i[o].listener,a=o;break}if(a<0)return this;a===0?i.shift():B6(i,a),i.length===1&&(n[t]=i[0]),n.removeListener!==void 0&&this.emit("removeListener",t,s||r)}return this};We.prototype.off=We.prototype.removeListener;We.prototype.removeAllListeners=function(t){var r,i,n;if(i=this._events,i===void 0)return this;if(i.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):i[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete i[t]),this;if(arguments.length===0){var a=Object.keys(i),o;for(n=0;n<a.length;++n)o=a[n],o!=="removeListener"&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(r=i[t],typeof r=="function")this.removeListener(t,r);else if(r!==void 0)for(n=r.length-1;n>=0;n--)this.removeListener(t,r[n]);return this};function Ed(e,t,r){var i=e._events;if(i===void 0)return[];var n=i[t];return n===void 0?[]:typeof n=="function"?r?[n.listener||n]:[n]:r?R6(n):Md(n,n.length)}We.prototype.listeners=function(t){return Ed(this,t,!0)};We.prototype.rawListeners=function(t){return Ed(this,t,!1)};We.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):Sd.call(e,t)};We.prototype.listenerCount=Sd;function Sd(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}We.prototype.eventNames=function(){return this._eventsCount>0?vf(this._events):[]};function Md(e,t){for(var r=new Array(t),i=0;i<t;++i)r[i]=e[i];return r}function B6(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function R6(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function k6(e,t){return new Promise(function(r,i){function n(o){e.removeListener(t,a),i(o)}function a(){typeof e.removeListener=="function"&&e.removeListener("error",n),r([].slice.call(arguments))}Ad(e,t,a,{once:!0}),t!=="error"&&T6(e,n,{once:!0})})}function T6(e,t,r){typeof e.on=="function"&&Ad(e,"error",t,r)}function Ad(e,t,r,i){if(typeof e.on=="function")i.once?e.once(t,r):e.on(t,r);else if(typeof e.addEventListener=="function")e.addEventListener(t,function n(a){i.once&&e.removeEventListener(t,n),r(a)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}});var ul=k((KO,Bd)=>{m();Bd.exports=Tn().EventEmitter});var gf=k((VO,Rd)=>{"use strict";m();Rd.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),i=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var n=42;t[r]=n;for(var a in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(t,r);if(s.value!==n||s.enumerable!==!0)return!1}return!0}});var Pa=k((YO,kd)=>{"use strict";m();var I6=gf();kd.exports=function(){return I6()&&!!Symbol.toStringTag}});var bf=k((XO,Td)=>{"use strict";m();Td.exports=Object});var Od=k((eq,Id)=>{"use strict";m();Id.exports=Error});var Dd=k((rq,qd)=>{"use strict";m();qd.exports=EvalError});var Pd=k((nq,Nd)=>{"use strict";m();Nd.exports=RangeError});var Cd=k((oq,Ld)=>{"use strict";m();Ld.exports=ReferenceError});var ll=k((sq,Ud)=>{"use strict";m();Ud.exports=SyntaxError});var Di=k((lq,Fd)=>{"use strict";m();Fd.exports=TypeError});var zd=k((cq,jd)=>{"use strict";m();jd.exports=URIError});var Hd=k((pq,Zd)=>{"use strict";m();Zd.exports=Math.abs});var Kd=k((yq,Wd)=>{"use strict";m();Wd.exports=Math.floor});var Vd=k((bq,Gd)=>{"use strict";m();Gd.exports=Math.max});var Yd=k((mq,$d)=>{"use strict";m();$d.exports=Math.min});var Xd=k((xq,Jd)=>{"use strict";m();Jd.exports=Math.pow});var ep=k((Sq,Qd)=>{"use strict";m();Qd.exports=Math.round});var rp=k((Aq,tp)=>{"use strict";m();tp.exports=Number.isNaN||function(t){return t!==t}});var np=k((Rq,ip)=>{"use strict";m();var O6=rp();ip.exports=function(t){return O6(t)||t===0?t:t<0?-1:1}});var op=k((Tq,ap)=>{"use strict";m();ap.exports=Object.getOwnPropertyDescriptor});var Ni=k((Oq,fp)=>{"use strict";m();var _f=op();if(_f)try{_f([],"length")}catch{_f=null}fp.exports=_f});var La=k((Dq,sp)=>{"use strict";m();var mf=Object.defineProperty||!1;if(mf)try{mf({},"a",{value:1})}catch{mf=!1}sp.exports=mf});var hp=k((Pq,lp)=>{"use strict";m();var up=typeof Symbol<"u"&&Symbol,q6=gf();lp.exports=function(){return typeof up!="function"||typeof Symbol!="function"||typeof up("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:q6()}});var hl=k((Cq,cp)=>{"use strict";m();cp.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var cl=k((Fq,dp)=>{"use strict";m();var D6=bf();dp.exports=D6.getPrototypeOf||null});var yp=k((zq,vp)=>{"use strict";m();var N6="Function.prototype.bind called on incompatible ",P6=Object.prototype.toString,L6=Math.max,C6="[object Function]",pp=function(t,r){for(var i=[],n=0;n<t.length;n+=1)i[n]=t[n];for(var a=0;a<r.length;a+=1)i[a+t.length]=r[a];return i},U6=function(t,r){for(var i=[],n=r||0,a=0;n<t.length;n+=1,a+=1)i[a]=t[n];return i},F6=function(e,t){for(var r="",i=0;i<e.length;i+=1)r+=e[i],i+1<e.length&&(r+=t);return r};vp.exports=function(t){var r=this;if(typeof r!="function"||P6.apply(r)!==C6)throw new TypeError(N6+r);for(var i=U6(arguments,1),n,a=function(){if(this instanceof n){var x=r.apply(this,pp(i,arguments));return Object(x)===x?x:this}return r.apply(t,pp(i,arguments))},o=L6(0,r.length-i.length),s=[],y=0;y<o;y++)s[y]="$"+y;if(n=Function("binder","return function ("+F6(s,",")+"){ return binder.apply(this,arguments); }")(a),r.prototype){var _=function(){};_.prototype=r.prototype,n.prototype=new _,_.prototype=null}return n}});var In=k((Hq,gp)=>{"use strict";m();var j6=yp();gp.exports=Function.prototype.bind||j6});var wf=k((Kq,bp)=>{"use strict";m();bp.exports=Function.prototype.call});var xf=k((Vq,_p)=>{"use strict";m();_p.exports=Function.prototype.apply});var wp=k((Yq,mp)=>{"use strict";m();mp.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var dl=k((Xq,xp)=>{"use strict";m();var z6=In(),Z6=xf(),H6=wf(),W6=wp();xp.exports=W6||z6.call(H6,Z6)});var Ef=k((e9,Ep)=>{"use strict";m();var K6=In(),G6=Di(),V6=wf(),$6=dl();Ep.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new G6("a function is required");return $6(K6,V6,t)}});var kp=k((r9,Rp)=>{"use strict";m();var Y6=Ef(),Sp=Ni(),Ap;try{Ap=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var pl=!!Ap&&Sp&&Sp(Object.prototype,"__proto__"),Bp=Object,Mp=Bp.getPrototypeOf;Rp.exports=pl&&typeof pl.get=="function"?Y6([pl.get]):typeof Mp=="function"?function(t){return Mp(t==null?t:Bp(t))}:!1});var Sf=k((n9,qp)=>{"use strict";m();var Tp=hl(),Ip=cl(),Op=kp();qp.exports=Tp?function(t){return Tp(t)}:Ip?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return Ip(t)}:Op?function(t){return Op(t)}:null});var vl=k((o9,Dp)=>{"use strict";m();var J6=Function.prototype.call,X6=Object.prototype.hasOwnProperty,Q6=In();Dp.exports=Q6.call(J6,X6)});var Bf=k((s9,Fp)=>{"use strict";m();var Ce,e3=bf(),t3=Od(),r3=Dd(),i3=Pd(),n3=Cd(),Nn=ll(),Dn=Di(),a3=zd(),o3=Hd(),f3=Kd(),s3=Vd(),u3=Yd(),l3=Xd(),h3=ep(),c3=np(),Cp=Function,yl=function(e){try{return Cp('"use strict"; return ('+e+").constructor;")()}catch{}},Ca=Ni(),d3=La(),gl=function(){throw new Dn},p3=Ca?(function(){try{return arguments.callee,gl}catch{try{return Ca(arguments,"callee").get}catch{return gl}}})():gl,On=hp()(),ot=Sf(),v3=cl(),y3=hl(),Up=xf(),Ua=wf(),qn={},g3=typeof Uint8Array>"u"||!ot?Ce:ot(Uint8Array),Pi={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Ce:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Ce:ArrayBuffer,"%ArrayIteratorPrototype%":On&&ot?ot([][Symbol.iterator]()):Ce,"%AsyncFromSyncIteratorPrototype%":Ce,"%AsyncFunction%":qn,"%AsyncGenerator%":qn,"%AsyncGeneratorFunction%":qn,"%AsyncIteratorPrototype%":qn,"%Atomics%":typeof Atomics>"u"?Ce:Atomics,"%BigInt%":typeof BigInt>"u"?Ce:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Ce:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Ce:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Ce:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":t3,"%eval%":eval,"%EvalError%":r3,"%Float16Array%":typeof Float16Array>"u"?Ce:Float16Array,"%Float32Array%":typeof Float32Array>"u"?Ce:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Ce:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Ce:FinalizationRegistry,"%Function%":Cp,"%GeneratorFunction%":qn,"%Int8Array%":typeof Int8Array>"u"?Ce:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Ce:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Ce:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":On&&ot?ot(ot([][Symbol.iterator]())):Ce,"%JSON%":typeof JSON=="object"?JSON:Ce,"%Map%":typeof Map>"u"?Ce:Map,"%MapIteratorPrototype%":typeof Map>"u"||!On||!ot?Ce:ot(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":e3,"%Object.getOwnPropertyDescriptor%":Ca,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Ce:Promise,"%Proxy%":typeof Proxy>"u"?Ce:Proxy,"%RangeError%":i3,"%ReferenceError%":n3,"%Reflect%":typeof Reflect>"u"?Ce:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Ce:Set,"%SetIteratorPrototype%":typeof Set>"u"||!On||!ot?Ce:ot(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Ce:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":On&&ot?ot(""[Symbol.iterator]()):Ce,"%Symbol%":On?Symbol:Ce,"%SyntaxError%":Nn,"%ThrowTypeError%":p3,"%TypedArray%":g3,"%TypeError%":Dn,"%Uint8Array%":typeof Uint8Array>"u"?Ce:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Ce:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Ce:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Ce:Uint32Array,"%URIError%":a3,"%WeakMap%":typeof WeakMap>"u"?Ce:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Ce:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Ce:WeakSet,"%Function.prototype.call%":Ua,"%Function.prototype.apply%":Up,"%Object.defineProperty%":d3,"%Object.getPrototypeOf%":v3,"%Math.abs%":o3,"%Math.floor%":f3,"%Math.max%":s3,"%Math.min%":u3,"%Math.pow%":l3,"%Math.round%":h3,"%Math.sign%":c3,"%Reflect.getPrototypeOf%":y3};if(ot)try{null.error}catch(e){Np=ot(ot(e)),Pi["%Error.prototype%"]=Np}var Np,b3=function e(t){var r;if(t==="%AsyncFunction%")r=yl("async function () {}");else if(t==="%GeneratorFunction%")r=yl("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=yl("async function* () {}");else if(t==="%AsyncGenerator%"){var i=e("%AsyncGeneratorFunction%");i&&(r=i.prototype)}else if(t==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&ot&&(r=ot(n.prototype))}return Pi[t]=r,r},Pp={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Fa=In(),Mf=vl(),_3=Fa.call(Ua,Array.prototype.concat),m3=Fa.call(Up,Array.prototype.splice),Lp=Fa.call(Ua,String.prototype.replace),Af=Fa.call(Ua,String.prototype.slice),w3=Fa.call(Ua,RegExp.prototype.exec),x3=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,E3=/\\(\\)?/g,S3=function(t){var r=Af(t,0,1),i=Af(t,-1);if(r==="%"&&i!=="%")throw new Nn("invalid intrinsic syntax, expected closing `%`");if(i==="%"&&r!=="%")throw new Nn("invalid intrinsic syntax, expected opening `%`");var n=[];return Lp(t,x3,function(a,o,s,y){n[n.length]=s?Lp(y,E3,"$1"):o||a}),n},M3=function(t,r){var i=t,n;if(Mf(Pp,i)&&(n=Pp[i],i="%"+n[0]+"%"),Mf(Pi,i)){var a=Pi[i];if(a===qn&&(a=b3(i)),typeof a>"u"&&!r)throw new Dn("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:a}}throw new Nn("intrinsic "+t+" does not exist!")};Fp.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new Dn("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Dn('"allowMissing" argument must be a boolean');if(w3(/^%?[^%]*%?$/,t)===null)throw new Nn("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=S3(t),n=i.length>0?i[0]:"",a=M3("%"+n+"%",r),o=a.name,s=a.value,y=!1,_=a.alias;_&&(n=_[0],m3(i,_3([0,1],_)));for(var x=1,B=!0;x<i.length;x+=1){var R=i[x],T=Af(R,0,1),O=Af(R,-1);if((T==='"'||T==="'"||T==="`"||O==='"'||O==="'"||O==="`")&&T!==O)throw new Nn("property names with quotes must have matching quotes");if((R==="constructor"||!B)&&(y=!0),n+="."+R,o="%"+n+"%",Mf(Pi,o))s=Pi[o];else if(s!=null){if(!(R in s)){if(!r)throw new Dn("base intrinsic for "+t+" exists, but the property is not available.");return}if(Ca&&x+1>=i.length){var D=Ca(s,R);B=!!D,B&&"get"in D&&!("originalValue"in D.get)?s=D.get:s=s[R]}else B=Mf(s,R),s=s[R];B&&!y&&(Pi[o]=s)}}return s}});var Hr=k((l9,Zp)=>{"use strict";m();var jp=Bf(),zp=Ef(),A3=zp([jp("%String.prototype.indexOf%")]);Zp.exports=function(t,r){var i=jp(t,!!r);return typeof i=="function"&&A3(t,".prototype.")>-1?zp([i]):i}});var Kp=k((c9,Wp)=>{"use strict";m();var B3=Pa()(),R3=Hr(),bl=R3("Object.prototype.toString"),Rf=function(t){return B3&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:bl(t)==="[object Arguments]"},Hp=function(t){return Rf(t)?!0:t!==null&&typeof t=="object"&&"length"in t&&typeof t.length=="number"&&t.length>=0&&bl(t)!=="[object Array]"&&"callee"in t&&bl(t.callee)==="[object Function]"},k3=(function(){return Rf(arguments)})();Rf.isLegacyArguments=Hp;Wp.exports=k3?Rf:Hp});var Xp=k((p9,Jp)=>{"use strict";m();var Gp=Hr(),T3=Pa()(),I3=vl(),O3=Ni(),wl;T3?(Vp=Gp("RegExp.prototype.exec"),_l={},kf=function(){throw _l},ml={toString:kf,valueOf:kf},typeof Symbol.toPrimitive=="symbol"&&(ml[Symbol.toPrimitive]=kf),wl=function(t){if(!t||typeof t!="object")return!1;var r=O3(t,"lastIndex"),i=r&&I3(r,"value");if(!i)return!1;try{Vp(t,ml)}catch(n){return n===_l}}):($p=Gp("Object.prototype.toString"),Yp="[object RegExp]",wl=function(t){return!t||typeof t!="object"&&typeof t!="function"?!1:$p(t)===Yp});var Vp,_l,kf,ml,$p,Yp;Jp.exports=wl});var ev=k((y9,Qp)=>{"use strict";m();var q3=Hr(),D3=Xp(),N3=q3("RegExp.prototype.exec"),P3=Di();Qp.exports=function(t){if(!D3(t))throw new P3("`regex` must be a RegExp");return function(i){return N3(t,i)!==null}}});var rv=k((b9,tv)=>{"use strict";m();var L3=function*(){}.constructor;tv.exports=()=>L3});var ov=k((m9,av)=>{"use strict";m();var nv=Hr(),C3=ev(),U3=C3(/^\s*(?:function)?\*/),F3=Pa()(),iv=Sf(),j3=nv("Object.prototype.toString"),z3=nv("Function.prototype.toString"),Z3=rv();av.exports=function(t){if(typeof t!="function")return!1;if(U3(z3(t)))return!0;if(!F3){var r=j3(t);return r==="[object GeneratorFunction]"}if(!iv)return!1;var i=Z3();return i&&iv(t)===i.prototype}});var lv=k((x9,uv)=>{"use strict";m();var sv=Function.prototype.toString,Pn=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,El,Tf;if(typeof Pn=="function"&&typeof Object.defineProperty=="function")try{El=Object.defineProperty({},"length",{get:function(){throw Tf}}),Tf={},Pn(function(){throw 42},null,El)}catch(e){e!==Tf&&(Pn=null)}else Pn=null;var H3=/^\s*class\b/,Sl=function(t){try{var r=sv.call(t);return H3.test(r)}catch{return!1}},xl=function(t){try{return Sl(t)?!1:(sv.call(t),!0)}catch{return!1}},If=Object.prototype.toString,W3="[object Object]",K3="[object Function]",G3="[object GeneratorFunction]",V3="[object HTMLAllCollection]",$3="[object HTML document.all class]",Y3="[object HTMLCollection]",J3=typeof Symbol=="function"&&!!Symbol.toStringTag,X3=!(0 in[,]),Ml=function(){return!1};typeof document=="object"&&(fv=document.all,If.call(fv)===If.call(document.all)&&(Ml=function(t){if((X3||!t)&&(typeof t>"u"||typeof t=="object"))try{var r=If.call(t);return(r===V3||r===$3||r===Y3||r===W3)&&t("")==null}catch{}return!1}));var fv;uv.exports=Pn?function(t){if(Ml(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{Pn(t,null,El)}catch(r){if(r!==Tf)return!1}return!Sl(t)&&xl(t)}:function(t){if(Ml(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(J3)return xl(t);if(Sl(t))return!1;var r=If.call(t);return r!==K3&&r!==G3&&!/^\[object HTML/.test(r)?!1:xl(t)}});var dv=k((S9,cv)=>{"use strict";m();var Q3=lv(),eS=Object.prototype.toString,hv=Object.prototype.hasOwnProperty,tS=function(t,r,i){for(var n=0,a=t.length;n<a;n++)hv.call(t,n)&&(i==null?r(t[n],n,t):r.call(i,t[n],n,t))},rS=function(t,r,i){for(var n=0,a=t.length;n<a;n++)i==null?r(t.charAt(n),n,t):r.call(i,t.charAt(n),n,t)},iS=function(t,r,i){for(var n in t)hv.call(t,n)&&(i==null?r(t[n],n,t):r.call(i,t[n],n,t))};function nS(e){return eS.call(e)==="[object Array]"}cv.exports=function(t,r,i){if(!Q3(r))throw new TypeError("iterator must be a function");var n;arguments.length>=3&&(n=i),nS(t)?tS(t,r,n):typeof t=="string"?rS(t,r,n):iS(t,r,n)}});var vv=k((A9,pv)=>{"use strict";m();pv.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]});var gv=k((R9,yv)=>{"use strict";m();var Al=vv(),aS=globalThis;yv.exports=function(){for(var t=[],r=0;r<Al.length;r++)typeof aS[Al[r]]=="function"&&(t[t.length]=Al[r]);return t}});var Bl=k((T9,mv)=>{"use strict";m();var bv=La(),oS=ll(),Ln=Di(),_v=Ni();mv.exports=function(t,r,i){if(!t||typeof t!="object"&&typeof t!="function")throw new Ln("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new Ln("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Ln("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Ln("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Ln("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Ln("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,y=!!_v&&_v(t,r);if(bv)bv(t,r,{configurable:o===null&&y?y.configurable:!o,enumerable:n===null&&y?y.enumerable:!n,value:i,writable:a===null&&y?y.writable:!a});else if(s||!n&&!a&&!o)t[r]=i;else throw new oS("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var kl=k((O9,xv)=>{"use strict";m();var Rl=La(),wv=function(){return!!Rl};wv.hasArrayLengthDefineBug=function(){if(!Rl)return null;try{return Rl([],"length",{value:1}).length!==1}catch{return!0}};xv.exports=wv});var Bv=k((D9,Av)=>{"use strict";m();var fS=Bf(),Ev=Bl(),sS=kl()(),Sv=Ni(),Mv=Di(),uS=fS("%Math.floor%");Av.exports=function(t,r){if(typeof t!="function")throw new Mv("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||uS(r)!==r)throw new Mv("`length` must be a positive 32-bit integer");var i=arguments.length>2&&!!arguments[2],n=!0,a=!0;if("length"in t&&Sv){var o=Sv(t,"length");o&&!o.configurable&&(n=!1),o&&!o.writable&&(a=!1)}return(n||a||!i)&&(sS?Ev(t,"length",r,!0,!0):Ev(t,"length",r)),t}});var kv=k((P9,Rv)=>{"use strict";m();var lS=In(),hS=xf(),cS=dl();Rv.exports=function(){return cS(lS,hS,arguments)}});var ja=k((C9,Of)=>{"use strict";m();var dS=Bv(),Tv=La(),pS=Ef(),Iv=kv();Of.exports=function(t){var r=pS(arguments),i=1+t.length-(arguments.length-1);return dS(r,i>0?i:0,!0)};Tv?Tv(Of.exports,"apply",{value:Iv}):Of.exports.apply=Iv});var ql=k((F9,Nv)=>{"use strict";m();var Nf=dv(),vS=gv(),Ov=ja(),Il=Hr(),Df=Ni(),qf=Sf(),yS=Il("Object.prototype.toString"),Dv=Pa()(),qv=globalThis,Tl=vS(),Ol=Il("String.prototype.slice"),gS=Il("Array.prototype.indexOf",!0)||function(t,r){for(var i=0;i<t.length;i+=1)if(t[i]===r)return i;return-1},Pf={__proto__:null};Dv&&Df&&qf?Nf(Tl,function(e){var t=new qv[e];if(Symbol.toStringTag in t&&qf){var r=qf(t),i=Df(r,Symbol.toStringTag);if(!i&&r){var n=qf(r);i=Df(n,Symbol.toStringTag)}if(i&&i.get){var a=Ov(i.get);Pf["$"+e]=a}}}):Nf(Tl,function(e){var t=new qv[e],r=t.slice||t.set;if(r){var i=Ov(r);Pf["$"+e]=i}});var bS=function(t){var r=!1;return Nf(Pf,function(i,n){if(!r)try{"$"+i(t)===n&&(r=Ol(n,1))}catch{}}),r},_S=function(t){var r=!1;return Nf(Pf,function(i,n){if(!r)try{i(t),r=Ol(n,1)}catch{}}),r};Nv.exports=function(t){if(!t||typeof t!="object")return!1;if(!Dv){var r=Ol(yS(t),8,-1);return gS(Tl,r)>-1?r:r!=="Object"?!1:_S(t)}return Df?bS(t):null}});var Dl=k((z9,Pv)=>{"use strict";m();var mS=ql();Pv.exports=function(t){return!!mS(t)}});var Yv=k(Ue=>{"use strict";m();var wS=Kp(),xS=ov(),Kt=ql(),Lv=Dl();function Cn(e){return e.call.bind(e)}var Cv=typeof BigInt<"u",Uv=typeof Symbol<"u",It=Cn(Object.prototype.toString),ES=Cn(Number.prototype.valueOf),SS=Cn(String.prototype.valueOf),MS=Cn(Boolean.prototype.valueOf);Cv&&(Fv=Cn(BigInt.prototype.valueOf));var Fv;Uv&&(jv=Cn(Symbol.prototype.valueOf));var jv;function Za(e,t){if(typeof e!="object")return!1;try{return t(e),!0}catch{return!1}}Ue.isArgumentsObject=wS;Ue.isGeneratorFunction=xS;Ue.isTypedArray=Lv;function AS(e){return typeof Promise<"u"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}Ue.isPromise=AS;function BS(e){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(e):Lv(e)||Zv(e)}Ue.isArrayBufferView=BS;function RS(e){return Kt(e)==="Uint8Array"}Ue.isUint8Array=RS;function kS(e){return Kt(e)==="Uint8ClampedArray"}Ue.isUint8ClampedArray=kS;function TS(e){return Kt(e)==="Uint16Array"}Ue.isUint16Array=TS;function IS(e){return Kt(e)==="Uint32Array"}Ue.isUint32Array=IS;function OS(e){return Kt(e)==="Int8Array"}Ue.isInt8Array=OS;function qS(e){return Kt(e)==="Int16Array"}Ue.isInt16Array=qS;function DS(e){return Kt(e)==="Int32Array"}Ue.isInt32Array=DS;function NS(e){return Kt(e)==="Float32Array"}Ue.isFloat32Array=NS;function PS(e){return Kt(e)==="Float64Array"}Ue.isFloat64Array=PS;function LS(e){return Kt(e)==="BigInt64Array"}Ue.isBigInt64Array=LS;function CS(e){return Kt(e)==="BigUint64Array"}Ue.isBigUint64Array=CS;function Lf(e){return It(e)==="[object Map]"}Lf.working=typeof Map<"u"&&Lf(new Map);function US(e){return typeof Map>"u"?!1:Lf.working?Lf(e):e instanceof Map}Ue.isMap=US;function Cf(e){return It(e)==="[object Set]"}Cf.working=typeof Set<"u"&&Cf(new Set);function FS(e){return typeof Set>"u"?!1:Cf.working?Cf(e):e instanceof Set}Ue.isSet=FS;function Uf(e){return It(e)==="[object WeakMap]"}Uf.working=typeof WeakMap<"u"&&Uf(new WeakMap);function jS(e){return typeof WeakMap>"u"?!1:Uf.working?Uf(e):e instanceof WeakMap}Ue.isWeakMap=jS;function Pl(e){return It(e)==="[object WeakSet]"}Pl.working=typeof WeakSet<"u"&&Pl(new WeakSet);function zS(e){return Pl(e)}Ue.isWeakSet=zS;function Ff(e){return It(e)==="[object ArrayBuffer]"}Ff.working=typeof ArrayBuffer<"u"&&Ff(new ArrayBuffer);function zv(e){return typeof ArrayBuffer>"u"?!1:Ff.working?Ff(e):e instanceof ArrayBuffer}Ue.isArrayBuffer=zv;function jf(e){return It(e)==="[object DataView]"}jf.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&jf(new DataView(new ArrayBuffer(1),0,1));function Zv(e){return typeof DataView>"u"?!1:jf.working?jf(e):e instanceof DataView}Ue.isDataView=Zv;var Nl=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function za(e){return It(e)==="[object SharedArrayBuffer]"}function Hv(e){return typeof Nl>"u"?!1:(typeof za.working>"u"&&(za.working=za(new Nl)),za.working?za(e):e instanceof Nl)}Ue.isSharedArrayBuffer=Hv;function ZS(e){return It(e)==="[object AsyncFunction]"}Ue.isAsyncFunction=ZS;function HS(e){return It(e)==="[object Map Iterator]"}Ue.isMapIterator=HS;function WS(e){return It(e)==="[object Set Iterator]"}Ue.isSetIterator=WS;function KS(e){return It(e)==="[object Generator]"}Ue.isGeneratorObject=KS;function GS(e){return It(e)==="[object WebAssembly.Module]"}Ue.isWebAssemblyCompiledModule=GS;function Wv(e){return Za(e,ES)}Ue.isNumberObject=Wv;function Kv(e){return Za(e,SS)}Ue.isStringObject=Kv;function Gv(e){return Za(e,MS)}Ue.isBooleanObject=Gv;function Vv(e){return Cv&&Za(e,Fv)}Ue.isBigIntObject=Vv;function $v(e){return Uv&&Za(e,jv)}Ue.isSymbolObject=$v;function VS(e){return Wv(e)||Kv(e)||Gv(e)||Vv(e)||$v(e)}Ue.isBoxedPrimitive=VS;function $S(e){return typeof Uint8Array<"u"&&(zv(e)||Hv(e))}Ue.isAnyArrayBuffer=$S;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(Ue,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var Xv=k((K9,Jv)=>{m();Jv.exports=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}});var Gt=k(Fe=>{m();var Qv=Object.getOwnPropertyDescriptors||function(t){for(var r=Object.keys(t),i={},n=0;n<r.length;n++)i[r[n]]=Object.getOwnPropertyDescriptor(t,r[n]);return i},YS=/%[sdj%]/g;Fe.format=function(e){if(!Vf(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(Wr(arguments[r]));return t.join(" ")}for(var r=1,i=arguments,n=i.length,a=String(e).replace(YS,function(s){if(s==="%%")return"%";if(r>=n)return s;switch(s){case"%s":return String(i[r++]);case"%d":return Number(i[r++]);case"%j":try{return JSON.stringify(i[r++])}catch{return"[Circular]"}default:return s}}),o=i[r];r<n;o=i[++r])Gf(o)||!Un(o)?a+=" "+o:a+=" "+Wr(o);return a};Fe.deprecate=function(e,t){if(typeof M.default<"u"&&M.default.noDeprecation===!0)return e;if(typeof M.default>"u")return function(){return Fe.deprecate(e,t).apply(this,arguments)};var r=!1;function i(){if(!r){if(M.default.throwDeprecation)throw new Error(t);M.default.traceDeprecation?console.trace(t):console.error(t),r=!0}return e.apply(this,arguments)}return i};var zf={},ey=/^$/;M.default.env.NODE_DEBUG&&(Zf=M.default.env.NODE_DEBUG,Zf=Zf.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),ey=new RegExp("^"+Zf+"$","i"));var Zf;Fe.debuglog=function(e){if(e=e.toUpperCase(),!zf[e])if(ey.test(e)){var t=M.default.pid;zf[e]=function(){var r=Fe.format.apply(Fe,arguments);console.error("%s %d: %s",e,t,r)}}else zf[e]=function(){};return zf[e]};function Wr(e,t){var r={seen:[],stylize:XS};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),Fl(t)?r.showHidden=t:t&&Fe._extend(r,t),Ci(r.showHidden)&&(r.showHidden=!1),Ci(r.depth)&&(r.depth=2),Ci(r.colors)&&(r.colors=!1),Ci(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=JS),Wf(r,e,r.depth)}Fe.inspect=Wr;Wr.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};Wr.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function JS(e,t){var r=Wr.styles[t];return r?"\x1B["+Wr.colors[r][0]+"m"+e+"\x1B["+Wr.colors[r][1]+"m":e}function XS(e,t){return e}function QS(e){var t={};return e.forEach(function(r,i){t[r]=!0}),t}function Wf(e,t,r){if(e.customInspect&&t&&Hf(t.inspect)&&t.inspect!==Fe.inspect&&!(t.constructor&&t.constructor.prototype===t)){var i=t.inspect(r,e);return Vf(i)||(i=Wf(e,i,r)),i}var n=e8(e,t);if(n)return n;var a=Object.keys(t),o=QS(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),Wa(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return Ll(t);if(a.length===0){if(Hf(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(Ha(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(Kf(t))return e.stylize(Date.prototype.toString.call(t),"date");if(Wa(t))return Ll(t)}var y="",_=!1,x=["{","}"];if(ty(t)&&(_=!0,x=["[","]"]),Hf(t)){var B=t.name?": "+t.name:"";y=" [Function"+B+"]"}if(Ha(t)&&(y=" "+RegExp.prototype.toString.call(t)),Kf(t)&&(y=" "+Date.prototype.toUTCString.call(t)),Wa(t)&&(y=" "+Ll(t)),a.length===0&&(!_||t.length==0))return x[0]+y+x[1];if(r<0)return Ha(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var R;return _?R=t8(e,t,r,o,a):R=a.map(function(T){return Ul(e,t,r,o,T,_)}),e.seen.pop(),r8(R,y,x)}function e8(e,t){if(Ci(t))return e.stylize("undefined","undefined");if(Vf(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(ry(t))return e.stylize(""+t,"number");if(Fl(t))return e.stylize(""+t,"boolean");if(Gf(t))return e.stylize("null","null")}function Ll(e){return"["+Error.prototype.toString.call(e)+"]"}function t8(e,t,r,i,n){for(var a=[],o=0,s=t.length;o<s;++o)iy(t,String(o))?a.push(Ul(e,t,r,i,String(o),!0)):a.push("");return n.forEach(function(y){y.match(/^\d+$/)||a.push(Ul(e,t,r,i,y,!0))}),a}function Ul(e,t,r,i,n,a){var o,s,y;if(y=Object.getOwnPropertyDescriptor(t,n)||{value:t[n]},y.get?y.set?s=e.stylize("[Getter/Setter]","special"):s=e.stylize("[Getter]","special"):y.set&&(s=e.stylize("[Setter]","special")),iy(i,n)||(o="["+n+"]"),s||(e.seen.indexOf(y.value)<0?(Gf(r)?s=Wf(e,y.value,null):s=Wf(e,y.value,r-1),s.indexOf(`
1
+ var bsvStatusList=(()=>{var DE=Object.create;var z0=Object.defineProperty;var NE=Object.getOwnPropertyDescriptor;var PE=Object.getOwnPropertyNames;var LE=Object.getPrototypeOf,CE=Object.prototype.hasOwnProperty;var UE=(e,t,r)=>()=>{if(r)throw r[0];try{return e&&(t=e(e=0)),t}catch(i){throw r=[i],i}};var k=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var FE=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of PE(t))!CE.call(e,n)&&n!==r&&z0(e,n,{get:()=>t[n],enumerable:!(i=NE(t,n))||i.enumerable});return e};var Z0=(e,t,r)=>(r=e!=null?DE(LE(e)):{},FE(t||!e||!e.__esModule?z0(r,"default",{value:e,enumerable:!0}):r,e));var V0=k((kO,G0)=>{m();var et=G0.exports={},sr,ur;function Ku(){throw new Error("setTimeout has not been defined")}function Gu(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?sr=setTimeout:sr=Ku}catch{sr=Ku}try{typeof clearTimeout=="function"?ur=clearTimeout:ur=Gu}catch{ur=Gu}})();function H0(e){if(sr===setTimeout)return setTimeout(e,0);if((sr===Ku||!sr)&&setTimeout)return sr=setTimeout,setTimeout(e,0);try{return sr(e,0)}catch{try{return sr.call(null,e,0)}catch{return sr.call(this,e,0)}}}function jE(e){if(ur===clearTimeout)return clearTimeout(e);if((ur===Gu||!ur)&&clearTimeout)return ur=clearTimeout,clearTimeout(e);try{return ur(e)}catch{try{return ur.call(null,e)}catch{return ur.call(this,e)}}}var Mr=[],Sn=!1,ki,uf=-1;function zE(){!Sn||!ki||(Sn=!1,ki.length?Mr=ki.concat(Mr):uf=-1,Mr.length&&W0())}function W0(){if(!Sn){var e=H0(zE);Sn=!0;for(var t=Mr.length;t;){for(ki=Mr,Mr=[];++uf<t;)ki&&ki[uf].run();uf=-1,t=Mr.length}ki=null,Sn=!1,jE(e)}}et.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];Mr.push(new K0(e,t)),Mr.length===1&&!Sn&&H0(W0)};function K0(e,t){this.fun=e,this.array=t}K0.prototype.run=function(){this.fun.apply(null,this.array)};et.title="browser";et.browser=!0;et.env={};et.argv=[];et.version="";et.versions={};function Ar(){}et.on=Ar;et.addListener=Ar;et.once=Ar;et.off=Ar;et.removeListener=Ar;et.removeAllListeners=Ar;et.emit=Ar;et.prependListener=Ar;et.prependOnceListener=Ar;et.listeners=function(e){return[]};et.binding=function(e){throw new Error("process.binding is not supported")};et.cwd=function(){return"/"};et.chdir=function(e){throw new Error("process.chdir is not supported")};et.umask=function(){return 0}});var J0=k(lf=>{"use strict";m();lf.byteLength=HE;lf.toByteArray=KE;lf.fromByteArray=$E;var lr=[],Tt=[],ZE=typeof Uint8Array<"u"?Uint8Array:Array,Vu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Ti=0,$0=Vu.length;Ti<$0;++Ti)lr[Ti]=Vu[Ti],Tt[Vu.charCodeAt(Ti)]=Ti;var Ti,$0;Tt[45]=62;Tt[95]=63;function Y0(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var i=r===t?0:4-r%4;return[r,i]}function HE(e){var t=Y0(e),r=t[0],i=t[1];return(r+i)*3/4-i}function WE(e,t,r){return(t+r)*3/4-r}function KE(e){var t,r=Y0(e),i=r[0],n=r[1],a=new ZE(WE(e,i,n)),o=0,s=n>0?i-4:i,y;for(y=0;y<s;y+=4)t=Tt[e.charCodeAt(y)]<<18|Tt[e.charCodeAt(y+1)]<<12|Tt[e.charCodeAt(y+2)]<<6|Tt[e.charCodeAt(y+3)],a[o++]=t>>16&255,a[o++]=t>>8&255,a[o++]=t&255;return n===2&&(t=Tt[e.charCodeAt(y)]<<2|Tt[e.charCodeAt(y+1)]>>4,a[o++]=t&255),n===1&&(t=Tt[e.charCodeAt(y)]<<10|Tt[e.charCodeAt(y+1)]<<4|Tt[e.charCodeAt(y+2)]>>2,a[o++]=t>>8&255,a[o++]=t&255),a}function GE(e){return lr[e>>18&63]+lr[e>>12&63]+lr[e>>6&63]+lr[e&63]}function VE(e,t,r){for(var i,n=[],a=t;a<r;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(e[a+2]&255),n.push(GE(i));return n.join("")}function $E(e){for(var t,r=e.length,i=r%3,n=[],a=16383,o=0,s=r-i;o<s;o+=a)n.push(VE(e,o,o+a>s?s:o+a));return i===1?(t=e[r-1],n.push(lr[t>>2]+lr[t<<4&63]+"==")):i===2&&(t=(e[r-2]<<8)+e[r-1],n.push(lr[t>>10]+lr[t>>4&63]+lr[t<<2&63]+"=")),n.join("")}});var X0=k($u=>{m();$u.read=function(e,t,r,i,n){var a,o,s=n*8-i-1,y=(1<<s)-1,b=y>>1,x=-7,B=r?n-1:0,R=r?-1:1,T=e[t+B];for(B+=R,a=T&(1<<-x)-1,T>>=-x,x+=s;x>0;a=a*256+e[t+B],B+=R,x-=8);for(o=a&(1<<-x)-1,a>>=-x,x+=i;x>0;o=o*256+e[t+B],B+=R,x-=8);if(a===0)a=1-b;else{if(a===y)return o?NaN:(T?-1:1)*(1/0);o=o+Math.pow(2,i),a=a-b}return(T?-1:1)*o*Math.pow(2,a-i)};$u.write=function(e,t,r,i,n,a){var o,s,y,b=a*8-n-1,x=(1<<b)-1,B=x>>1,R=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,T=i?0:a-1,O=i?1:-1,D=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=x):(o=Math.floor(Math.log(t)/Math.LN2),t*(y=Math.pow(2,-o))<1&&(o--,y*=2),o+B>=1?t+=R/y:t+=R*Math.pow(2,1-B),t*y>=2&&(o++,y/=2),o+B>=x?(s=0,o=x):o+B>=1?(s=(t*y-1)*Math.pow(2,n),o=o+B):(s=t*Math.pow(2,B-1)*Math.pow(2,n),o=0));n>=8;e[r+T]=s&255,T+=O,s/=256,n-=8);for(o=o<<n|s,b+=n;b>0;e[r+T]=o&255,T+=O,o/=256,b-=8);e[r+T-O]|=D*128}});var st=k(Rn=>{"use strict";m();var Yu=J0(),An=X0(),Q0=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Rn.Buffer=q;Rn.SlowBuffer=t6;Rn.INSPECT_MAX_BYTES=50;var hf=2147483647;Rn.kMaxLength=hf;q.TYPED_ARRAY_SUPPORT=YE();!q.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 YE(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(q.prototype,"parent",{enumerable:!0,get:function(){if(q.isBuffer(this))return this.buffer}});Object.defineProperty(q.prototype,"offset",{enumerable:!0,get:function(){if(q.isBuffer(this))return this.byteOffset}});function Br(e){if(e>hf)throw new RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,q.prototype),t}function q(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return el(e)}return id(e,t,r)}q.poolSize=8192;function id(e,t,r){if(typeof e=="string")return XE(e,t);if(ArrayBuffer.isView(e))return QE(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(hr(e,ArrayBuffer)||e&&hr(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(hr(e,SharedArrayBuffer)||e&&hr(e.buffer,SharedArrayBuffer)))return Xu(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let i=e.valueOf&&e.valueOf();if(i!=null&&i!==e)return q.from(i,t,r);let n=e6(e);if(n)return n;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return q.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}q.from=function(e,t,r){return id(e,t,r)};Object.setPrototypeOf(q.prototype,Uint8Array.prototype);Object.setPrototypeOf(q,Uint8Array);function nd(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function JE(e,t,r){return nd(e),e<=0?Br(e):t!==void 0?typeof r=="string"?Br(e).fill(t,r):Br(e).fill(t):Br(e)}q.alloc=function(e,t,r){return JE(e,t,r)};function el(e){return nd(e),Br(e<0?0:tl(e)|0)}q.allocUnsafe=function(e){return el(e)};q.allocUnsafeSlow=function(e){return el(e)};function XE(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!q.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let r=ad(e,t)|0,i=Br(r),n=i.write(e,t);return n!==r&&(i=i.slice(0,n)),i}function Ju(e){let t=e.length<0?0:tl(e.length)|0,r=Br(t);for(let i=0;i<t;i+=1)r[i]=e[i]&255;return r}function QE(e){if(hr(e,Uint8Array)){let t=new Uint8Array(e);return Xu(t.buffer,t.byteOffset,t.byteLength)}return Ju(e)}function Xu(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');let i;return t===void 0&&r===void 0?i=new Uint8Array(e):r===void 0?i=new Uint8Array(e,t):i=new Uint8Array(e,t,r),Object.setPrototypeOf(i,q.prototype),i}function e6(e){if(q.isBuffer(e)){let t=tl(e.length)|0,r=Br(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||il(e.length)?Br(0):Ju(e);if(e.type==="Buffer"&&Array.isArray(e.data))return Ju(e.data)}function tl(e){if(e>=hf)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+hf.toString(16)+" bytes");return e|0}function t6(e){return+e!=e&&(e=0),q.alloc(+e)}q.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==q.prototype};q.compare=function(t,r){if(hr(t,Uint8Array)&&(t=q.from(t,t.offset,t.byteLength)),hr(r,Uint8Array)&&(r=q.from(r,r.offset,r.byteLength)),!q.isBuffer(t)||!q.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;let i=t.length,n=r.length;for(let a=0,o=Math.min(i,n);a<o;++a)if(t[a]!==r[a]){i=t[a],n=r[a];break}return i<n?-1:n<i?1:0};q.isEncoding=function(t){switch(String(t).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}};q.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return q.alloc(0);let i;if(r===void 0)for(r=0,i=0;i<t.length;++i)r+=t[i].length;let n=q.allocUnsafe(r),a=0;for(i=0;i<t.length;++i){let o=t[i];if(hr(o,Uint8Array))a+o.length>n.length?(q.isBuffer(o)||(o=q.from(o)),o.copy(n,a)):Uint8Array.prototype.set.call(n,o,a);else if(q.isBuffer(o))o.copy(n,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=o.length}return n};function ad(e,t){if(q.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||hr(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,i=arguments.length>2&&arguments[2]===!0;if(!i&&r===0)return 0;let n=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return Qu(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return pd(e).length;default:if(n)return i?-1:Qu(e).length;t=(""+t).toLowerCase(),n=!0}}q.byteLength=ad;function r6(e,t,r){let i=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return c6(this,t,r);case"utf8":case"utf-8":return fd(this,t,r);case"ascii":return l6(this,t,r);case"latin1":case"binary":return h6(this,t,r);case"base64":return s6(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d6(this,t,r);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}q.prototype._isBuffer=!0;function Ii(e,t,r){let i=e[t];e[t]=e[r],e[r]=i}q.prototype.swap16=function(){let t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;r<t;r+=2)Ii(this,r,r+1);return this};q.prototype.swap32=function(){let t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let r=0;r<t;r+=4)Ii(this,r,r+3),Ii(this,r+1,r+2);return this};q.prototype.swap64=function(){let t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let r=0;r<t;r+=8)Ii(this,r,r+7),Ii(this,r+1,r+6),Ii(this,r+2,r+5),Ii(this,r+3,r+4);return this};q.prototype.toString=function(){let t=this.length;return t===0?"":arguments.length===0?fd(this,0,t):r6.apply(this,arguments)};q.prototype.toLocaleString=q.prototype.toString;q.prototype.equals=function(t){if(!q.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:q.compare(this,t)===0};q.prototype.inspect=function(){let t="",r=Rn.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};Q0&&(q.prototype[Q0]=q.prototype.inspect);q.prototype.compare=function(t,r,i,n,a){if(hr(t,Uint8Array)&&(t=q.from(t,t.offset,t.byteLength)),!q.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),i===void 0&&(i=t?t.length:0),n===void 0&&(n=0),a===void 0&&(a=this.length),r<0||i>t.length||n<0||a>this.length)throw new RangeError("out of range index");if(n>=a&&r>=i)return 0;if(n>=a)return-1;if(r>=i)return 1;if(r>>>=0,i>>>=0,n>>>=0,a>>>=0,this===t)return 0;let o=a-n,s=i-r,y=Math.min(o,s),b=this.slice(n,a),x=t.slice(r,i);for(let B=0;B<y;++B)if(b[B]!==x[B]){o=b[B],s=x[B];break}return o<s?-1:s<o?1:0};function od(e,t,r,i,n){if(e.length===0)return-1;if(typeof r=="string"?(i=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,il(r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0)if(n)r=0;else return-1;if(typeof t=="string"&&(t=q.from(t,i)),q.isBuffer(t))return t.length===0?-1:ed(e,t,r,i,n);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):ed(e,[t],r,i,n);throw new TypeError("val must be string, number or Buffer")}function ed(e,t,r,i,n){let a=1,o=e.length,s=t.length;if(i!==void 0&&(i=String(i).toLowerCase(),i==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le")){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,r/=2}function y(x,B){return a===1?x[B]:x.readUInt16BE(B*a)}let b;if(n){let x=-1;for(b=r;b<o;b++)if(y(e,b)===y(t,x===-1?0:b-x)){if(x===-1&&(x=b),b-x+1===s)return x*a}else x!==-1&&(b-=b-x),x=-1}else for(r+s>o&&(r=o-s),b=r;b>=0;b--){let x=!0;for(let B=0;B<s;B++)if(y(e,b+B)!==y(t,B)){x=!1;break}if(x)return b}return-1}q.prototype.includes=function(t,r,i){return this.indexOf(t,r,i)!==-1};q.prototype.indexOf=function(t,r,i){return od(this,t,r,i,!0)};q.prototype.lastIndexOf=function(t,r,i){return od(this,t,r,i,!1)};function i6(e,t,r,i){r=Number(r)||0;let n=e.length-r;i?(i=Number(i),i>n&&(i=n)):i=n;let a=t.length;i>a/2&&(i=a/2);let o;for(o=0;o<i;++o){let s=parseInt(t.substr(o*2,2),16);if(il(s))return o;e[r+o]=s}return o}function n6(e,t,r,i){return cf(Qu(t,e.length-r),e,r,i)}function a6(e,t,r,i){return cf(g6(t),e,r,i)}function o6(e,t,r,i){return cf(pd(t),e,r,i)}function f6(e,t,r,i){return cf(b6(t,e.length-r),e,r,i)}q.prototype.write=function(t,r,i,n){if(r===void 0)n="utf8",i=this.length,r=0;else if(i===void 0&&typeof r=="string")n=r,i=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(i)?(i=i>>>0,n===void 0&&(n="utf8")):(n=i,i=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let a=this.length-r;if((i===void 0||i>a)&&(i=a),t.length>0&&(i<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return i6(this,t,r,i);case"utf8":case"utf-8":return n6(this,t,r,i);case"ascii":case"latin1":case"binary":return a6(this,t,r,i);case"base64":return o6(this,t,r,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return f6(this,t,r,i);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}};q.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function s6(e,t,r){return t===0&&r===e.length?Yu.fromByteArray(e):Yu.fromByteArray(e.slice(t,r))}function fd(e,t,r){r=Math.min(e.length,r);let i=[],n=t;for(;n<r;){let a=e[n],o=null,s=a>239?4:a>223?3:a>191?2:1;if(n+s<=r){let y,b,x,B;switch(s){case 1:a<128&&(o=a);break;case 2:y=e[n+1],(y&192)===128&&(B=(a&31)<<6|y&63,B>127&&(o=B));break;case 3:y=e[n+1],b=e[n+2],(y&192)===128&&(b&192)===128&&(B=(a&15)<<12|(y&63)<<6|b&63,B>2047&&(B<55296||B>57343)&&(o=B));break;case 4:y=e[n+1],b=e[n+2],x=e[n+3],(y&192)===128&&(b&192)===128&&(x&192)===128&&(B=(a&15)<<18|(y&63)<<12|(b&63)<<6|x&63,B>65535&&B<1114112&&(o=B))}}o===null?(o=65533,s=1):o>65535&&(o-=65536,i.push(o>>>10&1023|55296),o=56320|o&1023),i.push(o),n+=s}return u6(i)}var td=4096;function u6(e){let t=e.length;if(t<=td)return String.fromCharCode.apply(String,e);let r="",i=0;for(;i<t;)r+=String.fromCharCode.apply(String,e.slice(i,i+=td));return r}function l6(e,t,r){let i="";r=Math.min(e.length,r);for(let n=t;n<r;++n)i+=String.fromCharCode(e[n]&127);return i}function h6(e,t,r){let i="";r=Math.min(e.length,r);for(let n=t;n<r;++n)i+=String.fromCharCode(e[n]);return i}function c6(e,t,r){let i=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>i)&&(r=i);let n="";for(let a=t;a<r;++a)n+=_6[e[a]];return n}function d6(e,t,r){let i=e.slice(t,r),n="";for(let a=0;a<i.length-1;a+=2)n+=String.fromCharCode(i[a]+i[a+1]*256);return n}q.prototype.slice=function(t,r){let i=this.length;t=~~t,r=r===void 0?i:~~r,t<0?(t+=i,t<0&&(t=0)):t>i&&(t=i),r<0?(r+=i,r<0&&(r=0)):r>i&&(r=i),r<t&&(r=t);let n=this.subarray(t,r);return Object.setPrototypeOf(n,q.prototype),n};function at(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}q.prototype.readUintLE=q.prototype.readUIntLE=function(t,r,i){t=t>>>0,r=r>>>0,i||at(t,r,this.length);let n=this[t],a=1,o=0;for(;++o<r&&(a*=256);)n+=this[t+o]*a;return n};q.prototype.readUintBE=q.prototype.readUIntBE=function(t,r,i){t=t>>>0,r=r>>>0,i||at(t,r,this.length);let n=this[t+--r],a=1;for(;r>0&&(a*=256);)n+=this[t+--r]*a;return n};q.prototype.readUint8=q.prototype.readUInt8=function(t,r){return t=t>>>0,r||at(t,1,this.length),this[t]};q.prototype.readUint16LE=q.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||at(t,2,this.length),this[t]|this[t+1]<<8};q.prototype.readUint16BE=q.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||at(t,2,this.length),this[t]<<8|this[t+1]};q.prototype.readUint32LE=q.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||at(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};q.prototype.readUint32BE=q.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||at(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};q.prototype.readBigUInt64LE=Zr(function(t){t=t>>>0,Bn(t,"offset");let r=this[t],i=this[t+7];(r===void 0||i===void 0)&&Na(t,this.length-8);let n=r+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,a=this[++t]+this[++t]*2**8+this[++t]*2**16+i*2**24;return BigInt(n)+(BigInt(a)<<BigInt(32))});q.prototype.readBigUInt64BE=Zr(function(t){t=t>>>0,Bn(t,"offset");let r=this[t],i=this[t+7];(r===void 0||i===void 0)&&Na(t,this.length-8);let n=r*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],a=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+i;return(BigInt(n)<<BigInt(32))+BigInt(a)});q.prototype.readIntLE=function(t,r,i){t=t>>>0,r=r>>>0,i||at(t,r,this.length);let n=this[t],a=1,o=0;for(;++o<r&&(a*=256);)n+=this[t+o]*a;return a*=128,n>=a&&(n-=Math.pow(2,8*r)),n};q.prototype.readIntBE=function(t,r,i){t=t>>>0,r=r>>>0,i||at(t,r,this.length);let n=r,a=1,o=this[t+--n];for(;n>0&&(a*=256);)o+=this[t+--n]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*r)),o};q.prototype.readInt8=function(t,r){return t=t>>>0,r||at(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};q.prototype.readInt16LE=function(t,r){t=t>>>0,r||at(t,2,this.length);let i=this[t]|this[t+1]<<8;return i&32768?i|4294901760:i};q.prototype.readInt16BE=function(t,r){t=t>>>0,r||at(t,2,this.length);let i=this[t+1]|this[t]<<8;return i&32768?i|4294901760:i};q.prototype.readInt32LE=function(t,r){return t=t>>>0,r||at(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};q.prototype.readInt32BE=function(t,r){return t=t>>>0,r||at(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};q.prototype.readBigInt64LE=Zr(function(t){t=t>>>0,Bn(t,"offset");let r=this[t],i=this[t+7];(r===void 0||i===void 0)&&Na(t,this.length-8);let n=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(i<<24);return(BigInt(n)<<BigInt(32))+BigInt(r+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24)});q.prototype.readBigInt64BE=Zr(function(t){t=t>>>0,Bn(t,"offset");let r=this[t],i=this[t+7];(r===void 0||i===void 0)&&Na(t,this.length-8);let n=(r<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(n)<<BigInt(32))+BigInt(this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+i)});q.prototype.readFloatLE=function(t,r){return t=t>>>0,r||at(t,4,this.length),An.read(this,t,!0,23,4)};q.prototype.readFloatBE=function(t,r){return t=t>>>0,r||at(t,4,this.length),An.read(this,t,!1,23,4)};q.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||at(t,8,this.length),An.read(this,t,!0,52,8)};q.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||at(t,8,this.length),An.read(this,t,!1,52,8)};function xt(e,t,r,i,n,a){if(!q.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||t<a)throw new RangeError('"value" argument is out of bounds');if(r+i>e.length)throw new RangeError("Index out of range")}q.prototype.writeUintLE=q.prototype.writeUIntLE=function(t,r,i,n){if(t=+t,r=r>>>0,i=i>>>0,!n){let s=Math.pow(2,8*i)-1;xt(this,t,r,i,s,0)}let a=1,o=0;for(this[r]=t&255;++o<i&&(a*=256);)this[r+o]=t/a&255;return r+i};q.prototype.writeUintBE=q.prototype.writeUIntBE=function(t,r,i,n){if(t=+t,r=r>>>0,i=i>>>0,!n){let s=Math.pow(2,8*i)-1;xt(this,t,r,i,s,0)}let a=i-1,o=1;for(this[r+a]=t&255;--a>=0&&(o*=256);)this[r+a]=t/o&255;return r+i};q.prototype.writeUint8=q.prototype.writeUInt8=function(t,r,i){return t=+t,r=r>>>0,i||xt(this,t,r,1,255,0),this[r]=t&255,r+1};q.prototype.writeUint16LE=q.prototype.writeUInt16LE=function(t,r,i){return t=+t,r=r>>>0,i||xt(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};q.prototype.writeUint16BE=q.prototype.writeUInt16BE=function(t,r,i){return t=+t,r=r>>>0,i||xt(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};q.prototype.writeUint32LE=q.prototype.writeUInt32LE=function(t,r,i){return t=+t,r=r>>>0,i||xt(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};q.prototype.writeUint32BE=q.prototype.writeUInt32BE=function(t,r,i){return t=+t,r=r>>>0,i||xt(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function sd(e,t,r,i,n){dd(t,i,n,e,r,7);let a=Number(t&BigInt(4294967295));e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,r}function ud(e,t,r,i,n){dd(t,i,n,e,r,7);let a=Number(t&BigInt(4294967295));e[r+7]=a,a=a>>8,e[r+6]=a,a=a>>8,e[r+5]=a,a=a>>8,e[r+4]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=o,o=o>>8,e[r+2]=o,o=o>>8,e[r+1]=o,o=o>>8,e[r]=o,r+8}q.prototype.writeBigUInt64LE=Zr(function(t,r=0){return sd(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});q.prototype.writeBigUInt64BE=Zr(function(t,r=0){return ud(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});q.prototype.writeIntLE=function(t,r,i,n){if(t=+t,r=r>>>0,!n){let y=Math.pow(2,8*i-1);xt(this,t,r,i,y-1,-y)}let a=0,o=1,s=0;for(this[r]=t&255;++a<i&&(o*=256);)t<0&&s===0&&this[r+a-1]!==0&&(s=1),this[r+a]=(t/o>>0)-s&255;return r+i};q.prototype.writeIntBE=function(t,r,i,n){if(t=+t,r=r>>>0,!n){let y=Math.pow(2,8*i-1);xt(this,t,r,i,y-1,-y)}let a=i-1,o=1,s=0;for(this[r+a]=t&255;--a>=0&&(o*=256);)t<0&&s===0&&this[r+a+1]!==0&&(s=1),this[r+a]=(t/o>>0)-s&255;return r+i};q.prototype.writeInt8=function(t,r,i){return t=+t,r=r>>>0,i||xt(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};q.prototype.writeInt16LE=function(t,r,i){return t=+t,r=r>>>0,i||xt(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};q.prototype.writeInt16BE=function(t,r,i){return t=+t,r=r>>>0,i||xt(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};q.prototype.writeInt32LE=function(t,r,i){return t=+t,r=r>>>0,i||xt(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};q.prototype.writeInt32BE=function(t,r,i){return t=+t,r=r>>>0,i||xt(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};q.prototype.writeBigInt64LE=Zr(function(t,r=0){return sd(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});q.prototype.writeBigInt64BE=Zr(function(t,r=0){return ud(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ld(e,t,r,i,n,a){if(r+i>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function hd(e,t,r,i,n){return t=+t,r=r>>>0,n||ld(e,t,r,4,34028234663852886e22,-34028234663852886e22),An.write(e,t,r,i,23,4),r+4}q.prototype.writeFloatLE=function(t,r,i){return hd(this,t,r,!0,i)};q.prototype.writeFloatBE=function(t,r,i){return hd(this,t,r,!1,i)};function cd(e,t,r,i,n){return t=+t,r=r>>>0,n||ld(e,t,r,8,17976931348623157e292,-17976931348623157e292),An.write(e,t,r,i,52,8),r+8}q.prototype.writeDoubleLE=function(t,r,i){return cd(this,t,r,!0,i)};q.prototype.writeDoubleBE=function(t,r,i){return cd(this,t,r,!1,i)};q.prototype.copy=function(t,r,i,n){if(!q.isBuffer(t))throw new TypeError("argument should be a Buffer");if(i||(i=0),!n&&n!==0&&(n=this.length),r>=t.length&&(r=t.length),r||(r=0),n>0&&n<i&&(n=i),n===i||t.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-r<n-i&&(n=t.length-r+i);let a=n-i;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,i,n):Uint8Array.prototype.set.call(t,this.subarray(i,n),r),a};q.prototype.fill=function(t,r,i,n){if(typeof t=="string"){if(typeof r=="string"?(n=r,r=0,i=this.length):typeof i=="string"&&(n=i,i=this.length),n!==void 0&&typeof n!="string")throw new TypeError("encoding must be a string");if(typeof n=="string"&&!q.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(t.length===1){let o=t.charCodeAt(0);(n==="utf8"&&o<128||n==="latin1")&&(t=o)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(r<0||this.length<r||this.length<i)throw new RangeError("Out of range index");if(i<=r)return this;r=r>>>0,i=i===void 0?this.length:i>>>0,t||(t=0);let a;if(typeof t=="number")for(a=r;a<i;++a)this[a]=t;else{let o=q.isBuffer(t)?t:q.from(t,n),s=o.length;if(s===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(a=0;a<i-r;++a)this[a+r]=o[a%s]}return this};var Mn={};function rl(e,t,r){Mn[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(n){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:n,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}rl("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError);rl("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError);rl("ERR_OUT_OF_RANGE",function(e,t,r){let i=`The value of "${e}" is out of range.`,n=r;return Number.isInteger(r)&&Math.abs(r)>2**32?n=rd(String(r)):typeof r=="bigint"&&(n=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(n=rd(n)),n+="n"),i+=` It must be ${t}. Received ${n}`,i},RangeError);function rd(e){let t="",r=e.length,i=e[0]==="-"?1:0;for(;r>=i+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function p6(e,t,r){Bn(t,"offset"),(e[t]===void 0||e[t+r]===void 0)&&Na(t,e.length-(r+1))}function dd(e,t,r,i,n,a){if(e>r||e<t){let o=typeof t=="bigint"?"n":"",s;throw a>3?t===0||t===BigInt(0)?s=`>= 0${o} and < 2${o} ** ${(a+1)*8}${o}`:s=`>= -(2${o} ** ${(a+1)*8-1}${o}) and < 2 ** ${(a+1)*8-1}${o}`:s=`>= ${t}${o} and <= ${r}${o}`,new Mn.ERR_OUT_OF_RANGE("value",s,e)}p6(i,n,a)}function Bn(e,t){if(typeof e!="number")throw new Mn.ERR_INVALID_ARG_TYPE(t,"number",e)}function Na(e,t,r){throw Math.floor(e)!==e?(Bn(e,r),new Mn.ERR_OUT_OF_RANGE(r||"offset","an integer",e)):t<0?new Mn.ERR_BUFFER_OUT_OF_BOUNDS:new Mn.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}var v6=/[^+/0-9A-Za-z-_]/g;function y6(e){if(e=e.split("=")[0],e=e.trim().replace(v6,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function Qu(e,t){t=t||1/0;let r,i=e.length,n=null,a=[];for(let o=0;o<i;++o){if(r=e.charCodeAt(o),r>55295&&r<57344){if(!n){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(o+1===i){(t-=3)>-1&&a.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),n=r;continue}r=(n-55296<<10|r-56320)+65536}else n&&(t-=3)>-1&&a.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return a}function g6(e){let t=[];for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function b6(e,t){let r,i,n,a=[];for(let o=0;o<e.length&&!((t-=2)<0);++o)r=e.charCodeAt(o),i=r>>8,n=r%256,a.push(n),a.push(i);return a}function pd(e){return Yu.toByteArray(y6(e))}function cf(e,t,r,i){let n;for(n=0;n<i&&!(n+r>=t.length||n>=e.length);++n)t[n+r]=e[n];return n}function hr(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function il(e){return e!==e}var _6=(function(){let e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){let i=r*16;for(let n=0;n<16;++n)t[i+n]=e[r]+e[n]}return t})();function Zr(e){return typeof BigInt>"u"?m6:e}function m6(){throw new Error("BigInt not supported")}});var M,I,m=UE(()=>{M=Z0(V0()),I=Z0(st())});var Ne=k((nl,yd)=>{m();var df=st(),cr=df.Buffer;function vd(e,t){for(var r in e)t[r]=e[r]}cr.from&&cr.alloc&&cr.allocUnsafe&&cr.allocUnsafeSlow?yd.exports=df:(vd(df,nl),nl.Buffer=Oi);function Oi(e,t,r){return cr(e,t,r)}Oi.prototype=Object.create(cr.prototype);vd(cr,Oi);Oi.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return cr(e,t,r)};Oi.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var i=cr(e);return t!==void 0?typeof r=="string"?i.fill(t,r):i.fill(t):i.fill(0),i};Oi.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return cr(e)};Oi.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return df.SlowBuffer(e)}});var qi=k((FO,ol)=>{"use strict";m();var al=65536,w6=4294967295;function x6(){throw new Error(`Secure random number generation is not supported by this browser.
2
+ Use Chrome, Firefox or Internet Explorer 11`)}var E6=Ne().Buffer,pf=globalThis.crypto||globalThis.msCrypto;pf&&pf.getRandomValues?ol.exports=S6:ol.exports=x6;function S6(e,t){if(e>w6)throw new RangeError("requested too many random bytes");var r=E6.allocUnsafe(e);if(e>0)if(e>al)for(var i=0;i<e;i+=al)pf.getRandomValues(r.slice(i,i+al));else pf.getRandomValues(r);return typeof t=="function"?M.default.nextTick(function(){t(null,r)}):r}});var re=k((zO,fl)=>{m();typeof Object.create=="function"?fl.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:fl.exports=function(t,r){if(r){t.super_=r;var i=function(){};i.prototype=r.prototype,t.prototype=new i,t.prototype.constructor=t}}});var Tn=k((HO,sl)=>{"use strict";m();var kn=typeof Reflect=="object"?Reflect:null,gd=kn&&typeof kn.apply=="function"?kn.apply:function(t,r,i){return Function.prototype.apply.call(t,r,i)},vf;kn&&typeof kn.ownKeys=="function"?vf=kn.ownKeys:Object.getOwnPropertySymbols?vf=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:vf=function(t){return Object.getOwnPropertyNames(t)};function M6(e){console&&console.warn&&console.warn(e)}var _d=Number.isNaN||function(t){return t!==t};function We(){We.init.call(this)}sl.exports=We;sl.exports.once=k6;We.EventEmitter=We;We.prototype._events=void 0;We.prototype._eventsCount=0;We.prototype._maxListeners=void 0;var bd=10;function yf(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(We,"defaultMaxListeners",{enumerable:!0,get:function(){return bd},set:function(e){if(typeof e!="number"||e<0||_d(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");bd=e}});We.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};We.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||_d(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function md(e){return e._maxListeners===void 0?We.defaultMaxListeners:e._maxListeners}We.prototype.getMaxListeners=function(){return md(this)};We.prototype.emit=function(t){for(var r=[],i=1;i<arguments.length;i++)r.push(arguments[i]);var n=t==="error",a=this._events;if(a!==void 0)n=n&&a.error===void 0;else if(!n)return!1;if(n){var o;if(r.length>0&&(o=r[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var y=a[t];if(y===void 0)return!1;if(typeof y=="function")gd(y,this,r);else for(var b=y.length,x=Md(y,b),i=0;i<b;++i)gd(x[i],this,r);return!0};function wd(e,t,r,i){var n,a,o;if(yf(r),a=e._events,a===void 0?(a=e._events=Object.create(null),e._eventsCount=0):(a.newListener!==void 0&&(e.emit("newListener",t,r.listener?r.listener:r),a=e._events),o=a[t]),o===void 0)o=a[t]=r,++e._eventsCount;else if(typeof o=="function"?o=a[t]=i?[r,o]:[o,r]:i?o.unshift(r):o.push(r),n=md(e),n>0&&o.length>n&&!o.warned){o.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=o.length,M6(s)}return e}We.prototype.addListener=function(t,r){return wd(this,t,r,!1)};We.prototype.on=We.prototype.addListener;We.prototype.prependListener=function(t,r){return wd(this,t,r,!0)};function A6(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function xd(e,t,r){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},n=A6.bind(i);return n.listener=r,i.wrapFn=n,n}We.prototype.once=function(t,r){return yf(r),this.on(t,xd(this,t,r)),this};We.prototype.prependOnceListener=function(t,r){return yf(r),this.prependListener(t,xd(this,t,r)),this};We.prototype.removeListener=function(t,r){var i,n,a,o,s;if(yf(r),n=this._events,n===void 0)return this;if(i=n[t],i===void 0)return this;if(i===r||i.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete n[t],n.removeListener&&this.emit("removeListener",t,i.listener||r));else if(typeof i!="function"){for(a=-1,o=i.length-1;o>=0;o--)if(i[o]===r||i[o].listener===r){s=i[o].listener,a=o;break}if(a<0)return this;a===0?i.shift():B6(i,a),i.length===1&&(n[t]=i[0]),n.removeListener!==void 0&&this.emit("removeListener",t,s||r)}return this};We.prototype.off=We.prototype.removeListener;We.prototype.removeAllListeners=function(t){var r,i,n;if(i=this._events,i===void 0)return this;if(i.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):i[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete i[t]),this;if(arguments.length===0){var a=Object.keys(i),o;for(n=0;n<a.length;++n)o=a[n],o!=="removeListener"&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(r=i[t],typeof r=="function")this.removeListener(t,r);else if(r!==void 0)for(n=r.length-1;n>=0;n--)this.removeListener(t,r[n]);return this};function Ed(e,t,r){var i=e._events;if(i===void 0)return[];var n=i[t];return n===void 0?[]:typeof n=="function"?r?[n.listener||n]:[n]:r?R6(n):Md(n,n.length)}We.prototype.listeners=function(t){return Ed(this,t,!0)};We.prototype.rawListeners=function(t){return Ed(this,t,!1)};We.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):Sd.call(e,t)};We.prototype.listenerCount=Sd;function Sd(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}We.prototype.eventNames=function(){return this._eventsCount>0?vf(this._events):[]};function Md(e,t){for(var r=new Array(t),i=0;i<t;++i)r[i]=e[i];return r}function B6(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function R6(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function k6(e,t){return new Promise(function(r,i){function n(o){e.removeListener(t,a),i(o)}function a(){typeof e.removeListener=="function"&&e.removeListener("error",n),r([].slice.call(arguments))}Ad(e,t,a,{once:!0}),t!=="error"&&T6(e,n,{once:!0})})}function T6(e,t,r){typeof e.on=="function"&&Ad(e,"error",t,r)}function Ad(e,t,r,i){if(typeof e.on=="function")i.once?e.once(t,r):e.on(t,r);else if(typeof e.addEventListener=="function")e.addEventListener(t,function n(a){i.once&&e.removeEventListener(t,n),r(a)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}});var ul=k((KO,Bd)=>{m();Bd.exports=Tn().EventEmitter});var gf=k((VO,Rd)=>{"use strict";m();Rd.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),i=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var n=42;t[r]=n;for(var a in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(t,r);if(s.value!==n||s.enumerable!==!0)return!1}return!0}});var Pa=k((YO,kd)=>{"use strict";m();var I6=gf();kd.exports=function(){return I6()&&!!Symbol.toStringTag}});var bf=k((XO,Td)=>{"use strict";m();Td.exports=Object});var Od=k((eq,Id)=>{"use strict";m();Id.exports=Error});var Dd=k((rq,qd)=>{"use strict";m();qd.exports=EvalError});var Pd=k((nq,Nd)=>{"use strict";m();Nd.exports=RangeError});var Cd=k((oq,Ld)=>{"use strict";m();Ld.exports=ReferenceError});var ll=k((sq,Ud)=>{"use strict";m();Ud.exports=SyntaxError});var Di=k((lq,Fd)=>{"use strict";m();Fd.exports=TypeError});var zd=k((cq,jd)=>{"use strict";m();jd.exports=URIError});var Hd=k((pq,Zd)=>{"use strict";m();Zd.exports=Math.abs});var Kd=k((yq,Wd)=>{"use strict";m();Wd.exports=Math.floor});var Vd=k((bq,Gd)=>{"use strict";m();Gd.exports=Math.max});var Yd=k((mq,$d)=>{"use strict";m();$d.exports=Math.min});var Xd=k((xq,Jd)=>{"use strict";m();Jd.exports=Math.pow});var ep=k((Sq,Qd)=>{"use strict";m();Qd.exports=Math.round});var rp=k((Aq,tp)=>{"use strict";m();tp.exports=Number.isNaN||function(t){return t!==t}});var np=k((Rq,ip)=>{"use strict";m();var O6=rp();ip.exports=function(t){return O6(t)||t===0?t:t<0?-1:1}});var op=k((Tq,ap)=>{"use strict";m();ap.exports=Object.getOwnPropertyDescriptor});var Ni=k((Oq,fp)=>{"use strict";m();var _f=op();if(_f)try{_f([],"length")}catch{_f=null}fp.exports=_f});var La=k((Dq,sp)=>{"use strict";m();var mf=Object.defineProperty||!1;if(mf)try{mf({},"a",{value:1})}catch{mf=!1}sp.exports=mf});var hp=k((Pq,lp)=>{"use strict";m();var up=typeof Symbol<"u"&&Symbol,q6=gf();lp.exports=function(){return typeof up!="function"||typeof Symbol!="function"||typeof up("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:q6()}});var hl=k((Cq,cp)=>{"use strict";m();cp.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var cl=k((Fq,dp)=>{"use strict";m();var D6=bf();dp.exports=D6.getPrototypeOf||null});var yp=k((zq,vp)=>{"use strict";m();var N6="Function.prototype.bind called on incompatible ",P6=Object.prototype.toString,L6=Math.max,C6="[object Function]",pp=function(t,r){for(var i=[],n=0;n<t.length;n+=1)i[n]=t[n];for(var a=0;a<r.length;a+=1)i[a+t.length]=r[a];return i},U6=function(t,r){for(var i=[],n=r||0,a=0;n<t.length;n+=1,a+=1)i[a]=t[n];return i},F6=function(e,t){for(var r="",i=0;i<e.length;i+=1)r+=e[i],i+1<e.length&&(r+=t);return r};vp.exports=function(t){var r=this;if(typeof r!="function"||P6.apply(r)!==C6)throw new TypeError(N6+r);for(var i=U6(arguments,1),n,a=function(){if(this instanceof n){var x=r.apply(this,pp(i,arguments));return Object(x)===x?x:this}return r.apply(t,pp(i,arguments))},o=L6(0,r.length-i.length),s=[],y=0;y<o;y++)s[y]="$"+y;if(n=Function("binder","return function ("+F6(s,",")+"){ return binder.apply(this,arguments); }")(a),r.prototype){var b=function(){};b.prototype=r.prototype,n.prototype=new b,b.prototype=null}return n}});var In=k((Hq,gp)=>{"use strict";m();var j6=yp();gp.exports=Function.prototype.bind||j6});var wf=k((Kq,bp)=>{"use strict";m();bp.exports=Function.prototype.call});var xf=k((Vq,_p)=>{"use strict";m();_p.exports=Function.prototype.apply});var wp=k((Yq,mp)=>{"use strict";m();mp.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var dl=k((Xq,xp)=>{"use strict";m();var z6=In(),Z6=xf(),H6=wf(),W6=wp();xp.exports=W6||z6.call(H6,Z6)});var Ef=k((e9,Ep)=>{"use strict";m();var K6=In(),G6=Di(),V6=wf(),$6=dl();Ep.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new G6("a function is required");return $6(K6,V6,t)}});var kp=k((r9,Rp)=>{"use strict";m();var Y6=Ef(),Sp=Ni(),Ap;try{Ap=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var pl=!!Ap&&Sp&&Sp(Object.prototype,"__proto__"),Bp=Object,Mp=Bp.getPrototypeOf;Rp.exports=pl&&typeof pl.get=="function"?Y6([pl.get]):typeof Mp=="function"?function(t){return Mp(t==null?t:Bp(t))}:!1});var Sf=k((n9,qp)=>{"use strict";m();var Tp=hl(),Ip=cl(),Op=kp();qp.exports=Tp?function(t){return Tp(t)}:Ip?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return Ip(t)}:Op?function(t){return Op(t)}:null});var vl=k((o9,Dp)=>{"use strict";m();var J6=Function.prototype.call,X6=Object.prototype.hasOwnProperty,Q6=In();Dp.exports=Q6.call(J6,X6)});var Bf=k((s9,Fp)=>{"use strict";m();var Ce,e3=bf(),t3=Od(),r3=Dd(),i3=Pd(),n3=Cd(),Nn=ll(),Dn=Di(),a3=zd(),o3=Hd(),f3=Kd(),s3=Vd(),u3=Yd(),l3=Xd(),h3=ep(),c3=np(),Cp=Function,yl=function(e){try{return Cp('"use strict"; return ('+e+").constructor;")()}catch{}},Ca=Ni(),d3=La(),gl=function(){throw new Dn},p3=Ca?(function(){try{return arguments.callee,gl}catch{try{return Ca(arguments,"callee").get}catch{return gl}}})():gl,On=hp()(),ot=Sf(),v3=cl(),y3=hl(),Up=xf(),Ua=wf(),qn={},g3=typeof Uint8Array>"u"||!ot?Ce:ot(Uint8Array),Pi={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Ce:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Ce:ArrayBuffer,"%ArrayIteratorPrototype%":On&&ot?ot([][Symbol.iterator]()):Ce,"%AsyncFromSyncIteratorPrototype%":Ce,"%AsyncFunction%":qn,"%AsyncGenerator%":qn,"%AsyncGeneratorFunction%":qn,"%AsyncIteratorPrototype%":qn,"%Atomics%":typeof Atomics>"u"?Ce:Atomics,"%BigInt%":typeof BigInt>"u"?Ce:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Ce:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Ce:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Ce:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":t3,"%eval%":eval,"%EvalError%":r3,"%Float16Array%":typeof Float16Array>"u"?Ce:Float16Array,"%Float32Array%":typeof Float32Array>"u"?Ce:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Ce:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Ce:FinalizationRegistry,"%Function%":Cp,"%GeneratorFunction%":qn,"%Int8Array%":typeof Int8Array>"u"?Ce:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Ce:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Ce:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":On&&ot?ot(ot([][Symbol.iterator]())):Ce,"%JSON%":typeof JSON=="object"?JSON:Ce,"%Map%":typeof Map>"u"?Ce:Map,"%MapIteratorPrototype%":typeof Map>"u"||!On||!ot?Ce:ot(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":e3,"%Object.getOwnPropertyDescriptor%":Ca,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Ce:Promise,"%Proxy%":typeof Proxy>"u"?Ce:Proxy,"%RangeError%":i3,"%ReferenceError%":n3,"%Reflect%":typeof Reflect>"u"?Ce:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Ce:Set,"%SetIteratorPrototype%":typeof Set>"u"||!On||!ot?Ce:ot(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Ce:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":On&&ot?ot(""[Symbol.iterator]()):Ce,"%Symbol%":On?Symbol:Ce,"%SyntaxError%":Nn,"%ThrowTypeError%":p3,"%TypedArray%":g3,"%TypeError%":Dn,"%Uint8Array%":typeof Uint8Array>"u"?Ce:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Ce:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Ce:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Ce:Uint32Array,"%URIError%":a3,"%WeakMap%":typeof WeakMap>"u"?Ce:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Ce:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Ce:WeakSet,"%Function.prototype.call%":Ua,"%Function.prototype.apply%":Up,"%Object.defineProperty%":d3,"%Object.getPrototypeOf%":v3,"%Math.abs%":o3,"%Math.floor%":f3,"%Math.max%":s3,"%Math.min%":u3,"%Math.pow%":l3,"%Math.round%":h3,"%Math.sign%":c3,"%Reflect.getPrototypeOf%":y3};if(ot)try{null.error}catch(e){Np=ot(ot(e)),Pi["%Error.prototype%"]=Np}var Np,b3=function e(t){var r;if(t==="%AsyncFunction%")r=yl("async function () {}");else if(t==="%GeneratorFunction%")r=yl("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=yl("async function* () {}");else if(t==="%AsyncGenerator%"){var i=e("%AsyncGeneratorFunction%");i&&(r=i.prototype)}else if(t==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&ot&&(r=ot(n.prototype))}return Pi[t]=r,r},Pp={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Fa=In(),Mf=vl(),_3=Fa.call(Ua,Array.prototype.concat),m3=Fa.call(Up,Array.prototype.splice),Lp=Fa.call(Ua,String.prototype.replace),Af=Fa.call(Ua,String.prototype.slice),w3=Fa.call(Ua,RegExp.prototype.exec),x3=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,E3=/\\(\\)?/g,S3=function(t){var r=Af(t,0,1),i=Af(t,-1);if(r==="%"&&i!=="%")throw new Nn("invalid intrinsic syntax, expected closing `%`");if(i==="%"&&r!=="%")throw new Nn("invalid intrinsic syntax, expected opening `%`");var n=[];return Lp(t,x3,function(a,o,s,y){n[n.length]=s?Lp(y,E3,"$1"):o||a}),n},M3=function(t,r){var i=t,n;if(Mf(Pp,i)&&(n=Pp[i],i="%"+n[0]+"%"),Mf(Pi,i)){var a=Pi[i];if(a===qn&&(a=b3(i)),typeof a>"u"&&!r)throw new Dn("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:a}}throw new Nn("intrinsic "+t+" does not exist!")};Fp.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new Dn("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Dn('"allowMissing" argument must be a boolean');if(w3(/^%?[^%]*%?$/,t)===null)throw new Nn("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=S3(t),n=i.length>0?i[0]:"",a=M3("%"+n+"%",r),o=a.name,s=a.value,y=!1,b=a.alias;b&&(n=b[0],m3(i,_3([0,1],b)));for(var x=1,B=!0;x<i.length;x+=1){var R=i[x],T=Af(R,0,1),O=Af(R,-1);if((T==='"'||T==="'"||T==="`"||O==='"'||O==="'"||O==="`")&&T!==O)throw new Nn("property names with quotes must have matching quotes");if((R==="constructor"||!B)&&(y=!0),n+="."+R,o="%"+n+"%",Mf(Pi,o))s=Pi[o];else if(s!=null){if(!(R in s)){if(!r)throw new Dn("base intrinsic for "+t+" exists, but the property is not available.");return}if(Ca&&x+1>=i.length){var D=Ca(s,R);B=!!D,B&&"get"in D&&!("originalValue"in D.get)?s=D.get:s=s[R]}else B=Mf(s,R),s=s[R];B&&!y&&(Pi[o]=s)}}return s}});var Hr=k((l9,Zp)=>{"use strict";m();var jp=Bf(),zp=Ef(),A3=zp([jp("%String.prototype.indexOf%")]);Zp.exports=function(t,r){var i=jp(t,!!r);return typeof i=="function"&&A3(t,".prototype.")>-1?zp([i]):i}});var Kp=k((c9,Wp)=>{"use strict";m();var B3=Pa()(),R3=Hr(),bl=R3("Object.prototype.toString"),Rf=function(t){return B3&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:bl(t)==="[object Arguments]"},Hp=function(t){return Rf(t)?!0:t!==null&&typeof t=="object"&&"length"in t&&typeof t.length=="number"&&t.length>=0&&bl(t)!=="[object Array]"&&"callee"in t&&bl(t.callee)==="[object Function]"},k3=(function(){return Rf(arguments)})();Rf.isLegacyArguments=Hp;Wp.exports=k3?Rf:Hp});var Xp=k((p9,Jp)=>{"use strict";m();var Gp=Hr(),T3=Pa()(),I3=vl(),O3=Ni(),wl;T3?(Vp=Gp("RegExp.prototype.exec"),_l={},kf=function(){throw _l},ml={toString:kf,valueOf:kf},typeof Symbol.toPrimitive=="symbol"&&(ml[Symbol.toPrimitive]=kf),wl=function(t){if(!t||typeof t!="object")return!1;var r=O3(t,"lastIndex"),i=r&&I3(r,"value");if(!i)return!1;try{Vp(t,ml)}catch(n){return n===_l}}):($p=Gp("Object.prototype.toString"),Yp="[object RegExp]",wl=function(t){return!t||typeof t!="object"&&typeof t!="function"?!1:$p(t)===Yp});var Vp,_l,kf,ml,$p,Yp;Jp.exports=wl});var ev=k((y9,Qp)=>{"use strict";m();var q3=Hr(),D3=Xp(),N3=q3("RegExp.prototype.exec"),P3=Di();Qp.exports=function(t){if(!D3(t))throw new P3("`regex` must be a RegExp");return function(i){return N3(t,i)!==null}}});var rv=k((b9,tv)=>{"use strict";m();var L3=function*(){}.constructor;tv.exports=()=>L3});var ov=k((m9,av)=>{"use strict";m();var nv=Hr(),C3=ev(),U3=C3(/^\s*(?:function)?\*/),F3=Pa()(),iv=Sf(),j3=nv("Object.prototype.toString"),z3=nv("Function.prototype.toString"),Z3=rv();av.exports=function(t){if(typeof t!="function")return!1;if(U3(z3(t)))return!0;if(!F3){var r=j3(t);return r==="[object GeneratorFunction]"}if(!iv)return!1;var i=Z3();return i&&iv(t)===i.prototype}});var lv=k((x9,uv)=>{"use strict";m();var sv=Function.prototype.toString,Pn=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,El,Tf;if(typeof Pn=="function"&&typeof Object.defineProperty=="function")try{El=Object.defineProperty({},"length",{get:function(){throw Tf}}),Tf={},Pn(function(){throw 42},null,El)}catch(e){e!==Tf&&(Pn=null)}else Pn=null;var H3=/^\s*class\b/,Sl=function(t){try{var r=sv.call(t);return H3.test(r)}catch{return!1}},xl=function(t){try{return Sl(t)?!1:(sv.call(t),!0)}catch{return!1}},If=Object.prototype.toString,W3="[object Object]",K3="[object Function]",G3="[object GeneratorFunction]",V3="[object HTMLAllCollection]",$3="[object HTML document.all class]",Y3="[object HTMLCollection]",J3=typeof Symbol=="function"&&!!Symbol.toStringTag,X3=!(0 in[,]),Ml=function(){return!1};typeof document=="object"&&(fv=document.all,If.call(fv)===If.call(document.all)&&(Ml=function(t){if((X3||!t)&&(typeof t>"u"||typeof t=="object"))try{var r=If.call(t);return(r===V3||r===$3||r===Y3||r===W3)&&t("")==null}catch{}return!1}));var fv;uv.exports=Pn?function(t){if(Ml(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{Pn(t,null,El)}catch(r){if(r!==Tf)return!1}return!Sl(t)&&xl(t)}:function(t){if(Ml(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(J3)return xl(t);if(Sl(t))return!1;var r=If.call(t);return r!==K3&&r!==G3&&!/^\[object HTML/.test(r)?!1:xl(t)}});var dv=k((S9,cv)=>{"use strict";m();var Q3=lv(),eS=Object.prototype.toString,hv=Object.prototype.hasOwnProperty,tS=function(t,r,i){for(var n=0,a=t.length;n<a;n++)hv.call(t,n)&&(i==null?r(t[n],n,t):r.call(i,t[n],n,t))},rS=function(t,r,i){for(var n=0,a=t.length;n<a;n++)i==null?r(t.charAt(n),n,t):r.call(i,t.charAt(n),n,t)},iS=function(t,r,i){for(var n in t)hv.call(t,n)&&(i==null?r(t[n],n,t):r.call(i,t[n],n,t))};function nS(e){return eS.call(e)==="[object Array]"}cv.exports=function(t,r,i){if(!Q3(r))throw new TypeError("iterator must be a function");var n;arguments.length>=3&&(n=i),nS(t)?tS(t,r,n):typeof t=="string"?rS(t,r,n):iS(t,r,n)}});var vv=k((A9,pv)=>{"use strict";m();pv.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]});var gv=k((R9,yv)=>{"use strict";m();var Al=vv(),aS=globalThis;yv.exports=function(){for(var t=[],r=0;r<Al.length;r++)typeof aS[Al[r]]=="function"&&(t[t.length]=Al[r]);return t}});var Bl=k((T9,mv)=>{"use strict";m();var bv=La(),oS=ll(),Ln=Di(),_v=Ni();mv.exports=function(t,r,i){if(!t||typeof t!="object"&&typeof t!="function")throw new Ln("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new Ln("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Ln("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Ln("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Ln("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Ln("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,y=!!_v&&_v(t,r);if(bv)bv(t,r,{configurable:o===null&&y?y.configurable:!o,enumerable:n===null&&y?y.enumerable:!n,value:i,writable:a===null&&y?y.writable:!a});else if(s||!n&&!a&&!o)t[r]=i;else throw new oS("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var kl=k((O9,xv)=>{"use strict";m();var Rl=La(),wv=function(){return!!Rl};wv.hasArrayLengthDefineBug=function(){if(!Rl)return null;try{return Rl([],"length",{value:1}).length!==1}catch{return!0}};xv.exports=wv});var Bv=k((D9,Av)=>{"use strict";m();var fS=Bf(),Ev=Bl(),sS=kl()(),Sv=Ni(),Mv=Di(),uS=fS("%Math.floor%");Av.exports=function(t,r){if(typeof t!="function")throw new Mv("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||uS(r)!==r)throw new Mv("`length` must be a positive 32-bit integer");var i=arguments.length>2&&!!arguments[2],n=!0,a=!0;if("length"in t&&Sv){var o=Sv(t,"length");o&&!o.configurable&&(n=!1),o&&!o.writable&&(a=!1)}return(n||a||!i)&&(sS?Ev(t,"length",r,!0,!0):Ev(t,"length",r)),t}});var kv=k((P9,Rv)=>{"use strict";m();var lS=In(),hS=xf(),cS=dl();Rv.exports=function(){return cS(lS,hS,arguments)}});var ja=k((C9,Of)=>{"use strict";m();var dS=Bv(),Tv=La(),pS=Ef(),Iv=kv();Of.exports=function(t){var r=pS(arguments),i=1+t.length-(arguments.length-1);return dS(r,i>0?i:0,!0)};Tv?Tv(Of.exports,"apply",{value:Iv}):Of.exports.apply=Iv});var ql=k((F9,Nv)=>{"use strict";m();var Nf=dv(),vS=gv(),Ov=ja(),Il=Hr(),Df=Ni(),qf=Sf(),yS=Il("Object.prototype.toString"),Dv=Pa()(),qv=globalThis,Tl=vS(),Ol=Il("String.prototype.slice"),gS=Il("Array.prototype.indexOf",!0)||function(t,r){for(var i=0;i<t.length;i+=1)if(t[i]===r)return i;return-1},Pf={__proto__:null};Dv&&Df&&qf?Nf(Tl,function(e){var t=new qv[e];if(Symbol.toStringTag in t&&qf){var r=qf(t),i=Df(r,Symbol.toStringTag);if(!i&&r){var n=qf(r);i=Df(n,Symbol.toStringTag)}if(i&&i.get){var a=Ov(i.get);Pf["$"+e]=a}}}):Nf(Tl,function(e){var t=new qv[e],r=t.slice||t.set;if(r){var i=Ov(r);Pf["$"+e]=i}});var bS=function(t){var r=!1;return Nf(Pf,function(i,n){if(!r)try{"$"+i(t)===n&&(r=Ol(n,1))}catch{}}),r},_S=function(t){var r=!1;return Nf(Pf,function(i,n){if(!r)try{i(t),r=Ol(n,1)}catch{}}),r};Nv.exports=function(t){if(!t||typeof t!="object")return!1;if(!Dv){var r=Ol(yS(t),8,-1);return gS(Tl,r)>-1?r:r!=="Object"?!1:_S(t)}return Df?bS(t):null}});var Dl=k((z9,Pv)=>{"use strict";m();var mS=ql();Pv.exports=function(t){return!!mS(t)}});var Yv=k(Ue=>{"use strict";m();var wS=Kp(),xS=ov(),Kt=ql(),Lv=Dl();function Cn(e){return e.call.bind(e)}var Cv=typeof BigInt<"u",Uv=typeof Symbol<"u",It=Cn(Object.prototype.toString),ES=Cn(Number.prototype.valueOf),SS=Cn(String.prototype.valueOf),MS=Cn(Boolean.prototype.valueOf);Cv&&(Fv=Cn(BigInt.prototype.valueOf));var Fv;Uv&&(jv=Cn(Symbol.prototype.valueOf));var jv;function Za(e,t){if(typeof e!="object")return!1;try{return t(e),!0}catch{return!1}}Ue.isArgumentsObject=wS;Ue.isGeneratorFunction=xS;Ue.isTypedArray=Lv;function AS(e){return typeof Promise<"u"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}Ue.isPromise=AS;function BS(e){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(e):Lv(e)||Zv(e)}Ue.isArrayBufferView=BS;function RS(e){return Kt(e)==="Uint8Array"}Ue.isUint8Array=RS;function kS(e){return Kt(e)==="Uint8ClampedArray"}Ue.isUint8ClampedArray=kS;function TS(e){return Kt(e)==="Uint16Array"}Ue.isUint16Array=TS;function IS(e){return Kt(e)==="Uint32Array"}Ue.isUint32Array=IS;function OS(e){return Kt(e)==="Int8Array"}Ue.isInt8Array=OS;function qS(e){return Kt(e)==="Int16Array"}Ue.isInt16Array=qS;function DS(e){return Kt(e)==="Int32Array"}Ue.isInt32Array=DS;function NS(e){return Kt(e)==="Float32Array"}Ue.isFloat32Array=NS;function PS(e){return Kt(e)==="Float64Array"}Ue.isFloat64Array=PS;function LS(e){return Kt(e)==="BigInt64Array"}Ue.isBigInt64Array=LS;function CS(e){return Kt(e)==="BigUint64Array"}Ue.isBigUint64Array=CS;function Lf(e){return It(e)==="[object Map]"}Lf.working=typeof Map<"u"&&Lf(new Map);function US(e){return typeof Map>"u"?!1:Lf.working?Lf(e):e instanceof Map}Ue.isMap=US;function Cf(e){return It(e)==="[object Set]"}Cf.working=typeof Set<"u"&&Cf(new Set);function FS(e){return typeof Set>"u"?!1:Cf.working?Cf(e):e instanceof Set}Ue.isSet=FS;function Uf(e){return It(e)==="[object WeakMap]"}Uf.working=typeof WeakMap<"u"&&Uf(new WeakMap);function jS(e){return typeof WeakMap>"u"?!1:Uf.working?Uf(e):e instanceof WeakMap}Ue.isWeakMap=jS;function Pl(e){return It(e)==="[object WeakSet]"}Pl.working=typeof WeakSet<"u"&&Pl(new WeakSet);function zS(e){return Pl(e)}Ue.isWeakSet=zS;function Ff(e){return It(e)==="[object ArrayBuffer]"}Ff.working=typeof ArrayBuffer<"u"&&Ff(new ArrayBuffer);function zv(e){return typeof ArrayBuffer>"u"?!1:Ff.working?Ff(e):e instanceof ArrayBuffer}Ue.isArrayBuffer=zv;function jf(e){return It(e)==="[object DataView]"}jf.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&jf(new DataView(new ArrayBuffer(1),0,1));function Zv(e){return typeof DataView>"u"?!1:jf.working?jf(e):e instanceof DataView}Ue.isDataView=Zv;var Nl=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function za(e){return It(e)==="[object SharedArrayBuffer]"}function Hv(e){return typeof Nl>"u"?!1:(typeof za.working>"u"&&(za.working=za(new Nl)),za.working?za(e):e instanceof Nl)}Ue.isSharedArrayBuffer=Hv;function ZS(e){return It(e)==="[object AsyncFunction]"}Ue.isAsyncFunction=ZS;function HS(e){return It(e)==="[object Map Iterator]"}Ue.isMapIterator=HS;function WS(e){return It(e)==="[object Set Iterator]"}Ue.isSetIterator=WS;function KS(e){return It(e)==="[object Generator]"}Ue.isGeneratorObject=KS;function GS(e){return It(e)==="[object WebAssembly.Module]"}Ue.isWebAssemblyCompiledModule=GS;function Wv(e){return Za(e,ES)}Ue.isNumberObject=Wv;function Kv(e){return Za(e,SS)}Ue.isStringObject=Kv;function Gv(e){return Za(e,MS)}Ue.isBooleanObject=Gv;function Vv(e){return Cv&&Za(e,Fv)}Ue.isBigIntObject=Vv;function $v(e){return Uv&&Za(e,jv)}Ue.isSymbolObject=$v;function VS(e){return Wv(e)||Kv(e)||Gv(e)||Vv(e)||$v(e)}Ue.isBoxedPrimitive=VS;function $S(e){return typeof Uint8Array<"u"&&(zv(e)||Hv(e))}Ue.isAnyArrayBuffer=$S;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(Ue,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var Xv=k((K9,Jv)=>{m();Jv.exports=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}});var Gt=k(Fe=>{m();var Qv=Object.getOwnPropertyDescriptors||function(t){for(var r=Object.keys(t),i={},n=0;n<r.length;n++)i[r[n]]=Object.getOwnPropertyDescriptor(t,r[n]);return i},YS=/%[sdj%]/g;Fe.format=function(e){if(!Vf(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(Wr(arguments[r]));return t.join(" ")}for(var r=1,i=arguments,n=i.length,a=String(e).replace(YS,function(s){if(s==="%%")return"%";if(r>=n)return s;switch(s){case"%s":return String(i[r++]);case"%d":return Number(i[r++]);case"%j":try{return JSON.stringify(i[r++])}catch{return"[Circular]"}default:return s}}),o=i[r];r<n;o=i[++r])Gf(o)||!Un(o)?a+=" "+o:a+=" "+Wr(o);return a};Fe.deprecate=function(e,t){if(typeof M.default<"u"&&M.default.noDeprecation===!0)return e;if(typeof M.default>"u")return function(){return Fe.deprecate(e,t).apply(this,arguments)};var r=!1;function i(){if(!r){if(M.default.throwDeprecation)throw new Error(t);M.default.traceDeprecation?console.trace(t):console.error(t),r=!0}return e.apply(this,arguments)}return i};var zf={},ey=/^$/;M.default.env.NODE_DEBUG&&(Zf=M.default.env.NODE_DEBUG,Zf=Zf.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),ey=new RegExp("^"+Zf+"$","i"));var Zf;Fe.debuglog=function(e){if(e=e.toUpperCase(),!zf[e])if(ey.test(e)){var t=M.default.pid;zf[e]=function(){var r=Fe.format.apply(Fe,arguments);console.error("%s %d: %s",e,t,r)}}else zf[e]=function(){};return zf[e]};function Wr(e,t){var r={seen:[],stylize:XS};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),Fl(t)?r.showHidden=t:t&&Fe._extend(r,t),Ci(r.showHidden)&&(r.showHidden=!1),Ci(r.depth)&&(r.depth=2),Ci(r.colors)&&(r.colors=!1),Ci(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=JS),Wf(r,e,r.depth)}Fe.inspect=Wr;Wr.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};Wr.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function JS(e,t){var r=Wr.styles[t];return r?"\x1B["+Wr.colors[r][0]+"m"+e+"\x1B["+Wr.colors[r][1]+"m":e}function XS(e,t){return e}function QS(e){var t={};return e.forEach(function(r,i){t[r]=!0}),t}function Wf(e,t,r){if(e.customInspect&&t&&Hf(t.inspect)&&t.inspect!==Fe.inspect&&!(t.constructor&&t.constructor.prototype===t)){var i=t.inspect(r,e);return Vf(i)||(i=Wf(e,i,r)),i}var n=e8(e,t);if(n)return n;var a=Object.keys(t),o=QS(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),Wa(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return Ll(t);if(a.length===0){if(Hf(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(Ha(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(Kf(t))return e.stylize(Date.prototype.toString.call(t),"date");if(Wa(t))return Ll(t)}var y="",b=!1,x=["{","}"];if(ty(t)&&(b=!0,x=["[","]"]),Hf(t)){var B=t.name?": "+t.name:"";y=" [Function"+B+"]"}if(Ha(t)&&(y=" "+RegExp.prototype.toString.call(t)),Kf(t)&&(y=" "+Date.prototype.toUTCString.call(t)),Wa(t)&&(y=" "+Ll(t)),a.length===0&&(!b||t.length==0))return x[0]+y+x[1];if(r<0)return Ha(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var R;return b?R=t8(e,t,r,o,a):R=a.map(function(T){return Ul(e,t,r,o,T,b)}),e.seen.pop(),r8(R,y,x)}function e8(e,t){if(Ci(t))return e.stylize("undefined","undefined");if(Vf(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(ry(t))return e.stylize(""+t,"number");if(Fl(t))return e.stylize(""+t,"boolean");if(Gf(t))return e.stylize("null","null")}function Ll(e){return"["+Error.prototype.toString.call(e)+"]"}function t8(e,t,r,i,n){for(var a=[],o=0,s=t.length;o<s;++o)iy(t,String(o))?a.push(Ul(e,t,r,i,String(o),!0)):a.push("");return n.forEach(function(y){y.match(/^\d+$/)||a.push(Ul(e,t,r,i,y,!0))}),a}function Ul(e,t,r,i,n,a){var o,s,y;if(y=Object.getOwnPropertyDescriptor(t,n)||{value:t[n]},y.get?y.set?s=e.stylize("[Getter/Setter]","special"):s=e.stylize("[Getter]","special"):y.set&&(s=e.stylize("[Setter]","special")),iy(i,n)||(o="["+n+"]"),s||(e.seen.indexOf(y.value)<0?(Gf(r)?s=Wf(e,y.value,null):s=Wf(e,y.value,r-1),s.indexOf(`
3
3
  `)>-1&&(a?s=s.split(`
4
- `).map(function(_){return" "+_}).join(`
4
+ `).map(function(b){return" "+b}).join(`
5
5
  `).slice(2):s=`
6
6
  `+s.split(`
7
- `).map(function(_){return" "+_}).join(`
7
+ `).map(function(b){return" "+b}).join(`
8
8
  `))):s=e.stylize("[Circular]","special")),Ci(o)){if(a&&n.match(/^\d+$/))return s;o=JSON.stringify(""+n),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function r8(e,t,r){var i=0,n=e.reduce(function(a,o){return i++,o.indexOf(`
9
9
  `)>=0&&i++,a+o.replace(/\u001b\[\d\d?m/g,"").length+1},0);return n>60?r[0]+(t===""?"":t+`
10
10
  `)+" "+e.join(`,
11
- `)+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}Fe.types=Yv();function ty(e){return Array.isArray(e)}Fe.isArray=ty;function Fl(e){return typeof e=="boolean"}Fe.isBoolean=Fl;function Gf(e){return e===null}Fe.isNull=Gf;function i8(e){return e==null}Fe.isNullOrUndefined=i8;function ry(e){return typeof e=="number"}Fe.isNumber=ry;function Vf(e){return typeof e=="string"}Fe.isString=Vf;function n8(e){return typeof e=="symbol"}Fe.isSymbol=n8;function Ci(e){return e===void 0}Fe.isUndefined=Ci;function Ha(e){return Un(e)&&jl(e)==="[object RegExp]"}Fe.isRegExp=Ha;Fe.types.isRegExp=Ha;function Un(e){return typeof e=="object"&&e!==null}Fe.isObject=Un;function Kf(e){return Un(e)&&jl(e)==="[object Date]"}Fe.isDate=Kf;Fe.types.isDate=Kf;function Wa(e){return Un(e)&&(jl(e)==="[object Error]"||e instanceof Error)}Fe.isError=Wa;Fe.types.isNativeError=Wa;function Hf(e){return typeof e=="function"}Fe.isFunction=Hf;function a8(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}Fe.isPrimitive=a8;Fe.isBuffer=Xv();function jl(e){return Object.prototype.toString.call(e)}function Cl(e){return e<10?"0"+e.toString(10):e.toString(10)}var o8=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function f8(){var e=new Date,t=[Cl(e.getHours()),Cl(e.getMinutes()),Cl(e.getSeconds())].join(":");return[e.getDate(),o8[e.getMonth()],t].join(" ")}Fe.log=function(){console.log("%s - %s",f8(),Fe.format.apply(Fe,arguments))};Fe.inherits=re();Fe._extend=function(e,t){if(!t||!Un(t))return e;for(var r=Object.keys(t),i=r.length;i--;)e[r[i]]=t[r[i]];return e};function iy(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Li=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;Fe.promisify=function(t){if(typeof t!="function")throw new TypeError('The "original" argument must be of type Function');if(Li&&t[Li]){var r=t[Li];if(typeof r!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,Li,{value:r,enumerable:!1,writable:!1,configurable:!0}),r}function r(){for(var i,n,a=new Promise(function(y,_){i=y,n=_}),o=[],s=0;s<arguments.length;s++)o.push(arguments[s]);o.push(function(y,_){y?n(y):i(_)});try{t.apply(this,o)}catch(y){n(y)}return a}return Object.setPrototypeOf(r,Object.getPrototypeOf(t)),Li&&Object.defineProperty(r,Li,{value:r,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(r,Qv(t))};Fe.promisify.custom=Li;function s8(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}function u8(e){if(typeof e!="function")throw new TypeError('The "original" argument must be of type Function');function t(){for(var r=[],i=0;i<arguments.length;i++)r.push(arguments[i]);var n=r.pop();if(typeof n!="function")throw new TypeError("The last argument must be of type Function");var a=this,o=function(){return n.apply(a,arguments)};e.apply(this,r).then(function(s){M.default.nextTick(o.bind(null,null,s))},function(s){M.default.nextTick(s8.bind(null,s,o))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,Qv(e)),t}Fe.callbackify=u8});var uy=k((Y9,sy)=>{"use strict";m();function ny(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function ay(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ny(Object(r),!0).forEach(function(i){l8(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ny(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function l8(e,t,r){return t=fy(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h8(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oy(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,fy(i.key),i)}}function c8(e,t,r){return t&&oy(e.prototype,t),r&&oy(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function fy(e){var t=d8(e,"string");return typeof t=="symbol"?t:String(t)}function d8(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var p8=st(),$f=p8.Buffer,v8=Gt(),zl=v8.inspect,y8=zl&&zl.custom||"inspect";function g8(e,t,r){$f.prototype.copy.call(e,t,r)}sy.exports=(function(){function e(){h8(this,e),this.head=null,this.tail=null,this.length=0}return c8(e,[{key:"push",value:function(r){var i={data:r,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length}},{key:"unshift",value:function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var i=this.head,n=""+i.data;i=i.next;)n+=r+i.data;return n}},{key:"concat",value:function(r){if(this.length===0)return $f.alloc(0);for(var i=$f.allocUnsafe(r>>>0),n=this.head,a=0;n;)g8(n.data,i,a),a+=n.data.length,n=n.next;return i}},{key:"consume",value:function(r,i){var n;return r<this.head.data.length?(n=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?n=this.shift():n=i?this._getString(r):this._getBuffer(r),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var i=this.head,n=1,a=i.data;for(r-=a.length;i=i.next;){var o=i.data,s=r>o.length?o.length:r;if(s===o.length?a+=o:a+=o.slice(0,r),r-=s,r===0){s===o.length?(++n,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(s));break}++n}return this.length-=n,a}},{key:"_getBuffer",value:function(r){var i=$f.allocUnsafe(r),n=this.head,a=1;for(n.data.copy(i),r-=n.data.length;n=n.next;){var o=n.data,s=r>o.length?o.length:r;if(o.copy(i,i.length-r,0,s),r-=s,r===0){s===o.length?(++a,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(s));break}++a}return this.length-=a,i}},{key:y8,value:function(r,i){return zl(this,ay(ay({},i),{},{depth:0,customInspect:!1}))}}]),e})()});var Hl=k((X9,hy)=>{"use strict";m();function b8(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return i||n?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,M.default.nextTick(Zl,this,e)):M.default.nextTick(Zl,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(a){!t&&a?r._writableState?r._writableState.errorEmitted?M.default.nextTick(Yf,r):(r._writableState.errorEmitted=!0,M.default.nextTick(ly,r,a)):M.default.nextTick(ly,r,a):t?(M.default.nextTick(Yf,r),t(a)):M.default.nextTick(Yf,r)}),this)}function ly(e,t){Zl(e,t),Yf(e)}function Yf(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function _8(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Zl(e,t){e.emit("error",t)}function m8(e,t){var r=e._readableState,i=e._writableState;r&&r.autoDestroy||i&&i.autoDestroy?e.destroy(t):e.emit("error",t)}hy.exports={destroy:b8,undestroy:_8,errorOrDestroy:m8}});var Ui=k((eD,py)=>{"use strict";m();function w8(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var dy={};function Ot(e,t,r){r||(r=Error);function i(a,o,s){return typeof t=="string"?t:t(a,o,s)}var n=(function(a){w8(o,a);function o(s,y,_){return a.call(this,i(s,y,_))||this}return o})(r);n.prototype.name=r.name,n.prototype.code=e,dy[e]=n}function cy(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(i){return String(i)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function x8(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function E8(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function S8(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}Ot("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);Ot("ERR_INVALID_ARG_TYPE",function(e,t,r){var i;typeof t=="string"&&x8(t,"not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";var n;if(E8(e," argument"))n="The ".concat(e," ").concat(i," ").concat(cy(t,"type"));else{var a=S8(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(a," ").concat(i," ").concat(cy(t,"type"))}return n+=". Received type ".concat(typeof r),n},TypeError);Ot("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Ot("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});Ot("ERR_STREAM_PREMATURE_CLOSE","Premature close");Ot("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});Ot("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Ot("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Ot("ERR_STREAM_WRITE_AFTER_END","write after end");Ot("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Ot("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);Ot("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");py.exports.codes=dy});var Wl=k((rD,vy)=>{"use strict";m();var M8=Ui().codes.ERR_INVALID_OPT_VALUE;function A8(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function B8(e,t,r,i){var n=A8(t,i,r);if(n!=null){if(!(isFinite(n)&&Math.floor(n)===n)||n<0){var a=i?r:"highWaterMark";throw new M8(a,n)}return Math.floor(n)}return e.objectMode?16:16*1024}vy.exports={getHighWaterMark:B8}});var Gl=k((nD,yy)=>{m();yy.exports=R8;function R8(e,t){if(Kl("noDeprecation"))return e;var r=!1;function i(){if(!r){if(Kl("throwDeprecation"))throw new Error(t);Kl("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}return i}function Kl(e){try{if(!globalThis.localStorage)return!1}catch{return!1}var t=globalThis.localStorage[e];return t==null?!1:String(t).toLowerCase()==="true"}});var Yl=k((oD,xy)=>{"use strict";m();xy.exports=Xe;function by(e){var t=this;this.next=null,this.entry=null,this.finish=function(){tM(t,e)}}var Fn;Xe.WritableState=Ga;var k8={deprecate:Gl()},_y=ul(),Xf=st().Buffer,T8=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function I8(e){return Xf.from(e)}function O8(e){return Xf.isBuffer(e)||e instanceof T8}var $l=Hl(),q8=Wl(),D8=q8.getHighWaterMark,Kr=Ui().codes,N8=Kr.ERR_INVALID_ARG_TYPE,P8=Kr.ERR_METHOD_NOT_IMPLEMENTED,L8=Kr.ERR_MULTIPLE_CALLBACK,C8=Kr.ERR_STREAM_CANNOT_PIPE,U8=Kr.ERR_STREAM_DESTROYED,F8=Kr.ERR_STREAM_NULL_VALUES,j8=Kr.ERR_STREAM_WRITE_AFTER_END,z8=Kr.ERR_UNKNOWN_ENCODING,jn=$l.errorOrDestroy;re()(Xe,_y);function Z8(){}function Ga(e,t,r){Fn=Fn||Fi(),e=e||{},typeof r!="boolean"&&(r=t instanceof Fn),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=D8(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=e.decodeStrings===!1;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(n){Y8(t,n)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new by(this)}Ga.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(Ga.prototype,"buffer",{get:k8.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Jf;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Jf=Function.prototype[Symbol.hasInstance],Object.defineProperty(Xe,Symbol.hasInstance,{value:function(t){return Jf.call(this,t)?!0:this!==Xe?!1:t&&t._writableState instanceof Ga}})):Jf=function(t){return t instanceof this};function Xe(e){Fn=Fn||Fi();var t=this instanceof Fn;if(!t&&!Jf.call(Xe,this))return new Xe(e);this._writableState=new Ga(e,this,t),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),_y.call(this)}Xe.prototype.pipe=function(){jn(this,new C8)};function H8(e,t){var r=new j8;jn(e,r),M.default.nextTick(t,r)}function W8(e,t,r,i){var n;return r===null?n=new F8:typeof r!="string"&&!t.objectMode&&(n=new N8("chunk",["string","Buffer"],r)),n?(jn(e,n),M.default.nextTick(i,n),!1):!0}Xe.prototype.write=function(e,t,r){var i=this._writableState,n=!1,a=!i.objectMode&&O8(e);return a&&!Xf.isBuffer(e)&&(e=I8(e)),typeof t=="function"&&(r=t,t=null),a?t="buffer":t||(t=i.defaultEncoding),typeof r!="function"&&(r=Z8),i.ending?H8(this,r):(a||W8(this,i,e,r))&&(i.pendingcb++,n=G8(this,i,a,e,t,r)),n};Xe.prototype.cork=function(){this._writableState.corked++};Xe.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&my(this,e))};Xe.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new z8(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(Xe.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function K8(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=Xf.from(t,r)),t}Object.defineProperty(Xe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function G8(e,t,r,i,n,a){if(!r){var o=K8(t,i,n);i!==o&&(r=!0,n="buffer",i=o)}var s=t.objectMode?1:i.length;t.length+=s;var y=t.length<t.highWaterMark;if(y||(t.needDrain=!0),t.writing||t.corked){var _=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:a,next:null},_?_.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else Vl(e,t,!1,s,i,n,a);return y}function Vl(e,t,r,i,n,a,o){t.writelen=i,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new U8("write")):r?e._writev(n,t.onwrite):e._write(n,a,t.onwrite),t.sync=!1}function V8(e,t,r,i,n){--t.pendingcb,r?(M.default.nextTick(n,i),M.default.nextTick(Ka,e,t),e._writableState.errorEmitted=!0,jn(e,i)):(n(i),e._writableState.errorEmitted=!0,jn(e,i),Ka(e,t))}function $8(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function Y8(e,t){var r=e._writableState,i=r.sync,n=r.writecb;if(typeof n!="function")throw new L8;if($8(r),t)V8(e,r,i,t,n);else{var a=wy(r)||e.destroyed;!a&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&my(e,r),i?M.default.nextTick(gy,e,r,a,n):gy(e,r,a,n)}}function gy(e,t,r,i){r||J8(e,t),t.pendingcb--,i(),Ka(e,t)}function J8(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function my(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,n=new Array(i),a=t.corkedRequestsFree;a.entry=r;for(var o=0,s=!0;r;)n[o]=r,r.isBuf||(s=!1),r=r.next,o+=1;n.allBuffers=s,Vl(e,t,!0,t.length,n,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new by(t),t.bufferedRequestCount=0}else{for(;r;){var y=r.chunk,_=r.encoding,x=r.callback,B=t.objectMode?1:y.length;if(Vl(e,t,!1,B,y,_,x),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}Xe.prototype._write=function(e,t,r){r(new P8("_write()"))};Xe.prototype._writev=null;Xe.prototype.end=function(e,t,r){var i=this._writableState;return typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),e!=null&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||eM(this,i,r),this};Object.defineProperty(Xe.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function wy(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function X8(e,t){e._final(function(r){t.pendingcb--,r&&jn(e,r),t.prefinished=!0,e.emit("prefinish"),Ka(e,t)})}function Q8(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"&&!t.destroyed?(t.pendingcb++,t.finalCalled=!0,M.default.nextTick(X8,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function Ka(e,t){var r=wy(t);if(r&&(Q8(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return r}function eM(e,t,r){t.ending=!0,Ka(e,t),r&&(t.finished?M.default.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function tM(e,t,r){var i=e.entry;for(e.entry=null;i;){var n=i.callback;t.pendingcb--,n(r),i=i.next}t.corkedRequestsFree.next=e}Object.defineProperty(Xe.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}});Xe.prototype.destroy=$l.destroy;Xe.prototype._undestroy=$l.undestroy;Xe.prototype._destroy=function(e,t){t(e)}});var Fi=k((sD,Sy)=>{"use strict";m();var rM=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};Sy.exports=dr;var Ey=Ql(),Xl=Yl();re()(dr,Ey);for(Jl=rM(Xl.prototype),Qf=0;Qf<Jl.length;Qf++)es=Jl[Qf],dr.prototype[es]||(dr.prototype[es]=Xl.prototype[es]);var Jl,es,Qf;function dr(e){if(!(this instanceof dr))return new dr(e);Ey.call(this,e),Xl.call(this,e),this.allowHalfOpen=!0,e&&(e.readable===!1&&(this.readable=!1),e.writable===!1&&(this.writable=!1),e.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",iM)))}Object.defineProperty(dr.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(dr.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(dr.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function iM(){this._writableState.ended||M.default.nextTick(nM,this)}function nM(e){e.end()}Object.defineProperty(dr.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(t){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=t,this._writableState.destroyed=t)}})});var By=k((eh,Ay)=>{m();var ts=st(),Rr=ts.Buffer;function My(e,t){for(var r in e)t[r]=e[r]}Rr.from&&Rr.alloc&&Rr.allocUnsafe&&Rr.allocUnsafeSlow?Ay.exports=ts:(My(ts,eh),eh.Buffer=zn);function zn(e,t,r){return Rr(e,t,r)}My(Rr,zn);zn.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Rr(e,t,r)};zn.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var i=Rr(e);return t!==void 0?typeof r=="string"?i.fill(t,r):i.fill(t):i.fill(0),i};zn.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Rr(e)};zn.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return ts.SlowBuffer(e)}});var Zn=k(ky=>{"use strict";m();var rh=By().Buffer,Ry=rh.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function aM(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function oM(e){var t=aM(e);if(typeof t!="string"&&(rh.isEncoding===Ry||!Ry(e)))throw new Error("Unknown encoding: "+e);return t||e}ky.StringDecoder=Va;function Va(e){this.encoding=oM(e);var t;switch(this.encoding){case"utf16le":this.text=cM,this.end=dM,t=4;break;case"utf8":this.fillLast=uM,t=4;break;case"base64":this.text=pM,this.end=vM,t=3;break;default:this.write=yM,this.end=gM;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=rh.allocUnsafe(t)}Va.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""};Va.prototype.end=hM;Va.prototype.text=lM;Va.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function th(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function fM(e,t,r){var i=t.length-1;if(i<r)return 0;var n=th(t[i]);return n>=0?(n>0&&(e.lastNeed=n-1),n):--i<r||n===-2?0:(n=th(t[i]),n>=0?(n>0&&(e.lastNeed=n-2),n):--i<r||n===-2?0:(n=th(t[i]),n>=0?(n>0&&(n===2?n=0:e.lastNeed=n-3),n):0))}function sM(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function uM(e){var t=this.lastTotal-this.lastNeed,r=sM(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function lM(e,t){var r=fM(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)}function hM(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function cM(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function dM(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function pM(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function vM(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function yM(e){return e.toString(this.encoding)}function gM(e){return e&&e.length?this.write(e):""}});var rs=k((dD,Oy)=>{"use strict";m();var Ty=Ui().codes.ERR_STREAM_PREMATURE_CLOSE;function bM(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,i=new Array(r),n=0;n<r;n++)i[n]=arguments[n];e.apply(this,i)}}}function _M(){}function mM(e){return e.setHeader&&typeof e.abort=="function"}function Iy(e,t,r){if(typeof t=="function")return Iy(e,null,t);t||(t={}),r=bM(r||_M);var i=t.readable||t.readable!==!1&&e.readable,n=t.writable||t.writable!==!1&&e.writable,a=function(){e.writable||s()},o=e._writableState&&e._writableState.finished,s=function(){n=!1,o=!0,i||r.call(e)},y=e._readableState&&e._readableState.endEmitted,_=function(){i=!1,y=!0,n||r.call(e)},x=function(O){r.call(e,O)},B=function(){var O;if(i&&!y)return(!e._readableState||!e._readableState.ended)&&(O=new Ty),r.call(e,O);if(n&&!o)return(!e._writableState||!e._writableState.ended)&&(O=new Ty),r.call(e,O)},R=function(){e.req.on("finish",s)};return mM(e)?(e.on("complete",s),e.on("abort",B),e.req?R():e.on("request",R)):n&&!e._writableState&&(e.on("end",a),e.on("close",a)),e.on("end",_),e.on("finish",s),t.error!==!1&&e.on("error",x),e.on("close",B),function(){e.removeListener("complete",s),e.removeListener("abort",B),e.removeListener("request",R),e.req&&e.req.removeListener("finish",s),e.removeListener("end",a),e.removeListener("close",a),e.removeListener("finish",s),e.removeListener("end",_),e.removeListener("error",x),e.removeListener("close",B)}}Oy.exports=Iy});var Dy=k((vD,qy)=>{"use strict";m();var is;function Gr(e,t,r){return t=wM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wM(e){var t=xM(e,"string");return typeof t=="symbol"?t:String(t)}function xM(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var EM=rs(),Vr=Symbol("lastResolve"),ji=Symbol("lastReject"),$a=Symbol("error"),ns=Symbol("ended"),zi=Symbol("lastPromise"),ih=Symbol("handlePromise"),Zi=Symbol("stream");function $r(e,t){return{value:e,done:t}}function SM(e){var t=e[Vr];if(t!==null){var r=e[Zi].read();r!==null&&(e[zi]=null,e[Vr]=null,e[ji]=null,t($r(r,!1)))}}function MM(e){M.default.nextTick(SM,e)}function AM(e,t){return function(r,i){e.then(function(){if(t[ns]){r($r(void 0,!0));return}t[ih](r,i)},i)}}var BM=Object.getPrototypeOf(function(){}),RM=Object.setPrototypeOf((is={get stream(){return this[Zi]},next:function(){var t=this,r=this[$a];if(r!==null)return Promise.reject(r);if(this[ns])return Promise.resolve($r(void 0,!0));if(this[Zi].destroyed)return new Promise(function(o,s){M.default.nextTick(function(){t[$a]?s(t[$a]):o($r(void 0,!0))})});var i=this[zi],n;if(i)n=new Promise(AM(i,this));else{var a=this[Zi].read();if(a!==null)return Promise.resolve($r(a,!1));n=new Promise(this[ih])}return this[zi]=n,n}},Gr(is,Symbol.asyncIterator,function(){return this}),Gr(is,"return",function(){var t=this;return new Promise(function(r,i){t[Zi].destroy(null,function(n){if(n){i(n);return}r($r(void 0,!0))})})}),is),BM),kM=function(t){var r,i=Object.create(RM,(r={},Gr(r,Zi,{value:t,writable:!0}),Gr(r,Vr,{value:null,writable:!0}),Gr(r,ji,{value:null,writable:!0}),Gr(r,$a,{value:null,writable:!0}),Gr(r,ns,{value:t._readableState.endEmitted,writable:!0}),Gr(r,ih,{value:function(a,o){var s=i[Zi].read();s?(i[zi]=null,i[Vr]=null,i[ji]=null,a($r(s,!1))):(i[Vr]=a,i[ji]=o)},writable:!0}),r));return i[zi]=null,EM(t,function(n){if(n&&n.code!=="ERR_STREAM_PREMATURE_CLOSE"){var a=i[ji];a!==null&&(i[zi]=null,i[Vr]=null,i[ji]=null,a(n)),i[$a]=n;return}var o=i[Vr];o!==null&&(i[zi]=null,i[Vr]=null,i[ji]=null,o($r(void 0,!0))),i[ns]=!0}),t.on("readable",MM.bind(null,i)),i};qy.exports=kM});var Py=k((gD,Ny)=>{m();Ny.exports=function(){throw new Error("Readable.from is not available in the browser")}});var Ql=k((mD,Ky)=>{"use strict";m();Ky.exports=ze;var Hn;ze.ReadableState=Fy;var _D=Tn().EventEmitter,Uy=function(t,r){return t.listeners(r).length},Ja=ul(),as=st().Buffer,TM=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function IM(e){return as.from(e)}function OM(e){return as.isBuffer(e)||e instanceof TM}var nh=Gt(),Le;nh&&nh.debuglog?Le=nh.debuglog("stream"):Le=function(){};var qM=uy(),hh=Hl(),DM=Wl(),NM=DM.getHighWaterMark,os=Ui().codes,PM=os.ERR_INVALID_ARG_TYPE,LM=os.ERR_STREAM_PUSH_AFTER_EOF,CM=os.ERR_METHOD_NOT_IMPLEMENTED,UM=os.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Wn,ah,oh;re()(ze,Ja);var Ya=hh.errorOrDestroy,fh=["error","close","destroy","pause","resume"];function FM(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function Fy(e,t,r){Hn=Hn||Fi(),e=e||{},typeof r!="boolean"&&(r=t instanceof Hn),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=NM(this,e,"readableHighWaterMark",r),this.buffer=new qM,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(Wn||(Wn=Zn().StringDecoder),this.decoder=new Wn(e.encoding),this.encoding=e.encoding)}function ze(e){if(Hn=Hn||Fi(),!(this instanceof ze))return new ze(e);var t=this instanceof Hn;this._readableState=new Fy(e,this,t),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),Ja.call(this)}Object.defineProperty(ze.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}});ze.prototype.destroy=hh.destroy;ze.prototype._undestroy=hh.undestroy;ze.prototype._destroy=function(e,t){t(e)};ze.prototype.push=function(e,t){var r=this._readableState,i;return r.objectMode?i=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=as.from(e,t),t=""),i=!0),jy(this,e,t,!1,i)};ze.prototype.unshift=function(e){return jy(this,e,null,!0,!1)};function jy(e,t,r,i,n){Le("readableAddChunk",t);var a=e._readableState;if(t===null)a.reading=!1,ZM(e,a);else{var o;if(n||(o=jM(a,t)),o)Ya(e,o);else if(a.objectMode||t&&t.length>0)if(typeof t!="string"&&!a.objectMode&&Object.getPrototypeOf(t)!==as.prototype&&(t=IM(t)),i)a.endEmitted?Ya(e,new UM):sh(e,a,t,!0);else if(a.ended)Ya(e,new LM);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||t.length!==0?sh(e,a,t,!1):lh(e,a)):sh(e,a,t,!1)}else i||(a.reading=!1,lh(e,a))}return!a.ended&&(a.length<a.highWaterMark||a.length===0)}function sh(e,t,r,i){t.flowing&&t.length===0&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,i?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&fs(e)),lh(e,t)}function jM(e,t){var r;return!OM(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new PM("chunk",["string","Buffer","Uint8Array"],t)),r}ze.prototype.isPaused=function(){return this._readableState.flowing===!1};ze.prototype.setEncoding=function(e){Wn||(Wn=Zn().StringDecoder);var t=new Wn(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";r!==null;)i+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),i!==""&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var Ly=1073741824;function zM(e){return e>=Ly?e=Ly:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function Cy(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=zM(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}ze.prototype.read=function(e){Le("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return Le("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?uh(this):fs(this),null;if(e=Cy(e,t),e===0&&t.ended)return t.length===0&&uh(this),null;var i=t.needReadable;Le("need readable",i),(t.length===0||t.length-e<t.highWaterMark)&&(i=!0,Le("length less than watermark",i)),t.ended||t.reading?(i=!1,Le("reading or ended",i)):i&&(Le("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=Cy(r,t)));var n;return e>0?n=Hy(e,t):n=null,n===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&uh(this)),n!==null&&this.emit("data",n),n};function ZM(e,t){if(Le("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?fs(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,zy(e)))}}function fs(e){var t=e._readableState;Le("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(Le("emitReadable",t.flowing),t.emittedReadable=!0,M.default.nextTick(zy,e))}function zy(e){var t=e._readableState;Le("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,ch(e)}function lh(e,t){t.readingMore||(t.readingMore=!0,M.default.nextTick(HM,e,t))}function HM(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0);){var r=t.length;if(Le("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}ze.prototype._read=function(e){Ya(this,new CM("_read()"))};ze.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e);break}i.pipesCount+=1,Le("pipe count=%d opts=%j",i.pipesCount,t);var n=(!t||t.end!==!1)&&e!==M.default.stdout&&e!==M.default.stderr,a=n?s:D;i.endEmitted?M.default.nextTick(a):r.once("end",a),e.on("unpipe",o);function o(U,N){Le("onunpipe"),U===r&&N&&N.hasUnpiped===!1&&(N.hasUnpiped=!0,x())}function s(){Le("onend"),e.end()}var y=WM(r);e.on("drain",y);var _=!1;function x(){Le("cleanup"),e.removeListener("close",T),e.removeListener("finish",O),e.removeListener("drain",y),e.removeListener("error",R),e.removeListener("unpipe",o),r.removeListener("end",s),r.removeListener("end",D),r.removeListener("data",B),_=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&y()}r.on("data",B);function B(U){Le("ondata");var N=e.write(U);Le("dest.write",N),N===!1&&((i.pipesCount===1&&i.pipes===e||i.pipesCount>1&&Wy(i.pipes,e)!==-1)&&!_&&(Le("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function R(U){Le("onerror",U),D(),e.removeListener("error",R),Uy(e,"error")===0&&Ya(e,U)}FM(e,"error",R);function T(){e.removeListener("finish",O),D()}e.once("close",T);function O(){Le("onfinish"),e.removeListener("close",T),D()}e.once("finish",O);function D(){Le("unpipe"),r.unpipe(e)}return e.emit("pipe",r),i.flowing||(Le("pipe resume"),r.resume()),e};function WM(e){return function(){var r=e._readableState;Le("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&Uy(e,"data")&&(r.flowing=!0,ch(e))}}ze.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var i=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<n;a++)i[a].emit("unpipe",this,{hasUnpiped:!1});return this}var o=Wy(t.pipes,e);return o===-1?this:(t.pipes.splice(o,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};ze.prototype.on=function(e,t){var r=Ja.prototype.on.call(this,e,t),i=this._readableState;return e==="data"?(i.readableListening=this.listenerCount("readable")>0,i.flowing!==!1&&this.resume()):e==="readable"&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,Le("on readable",i.length,i.reading),i.length?fs(this):i.reading||M.default.nextTick(KM,this)),r};ze.prototype.addListener=ze.prototype.on;ze.prototype.removeListener=function(e,t){var r=Ja.prototype.removeListener.call(this,e,t);return e==="readable"&&M.default.nextTick(Zy,this),r};ze.prototype.removeAllListeners=function(e){var t=Ja.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&M.default.nextTick(Zy,this),t};function Zy(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function KM(e){Le("readable nexttick read 0"),e.read(0)}ze.prototype.resume=function(){var e=this._readableState;return e.flowing||(Le("resume"),e.flowing=!e.readableListening,GM(this,e)),e.paused=!1,this};function GM(e,t){t.resumeScheduled||(t.resumeScheduled=!0,M.default.nextTick(VM,e,t))}function VM(e,t){Le("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),ch(e),t.flowing&&!t.reading&&e.read(0)}ze.prototype.pause=function(){return Le("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Le("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function ch(e){var t=e._readableState;for(Le("flow",t.flowing);t.flowing&&e.read()!==null;);}ze.prototype.wrap=function(e){var t=this,r=this._readableState,i=!1;e.on("end",function(){if(Le("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&t.push(o)}t.push(null)}),e.on("data",function(o){if(Le("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var s=t.push(o);s||(i=!0,e.pause())}});for(var n in e)this[n]===void 0&&typeof e[n]=="function"&&(this[n]=(function(s){return function(){return e[s].apply(e,arguments)}})(n));for(var a=0;a<fh.length;a++)e.on(fh[a],this.emit.bind(this,fh[a]));return this._read=function(o){Le("wrapped _read",o),i&&(i=!1,e.resume())},this};typeof Symbol=="function"&&(ze.prototype[Symbol.asyncIterator]=function(){return ah===void 0&&(ah=Dy()),ah(this)});Object.defineProperty(ze.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(ze.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(ze.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}});ze._fromList=Hy;Object.defineProperty(ze.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Hy(e,t){if(t.length===0)return null;var r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.first():r=t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r}function uh(e){var t=e._readableState;Le("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,M.default.nextTick($M,t,e))}function $M(e,t){if(Le("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}typeof Symbol=="function"&&(ze.from=function(e,t){return oh===void 0&&(oh=Py()),oh(ze,e,t)});function Wy(e,t){for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return-1}});var dh=k((xD,Vy)=>{"use strict";m();Vy.exports=kr;var ss=Ui().codes,YM=ss.ERR_METHOD_NOT_IMPLEMENTED,JM=ss.ERR_MULTIPLE_CALLBACK,XM=ss.ERR_TRANSFORM_ALREADY_TRANSFORMING,QM=ss.ERR_TRANSFORM_WITH_LENGTH_0,us=Fi();re()(kr,us);function e4(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(i===null)return this.emit("error",new JM);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),i(e);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function kr(e){if(!(this instanceof kr))return new kr(e);us.call(this,e),this._transformState={afterTransform:e4.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",t4)}function t4(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(t,r){Gy(e,t,r)}):Gy(this,null,null)}kr.prototype.push=function(e,t){return this._transformState.needTransform=!1,us.prototype.push.call(this,e,t)};kr.prototype._transform=function(e,t,r){r(new YM("_transform()"))};kr.prototype._write=function(e,t,r){var i=this._transformState;if(i.writecb=r,i.writechunk=e,i.writeencoding=t,!i.transforming){var n=this._readableState;(i.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}};kr.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};kr.prototype._destroy=function(e,t){us.prototype._destroy.call(this,e,function(r){t(r)})};function Gy(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new QM;if(e._transformState.transforming)throw new XM;return e.push(null)}});var Jy=k((SD,Yy)=>{"use strict";m();Yy.exports=Xa;var $y=dh();re()(Xa,$y);function Xa(e){if(!(this instanceof Xa))return new Xa(e);$y.call(this,e)}Xa.prototype._transform=function(e,t,r){r(null,e)}});var r1=k((AD,t1)=>{"use strict";m();var ph;function r4(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var e1=Ui().codes,i4=e1.ERR_MISSING_ARGS,n4=e1.ERR_STREAM_DESTROYED;function Xy(e){if(e)throw e}function a4(e){return e.setHeader&&typeof e.abort=="function"}function o4(e,t,r,i){i=r4(i);var n=!1;e.on("close",function(){n=!0}),ph===void 0&&(ph=rs()),ph(e,{readable:t,writable:r},function(o){if(o)return i(o);n=!0,i()});var a=!1;return function(o){if(!n&&!a){if(a=!0,a4(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();i(o||new n4("pipe"))}}}function Qy(e){e()}function f4(e,t){return e.pipe(t)}function s4(e){return!e.length||typeof e[e.length-1]!="function"?Xy:e.pop()}function u4(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=s4(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new i4("streams");var n,a=t.map(function(o,s){var y=s<t.length-1,_=s>0;return o4(o,y,_,function(x){n||(n=x),x&&a.forEach(Qy),!y&&(a.forEach(Qy),i(n))})});return t.reduce(f4)}t1.exports=u4});var ls=k((RD,i1)=>{m();i1.exports=qt;var vh=Tn().EventEmitter,l4=re();l4(qt,vh);qt.Readable=Ql();qt.Writable=Yl();qt.Duplex=Fi();qt.Transform=dh();qt.PassThrough=Jy();qt.finished=rs();qt.pipeline=r1();qt.Stream=qt;function qt(){vh.call(this)}qt.prototype.pipe=function(e,t){var r=this;function i(x){e.writable&&e.write(x)===!1&&r.pause&&r.pause()}r.on("data",i);function n(){r.readable&&r.resume&&r.resume()}e.on("drain",n),!e._isStdio&&(!t||t.end!==!1)&&(r.on("end",o),r.on("close",s));var a=!1;function o(){a||(a=!0,e.end())}function s(){a||(a=!0,typeof e.destroy=="function"&&e.destroy())}function y(x){if(_(),vh.listenerCount(this,"error")===0)throw x}r.on("error",y),e.on("error",y);function _(){r.removeListener("data",i),e.removeListener("drain",n),r.removeListener("end",o),r.removeListener("close",s),r.removeListener("error",y),e.removeListener("error",y),r.removeListener("end",_),r.removeListener("close",_),e.removeListener("close",_)}return r.on("end",_),r.on("close",_),e.on("close",_),e.emit("pipe",r),e}});var o1=k((TD,a1)=>{"use strict";m();var pr=Ne().Buffer,n1=ls().Transform,h4=re();function Yr(e){n1.call(this),this._block=pr.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}h4(Yr,n1);Yr.prototype._transform=function(e,t,r){var i=null;try{this.update(e,t)}catch(n){i=n}r(i)};Yr.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(r){t=r}e(t)};var c4=typeof Uint8Array<"u",d4=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&ArrayBuffer.isView&&(pr.prototype instanceof Uint8Array||pr.TYPED_ARRAY_SUPPORT);function p4(e,t){if(e instanceof pr)return e;if(typeof e=="string")return pr.from(e,t);if(d4&&ArrayBuffer.isView(e)){if(e.byteLength===0)return pr.alloc(0);var r=pr.from(e.buffer,e.byteOffset,e.byteLength);if(r.byteLength===e.byteLength)return r}if(c4&&e instanceof Uint8Array||pr.isBuffer(e)&&e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e))return pr.from(e);throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}Yr.prototype.update=function(e,t){if(this._finalized)throw new Error("Digest already called");e=p4(e,t);for(var r=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var n=this._blockOffset;n<this._blockSize;)r[n++]=e[i++];this._update(),this._blockOffset=0}for(;i<e.length;)r[this._blockOffset++]=e[i++];for(var a=0,o=e.length*8;o>0;++a)this._length[a]+=o,o=this._length[a]/4294967296|0,o>0&&(this._length[a]-=4294967296*o);return this};Yr.prototype._update=function(){throw new Error("_update is not implemented")};Yr.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();e!==void 0&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t};Yr.prototype._digest=function(){throw new Error("_digest is not implemented")};a1.exports=Yr});var ds=k((OD,s1)=>{"use strict";m();var v4=re(),f1=o1(),y4=Ne().Buffer,g4=new Array(16);function hs(){f1.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}v4(hs,f1);hs.prototype._update=function(){for(var e=g4,t=0;t<16;++t)e[t]=this._block.readInt32LE(t*4);var r=this._a,i=this._b,n=this._c,a=this._d;r=ct(r,i,n,a,e[0],3614090360,7),a=ct(a,r,i,n,e[1],3905402710,12),n=ct(n,a,r,i,e[2],606105819,17),i=ct(i,n,a,r,e[3],3250441966,22),r=ct(r,i,n,a,e[4],4118548399,7),a=ct(a,r,i,n,e[5],1200080426,12),n=ct(n,a,r,i,e[6],2821735955,17),i=ct(i,n,a,r,e[7],4249261313,22),r=ct(r,i,n,a,e[8],1770035416,7),a=ct(a,r,i,n,e[9],2336552879,12),n=ct(n,a,r,i,e[10],4294925233,17),i=ct(i,n,a,r,e[11],2304563134,22),r=ct(r,i,n,a,e[12],1804603682,7),a=ct(a,r,i,n,e[13],4254626195,12),n=ct(n,a,r,i,e[14],2792965006,17),i=ct(i,n,a,r,e[15],1236535329,22),r=dt(r,i,n,a,e[1],4129170786,5),a=dt(a,r,i,n,e[6],3225465664,9),n=dt(n,a,r,i,e[11],643717713,14),i=dt(i,n,a,r,e[0],3921069994,20),r=dt(r,i,n,a,e[5],3593408605,5),a=dt(a,r,i,n,e[10],38016083,9),n=dt(n,a,r,i,e[15],3634488961,14),i=dt(i,n,a,r,e[4],3889429448,20),r=dt(r,i,n,a,e[9],568446438,5),a=dt(a,r,i,n,e[14],3275163606,9),n=dt(n,a,r,i,e[3],4107603335,14),i=dt(i,n,a,r,e[8],1163531501,20),r=dt(r,i,n,a,e[13],2850285829,5),a=dt(a,r,i,n,e[2],4243563512,9),n=dt(n,a,r,i,e[7],1735328473,14),i=dt(i,n,a,r,e[12],2368359562,20),r=pt(r,i,n,a,e[5],4294588738,4),a=pt(a,r,i,n,e[8],2272392833,11),n=pt(n,a,r,i,e[11],1839030562,16),i=pt(i,n,a,r,e[14],4259657740,23),r=pt(r,i,n,a,e[1],2763975236,4),a=pt(a,r,i,n,e[4],1272893353,11),n=pt(n,a,r,i,e[7],4139469664,16),i=pt(i,n,a,r,e[10],3200236656,23),r=pt(r,i,n,a,e[13],681279174,4),a=pt(a,r,i,n,e[0],3936430074,11),n=pt(n,a,r,i,e[3],3572445317,16),i=pt(i,n,a,r,e[6],76029189,23),r=pt(r,i,n,a,e[9],3654602809,4),a=pt(a,r,i,n,e[12],3873151461,11),n=pt(n,a,r,i,e[15],530742520,16),i=pt(i,n,a,r,e[2],3299628645,23),r=vt(r,i,n,a,e[0],4096336452,6),a=vt(a,r,i,n,e[7],1126891415,10),n=vt(n,a,r,i,e[14],2878612391,15),i=vt(i,n,a,r,e[5],4237533241,21),r=vt(r,i,n,a,e[12],1700485571,6),a=vt(a,r,i,n,e[3],2399980690,10),n=vt(n,a,r,i,e[10],4293915773,15),i=vt(i,n,a,r,e[1],2240044497,21),r=vt(r,i,n,a,e[8],1873313359,6),a=vt(a,r,i,n,e[15],4264355552,10),n=vt(n,a,r,i,e[6],2734768916,15),i=vt(i,n,a,r,e[13],1309151649,21),r=vt(r,i,n,a,e[4],4149444226,6),a=vt(a,r,i,n,e[11],3174756917,10),n=vt(n,a,r,i,e[2],718787259,15),i=vt(i,n,a,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+i|0,this._c=this._c+n|0,this._d=this._d+a|0};hs.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=y4.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e};function cs(e,t){return e<<t|e>>>32-t}function ct(e,t,r,i,n,a,o){return cs(e+(t&r|~t&i)+n+a|0,o)+t|0}function dt(e,t,r,i,n,a,o){return cs(e+(t&i|r&~i)+n+a|0,o)+t|0}function pt(e,t,r,i,n,a,o){return cs(e+(t^r^i)+n+a|0,o)+t|0}function vt(e,t,r,i,n,a,o){return cs(e+(r^(t|~i))+n+a|0,o)+t|0}s1.exports=hs});var l1=k((DD,u1)=>{m();var b4={}.toString;u1.exports=Array.isArray||function(e){return b4.call(e)=="[object Array]"}});var c1=k((PD,h1)=>{"use strict";m();var _4=Di(),m4=Hr(),w4=m4("TypedArray.prototype.buffer",!0),x4=Dl();h1.exports=w4||function(t){if(!x4(t))throw new _4("Not a Typed Array");return t.buffer}});var Qa=k((CD,p1)=>{"use strict";m();var Vt=Ne().Buffer,E4=l1(),S4=c1(),M4=ArrayBuffer.isView||function(t){try{return S4(t),!0}catch{return!1}},A4=typeof Uint8Array<"u",d1=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",B4=d1&&(Vt.prototype instanceof Uint8Array||Vt.TYPED_ARRAY_SUPPORT);p1.exports=function(t,r){if(Vt.isBuffer(t))return t.constructor&&!("isBuffer"in t)?Vt.from(t):t;if(typeof t=="string")return Vt.from(t,r);if(d1&&M4(t)){if(t.byteLength===0)return Vt.alloc(0);if(B4){var i=Vt.from(t.buffer,t.byteOffset,t.byteLength);if(i.byteLength===t.byteLength)return i}var n=t instanceof Uint8Array?t:new Uint8Array(t.buffer,t.byteOffset,t.byteLength),a=Vt.from(n);if(a.length===t.byteLength)return a}if(A4&&t instanceof Uint8Array)return Vt.from(t);var o=E4(t);if(o)for(var s=0;s<t.length;s+=1){var y=t[s];if(typeof y!="number"||y<0||y>255||~~y!==y)throw new RangeError("Array items must be numbers in the range 0-255.")}if(o||Vt.isBuffer(t)&&t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t))return Vt.from(t);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')}});var b1=k((FD,g1)=>{"use strict";m();var R4=Ne().Buffer,k4=Qa(),y1=typeof Uint8Array<"u",T4=y1&&typeof ArrayBuffer<"u",v1=T4&&ArrayBuffer.isView;g1.exports=function(e,t){if(typeof e=="string"||R4.isBuffer(e)||y1&&e instanceof Uint8Array||v1&&v1(e))return k4(e,t);throw new TypeError('The "data" argument must be a string, a Buffer, a Uint8Array, or a DataView')}});var eo=k((zD,yh)=>{"use strict";m();typeof M.default>"u"||!M.default.version||M.default.version.indexOf("v0.")===0||M.default.version.indexOf("v1.")===0&&M.default.version.indexOf("v1.8.")!==0?yh.exports={nextTick:I4}:yh.exports=M.default;function I4(e,t,r,i){if(typeof e!="function")throw new TypeError('"callback" argument must be a function');var n=arguments.length,a,o;switch(n){case 0:case 1:return M.default.nextTick(e);case 2:return M.default.nextTick(function(){e.call(null,t)});case 3:return M.default.nextTick(function(){e.call(null,t,r)});case 4:return M.default.nextTick(function(){e.call(null,t,r,i)});default:for(a=new Array(n-1),o=0;o<a.length;)a[o++]=arguments[o];return M.default.nextTick(function(){e.apply(null,a)})}}});var m1=k((HD,_1)=>{m();var O4={}.toString;_1.exports=Array.isArray||function(e){return O4.call(e)=="[object Array]"}});var gh=k((KD,w1)=>{m();w1.exports=Tn().EventEmitter});var vs=k((bh,E1)=>{m();var ps=st(),Tr=ps.Buffer;function x1(e,t){for(var r in e)t[r]=e[r]}Tr.from&&Tr.alloc&&Tr.allocUnsafe&&Tr.allocUnsafeSlow?E1.exports=ps:(x1(ps,bh),bh.Buffer=Kn);function Kn(e,t,r){return Tr(e,t,r)}x1(Tr,Kn);Kn.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Tr(e,t,r)};Kn.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var i=Tr(e);return t!==void 0?typeof r=="string"?i.fill(t,r):i.fill(t):i.fill(0),i};Kn.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Tr(e)};Kn.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return ps.SlowBuffer(e)}});var Gn=k(yt=>{m();function q4(e){return Array.isArray?Array.isArray(e):ys(e)==="[object Array]"}yt.isArray=q4;function D4(e){return typeof e=="boolean"}yt.isBoolean=D4;function N4(e){return e===null}yt.isNull=N4;function P4(e){return e==null}yt.isNullOrUndefined=P4;function L4(e){return typeof e=="number"}yt.isNumber=L4;function C4(e){return typeof e=="string"}yt.isString=C4;function U4(e){return typeof e=="symbol"}yt.isSymbol=U4;function F4(e){return e===void 0}yt.isUndefined=F4;function j4(e){return ys(e)==="[object RegExp]"}yt.isRegExp=j4;function z4(e){return typeof e=="object"&&e!==null}yt.isObject=z4;function Z4(e){return ys(e)==="[object Date]"}yt.isDate=Z4;function H4(e){return ys(e)==="[object Error]"||e instanceof Error}yt.isError=H4;function W4(e){return typeof e=="function"}yt.isFunction=W4;function K4(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}yt.isPrimitive=K4;yt.isBuffer=st().Buffer.isBuffer;function ys(e){return Object.prototype.toString.call(e)}});var M1=k((JD,_h)=>{"use strict";m();function G4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var S1=vs().Buffer,to=Gt();function V4(e,t,r){e.copy(t,r)}_h.exports=(function(){function e(){G4(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(r){var i={data:r,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length},e.prototype.unshift=function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length},e.prototype.shift=function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(r){if(this.length===0)return"";for(var i=this.head,n=""+i.data;i=i.next;)n+=r+i.data;return n},e.prototype.concat=function(r){if(this.length===0)return S1.alloc(0);for(var i=S1.allocUnsafe(r>>>0),n=this.head,a=0;n;)V4(n.data,i,a),a+=n.data.length,n=n.next;return i},e})();to&&to.inspect&&to.inspect.custom&&(_h.exports.prototype[to.inspect.custom]=function(){var e=to.inspect({length:this.length});return this.constructor.name+" "+e})});var mh=k((QD,A1)=>{"use strict";m();var gs=eo();function $4(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return i||n?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,gs.nextTick(bs,this,e)):gs.nextTick(bs,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(a){!t&&a?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,gs.nextTick(bs,r,a)):gs.nextTick(bs,r,a):t&&t(a)}),this)}function Y4(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function bs(e,t){e.emit("error",t)}A1.exports={destroy:$4,undestroy:Y4}});var xh=k((tN,D1)=>{"use strict";m();var Hi=eo();D1.exports=tt;function R1(e){var t=this;this.next=null,this.entry=null,this.finish=function(){pA(t,e)}}var J4=!M.default.browser&&["v0.10","v0.9."].indexOf(M.default.version.slice(0,5))>-1?setImmediate:Hi.nextTick,Vn;tt.WritableState=io;var k1=Object.create(Gn());k1.inherits=re();var X4={deprecate:Gl()},T1=gh(),ms=vs().Buffer,Q4=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function eA(e){return ms.from(e)}function tA(e){return ms.isBuffer(e)||e instanceof Q4}var I1=mh();k1.inherits(tt,T1);function rA(){}function io(e,t){Vn=Vn||Wi(),e=e||{};var r=t instanceof Vn;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,n=e.writableHighWaterMark,a=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(n||n===0)?this.highWaterMark=n:this.highWaterMark=a,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=e.decodeStrings===!1;this.decodeStrings=!o,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(s){uA(t,s)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new R1(this)}io.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(io.prototype,"buffer",{get:X4.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var _s;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(_s=Function.prototype[Symbol.hasInstance],Object.defineProperty(tt,Symbol.hasInstance,{value:function(e){return _s.call(this,e)?!0:this!==tt?!1:e&&e._writableState instanceof io}})):_s=function(e){return e instanceof this};function tt(e){if(Vn=Vn||Wi(),!_s.call(tt,this)&&!(this instanceof Vn))return new tt(e);this._writableState=new io(e,this),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),T1.call(this)}tt.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function iA(e,t){var r=new Error("write after end");e.emit("error",r),Hi.nextTick(t,r)}function nA(e,t,r,i){var n=!0,a=!1;return r===null?a=new TypeError("May not write null values to stream"):typeof r!="string"&&r!==void 0&&!t.objectMode&&(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),Hi.nextTick(i,a),n=!1),n}tt.prototype.write=function(e,t,r){var i=this._writableState,n=!1,a=!i.objectMode&&tA(e);return a&&!ms.isBuffer(e)&&(e=eA(e)),typeof t=="function"&&(r=t,t=null),a?t="buffer":t||(t=i.defaultEncoding),typeof r!="function"&&(r=rA),i.ended?iA(this,r):(a||nA(this,i,e,r))&&(i.pendingcb++,n=oA(this,i,a,e,t,r)),n};tt.prototype.cork=function(){var e=this._writableState;e.corked++};tt.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&O1(this,e))};tt.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this};function aA(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=ms.from(t,r)),t}Object.defineProperty(tt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function oA(e,t,r,i,n,a){if(!r){var o=aA(t,i,n);i!==o&&(r=!0,n="buffer",i=o)}var s=t.objectMode?1:i.length;t.length+=s;var y=t.length<t.highWaterMark;if(y||(t.needDrain=!0),t.writing||t.corked){var _=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:a,next:null},_?_.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else wh(e,t,!1,s,i,n,a);return y}function wh(e,t,r,i,n,a,o){t.writelen=i,t.writecb=o,t.writing=!0,t.sync=!0,r?e._writev(n,t.onwrite):e._write(n,a,t.onwrite),t.sync=!1}function fA(e,t,r,i,n){--t.pendingcb,r?(Hi.nextTick(n,i),Hi.nextTick(ro,e,t),e._writableState.errorEmitted=!0,e.emit("error",i)):(n(i),e._writableState.errorEmitted=!0,e.emit("error",i),ro(e,t))}function sA(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function uA(e,t){var r=e._writableState,i=r.sync,n=r.writecb;if(sA(r),t)fA(e,r,i,t,n);else{var a=q1(r);!a&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&O1(e,r),i?J4(B1,e,r,a,n):B1(e,r,a,n)}}function B1(e,t,r,i){r||lA(e,t),t.pendingcb--,i(),ro(e,t)}function lA(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function O1(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,n=new Array(i),a=t.corkedRequestsFree;a.entry=r;for(var o=0,s=!0;r;)n[o]=r,r.isBuf||(s=!1),r=r.next,o+=1;n.allBuffers=s,wh(e,t,!0,t.length,n,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new R1(t),t.bufferedRequestCount=0}else{for(;r;){var y=r.chunk,_=r.encoding,x=r.callback,B=t.objectMode?1:y.length;if(wh(e,t,!1,B,y,_,x),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}tt.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))};tt.prototype._writev=null;tt.prototype.end=function(e,t,r){var i=this._writableState;typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),e!=null&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||dA(this,i,r)};function q1(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function hA(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),ro(e,t)})}function cA(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"?(t.pendingcb++,t.finalCalled=!0,Hi.nextTick(hA,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function ro(e,t){var r=q1(t);return r&&(cA(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"))),r}function dA(e,t,r){t.ending=!0,ro(e,t),r&&(t.finished?Hi.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function pA(e,t,r){var i=e.entry;for(e.entry=null;i;){var n=i.callback;t.pendingcb--,n(r),i=i.next}t.corkedRequestsFree.next=e}Object.defineProperty(tt.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});tt.prototype.destroy=I1.destroy;tt.prototype._undestroy=I1.undestroy;tt.prototype._destroy=function(e,t){this.end(),t(e)}});var Wi=k((iN,C1)=>{"use strict";m();var N1=eo(),vA=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};C1.exports=Ir;var P1=Object.create(Gn());P1.inherits=re();var L1=Mh(),Sh=xh();P1.inherits(Ir,L1);for(Eh=vA(Sh.prototype),ws=0;ws<Eh.length;ws++)xs=Eh[ws],Ir.prototype[xs]||(Ir.prototype[xs]=Sh.prototype[xs]);var Eh,xs,ws;function Ir(e){if(!(this instanceof Ir))return new Ir(e);L1.call(this,e),Sh.call(this,e),e&&e.readable===!1&&(this.readable=!1),e&&e.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,e&&e.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",yA)}Object.defineProperty(Ir.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function yA(){this.allowHalfOpen||this._writableState.ended||N1.nextTick(gA,this)}function gA(e){e.end()}Object.defineProperty(Ir.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}});Ir.prototype._destroy=function(e,t){this.push(null),this.end(),N1.nextTick(t,e)}});var Mh=k((oN,Y1)=>{"use strict";m();var Yn=eo();Y1.exports=Ve;var bA=m1(),no;Ve.ReadableState=W1;var aN=Tn().EventEmitter,z1=function(e,t){return e.listeners(t).length},Th=gh(),ao=vs().Buffer,_A=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function mA(e){return ao.from(e)}function wA(e){return ao.isBuffer(e)||e instanceof _A}var Z1=Object.create(Gn());Z1.inherits=re();var Ah=Gt(),He=void 0;Ah&&Ah.debuglog?He=Ah.debuglog("stream"):He=function(){};var xA=M1(),H1=mh(),$n;Z1.inherits(Ve,Th);var Bh=["error","close","destroy","pause","resume"];function EA(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):bA(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function W1(e,t){no=no||Wi(),e=e||{};var r=t instanceof no;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,n=e.readableHighWaterMark,a=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(n||n===0)?this.highWaterMark=n:this.highWaterMark=a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new xA,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&($n||($n=Zn().StringDecoder),this.decoder=new $n(e.encoding),this.encoding=e.encoding)}function Ve(e){if(no=no||Wi(),!(this instanceof Ve))return new Ve(e);this._readableState=new W1(e,this),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),Th.call(this)}Object.defineProperty(Ve.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});Ve.prototype.destroy=H1.destroy;Ve.prototype._undestroy=H1.undestroy;Ve.prototype._destroy=function(e,t){this.push(null),t(e)};Ve.prototype.push=function(e,t){var r=this._readableState,i;return r.objectMode?i=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=ao.from(e,t),t=""),i=!0),K1(this,e,t,!1,i)};Ve.prototype.unshift=function(e){return K1(this,e,null,!0,!1)};function K1(e,t,r,i,n){var a=e._readableState;if(t===null)a.reading=!1,BA(e,a);else{var o;n||(o=SA(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?(typeof t!="string"&&!a.objectMode&&Object.getPrototypeOf(t)!==ao.prototype&&(t=mA(t)),i?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):Rh(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||t.length!==0?Rh(e,a,t,!1):G1(e,a)):Rh(e,a,t,!1))):i||(a.reading=!1)}return MA(a)}function Rh(e,t,r,i){t.flowing&&t.length===0&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,i?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&Es(e)),G1(e,t)}function SA(e,t){var r;return!wA(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}function MA(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}Ve.prototype.isPaused=function(){return this._readableState.flowing===!1};Ve.prototype.setEncoding=function(e){return $n||($n=Zn().StringDecoder),this._readableState.decoder=new $n(e),this._readableState.encoding=e,this};var U1=8388608;function AA(e){return e>=U1?e=U1:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function F1(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=AA(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}Ve.prototype.read=function(e){He("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return He("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?kh(this):Es(this),null;if(e=F1(e,t),e===0&&t.ended)return t.length===0&&kh(this),null;var i=t.needReadable;He("need readable",i),(t.length===0||t.length-e<t.highWaterMark)&&(i=!0,He("length less than watermark",i)),t.ended||t.reading?(i=!1,He("reading or ended",i)):i&&(He("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=F1(r,t)));var n;return e>0?n=V1(e,t):n=null,n===null?(t.needReadable=!0,e=0):t.length-=e,t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&kh(this)),n!==null&&this.emit("data",n),n};function BA(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,Es(e)}}function Es(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(He("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?Yn.nextTick(j1,e):j1(e))}function j1(e){He("emit readable"),e.emit("readable"),Ih(e)}function G1(e,t){t.readingMore||(t.readingMore=!0,Yn.nextTick(RA,e,t))}function RA(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(He("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}Ve.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))};Ve.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e);break}i.pipesCount+=1,He("pipe count=%d opts=%j",i.pipesCount,t);var n=(!t||t.end!==!1)&&e!==M.default.stdout&&e!==M.default.stderr,a=n?s:U;i.endEmitted?Yn.nextTick(a):r.once("end",a),e.on("unpipe",o);function o(N,j){He("onunpipe"),N===r&&j&&j.hasUnpiped===!1&&(j.hasUnpiped=!0,x())}function s(){He("onend"),e.end()}var y=kA(r);e.on("drain",y);var _=!1;function x(){He("cleanup"),e.removeListener("close",O),e.removeListener("finish",D),e.removeListener("drain",y),e.removeListener("error",T),e.removeListener("unpipe",o),r.removeListener("end",s),r.removeListener("end",U),r.removeListener("data",R),_=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&y()}var B=!1;r.on("data",R);function R(N){He("ondata"),B=!1;var j=e.write(N);j===!1&&!B&&((i.pipesCount===1&&i.pipes===e||i.pipesCount>1&&$1(i.pipes,e)!==-1)&&!_&&(He("false write response, pause",i.awaitDrain),i.awaitDrain++,B=!0),r.pause())}function T(N){He("onerror",N),U(),e.removeListener("error",T),z1(e,"error")===0&&e.emit("error",N)}EA(e,"error",T);function O(){e.removeListener("finish",D),U()}e.once("close",O);function D(){He("onfinish"),e.removeListener("close",O),U()}e.once("finish",D);function U(){He("unpipe"),r.unpipe(e)}return e.emit("pipe",r),i.flowing||(He("pipe resume"),r.resume()),e};function kA(e){return function(){var t=e._readableState;He("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&z1(e,"data")&&(t.flowing=!0,Ih(e))}}Ve.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var i=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<n;a++)i[a].emit("unpipe",this,{hasUnpiped:!1});return this}var o=$1(t.pipes,e);return o===-1?this:(t.pipes.splice(o,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};Ve.prototype.on=function(e,t){var r=Th.prototype.on.call(this,e,t);if(e==="data")this._readableState.flowing!==!1&&this.resume();else if(e==="readable"){var i=this._readableState;!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&Es(this):Yn.nextTick(TA,this))}return r};Ve.prototype.addListener=Ve.prototype.on;function TA(e){He("readable nexttick read 0"),e.read(0)}Ve.prototype.resume=function(){var e=this._readableState;return e.flowing||(He("resume"),e.flowing=!0,IA(this,e)),this};function IA(e,t){t.resumeScheduled||(t.resumeScheduled=!0,Yn.nextTick(OA,e,t))}function OA(e,t){t.reading||(He("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),Ih(e),t.flowing&&!t.reading&&e.read(0)}Ve.prototype.pause=function(){return He("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(He("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function Ih(e){var t=e._readableState;for(He("flow",t.flowing);t.flowing&&e.read()!==null;);}Ve.prototype.wrap=function(e){var t=this,r=this._readableState,i=!1;e.on("end",function(){if(He("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&t.push(o)}t.push(null)}),e.on("data",function(o){if(He("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var s=t.push(o);s||(i=!0,e.pause())}});for(var n in e)this[n]===void 0&&typeof e[n]=="function"&&(this[n]=(function(o){return function(){return e[o].apply(e,arguments)}})(n));for(var a=0;a<Bh.length;a++)e.on(Bh[a],this.emit.bind(this,Bh[a]));return this._read=function(o){He("wrapped _read",o),i&&(i=!1,e.resume())},this};Object.defineProperty(Ve.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Ve._fromList=V1;function V1(e,t){if(t.length===0)return null;var r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.head.data:r=t.buffer.concat(t.length),t.buffer.clear()):r=qA(e,t.buffer,t.decoder),r}function qA(e,t,r){var i;return e<t.head.data.length?(i=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):e===t.head.data.length?i=t.shift():i=r?DA(e,t):NA(e,t),i}function DA(e,t){var r=t.head,i=1,n=r.data;for(e-=n.length;r=r.next;){var a=r.data,o=e>a.length?a.length:e;if(o===a.length?n+=a:n+=a.slice(0,e),e-=o,e===0){o===a.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=a.slice(o));break}++i}return t.length-=i,n}function NA(e,t){var r=ao.allocUnsafe(e),i=t.head,n=1;for(i.data.copy(r),e-=i.data.length;i=i.next;){var a=i.data,o=e>a.length?a.length:e;if(a.copy(r,r.length-e,0,o),e-=o,e===0){o===a.length?(++n,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i,i.data=a.slice(o));break}++n}return t.length-=n,r}function kh(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,Yn.nextTick(PA,t,e))}function PA(e,t){!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function $1(e,t){for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return-1}});var Oh=k((sN,Q1)=>{"use strict";m();Q1.exports=Or;var Ss=Wi(),X1=Object.create(Gn());X1.inherits=re();X1.inherits(Or,Ss);function LA(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(!i)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,t!=null&&this.push(t),i(e);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function Or(e){if(!(this instanceof Or))return new Or(e);Ss.call(this,e),this._transformState={afterTransform:LA.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",CA)}function CA(){var e=this;typeof this._flush=="function"?this._flush(function(t,r){J1(e,t,r)}):J1(this,null,null)}Or.prototype.push=function(e,t){return this._transformState.needTransform=!1,Ss.prototype.push.call(this,e,t)};Or.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")};Or.prototype._write=function(e,t,r){var i=this._transformState;if(i.writecb=r,i.writechunk=e,i.writeencoding=t,!i.transforming){var n=this._readableState;(i.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}};Or.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};Or.prototype._destroy=function(e,t){var r=this;Ss.prototype._destroy.call(this,e,function(i){t(i),r.emit("close")})};function J1(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}});var ig=k((lN,rg)=>{"use strict";m();rg.exports=oo;var eg=Oh(),tg=Object.create(Gn());tg.inherits=re();tg.inherits(oo,eg);function oo(e){if(!(this instanceof oo))return new oo(e);eg.call(this,e)}oo.prototype._transform=function(e,t,r){r(null,e)}});var ag=k((vr,ng)=>{m();vr=ng.exports=Mh();vr.Stream=vr;vr.Readable=vr;vr.Writable=xh();vr.Duplex=Wi();vr.Transform=Oh();vr.PassThrough=ig()});var sg=k((dN,fg)=>{"use strict";m();var UA=Ne().Buffer,FA=b1(),og=ag().Transform,jA=re();function Jr(e){og.call(this),this._block=UA.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}jA(Jr,og);Jr.prototype._transform=function(e,t,r){var i=null;try{this.update(e,t)}catch(n){i=n}r(i)};Jr.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(r){t=r}e(t)};Jr.prototype.update=function(e,t){if(this._finalized)throw new Error("Digest already called");for(var r=FA(e,t),i=this._block,n=0;this._blockOffset+r.length-n>=this._blockSize;){for(var a=this._blockOffset;a<this._blockSize;)i[a]=r[n],a+=1,n+=1;this._update(),this._blockOffset=0}for(;n<r.length;)i[this._blockOffset]=r[n],this._blockOffset+=1,n+=1;for(var o=0,s=r.length*8;s>0;++o)this._length[o]+=s,s=this._length[o]/4294967296|0,s>0&&(this._length[o]-=4294967296*s);return this};Jr.prototype._update=function(){throw new Error("_update is not implemented")};Jr.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();e!==void 0&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t};Jr.prototype._digest=function(){throw new Error("_digest is not implemented")};fg.exports=Jr});var As=k((vN,vg)=>{"use strict";m();var qh=st().Buffer,zA=re(),pg=sg(),ZA=new Array(16),fo=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],so=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],uo=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],lo=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],ho=[0,1518500249,1859775393,2400959708,2840853838],co=[1352829926,1548603684,1836072691,2053994217,0];function Ki(e,t){return e<<t|e>>>32-t}function ug(e,t,r,i,n,a,o,s){return Ki(e+(t^r^i)+a+o|0,s)+n|0}function lg(e,t,r,i,n,a,o,s){return Ki(e+(t&r|~t&i)+a+o|0,s)+n|0}function hg(e,t,r,i,n,a,o,s){return Ki(e+((t|~r)^i)+a+o|0,s)+n|0}function cg(e,t,r,i,n,a,o,s){return Ki(e+(t&i|r&~i)+a+o|0,s)+n|0}function dg(e,t,r,i,n,a,o,s){return Ki(e+(t^(r|~i))+a+o|0,s)+n|0}function Ms(){pg.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}zA(Ms,pg);Ms.prototype._update=function(){for(var e=ZA,t=0;t<16;++t)e[t]=this._block.readInt32LE(t*4);for(var r=this._a|0,i=this._b|0,n=this._c|0,a=this._d|0,o=this._e|0,s=this._a|0,y=this._b|0,_=this._c|0,x=this._d|0,B=this._e|0,R=0;R<80;R+=1){var T,O;R<16?(T=ug(r,i,n,a,o,e[fo[R]],ho[0],uo[R]),O=dg(s,y,_,x,B,e[so[R]],co[0],lo[R])):R<32?(T=lg(r,i,n,a,o,e[fo[R]],ho[1],uo[R]),O=cg(s,y,_,x,B,e[so[R]],co[1],lo[R])):R<48?(T=hg(r,i,n,a,o,e[fo[R]],ho[2],uo[R]),O=hg(s,y,_,x,B,e[so[R]],co[2],lo[R])):R<64?(T=cg(r,i,n,a,o,e[fo[R]],ho[3],uo[R]),O=lg(s,y,_,x,B,e[so[R]],co[3],lo[R])):(T=dg(r,i,n,a,o,e[fo[R]],ho[4],uo[R]),O=ug(s,y,_,x,B,e[so[R]],co[4],lo[R])),r=o,o=a,a=Ki(n,10),n=i,i=T,s=B,B=x,x=Ki(_,10),_=y,y=O}var D=this._b+n+x|0;this._b=this._c+a+B|0,this._c=this._d+o+s|0,this._d=this._e+r+y|0,this._e=this._a+i+_|0,this._a=D};Ms.prototype._digest=function(){this._block[this._blockOffset]=128,this._blockOffset+=1,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=qh.alloc?qh.alloc(20):new qh(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e};vg.exports=Ms});var Gi=k((gN,yg)=>{"use strict";m();var HA=Ne().Buffer,WA=Qa();function Bs(e,t){this._block=HA.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}Bs.prototype.update=function(e,t){e=WA(e,t||"utf8");for(var r=this._block,i=this._blockSize,n=e.length,a=this._len,o=0;o<n;){for(var s=a%i,y=Math.min(n-o,i-s),_=0;_<y;_++)r[s+_]=e[o+_];a+=y,o+=y,a%i===0&&this._update(r)}return this._len+=n,this};Bs.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=this._len*8;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var i=(r&4294967295)>>>0,n=(r-i)/4294967296;this._block.writeUInt32BE(n,this._blockSize-8),this._block.writeUInt32BE(i,this._blockSize-4)}this._update(this._block);var a=this._hash();return e?a.toString(e):a};Bs.prototype._update=function(){throw new Error("_update must be implemented by subclass")};yg.exports=Bs});var _g=k((_N,bg)=>{"use strict";m();var KA=re(),gg=Gi(),GA=Ne().Buffer,VA=[1518500249,1859775393,-1894007588,-899497514],$A=new Array(80);function po(){this.init(),this._w=$A,gg.call(this,64,56)}KA(po,gg);po.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function YA(e){return e<<5|e>>>27}function JA(e){return e<<30|e>>>2}function XA(e,t,r,i){return e===0?t&r|~t&i:e===2?t&r|t&i|r&i:t^r^i}po.prototype._update=function(e){for(var t=this._w,r=this._a|0,i=this._b|0,n=this._c|0,a=this._d|0,o=this._e|0,s=0;s<16;++s)t[s]=e.readInt32BE(s*4);for(;s<80;++s)t[s]=t[s-3]^t[s-8]^t[s-14]^t[s-16];for(var y=0;y<80;++y){var _=~~(y/20),x=YA(r)+XA(_,i,n,a)+o+t[y]+VA[_]|0;o=a,a=n,n=JA(i),i=r,r=x}this._a=r+this._a|0,this._b=i+this._b|0,this._c=n+this._c|0,this._d=a+this._d|0,this._e=o+this._e|0};po.prototype._hash=function(){var e=GA.allocUnsafe(20);return e.writeInt32BE(this._a|0,0),e.writeInt32BE(this._b|0,4),e.writeInt32BE(this._c|0,8),e.writeInt32BE(this._d|0,12),e.writeInt32BE(this._e|0,16),e};bg.exports=po});var xg=k((wN,wg)=>{"use strict";m();var QA=re(),mg=Gi(),e5=Ne().Buffer,t5=[1518500249,1859775393,-1894007588,-899497514],r5=new Array(80);function vo(){this.init(),this._w=r5,mg.call(this,64,56)}QA(vo,mg);vo.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function i5(e){return e<<1|e>>>31}function n5(e){return e<<5|e>>>27}function a5(e){return e<<30|e>>>2}function o5(e,t,r,i){return e===0?t&r|~t&i:e===2?t&r|t&i|r&i:t^r^i}vo.prototype._update=function(e){for(var t=this._w,r=this._a|0,i=this._b|0,n=this._c|0,a=this._d|0,o=this._e|0,s=0;s<16;++s)t[s]=e.readInt32BE(s*4);for(;s<80;++s)t[s]=i5(t[s-3]^t[s-8]^t[s-14]^t[s-16]);for(var y=0;y<80;++y){var _=~~(y/20),x=n5(r)+o5(_,i,n,a)+o+t[y]+t5[_]|0;o=a,a=n,n=a5(i),i=r,r=x}this._a=r+this._a|0,this._b=i+this._b|0,this._c=n+this._c|0,this._d=a+this._d|0,this._e=o+this._e|0};vo.prototype._hash=function(){var e=e5.allocUnsafe(20);return e.writeInt32BE(this._a|0,0),e.writeInt32BE(this._b|0,4),e.writeInt32BE(this._c|0,8),e.writeInt32BE(this._d|0,12),e.writeInt32BE(this._e|0,16),e};wg.exports=vo});var Dh=k((EN,Sg)=>{"use strict";m();var f5=re(),Eg=Gi(),s5=Ne().Buffer,u5=[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],l5=new Array(64);function yo(){this.init(),this._w=l5,Eg.call(this,64,56)}f5(yo,Eg);yo.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function h5(e,t,r){return r^e&(t^r)}function c5(e,t,r){return e&t|r&(e|t)}function d5(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function p5(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function v5(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function y5(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}yo.prototype._update=function(e){for(var t=this._w,r=this._a|0,i=this._b|0,n=this._c|0,a=this._d|0,o=this._e|0,s=this._f|0,y=this._g|0,_=this._h|0,x=0;x<16;++x)t[x]=e.readInt32BE(x*4);for(;x<64;++x)t[x]=y5(t[x-2])+t[x-7]+v5(t[x-15])+t[x-16]|0;for(var B=0;B<64;++B){var R=_+p5(o)+h5(o,s,y)+u5[B]+t[B]|0,T=d5(r)+c5(r,i,n)|0;_=y,y=s,s=o,o=a+R|0,a=n,n=i,i=r,r=R+T|0}this._a=r+this._a|0,this._b=i+this._b|0,this._c=n+this._c|0,this._d=a+this._d|0,this._e=o+this._e|0,this._f=s+this._f|0,this._g=y+this._g|0,this._h=_+this._h|0};yo.prototype._hash=function(){var e=s5.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e};Sg.exports=yo});var Ag=k((MN,Mg)=>{"use strict";m();var g5=re(),b5=Dh(),_5=Gi(),m5=Ne().Buffer,w5=new Array(64);function Rs(){this.init(),this._w=w5,_5.call(this,64,56)}g5(Rs,b5);Rs.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this};Rs.prototype._hash=function(){var e=m5.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e};Mg.exports=Rs});var Nh=k((BN,qg)=>{"use strict";m();var x5=re(),Og=Gi(),E5=Ne().Buffer,Bg=[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],S5=new Array(160);function go(){this.init(),this._w=S5,Og.call(this,128,112)}x5(go,Og);go.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function Rg(e,t,r){return r^e&(t^r)}function kg(e,t,r){return e&t|r&(e|t)}function Tg(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function Ig(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function M5(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function A5(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function B5(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function R5(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function ft(e,t){return e>>>0<t>>>0?1:0}go.prototype._update=function(e){for(var t=this._w,r=this._ah|0,i=this._bh|0,n=this._ch|0,a=this._dh|0,o=this._eh|0,s=this._fh|0,y=this._gh|0,_=this._hh|0,x=this._al|0,B=this._bl|0,R=this._cl|0,T=this._dl|0,O=this._el|0,D=this._fl|0,U=this._gl|0,N=this._hl|0,j=0;j<32;j+=2)t[j]=e.readInt32BE(j*4),t[j+1]=e.readInt32BE(j*4+4);for(;j<160;j+=2){var H=t[j-30],W=t[j-30+1],Z=M5(H,W),K=A5(W,H);H=t[j-4],W=t[j-4+1];var J=B5(H,W),z=R5(W,H),X=t[j-14],A=t[j-14+1],h=t[j-32],b=t[j-32+1],d=K+A|0,f=Z+X+ft(d,K)|0;d=d+z|0,f=f+J+ft(d,z)|0,d=d+b|0,f=f+h+ft(d,b)|0,t[j]=f,t[j+1]=d}for(var l=0;l<160;l+=2){f=t[l],d=t[l+1];var v=kg(r,i,n),g=kg(x,B,R),p=Tg(r,x),u=Tg(x,r),w=Ig(o,O),E=Ig(O,o),c=Bg[l],S=Bg[l+1],P=Rg(o,s,y),C=Rg(O,D,U),L=N+E|0,V=_+w+ft(L,N)|0;L=L+C|0,V=V+P+ft(L,C)|0,L=L+S|0,V=V+c+ft(L,S)|0,L=L+d|0,V=V+f+ft(L,d)|0;var G=u+g|0,Y=p+v+ft(G,u)|0;_=y,N=U,y=s,U=D,s=o,D=O,O=T+L|0,o=a+V+ft(O,T)|0,a=n,T=R,n=i,R=B,i=r,B=x,x=L+G|0,r=V+Y+ft(x,L)|0}this._al=this._al+x|0,this._bl=this._bl+B|0,this._cl=this._cl+R|0,this._dl=this._dl+T|0,this._el=this._el+O|0,this._fl=this._fl+D|0,this._gl=this._gl+U|0,this._hl=this._hl+N|0,this._ah=this._ah+r+ft(this._al,x)|0,this._bh=this._bh+i+ft(this._bl,B)|0,this._ch=this._ch+n+ft(this._cl,R)|0,this._dh=this._dh+a+ft(this._dl,T)|0,this._eh=this._eh+o+ft(this._el,O)|0,this._fh=this._fh+s+ft(this._fl,D)|0,this._gh=this._gh+y+ft(this._gl,U)|0,this._hh=this._hh+_+ft(this._hl,N)|0};go.prototype._hash=function(){var e=E5.allocUnsafe(64);function t(r,i,n){e.writeInt32BE(r,n),e.writeInt32BE(i,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e};qg.exports=go});var Ng=k((kN,Dg)=>{"use strict";m();var k5=re(),T5=Nh(),I5=Gi(),O5=Ne().Buffer,q5=new Array(160);function ks(){this.init(),this._w=q5,I5.call(this,128,112)}k5(ks,T5);ks.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this};ks.prototype._hash=function(){var e=O5.allocUnsafe(48);function t(r,i,n){e.writeInt32BE(r,n),e.writeInt32BE(i,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e};Dg.exports=ks});var Ts=k((IN,qr)=>{"use strict";m();qr.exports=function(t){var r=t.toLowerCase(),i=qr.exports[r];if(!i)throw new Error(r+" is not supported (we accept pull requests)");return new i};qr.exports.sha=_g();qr.exports.sha1=xg();qr.exports.sha224=Ag();qr.exports.sha256=Dh();qr.exports.sha384=Ng();qr.exports.sha512=Nh()});var Dr=k((qN,Lg)=>{"use strict";m();var D5=Ne().Buffer,Pg=ls().Transform,N5=Zn().StringDecoder,P5=re(),L5=Qa();function $t(e){Pg.call(this),this.hashMode=typeof e=="string",this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}P5($t,Pg);$t.prototype.update=function(e,t,r){var i=L5(e,t),n=this._update(i);return this.hashMode?this:(r&&(n=this._toString(n,r)),n)};$t.prototype.setAutoPadding=function(){};$t.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")};$t.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")};$t.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")};$t.prototype._transform=function(e,t,r){var i;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(n){i=n}finally{r(i)}};$t.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(r){t=r}e(t)};$t.prototype._finalOrDigest=function(e){var t=this.__final()||D5.alloc(0);return e&&(t=this._toString(t,e,!0)),t};$t.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new N5(t),this._encoding=t),this._encoding!==t)throw new Error("can\u2019t switch encodings");var i=this._decoder.write(e);return r&&(i+=this._decoder.end()),i};Lg.exports=$t});var bo=k((NN,Ug)=>{"use strict";m();var C5=re(),U5=ds(),F5=As(),j5=Ts(),Cg=Dr();function Is(e){Cg.call(this,"digest"),this._hash=e}C5(Is,Cg);Is.prototype._update=function(e){this._hash.update(e)};Is.prototype._final=function(){return this._hash.digest()};Ug.exports=function(t){return t=t.toLowerCase(),t==="md5"?new U5:t==="rmd160"||t==="ripemd160"?new F5:new Is(j5(t))}});var zg=k((LN,jg)=>{"use strict";m();var z5=re(),Vi=Ne().Buffer,Fg=Dr(),Z5=Vi.alloc(128),Jn=64;function Os(e,t){Fg.call(this,"digest"),typeof t=="string"&&(t=Vi.from(t)),this._alg=e,this._key=t,t.length>Jn?t=e(t):t.length<Jn&&(t=Vi.concat([t,Z5],Jn));for(var r=this._ipad=Vi.allocUnsafe(Jn),i=this._opad=Vi.allocUnsafe(Jn),n=0;n<Jn;n++)r[n]=t[n]^54,i[n]=t[n]^92;this._hash=[r]}z5(Os,Fg);Os.prototype._update=function(e){this._hash.push(e)};Os.prototype._final=function(){var e=this._alg(Vi.concat(this._hash));return this._alg(Vi.concat([this._opad,e]))};jg.exports=Os});var Ph=k((UN,Zg)=>{m();var H5=ds();Zg.exports=function(e){return new H5().update(e).digest()}});var Kg=k((jN,Wg)=>{"use strict";m();var W5=re(),K5=zg(),Hg=Dr(),_o=Ne().Buffer,G5=Ph(),Lh=As(),Ch=Ts(),V5=_o.alloc(128);function mo(e,t){Hg.call(this,"digest"),typeof t=="string"&&(t=_o.from(t));var r=e==="sha512"||e==="sha384"?128:64;if(this._alg=e,this._key=t,t.length>r){var i=e==="rmd160"?new Lh:Ch(e);t=i.update(t).digest()}else t.length<r&&(t=_o.concat([t,V5],r));for(var n=this._ipad=_o.allocUnsafe(r),a=this._opad=_o.allocUnsafe(r),o=0;o<r;o++)n[o]=t[o]^54,a[o]=t[o]^92;this._hash=e==="rmd160"?new Lh:Ch(e),this._hash.update(n)}W5(mo,Hg);mo.prototype._update=function(e){this._hash.update(e)};mo.prototype._final=function(){var e=this._hash.digest(),t=this._alg==="rmd160"?new Lh:Ch(this._alg);return t.update(this._opad).update(e).digest()};Wg.exports=function(t,r){return t=t.toLowerCase(),t==="rmd160"||t==="ripemd160"?new mo("rmd160",r):t==="md5"?new K5(G5,r):new mo(t,r)}});var qs=k((ZN,Gg)=>{"use strict";m();Gg.exports={}});var Uh=k((WN,Vg)=>{"use strict";m();var $5=isFinite,Y5=Math.pow(2,30)-1;Vg.exports=function(e,t){if(typeof e!="number")throw new TypeError("Iterations not a number");if(e<0||!$5(e))throw new TypeError("Bad iterations");if(typeof t!="number")throw new TypeError("Key length not a number");if(t<0||t>Y5||t!==t)throw new TypeError("Bad key length")}});var Fh=k((GN,Yg)=>{"use strict";m();var Ds;globalThis.process&&globalThis.process.browser?Ds="utf-8":globalThis.process&&globalThis.process.version?($g=parseInt(M.default.version.split(".")[0].slice(1),10),Ds=$g>=6?"utf-8":"binary"):Ds="utf-8";var $g;Yg.exports=Ds});var jh=k(($N,Qg)=>{"use strict";m();var J5=Ne().Buffer,X5=Qa(),Xg=typeof Uint8Array<"u",Q5=Xg&&typeof ArrayBuffer<"u",Jg=Q5&&ArrayBuffer.isView;Qg.exports=function(e,t,r){if(typeof e=="string"||J5.isBuffer(e)||Xg&&e instanceof Uint8Array||Jg&&Jg(e))return X5(e,t);throw new TypeError(r+" must be a string, a Buffer, a Uint8Array, or a DataView")}});var zh=k((JN,ib)=>{"use strict";m();var eB=Ph(),tB=As(),rB=Ts(),$i=Ne().Buffer,iB=Uh(),eb=Fh(),tb=jh(),nB=$i.alloc(128),Ns={__proto__:null,md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,"sha512-256":32,ripemd160:20,rmd160:20},aB={__proto__:null,"sha-1":"sha1","sha-224":"sha224","sha-256":"sha256","sha-384":"sha384","sha-512":"sha512","ripemd-160":"ripemd160"};function oB(e){return new tB().update(e).digest()}function fB(e){function t(r){return rB(e).update(r).digest()}return e==="rmd160"||e==="ripemd160"?oB:e==="md5"?eB:t}function rb(e,t,r){var i=fB(e),n=e==="sha512"||e==="sha384"?128:64;t.length>n?t=i(t):t.length<n&&(t=$i.concat([t,nB],n));for(var a=$i.allocUnsafe(n+Ns[e]),o=$i.allocUnsafe(n+Ns[e]),s=0;s<n;s++)a[s]=t[s]^54,o[s]=t[s]^92;var y=$i.allocUnsafe(n+r+4);a.copy(y,0,0,n),this.ipad1=y,this.ipad2=a,this.opad=o,this.alg=e,this.blocksize=n,this.hash=i,this.size=Ns[e]}rb.prototype.run=function(e,t){e.copy(t,this.blocksize);var r=this.hash(t);return r.copy(this.opad,this.blocksize),this.hash(this.opad)};function sB(e,t,r,i,n){iB(r,i),e=tb(e,eb,"Password"),t=tb(t,eb,"Salt");var a=(n||"sha1").toLowerCase(),o=aB[a]||a,s=Ns[o];if(typeof s!="number"||!s)throw new TypeError("Digest algorithm not supported: "+n);var y=new rb(o,e,t.length),_=$i.allocUnsafe(i),x=$i.allocUnsafe(t.length+4);t.copy(x,0,0,t.length);for(var B=0,R=s,T=Math.ceil(i/R),O=1;O<=T;O++){x.writeUInt32BE(O,t.length);for(var D=y.run(x,y.ipad1),U=D,N=1;N<r;N++){U=y.run(U,y.ipad2);for(var j=0;j<R;j++)D[j]^=U[j]}D.copy(_,B),B+=R}return _}ib.exports=sB});var lb=k((QN,ub)=>{"use strict";m();var fb=Ne().Buffer,uB=Uh(),nb=Fh(),ab=zh(),ob=jh(),Ps,wo=globalThis.crypto&&globalThis.crypto.subtle,lB={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},Zh=[],Yi;function Hh(){return Yi||(globalThis.process&&globalThis.process.nextTick?Yi=globalThis.process.nextTick:globalThis.queueMicrotask?Yi=globalThis.queueMicrotask:globalThis.setImmediate?Yi=globalThis.setImmediate:Yi=globalThis.setTimeout,Yi)}function sb(e,t,r,i,n){return wo.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then(function(a){return wo.deriveBits({name:"PBKDF2",salt:t,iterations:r,hash:{name:n}},a,i<<3)}).then(function(a){return fb.from(a)})}function hB(e){if(globalThis.process&&!globalThis.process.browser||!wo||!wo.importKey||!wo.deriveBits)return Promise.resolve(!1);if(Zh[e]!==void 0)return Zh[e];Ps=Ps||fb.alloc(8);var t=sb(Ps,Ps,10,128,e).then(function(){return!0},function(){return!1});return Zh[e]=t,t}function cB(e,t){e.then(function(r){Hh()(function(){t(null,r)})},function(r){Hh()(function(){t(r)})})}ub.exports=function(e,t,r,i,n,a){if(typeof n=="function"&&(a=n,n=void 0),uB(r,i),e=ob(e,nb,"Password"),t=ob(t,nb,"Salt"),typeof a!="function")throw new Error("No callback provided to pbkdf2");n=n||"sha1";var o=lB[n.toLowerCase()];if(!o||typeof globalThis.Promise!="function"){Hh()(function(){var s;try{s=ab(e,t,r,i,n)}catch(y){a(y);return}a(null,s)});return}cB(hB(o).then(function(s){return s?sb(e,t,r,i,o):ab(e,t,r,i,n)}),a)}});var Kh=k(Wh=>{"use strict";m();Wh.pbkdf2=lb();Wh.pbkdf2Sync=zh()});var Gh=k(Dt=>{"use strict";m();Dt.readUInt32BE=function(t,r){var i=t[0+r]<<24|t[1+r]<<16|t[2+r]<<8|t[3+r];return i>>>0};Dt.writeUInt32BE=function(t,r,i){t[0+i]=r>>>24,t[1+i]=r>>>16&255,t[2+i]=r>>>8&255,t[3+i]=r&255};Dt.ip=function(t,r,i,n){for(var a=0,o=0,s=6;s>=0;s-=2){for(var y=0;y<=24;y+=8)a<<=1,a|=r>>>y+s&1;for(var y=0;y<=24;y+=8)a<<=1,a|=t>>>y+s&1}for(var s=6;s>=0;s-=2){for(var y=1;y<=25;y+=8)o<<=1,o|=r>>>y+s&1;for(var y=1;y<=25;y+=8)o<<=1,o|=t>>>y+s&1}i[n+0]=a>>>0,i[n+1]=o>>>0};Dt.rip=function(t,r,i,n){for(var a=0,o=0,s=0;s<4;s++)for(var y=24;y>=0;y-=8)a<<=1,a|=r>>>y+s&1,a<<=1,a|=t>>>y+s&1;for(var s=4;s<8;s++)for(var y=24;y>=0;y-=8)o<<=1,o|=r>>>y+s&1,o<<=1,o|=t>>>y+s&1;i[n+0]=a>>>0,i[n+1]=o>>>0};Dt.pc1=function(t,r,i,n){for(var a=0,o=0,s=7;s>=5;s--){for(var y=0;y<=24;y+=8)a<<=1,a|=r>>y+s&1;for(var y=0;y<=24;y+=8)a<<=1,a|=t>>y+s&1}for(var y=0;y<=24;y+=8)a<<=1,a|=r>>y+s&1;for(var s=1;s<=3;s++){for(var y=0;y<=24;y+=8)o<<=1,o|=r>>y+s&1;for(var y=0;y<=24;y+=8)o<<=1,o|=t>>y+s&1}for(var y=0;y<=24;y+=8)o<<=1,o|=t>>y+s&1;i[n+0]=a>>>0,i[n+1]=o>>>0};Dt.r28shl=function(t,r){return t<<r&268435455|t>>>28-r};var Ls=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];Dt.pc2=function(t,r,i,n){for(var a=0,o=0,s=Ls.length>>>1,y=0;y<s;y++)a<<=1,a|=t>>>Ls[y]&1;for(var y=s;y<Ls.length;y++)o<<=1,o|=r>>>Ls[y]&1;i[n+0]=a>>>0,i[n+1]=o>>>0};Dt.expand=function(t,r,i){var n=0,a=0;n=(t&1)<<5|t>>>27;for(var o=23;o>=15;o-=4)n<<=6,n|=t>>>o&63;for(var o=11;o>=3;o-=4)a|=t>>>o&63,a<<=6;a|=(t&31)<<1|t>>>31,r[i+0]=n>>>0,r[i+1]=a>>>0};var hb=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];Dt.substitute=function(t,r){for(var i=0,n=0;n<4;n++){var a=t>>>18-n*6&63,o=hb[n*64+a];i<<=4,i|=o}for(var n=0;n<4;n++){var a=r>>>18-n*6&63,o=hb[256+n*64+a];i<<=4,i|=o}return i>>>0};var cb=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];Dt.permute=function(t){for(var r=0,i=0;i<cb.length;i++)r<<=1,r|=t>>>cb[i]&1;return r>>>0};Dt.padSplit=function(t,r,i){for(var n=t.toString(2);n.length<r;)n="0"+n;for(var a=[],o=0;o<r;o+=i)a.push(n.slice(o,o+i));return a.join(" ")}});var Xn=k((aP,pb)=>{m();pb.exports=db;function db(e,t){if(!e)throw new Error(t||"Assertion failed")}db.equal=function(t,r,i){if(t!=r)throw new Error(i||"Assertion failed: "+t+" != "+r)}});var Cs=k((fP,vb)=>{"use strict";m();var dB=Xn();function Nt(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=e.padding!==!1}vb.exports=Nt;Nt.prototype._init=function(){};Nt.prototype.update=function(t){return t.length===0?[]:this.type==="decrypt"?this._updateDecrypt(t):this._updateEncrypt(t)};Nt.prototype._buffer=function(t,r){for(var i=Math.min(this.buffer.length-this.bufferOff,t.length-r),n=0;n<i;n++)this.buffer[this.bufferOff+n]=t[r+n];return this.bufferOff+=i,i};Nt.prototype._flushBuffer=function(t,r){return this._update(this.buffer,0,t,r),this.bufferOff=0,this.blockSize};Nt.prototype._updateEncrypt=function(t){var r=0,i=0,n=(this.bufferOff+t.length)/this.blockSize|0,a=new Array(n*this.blockSize);this.bufferOff!==0&&(r+=this._buffer(t,r),this.bufferOff===this.buffer.length&&(i+=this._flushBuffer(a,i)));for(var o=t.length-(t.length-r)%this.blockSize;r<o;r+=this.blockSize)this._update(t,r,a,i),i+=this.blockSize;for(;r<t.length;r++,this.bufferOff++)this.buffer[this.bufferOff]=t[r];return a};Nt.prototype._updateDecrypt=function(t){for(var r=0,i=0,n=Math.ceil((this.bufferOff+t.length)/this.blockSize)-1,a=new Array(n*this.blockSize);n>0;n--)r+=this._buffer(t,r),i+=this._flushBuffer(a,i);return r+=this._buffer(t,r),a};Nt.prototype.final=function(t){var r;t&&(r=this.update(t));var i;return this.type==="encrypt"?i=this._finalEncrypt():i=this._finalDecrypt(),r?r.concat(i):i};Nt.prototype._pad=function(t,r){if(r===0)return!1;for(;r<t.length;)t[r++]=0;return!0};Nt.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var t=new Array(this.blockSize);return this._update(this.buffer,0,t,0),t};Nt.prototype._unpad=function(t){return t};Nt.prototype._finalDecrypt=function(){dB.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var t=new Array(this.blockSize);return this._flushBuffer(t,0),this._unpad(t)}});var Vh=k((uP,bb)=>{"use strict";m();var yb=Xn(),pB=re(),it=Gh(),gb=Cs();function vB(){this.tmp=new Array(2),this.keys=null}function yr(e){gb.call(this,e);var t=new vB;this._desState=t,this.deriveKeys(t,e.key)}pB(yr,gb);bb.exports=yr;yr.create=function(t){return new yr(t)};var yB=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];yr.prototype.deriveKeys=function(t,r){t.keys=new Array(32),yb.equal(r.length,this.blockSize,"Invalid key length");var i=it.readUInt32BE(r,0),n=it.readUInt32BE(r,4);it.pc1(i,n,t.tmp,0),i=t.tmp[0],n=t.tmp[1];for(var a=0;a<t.keys.length;a+=2){var o=yB[a>>>1];i=it.r28shl(i,o),n=it.r28shl(n,o),it.pc2(i,n,t.keys,a)}};yr.prototype._update=function(t,r,i,n){var a=this._desState,o=it.readUInt32BE(t,r),s=it.readUInt32BE(t,r+4);it.ip(o,s,a.tmp,0),o=a.tmp[0],s=a.tmp[1],this.type==="encrypt"?this._encrypt(a,o,s,a.tmp,0):this._decrypt(a,o,s,a.tmp,0),o=a.tmp[0],s=a.tmp[1],it.writeUInt32BE(i,o,n),it.writeUInt32BE(i,s,n+4)};yr.prototype._pad=function(t,r){if(this.padding===!1)return!1;for(var i=t.length-r,n=r;n<t.length;n++)t[n]=i;return!0};yr.prototype._unpad=function(t){if(this.padding===!1)return t;for(var r=t[t.length-1],i=t.length-r;i<t.length;i++)yb.equal(t[i],r);return t.slice(0,t.length-r)};yr.prototype._encrypt=function(t,r,i,n,a){for(var o=r,s=i,y=0;y<t.keys.length;y+=2){var _=t.keys[y],x=t.keys[y+1];it.expand(s,t.tmp,0),_^=t.tmp[0],x^=t.tmp[1];var B=it.substitute(_,x),R=it.permute(B),T=s;s=(o^R)>>>0,o=T}it.rip(s,o,n,a)};yr.prototype._decrypt=function(t,r,i,n,a){for(var o=i,s=r,y=t.keys.length-2;y>=0;y-=2){var _=t.keys[y],x=t.keys[y+1];it.expand(o,t.tmp,0),_^=t.tmp[0],x^=t.tmp[1];var B=it.substitute(_,x),R=it.permute(B),T=o;o=(s^R)>>>0,s=T}it.rip(o,s,n,a)}});var mb=k(_b=>{"use strict";m();var gB=Xn(),bB=re(),Us={};function _B(e){gB.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t<this.iv.length;t++)this.iv[t]=e[t]}function mB(e){function t(a){e.call(this,a),this._cbcInit()}bB(t,e);for(var r=Object.keys(Us),i=0;i<r.length;i++){var n=r[i];t.prototype[n]=Us[n]}return t.create=function(o){return new t(o)},t}_b.instantiate=mB;Us._cbcInit=function(){var t=new _B(this.options.iv);this._cbcState=t};Us._update=function(t,r,i,n){var a=this._cbcState,o=this.constructor.super_.prototype,s=a.iv;if(this.type==="encrypt"){for(var y=0;y<this.blockSize;y++)s[y]^=t[r+y];o._update.call(this,s,0,i,n);for(var y=0;y<this.blockSize;y++)s[y]=i[n+y]}else{o._update.call(this,t,r,i,n);for(var y=0;y<this.blockSize;y++)i[n+y]^=s[y];for(var y=0;y<this.blockSize;y++)s[y]=t[r+y]}}});var Eb=k((dP,xb)=>{"use strict";m();var wB=Xn(),xB=re(),wb=Cs(),Xr=Vh();function EB(e,t){wB.equal(t.length,24,"Invalid key length");var r=t.slice(0,8),i=t.slice(8,16),n=t.slice(16,24);e==="encrypt"?this.ciphers=[Xr.create({type:"encrypt",key:r}),Xr.create({type:"decrypt",key:i}),Xr.create({type:"encrypt",key:n})]:this.ciphers=[Xr.create({type:"decrypt",key:n}),Xr.create({type:"encrypt",key:i}),Xr.create({type:"decrypt",key:r})]}function Ji(e){wb.call(this,e);var t=new EB(this.type,this.options.key);this._edeState=t}xB(Ji,wb);xb.exports=Ji;Ji.create=function(t){return new Ji(t)};Ji.prototype._update=function(t,r,i,n){var a=this._edeState;a.ciphers[0]._update(t,r,i,n),a.ciphers[1]._update(i,n,i,n),a.ciphers[2]._update(i,n,i,n)};Ji.prototype._pad=Xr.prototype._pad;Ji.prototype._unpad=Xr.prototype._unpad});var Sb=k(Qn=>{"use strict";m();Qn.utils=Gh();Qn.Cipher=Cs();Qn.DES=Vh();Qn.CBC=mb();Qn.EDE=Eb()});var Bb=k((gP,Ab)=>{m();var Mb=Dr(),Nr=Sb(),SB=re(),Xi=Ne().Buffer,xo={"des-ede3-cbc":Nr.CBC.instantiate(Nr.EDE),"des-ede3":Nr.EDE,"des-ede-cbc":Nr.CBC.instantiate(Nr.EDE),"des-ede":Nr.EDE,"des-cbc":Nr.CBC.instantiate(Nr.DES),"des-ecb":Nr.DES};xo.des=xo["des-cbc"];xo.des3=xo["des-ede3-cbc"];Ab.exports=Fs;SB(Fs,Mb);function Fs(e){Mb.call(this);var t=e.mode.toLowerCase(),r=xo[t],i;e.decrypt?i="decrypt":i="encrypt";var n=e.key;Xi.isBuffer(n)||(n=Xi.from(n)),(t==="des-ede"||t==="des-ede-cbc")&&(n=Xi.concat([n,n.slice(0,8)]));var a=e.iv;Xi.isBuffer(a)||(a=Xi.from(a)),this._des=r.create({key:n,iv:a,type:i})}Fs.prototype._update=function(e){return Xi.from(this._des.update(e))};Fs.prototype._final=function(){return Xi.from(this._des.final())}});var Rb=k($h=>{m();$h.encrypt=function(e,t){return e._cipher.encryptBlock(t)};$h.decrypt=function(e,t){return e._cipher.decryptBlock(t)}});var ea=k((wP,kb)=>{m();kb.exports=function(t,r){for(var i=Math.min(t.length,r.length),n=new I.Buffer(i),a=0;a<i;++a)n[a]=t[a]^r[a];return n}});var Ib=k(Yh=>{m();var Tb=ea();Yh.encrypt=function(e,t){var r=Tb(t,e._prev);return e._prev=e._cipher.encryptBlock(r),e._prev};Yh.decrypt=function(e,t){var r=e._prev;e._prev=t;var i=e._cipher.decryptBlock(t);return Tb(i,r)}});var Db=k(qb=>{m();var Eo=Ne().Buffer,MB=ea();function Ob(e,t,r){var i=t.length,n=MB(t,e._cache);return e._cache=e._cache.slice(i),e._prev=Eo.concat([e._prev,r?t:n]),n}qb.encrypt=function(e,t,r){for(var i=Eo.allocUnsafe(0),n;t.length;)if(e._cache.length===0&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=Eo.allocUnsafe(0)),e._cache.length<=t.length)n=e._cache.length,i=Eo.concat([i,Ob(e,t.slice(0,n),r)]),t=t.slice(n);else{i=Eo.concat([i,Ob(e,t,r)]);break}return i}});var Pb=k(Nb=>{m();var Jh=Ne().Buffer;function AB(e,t,r){var i=e._cipher.encryptBlock(e._prev),n=i[0]^t;return e._prev=Jh.concat([e._prev.slice(1),Jh.from([r?t:n])]),n}Nb.encrypt=function(e,t,r){for(var i=t.length,n=Jh.allocUnsafe(i),a=-1;++a<i;)n[a]=AB(e,t[a],r);return n}});var Cb=k(Lb=>{m();var js=Ne().Buffer;function BB(e,t,r){for(var i,n=-1,a=8,o=0,s,y;++n<a;)i=e._cipher.encryptBlock(e._prev),s=t&1<<7-n?128:0,y=i[0]^s,o+=(y&128)>>n%8,e._prev=RB(e._prev,r?s:y);return o}function RB(e,t){var r=e.length,i=-1,n=js.allocUnsafe(e.length);for(e=js.concat([e,js.from([t])]);++i<r;)n[i]=e[i]<<1|e[i+1]>>7;return n}Lb.encrypt=function(e,t,r){for(var i=t.length,n=js.allocUnsafe(i),a=-1;++a<i;)n[a]=BB(e,t[a],r);return n}});var Fb=k(Ub=>{m();var kB=ea();function TB(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}Ub.encrypt=function(e,t){for(;e._cache.length<t.length;)e._cache=I.Buffer.concat([e._cache,TB(e)]);var r=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),kB(t,r)}});var Xh=k((qP,jb)=>{m();function IB(e){for(var t=e.length,r;t--;)if(r=e.readUInt8(t),r===255)e.writeUInt8(0,t);else{r++,e.writeUInt8(r,t);break}}jb.exports=IB});var ec=k(Zb=>{m();var OB=ea(),zb=Ne().Buffer,qB=Xh();function DB(e){var t=e._cipher.encryptBlockRaw(e._prev);return qB(e._prev),t}var Qh=16;Zb.encrypt=function(e,t){var r=Math.ceil(t.length/Qh),i=e._cache.length;e._cache=zb.concat([e._cache,zb.allocUnsafe(r*Qh)]);for(var n=0;n<r;n++){var a=DB(e),o=i+n*Qh;e._cache.writeUInt32BE(a[0],o+0),e._cache.writeUInt32BE(a[1],o+4),e._cache.writeUInt32BE(a[2],o+8),e._cache.writeUInt32BE(a[3],o+12)}var s=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),OB(t,s)}});var tc=k((LP,NB)=>{NB.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}});var Zs=k((CP,Hb)=>{m();var PB={ECB:Rb(),CBC:Ib(),CFB:Db(),CFB8:Pb(),CFB1:Cb(),OFB:Fb(),CTR:ec(),GCM:ec()},zs=tc();for(rc in zs)zs[rc].module=PB[zs[rc].mode];var rc;Hb.exports=zs});var So=k((FP,Kb)=>{m();var Hs=Ne().Buffer;function nc(e){Hs.isBuffer(e)||(e=Hs.from(e));for(var t=e.length/4|0,r=new Array(t),i=0;i<t;i++)r[i]=e.readUInt32BE(i*4);return r}function ic(e){for(var t=0;t<e.length;e++)e[t]=0}function Wb(e,t,r,i,n){for(var a=r[0],o=r[1],s=r[2],y=r[3],_=e[0]^t[0],x=e[1]^t[1],B=e[2]^t[2],R=e[3]^t[3],T,O,D,U,N=4,j=1;j<n;j++)T=a[_>>>24]^o[x>>>16&255]^s[B>>>8&255]^y[R&255]^t[N++],O=a[x>>>24]^o[B>>>16&255]^s[R>>>8&255]^y[_&255]^t[N++],D=a[B>>>24]^o[R>>>16&255]^s[_>>>8&255]^y[x&255]^t[N++],U=a[R>>>24]^o[_>>>16&255]^s[x>>>8&255]^y[B&255]^t[N++],_=T,x=O,B=D,R=U;return T=(i[_>>>24]<<24|i[x>>>16&255]<<16|i[B>>>8&255]<<8|i[R&255])^t[N++],O=(i[x>>>24]<<24|i[B>>>16&255]<<16|i[R>>>8&255]<<8|i[_&255])^t[N++],D=(i[B>>>24]<<24|i[R>>>16&255]<<16|i[_>>>8&255]<<8|i[x&255])^t[N++],U=(i[R>>>24]<<24|i[_>>>16&255]<<16|i[x>>>8&255]<<8|i[B&255])^t[N++],T=T>>>0,O=O>>>0,D=D>>>0,U=U>>>0,[T,O,D,U]}var LB=[0,1,2,4,8,16,32,64,128,27,54],rt=(function(){for(var e=new Array(256),t=0;t<256;t++)t<128?e[t]=t<<1:e[t]=t<<1^283;for(var r=[],i=[],n=[[],[],[],[]],a=[[],[],[],[]],o=0,s=0,y=0;y<256;++y){var _=s^s<<1^s<<2^s<<3^s<<4;_=_>>>8^_&255^99,r[o]=_,i[_]=o;var x=e[o],B=e[x],R=e[B],T=e[_]*257^_*16843008;n[0][o]=T<<24|T>>>8,n[1][o]=T<<16|T>>>16,n[2][o]=T<<8|T>>>24,n[3][o]=T,T=R*16843009^B*65537^x*257^o*16843008,a[0][_]=T<<24|T>>>8,a[1][_]=T<<16|T>>>16,a[2][_]=T<<8|T>>>24,a[3][_]=T,o===0?o=s=1:(o=x^e[e[e[R^x]]],s^=e[e[s]])}return{SBOX:r,INV_SBOX:i,SUB_MIX:n,INV_SUB_MIX:a}})();function Pt(e){this._key=nc(e),this._reset()}Pt.blockSize=16;Pt.keySize=256/8;Pt.prototype.blockSize=Pt.blockSize;Pt.prototype.keySize=Pt.keySize;Pt.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,i=(r+1)*4,n=[],a=0;a<t;a++)n[a]=e[a];for(a=t;a<i;a++){var o=n[a-1];a%t===0?(o=o<<8|o>>>24,o=rt.SBOX[o>>>24]<<24|rt.SBOX[o>>>16&255]<<16|rt.SBOX[o>>>8&255]<<8|rt.SBOX[o&255],o^=LB[a/t|0]<<24):t>6&&a%t===4&&(o=rt.SBOX[o>>>24]<<24|rt.SBOX[o>>>16&255]<<16|rt.SBOX[o>>>8&255]<<8|rt.SBOX[o&255]),n[a]=n[a-t]^o}for(var s=[],y=0;y<i;y++){var _=i-y,x=n[_-(y%4?0:4)];y<4||_<=4?s[y]=x:s[y]=rt.INV_SUB_MIX[0][rt.SBOX[x>>>24]]^rt.INV_SUB_MIX[1][rt.SBOX[x>>>16&255]]^rt.INV_SUB_MIX[2][rt.SBOX[x>>>8&255]]^rt.INV_SUB_MIX[3][rt.SBOX[x&255]]}this._nRounds=r,this._keySchedule=n,this._invKeySchedule=s};Pt.prototype.encryptBlockRaw=function(e){return e=nc(e),Wb(e,this._keySchedule,rt.SUB_MIX,rt.SBOX,this._nRounds)};Pt.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=Hs.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r};Pt.prototype.decryptBlock=function(e){e=nc(e);var t=e[1];e[1]=e[3],e[3]=t;var r=Wb(e,this._invKeySchedule,rt.INV_SUB_MIX,rt.INV_SBOX,this._nRounds),i=Hs.allocUnsafe(16);return i.writeUInt32BE(r[0],0),i.writeUInt32BE(r[3],4),i.writeUInt32BE(r[2],8),i.writeUInt32BE(r[1],12),i};Pt.prototype.scrub=function(){ic(this._keySchedule),ic(this._invKeySchedule),ic(this._key)};Kb.exports.AES=Pt});var $b=k((zP,Vb)=>{m();var ta=Ne().Buffer,CB=ta.alloc(16,0);function UB(e){return[e.readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)]}function Gb(e){var t=ta.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function Mo(e){this.h=e,this.state=ta.alloc(16,0),this.cache=ta.allocUnsafe(0)}Mo.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()};Mo.prototype._multiply=function(){for(var e=UB(this.h),t=[0,0,0,0],r,i,n,a=-1;++a<128;){for(i=(this.state[~~(a/8)]&1<<7-a%8)!==0,i&&(t[0]^=e[0],t[1]^=e[1],t[2]^=e[2],t[3]^=e[3]),n=(e[3]&1)!==0,r=3;r>0;r--)e[r]=e[r]>>>1|(e[r-1]&1)<<31;e[0]=e[0]>>>1,n&&(e[0]=e[0]^225<<24)}this.state=Gb(t)};Mo.prototype.update=function(e){this.cache=ta.concat([this.cache,e]);for(var t;this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)};Mo.prototype.final=function(e,t){return this.cache.length&&this.ghash(ta.concat([this.cache,CB],16)),this.ghash(Gb([0,e,0,t])),this.state};Vb.exports=Mo});var ac=k((HP,Xb)=>{m();var FB=So(),Et=Ne().Buffer,Yb=Dr(),jB=re(),Jb=$b(),zB=ea(),ZB=Xh();function HB(e,t){var r=0;e.length!==t.length&&r++;for(var i=Math.min(e.length,t.length),n=0;n<i;++n)r+=e[n]^t[n];return r}function WB(e,t,r){if(t.length===12)return e._finID=Et.concat([t,Et.from([0,0,0,1])]),Et.concat([t,Et.from([0,0,0,2])]);var i=new Jb(r),n=t.length,a=n%16;i.update(t),a&&(a=16-a,i.update(Et.alloc(a,0))),i.update(Et.alloc(8,0));var o=n*8,s=Et.alloc(8);s.writeUIntBE(o,0,8),i.update(s),e._finID=i.state;var y=Et.from(e._finID);return ZB(y),y}function Qi(e,t,r,i){Yb.call(this);var n=Et.alloc(4,0);this._cipher=new FB.AES(t);var a=this._cipher.encryptBlock(n);this._ghash=new Jb(a),r=WB(this,r,a),this._prev=Et.from(r),this._cache=Et.allocUnsafe(0),this._secCache=Et.allocUnsafe(0),this._decrypt=i,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}jB(Qi,Yb);Qi.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=Et.alloc(t,0),this._ghash.update(t))}this._called=!0;var r=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(r),this._len+=e.length,r};Qi.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=zB(this._ghash.final(this._alen*8,this._len*8),this._cipher.encryptBlock(this._finID));if(this._decrypt&&HB(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()};Qi.prototype.getAuthTag=function(){if(this._decrypt||!Et.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag};Qi.prototype.setAuthTag=function(t){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=t};Qi.prototype.setAAD=function(t){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(t),this._alen+=t.length};Xb.exports=Qi});var fc=k((KP,e_)=>{m();var KB=So(),oc=Ne().Buffer,Qb=Dr(),GB=re();function Ws(e,t,r,i){Qb.call(this),this._cipher=new KB.AES(t),this._prev=oc.from(r),this._cache=oc.allocUnsafe(0),this._secCache=oc.allocUnsafe(0),this._decrypt=i,this._mode=e}GB(Ws,Qb);Ws.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)};Ws.prototype._final=function(){this._cipher.scrub()};e_.exports=Ws});var Ao=k((VP,t_)=>{m();var en=Ne().Buffer,VB=ds();function $B(e,t,r,i){if(en.isBuffer(e)||(e=en.from(e,"binary")),t&&(en.isBuffer(t)||(t=en.from(t,"binary")),t.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var n=r/8,a=en.alloc(n),o=en.alloc(i||0),s=en.alloc(0);n>0||i>0;){var y=new VB;y.update(s),y.update(e),t&&y.update(t),s=y.digest();var _=0;if(n>0){var x=a.length-n;_=Math.min(n,s.length),s.copy(a,x,0,_),n-=_}if(_<s.length&&i>0){var B=o.length-i,R=Math.min(i,s.length-_);s.copy(o,B,_,_+R),i-=R}}return s.fill(0),{key:a,iv:o}}t_.exports=$B});var a_=k(sc=>{m();var r_=Zs(),YB=ac(),Pr=Ne().Buffer,JB=fc(),i_=Dr(),XB=So(),QB=Ao(),eR=re();function Bo(e,t,r){i_.call(this),this._cache=new Ks,this._cipher=new XB.AES(t),this._prev=Pr.from(r),this._mode=e,this._autopadding=!0}eR(Bo,i_);Bo.prototype._update=function(e){this._cache.add(e);for(var t,r,i=[];t=this._cache.get();)r=this._mode.encrypt(this,t),i.push(r);return Pr.concat(i)};var tR=Pr.alloc(16,16);Bo.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(tR))throw this._cipher.scrub(),new Error("data not multiple of block length")};Bo.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this};function Ks(){this.cache=Pr.allocUnsafe(0)}Ks.prototype.add=function(e){this.cache=Pr.concat([this.cache,e])};Ks.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null};Ks.prototype.flush=function(){for(var e=16-this.cache.length,t=Pr.allocUnsafe(e),r=-1;++r<e;)t.writeUInt8(e,r);return Pr.concat([this.cache,t])};function n_(e,t,r){var i=r_[e.toLowerCase()];if(!i)throw new TypeError("invalid suite type");if(typeof t=="string"&&(t=Pr.from(t)),t.length!==i.key/8)throw new TypeError("invalid key length "+t.length);if(typeof r=="string"&&(r=Pr.from(r)),i.mode!=="GCM"&&r.length!==i.iv)throw new TypeError("invalid iv length "+r.length);return i.type==="stream"?new JB(i.module,t,r):i.type==="auth"?new YB(i.module,t,r):new Bo(i.module,t,r)}function rR(e,t){var r=r_[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var i=QB(t,!1,r.key,r.iv);return n_(e,i.key,i.iv)}sc.createCipheriv=n_;sc.createCipher=rR});var u_=k(uc=>{m();var iR=ac(),ra=Ne().Buffer,o_=Zs(),nR=fc(),f_=Dr(),aR=So(),oR=Ao(),fR=re();function Ro(e,t,r){f_.call(this),this._cache=new Gs,this._last=void 0,this._cipher=new aR.AES(t),this._prev=ra.from(r),this._mode=e,this._autopadding=!0}fR(Ro,f_);Ro.prototype._update=function(e){this._cache.add(e);for(var t,r,i=[];t=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,t),i.push(r);return ra.concat(i)};Ro.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return sR(this._mode.decrypt(this,e));if(e)throw new Error("data not multiple of block length")};Ro.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this};function Gs(){this.cache=ra.allocUnsafe(0)}Gs.prototype.add=function(e){this.cache=ra.concat([this.cache,e])};Gs.prototype.get=function(e){var t;if(e){if(this.cache.length>16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null};Gs.prototype.flush=function(){if(this.cache.length)return this.cache};function sR(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");for(var r=-1;++r<t;)if(e[r+(16-t)]!==t)throw new Error("unable to decrypt data");if(t!==16)return e.slice(0,16-t)}function s_(e,t,r){var i=o_[e.toLowerCase()];if(!i)throw new TypeError("invalid suite type");if(typeof r=="string"&&(r=ra.from(r)),i.mode!=="GCM"&&r.length!==i.iv)throw new TypeError("invalid iv length "+r.length);if(typeof t=="string"&&(t=ra.from(t)),t.length!==i.key/8)throw new TypeError("invalid key length "+t.length);return i.type==="stream"?new nR(i.module,t,r,!0):i.type==="auth"?new iR(i.module,t,r,!0):new Ro(i.module,t,r)}function uR(e,t){var r=o_[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var i=oR(t,!1,r.key,r.iv);return s_(e,i.key,i.iv)}uc.createDecipher=uR;uc.createDecipheriv=s_});var Vs=k(Yt=>{m();var l_=a_(),h_=u_(),lR=tc();function hR(){return Object.keys(lR)}Yt.createCipher=Yt.Cipher=l_.createCipher;Yt.createCipheriv=Yt.Cipheriv=l_.createCipheriv;Yt.createDecipher=Yt.Decipher=h_.createDecipher;Yt.createDecipheriv=Yt.Decipheriv=h_.createDecipheriv;Yt.listCiphers=Yt.getCiphers=hR});var c_=k(Lr=>{m();Lr["des-ecb"]={key:8,iv:0};Lr["des-cbc"]=Lr.des={key:8,iv:8};Lr["des-ede3-cbc"]=Lr.des3={key:24,iv:8};Lr["des-ede3"]={key:24,iv:0};Lr["des-ede-cbc"]={key:16,iv:8};Lr["des-ede"]={key:16,iv:0}});var g_=k(Jt=>{m();var d_=Bb(),lc=Vs(),Qr=Zs(),Cr=c_(),p_=Ao();function cR(e,t){e=e.toLowerCase();var r,i;if(Qr[e])r=Qr[e].key,i=Qr[e].iv;else if(Cr[e])r=Cr[e].key*8,i=Cr[e].iv;else throw new TypeError("invalid suite type");var n=p_(t,!1,r,i);return v_(e,n.key,n.iv)}function dR(e,t){e=e.toLowerCase();var r,i;if(Qr[e])r=Qr[e].key,i=Qr[e].iv;else if(Cr[e])r=Cr[e].key*8,i=Cr[e].iv;else throw new TypeError("invalid suite type");var n=p_(t,!1,r,i);return y_(e,n.key,n.iv)}function v_(e,t,r){if(e=e.toLowerCase(),Qr[e])return lc.createCipheriv(e,t,r);if(Cr[e])return new d_({key:t,iv:r,mode:e});throw new TypeError("invalid suite type")}function y_(e,t,r){if(e=e.toLowerCase(),Qr[e])return lc.createDecipheriv(e,t,r);if(Cr[e])return new d_({key:t,iv:r,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}function pR(){return Object.keys(Cr).concat(lc.getCiphers())}Jt.createCipher=Jt.Cipher=cR;Jt.createCipheriv=Jt.Cipheriv=v_;Jt.createDecipher=Jt.Decipher=dR;Jt.createDecipheriv=Jt.Decipheriv=y_;Jt.listCiphers=Jt.getCiphers=pR});var ei=k((b_,hc)=>{m();(function(e,t){"use strict";function r(A,h){if(!A)throw new Error(h||"Assertion failed")}function i(A,h){A.super_=h;var b=function(){};b.prototype=h.prototype,A.prototype=new b,A.prototype.constructor=A}function n(A,h,b){if(n.isBN(A))return A;this.negative=0,this.words=null,this.length=0,this.red=null,A!==null&&((h==="le"||h==="be")&&(b=h,h=10),this._init(A||0,h||10,b||"be"))}typeof e=="object"?e.exports=n:t.BN=n,n.BN=n,n.wordSize=26;var a;try{typeof window<"u"&&typeof window.Buffer<"u"?a=window.Buffer:a=st().Buffer}catch{}n.isBN=function(h){return h instanceof n?!0:h!==null&&typeof h=="object"&&h.constructor.wordSize===n.wordSize&&Array.isArray(h.words)},n.max=function(h,b){return h.cmp(b)>0?h:b},n.min=function(h,b){return h.cmp(b)<0?h:b},n.prototype._init=function(h,b,d){if(typeof h=="number")return this._initNumber(h,b,d);if(typeof h=="object")return this._initArray(h,b,d);b==="hex"&&(b=16),r(b===(b|0)&&b>=2&&b<=36),h=h.toString().replace(/\s+/g,"");var f=0;h[0]==="-"&&(f++,this.negative=1),f<h.length&&(b===16?this._parseHex(h,f,d):(this._parseBase(h,b,f),d==="le"&&this._initArray(this.toArray(),b,d)))},n.prototype._initNumber=function(h,b,d){h<0&&(this.negative=1,h=-h),h<67108864?(this.words=[h&67108863],this.length=1):h<4503599627370496?(this.words=[h&67108863,h/67108864&67108863],this.length=2):(r(h<9007199254740992),this.words=[h&67108863,h/67108864&67108863,1],this.length=3),d==="le"&&this._initArray(this.toArray(),b,d)},n.prototype._initArray=function(h,b,d){if(r(typeof h.length=="number"),h.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(h.length/3),this.words=new Array(this.length);for(var f=0;f<this.length;f++)this.words[f]=0;var l,v,g=0;if(d==="be")for(f=h.length-1,l=0;f>=0;f-=3)v=h[f]|h[f-1]<<8|h[f-2]<<16,this.words[l]|=v<<g&67108863,this.words[l+1]=v>>>26-g&67108863,g+=24,g>=26&&(g-=26,l++);else if(d==="le")for(f=0,l=0;f<h.length;f+=3)v=h[f]|h[f+1]<<8|h[f+2]<<16,this.words[l]|=v<<g&67108863,this.words[l+1]=v>>>26-g&67108863,g+=24,g>=26&&(g-=26,l++);return this.strip()};function o(A,h){var b=A.charCodeAt(h);return b>=65&&b<=70?b-55:b>=97&&b<=102?b-87:b-48&15}function s(A,h,b){var d=o(A,b);return b-1>=h&&(d|=o(A,b-1)<<4),d}n.prototype._parseHex=function(h,b,d){this.length=Math.ceil((h.length-b)/6),this.words=new Array(this.length);for(var f=0;f<this.length;f++)this.words[f]=0;var l=0,v=0,g;if(d==="be")for(f=h.length-1;f>=b;f-=2)g=s(h,b,f)<<l,this.words[v]|=g&67108863,l>=18?(l-=18,v+=1,this.words[v]|=g>>>26):l+=8;else{var p=h.length-b;for(f=p%2===0?b+1:b;f<h.length;f+=2)g=s(h,b,f)<<l,this.words[v]|=g&67108863,l>=18?(l-=18,v+=1,this.words[v]|=g>>>26):l+=8}this.strip()};function y(A,h,b,d){for(var f=0,l=Math.min(A.length,b),v=h;v<l;v++){var g=A.charCodeAt(v)-48;f*=d,g>=49?f+=g-49+10:g>=17?f+=g-17+10:f+=g}return f}n.prototype._parseBase=function(h,b,d){this.words=[0],this.length=1;for(var f=0,l=1;l<=67108863;l*=b)f++;f--,l=l/b|0;for(var v=h.length-d,g=v%f,p=Math.min(v,v-g)+d,u=0,w=d;w<p;w+=f)u=y(h,w,w+f,b),this.imuln(l),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(g!==0){var E=1;for(u=y(h,w,h.length,b),w=0;w<g;w++)E*=b;this.imuln(E),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},n.prototype.copy=function(h){h.words=new Array(this.length);for(var b=0;b<this.length;b++)h.words[b]=this.words[b];h.length=this.length,h.negative=this.negative,h.red=this.red},n.prototype.clone=function(){var h=new n(null);return this.copy(h),h},n.prototype._expand=function(h){for(;this.length<h;)this.words[this.length++]=0;return this},n.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},n.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},n.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var _=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],x=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],B=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(h,b){h=h||10,b=b|0||1;var d;if(h===16||h==="hex"){d="";for(var f=0,l=0,v=0;v<this.length;v++){var g=this.words[v],p=((g<<f|l)&16777215).toString(16);l=g>>>24-f&16777215,f+=2,f>=26&&(f-=26,v--),l!==0||v!==this.length-1?d=_[6-p.length]+p+d:d=p+d}for(l!==0&&(d=l.toString(16)+d);d.length%b!==0;)d="0"+d;return this.negative!==0&&(d="-"+d),d}if(h===(h|0)&&h>=2&&h<=36){var u=x[h],w=B[h];d="";var E=this.clone();for(E.negative=0;!E.isZero();){var c=E.modn(w).toString(h);E=E.idivn(w),E.isZero()?d=c+d:d=_[u-c.length]+c+d}for(this.isZero()&&(d="0"+d);d.length%b!==0;)d="0"+d;return this.negative!==0&&(d="-"+d),d}r(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var h=this.words[0];return this.length===2?h+=this.words[1]*67108864:this.length===3&&this.words[2]===1?h+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-h:h},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(h,b){return r(typeof a<"u"),this.toArrayLike(a,h,b)},n.prototype.toArray=function(h,b){return this.toArrayLike(Array,h,b)},n.prototype.toArrayLike=function(h,b,d){var f=this.byteLength(),l=d||Math.max(1,f);r(f<=l,"byte array longer than desired length"),r(l>0,"Requested array length <= 0"),this.strip();var v=b==="le",g=new h(l),p,u,w=this.clone();if(v){for(u=0;!w.isZero();u++)p=w.andln(255),w.iushrn(8),g[u]=p;for(;u<l;u++)g[u]=0}else{for(u=0;u<l-f;u++)g[u]=0;for(u=0;!w.isZero();u++)p=w.andln(255),w.iushrn(8),g[l-u-1]=p}return g},Math.clz32?n.prototype._countBits=function(h){return 32-Math.clz32(h)}:n.prototype._countBits=function(h){var b=h,d=0;return b>=4096&&(d+=13,b>>>=13),b>=64&&(d+=7,b>>>=7),b>=8&&(d+=4,b>>>=4),b>=2&&(d+=2,b>>>=2),d+b},n.prototype._zeroBits=function(h){if(h===0)return 26;var b=h,d=0;return(b&8191)===0&&(d+=13,b>>>=13),(b&127)===0&&(d+=7,b>>>=7),(b&15)===0&&(d+=4,b>>>=4),(b&3)===0&&(d+=2,b>>>=2),(b&1)===0&&d++,d},n.prototype.bitLength=function(){var h=this.words[this.length-1],b=this._countBits(h);return(this.length-1)*26+b};function R(A){for(var h=new Array(A.bitLength()),b=0;b<h.length;b++){var d=b/26|0,f=b%26;h[b]=(A.words[d]&1<<f)>>>f}return h}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var h=0,b=0;b<this.length;b++){var d=this._zeroBits(this.words[b]);if(h+=d,d!==26)break}return h},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(h){return this.negative!==0?this.abs().inotn(h).iaddn(1):this.clone()},n.prototype.fromTwos=function(h){return this.testn(h-1)?this.notn(h).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return this.negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},n.prototype.iuor=function(h){for(;this.length<h.length;)this.words[this.length++]=0;for(var b=0;b<h.length;b++)this.words[b]=this.words[b]|h.words[b];return this.strip()},n.prototype.ior=function(h){return r((this.negative|h.negative)===0),this.iuor(h)},n.prototype.or=function(h){return this.length>h.length?this.clone().ior(h):h.clone().ior(this)},n.prototype.uor=function(h){return this.length>h.length?this.clone().iuor(h):h.clone().iuor(this)},n.prototype.iuand=function(h){var b;this.length>h.length?b=h:b=this;for(var d=0;d<b.length;d++)this.words[d]=this.words[d]&h.words[d];return this.length=b.length,this.strip()},n.prototype.iand=function(h){return r((this.negative|h.negative)===0),this.iuand(h)},n.prototype.and=function(h){return this.length>h.length?this.clone().iand(h):h.clone().iand(this)},n.prototype.uand=function(h){return this.length>h.length?this.clone().iuand(h):h.clone().iuand(this)},n.prototype.iuxor=function(h){var b,d;this.length>h.length?(b=this,d=h):(b=h,d=this);for(var f=0;f<d.length;f++)this.words[f]=b.words[f]^d.words[f];if(this!==b)for(;f<b.length;f++)this.words[f]=b.words[f];return this.length=b.length,this.strip()},n.prototype.ixor=function(h){return r((this.negative|h.negative)===0),this.iuxor(h)},n.prototype.xor=function(h){return this.length>h.length?this.clone().ixor(h):h.clone().ixor(this)},n.prototype.uxor=function(h){return this.length>h.length?this.clone().iuxor(h):h.clone().iuxor(this)},n.prototype.inotn=function(h){r(typeof h=="number"&&h>=0);var b=Math.ceil(h/26)|0,d=h%26;this._expand(b),d>0&&b--;for(var f=0;f<b;f++)this.words[f]=~this.words[f]&67108863;return d>0&&(this.words[f]=~this.words[f]&67108863>>26-d),this.strip()},n.prototype.notn=function(h){return this.clone().inotn(h)},n.prototype.setn=function(h,b){r(typeof h=="number"&&h>=0);var d=h/26|0,f=h%26;return this._expand(d+1),b?this.words[d]=this.words[d]|1<<f:this.words[d]=this.words[d]&~(1<<f),this.strip()},n.prototype.iadd=function(h){var b;if(this.negative!==0&&h.negative===0)return this.negative=0,b=this.isub(h),this.negative^=1,this._normSign();if(this.negative===0&&h.negative!==0)return h.negative=0,b=this.isub(h),h.negative=1,b._normSign();var d,f;this.length>h.length?(d=this,f=h):(d=h,f=this);for(var l=0,v=0;v<f.length;v++)b=(d.words[v]|0)+(f.words[v]|0)+l,this.words[v]=b&67108863,l=b>>>26;for(;l!==0&&v<d.length;v++)b=(d.words[v]|0)+l,this.words[v]=b&67108863,l=b>>>26;if(this.length=d.length,l!==0)this.words[this.length]=l,this.length++;else if(d!==this)for(;v<d.length;v++)this.words[v]=d.words[v];return this},n.prototype.add=function(h){var b;return h.negative!==0&&this.negative===0?(h.negative=0,b=this.sub(h),h.negative^=1,b):h.negative===0&&this.negative!==0?(this.negative=0,b=h.sub(this),this.negative=1,b):this.length>h.length?this.clone().iadd(h):h.clone().iadd(this)},n.prototype.isub=function(h){if(h.negative!==0){h.negative=0;var b=this.iadd(h);return h.negative=1,b._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(h),this.negative=1,this._normSign();var d=this.cmp(h);if(d===0)return this.negative=0,this.length=1,this.words[0]=0,this;var f,l;d>0?(f=this,l=h):(f=h,l=this);for(var v=0,g=0;g<l.length;g++)b=(f.words[g]|0)-(l.words[g]|0)+v,v=b>>26,this.words[g]=b&67108863;for(;v!==0&&g<f.length;g++)b=(f.words[g]|0)+v,v=b>>26,this.words[g]=b&67108863;if(v===0&&g<f.length&&f!==this)for(;g<f.length;g++)this.words[g]=f.words[g];return this.length=Math.max(this.length,g),f!==this&&(this.negative=1),this.strip()},n.prototype.sub=function(h){return this.clone().isub(h)};function T(A,h,b){b.negative=h.negative^A.negative;var d=A.length+h.length|0;b.length=d,d=d-1|0;var f=A.words[0]|0,l=h.words[0]|0,v=f*l,g=v&67108863,p=v/67108864|0;b.words[0]=g;for(var u=1;u<d;u++){for(var w=p>>>26,E=p&67108863,c=Math.min(u,h.length-1),S=Math.max(0,u-A.length+1);S<=c;S++){var P=u-S|0;f=A.words[P]|0,l=h.words[S]|0,v=f*l+E,w+=v/67108864|0,E=v&67108863}b.words[u]=E|0,p=w|0}return p!==0?b.words[u]=p|0:b.length--,b.strip()}var O=function(h,b,d){var f=h.words,l=b.words,v=d.words,g=0,p,u,w,E=f[0]|0,c=E&8191,S=E>>>13,P=f[1]|0,C=P&8191,L=P>>>13,V=f[2]|0,G=V&8191,Y=V>>>13,Wt=f[3]|0,Q=Wt&8191,ee=Wt>>>13,_a=f[4]|0,ie=_a&8191,ne=_a>>>13,ma=f[5]|0,ae=ma&8191,oe=ma>>>13,wa=f[6]|0,fe=wa&8191,se=wa>>>13,xa=f[7]|0,ue=xa&8191,le=xa>>>13,Ea=f[8]|0,he=Ea&8191,ce=Ea>>>13,Sa=f[9]|0,de=Sa&8191,pe=Sa>>>13,Ma=l[0]|0,ve=Ma&8191,ye=Ma>>>13,Aa=l[1]|0,ge=Aa&8191,be=Aa>>>13,Ba=l[2]|0,_e=Ba&8191,me=Ba>>>13,Ra=l[3]|0,we=Ra&8191,xe=Ra>>>13,ka=l[4]|0,Ee=ka&8191,Se=ka>>>13,Ta=l[5]|0,Me=Ta&8191,Ae=Ta>>>13,Ia=l[6]|0,Be=Ia&8191,Re=Ia>>>13,Oa=l[7]|0,ke=Oa&8191,Te=Oa>>>13,qa=l[8]|0,Ie=qa&8191,Oe=qa>>>13,Da=l[9]|0,qe=Da&8191,De=Da>>>13;d.negative=h.negative^b.negative,d.length=19,p=Math.imul(c,ve),u=Math.imul(c,ye),u=u+Math.imul(S,ve)|0,w=Math.imul(S,ye);var En=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(En>>>26)|0,En&=67108863,p=Math.imul(C,ve),u=Math.imul(C,ye),u=u+Math.imul(L,ve)|0,w=Math.imul(L,ye),p=p+Math.imul(c,ge)|0,u=u+Math.imul(c,be)|0,u=u+Math.imul(S,ge)|0,w=w+Math.imul(S,be)|0;var $e=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+($e>>>26)|0,$e&=67108863,p=Math.imul(G,ve),u=Math.imul(G,ye),u=u+Math.imul(Y,ve)|0,w=Math.imul(Y,ye),p=p+Math.imul(C,ge)|0,u=u+Math.imul(C,be)|0,u=u+Math.imul(L,ge)|0,w=w+Math.imul(L,be)|0,p=p+Math.imul(c,_e)|0,u=u+Math.imul(c,me)|0,u=u+Math.imul(S,_e)|0,w=w+Math.imul(S,me)|0;var Ye=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(Ye>>>26)|0,Ye&=67108863,p=Math.imul(Q,ve),u=Math.imul(Q,ye),u=u+Math.imul(ee,ve)|0,w=Math.imul(ee,ye),p=p+Math.imul(G,ge)|0,u=u+Math.imul(G,be)|0,u=u+Math.imul(Y,ge)|0,w=w+Math.imul(Y,be)|0,p=p+Math.imul(C,_e)|0,u=u+Math.imul(C,me)|0,u=u+Math.imul(L,_e)|0,w=w+Math.imul(L,me)|0,p=p+Math.imul(c,we)|0,u=u+Math.imul(c,xe)|0,u=u+Math.imul(S,we)|0,w=w+Math.imul(S,xe)|0;var di=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(di>>>26)|0,di&=67108863,p=Math.imul(ie,ve),u=Math.imul(ie,ye),u=u+Math.imul(ne,ve)|0,w=Math.imul(ne,ye),p=p+Math.imul(Q,ge)|0,u=u+Math.imul(Q,be)|0,u=u+Math.imul(ee,ge)|0,w=w+Math.imul(ee,be)|0,p=p+Math.imul(G,_e)|0,u=u+Math.imul(G,me)|0,u=u+Math.imul(Y,_e)|0,w=w+Math.imul(Y,me)|0,p=p+Math.imul(C,we)|0,u=u+Math.imul(C,xe)|0,u=u+Math.imul(L,we)|0,w=w+Math.imul(L,xe)|0,p=p+Math.imul(c,Ee)|0,u=u+Math.imul(c,Se)|0,u=u+Math.imul(S,Ee)|0,w=w+Math.imul(S,Se)|0;var pi=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(pi>>>26)|0,pi&=67108863,p=Math.imul(ae,ve),u=Math.imul(ae,ye),u=u+Math.imul(oe,ve)|0,w=Math.imul(oe,ye),p=p+Math.imul(ie,ge)|0,u=u+Math.imul(ie,be)|0,u=u+Math.imul(ne,ge)|0,w=w+Math.imul(ne,be)|0,p=p+Math.imul(Q,_e)|0,u=u+Math.imul(Q,me)|0,u=u+Math.imul(ee,_e)|0,w=w+Math.imul(ee,me)|0,p=p+Math.imul(G,we)|0,u=u+Math.imul(G,xe)|0,u=u+Math.imul(Y,we)|0,w=w+Math.imul(Y,xe)|0,p=p+Math.imul(C,Ee)|0,u=u+Math.imul(C,Se)|0,u=u+Math.imul(L,Ee)|0,w=w+Math.imul(L,Se)|0,p=p+Math.imul(c,Me)|0,u=u+Math.imul(c,Ae)|0,u=u+Math.imul(S,Me)|0,w=w+Math.imul(S,Ae)|0;var vi=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(vi>>>26)|0,vi&=67108863,p=Math.imul(fe,ve),u=Math.imul(fe,ye),u=u+Math.imul(se,ve)|0,w=Math.imul(se,ye),p=p+Math.imul(ae,ge)|0,u=u+Math.imul(ae,be)|0,u=u+Math.imul(oe,ge)|0,w=w+Math.imul(oe,be)|0,p=p+Math.imul(ie,_e)|0,u=u+Math.imul(ie,me)|0,u=u+Math.imul(ne,_e)|0,w=w+Math.imul(ne,me)|0,p=p+Math.imul(Q,we)|0,u=u+Math.imul(Q,xe)|0,u=u+Math.imul(ee,we)|0,w=w+Math.imul(ee,xe)|0,p=p+Math.imul(G,Ee)|0,u=u+Math.imul(G,Se)|0,u=u+Math.imul(Y,Ee)|0,w=w+Math.imul(Y,Se)|0,p=p+Math.imul(C,Me)|0,u=u+Math.imul(C,Ae)|0,u=u+Math.imul(L,Me)|0,w=w+Math.imul(L,Ae)|0,p=p+Math.imul(c,Be)|0,u=u+Math.imul(c,Re)|0,u=u+Math.imul(S,Be)|0,w=w+Math.imul(S,Re)|0;var yi=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(yi>>>26)|0,yi&=67108863,p=Math.imul(ue,ve),u=Math.imul(ue,ye),u=u+Math.imul(le,ve)|0,w=Math.imul(le,ye),p=p+Math.imul(fe,ge)|0,u=u+Math.imul(fe,be)|0,u=u+Math.imul(se,ge)|0,w=w+Math.imul(se,be)|0,p=p+Math.imul(ae,_e)|0,u=u+Math.imul(ae,me)|0,u=u+Math.imul(oe,_e)|0,w=w+Math.imul(oe,me)|0,p=p+Math.imul(ie,we)|0,u=u+Math.imul(ie,xe)|0,u=u+Math.imul(ne,we)|0,w=w+Math.imul(ne,xe)|0,p=p+Math.imul(Q,Ee)|0,u=u+Math.imul(Q,Se)|0,u=u+Math.imul(ee,Ee)|0,w=w+Math.imul(ee,Se)|0,p=p+Math.imul(G,Me)|0,u=u+Math.imul(G,Ae)|0,u=u+Math.imul(Y,Me)|0,w=w+Math.imul(Y,Ae)|0,p=p+Math.imul(C,Be)|0,u=u+Math.imul(C,Re)|0,u=u+Math.imul(L,Be)|0,w=w+Math.imul(L,Re)|0,p=p+Math.imul(c,ke)|0,u=u+Math.imul(c,Te)|0,u=u+Math.imul(S,ke)|0,w=w+Math.imul(S,Te)|0;var gi=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(gi>>>26)|0,gi&=67108863,p=Math.imul(he,ve),u=Math.imul(he,ye),u=u+Math.imul(ce,ve)|0,w=Math.imul(ce,ye),p=p+Math.imul(ue,ge)|0,u=u+Math.imul(ue,be)|0,u=u+Math.imul(le,ge)|0,w=w+Math.imul(le,be)|0,p=p+Math.imul(fe,_e)|0,u=u+Math.imul(fe,me)|0,u=u+Math.imul(se,_e)|0,w=w+Math.imul(se,me)|0,p=p+Math.imul(ae,we)|0,u=u+Math.imul(ae,xe)|0,u=u+Math.imul(oe,we)|0,w=w+Math.imul(oe,xe)|0,p=p+Math.imul(ie,Ee)|0,u=u+Math.imul(ie,Se)|0,u=u+Math.imul(ne,Ee)|0,w=w+Math.imul(ne,Se)|0,p=p+Math.imul(Q,Me)|0,u=u+Math.imul(Q,Ae)|0,u=u+Math.imul(ee,Me)|0,w=w+Math.imul(ee,Ae)|0,p=p+Math.imul(G,Be)|0,u=u+Math.imul(G,Re)|0,u=u+Math.imul(Y,Be)|0,w=w+Math.imul(Y,Re)|0,p=p+Math.imul(C,ke)|0,u=u+Math.imul(C,Te)|0,u=u+Math.imul(L,ke)|0,w=w+Math.imul(L,Te)|0,p=p+Math.imul(c,Ie)|0,u=u+Math.imul(c,Oe)|0,u=u+Math.imul(S,Ie)|0,w=w+Math.imul(S,Oe)|0;var bi=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(bi>>>26)|0,bi&=67108863,p=Math.imul(de,ve),u=Math.imul(de,ye),u=u+Math.imul(pe,ve)|0,w=Math.imul(pe,ye),p=p+Math.imul(he,ge)|0,u=u+Math.imul(he,be)|0,u=u+Math.imul(ce,ge)|0,w=w+Math.imul(ce,be)|0,p=p+Math.imul(ue,_e)|0,u=u+Math.imul(ue,me)|0,u=u+Math.imul(le,_e)|0,w=w+Math.imul(le,me)|0,p=p+Math.imul(fe,we)|0,u=u+Math.imul(fe,xe)|0,u=u+Math.imul(se,we)|0,w=w+Math.imul(se,xe)|0,p=p+Math.imul(ae,Ee)|0,u=u+Math.imul(ae,Se)|0,u=u+Math.imul(oe,Ee)|0,w=w+Math.imul(oe,Se)|0,p=p+Math.imul(ie,Me)|0,u=u+Math.imul(ie,Ae)|0,u=u+Math.imul(ne,Me)|0,w=w+Math.imul(ne,Ae)|0,p=p+Math.imul(Q,Be)|0,u=u+Math.imul(Q,Re)|0,u=u+Math.imul(ee,Be)|0,w=w+Math.imul(ee,Re)|0,p=p+Math.imul(G,ke)|0,u=u+Math.imul(G,Te)|0,u=u+Math.imul(Y,ke)|0,w=w+Math.imul(Y,Te)|0,p=p+Math.imul(C,Ie)|0,u=u+Math.imul(C,Oe)|0,u=u+Math.imul(L,Ie)|0,w=w+Math.imul(L,Oe)|0,p=p+Math.imul(c,qe)|0,u=u+Math.imul(c,De)|0,u=u+Math.imul(S,qe)|0,w=w+Math.imul(S,De)|0;var _i=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(_i>>>26)|0,_i&=67108863,p=Math.imul(de,ge),u=Math.imul(de,be),u=u+Math.imul(pe,ge)|0,w=Math.imul(pe,be),p=p+Math.imul(he,_e)|0,u=u+Math.imul(he,me)|0,u=u+Math.imul(ce,_e)|0,w=w+Math.imul(ce,me)|0,p=p+Math.imul(ue,we)|0,u=u+Math.imul(ue,xe)|0,u=u+Math.imul(le,we)|0,w=w+Math.imul(le,xe)|0,p=p+Math.imul(fe,Ee)|0,u=u+Math.imul(fe,Se)|0,u=u+Math.imul(se,Ee)|0,w=w+Math.imul(se,Se)|0,p=p+Math.imul(ae,Me)|0,u=u+Math.imul(ae,Ae)|0,u=u+Math.imul(oe,Me)|0,w=w+Math.imul(oe,Ae)|0,p=p+Math.imul(ie,Be)|0,u=u+Math.imul(ie,Re)|0,u=u+Math.imul(ne,Be)|0,w=w+Math.imul(ne,Re)|0,p=p+Math.imul(Q,ke)|0,u=u+Math.imul(Q,Te)|0,u=u+Math.imul(ee,ke)|0,w=w+Math.imul(ee,Te)|0,p=p+Math.imul(G,Ie)|0,u=u+Math.imul(G,Oe)|0,u=u+Math.imul(Y,Ie)|0,w=w+Math.imul(Y,Oe)|0,p=p+Math.imul(C,qe)|0,u=u+Math.imul(C,De)|0,u=u+Math.imul(L,qe)|0,w=w+Math.imul(L,De)|0;var mi=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(mi>>>26)|0,mi&=67108863,p=Math.imul(de,_e),u=Math.imul(de,me),u=u+Math.imul(pe,_e)|0,w=Math.imul(pe,me),p=p+Math.imul(he,we)|0,u=u+Math.imul(he,xe)|0,u=u+Math.imul(ce,we)|0,w=w+Math.imul(ce,xe)|0,p=p+Math.imul(ue,Ee)|0,u=u+Math.imul(ue,Se)|0,u=u+Math.imul(le,Ee)|0,w=w+Math.imul(le,Se)|0,p=p+Math.imul(fe,Me)|0,u=u+Math.imul(fe,Ae)|0,u=u+Math.imul(se,Me)|0,w=w+Math.imul(se,Ae)|0,p=p+Math.imul(ae,Be)|0,u=u+Math.imul(ae,Re)|0,u=u+Math.imul(oe,Be)|0,w=w+Math.imul(oe,Re)|0,p=p+Math.imul(ie,ke)|0,u=u+Math.imul(ie,Te)|0,u=u+Math.imul(ne,ke)|0,w=w+Math.imul(ne,Te)|0,p=p+Math.imul(Q,Ie)|0,u=u+Math.imul(Q,Oe)|0,u=u+Math.imul(ee,Ie)|0,w=w+Math.imul(ee,Oe)|0,p=p+Math.imul(G,qe)|0,u=u+Math.imul(G,De)|0,u=u+Math.imul(Y,qe)|0,w=w+Math.imul(Y,De)|0;var wi=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(wi>>>26)|0,wi&=67108863,p=Math.imul(de,we),u=Math.imul(de,xe),u=u+Math.imul(pe,we)|0,w=Math.imul(pe,xe),p=p+Math.imul(he,Ee)|0,u=u+Math.imul(he,Se)|0,u=u+Math.imul(ce,Ee)|0,w=w+Math.imul(ce,Se)|0,p=p+Math.imul(ue,Me)|0,u=u+Math.imul(ue,Ae)|0,u=u+Math.imul(le,Me)|0,w=w+Math.imul(le,Ae)|0,p=p+Math.imul(fe,Be)|0,u=u+Math.imul(fe,Re)|0,u=u+Math.imul(se,Be)|0,w=w+Math.imul(se,Re)|0,p=p+Math.imul(ae,ke)|0,u=u+Math.imul(ae,Te)|0,u=u+Math.imul(oe,ke)|0,w=w+Math.imul(oe,Te)|0,p=p+Math.imul(ie,Ie)|0,u=u+Math.imul(ie,Oe)|0,u=u+Math.imul(ne,Ie)|0,w=w+Math.imul(ne,Oe)|0,p=p+Math.imul(Q,qe)|0,u=u+Math.imul(Q,De)|0,u=u+Math.imul(ee,qe)|0,w=w+Math.imul(ee,De)|0;var xi=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(xi>>>26)|0,xi&=67108863,p=Math.imul(de,Ee),u=Math.imul(de,Se),u=u+Math.imul(pe,Ee)|0,w=Math.imul(pe,Se),p=p+Math.imul(he,Me)|0,u=u+Math.imul(he,Ae)|0,u=u+Math.imul(ce,Me)|0,w=w+Math.imul(ce,Ae)|0,p=p+Math.imul(ue,Be)|0,u=u+Math.imul(ue,Re)|0,u=u+Math.imul(le,Be)|0,w=w+Math.imul(le,Re)|0,p=p+Math.imul(fe,ke)|0,u=u+Math.imul(fe,Te)|0,u=u+Math.imul(se,ke)|0,w=w+Math.imul(se,Te)|0,p=p+Math.imul(ae,Ie)|0,u=u+Math.imul(ae,Oe)|0,u=u+Math.imul(oe,Ie)|0,w=w+Math.imul(oe,Oe)|0,p=p+Math.imul(ie,qe)|0,u=u+Math.imul(ie,De)|0,u=u+Math.imul(ne,qe)|0,w=w+Math.imul(ne,De)|0;var Ei=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,p=Math.imul(de,Me),u=Math.imul(de,Ae),u=u+Math.imul(pe,Me)|0,w=Math.imul(pe,Ae),p=p+Math.imul(he,Be)|0,u=u+Math.imul(he,Re)|0,u=u+Math.imul(ce,Be)|0,w=w+Math.imul(ce,Re)|0,p=p+Math.imul(ue,ke)|0,u=u+Math.imul(ue,Te)|0,u=u+Math.imul(le,ke)|0,w=w+Math.imul(le,Te)|0,p=p+Math.imul(fe,Ie)|0,u=u+Math.imul(fe,Oe)|0,u=u+Math.imul(se,Ie)|0,w=w+Math.imul(se,Oe)|0,p=p+Math.imul(ae,qe)|0,u=u+Math.imul(ae,De)|0,u=u+Math.imul(oe,qe)|0,w=w+Math.imul(oe,De)|0;var Si=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(Si>>>26)|0,Si&=67108863,p=Math.imul(de,Be),u=Math.imul(de,Re),u=u+Math.imul(pe,Be)|0,w=Math.imul(pe,Re),p=p+Math.imul(he,ke)|0,u=u+Math.imul(he,Te)|0,u=u+Math.imul(ce,ke)|0,w=w+Math.imul(ce,Te)|0,p=p+Math.imul(ue,Ie)|0,u=u+Math.imul(ue,Oe)|0,u=u+Math.imul(le,Ie)|0,w=w+Math.imul(le,Oe)|0,p=p+Math.imul(fe,qe)|0,u=u+Math.imul(fe,De)|0,u=u+Math.imul(se,qe)|0,w=w+Math.imul(se,De)|0;var Mi=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(Mi>>>26)|0,Mi&=67108863,p=Math.imul(de,ke),u=Math.imul(de,Te),u=u+Math.imul(pe,ke)|0,w=Math.imul(pe,Te),p=p+Math.imul(he,Ie)|0,u=u+Math.imul(he,Oe)|0,u=u+Math.imul(ce,Ie)|0,w=w+Math.imul(ce,Oe)|0,p=p+Math.imul(ue,qe)|0,u=u+Math.imul(ue,De)|0,u=u+Math.imul(le,qe)|0,w=w+Math.imul(le,De)|0;var Ai=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(Ai>>>26)|0,Ai&=67108863,p=Math.imul(de,Ie),u=Math.imul(de,Oe),u=u+Math.imul(pe,Ie)|0,w=Math.imul(pe,Oe),p=p+Math.imul(he,qe)|0,u=u+Math.imul(he,De)|0,u=u+Math.imul(ce,qe)|0,w=w+Math.imul(ce,De)|0;var Bi=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(Bi>>>26)|0,Bi&=67108863,p=Math.imul(de,qe),u=Math.imul(de,De),u=u+Math.imul(pe,qe)|0,w=Math.imul(pe,De);var Ri=(g+p|0)+((u&8191)<<13)|0;return g=(w+(u>>>13)|0)+(Ri>>>26)|0,Ri&=67108863,v[0]=En,v[1]=$e,v[2]=Ye,v[3]=di,v[4]=pi,v[5]=vi,v[6]=yi,v[7]=gi,v[8]=bi,v[9]=_i,v[10]=mi,v[11]=wi,v[12]=xi,v[13]=Ei,v[14]=Si,v[15]=Mi,v[16]=Ai,v[17]=Bi,v[18]=Ri,g!==0&&(v[19]=g,d.length++),d};Math.imul||(O=T);function D(A,h,b){b.negative=h.negative^A.negative,b.length=A.length+h.length;for(var d=0,f=0,l=0;l<b.length-1;l++){var v=f;f=0;for(var g=d&67108863,p=Math.min(l,h.length-1),u=Math.max(0,l-A.length+1);u<=p;u++){var w=l-u,E=A.words[w]|0,c=h.words[u]|0,S=E*c,P=S&67108863;v=v+(S/67108864|0)|0,P=P+g|0,g=P&67108863,v=v+(P>>>26)|0,f+=v>>>26,v&=67108863}b.words[l]=g,d=v,v=f}return d!==0?b.words[l]=d:b.length--,b.strip()}function U(A,h,b){var d=new N;return d.mulp(A,h,b)}n.prototype.mulTo=function(h,b){var d,f=this.length+h.length;return this.length===10&&h.length===10?d=O(this,h,b):f<63?d=T(this,h,b):f<1024?d=D(this,h,b):d=U(this,h,b),d};function N(A,h){this.x=A,this.y=h}N.prototype.makeRBT=function(h){for(var b=new Array(h),d=n.prototype._countBits(h)-1,f=0;f<h;f++)b[f]=this.revBin(f,d,h);return b},N.prototype.revBin=function(h,b,d){if(h===0||h===d-1)return h;for(var f=0,l=0;l<b;l++)f|=(h&1)<<b-l-1,h>>=1;return f},N.prototype.permute=function(h,b,d,f,l,v){for(var g=0;g<v;g++)f[g]=b[h[g]],l[g]=d[h[g]]},N.prototype.transform=function(h,b,d,f,l,v){this.permute(v,h,b,d,f,l);for(var g=1;g<l;g<<=1)for(var p=g<<1,u=Math.cos(2*Math.PI/p),w=Math.sin(2*Math.PI/p),E=0;E<l;E+=p)for(var c=u,S=w,P=0;P<g;P++){var C=d[E+P],L=f[E+P],V=d[E+P+g],G=f[E+P+g],Y=c*V-S*G;G=c*G+S*V,V=Y,d[E+P]=C+V,f[E+P]=L+G,d[E+P+g]=C-V,f[E+P+g]=L-G,P!==p&&(Y=u*c-w*S,S=u*S+w*c,c=Y)}},N.prototype.guessLen13b=function(h,b){var d=Math.max(b,h)|1,f=d&1,l=0;for(d=d/2|0;d;d=d>>>1)l++;return 1<<l+1+f},N.prototype.conjugate=function(h,b,d){if(!(d<=1))for(var f=0;f<d/2;f++){var l=h[f];h[f]=h[d-f-1],h[d-f-1]=l,l=b[f],b[f]=-b[d-f-1],b[d-f-1]=-l}},N.prototype.normalize13b=function(h,b){for(var d=0,f=0;f<b/2;f++){var l=Math.round(h[2*f+1]/b)*8192+Math.round(h[2*f]/b)+d;h[f]=l&67108863,l<67108864?d=0:d=l/67108864|0}return h},N.prototype.convert13b=function(h,b,d,f){for(var l=0,v=0;v<b;v++)l=l+(h[v]|0),d[2*v]=l&8191,l=l>>>13,d[2*v+1]=l&8191,l=l>>>13;for(v=2*b;v<f;++v)d[v]=0;r(l===0),r((l&-8192)===0)},N.prototype.stub=function(h){for(var b=new Array(h),d=0;d<h;d++)b[d]=0;return b},N.prototype.mulp=function(h,b,d){var f=2*this.guessLen13b(h.length,b.length),l=this.makeRBT(f),v=this.stub(f),g=new Array(f),p=new Array(f),u=new Array(f),w=new Array(f),E=new Array(f),c=new Array(f),S=d.words;S.length=f,this.convert13b(h.words,h.length,g,f),this.convert13b(b.words,b.length,w,f),this.transform(g,v,p,u,f,l),this.transform(w,v,E,c,f,l);for(var P=0;P<f;P++){var C=p[P]*E[P]-u[P]*c[P];u[P]=p[P]*c[P]+u[P]*E[P],p[P]=C}return this.conjugate(p,u,f),this.transform(p,u,S,v,f,l),this.conjugate(S,v,f),this.normalize13b(S,f),d.negative=h.negative^b.negative,d.length=h.length+b.length,d.strip()},n.prototype.mul=function(h){var b=new n(null);return b.words=new Array(this.length+h.length),this.mulTo(h,b)},n.prototype.mulf=function(h){var b=new n(null);return b.words=new Array(this.length+h.length),U(this,h,b)},n.prototype.imul=function(h){return this.clone().mulTo(h,this)},n.prototype.imuln=function(h){r(typeof h=="number"),r(h<67108864);for(var b=0,d=0;d<this.length;d++){var f=(this.words[d]|0)*h,l=(f&67108863)+(b&67108863);b>>=26,b+=f/67108864|0,b+=l>>>26,this.words[d]=l&67108863}return b!==0&&(this.words[d]=b,this.length++),this.length=h===0?1:this.length,this},n.prototype.muln=function(h){return this.clone().imuln(h)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(h){var b=R(h);if(b.length===0)return new n(1);for(var d=this,f=0;f<b.length&&b[f]===0;f++,d=d.sqr());if(++f<b.length)for(var l=d.sqr();f<b.length;f++,l=l.sqr())b[f]!==0&&(d=d.mul(l));return d},n.prototype.iushln=function(h){r(typeof h=="number"&&h>=0);var b=h%26,d=(h-b)/26,f=67108863>>>26-b<<26-b,l;if(b!==0){var v=0;for(l=0;l<this.length;l++){var g=this.words[l]&f,p=(this.words[l]|0)-g<<b;this.words[l]=p|v,v=g>>>26-b}v&&(this.words[l]=v,this.length++)}if(d!==0){for(l=this.length-1;l>=0;l--)this.words[l+d]=this.words[l];for(l=0;l<d;l++)this.words[l]=0;this.length+=d}return this.strip()},n.prototype.ishln=function(h){return r(this.negative===0),this.iushln(h)},n.prototype.iushrn=function(h,b,d){r(typeof h=="number"&&h>=0);var f;b?f=(b-b%26)/26:f=0;var l=h%26,v=Math.min((h-l)/26,this.length),g=67108863^67108863>>>l<<l,p=d;if(f-=v,f=Math.max(0,f),p){for(var u=0;u<v;u++)p.words[u]=this.words[u];p.length=v}if(v!==0)if(this.length>v)for(this.length-=v,u=0;u<this.length;u++)this.words[u]=this.words[u+v];else this.words[0]=0,this.length=1;var w=0;for(u=this.length-1;u>=0&&(w!==0||u>=f);u--){var E=this.words[u]|0;this.words[u]=w<<26-l|E>>>l,w=E&g}return p&&w!==0&&(p.words[p.length++]=w),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},n.prototype.ishrn=function(h,b,d){return r(this.negative===0),this.iushrn(h,b,d)},n.prototype.shln=function(h){return this.clone().ishln(h)},n.prototype.ushln=function(h){return this.clone().iushln(h)},n.prototype.shrn=function(h){return this.clone().ishrn(h)},n.prototype.ushrn=function(h){return this.clone().iushrn(h)},n.prototype.testn=function(h){r(typeof h=="number"&&h>=0);var b=h%26,d=(h-b)/26,f=1<<b;if(this.length<=d)return!1;var l=this.words[d];return!!(l&f)},n.prototype.imaskn=function(h){r(typeof h=="number"&&h>=0);var b=h%26,d=(h-b)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=d)return this;if(b!==0&&d++,this.length=Math.min(d,this.length),b!==0){var f=67108863^67108863>>>b<<b;this.words[this.length-1]&=f}return this.length===0&&(this.words[0]=0,this.length=1),this.strip()},n.prototype.maskn=function(h){return this.clone().imaskn(h)},n.prototype.iaddn=function(h){return r(typeof h=="number"),r(h<67108864),h<0?this.isubn(-h):this.negative!==0?this.length===1&&(this.words[0]|0)<h?(this.words[0]=h-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(h),this.negative=1,this):this._iaddn(h)},n.prototype._iaddn=function(h){this.words[0]+=h;for(var b=0;b<this.length&&this.words[b]>=67108864;b++)this.words[b]-=67108864,b===this.length-1?this.words[b+1]=1:this.words[b+1]++;return this.length=Math.max(this.length,b+1),this},n.prototype.isubn=function(h){if(r(typeof h=="number"),r(h<67108864),h<0)return this.iaddn(-h);if(this.negative!==0)return this.negative=0,this.iaddn(h),this.negative=1,this;if(this.words[0]-=h,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var b=0;b<this.length&&this.words[b]<0;b++)this.words[b]+=67108864,this.words[b+1]-=1;return this.strip()},n.prototype.addn=function(h){return this.clone().iaddn(h)},n.prototype.subn=function(h){return this.clone().isubn(h)},n.prototype.iabs=function(){return this.negative=0,this},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(h,b,d){var f=h.length+d,l;this._expand(f);var v,g=0;for(l=0;l<h.length;l++){v=(this.words[l+d]|0)+g;var p=(h.words[l]|0)*b;v-=p&67108863,g=(v>>26)-(p/67108864|0),this.words[l+d]=v&67108863}for(;l<this.length-d;l++)v=(this.words[l+d]|0)+g,g=v>>26,this.words[l+d]=v&67108863;if(g===0)return this.strip();for(r(g===-1),g=0,l=0;l<this.length;l++)v=-(this.words[l]|0)+g,g=v>>26,this.words[l]=v&67108863;return this.negative=1,this.strip()},n.prototype._wordDiv=function(h,b){var d=this.length-h.length,f=this.clone(),l=h,v=l.words[l.length-1]|0,g=this._countBits(v);d=26-g,d!==0&&(l=l.ushln(d),f.iushln(d),v=l.words[l.length-1]|0);var p=f.length-l.length,u;if(b!=="mod"){u=new n(null),u.length=p+1,u.words=new Array(u.length);for(var w=0;w<u.length;w++)u.words[w]=0}var E=f.clone()._ishlnsubmul(l,1,p);E.negative===0&&(f=E,u&&(u.words[p]=1));for(var c=p-1;c>=0;c--){var S=(f.words[l.length+c]|0)*67108864+(f.words[l.length+c-1]|0);for(S=Math.min(S/v|0,67108863),f._ishlnsubmul(l,S,c);f.negative!==0;)S--,f.negative=0,f._ishlnsubmul(l,1,c),f.isZero()||(f.negative^=1);u&&(u.words[c]=S)}return u&&u.strip(),f.strip(),b!=="div"&&d!==0&&f.iushrn(d),{div:u||null,mod:f}},n.prototype.divmod=function(h,b,d){if(r(!h.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var f,l,v;return this.negative!==0&&h.negative===0?(v=this.neg().divmod(h,b),b!=="mod"&&(f=v.div.neg()),b!=="div"&&(l=v.mod.neg(),d&&l.negative!==0&&l.iadd(h)),{div:f,mod:l}):this.negative===0&&h.negative!==0?(v=this.divmod(h.neg(),b),b!=="mod"&&(f=v.div.neg()),{div:f,mod:v.mod}):(this.negative&h.negative)!==0?(v=this.neg().divmod(h.neg(),b),b!=="div"&&(l=v.mod.neg(),d&&l.negative!==0&&l.isub(h)),{div:v.div,mod:l}):h.length>this.length||this.cmp(h)<0?{div:new n(0),mod:this}:h.length===1?b==="div"?{div:this.divn(h.words[0]),mod:null}:b==="mod"?{div:null,mod:new n(this.modn(h.words[0]))}:{div:this.divn(h.words[0]),mod:new n(this.modn(h.words[0]))}:this._wordDiv(h,b)},n.prototype.div=function(h){return this.divmod(h,"div",!1).div},n.prototype.mod=function(h){return this.divmod(h,"mod",!1).mod},n.prototype.umod=function(h){return this.divmod(h,"mod",!0).mod},n.prototype.divRound=function(h){var b=this.divmod(h);if(b.mod.isZero())return b.div;var d=b.div.negative!==0?b.mod.isub(h):b.mod,f=h.ushrn(1),l=h.andln(1),v=d.cmp(f);return v<0||l===1&&v===0?b.div:b.div.negative!==0?b.div.isubn(1):b.div.iaddn(1)},n.prototype.modn=function(h){r(h<=67108863);for(var b=(1<<26)%h,d=0,f=this.length-1;f>=0;f--)d=(b*d+(this.words[f]|0))%h;return d},n.prototype.idivn=function(h){r(h<=67108863);for(var b=0,d=this.length-1;d>=0;d--){var f=(this.words[d]|0)+b*67108864;this.words[d]=f/h|0,b=f%h}return this.strip()},n.prototype.divn=function(h){return this.clone().idivn(h)},n.prototype.egcd=function(h){r(h.negative===0),r(!h.isZero());var b=this,d=h.clone();b.negative!==0?b=b.umod(h):b=b.clone();for(var f=new n(1),l=new n(0),v=new n(0),g=new n(1),p=0;b.isEven()&&d.isEven();)b.iushrn(1),d.iushrn(1),++p;for(var u=d.clone(),w=b.clone();!b.isZero();){for(var E=0,c=1;(b.words[0]&c)===0&&E<26;++E,c<<=1);if(E>0)for(b.iushrn(E);E-- >0;)(f.isOdd()||l.isOdd())&&(f.iadd(u),l.isub(w)),f.iushrn(1),l.iushrn(1);for(var S=0,P=1;(d.words[0]&P)===0&&S<26;++S,P<<=1);if(S>0)for(d.iushrn(S);S-- >0;)(v.isOdd()||g.isOdd())&&(v.iadd(u),g.isub(w)),v.iushrn(1),g.iushrn(1);b.cmp(d)>=0?(b.isub(d),f.isub(v),l.isub(g)):(d.isub(b),v.isub(f),g.isub(l))}return{a:v,b:g,gcd:d.iushln(p)}},n.prototype._invmp=function(h){r(h.negative===0),r(!h.isZero());var b=this,d=h.clone();b.negative!==0?b=b.umod(h):b=b.clone();for(var f=new n(1),l=new n(0),v=d.clone();b.cmpn(1)>0&&d.cmpn(1)>0;){for(var g=0,p=1;(b.words[0]&p)===0&&g<26;++g,p<<=1);if(g>0)for(b.iushrn(g);g-- >0;)f.isOdd()&&f.iadd(v),f.iushrn(1);for(var u=0,w=1;(d.words[0]&w)===0&&u<26;++u,w<<=1);if(u>0)for(d.iushrn(u);u-- >0;)l.isOdd()&&l.iadd(v),l.iushrn(1);b.cmp(d)>=0?(b.isub(d),f.isub(l)):(d.isub(b),l.isub(f))}var E;return b.cmpn(1)===0?E=f:E=l,E.cmpn(0)<0&&E.iadd(h),E},n.prototype.gcd=function(h){if(this.isZero())return h.abs();if(h.isZero())return this.abs();var b=this.clone(),d=h.clone();b.negative=0,d.negative=0;for(var f=0;b.isEven()&&d.isEven();f++)b.iushrn(1),d.iushrn(1);do{for(;b.isEven();)b.iushrn(1);for(;d.isEven();)d.iushrn(1);var l=b.cmp(d);if(l<0){var v=b;b=d,d=v}else if(l===0||d.cmpn(1)===0)break;b.isub(d)}while(!0);return d.iushln(f)},n.prototype.invm=function(h){return this.egcd(h).a.umod(h)},n.prototype.isEven=function(){return(this.words[0]&1)===0},n.prototype.isOdd=function(){return(this.words[0]&1)===1},n.prototype.andln=function(h){return this.words[0]&h},n.prototype.bincn=function(h){r(typeof h=="number");var b=h%26,d=(h-b)/26,f=1<<b;if(this.length<=d)return this._expand(d+1),this.words[d]|=f,this;for(var l=f,v=d;l!==0&&v<this.length;v++){var g=this.words[v]|0;g+=l,l=g>>>26,g&=67108863,this.words[v]=g}return l!==0&&(this.words[v]=l,this.length++),this},n.prototype.isZero=function(){return this.length===1&&this.words[0]===0},n.prototype.cmpn=function(h){var b=h<0;if(this.negative!==0&&!b)return-1;if(this.negative===0&&b)return 1;this.strip();var d;if(this.length>1)d=1;else{b&&(h=-h),r(h<=67108863,"Number is too big");var f=this.words[0]|0;d=f===h?0:f<h?-1:1}return this.negative!==0?-d|0:d},n.prototype.cmp=function(h){if(this.negative!==0&&h.negative===0)return-1;if(this.negative===0&&h.negative!==0)return 1;var b=this.ucmp(h);return this.negative!==0?-b|0:b},n.prototype.ucmp=function(h){if(this.length>h.length)return 1;if(this.length<h.length)return-1;for(var b=0,d=this.length-1;d>=0;d--){var f=this.words[d]|0,l=h.words[d]|0;if(f!==l){f<l?b=-1:f>l&&(b=1);break}}return b},n.prototype.gtn=function(h){return this.cmpn(h)===1},n.prototype.gt=function(h){return this.cmp(h)===1},n.prototype.gten=function(h){return this.cmpn(h)>=0},n.prototype.gte=function(h){return this.cmp(h)>=0},n.prototype.ltn=function(h){return this.cmpn(h)===-1},n.prototype.lt=function(h){return this.cmp(h)===-1},n.prototype.lten=function(h){return this.cmpn(h)<=0},n.prototype.lte=function(h){return this.cmp(h)<=0},n.prototype.eqn=function(h){return this.cmpn(h)===0},n.prototype.eq=function(h){return this.cmp(h)===0},n.red=function(h){return new z(h)},n.prototype.toRed=function(h){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),h.convertTo(this)._forceRed(h)},n.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(h){return this.red=h,this},n.prototype.forceRed=function(h){return r(!this.red,"Already a number in reduction context"),this._forceRed(h)},n.prototype.redAdd=function(h){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,h)},n.prototype.redIAdd=function(h){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,h)},n.prototype.redSub=function(h){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,h)},n.prototype.redISub=function(h){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,h)},n.prototype.redShl=function(h){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,h)},n.prototype.redMul=function(h){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,h),this.red.mul(this,h)},n.prototype.redIMul=function(h){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,h),this.red.imul(this,h)},n.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(h){return r(this.red&&!h.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,h)};var j={k256:null,p224:null,p192:null,p25519:null};function H(A,h){this.name=A,this.p=new n(h,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}H.prototype._tmp=function(){var h=new n(null);return h.words=new Array(Math.ceil(this.n/13)),h},H.prototype.ireduce=function(h){var b=h,d;do this.split(b,this.tmp),b=this.imulK(b),b=b.iadd(this.tmp),d=b.bitLength();while(d>this.n);var f=d<this.n?-1:b.ucmp(this.p);return f===0?(b.words[0]=0,b.length=1):f>0?b.isub(this.p):b.strip!==void 0?b.strip():b._strip(),b},H.prototype.split=function(h,b){h.iushrn(this.n,0,b)},H.prototype.imulK=function(h){return h.imul(this.k)};function W(){H.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(W,H),W.prototype.split=function(h,b){for(var d=4194303,f=Math.min(h.length,9),l=0;l<f;l++)b.words[l]=h.words[l];if(b.length=f,h.length<=9){h.words[0]=0,h.length=1;return}var v=h.words[9];for(b.words[b.length++]=v&d,l=10;l<h.length;l++){var g=h.words[l]|0;h.words[l-10]=(g&d)<<4|v>>>22,v=g}v>>>=22,h.words[l-10]=v,v===0&&h.length>10?h.length-=10:h.length-=9},W.prototype.imulK=function(h){h.words[h.length]=0,h.words[h.length+1]=0,h.length+=2;for(var b=0,d=0;d<h.length;d++){var f=h.words[d]|0;b+=f*977,h.words[d]=b&67108863,b=f*64+(b/67108864|0)}return h.words[h.length-1]===0&&(h.length--,h.words[h.length-1]===0&&h.length--),h};function Z(){H.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}i(Z,H);function K(){H.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}i(K,H);function J(){H.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}i(J,H),J.prototype.imulK=function(h){for(var b=0,d=0;d<h.length;d++){var f=(h.words[d]|0)*19+b,l=f&67108863;f>>>=26,h.words[d]=l,b=f}return b!==0&&(h.words[h.length++]=b),h},n._prime=function(h){if(j[h])return j[h];var b;if(h==="k256")b=new W;else if(h==="p224")b=new Z;else if(h==="p192")b=new K;else if(h==="p25519")b=new J;else throw new Error("Unknown prime "+h);return j[h]=b,b};function z(A){if(typeof A=="string"){var h=n._prime(A);this.m=h.p,this.prime=h}else r(A.gtn(1),"modulus must be greater than 1"),this.m=A,this.prime=null}z.prototype._verify1=function(h){r(h.negative===0,"red works only with positives"),r(h.red,"red works only with red numbers")},z.prototype._verify2=function(h,b){r((h.negative|b.negative)===0,"red works only with positives"),r(h.red&&h.red===b.red,"red works only with red numbers")},z.prototype.imod=function(h){return this.prime?this.prime.ireduce(h)._forceRed(this):h.umod(this.m)._forceRed(this)},z.prototype.neg=function(h){return h.isZero()?h.clone():this.m.sub(h)._forceRed(this)},z.prototype.add=function(h,b){this._verify2(h,b);var d=h.add(b);return d.cmp(this.m)>=0&&d.isub(this.m),d._forceRed(this)},z.prototype.iadd=function(h,b){this._verify2(h,b);var d=h.iadd(b);return d.cmp(this.m)>=0&&d.isub(this.m),d},z.prototype.sub=function(h,b){this._verify2(h,b);var d=h.sub(b);return d.cmpn(0)<0&&d.iadd(this.m),d._forceRed(this)},z.prototype.isub=function(h,b){this._verify2(h,b);var d=h.isub(b);return d.cmpn(0)<0&&d.iadd(this.m),d},z.prototype.shl=function(h,b){return this._verify1(h),this.imod(h.ushln(b))},z.prototype.imul=function(h,b){return this._verify2(h,b),this.imod(h.imul(b))},z.prototype.mul=function(h,b){return this._verify2(h,b),this.imod(h.mul(b))},z.prototype.isqr=function(h){return this.imul(h,h.clone())},z.prototype.sqr=function(h){return this.mul(h,h)},z.prototype.sqrt=function(h){if(h.isZero())return h.clone();var b=this.m.andln(3);if(r(b%2===1),b===3){var d=this.m.add(new n(1)).iushrn(2);return this.pow(h,d)}for(var f=this.m.subn(1),l=0;!f.isZero()&&f.andln(1)===0;)l++,f.iushrn(1);r(!f.isZero());var v=new n(1).toRed(this),g=v.redNeg(),p=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new n(2*u*u).toRed(this);this.pow(u,p).cmp(g)!==0;)u.redIAdd(g);for(var w=this.pow(u,f),E=this.pow(h,f.addn(1).iushrn(1)),c=this.pow(h,f),S=l;c.cmp(v)!==0;){for(var P=c,C=0;P.cmp(v)!==0;C++)P=P.redSqr();r(C<S);var L=this.pow(w,new n(1).iushln(S-C-1));E=E.redMul(L),w=L.redSqr(),c=c.redMul(w),S=C}return E},z.prototype.invm=function(h){var b=h._invmp(this.m);return b.negative!==0?(b.negative=0,this.imod(b).redNeg()):this.imod(b)},z.prototype.pow=function(h,b){if(b.isZero())return new n(1).toRed(this);if(b.cmpn(1)===0)return h.clone();var d=4,f=new Array(1<<d);f[0]=new n(1).toRed(this),f[1]=h;for(var l=2;l<f.length;l++)f[l]=this.mul(f[l-1],h);var v=f[0],g=0,p=0,u=b.bitLength()%26;for(u===0&&(u=26),l=b.length-1;l>=0;l--){for(var w=b.words[l],E=u-1;E>=0;E--){var c=w>>E&1;if(v!==f[0]&&(v=this.sqr(v)),c===0&&g===0){p=0;continue}g<<=1,g|=c,p++,!(p!==d&&(l!==0||E!==0))&&(v=this.mul(v,f[g]),p=0,g=0)}u=26}return v},z.prototype.convertTo=function(h){var b=h.umod(this.m);return b===h?b.clone():b},z.prototype.convertFrom=function(h){var b=h.clone();return b.red=null,b},n.mont=function(h){return new X(h)};function X(A){z.call(this,A),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new n(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}i(X,z),X.prototype.convertTo=function(h){return this.imod(h.ushln(this.shift))},X.prototype.convertFrom=function(h){var b=this.imod(h.mul(this.rinv));return b.red=null,b},X.prototype.imul=function(h,b){if(h.isZero()||b.isZero())return h.words[0]=0,h.length=1,h;var d=h.imul(b),f=d.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),l=d.isub(f).iushrn(this.shift),v=l;return l.cmp(this.m)>=0?v=l.isub(this.m):l.cmpn(0)<0&&(v=l.iadd(this.m)),v._forceRed(this)},X.prototype.mul=function(h,b){if(h.isZero()||b.isZero())return new n(0)._forceRed(this);var d=h.mul(b),f=d.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),l=d.isub(f).iushrn(this.shift),v=l;return l.cmp(this.m)>=0?v=l.isub(this.m):l.cmpn(0)<0&&(v=l.iadd(this.m)),v._forceRed(this)},X.prototype.invm=function(h){var b=this.imod(h._invmp(this.m).mul(this.r2));return b._forceRed(this)}})(typeof hc>"u"||hc,b_)});var __=k((fL,pc)=>{m();var cc;pc.exports=function(t){return cc||(cc=new ti(null)),cc.generate(t)};function ti(e){this.rand=e}pc.exports.Rand=ti;ti.prototype.generate=function(t){return this._rand(t)};ti.prototype._rand=function(t){if(this.rand.getBytes)return this.rand.getBytes(t);for(var r=new Uint8Array(t),i=0;i<r.length;i++)r[i]=this.rand.getByte();return r};if(typeof self=="object")self.crypto&&self.crypto.getRandomValues?ti.prototype._rand=function(t){var r=new Uint8Array(t);return self.crypto.getRandomValues(r),r}:self.msCrypto&&self.msCrypto.getRandomValues?ti.prototype._rand=function(t){var r=new Uint8Array(t);return self.msCrypto.getRandomValues(r),r}:typeof window=="object"&&(ti.prototype._rand=function(){throw new Error("Not implemented yet")});else try{if(dc=$s(),typeof dc.randomBytes!="function")throw new Error("Not supported");ti.prototype._rand=function(t){return dc.randomBytes(t)}}catch{}var dc});var vc=k((uL,m_)=>{m();var tn=ei(),vR=__();function rn(e){this.rand=e||new vR.Rand}m_.exports=rn;rn.create=function(t){return new rn(t)};rn.prototype._randbelow=function(t){var r=t.bitLength(),i=Math.ceil(r/8);do var n=new tn(this.rand.generate(i));while(n.cmp(t)>=0);return n};rn.prototype._randrange=function(t,r){var i=r.sub(t);return t.add(this._randbelow(i))};rn.prototype.test=function(t,r,i){var n=t.bitLength(),a=tn.mont(t),o=new tn(1).toRed(a);r||(r=Math.max(1,n/48|0));for(var s=t.subn(1),y=0;!s.testn(y);y++);for(var _=t.shrn(y),x=s.toRed(a),B=!0;r>0;r--){var R=this._randrange(new tn(2),s);i&&i(R);var T=R.toRed(a).redPow(_);if(!(T.cmp(o)===0||T.cmp(x)===0)){for(var O=1;O<y;O++){if(T=T.redSqr(),T.cmp(o)===0)return!1;if(T.cmp(x)===0)break}if(O===y)return!1}}return B};rn.prototype.getDivisor=function(t,r){var i=t.bitLength(),n=tn.mont(t),a=new tn(1).toRed(n);r||(r=Math.max(1,i/48|0));for(var o=t.subn(1),s=0;!o.testn(s);s++);for(var y=t.shrn(s),_=o.toRed(n);r>0;r--){var x=this._randrange(new tn(2),o),B=t.gcd(x);if(B.cmpn(1)!==0)return B;var R=x.toRed(n).redPow(y);if(!(R.cmp(a)===0||R.cmp(_)===0)){for(var T=1;T<s;T++){if(R=R.redSqr(),R.cmp(a)===0)return R.fromRed().subn(1).gcd(t);if(R.cmp(_)===0)break}if(T===s)return R=R.redSqr(),R.fromRed().subn(1).gcd(t)}}return!1}});var wc=k((vL,E_)=>{m();var yR=qi();E_.exports=mc;mc.simpleSieve=bc;mc.fermatTest=_c;var ut=ei(),gR=new ut(24),bR=vc(),w_=new bR,_R=new ut(1),gc=new ut(2),mR=new ut(5),hL=new ut(16),cL=new ut(8),wR=new ut(10),xR=new ut(3),dL=new ut(7),ER=new ut(11),x_=new ut(4),pL=new ut(12),yc=null;function SR(){if(yc!==null)return yc;var e=1048576,t=[];t[0]=2;for(var r=1,i=3;i<e;i+=2){for(var n=Math.ceil(Math.sqrt(i)),a=0;a<r&&t[a]<=n&&i%t[a]!==0;a++);r!==a&&t[a]<=n||(t[r++]=i)}return yc=t,t}function bc(e){for(var t=SR(),r=0;r<t.length;r++)if(e.modn(t[r])===0)return e.cmpn(t[r])===0;return!0}function _c(e){var t=ut.mont(e);return gc.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)===0}function mc(e,t){if(e<16)return t===2||t===5?new ut([140,123]):new ut([140,39]);t=new ut(t);for(var r,i;;){for(r=new ut(yR(Math.ceil(e/8)));r.bitLength()>e;)r.ishrn(1);if(r.isEven()&&r.iadd(_R),r.testn(1)||r.iadd(gc),t.cmp(gc)){if(!t.cmp(mR))for(;r.mod(wR).cmp(xR);)r.iadd(x_)}else for(;r.mod(gR).cmp(ER);)r.iadd(x_);if(i=r.shrn(1),bc(i)&&bc(r)&&_c(i)&&_c(r)&&w_.test(i)&&w_.test(r))return r}}});var S_=k((gL,MR)=>{MR.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}});var R_=k((bL,B_)=>{m();var Lt=ei(),AR=vc(),M_=new AR,BR=new Lt(24),RR=new Lt(11),kR=new Lt(10),TR=new Lt(3),IR=new Lt(7),A_=wc(),OR=qi();B_.exports=Ur;function qR(e,t){return t=t||"utf8",I.Buffer.isBuffer(e)||(e=new I.Buffer(e,t)),this._pub=new Lt(e),this}function DR(e,t){return t=t||"utf8",I.Buffer.isBuffer(e)||(e=new I.Buffer(e,t)),this._priv=new Lt(e),this}var Ys={};function NR(e,t){var r=t.toString("hex"),i=[r,e.toString(16)].join("_");if(i in Ys)return Ys[i];var n=0;if(e.isEven()||!A_.simpleSieve||!A_.fermatTest(e)||!M_.test(e))return n+=1,r==="02"||r==="05"?n+=8:n+=4,Ys[i]=n,n;M_.test(e.shrn(1))||(n+=2);var a;switch(r){case"02":e.mod(BR).cmp(RR)&&(n+=8);break;case"05":a=e.mod(kR),a.cmp(TR)&&a.cmp(IR)&&(n+=8);break;default:n+=4}return Ys[i]=n,n}function Ur(e,t,r){this.setGenerator(t),this.__prime=new Lt(e),this._prime=Lt.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=qR,this.setPrivateKey=DR):this._primeCode=8}Object.defineProperty(Ur.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=NR(this.__prime,this.__gen)),this._primeCode}});Ur.prototype.generateKeys=function(){return this._priv||(this._priv=new Lt(OR(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()};Ur.prototype.computeSecret=function(e){e=new Lt(e),e=e.toRed(this._prime);var t=e.redPow(this._priv).fromRed(),r=new I.Buffer(t.toArray()),i=this.getPrime();if(r.length<i.length){var n=new I.Buffer(i.length-r.length);n.fill(0),r=I.Buffer.concat([n,r])}return r};Ur.prototype.getPublicKey=function(t){return Js(this._pub,t)};Ur.prototype.getPrivateKey=function(t){return Js(this._priv,t)};Ur.prototype.getPrime=function(e){return Js(this.__prime,e)};Ur.prototype.getGenerator=function(e){return Js(this._gen,e)};Ur.prototype.setGenerator=function(e,t){return t=t||"utf8",I.Buffer.isBuffer(e)||(e=new I.Buffer(e,t)),this.__gen=e,this._gen=new Lt(e),this};function Js(e,t){var r=new I.Buffer(e.toArray());return t?r.toString(t):r}});var I_=k(ia=>{m();var PR=wc(),k_=S_(),xc=R_();function LR(e){var t=new I.Buffer(k_[e].prime,"hex"),r=new I.Buffer(k_[e].gen,"hex");return new xc(t,r)}var CR={binary:!0,hex:!0,base64:!0};function T_(e,t,r,i){return I.Buffer.isBuffer(t)||CR[t]===void 0?T_(e,"binary",t,r):(t=t||"binary",i=i||"binary",r=r||new I.Buffer([2]),I.Buffer.isBuffer(r)||(r=new I.Buffer(r,i)),typeof e=="number"?new xc(PR(e,r),r,!0):(I.Buffer.isBuffer(e)||(e=new I.Buffer(e,t)),new xc(e,r,!0)))}ia.DiffieHellmanGroup=ia.createDiffieHellmanGroup=ia.getDiffieHellman=LR;ia.createDiffieHellman=ia.DiffieHellman=T_});var O_=k((exports,module)=>{m();var indexOf=function(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0;r<e.length;r++)if(e[r]===t)return r;return-1},Object_keys=function(e){if(Object.keys)return Object.keys(e);var t=[];for(var r in e)t.push(r);return t},forEach=function(e,t){if(e.forEach)return e.forEach(t);for(var r=0;r<e.length;r++)t(e[r],r,e)},defineProp=(function(){try{return Object.defineProperty({},"_",{}),function(e,t,r){Object.defineProperty(e,t,{writable:!0,enumerable:!1,configurable:!0,value:r})}}catch{return function(t,r,i){t[r]=i}}})(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(t){if(!(this instanceof Script))return new Script(t);this.code=t};Script.prototype.runInContext=function(e){if(!(e instanceof Context))throw new TypeError("needs a 'context' argument.");var t=document.createElement("iframe");t.style||(t.style={}),t.style.display="none",document.body.appendChild(t);var r=t.contentWindow,i=r.eval,n=r.execScript;!i&&n&&(n.call(r,"null"),i=r.eval),forEach(Object_keys(e),function(s){r[s]=e[s]}),forEach(globals,function(s){e[s]&&(r[s]=e[s])});var a=Object_keys(r),o=i.call(r,this.code);return forEach(Object_keys(r),function(s){(s in e||indexOf(a,s)===-1)&&(e[s]=r[s])}),forEach(globals,function(s){s in e||defineProp(e,s,r[s])}),document.body.removeChild(t),o};Script.prototype.runInThisContext=function(){return eval(this.code)};Script.prototype.runInNewContext=function(e){var t=Script.createContext(e),r=this.runInContext(t);return e&&forEach(Object_keys(t),function(i){e[i]=t[i]}),r};forEach(Object_keys(Script.prototype),function(e){exports[e]=Script[e]=function(t){var r=Script(t);return r[e].apply(r,[].slice.call(arguments,1))}});exports.isContext=function(e){return e instanceof Context};exports.createScript=function(e){return exports.Script(e)};exports.createContext=Script.createContext=function(e){var t=new Context;return typeof e=="object"&&forEach(Object_keys(e),function(r){t[r]=e[r]}),t}});var N_=k(D_=>{m();var q_=aa(),UR=re(),FR=D_;FR.define=function(t,r){return new na(t,r)};function na(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}na.prototype._createNamed=function(t){var r;try{r=O_().runInThisContext("(function "+this.name+`(entity) {
11
+ `)+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}Fe.types=Yv();function ty(e){return Array.isArray(e)}Fe.isArray=ty;function Fl(e){return typeof e=="boolean"}Fe.isBoolean=Fl;function Gf(e){return e===null}Fe.isNull=Gf;function i8(e){return e==null}Fe.isNullOrUndefined=i8;function ry(e){return typeof e=="number"}Fe.isNumber=ry;function Vf(e){return typeof e=="string"}Fe.isString=Vf;function n8(e){return typeof e=="symbol"}Fe.isSymbol=n8;function Ci(e){return e===void 0}Fe.isUndefined=Ci;function Ha(e){return Un(e)&&jl(e)==="[object RegExp]"}Fe.isRegExp=Ha;Fe.types.isRegExp=Ha;function Un(e){return typeof e=="object"&&e!==null}Fe.isObject=Un;function Kf(e){return Un(e)&&jl(e)==="[object Date]"}Fe.isDate=Kf;Fe.types.isDate=Kf;function Wa(e){return Un(e)&&(jl(e)==="[object Error]"||e instanceof Error)}Fe.isError=Wa;Fe.types.isNativeError=Wa;function Hf(e){return typeof e=="function"}Fe.isFunction=Hf;function a8(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}Fe.isPrimitive=a8;Fe.isBuffer=Xv();function jl(e){return Object.prototype.toString.call(e)}function Cl(e){return e<10?"0"+e.toString(10):e.toString(10)}var o8=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function f8(){var e=new Date,t=[Cl(e.getHours()),Cl(e.getMinutes()),Cl(e.getSeconds())].join(":");return[e.getDate(),o8[e.getMonth()],t].join(" ")}Fe.log=function(){console.log("%s - %s",f8(),Fe.format.apply(Fe,arguments))};Fe.inherits=re();Fe._extend=function(e,t){if(!t||!Un(t))return e;for(var r=Object.keys(t),i=r.length;i--;)e[r[i]]=t[r[i]];return e};function iy(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Li=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;Fe.promisify=function(t){if(typeof t!="function")throw new TypeError('The "original" argument must be of type Function');if(Li&&t[Li]){var r=t[Li];if(typeof r!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,Li,{value:r,enumerable:!1,writable:!1,configurable:!0}),r}function r(){for(var i,n,a=new Promise(function(y,b){i=y,n=b}),o=[],s=0;s<arguments.length;s++)o.push(arguments[s]);o.push(function(y,b){y?n(y):i(b)});try{t.apply(this,o)}catch(y){n(y)}return a}return Object.setPrototypeOf(r,Object.getPrototypeOf(t)),Li&&Object.defineProperty(r,Li,{value:r,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(r,Qv(t))};Fe.promisify.custom=Li;function s8(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}function u8(e){if(typeof e!="function")throw new TypeError('The "original" argument must be of type Function');function t(){for(var r=[],i=0;i<arguments.length;i++)r.push(arguments[i]);var n=r.pop();if(typeof n!="function")throw new TypeError("The last argument must be of type Function");var a=this,o=function(){return n.apply(a,arguments)};e.apply(this,r).then(function(s){M.default.nextTick(o.bind(null,null,s))},function(s){M.default.nextTick(s8.bind(null,s,o))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,Qv(e)),t}Fe.callbackify=u8});var uy=k((Y9,sy)=>{"use strict";m();function ny(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function ay(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ny(Object(r),!0).forEach(function(i){l8(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ny(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function l8(e,t,r){return t=fy(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h8(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oy(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,fy(i.key),i)}}function c8(e,t,r){return t&&oy(e.prototype,t),r&&oy(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function fy(e){var t=d8(e,"string");return typeof t=="symbol"?t:String(t)}function d8(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var p8=st(),$f=p8.Buffer,v8=Gt(),zl=v8.inspect,y8=zl&&zl.custom||"inspect";function g8(e,t,r){$f.prototype.copy.call(e,t,r)}sy.exports=(function(){function e(){h8(this,e),this.head=null,this.tail=null,this.length=0}return c8(e,[{key:"push",value:function(r){var i={data:r,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length}},{key:"unshift",value:function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var i=this.head,n=""+i.data;i=i.next;)n+=r+i.data;return n}},{key:"concat",value:function(r){if(this.length===0)return $f.alloc(0);for(var i=$f.allocUnsafe(r>>>0),n=this.head,a=0;n;)g8(n.data,i,a),a+=n.data.length,n=n.next;return i}},{key:"consume",value:function(r,i){var n;return r<this.head.data.length?(n=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?n=this.shift():n=i?this._getString(r):this._getBuffer(r),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var i=this.head,n=1,a=i.data;for(r-=a.length;i=i.next;){var o=i.data,s=r>o.length?o.length:r;if(s===o.length?a+=o:a+=o.slice(0,r),r-=s,r===0){s===o.length?(++n,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(s));break}++n}return this.length-=n,a}},{key:"_getBuffer",value:function(r){var i=$f.allocUnsafe(r),n=this.head,a=1;for(n.data.copy(i),r-=n.data.length;n=n.next;){var o=n.data,s=r>o.length?o.length:r;if(o.copy(i,i.length-r,0,s),r-=s,r===0){s===o.length?(++a,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(s));break}++a}return this.length-=a,i}},{key:y8,value:function(r,i){return zl(this,ay(ay({},i),{},{depth:0,customInspect:!1}))}}]),e})()});var Hl=k((X9,hy)=>{"use strict";m();function b8(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return i||n?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,M.default.nextTick(Zl,this,e)):M.default.nextTick(Zl,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(a){!t&&a?r._writableState?r._writableState.errorEmitted?M.default.nextTick(Yf,r):(r._writableState.errorEmitted=!0,M.default.nextTick(ly,r,a)):M.default.nextTick(ly,r,a):t?(M.default.nextTick(Yf,r),t(a)):M.default.nextTick(Yf,r)}),this)}function ly(e,t){Zl(e,t),Yf(e)}function Yf(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function _8(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Zl(e,t){e.emit("error",t)}function m8(e,t){var r=e._readableState,i=e._writableState;r&&r.autoDestroy||i&&i.autoDestroy?e.destroy(t):e.emit("error",t)}hy.exports={destroy:b8,undestroy:_8,errorOrDestroy:m8}});var Ui=k((eD,py)=>{"use strict";m();function w8(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var dy={};function Ot(e,t,r){r||(r=Error);function i(a,o,s){return typeof t=="string"?t:t(a,o,s)}var n=(function(a){w8(o,a);function o(s,y,b){return a.call(this,i(s,y,b))||this}return o})(r);n.prototype.name=r.name,n.prototype.code=e,dy[e]=n}function cy(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(i){return String(i)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function x8(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function E8(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function S8(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}Ot("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);Ot("ERR_INVALID_ARG_TYPE",function(e,t,r){var i;typeof t=="string"&&x8(t,"not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";var n;if(E8(e," argument"))n="The ".concat(e," ").concat(i," ").concat(cy(t,"type"));else{var a=S8(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(a," ").concat(i," ").concat(cy(t,"type"))}return n+=". Received type ".concat(typeof r),n},TypeError);Ot("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Ot("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});Ot("ERR_STREAM_PREMATURE_CLOSE","Premature close");Ot("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});Ot("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Ot("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Ot("ERR_STREAM_WRITE_AFTER_END","write after end");Ot("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Ot("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);Ot("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");py.exports.codes=dy});var Wl=k((rD,vy)=>{"use strict";m();var M8=Ui().codes.ERR_INVALID_OPT_VALUE;function A8(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function B8(e,t,r,i){var n=A8(t,i,r);if(n!=null){if(!(isFinite(n)&&Math.floor(n)===n)||n<0){var a=i?r:"highWaterMark";throw new M8(a,n)}return Math.floor(n)}return e.objectMode?16:16*1024}vy.exports={getHighWaterMark:B8}});var Gl=k((nD,yy)=>{m();yy.exports=R8;function R8(e,t){if(Kl("noDeprecation"))return e;var r=!1;function i(){if(!r){if(Kl("throwDeprecation"))throw new Error(t);Kl("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}return i}function Kl(e){try{if(!globalThis.localStorage)return!1}catch{return!1}var t=globalThis.localStorage[e];return t==null?!1:String(t).toLowerCase()==="true"}});var Yl=k((oD,xy)=>{"use strict";m();xy.exports=Xe;function by(e){var t=this;this.next=null,this.entry=null,this.finish=function(){tM(t,e)}}var Fn;Xe.WritableState=Ga;var k8={deprecate:Gl()},_y=ul(),Xf=st().Buffer,T8=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function I8(e){return Xf.from(e)}function O8(e){return Xf.isBuffer(e)||e instanceof T8}var $l=Hl(),q8=Wl(),D8=q8.getHighWaterMark,Kr=Ui().codes,N8=Kr.ERR_INVALID_ARG_TYPE,P8=Kr.ERR_METHOD_NOT_IMPLEMENTED,L8=Kr.ERR_MULTIPLE_CALLBACK,C8=Kr.ERR_STREAM_CANNOT_PIPE,U8=Kr.ERR_STREAM_DESTROYED,F8=Kr.ERR_STREAM_NULL_VALUES,j8=Kr.ERR_STREAM_WRITE_AFTER_END,z8=Kr.ERR_UNKNOWN_ENCODING,jn=$l.errorOrDestroy;re()(Xe,_y);function Z8(){}function Ga(e,t,r){Fn=Fn||Fi(),e=e||{},typeof r!="boolean"&&(r=t instanceof Fn),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=D8(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=e.decodeStrings===!1;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(n){Y8(t,n)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new by(this)}Ga.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(Ga.prototype,"buffer",{get:k8.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Jf;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Jf=Function.prototype[Symbol.hasInstance],Object.defineProperty(Xe,Symbol.hasInstance,{value:function(t){return Jf.call(this,t)?!0:this!==Xe?!1:t&&t._writableState instanceof Ga}})):Jf=function(t){return t instanceof this};function Xe(e){Fn=Fn||Fi();var t=this instanceof Fn;if(!t&&!Jf.call(Xe,this))return new Xe(e);this._writableState=new Ga(e,this,t),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),_y.call(this)}Xe.prototype.pipe=function(){jn(this,new C8)};function H8(e,t){var r=new j8;jn(e,r),M.default.nextTick(t,r)}function W8(e,t,r,i){var n;return r===null?n=new F8:typeof r!="string"&&!t.objectMode&&(n=new N8("chunk",["string","Buffer"],r)),n?(jn(e,n),M.default.nextTick(i,n),!1):!0}Xe.prototype.write=function(e,t,r){var i=this._writableState,n=!1,a=!i.objectMode&&O8(e);return a&&!Xf.isBuffer(e)&&(e=I8(e)),typeof t=="function"&&(r=t,t=null),a?t="buffer":t||(t=i.defaultEncoding),typeof r!="function"&&(r=Z8),i.ending?H8(this,r):(a||W8(this,i,e,r))&&(i.pendingcb++,n=G8(this,i,a,e,t,r)),n};Xe.prototype.cork=function(){this._writableState.corked++};Xe.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&my(this,e))};Xe.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new z8(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(Xe.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function K8(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=Xf.from(t,r)),t}Object.defineProperty(Xe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function G8(e,t,r,i,n,a){if(!r){var o=K8(t,i,n);i!==o&&(r=!0,n="buffer",i=o)}var s=t.objectMode?1:i.length;t.length+=s;var y=t.length<t.highWaterMark;if(y||(t.needDrain=!0),t.writing||t.corked){var b=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:a,next:null},b?b.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else Vl(e,t,!1,s,i,n,a);return y}function Vl(e,t,r,i,n,a,o){t.writelen=i,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new U8("write")):r?e._writev(n,t.onwrite):e._write(n,a,t.onwrite),t.sync=!1}function V8(e,t,r,i,n){--t.pendingcb,r?(M.default.nextTick(n,i),M.default.nextTick(Ka,e,t),e._writableState.errorEmitted=!0,jn(e,i)):(n(i),e._writableState.errorEmitted=!0,jn(e,i),Ka(e,t))}function $8(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function Y8(e,t){var r=e._writableState,i=r.sync,n=r.writecb;if(typeof n!="function")throw new L8;if($8(r),t)V8(e,r,i,t,n);else{var a=wy(r)||e.destroyed;!a&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&my(e,r),i?M.default.nextTick(gy,e,r,a,n):gy(e,r,a,n)}}function gy(e,t,r,i){r||J8(e,t),t.pendingcb--,i(),Ka(e,t)}function J8(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function my(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,n=new Array(i),a=t.corkedRequestsFree;a.entry=r;for(var o=0,s=!0;r;)n[o]=r,r.isBuf||(s=!1),r=r.next,o+=1;n.allBuffers=s,Vl(e,t,!0,t.length,n,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new by(t),t.bufferedRequestCount=0}else{for(;r;){var y=r.chunk,b=r.encoding,x=r.callback,B=t.objectMode?1:y.length;if(Vl(e,t,!1,B,y,b,x),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}Xe.prototype._write=function(e,t,r){r(new P8("_write()"))};Xe.prototype._writev=null;Xe.prototype.end=function(e,t,r){var i=this._writableState;return typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),e!=null&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||eM(this,i,r),this};Object.defineProperty(Xe.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function wy(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function X8(e,t){e._final(function(r){t.pendingcb--,r&&jn(e,r),t.prefinished=!0,e.emit("prefinish"),Ka(e,t)})}function Q8(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"&&!t.destroyed?(t.pendingcb++,t.finalCalled=!0,M.default.nextTick(X8,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function Ka(e,t){var r=wy(t);if(r&&(Q8(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return r}function eM(e,t,r){t.ending=!0,Ka(e,t),r&&(t.finished?M.default.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function tM(e,t,r){var i=e.entry;for(e.entry=null;i;){var n=i.callback;t.pendingcb--,n(r),i=i.next}t.corkedRequestsFree.next=e}Object.defineProperty(Xe.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}});Xe.prototype.destroy=$l.destroy;Xe.prototype._undestroy=$l.undestroy;Xe.prototype._destroy=function(e,t){t(e)}});var Fi=k((sD,Sy)=>{"use strict";m();var rM=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};Sy.exports=dr;var Ey=Ql(),Xl=Yl();re()(dr,Ey);for(Jl=rM(Xl.prototype),Qf=0;Qf<Jl.length;Qf++)es=Jl[Qf],dr.prototype[es]||(dr.prototype[es]=Xl.prototype[es]);var Jl,es,Qf;function dr(e){if(!(this instanceof dr))return new dr(e);Ey.call(this,e),Xl.call(this,e),this.allowHalfOpen=!0,e&&(e.readable===!1&&(this.readable=!1),e.writable===!1&&(this.writable=!1),e.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",iM)))}Object.defineProperty(dr.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(dr.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(dr.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function iM(){this._writableState.ended||M.default.nextTick(nM,this)}function nM(e){e.end()}Object.defineProperty(dr.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(t){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=t,this._writableState.destroyed=t)}})});var By=k((eh,Ay)=>{m();var ts=st(),Rr=ts.Buffer;function My(e,t){for(var r in e)t[r]=e[r]}Rr.from&&Rr.alloc&&Rr.allocUnsafe&&Rr.allocUnsafeSlow?Ay.exports=ts:(My(ts,eh),eh.Buffer=zn);function zn(e,t,r){return Rr(e,t,r)}My(Rr,zn);zn.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Rr(e,t,r)};zn.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var i=Rr(e);return t!==void 0?typeof r=="string"?i.fill(t,r):i.fill(t):i.fill(0),i};zn.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Rr(e)};zn.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return ts.SlowBuffer(e)}});var Zn=k(ky=>{"use strict";m();var rh=By().Buffer,Ry=rh.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function aM(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function oM(e){var t=aM(e);if(typeof t!="string"&&(rh.isEncoding===Ry||!Ry(e)))throw new Error("Unknown encoding: "+e);return t||e}ky.StringDecoder=Va;function Va(e){this.encoding=oM(e);var t;switch(this.encoding){case"utf16le":this.text=cM,this.end=dM,t=4;break;case"utf8":this.fillLast=uM,t=4;break;case"base64":this.text=pM,this.end=vM,t=3;break;default:this.write=yM,this.end=gM;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=rh.allocUnsafe(t)}Va.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""};Va.prototype.end=hM;Va.prototype.text=lM;Va.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function th(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function fM(e,t,r){var i=t.length-1;if(i<r)return 0;var n=th(t[i]);return n>=0?(n>0&&(e.lastNeed=n-1),n):--i<r||n===-2?0:(n=th(t[i]),n>=0?(n>0&&(e.lastNeed=n-2),n):--i<r||n===-2?0:(n=th(t[i]),n>=0?(n>0&&(n===2?n=0:e.lastNeed=n-3),n):0))}function sM(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function uM(e){var t=this.lastTotal-this.lastNeed,r=sM(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function lM(e,t){var r=fM(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)}function hM(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function cM(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function dM(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function pM(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function vM(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function yM(e){return e.toString(this.encoding)}function gM(e){return e&&e.length?this.write(e):""}});var rs=k((dD,Oy)=>{"use strict";m();var Ty=Ui().codes.ERR_STREAM_PREMATURE_CLOSE;function bM(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,i=new Array(r),n=0;n<r;n++)i[n]=arguments[n];e.apply(this,i)}}}function _M(){}function mM(e){return e.setHeader&&typeof e.abort=="function"}function Iy(e,t,r){if(typeof t=="function")return Iy(e,null,t);t||(t={}),r=bM(r||_M);var i=t.readable||t.readable!==!1&&e.readable,n=t.writable||t.writable!==!1&&e.writable,a=function(){e.writable||s()},o=e._writableState&&e._writableState.finished,s=function(){n=!1,o=!0,i||r.call(e)},y=e._readableState&&e._readableState.endEmitted,b=function(){i=!1,y=!0,n||r.call(e)},x=function(O){r.call(e,O)},B=function(){var O;if(i&&!y)return(!e._readableState||!e._readableState.ended)&&(O=new Ty),r.call(e,O);if(n&&!o)return(!e._writableState||!e._writableState.ended)&&(O=new Ty),r.call(e,O)},R=function(){e.req.on("finish",s)};return mM(e)?(e.on("complete",s),e.on("abort",B),e.req?R():e.on("request",R)):n&&!e._writableState&&(e.on("end",a),e.on("close",a)),e.on("end",b),e.on("finish",s),t.error!==!1&&e.on("error",x),e.on("close",B),function(){e.removeListener("complete",s),e.removeListener("abort",B),e.removeListener("request",R),e.req&&e.req.removeListener("finish",s),e.removeListener("end",a),e.removeListener("close",a),e.removeListener("finish",s),e.removeListener("end",b),e.removeListener("error",x),e.removeListener("close",B)}}Oy.exports=Iy});var Dy=k((vD,qy)=>{"use strict";m();var is;function Gr(e,t,r){return t=wM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wM(e){var t=xM(e,"string");return typeof t=="symbol"?t:String(t)}function xM(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var EM=rs(),Vr=Symbol("lastResolve"),ji=Symbol("lastReject"),$a=Symbol("error"),ns=Symbol("ended"),zi=Symbol("lastPromise"),ih=Symbol("handlePromise"),Zi=Symbol("stream");function $r(e,t){return{value:e,done:t}}function SM(e){var t=e[Vr];if(t!==null){var r=e[Zi].read();r!==null&&(e[zi]=null,e[Vr]=null,e[ji]=null,t($r(r,!1)))}}function MM(e){M.default.nextTick(SM,e)}function AM(e,t){return function(r,i){e.then(function(){if(t[ns]){r($r(void 0,!0));return}t[ih](r,i)},i)}}var BM=Object.getPrototypeOf(function(){}),RM=Object.setPrototypeOf((is={get stream(){return this[Zi]},next:function(){var t=this,r=this[$a];if(r!==null)return Promise.reject(r);if(this[ns])return Promise.resolve($r(void 0,!0));if(this[Zi].destroyed)return new Promise(function(o,s){M.default.nextTick(function(){t[$a]?s(t[$a]):o($r(void 0,!0))})});var i=this[zi],n;if(i)n=new Promise(AM(i,this));else{var a=this[Zi].read();if(a!==null)return Promise.resolve($r(a,!1));n=new Promise(this[ih])}return this[zi]=n,n}},Gr(is,Symbol.asyncIterator,function(){return this}),Gr(is,"return",function(){var t=this;return new Promise(function(r,i){t[Zi].destroy(null,function(n){if(n){i(n);return}r($r(void 0,!0))})})}),is),BM),kM=function(t){var r,i=Object.create(RM,(r={},Gr(r,Zi,{value:t,writable:!0}),Gr(r,Vr,{value:null,writable:!0}),Gr(r,ji,{value:null,writable:!0}),Gr(r,$a,{value:null,writable:!0}),Gr(r,ns,{value:t._readableState.endEmitted,writable:!0}),Gr(r,ih,{value:function(a,o){var s=i[Zi].read();s?(i[zi]=null,i[Vr]=null,i[ji]=null,a($r(s,!1))):(i[Vr]=a,i[ji]=o)},writable:!0}),r));return i[zi]=null,EM(t,function(n){if(n&&n.code!=="ERR_STREAM_PREMATURE_CLOSE"){var a=i[ji];a!==null&&(i[zi]=null,i[Vr]=null,i[ji]=null,a(n)),i[$a]=n;return}var o=i[Vr];o!==null&&(i[zi]=null,i[Vr]=null,i[ji]=null,o($r(void 0,!0))),i[ns]=!0}),t.on("readable",MM.bind(null,i)),i};qy.exports=kM});var Py=k((gD,Ny)=>{m();Ny.exports=function(){throw new Error("Readable.from is not available in the browser")}});var Ql=k((mD,Ky)=>{"use strict";m();Ky.exports=ze;var Hn;ze.ReadableState=Fy;var _D=Tn().EventEmitter,Uy=function(t,r){return t.listeners(r).length},Ja=ul(),as=st().Buffer,TM=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function IM(e){return as.from(e)}function OM(e){return as.isBuffer(e)||e instanceof TM}var nh=Gt(),Le;nh&&nh.debuglog?Le=nh.debuglog("stream"):Le=function(){};var qM=uy(),hh=Hl(),DM=Wl(),NM=DM.getHighWaterMark,os=Ui().codes,PM=os.ERR_INVALID_ARG_TYPE,LM=os.ERR_STREAM_PUSH_AFTER_EOF,CM=os.ERR_METHOD_NOT_IMPLEMENTED,UM=os.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Wn,ah,oh;re()(ze,Ja);var Ya=hh.errorOrDestroy,fh=["error","close","destroy","pause","resume"];function FM(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function Fy(e,t,r){Hn=Hn||Fi(),e=e||{},typeof r!="boolean"&&(r=t instanceof Hn),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=NM(this,e,"readableHighWaterMark",r),this.buffer=new qM,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(Wn||(Wn=Zn().StringDecoder),this.decoder=new Wn(e.encoding),this.encoding=e.encoding)}function ze(e){if(Hn=Hn||Fi(),!(this instanceof ze))return new ze(e);var t=this instanceof Hn;this._readableState=new Fy(e,this,t),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),Ja.call(this)}Object.defineProperty(ze.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}});ze.prototype.destroy=hh.destroy;ze.prototype._undestroy=hh.undestroy;ze.prototype._destroy=function(e,t){t(e)};ze.prototype.push=function(e,t){var r=this._readableState,i;return r.objectMode?i=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=as.from(e,t),t=""),i=!0),jy(this,e,t,!1,i)};ze.prototype.unshift=function(e){return jy(this,e,null,!0,!1)};function jy(e,t,r,i,n){Le("readableAddChunk",t);var a=e._readableState;if(t===null)a.reading=!1,ZM(e,a);else{var o;if(n||(o=jM(a,t)),o)Ya(e,o);else if(a.objectMode||t&&t.length>0)if(typeof t!="string"&&!a.objectMode&&Object.getPrototypeOf(t)!==as.prototype&&(t=IM(t)),i)a.endEmitted?Ya(e,new UM):sh(e,a,t,!0);else if(a.ended)Ya(e,new LM);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||t.length!==0?sh(e,a,t,!1):lh(e,a)):sh(e,a,t,!1)}else i||(a.reading=!1,lh(e,a))}return!a.ended&&(a.length<a.highWaterMark||a.length===0)}function sh(e,t,r,i){t.flowing&&t.length===0&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,i?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&fs(e)),lh(e,t)}function jM(e,t){var r;return!OM(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new PM("chunk",["string","Buffer","Uint8Array"],t)),r}ze.prototype.isPaused=function(){return this._readableState.flowing===!1};ze.prototype.setEncoding=function(e){Wn||(Wn=Zn().StringDecoder);var t=new Wn(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";r!==null;)i+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),i!==""&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var Ly=1073741824;function zM(e){return e>=Ly?e=Ly:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function Cy(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=zM(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}ze.prototype.read=function(e){Le("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return Le("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?uh(this):fs(this),null;if(e=Cy(e,t),e===0&&t.ended)return t.length===0&&uh(this),null;var i=t.needReadable;Le("need readable",i),(t.length===0||t.length-e<t.highWaterMark)&&(i=!0,Le("length less than watermark",i)),t.ended||t.reading?(i=!1,Le("reading or ended",i)):i&&(Le("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=Cy(r,t)));var n;return e>0?n=Hy(e,t):n=null,n===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&uh(this)),n!==null&&this.emit("data",n),n};function ZM(e,t){if(Le("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?fs(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,zy(e)))}}function fs(e){var t=e._readableState;Le("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(Le("emitReadable",t.flowing),t.emittedReadable=!0,M.default.nextTick(zy,e))}function zy(e){var t=e._readableState;Le("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,ch(e)}function lh(e,t){t.readingMore||(t.readingMore=!0,M.default.nextTick(HM,e,t))}function HM(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0);){var r=t.length;if(Le("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}ze.prototype._read=function(e){Ya(this,new CM("_read()"))};ze.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e);break}i.pipesCount+=1,Le("pipe count=%d opts=%j",i.pipesCount,t);var n=(!t||t.end!==!1)&&e!==M.default.stdout&&e!==M.default.stderr,a=n?s:D;i.endEmitted?M.default.nextTick(a):r.once("end",a),e.on("unpipe",o);function o(U,N){Le("onunpipe"),U===r&&N&&N.hasUnpiped===!1&&(N.hasUnpiped=!0,x())}function s(){Le("onend"),e.end()}var y=WM(r);e.on("drain",y);var b=!1;function x(){Le("cleanup"),e.removeListener("close",T),e.removeListener("finish",O),e.removeListener("drain",y),e.removeListener("error",R),e.removeListener("unpipe",o),r.removeListener("end",s),r.removeListener("end",D),r.removeListener("data",B),b=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&y()}r.on("data",B);function B(U){Le("ondata");var N=e.write(U);Le("dest.write",N),N===!1&&((i.pipesCount===1&&i.pipes===e||i.pipesCount>1&&Wy(i.pipes,e)!==-1)&&!b&&(Le("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function R(U){Le("onerror",U),D(),e.removeListener("error",R),Uy(e,"error")===0&&Ya(e,U)}FM(e,"error",R);function T(){e.removeListener("finish",O),D()}e.once("close",T);function O(){Le("onfinish"),e.removeListener("close",T),D()}e.once("finish",O);function D(){Le("unpipe"),r.unpipe(e)}return e.emit("pipe",r),i.flowing||(Le("pipe resume"),r.resume()),e};function WM(e){return function(){var r=e._readableState;Le("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&Uy(e,"data")&&(r.flowing=!0,ch(e))}}ze.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var i=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<n;a++)i[a].emit("unpipe",this,{hasUnpiped:!1});return this}var o=Wy(t.pipes,e);return o===-1?this:(t.pipes.splice(o,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};ze.prototype.on=function(e,t){var r=Ja.prototype.on.call(this,e,t),i=this._readableState;return e==="data"?(i.readableListening=this.listenerCount("readable")>0,i.flowing!==!1&&this.resume()):e==="readable"&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,Le("on readable",i.length,i.reading),i.length?fs(this):i.reading||M.default.nextTick(KM,this)),r};ze.prototype.addListener=ze.prototype.on;ze.prototype.removeListener=function(e,t){var r=Ja.prototype.removeListener.call(this,e,t);return e==="readable"&&M.default.nextTick(Zy,this),r};ze.prototype.removeAllListeners=function(e){var t=Ja.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&M.default.nextTick(Zy,this),t};function Zy(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function KM(e){Le("readable nexttick read 0"),e.read(0)}ze.prototype.resume=function(){var e=this._readableState;return e.flowing||(Le("resume"),e.flowing=!e.readableListening,GM(this,e)),e.paused=!1,this};function GM(e,t){t.resumeScheduled||(t.resumeScheduled=!0,M.default.nextTick(VM,e,t))}function VM(e,t){Le("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),ch(e),t.flowing&&!t.reading&&e.read(0)}ze.prototype.pause=function(){return Le("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Le("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function ch(e){var t=e._readableState;for(Le("flow",t.flowing);t.flowing&&e.read()!==null;);}ze.prototype.wrap=function(e){var t=this,r=this._readableState,i=!1;e.on("end",function(){if(Le("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&t.push(o)}t.push(null)}),e.on("data",function(o){if(Le("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var s=t.push(o);s||(i=!0,e.pause())}});for(var n in e)this[n]===void 0&&typeof e[n]=="function"&&(this[n]=(function(s){return function(){return e[s].apply(e,arguments)}})(n));for(var a=0;a<fh.length;a++)e.on(fh[a],this.emit.bind(this,fh[a]));return this._read=function(o){Le("wrapped _read",o),i&&(i=!1,e.resume())},this};typeof Symbol=="function"&&(ze.prototype[Symbol.asyncIterator]=function(){return ah===void 0&&(ah=Dy()),ah(this)});Object.defineProperty(ze.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(ze.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(ze.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}});ze._fromList=Hy;Object.defineProperty(ze.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Hy(e,t){if(t.length===0)return null;var r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.first():r=t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r}function uh(e){var t=e._readableState;Le("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,M.default.nextTick($M,t,e))}function $M(e,t){if(Le("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}typeof Symbol=="function"&&(ze.from=function(e,t){return oh===void 0&&(oh=Py()),oh(ze,e,t)});function Wy(e,t){for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return-1}});var dh=k((xD,Vy)=>{"use strict";m();Vy.exports=kr;var ss=Ui().codes,YM=ss.ERR_METHOD_NOT_IMPLEMENTED,JM=ss.ERR_MULTIPLE_CALLBACK,XM=ss.ERR_TRANSFORM_ALREADY_TRANSFORMING,QM=ss.ERR_TRANSFORM_WITH_LENGTH_0,us=Fi();re()(kr,us);function e4(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(i===null)return this.emit("error",new JM);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),i(e);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function kr(e){if(!(this instanceof kr))return new kr(e);us.call(this,e),this._transformState={afterTransform:e4.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",t4)}function t4(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(t,r){Gy(e,t,r)}):Gy(this,null,null)}kr.prototype.push=function(e,t){return this._transformState.needTransform=!1,us.prototype.push.call(this,e,t)};kr.prototype._transform=function(e,t,r){r(new YM("_transform()"))};kr.prototype._write=function(e,t,r){var i=this._transformState;if(i.writecb=r,i.writechunk=e,i.writeencoding=t,!i.transforming){var n=this._readableState;(i.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}};kr.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};kr.prototype._destroy=function(e,t){us.prototype._destroy.call(this,e,function(r){t(r)})};function Gy(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new QM;if(e._transformState.transforming)throw new XM;return e.push(null)}});var Jy=k((SD,Yy)=>{"use strict";m();Yy.exports=Xa;var $y=dh();re()(Xa,$y);function Xa(e){if(!(this instanceof Xa))return new Xa(e);$y.call(this,e)}Xa.prototype._transform=function(e,t,r){r(null,e)}});var r1=k((AD,t1)=>{"use strict";m();var ph;function r4(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var e1=Ui().codes,i4=e1.ERR_MISSING_ARGS,n4=e1.ERR_STREAM_DESTROYED;function Xy(e){if(e)throw e}function a4(e){return e.setHeader&&typeof e.abort=="function"}function o4(e,t,r,i){i=r4(i);var n=!1;e.on("close",function(){n=!0}),ph===void 0&&(ph=rs()),ph(e,{readable:t,writable:r},function(o){if(o)return i(o);n=!0,i()});var a=!1;return function(o){if(!n&&!a){if(a=!0,a4(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();i(o||new n4("pipe"))}}}function Qy(e){e()}function f4(e,t){return e.pipe(t)}function s4(e){return!e.length||typeof e[e.length-1]!="function"?Xy:e.pop()}function u4(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=s4(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new i4("streams");var n,a=t.map(function(o,s){var y=s<t.length-1,b=s>0;return o4(o,y,b,function(x){n||(n=x),x&&a.forEach(Qy),!y&&(a.forEach(Qy),i(n))})});return t.reduce(f4)}t1.exports=u4});var ls=k((RD,i1)=>{m();i1.exports=qt;var vh=Tn().EventEmitter,l4=re();l4(qt,vh);qt.Readable=Ql();qt.Writable=Yl();qt.Duplex=Fi();qt.Transform=dh();qt.PassThrough=Jy();qt.finished=rs();qt.pipeline=r1();qt.Stream=qt;function qt(){vh.call(this)}qt.prototype.pipe=function(e,t){var r=this;function i(x){e.writable&&e.write(x)===!1&&r.pause&&r.pause()}r.on("data",i);function n(){r.readable&&r.resume&&r.resume()}e.on("drain",n),!e._isStdio&&(!t||t.end!==!1)&&(r.on("end",o),r.on("close",s));var a=!1;function o(){a||(a=!0,e.end())}function s(){a||(a=!0,typeof e.destroy=="function"&&e.destroy())}function y(x){if(b(),vh.listenerCount(this,"error")===0)throw x}r.on("error",y),e.on("error",y);function b(){r.removeListener("data",i),e.removeListener("drain",n),r.removeListener("end",o),r.removeListener("close",s),r.removeListener("error",y),e.removeListener("error",y),r.removeListener("end",b),r.removeListener("close",b),e.removeListener("close",b)}return r.on("end",b),r.on("close",b),e.on("close",b),e.emit("pipe",r),e}});var o1=k((TD,a1)=>{"use strict";m();var pr=Ne().Buffer,n1=ls().Transform,h4=re();function Yr(e){n1.call(this),this._block=pr.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}h4(Yr,n1);Yr.prototype._transform=function(e,t,r){var i=null;try{this.update(e,t)}catch(n){i=n}r(i)};Yr.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(r){t=r}e(t)};var c4=typeof Uint8Array<"u",d4=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&ArrayBuffer.isView&&(pr.prototype instanceof Uint8Array||pr.TYPED_ARRAY_SUPPORT);function p4(e,t){if(e instanceof pr)return e;if(typeof e=="string")return pr.from(e,t);if(d4&&ArrayBuffer.isView(e)){if(e.byteLength===0)return pr.alloc(0);var r=pr.from(e.buffer,e.byteOffset,e.byteLength);if(r.byteLength===e.byteLength)return r}if(c4&&e instanceof Uint8Array||pr.isBuffer(e)&&e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e))return pr.from(e);throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}Yr.prototype.update=function(e,t){if(this._finalized)throw new Error("Digest already called");e=p4(e,t);for(var r=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var n=this._blockOffset;n<this._blockSize;)r[n++]=e[i++];this._update(),this._blockOffset=0}for(;i<e.length;)r[this._blockOffset++]=e[i++];for(var a=0,o=e.length*8;o>0;++a)this._length[a]+=o,o=this._length[a]/4294967296|0,o>0&&(this._length[a]-=4294967296*o);return this};Yr.prototype._update=function(){throw new Error("_update is not implemented")};Yr.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();e!==void 0&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t};Yr.prototype._digest=function(){throw new Error("_digest is not implemented")};a1.exports=Yr});var ds=k((OD,s1)=>{"use strict";m();var v4=re(),f1=o1(),y4=Ne().Buffer,g4=new Array(16);function hs(){f1.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}v4(hs,f1);hs.prototype._update=function(){for(var e=g4,t=0;t<16;++t)e[t]=this._block.readInt32LE(t*4);var r=this._a,i=this._b,n=this._c,a=this._d;r=ct(r,i,n,a,e[0],3614090360,7),a=ct(a,r,i,n,e[1],3905402710,12),n=ct(n,a,r,i,e[2],606105819,17),i=ct(i,n,a,r,e[3],3250441966,22),r=ct(r,i,n,a,e[4],4118548399,7),a=ct(a,r,i,n,e[5],1200080426,12),n=ct(n,a,r,i,e[6],2821735955,17),i=ct(i,n,a,r,e[7],4249261313,22),r=ct(r,i,n,a,e[8],1770035416,7),a=ct(a,r,i,n,e[9],2336552879,12),n=ct(n,a,r,i,e[10],4294925233,17),i=ct(i,n,a,r,e[11],2304563134,22),r=ct(r,i,n,a,e[12],1804603682,7),a=ct(a,r,i,n,e[13],4254626195,12),n=ct(n,a,r,i,e[14],2792965006,17),i=ct(i,n,a,r,e[15],1236535329,22),r=dt(r,i,n,a,e[1],4129170786,5),a=dt(a,r,i,n,e[6],3225465664,9),n=dt(n,a,r,i,e[11],643717713,14),i=dt(i,n,a,r,e[0],3921069994,20),r=dt(r,i,n,a,e[5],3593408605,5),a=dt(a,r,i,n,e[10],38016083,9),n=dt(n,a,r,i,e[15],3634488961,14),i=dt(i,n,a,r,e[4],3889429448,20),r=dt(r,i,n,a,e[9],568446438,5),a=dt(a,r,i,n,e[14],3275163606,9),n=dt(n,a,r,i,e[3],4107603335,14),i=dt(i,n,a,r,e[8],1163531501,20),r=dt(r,i,n,a,e[13],2850285829,5),a=dt(a,r,i,n,e[2],4243563512,9),n=dt(n,a,r,i,e[7],1735328473,14),i=dt(i,n,a,r,e[12],2368359562,20),r=pt(r,i,n,a,e[5],4294588738,4),a=pt(a,r,i,n,e[8],2272392833,11),n=pt(n,a,r,i,e[11],1839030562,16),i=pt(i,n,a,r,e[14],4259657740,23),r=pt(r,i,n,a,e[1],2763975236,4),a=pt(a,r,i,n,e[4],1272893353,11),n=pt(n,a,r,i,e[7],4139469664,16),i=pt(i,n,a,r,e[10],3200236656,23),r=pt(r,i,n,a,e[13],681279174,4),a=pt(a,r,i,n,e[0],3936430074,11),n=pt(n,a,r,i,e[3],3572445317,16),i=pt(i,n,a,r,e[6],76029189,23),r=pt(r,i,n,a,e[9],3654602809,4),a=pt(a,r,i,n,e[12],3873151461,11),n=pt(n,a,r,i,e[15],530742520,16),i=pt(i,n,a,r,e[2],3299628645,23),r=vt(r,i,n,a,e[0],4096336452,6),a=vt(a,r,i,n,e[7],1126891415,10),n=vt(n,a,r,i,e[14],2878612391,15),i=vt(i,n,a,r,e[5],4237533241,21),r=vt(r,i,n,a,e[12],1700485571,6),a=vt(a,r,i,n,e[3],2399980690,10),n=vt(n,a,r,i,e[10],4293915773,15),i=vt(i,n,a,r,e[1],2240044497,21),r=vt(r,i,n,a,e[8],1873313359,6),a=vt(a,r,i,n,e[15],4264355552,10),n=vt(n,a,r,i,e[6],2734768916,15),i=vt(i,n,a,r,e[13],1309151649,21),r=vt(r,i,n,a,e[4],4149444226,6),a=vt(a,r,i,n,e[11],3174756917,10),n=vt(n,a,r,i,e[2],718787259,15),i=vt(i,n,a,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+i|0,this._c=this._c+n|0,this._d=this._d+a|0};hs.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=y4.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e};function cs(e,t){return e<<t|e>>>32-t}function ct(e,t,r,i,n,a,o){return cs(e+(t&r|~t&i)+n+a|0,o)+t|0}function dt(e,t,r,i,n,a,o){return cs(e+(t&i|r&~i)+n+a|0,o)+t|0}function pt(e,t,r,i,n,a,o){return cs(e+(t^r^i)+n+a|0,o)+t|0}function vt(e,t,r,i,n,a,o){return cs(e+(r^(t|~i))+n+a|0,o)+t|0}s1.exports=hs});var l1=k((DD,u1)=>{m();var b4={}.toString;u1.exports=Array.isArray||function(e){return b4.call(e)=="[object Array]"}});var c1=k((PD,h1)=>{"use strict";m();var _4=Di(),m4=Hr(),w4=m4("TypedArray.prototype.buffer",!0),x4=Dl();h1.exports=w4||function(t){if(!x4(t))throw new _4("Not a Typed Array");return t.buffer}});var Qa=k((CD,p1)=>{"use strict";m();var Vt=Ne().Buffer,E4=l1(),S4=c1(),M4=ArrayBuffer.isView||function(t){try{return S4(t),!0}catch{return!1}},A4=typeof Uint8Array<"u",d1=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",B4=d1&&(Vt.prototype instanceof Uint8Array||Vt.TYPED_ARRAY_SUPPORT);p1.exports=function(t,r){if(Vt.isBuffer(t))return t.constructor&&!("isBuffer"in t)?Vt.from(t):t;if(typeof t=="string")return Vt.from(t,r);if(d1&&M4(t)){if(t.byteLength===0)return Vt.alloc(0);if(B4){var i=Vt.from(t.buffer,t.byteOffset,t.byteLength);if(i.byteLength===t.byteLength)return i}var n=t instanceof Uint8Array?t:new Uint8Array(t.buffer,t.byteOffset,t.byteLength),a=Vt.from(n);if(a.length===t.byteLength)return a}if(A4&&t instanceof Uint8Array)return Vt.from(t);var o=E4(t);if(o)for(var s=0;s<t.length;s+=1){var y=t[s];if(typeof y!="number"||y<0||y>255||~~y!==y)throw new RangeError("Array items must be numbers in the range 0-255.")}if(o||Vt.isBuffer(t)&&t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t))return Vt.from(t);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')}});var b1=k((FD,g1)=>{"use strict";m();var R4=Ne().Buffer,k4=Qa(),y1=typeof Uint8Array<"u",T4=y1&&typeof ArrayBuffer<"u",v1=T4&&ArrayBuffer.isView;g1.exports=function(e,t){if(typeof e=="string"||R4.isBuffer(e)||y1&&e instanceof Uint8Array||v1&&v1(e))return k4(e,t);throw new TypeError('The "data" argument must be a string, a Buffer, a Uint8Array, or a DataView')}});var eo=k((zD,yh)=>{"use strict";m();typeof M.default>"u"||!M.default.version||M.default.version.indexOf("v0.")===0||M.default.version.indexOf("v1.")===0&&M.default.version.indexOf("v1.8.")!==0?yh.exports={nextTick:I4}:yh.exports=M.default;function I4(e,t,r,i){if(typeof e!="function")throw new TypeError('"callback" argument must be a function');var n=arguments.length,a,o;switch(n){case 0:case 1:return M.default.nextTick(e);case 2:return M.default.nextTick(function(){e.call(null,t)});case 3:return M.default.nextTick(function(){e.call(null,t,r)});case 4:return M.default.nextTick(function(){e.call(null,t,r,i)});default:for(a=new Array(n-1),o=0;o<a.length;)a[o++]=arguments[o];return M.default.nextTick(function(){e.apply(null,a)})}}});var m1=k((HD,_1)=>{m();var O4={}.toString;_1.exports=Array.isArray||function(e){return O4.call(e)=="[object Array]"}});var gh=k((KD,w1)=>{m();w1.exports=Tn().EventEmitter});var vs=k((bh,E1)=>{m();var ps=st(),Tr=ps.Buffer;function x1(e,t){for(var r in e)t[r]=e[r]}Tr.from&&Tr.alloc&&Tr.allocUnsafe&&Tr.allocUnsafeSlow?E1.exports=ps:(x1(ps,bh),bh.Buffer=Kn);function Kn(e,t,r){return Tr(e,t,r)}x1(Tr,Kn);Kn.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Tr(e,t,r)};Kn.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var i=Tr(e);return t!==void 0?typeof r=="string"?i.fill(t,r):i.fill(t):i.fill(0),i};Kn.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Tr(e)};Kn.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return ps.SlowBuffer(e)}});var Gn=k(yt=>{m();function q4(e){return Array.isArray?Array.isArray(e):ys(e)==="[object Array]"}yt.isArray=q4;function D4(e){return typeof e=="boolean"}yt.isBoolean=D4;function N4(e){return e===null}yt.isNull=N4;function P4(e){return e==null}yt.isNullOrUndefined=P4;function L4(e){return typeof e=="number"}yt.isNumber=L4;function C4(e){return typeof e=="string"}yt.isString=C4;function U4(e){return typeof e=="symbol"}yt.isSymbol=U4;function F4(e){return e===void 0}yt.isUndefined=F4;function j4(e){return ys(e)==="[object RegExp]"}yt.isRegExp=j4;function z4(e){return typeof e=="object"&&e!==null}yt.isObject=z4;function Z4(e){return ys(e)==="[object Date]"}yt.isDate=Z4;function H4(e){return ys(e)==="[object Error]"||e instanceof Error}yt.isError=H4;function W4(e){return typeof e=="function"}yt.isFunction=W4;function K4(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}yt.isPrimitive=K4;yt.isBuffer=st().Buffer.isBuffer;function ys(e){return Object.prototype.toString.call(e)}});var M1=k((JD,_h)=>{"use strict";m();function G4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var S1=vs().Buffer,to=Gt();function V4(e,t,r){e.copy(t,r)}_h.exports=(function(){function e(){G4(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(r){var i={data:r,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length},e.prototype.unshift=function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length},e.prototype.shift=function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(r){if(this.length===0)return"";for(var i=this.head,n=""+i.data;i=i.next;)n+=r+i.data;return n},e.prototype.concat=function(r){if(this.length===0)return S1.alloc(0);for(var i=S1.allocUnsafe(r>>>0),n=this.head,a=0;n;)V4(n.data,i,a),a+=n.data.length,n=n.next;return i},e})();to&&to.inspect&&to.inspect.custom&&(_h.exports.prototype[to.inspect.custom]=function(){var e=to.inspect({length:this.length});return this.constructor.name+" "+e})});var mh=k((QD,A1)=>{"use strict";m();var gs=eo();function $4(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return i||n?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,gs.nextTick(bs,this,e)):gs.nextTick(bs,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(a){!t&&a?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,gs.nextTick(bs,r,a)):gs.nextTick(bs,r,a):t&&t(a)}),this)}function Y4(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function bs(e,t){e.emit("error",t)}A1.exports={destroy:$4,undestroy:Y4}});var xh=k((tN,D1)=>{"use strict";m();var Hi=eo();D1.exports=tt;function R1(e){var t=this;this.next=null,this.entry=null,this.finish=function(){pA(t,e)}}var J4=!M.default.browser&&["v0.10","v0.9."].indexOf(M.default.version.slice(0,5))>-1?setImmediate:Hi.nextTick,Vn;tt.WritableState=io;var k1=Object.create(Gn());k1.inherits=re();var X4={deprecate:Gl()},T1=gh(),ms=vs().Buffer,Q4=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function eA(e){return ms.from(e)}function tA(e){return ms.isBuffer(e)||e instanceof Q4}var I1=mh();k1.inherits(tt,T1);function rA(){}function io(e,t){Vn=Vn||Wi(),e=e||{};var r=t instanceof Vn;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,n=e.writableHighWaterMark,a=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(n||n===0)?this.highWaterMark=n:this.highWaterMark=a,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=e.decodeStrings===!1;this.decodeStrings=!o,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(s){uA(t,s)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new R1(this)}io.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(io.prototype,"buffer",{get:X4.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var _s;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(_s=Function.prototype[Symbol.hasInstance],Object.defineProperty(tt,Symbol.hasInstance,{value:function(e){return _s.call(this,e)?!0:this!==tt?!1:e&&e._writableState instanceof io}})):_s=function(e){return e instanceof this};function tt(e){if(Vn=Vn||Wi(),!_s.call(tt,this)&&!(this instanceof Vn))return new tt(e);this._writableState=new io(e,this),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),T1.call(this)}tt.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function iA(e,t){var r=new Error("write after end");e.emit("error",r),Hi.nextTick(t,r)}function nA(e,t,r,i){var n=!0,a=!1;return r===null?a=new TypeError("May not write null values to stream"):typeof r!="string"&&r!==void 0&&!t.objectMode&&(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),Hi.nextTick(i,a),n=!1),n}tt.prototype.write=function(e,t,r){var i=this._writableState,n=!1,a=!i.objectMode&&tA(e);return a&&!ms.isBuffer(e)&&(e=eA(e)),typeof t=="function"&&(r=t,t=null),a?t="buffer":t||(t=i.defaultEncoding),typeof r!="function"&&(r=rA),i.ended?iA(this,r):(a||nA(this,i,e,r))&&(i.pendingcb++,n=oA(this,i,a,e,t,r)),n};tt.prototype.cork=function(){var e=this._writableState;e.corked++};tt.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&O1(this,e))};tt.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this};function aA(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=ms.from(t,r)),t}Object.defineProperty(tt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function oA(e,t,r,i,n,a){if(!r){var o=aA(t,i,n);i!==o&&(r=!0,n="buffer",i=o)}var s=t.objectMode?1:i.length;t.length+=s;var y=t.length<t.highWaterMark;if(y||(t.needDrain=!0),t.writing||t.corked){var b=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:a,next:null},b?b.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else wh(e,t,!1,s,i,n,a);return y}function wh(e,t,r,i,n,a,o){t.writelen=i,t.writecb=o,t.writing=!0,t.sync=!0,r?e._writev(n,t.onwrite):e._write(n,a,t.onwrite),t.sync=!1}function fA(e,t,r,i,n){--t.pendingcb,r?(Hi.nextTick(n,i),Hi.nextTick(ro,e,t),e._writableState.errorEmitted=!0,e.emit("error",i)):(n(i),e._writableState.errorEmitted=!0,e.emit("error",i),ro(e,t))}function sA(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function uA(e,t){var r=e._writableState,i=r.sync,n=r.writecb;if(sA(r),t)fA(e,r,i,t,n);else{var a=q1(r);!a&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&O1(e,r),i?J4(B1,e,r,a,n):B1(e,r,a,n)}}function B1(e,t,r,i){r||lA(e,t),t.pendingcb--,i(),ro(e,t)}function lA(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function O1(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,n=new Array(i),a=t.corkedRequestsFree;a.entry=r;for(var o=0,s=!0;r;)n[o]=r,r.isBuf||(s=!1),r=r.next,o+=1;n.allBuffers=s,wh(e,t,!0,t.length,n,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new R1(t),t.bufferedRequestCount=0}else{for(;r;){var y=r.chunk,b=r.encoding,x=r.callback,B=t.objectMode?1:y.length;if(wh(e,t,!1,B,y,b,x),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}tt.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))};tt.prototype._writev=null;tt.prototype.end=function(e,t,r){var i=this._writableState;typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),e!=null&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||dA(this,i,r)};function q1(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function hA(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),ro(e,t)})}function cA(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"?(t.pendingcb++,t.finalCalled=!0,Hi.nextTick(hA,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function ro(e,t){var r=q1(t);return r&&(cA(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"))),r}function dA(e,t,r){t.ending=!0,ro(e,t),r&&(t.finished?Hi.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function pA(e,t,r){var i=e.entry;for(e.entry=null;i;){var n=i.callback;t.pendingcb--,n(r),i=i.next}t.corkedRequestsFree.next=e}Object.defineProperty(tt.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});tt.prototype.destroy=I1.destroy;tt.prototype._undestroy=I1.undestroy;tt.prototype._destroy=function(e,t){this.end(),t(e)}});var Wi=k((iN,C1)=>{"use strict";m();var N1=eo(),vA=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};C1.exports=Ir;var P1=Object.create(Gn());P1.inherits=re();var L1=Mh(),Sh=xh();P1.inherits(Ir,L1);for(Eh=vA(Sh.prototype),ws=0;ws<Eh.length;ws++)xs=Eh[ws],Ir.prototype[xs]||(Ir.prototype[xs]=Sh.prototype[xs]);var Eh,xs,ws;function Ir(e){if(!(this instanceof Ir))return new Ir(e);L1.call(this,e),Sh.call(this,e),e&&e.readable===!1&&(this.readable=!1),e&&e.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,e&&e.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",yA)}Object.defineProperty(Ir.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function yA(){this.allowHalfOpen||this._writableState.ended||N1.nextTick(gA,this)}function gA(e){e.end()}Object.defineProperty(Ir.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}});Ir.prototype._destroy=function(e,t){this.push(null),this.end(),N1.nextTick(t,e)}});var Mh=k((oN,Y1)=>{"use strict";m();var Yn=eo();Y1.exports=Ve;var bA=m1(),no;Ve.ReadableState=W1;var aN=Tn().EventEmitter,z1=function(e,t){return e.listeners(t).length},Th=gh(),ao=vs().Buffer,_A=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function mA(e){return ao.from(e)}function wA(e){return ao.isBuffer(e)||e instanceof _A}var Z1=Object.create(Gn());Z1.inherits=re();var Ah=Gt(),He=void 0;Ah&&Ah.debuglog?He=Ah.debuglog("stream"):He=function(){};var xA=M1(),H1=mh(),$n;Z1.inherits(Ve,Th);var Bh=["error","close","destroy","pause","resume"];function EA(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):bA(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function W1(e,t){no=no||Wi(),e=e||{};var r=t instanceof no;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,n=e.readableHighWaterMark,a=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(n||n===0)?this.highWaterMark=n:this.highWaterMark=a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new xA,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&($n||($n=Zn().StringDecoder),this.decoder=new $n(e.encoding),this.encoding=e.encoding)}function Ve(e){if(no=no||Wi(),!(this instanceof Ve))return new Ve(e);this._readableState=new W1(e,this),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),Th.call(this)}Object.defineProperty(Ve.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});Ve.prototype.destroy=H1.destroy;Ve.prototype._undestroy=H1.undestroy;Ve.prototype._destroy=function(e,t){this.push(null),t(e)};Ve.prototype.push=function(e,t){var r=this._readableState,i;return r.objectMode?i=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=ao.from(e,t),t=""),i=!0),K1(this,e,t,!1,i)};Ve.prototype.unshift=function(e){return K1(this,e,null,!0,!1)};function K1(e,t,r,i,n){var a=e._readableState;if(t===null)a.reading=!1,BA(e,a);else{var o;n||(o=SA(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?(typeof t!="string"&&!a.objectMode&&Object.getPrototypeOf(t)!==ao.prototype&&(t=mA(t)),i?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):Rh(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||t.length!==0?Rh(e,a,t,!1):G1(e,a)):Rh(e,a,t,!1))):i||(a.reading=!1)}return MA(a)}function Rh(e,t,r,i){t.flowing&&t.length===0&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,i?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&Es(e)),G1(e,t)}function SA(e,t){var r;return!wA(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}function MA(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}Ve.prototype.isPaused=function(){return this._readableState.flowing===!1};Ve.prototype.setEncoding=function(e){return $n||($n=Zn().StringDecoder),this._readableState.decoder=new $n(e),this._readableState.encoding=e,this};var U1=8388608;function AA(e){return e>=U1?e=U1:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function F1(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=AA(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}Ve.prototype.read=function(e){He("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return He("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?kh(this):Es(this),null;if(e=F1(e,t),e===0&&t.ended)return t.length===0&&kh(this),null;var i=t.needReadable;He("need readable",i),(t.length===0||t.length-e<t.highWaterMark)&&(i=!0,He("length less than watermark",i)),t.ended||t.reading?(i=!1,He("reading or ended",i)):i&&(He("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=F1(r,t)));var n;return e>0?n=V1(e,t):n=null,n===null?(t.needReadable=!0,e=0):t.length-=e,t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&kh(this)),n!==null&&this.emit("data",n),n};function BA(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,Es(e)}}function Es(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(He("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?Yn.nextTick(j1,e):j1(e))}function j1(e){He("emit readable"),e.emit("readable"),Ih(e)}function G1(e,t){t.readingMore||(t.readingMore=!0,Yn.nextTick(RA,e,t))}function RA(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(He("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}Ve.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))};Ve.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e);break}i.pipesCount+=1,He("pipe count=%d opts=%j",i.pipesCount,t);var n=(!t||t.end!==!1)&&e!==M.default.stdout&&e!==M.default.stderr,a=n?s:U;i.endEmitted?Yn.nextTick(a):r.once("end",a),e.on("unpipe",o);function o(N,j){He("onunpipe"),N===r&&j&&j.hasUnpiped===!1&&(j.hasUnpiped=!0,x())}function s(){He("onend"),e.end()}var y=kA(r);e.on("drain",y);var b=!1;function x(){He("cleanup"),e.removeListener("close",O),e.removeListener("finish",D),e.removeListener("drain",y),e.removeListener("error",T),e.removeListener("unpipe",o),r.removeListener("end",s),r.removeListener("end",U),r.removeListener("data",R),b=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&y()}var B=!1;r.on("data",R);function R(N){He("ondata"),B=!1;var j=e.write(N);j===!1&&!B&&((i.pipesCount===1&&i.pipes===e||i.pipesCount>1&&$1(i.pipes,e)!==-1)&&!b&&(He("false write response, pause",i.awaitDrain),i.awaitDrain++,B=!0),r.pause())}function T(N){He("onerror",N),U(),e.removeListener("error",T),z1(e,"error")===0&&e.emit("error",N)}EA(e,"error",T);function O(){e.removeListener("finish",D),U()}e.once("close",O);function D(){He("onfinish"),e.removeListener("close",O),U()}e.once("finish",D);function U(){He("unpipe"),r.unpipe(e)}return e.emit("pipe",r),i.flowing||(He("pipe resume"),r.resume()),e};function kA(e){return function(){var t=e._readableState;He("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&z1(e,"data")&&(t.flowing=!0,Ih(e))}}Ve.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var i=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<n;a++)i[a].emit("unpipe",this,{hasUnpiped:!1});return this}var o=$1(t.pipes,e);return o===-1?this:(t.pipes.splice(o,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};Ve.prototype.on=function(e,t){var r=Th.prototype.on.call(this,e,t);if(e==="data")this._readableState.flowing!==!1&&this.resume();else if(e==="readable"){var i=this._readableState;!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&Es(this):Yn.nextTick(TA,this))}return r};Ve.prototype.addListener=Ve.prototype.on;function TA(e){He("readable nexttick read 0"),e.read(0)}Ve.prototype.resume=function(){var e=this._readableState;return e.flowing||(He("resume"),e.flowing=!0,IA(this,e)),this};function IA(e,t){t.resumeScheduled||(t.resumeScheduled=!0,Yn.nextTick(OA,e,t))}function OA(e,t){t.reading||(He("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),Ih(e),t.flowing&&!t.reading&&e.read(0)}Ve.prototype.pause=function(){return He("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(He("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function Ih(e){var t=e._readableState;for(He("flow",t.flowing);t.flowing&&e.read()!==null;);}Ve.prototype.wrap=function(e){var t=this,r=this._readableState,i=!1;e.on("end",function(){if(He("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&t.push(o)}t.push(null)}),e.on("data",function(o){if(He("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var s=t.push(o);s||(i=!0,e.pause())}});for(var n in e)this[n]===void 0&&typeof e[n]=="function"&&(this[n]=(function(o){return function(){return e[o].apply(e,arguments)}})(n));for(var a=0;a<Bh.length;a++)e.on(Bh[a],this.emit.bind(this,Bh[a]));return this._read=function(o){He("wrapped _read",o),i&&(i=!1,e.resume())},this};Object.defineProperty(Ve.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Ve._fromList=V1;function V1(e,t){if(t.length===0)return null;var r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.head.data:r=t.buffer.concat(t.length),t.buffer.clear()):r=qA(e,t.buffer,t.decoder),r}function qA(e,t,r){var i;return e<t.head.data.length?(i=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):e===t.head.data.length?i=t.shift():i=r?DA(e,t):NA(e,t),i}function DA(e,t){var r=t.head,i=1,n=r.data;for(e-=n.length;r=r.next;){var a=r.data,o=e>a.length?a.length:e;if(o===a.length?n+=a:n+=a.slice(0,e),e-=o,e===0){o===a.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=a.slice(o));break}++i}return t.length-=i,n}function NA(e,t){var r=ao.allocUnsafe(e),i=t.head,n=1;for(i.data.copy(r),e-=i.data.length;i=i.next;){var a=i.data,o=e>a.length?a.length:e;if(a.copy(r,r.length-e,0,o),e-=o,e===0){o===a.length?(++n,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i,i.data=a.slice(o));break}++n}return t.length-=n,r}function kh(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,Yn.nextTick(PA,t,e))}function PA(e,t){!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function $1(e,t){for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return-1}});var Oh=k((sN,Q1)=>{"use strict";m();Q1.exports=Or;var Ss=Wi(),X1=Object.create(Gn());X1.inherits=re();X1.inherits(Or,Ss);function LA(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(!i)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,t!=null&&this.push(t),i(e);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function Or(e){if(!(this instanceof Or))return new Or(e);Ss.call(this,e),this._transformState={afterTransform:LA.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",CA)}function CA(){var e=this;typeof this._flush=="function"?this._flush(function(t,r){J1(e,t,r)}):J1(this,null,null)}Or.prototype.push=function(e,t){return this._transformState.needTransform=!1,Ss.prototype.push.call(this,e,t)};Or.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")};Or.prototype._write=function(e,t,r){var i=this._transformState;if(i.writecb=r,i.writechunk=e,i.writeencoding=t,!i.transforming){var n=this._readableState;(i.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}};Or.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};Or.prototype._destroy=function(e,t){var r=this;Ss.prototype._destroy.call(this,e,function(i){t(i),r.emit("close")})};function J1(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}});var ig=k((lN,rg)=>{"use strict";m();rg.exports=oo;var eg=Oh(),tg=Object.create(Gn());tg.inherits=re();tg.inherits(oo,eg);function oo(e){if(!(this instanceof oo))return new oo(e);eg.call(this,e)}oo.prototype._transform=function(e,t,r){r(null,e)}});var ag=k((vr,ng)=>{m();vr=ng.exports=Mh();vr.Stream=vr;vr.Readable=vr;vr.Writable=xh();vr.Duplex=Wi();vr.Transform=Oh();vr.PassThrough=ig()});var sg=k((dN,fg)=>{"use strict";m();var UA=Ne().Buffer,FA=b1(),og=ag().Transform,jA=re();function Jr(e){og.call(this),this._block=UA.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}jA(Jr,og);Jr.prototype._transform=function(e,t,r){var i=null;try{this.update(e,t)}catch(n){i=n}r(i)};Jr.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(r){t=r}e(t)};Jr.prototype.update=function(e,t){if(this._finalized)throw new Error("Digest already called");for(var r=FA(e,t),i=this._block,n=0;this._blockOffset+r.length-n>=this._blockSize;){for(var a=this._blockOffset;a<this._blockSize;)i[a]=r[n],a+=1,n+=1;this._update(),this._blockOffset=0}for(;n<r.length;)i[this._blockOffset]=r[n],this._blockOffset+=1,n+=1;for(var o=0,s=r.length*8;s>0;++o)this._length[o]+=s,s=this._length[o]/4294967296|0,s>0&&(this._length[o]-=4294967296*s);return this};Jr.prototype._update=function(){throw new Error("_update is not implemented")};Jr.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();e!==void 0&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t};Jr.prototype._digest=function(){throw new Error("_digest is not implemented")};fg.exports=Jr});var As=k((vN,vg)=>{"use strict";m();var qh=st().Buffer,zA=re(),pg=sg(),ZA=new Array(16),fo=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],so=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],uo=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],lo=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],ho=[0,1518500249,1859775393,2400959708,2840853838],co=[1352829926,1548603684,1836072691,2053994217,0];function Ki(e,t){return e<<t|e>>>32-t}function ug(e,t,r,i,n,a,o,s){return Ki(e+(t^r^i)+a+o|0,s)+n|0}function lg(e,t,r,i,n,a,o,s){return Ki(e+(t&r|~t&i)+a+o|0,s)+n|0}function hg(e,t,r,i,n,a,o,s){return Ki(e+((t|~r)^i)+a+o|0,s)+n|0}function cg(e,t,r,i,n,a,o,s){return Ki(e+(t&i|r&~i)+a+o|0,s)+n|0}function dg(e,t,r,i,n,a,o,s){return Ki(e+(t^(r|~i))+a+o|0,s)+n|0}function Ms(){pg.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}zA(Ms,pg);Ms.prototype._update=function(){for(var e=ZA,t=0;t<16;++t)e[t]=this._block.readInt32LE(t*4);for(var r=this._a|0,i=this._b|0,n=this._c|0,a=this._d|0,o=this._e|0,s=this._a|0,y=this._b|0,b=this._c|0,x=this._d|0,B=this._e|0,R=0;R<80;R+=1){var T,O;R<16?(T=ug(r,i,n,a,o,e[fo[R]],ho[0],uo[R]),O=dg(s,y,b,x,B,e[so[R]],co[0],lo[R])):R<32?(T=lg(r,i,n,a,o,e[fo[R]],ho[1],uo[R]),O=cg(s,y,b,x,B,e[so[R]],co[1],lo[R])):R<48?(T=hg(r,i,n,a,o,e[fo[R]],ho[2],uo[R]),O=hg(s,y,b,x,B,e[so[R]],co[2],lo[R])):R<64?(T=cg(r,i,n,a,o,e[fo[R]],ho[3],uo[R]),O=lg(s,y,b,x,B,e[so[R]],co[3],lo[R])):(T=dg(r,i,n,a,o,e[fo[R]],ho[4],uo[R]),O=ug(s,y,b,x,B,e[so[R]],co[4],lo[R])),r=o,o=a,a=Ki(n,10),n=i,i=T,s=B,B=x,x=Ki(b,10),b=y,y=O}var D=this._b+n+x|0;this._b=this._c+a+B|0,this._c=this._d+o+s|0,this._d=this._e+r+y|0,this._e=this._a+i+b|0,this._a=D};Ms.prototype._digest=function(){this._block[this._blockOffset]=128,this._blockOffset+=1,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=qh.alloc?qh.alloc(20):new qh(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e};vg.exports=Ms});var Gi=k((gN,yg)=>{"use strict";m();var HA=Ne().Buffer,WA=Qa();function Bs(e,t){this._block=HA.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}Bs.prototype.update=function(e,t){e=WA(e,t||"utf8");for(var r=this._block,i=this._blockSize,n=e.length,a=this._len,o=0;o<n;){for(var s=a%i,y=Math.min(n-o,i-s),b=0;b<y;b++)r[s+b]=e[o+b];a+=y,o+=y,a%i===0&&this._update(r)}return this._len+=n,this};Bs.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=this._len*8;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var i=(r&4294967295)>>>0,n=(r-i)/4294967296;this._block.writeUInt32BE(n,this._blockSize-8),this._block.writeUInt32BE(i,this._blockSize-4)}this._update(this._block);var a=this._hash();return e?a.toString(e):a};Bs.prototype._update=function(){throw new Error("_update must be implemented by subclass")};yg.exports=Bs});var _g=k((_N,bg)=>{"use strict";m();var KA=re(),gg=Gi(),GA=Ne().Buffer,VA=[1518500249,1859775393,-1894007588,-899497514],$A=new Array(80);function po(){this.init(),this._w=$A,gg.call(this,64,56)}KA(po,gg);po.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function YA(e){return e<<5|e>>>27}function JA(e){return e<<30|e>>>2}function XA(e,t,r,i){return e===0?t&r|~t&i:e===2?t&r|t&i|r&i:t^r^i}po.prototype._update=function(e){for(var t=this._w,r=this._a|0,i=this._b|0,n=this._c|0,a=this._d|0,o=this._e|0,s=0;s<16;++s)t[s]=e.readInt32BE(s*4);for(;s<80;++s)t[s]=t[s-3]^t[s-8]^t[s-14]^t[s-16];for(var y=0;y<80;++y){var b=~~(y/20),x=YA(r)+XA(b,i,n,a)+o+t[y]+VA[b]|0;o=a,a=n,n=JA(i),i=r,r=x}this._a=r+this._a|0,this._b=i+this._b|0,this._c=n+this._c|0,this._d=a+this._d|0,this._e=o+this._e|0};po.prototype._hash=function(){var e=GA.allocUnsafe(20);return e.writeInt32BE(this._a|0,0),e.writeInt32BE(this._b|0,4),e.writeInt32BE(this._c|0,8),e.writeInt32BE(this._d|0,12),e.writeInt32BE(this._e|0,16),e};bg.exports=po});var xg=k((wN,wg)=>{"use strict";m();var QA=re(),mg=Gi(),e5=Ne().Buffer,t5=[1518500249,1859775393,-1894007588,-899497514],r5=new Array(80);function vo(){this.init(),this._w=r5,mg.call(this,64,56)}QA(vo,mg);vo.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function i5(e){return e<<1|e>>>31}function n5(e){return e<<5|e>>>27}function a5(e){return e<<30|e>>>2}function o5(e,t,r,i){return e===0?t&r|~t&i:e===2?t&r|t&i|r&i:t^r^i}vo.prototype._update=function(e){for(var t=this._w,r=this._a|0,i=this._b|0,n=this._c|0,a=this._d|0,o=this._e|0,s=0;s<16;++s)t[s]=e.readInt32BE(s*4);for(;s<80;++s)t[s]=i5(t[s-3]^t[s-8]^t[s-14]^t[s-16]);for(var y=0;y<80;++y){var b=~~(y/20),x=n5(r)+o5(b,i,n,a)+o+t[y]+t5[b]|0;o=a,a=n,n=a5(i),i=r,r=x}this._a=r+this._a|0,this._b=i+this._b|0,this._c=n+this._c|0,this._d=a+this._d|0,this._e=o+this._e|0};vo.prototype._hash=function(){var e=e5.allocUnsafe(20);return e.writeInt32BE(this._a|0,0),e.writeInt32BE(this._b|0,4),e.writeInt32BE(this._c|0,8),e.writeInt32BE(this._d|0,12),e.writeInt32BE(this._e|0,16),e};wg.exports=vo});var Dh=k((EN,Sg)=>{"use strict";m();var f5=re(),Eg=Gi(),s5=Ne().Buffer,u5=[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],l5=new Array(64);function yo(){this.init(),this._w=l5,Eg.call(this,64,56)}f5(yo,Eg);yo.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function h5(e,t,r){return r^e&(t^r)}function c5(e,t,r){return e&t|r&(e|t)}function d5(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function p5(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function v5(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function y5(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}yo.prototype._update=function(e){for(var t=this._w,r=this._a|0,i=this._b|0,n=this._c|0,a=this._d|0,o=this._e|0,s=this._f|0,y=this._g|0,b=this._h|0,x=0;x<16;++x)t[x]=e.readInt32BE(x*4);for(;x<64;++x)t[x]=y5(t[x-2])+t[x-7]+v5(t[x-15])+t[x-16]|0;for(var B=0;B<64;++B){var R=b+p5(o)+h5(o,s,y)+u5[B]+t[B]|0,T=d5(r)+c5(r,i,n)|0;b=y,y=s,s=o,o=a+R|0,a=n,n=i,i=r,r=R+T|0}this._a=r+this._a|0,this._b=i+this._b|0,this._c=n+this._c|0,this._d=a+this._d|0,this._e=o+this._e|0,this._f=s+this._f|0,this._g=y+this._g|0,this._h=b+this._h|0};yo.prototype._hash=function(){var e=s5.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e};Sg.exports=yo});var Ag=k((MN,Mg)=>{"use strict";m();var g5=re(),b5=Dh(),_5=Gi(),m5=Ne().Buffer,w5=new Array(64);function Rs(){this.init(),this._w=w5,_5.call(this,64,56)}g5(Rs,b5);Rs.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this};Rs.prototype._hash=function(){var e=m5.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e};Mg.exports=Rs});var Nh=k((BN,qg)=>{"use strict";m();var x5=re(),Og=Gi(),E5=Ne().Buffer,Bg=[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],S5=new Array(160);function go(){this.init(),this._w=S5,Og.call(this,128,112)}x5(go,Og);go.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function Rg(e,t,r){return r^e&(t^r)}function kg(e,t,r){return e&t|r&(e|t)}function Tg(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function Ig(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function M5(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function A5(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function B5(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function R5(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function ft(e,t){return e>>>0<t>>>0?1:0}go.prototype._update=function(e){for(var t=this._w,r=this._ah|0,i=this._bh|0,n=this._ch|0,a=this._dh|0,o=this._eh|0,s=this._fh|0,y=this._gh|0,b=this._hh|0,x=this._al|0,B=this._bl|0,R=this._cl|0,T=this._dl|0,O=this._el|0,D=this._fl|0,U=this._gl|0,N=this._hl|0,j=0;j<32;j+=2)t[j]=e.readInt32BE(j*4),t[j+1]=e.readInt32BE(j*4+4);for(;j<160;j+=2){var H=t[j-30],W=t[j-30+1],Z=M5(H,W),K=A5(W,H);H=t[j-4],W=t[j-4+1];var J=B5(H,W),z=R5(W,H),X=t[j-14],A=t[j-14+1],h=t[j-32],_=t[j-32+1],d=K+A|0,f=Z+X+ft(d,K)|0;d=d+z|0,f=f+J+ft(d,z)|0,d=d+_|0,f=f+h+ft(d,_)|0,t[j]=f,t[j+1]=d}for(var l=0;l<160;l+=2){f=t[l],d=t[l+1];var v=kg(r,i,n),g=kg(x,B,R),p=Tg(r,x),u=Tg(x,r),w=Ig(o,O),E=Ig(O,o),c=Bg[l],S=Bg[l+1],P=Rg(o,s,y),C=Rg(O,D,U),L=N+E|0,V=b+w+ft(L,N)|0;L=L+C|0,V=V+P+ft(L,C)|0,L=L+S|0,V=V+c+ft(L,S)|0,L=L+d|0,V=V+f+ft(L,d)|0;var G=u+g|0,Y=p+v+ft(G,u)|0;b=y,N=U,y=s,U=D,s=o,D=O,O=T+L|0,o=a+V+ft(O,T)|0,a=n,T=R,n=i,R=B,i=r,B=x,x=L+G|0,r=V+Y+ft(x,L)|0}this._al=this._al+x|0,this._bl=this._bl+B|0,this._cl=this._cl+R|0,this._dl=this._dl+T|0,this._el=this._el+O|0,this._fl=this._fl+D|0,this._gl=this._gl+U|0,this._hl=this._hl+N|0,this._ah=this._ah+r+ft(this._al,x)|0,this._bh=this._bh+i+ft(this._bl,B)|0,this._ch=this._ch+n+ft(this._cl,R)|0,this._dh=this._dh+a+ft(this._dl,T)|0,this._eh=this._eh+o+ft(this._el,O)|0,this._fh=this._fh+s+ft(this._fl,D)|0,this._gh=this._gh+y+ft(this._gl,U)|0,this._hh=this._hh+b+ft(this._hl,N)|0};go.prototype._hash=function(){var e=E5.allocUnsafe(64);function t(r,i,n){e.writeInt32BE(r,n),e.writeInt32BE(i,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e};qg.exports=go});var Ng=k((kN,Dg)=>{"use strict";m();var k5=re(),T5=Nh(),I5=Gi(),O5=Ne().Buffer,q5=new Array(160);function ks(){this.init(),this._w=q5,I5.call(this,128,112)}k5(ks,T5);ks.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this};ks.prototype._hash=function(){var e=O5.allocUnsafe(48);function t(r,i,n){e.writeInt32BE(r,n),e.writeInt32BE(i,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e};Dg.exports=ks});var Ts=k((IN,qr)=>{"use strict";m();qr.exports=function(t){var r=t.toLowerCase(),i=qr.exports[r];if(!i)throw new Error(r+" is not supported (we accept pull requests)");return new i};qr.exports.sha=_g();qr.exports.sha1=xg();qr.exports.sha224=Ag();qr.exports.sha256=Dh();qr.exports.sha384=Ng();qr.exports.sha512=Nh()});var Dr=k((qN,Lg)=>{"use strict";m();var D5=Ne().Buffer,Pg=ls().Transform,N5=Zn().StringDecoder,P5=re(),L5=Qa();function $t(e){Pg.call(this),this.hashMode=typeof e=="string",this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}P5($t,Pg);$t.prototype.update=function(e,t,r){var i=L5(e,t),n=this._update(i);return this.hashMode?this:(r&&(n=this._toString(n,r)),n)};$t.prototype.setAutoPadding=function(){};$t.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")};$t.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")};$t.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")};$t.prototype._transform=function(e,t,r){var i;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(n){i=n}finally{r(i)}};$t.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(r){t=r}e(t)};$t.prototype._finalOrDigest=function(e){var t=this.__final()||D5.alloc(0);return e&&(t=this._toString(t,e,!0)),t};$t.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new N5(t),this._encoding=t),this._encoding!==t)throw new Error("can\u2019t switch encodings");var i=this._decoder.write(e);return r&&(i+=this._decoder.end()),i};Lg.exports=$t});var bo=k((NN,Ug)=>{"use strict";m();var C5=re(),U5=ds(),F5=As(),j5=Ts(),Cg=Dr();function Is(e){Cg.call(this,"digest"),this._hash=e}C5(Is,Cg);Is.prototype._update=function(e){this._hash.update(e)};Is.prototype._final=function(){return this._hash.digest()};Ug.exports=function(t){return t=t.toLowerCase(),t==="md5"?new U5:t==="rmd160"||t==="ripemd160"?new F5:new Is(j5(t))}});var zg=k((LN,jg)=>{"use strict";m();var z5=re(),Vi=Ne().Buffer,Fg=Dr(),Z5=Vi.alloc(128),Jn=64;function Os(e,t){Fg.call(this,"digest"),typeof t=="string"&&(t=Vi.from(t)),this._alg=e,this._key=t,t.length>Jn?t=e(t):t.length<Jn&&(t=Vi.concat([t,Z5],Jn));for(var r=this._ipad=Vi.allocUnsafe(Jn),i=this._opad=Vi.allocUnsafe(Jn),n=0;n<Jn;n++)r[n]=t[n]^54,i[n]=t[n]^92;this._hash=[r]}z5(Os,Fg);Os.prototype._update=function(e){this._hash.push(e)};Os.prototype._final=function(){var e=this._alg(Vi.concat(this._hash));return this._alg(Vi.concat([this._opad,e]))};jg.exports=Os});var Ph=k((UN,Zg)=>{m();var H5=ds();Zg.exports=function(e){return new H5().update(e).digest()}});var Kg=k((jN,Wg)=>{"use strict";m();var W5=re(),K5=zg(),Hg=Dr(),_o=Ne().Buffer,G5=Ph(),Lh=As(),Ch=Ts(),V5=_o.alloc(128);function mo(e,t){Hg.call(this,"digest"),typeof t=="string"&&(t=_o.from(t));var r=e==="sha512"||e==="sha384"?128:64;if(this._alg=e,this._key=t,t.length>r){var i=e==="rmd160"?new Lh:Ch(e);t=i.update(t).digest()}else t.length<r&&(t=_o.concat([t,V5],r));for(var n=this._ipad=_o.allocUnsafe(r),a=this._opad=_o.allocUnsafe(r),o=0;o<r;o++)n[o]=t[o]^54,a[o]=t[o]^92;this._hash=e==="rmd160"?new Lh:Ch(e),this._hash.update(n)}W5(mo,Hg);mo.prototype._update=function(e){this._hash.update(e)};mo.prototype._final=function(){var e=this._hash.digest(),t=this._alg==="rmd160"?new Lh:Ch(this._alg);return t.update(this._opad).update(e).digest()};Wg.exports=function(t,r){return t=t.toLowerCase(),t==="rmd160"||t==="ripemd160"?new mo("rmd160",r):t==="md5"?new K5(G5,r):new mo(t,r)}});var qs=k((ZN,Gg)=>{"use strict";m();Gg.exports={}});var Uh=k((WN,Vg)=>{"use strict";m();var $5=isFinite,Y5=Math.pow(2,30)-1;Vg.exports=function(e,t){if(typeof e!="number")throw new TypeError("Iterations not a number");if(e<0||!$5(e))throw new TypeError("Bad iterations");if(typeof t!="number")throw new TypeError("Key length not a number");if(t<0||t>Y5||t!==t)throw new TypeError("Bad key length")}});var Fh=k((GN,Yg)=>{"use strict";m();var Ds;globalThis.process&&globalThis.process.browser?Ds="utf-8":globalThis.process&&globalThis.process.version?($g=parseInt(M.default.version.split(".")[0].slice(1),10),Ds=$g>=6?"utf-8":"binary"):Ds="utf-8";var $g;Yg.exports=Ds});var jh=k(($N,Qg)=>{"use strict";m();var J5=Ne().Buffer,X5=Qa(),Xg=typeof Uint8Array<"u",Q5=Xg&&typeof ArrayBuffer<"u",Jg=Q5&&ArrayBuffer.isView;Qg.exports=function(e,t,r){if(typeof e=="string"||J5.isBuffer(e)||Xg&&e instanceof Uint8Array||Jg&&Jg(e))return X5(e,t);throw new TypeError(r+" must be a string, a Buffer, a Uint8Array, or a DataView")}});var zh=k((JN,ib)=>{"use strict";m();var eB=Ph(),tB=As(),rB=Ts(),$i=Ne().Buffer,iB=Uh(),eb=Fh(),tb=jh(),nB=$i.alloc(128),Ns={__proto__:null,md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,"sha512-256":32,ripemd160:20,rmd160:20},aB={__proto__:null,"sha-1":"sha1","sha-224":"sha224","sha-256":"sha256","sha-384":"sha384","sha-512":"sha512","ripemd-160":"ripemd160"};function oB(e){return new tB().update(e).digest()}function fB(e){function t(r){return rB(e).update(r).digest()}return e==="rmd160"||e==="ripemd160"?oB:e==="md5"?eB:t}function rb(e,t,r){var i=fB(e),n=e==="sha512"||e==="sha384"?128:64;t.length>n?t=i(t):t.length<n&&(t=$i.concat([t,nB],n));for(var a=$i.allocUnsafe(n+Ns[e]),o=$i.allocUnsafe(n+Ns[e]),s=0;s<n;s++)a[s]=t[s]^54,o[s]=t[s]^92;var y=$i.allocUnsafe(n+r+4);a.copy(y,0,0,n),this.ipad1=y,this.ipad2=a,this.opad=o,this.alg=e,this.blocksize=n,this.hash=i,this.size=Ns[e]}rb.prototype.run=function(e,t){e.copy(t,this.blocksize);var r=this.hash(t);return r.copy(this.opad,this.blocksize),this.hash(this.opad)};function sB(e,t,r,i,n){iB(r,i),e=tb(e,eb,"Password"),t=tb(t,eb,"Salt");var a=(n||"sha1").toLowerCase(),o=aB[a]||a,s=Ns[o];if(typeof s!="number"||!s)throw new TypeError("Digest algorithm not supported: "+n);var y=new rb(o,e,t.length),b=$i.allocUnsafe(i),x=$i.allocUnsafe(t.length+4);t.copy(x,0,0,t.length);for(var B=0,R=s,T=Math.ceil(i/R),O=1;O<=T;O++){x.writeUInt32BE(O,t.length);for(var D=y.run(x,y.ipad1),U=D,N=1;N<r;N++){U=y.run(U,y.ipad2);for(var j=0;j<R;j++)D[j]^=U[j]}D.copy(b,B),B+=R}return b}ib.exports=sB});var lb=k((QN,ub)=>{"use strict";m();var fb=Ne().Buffer,uB=Uh(),nb=Fh(),ab=zh(),ob=jh(),Ps,wo=globalThis.crypto&&globalThis.crypto.subtle,lB={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},Zh=[],Yi;function Hh(){return Yi||(globalThis.process&&globalThis.process.nextTick?Yi=globalThis.process.nextTick:globalThis.queueMicrotask?Yi=globalThis.queueMicrotask:globalThis.setImmediate?Yi=globalThis.setImmediate:Yi=globalThis.setTimeout,Yi)}function sb(e,t,r,i,n){return wo.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then(function(a){return wo.deriveBits({name:"PBKDF2",salt:t,iterations:r,hash:{name:n}},a,i<<3)}).then(function(a){return fb.from(a)})}function hB(e){if(globalThis.process&&!globalThis.process.browser||!wo||!wo.importKey||!wo.deriveBits)return Promise.resolve(!1);if(Zh[e]!==void 0)return Zh[e];Ps=Ps||fb.alloc(8);var t=sb(Ps,Ps,10,128,e).then(function(){return!0},function(){return!1});return Zh[e]=t,t}function cB(e,t){e.then(function(r){Hh()(function(){t(null,r)})},function(r){Hh()(function(){t(r)})})}ub.exports=function(e,t,r,i,n,a){if(typeof n=="function"&&(a=n,n=void 0),uB(r,i),e=ob(e,nb,"Password"),t=ob(t,nb,"Salt"),typeof a!="function")throw new Error("No callback provided to pbkdf2");n=n||"sha1";var o=lB[n.toLowerCase()];if(!o||typeof globalThis.Promise!="function"){Hh()(function(){var s;try{s=ab(e,t,r,i,n)}catch(y){a(y);return}a(null,s)});return}cB(hB(o).then(function(s){return s?sb(e,t,r,i,o):ab(e,t,r,i,n)}),a)}});var Kh=k(Wh=>{"use strict";m();Wh.pbkdf2=lb();Wh.pbkdf2Sync=zh()});var Gh=k(Dt=>{"use strict";m();Dt.readUInt32BE=function(t,r){var i=t[0+r]<<24|t[1+r]<<16|t[2+r]<<8|t[3+r];return i>>>0};Dt.writeUInt32BE=function(t,r,i){t[0+i]=r>>>24,t[1+i]=r>>>16&255,t[2+i]=r>>>8&255,t[3+i]=r&255};Dt.ip=function(t,r,i,n){for(var a=0,o=0,s=6;s>=0;s-=2){for(var y=0;y<=24;y+=8)a<<=1,a|=r>>>y+s&1;for(var y=0;y<=24;y+=8)a<<=1,a|=t>>>y+s&1}for(var s=6;s>=0;s-=2){for(var y=1;y<=25;y+=8)o<<=1,o|=r>>>y+s&1;for(var y=1;y<=25;y+=8)o<<=1,o|=t>>>y+s&1}i[n+0]=a>>>0,i[n+1]=o>>>0};Dt.rip=function(t,r,i,n){for(var a=0,o=0,s=0;s<4;s++)for(var y=24;y>=0;y-=8)a<<=1,a|=r>>>y+s&1,a<<=1,a|=t>>>y+s&1;for(var s=4;s<8;s++)for(var y=24;y>=0;y-=8)o<<=1,o|=r>>>y+s&1,o<<=1,o|=t>>>y+s&1;i[n+0]=a>>>0,i[n+1]=o>>>0};Dt.pc1=function(t,r,i,n){for(var a=0,o=0,s=7;s>=5;s--){for(var y=0;y<=24;y+=8)a<<=1,a|=r>>y+s&1;for(var y=0;y<=24;y+=8)a<<=1,a|=t>>y+s&1}for(var y=0;y<=24;y+=8)a<<=1,a|=r>>y+s&1;for(var s=1;s<=3;s++){for(var y=0;y<=24;y+=8)o<<=1,o|=r>>y+s&1;for(var y=0;y<=24;y+=8)o<<=1,o|=t>>y+s&1}for(var y=0;y<=24;y+=8)o<<=1,o|=t>>y+s&1;i[n+0]=a>>>0,i[n+1]=o>>>0};Dt.r28shl=function(t,r){return t<<r&268435455|t>>>28-r};var Ls=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];Dt.pc2=function(t,r,i,n){for(var a=0,o=0,s=Ls.length>>>1,y=0;y<s;y++)a<<=1,a|=t>>>Ls[y]&1;for(var y=s;y<Ls.length;y++)o<<=1,o|=r>>>Ls[y]&1;i[n+0]=a>>>0,i[n+1]=o>>>0};Dt.expand=function(t,r,i){var n=0,a=0;n=(t&1)<<5|t>>>27;for(var o=23;o>=15;o-=4)n<<=6,n|=t>>>o&63;for(var o=11;o>=3;o-=4)a|=t>>>o&63,a<<=6;a|=(t&31)<<1|t>>>31,r[i+0]=n>>>0,r[i+1]=a>>>0};var hb=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];Dt.substitute=function(t,r){for(var i=0,n=0;n<4;n++){var a=t>>>18-n*6&63,o=hb[n*64+a];i<<=4,i|=o}for(var n=0;n<4;n++){var a=r>>>18-n*6&63,o=hb[256+n*64+a];i<<=4,i|=o}return i>>>0};var cb=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];Dt.permute=function(t){for(var r=0,i=0;i<cb.length;i++)r<<=1,r|=t>>>cb[i]&1;return r>>>0};Dt.padSplit=function(t,r,i){for(var n=t.toString(2);n.length<r;)n="0"+n;for(var a=[],o=0;o<r;o+=i)a.push(n.slice(o,o+i));return a.join(" ")}});var Xn=k((aP,pb)=>{m();pb.exports=db;function db(e,t){if(!e)throw new Error(t||"Assertion failed")}db.equal=function(t,r,i){if(t!=r)throw new Error(i||"Assertion failed: "+t+" != "+r)}});var Cs=k((fP,vb)=>{"use strict";m();var dB=Xn();function Nt(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=e.padding!==!1}vb.exports=Nt;Nt.prototype._init=function(){};Nt.prototype.update=function(t){return t.length===0?[]:this.type==="decrypt"?this._updateDecrypt(t):this._updateEncrypt(t)};Nt.prototype._buffer=function(t,r){for(var i=Math.min(this.buffer.length-this.bufferOff,t.length-r),n=0;n<i;n++)this.buffer[this.bufferOff+n]=t[r+n];return this.bufferOff+=i,i};Nt.prototype._flushBuffer=function(t,r){return this._update(this.buffer,0,t,r),this.bufferOff=0,this.blockSize};Nt.prototype._updateEncrypt=function(t){var r=0,i=0,n=(this.bufferOff+t.length)/this.blockSize|0,a=new Array(n*this.blockSize);this.bufferOff!==0&&(r+=this._buffer(t,r),this.bufferOff===this.buffer.length&&(i+=this._flushBuffer(a,i)));for(var o=t.length-(t.length-r)%this.blockSize;r<o;r+=this.blockSize)this._update(t,r,a,i),i+=this.blockSize;for(;r<t.length;r++,this.bufferOff++)this.buffer[this.bufferOff]=t[r];return a};Nt.prototype._updateDecrypt=function(t){for(var r=0,i=0,n=Math.ceil((this.bufferOff+t.length)/this.blockSize)-1,a=new Array(n*this.blockSize);n>0;n--)r+=this._buffer(t,r),i+=this._flushBuffer(a,i);return r+=this._buffer(t,r),a};Nt.prototype.final=function(t){var r;t&&(r=this.update(t));var i;return this.type==="encrypt"?i=this._finalEncrypt():i=this._finalDecrypt(),r?r.concat(i):i};Nt.prototype._pad=function(t,r){if(r===0)return!1;for(;r<t.length;)t[r++]=0;return!0};Nt.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var t=new Array(this.blockSize);return this._update(this.buffer,0,t,0),t};Nt.prototype._unpad=function(t){return t};Nt.prototype._finalDecrypt=function(){dB.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var t=new Array(this.blockSize);return this._flushBuffer(t,0),this._unpad(t)}});var Vh=k((uP,bb)=>{"use strict";m();var yb=Xn(),pB=re(),it=Gh(),gb=Cs();function vB(){this.tmp=new Array(2),this.keys=null}function yr(e){gb.call(this,e);var t=new vB;this._desState=t,this.deriveKeys(t,e.key)}pB(yr,gb);bb.exports=yr;yr.create=function(t){return new yr(t)};var yB=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];yr.prototype.deriveKeys=function(t,r){t.keys=new Array(32),yb.equal(r.length,this.blockSize,"Invalid key length");var i=it.readUInt32BE(r,0),n=it.readUInt32BE(r,4);it.pc1(i,n,t.tmp,0),i=t.tmp[0],n=t.tmp[1];for(var a=0;a<t.keys.length;a+=2){var o=yB[a>>>1];i=it.r28shl(i,o),n=it.r28shl(n,o),it.pc2(i,n,t.keys,a)}};yr.prototype._update=function(t,r,i,n){var a=this._desState,o=it.readUInt32BE(t,r),s=it.readUInt32BE(t,r+4);it.ip(o,s,a.tmp,0),o=a.tmp[0],s=a.tmp[1],this.type==="encrypt"?this._encrypt(a,o,s,a.tmp,0):this._decrypt(a,o,s,a.tmp,0),o=a.tmp[0],s=a.tmp[1],it.writeUInt32BE(i,o,n),it.writeUInt32BE(i,s,n+4)};yr.prototype._pad=function(t,r){if(this.padding===!1)return!1;for(var i=t.length-r,n=r;n<t.length;n++)t[n]=i;return!0};yr.prototype._unpad=function(t){if(this.padding===!1)return t;for(var r=t[t.length-1],i=t.length-r;i<t.length;i++)yb.equal(t[i],r);return t.slice(0,t.length-r)};yr.prototype._encrypt=function(t,r,i,n,a){for(var o=r,s=i,y=0;y<t.keys.length;y+=2){var b=t.keys[y],x=t.keys[y+1];it.expand(s,t.tmp,0),b^=t.tmp[0],x^=t.tmp[1];var B=it.substitute(b,x),R=it.permute(B),T=s;s=(o^R)>>>0,o=T}it.rip(s,o,n,a)};yr.prototype._decrypt=function(t,r,i,n,a){for(var o=i,s=r,y=t.keys.length-2;y>=0;y-=2){var b=t.keys[y],x=t.keys[y+1];it.expand(o,t.tmp,0),b^=t.tmp[0],x^=t.tmp[1];var B=it.substitute(b,x),R=it.permute(B),T=o;o=(s^R)>>>0,s=T}it.rip(o,s,n,a)}});var mb=k(_b=>{"use strict";m();var gB=Xn(),bB=re(),Us={};function _B(e){gB.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t<this.iv.length;t++)this.iv[t]=e[t]}function mB(e){function t(a){e.call(this,a),this._cbcInit()}bB(t,e);for(var r=Object.keys(Us),i=0;i<r.length;i++){var n=r[i];t.prototype[n]=Us[n]}return t.create=function(o){return new t(o)},t}_b.instantiate=mB;Us._cbcInit=function(){var t=new _B(this.options.iv);this._cbcState=t};Us._update=function(t,r,i,n){var a=this._cbcState,o=this.constructor.super_.prototype,s=a.iv;if(this.type==="encrypt"){for(var y=0;y<this.blockSize;y++)s[y]^=t[r+y];o._update.call(this,s,0,i,n);for(var y=0;y<this.blockSize;y++)s[y]=i[n+y]}else{o._update.call(this,t,r,i,n);for(var y=0;y<this.blockSize;y++)i[n+y]^=s[y];for(var y=0;y<this.blockSize;y++)s[y]=t[r+y]}}});var Eb=k((dP,xb)=>{"use strict";m();var wB=Xn(),xB=re(),wb=Cs(),Xr=Vh();function EB(e,t){wB.equal(t.length,24,"Invalid key length");var r=t.slice(0,8),i=t.slice(8,16),n=t.slice(16,24);e==="encrypt"?this.ciphers=[Xr.create({type:"encrypt",key:r}),Xr.create({type:"decrypt",key:i}),Xr.create({type:"encrypt",key:n})]:this.ciphers=[Xr.create({type:"decrypt",key:n}),Xr.create({type:"encrypt",key:i}),Xr.create({type:"decrypt",key:r})]}function Ji(e){wb.call(this,e);var t=new EB(this.type,this.options.key);this._edeState=t}xB(Ji,wb);xb.exports=Ji;Ji.create=function(t){return new Ji(t)};Ji.prototype._update=function(t,r,i,n){var a=this._edeState;a.ciphers[0]._update(t,r,i,n),a.ciphers[1]._update(i,n,i,n),a.ciphers[2]._update(i,n,i,n)};Ji.prototype._pad=Xr.prototype._pad;Ji.prototype._unpad=Xr.prototype._unpad});var Sb=k(Qn=>{"use strict";m();Qn.utils=Gh();Qn.Cipher=Cs();Qn.DES=Vh();Qn.CBC=mb();Qn.EDE=Eb()});var Bb=k((gP,Ab)=>{m();var Mb=Dr(),Nr=Sb(),SB=re(),Xi=Ne().Buffer,xo={"des-ede3-cbc":Nr.CBC.instantiate(Nr.EDE),"des-ede3":Nr.EDE,"des-ede-cbc":Nr.CBC.instantiate(Nr.EDE),"des-ede":Nr.EDE,"des-cbc":Nr.CBC.instantiate(Nr.DES),"des-ecb":Nr.DES};xo.des=xo["des-cbc"];xo.des3=xo["des-ede3-cbc"];Ab.exports=Fs;SB(Fs,Mb);function Fs(e){Mb.call(this);var t=e.mode.toLowerCase(),r=xo[t],i;e.decrypt?i="decrypt":i="encrypt";var n=e.key;Xi.isBuffer(n)||(n=Xi.from(n)),(t==="des-ede"||t==="des-ede-cbc")&&(n=Xi.concat([n,n.slice(0,8)]));var a=e.iv;Xi.isBuffer(a)||(a=Xi.from(a)),this._des=r.create({key:n,iv:a,type:i})}Fs.prototype._update=function(e){return Xi.from(this._des.update(e))};Fs.prototype._final=function(){return Xi.from(this._des.final())}});var Rb=k($h=>{m();$h.encrypt=function(e,t){return e._cipher.encryptBlock(t)};$h.decrypt=function(e,t){return e._cipher.decryptBlock(t)}});var ea=k((wP,kb)=>{m();kb.exports=function(t,r){for(var i=Math.min(t.length,r.length),n=new I.Buffer(i),a=0;a<i;++a)n[a]=t[a]^r[a];return n}});var Ib=k(Yh=>{m();var Tb=ea();Yh.encrypt=function(e,t){var r=Tb(t,e._prev);return e._prev=e._cipher.encryptBlock(r),e._prev};Yh.decrypt=function(e,t){var r=e._prev;e._prev=t;var i=e._cipher.decryptBlock(t);return Tb(i,r)}});var Db=k(qb=>{m();var Eo=Ne().Buffer,MB=ea();function Ob(e,t,r){var i=t.length,n=MB(t,e._cache);return e._cache=e._cache.slice(i),e._prev=Eo.concat([e._prev,r?t:n]),n}qb.encrypt=function(e,t,r){for(var i=Eo.allocUnsafe(0),n;t.length;)if(e._cache.length===0&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=Eo.allocUnsafe(0)),e._cache.length<=t.length)n=e._cache.length,i=Eo.concat([i,Ob(e,t.slice(0,n),r)]),t=t.slice(n);else{i=Eo.concat([i,Ob(e,t,r)]);break}return i}});var Pb=k(Nb=>{m();var Jh=Ne().Buffer;function AB(e,t,r){var i=e._cipher.encryptBlock(e._prev),n=i[0]^t;return e._prev=Jh.concat([e._prev.slice(1),Jh.from([r?t:n])]),n}Nb.encrypt=function(e,t,r){for(var i=t.length,n=Jh.allocUnsafe(i),a=-1;++a<i;)n[a]=AB(e,t[a],r);return n}});var Cb=k(Lb=>{m();var js=Ne().Buffer;function BB(e,t,r){for(var i,n=-1,a=8,o=0,s,y;++n<a;)i=e._cipher.encryptBlock(e._prev),s=t&1<<7-n?128:0,y=i[0]^s,o+=(y&128)>>n%8,e._prev=RB(e._prev,r?s:y);return o}function RB(e,t){var r=e.length,i=-1,n=js.allocUnsafe(e.length);for(e=js.concat([e,js.from([t])]);++i<r;)n[i]=e[i]<<1|e[i+1]>>7;return n}Lb.encrypt=function(e,t,r){for(var i=t.length,n=js.allocUnsafe(i),a=-1;++a<i;)n[a]=BB(e,t[a],r);return n}});var Fb=k(Ub=>{m();var kB=ea();function TB(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}Ub.encrypt=function(e,t){for(;e._cache.length<t.length;)e._cache=I.Buffer.concat([e._cache,TB(e)]);var r=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),kB(t,r)}});var Xh=k((qP,jb)=>{m();function IB(e){for(var t=e.length,r;t--;)if(r=e.readUInt8(t),r===255)e.writeUInt8(0,t);else{r++,e.writeUInt8(r,t);break}}jb.exports=IB});var ec=k(Zb=>{m();var OB=ea(),zb=Ne().Buffer,qB=Xh();function DB(e){var t=e._cipher.encryptBlockRaw(e._prev);return qB(e._prev),t}var Qh=16;Zb.encrypt=function(e,t){var r=Math.ceil(t.length/Qh),i=e._cache.length;e._cache=zb.concat([e._cache,zb.allocUnsafe(r*Qh)]);for(var n=0;n<r;n++){var a=DB(e),o=i+n*Qh;e._cache.writeUInt32BE(a[0],o+0),e._cache.writeUInt32BE(a[1],o+4),e._cache.writeUInt32BE(a[2],o+8),e._cache.writeUInt32BE(a[3],o+12)}var s=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),OB(t,s)}});var tc=k((LP,NB)=>{NB.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}});var Zs=k((CP,Hb)=>{m();var PB={ECB:Rb(),CBC:Ib(),CFB:Db(),CFB8:Pb(),CFB1:Cb(),OFB:Fb(),CTR:ec(),GCM:ec()},zs=tc();for(rc in zs)zs[rc].module=PB[zs[rc].mode];var rc;Hb.exports=zs});var So=k((FP,Kb)=>{m();var Hs=Ne().Buffer;function nc(e){Hs.isBuffer(e)||(e=Hs.from(e));for(var t=e.length/4|0,r=new Array(t),i=0;i<t;i++)r[i]=e.readUInt32BE(i*4);return r}function ic(e){for(var t=0;t<e.length;e++)e[t]=0}function Wb(e,t,r,i,n){for(var a=r[0],o=r[1],s=r[2],y=r[3],b=e[0]^t[0],x=e[1]^t[1],B=e[2]^t[2],R=e[3]^t[3],T,O,D,U,N=4,j=1;j<n;j++)T=a[b>>>24]^o[x>>>16&255]^s[B>>>8&255]^y[R&255]^t[N++],O=a[x>>>24]^o[B>>>16&255]^s[R>>>8&255]^y[b&255]^t[N++],D=a[B>>>24]^o[R>>>16&255]^s[b>>>8&255]^y[x&255]^t[N++],U=a[R>>>24]^o[b>>>16&255]^s[x>>>8&255]^y[B&255]^t[N++],b=T,x=O,B=D,R=U;return T=(i[b>>>24]<<24|i[x>>>16&255]<<16|i[B>>>8&255]<<8|i[R&255])^t[N++],O=(i[x>>>24]<<24|i[B>>>16&255]<<16|i[R>>>8&255]<<8|i[b&255])^t[N++],D=(i[B>>>24]<<24|i[R>>>16&255]<<16|i[b>>>8&255]<<8|i[x&255])^t[N++],U=(i[R>>>24]<<24|i[b>>>16&255]<<16|i[x>>>8&255]<<8|i[B&255])^t[N++],T=T>>>0,O=O>>>0,D=D>>>0,U=U>>>0,[T,O,D,U]}var LB=[0,1,2,4,8,16,32,64,128,27,54],rt=(function(){for(var e=new Array(256),t=0;t<256;t++)t<128?e[t]=t<<1:e[t]=t<<1^283;for(var r=[],i=[],n=[[],[],[],[]],a=[[],[],[],[]],o=0,s=0,y=0;y<256;++y){var b=s^s<<1^s<<2^s<<3^s<<4;b=b>>>8^b&255^99,r[o]=b,i[b]=o;var x=e[o],B=e[x],R=e[B],T=e[b]*257^b*16843008;n[0][o]=T<<24|T>>>8,n[1][o]=T<<16|T>>>16,n[2][o]=T<<8|T>>>24,n[3][o]=T,T=R*16843009^B*65537^x*257^o*16843008,a[0][b]=T<<24|T>>>8,a[1][b]=T<<16|T>>>16,a[2][b]=T<<8|T>>>24,a[3][b]=T,o===0?o=s=1:(o=x^e[e[e[R^x]]],s^=e[e[s]])}return{SBOX:r,INV_SBOX:i,SUB_MIX:n,INV_SUB_MIX:a}})();function Pt(e){this._key=nc(e),this._reset()}Pt.blockSize=16;Pt.keySize=256/8;Pt.prototype.blockSize=Pt.blockSize;Pt.prototype.keySize=Pt.keySize;Pt.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,i=(r+1)*4,n=[],a=0;a<t;a++)n[a]=e[a];for(a=t;a<i;a++){var o=n[a-1];a%t===0?(o=o<<8|o>>>24,o=rt.SBOX[o>>>24]<<24|rt.SBOX[o>>>16&255]<<16|rt.SBOX[o>>>8&255]<<8|rt.SBOX[o&255],o^=LB[a/t|0]<<24):t>6&&a%t===4&&(o=rt.SBOX[o>>>24]<<24|rt.SBOX[o>>>16&255]<<16|rt.SBOX[o>>>8&255]<<8|rt.SBOX[o&255]),n[a]=n[a-t]^o}for(var s=[],y=0;y<i;y++){var b=i-y,x=n[b-(y%4?0:4)];y<4||b<=4?s[y]=x:s[y]=rt.INV_SUB_MIX[0][rt.SBOX[x>>>24]]^rt.INV_SUB_MIX[1][rt.SBOX[x>>>16&255]]^rt.INV_SUB_MIX[2][rt.SBOX[x>>>8&255]]^rt.INV_SUB_MIX[3][rt.SBOX[x&255]]}this._nRounds=r,this._keySchedule=n,this._invKeySchedule=s};Pt.prototype.encryptBlockRaw=function(e){return e=nc(e),Wb(e,this._keySchedule,rt.SUB_MIX,rt.SBOX,this._nRounds)};Pt.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=Hs.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r};Pt.prototype.decryptBlock=function(e){e=nc(e);var t=e[1];e[1]=e[3],e[3]=t;var r=Wb(e,this._invKeySchedule,rt.INV_SUB_MIX,rt.INV_SBOX,this._nRounds),i=Hs.allocUnsafe(16);return i.writeUInt32BE(r[0],0),i.writeUInt32BE(r[3],4),i.writeUInt32BE(r[2],8),i.writeUInt32BE(r[1],12),i};Pt.prototype.scrub=function(){ic(this._keySchedule),ic(this._invKeySchedule),ic(this._key)};Kb.exports.AES=Pt});var $b=k((zP,Vb)=>{m();var ta=Ne().Buffer,CB=ta.alloc(16,0);function UB(e){return[e.readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)]}function Gb(e){var t=ta.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function Mo(e){this.h=e,this.state=ta.alloc(16,0),this.cache=ta.allocUnsafe(0)}Mo.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()};Mo.prototype._multiply=function(){for(var e=UB(this.h),t=[0,0,0,0],r,i,n,a=-1;++a<128;){for(i=(this.state[~~(a/8)]&1<<7-a%8)!==0,i&&(t[0]^=e[0],t[1]^=e[1],t[2]^=e[2],t[3]^=e[3]),n=(e[3]&1)!==0,r=3;r>0;r--)e[r]=e[r]>>>1|(e[r-1]&1)<<31;e[0]=e[0]>>>1,n&&(e[0]=e[0]^225<<24)}this.state=Gb(t)};Mo.prototype.update=function(e){this.cache=ta.concat([this.cache,e]);for(var t;this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)};Mo.prototype.final=function(e,t){return this.cache.length&&this.ghash(ta.concat([this.cache,CB],16)),this.ghash(Gb([0,e,0,t])),this.state};Vb.exports=Mo});var ac=k((HP,Xb)=>{m();var FB=So(),Et=Ne().Buffer,Yb=Dr(),jB=re(),Jb=$b(),zB=ea(),ZB=Xh();function HB(e,t){var r=0;e.length!==t.length&&r++;for(var i=Math.min(e.length,t.length),n=0;n<i;++n)r+=e[n]^t[n];return r}function WB(e,t,r){if(t.length===12)return e._finID=Et.concat([t,Et.from([0,0,0,1])]),Et.concat([t,Et.from([0,0,0,2])]);var i=new Jb(r),n=t.length,a=n%16;i.update(t),a&&(a=16-a,i.update(Et.alloc(a,0))),i.update(Et.alloc(8,0));var o=n*8,s=Et.alloc(8);s.writeUIntBE(o,0,8),i.update(s),e._finID=i.state;var y=Et.from(e._finID);return ZB(y),y}function Qi(e,t,r,i){Yb.call(this);var n=Et.alloc(4,0);this._cipher=new FB.AES(t);var a=this._cipher.encryptBlock(n);this._ghash=new Jb(a),r=WB(this,r,a),this._prev=Et.from(r),this._cache=Et.allocUnsafe(0),this._secCache=Et.allocUnsafe(0),this._decrypt=i,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}jB(Qi,Yb);Qi.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=Et.alloc(t,0),this._ghash.update(t))}this._called=!0;var r=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(r),this._len+=e.length,r};Qi.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=zB(this._ghash.final(this._alen*8,this._len*8),this._cipher.encryptBlock(this._finID));if(this._decrypt&&HB(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()};Qi.prototype.getAuthTag=function(){if(this._decrypt||!Et.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag};Qi.prototype.setAuthTag=function(t){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=t};Qi.prototype.setAAD=function(t){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(t),this._alen+=t.length};Xb.exports=Qi});var fc=k((KP,e_)=>{m();var KB=So(),oc=Ne().Buffer,Qb=Dr(),GB=re();function Ws(e,t,r,i){Qb.call(this),this._cipher=new KB.AES(t),this._prev=oc.from(r),this._cache=oc.allocUnsafe(0),this._secCache=oc.allocUnsafe(0),this._decrypt=i,this._mode=e}GB(Ws,Qb);Ws.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)};Ws.prototype._final=function(){this._cipher.scrub()};e_.exports=Ws});var Ao=k((VP,t_)=>{m();var en=Ne().Buffer,VB=ds();function $B(e,t,r,i){if(en.isBuffer(e)||(e=en.from(e,"binary")),t&&(en.isBuffer(t)||(t=en.from(t,"binary")),t.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var n=r/8,a=en.alloc(n),o=en.alloc(i||0),s=en.alloc(0);n>0||i>0;){var y=new VB;y.update(s),y.update(e),t&&y.update(t),s=y.digest();var b=0;if(n>0){var x=a.length-n;b=Math.min(n,s.length),s.copy(a,x,0,b),n-=b}if(b<s.length&&i>0){var B=o.length-i,R=Math.min(i,s.length-b);s.copy(o,B,b,b+R),i-=R}}return s.fill(0),{key:a,iv:o}}t_.exports=$B});var a_=k(sc=>{m();var r_=Zs(),YB=ac(),Pr=Ne().Buffer,JB=fc(),i_=Dr(),XB=So(),QB=Ao(),eR=re();function Bo(e,t,r){i_.call(this),this._cache=new Ks,this._cipher=new XB.AES(t),this._prev=Pr.from(r),this._mode=e,this._autopadding=!0}eR(Bo,i_);Bo.prototype._update=function(e){this._cache.add(e);for(var t,r,i=[];t=this._cache.get();)r=this._mode.encrypt(this,t),i.push(r);return Pr.concat(i)};var tR=Pr.alloc(16,16);Bo.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(tR))throw this._cipher.scrub(),new Error("data not multiple of block length")};Bo.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this};function Ks(){this.cache=Pr.allocUnsafe(0)}Ks.prototype.add=function(e){this.cache=Pr.concat([this.cache,e])};Ks.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null};Ks.prototype.flush=function(){for(var e=16-this.cache.length,t=Pr.allocUnsafe(e),r=-1;++r<e;)t.writeUInt8(e,r);return Pr.concat([this.cache,t])};function n_(e,t,r){var i=r_[e.toLowerCase()];if(!i)throw new TypeError("invalid suite type");if(typeof t=="string"&&(t=Pr.from(t)),t.length!==i.key/8)throw new TypeError("invalid key length "+t.length);if(typeof r=="string"&&(r=Pr.from(r)),i.mode!=="GCM"&&r.length!==i.iv)throw new TypeError("invalid iv length "+r.length);return i.type==="stream"?new JB(i.module,t,r):i.type==="auth"?new YB(i.module,t,r):new Bo(i.module,t,r)}function rR(e,t){var r=r_[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var i=QB(t,!1,r.key,r.iv);return n_(e,i.key,i.iv)}sc.createCipheriv=n_;sc.createCipher=rR});var u_=k(uc=>{m();var iR=ac(),ra=Ne().Buffer,o_=Zs(),nR=fc(),f_=Dr(),aR=So(),oR=Ao(),fR=re();function Ro(e,t,r){f_.call(this),this._cache=new Gs,this._last=void 0,this._cipher=new aR.AES(t),this._prev=ra.from(r),this._mode=e,this._autopadding=!0}fR(Ro,f_);Ro.prototype._update=function(e){this._cache.add(e);for(var t,r,i=[];t=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,t),i.push(r);return ra.concat(i)};Ro.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return sR(this._mode.decrypt(this,e));if(e)throw new Error("data not multiple of block length")};Ro.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this};function Gs(){this.cache=ra.allocUnsafe(0)}Gs.prototype.add=function(e){this.cache=ra.concat([this.cache,e])};Gs.prototype.get=function(e){var t;if(e){if(this.cache.length>16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null};Gs.prototype.flush=function(){if(this.cache.length)return this.cache};function sR(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");for(var r=-1;++r<t;)if(e[r+(16-t)]!==t)throw new Error("unable to decrypt data");if(t!==16)return e.slice(0,16-t)}function s_(e,t,r){var i=o_[e.toLowerCase()];if(!i)throw new TypeError("invalid suite type");if(typeof r=="string"&&(r=ra.from(r)),i.mode!=="GCM"&&r.length!==i.iv)throw new TypeError("invalid iv length "+r.length);if(typeof t=="string"&&(t=ra.from(t)),t.length!==i.key/8)throw new TypeError("invalid key length "+t.length);return i.type==="stream"?new nR(i.module,t,r,!0):i.type==="auth"?new iR(i.module,t,r,!0):new Ro(i.module,t,r)}function uR(e,t){var r=o_[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var i=oR(t,!1,r.key,r.iv);return s_(e,i.key,i.iv)}uc.createDecipher=uR;uc.createDecipheriv=s_});var Vs=k(Yt=>{m();var l_=a_(),h_=u_(),lR=tc();function hR(){return Object.keys(lR)}Yt.createCipher=Yt.Cipher=l_.createCipher;Yt.createCipheriv=Yt.Cipheriv=l_.createCipheriv;Yt.createDecipher=Yt.Decipher=h_.createDecipher;Yt.createDecipheriv=Yt.Decipheriv=h_.createDecipheriv;Yt.listCiphers=Yt.getCiphers=hR});var c_=k(Lr=>{m();Lr["des-ecb"]={key:8,iv:0};Lr["des-cbc"]=Lr.des={key:8,iv:8};Lr["des-ede3-cbc"]=Lr.des3={key:24,iv:8};Lr["des-ede3"]={key:24,iv:0};Lr["des-ede-cbc"]={key:16,iv:8};Lr["des-ede"]={key:16,iv:0}});var g_=k(Jt=>{m();var d_=Bb(),lc=Vs(),Qr=Zs(),Cr=c_(),p_=Ao();function cR(e,t){e=e.toLowerCase();var r,i;if(Qr[e])r=Qr[e].key,i=Qr[e].iv;else if(Cr[e])r=Cr[e].key*8,i=Cr[e].iv;else throw new TypeError("invalid suite type");var n=p_(t,!1,r,i);return v_(e,n.key,n.iv)}function dR(e,t){e=e.toLowerCase();var r,i;if(Qr[e])r=Qr[e].key,i=Qr[e].iv;else if(Cr[e])r=Cr[e].key*8,i=Cr[e].iv;else throw new TypeError("invalid suite type");var n=p_(t,!1,r,i);return y_(e,n.key,n.iv)}function v_(e,t,r){if(e=e.toLowerCase(),Qr[e])return lc.createCipheriv(e,t,r);if(Cr[e])return new d_({key:t,iv:r,mode:e});throw new TypeError("invalid suite type")}function y_(e,t,r){if(e=e.toLowerCase(),Qr[e])return lc.createDecipheriv(e,t,r);if(Cr[e])return new d_({key:t,iv:r,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}function pR(){return Object.keys(Cr).concat(lc.getCiphers())}Jt.createCipher=Jt.Cipher=cR;Jt.createCipheriv=Jt.Cipheriv=v_;Jt.createDecipher=Jt.Decipher=dR;Jt.createDecipheriv=Jt.Decipheriv=y_;Jt.listCiphers=Jt.getCiphers=pR});var ei=k((b_,hc)=>{m();(function(e,t){"use strict";function r(A,h){if(!A)throw new Error(h||"Assertion failed")}function i(A,h){A.super_=h;var _=function(){};_.prototype=h.prototype,A.prototype=new _,A.prototype.constructor=A}function n(A,h,_){if(n.isBN(A))return A;this.negative=0,this.words=null,this.length=0,this.red=null,A!==null&&((h==="le"||h==="be")&&(_=h,h=10),this._init(A||0,h||10,_||"be"))}typeof e=="object"?e.exports=n:t.BN=n,n.BN=n,n.wordSize=26;var a;try{typeof window<"u"&&typeof window.Buffer<"u"?a=window.Buffer:a=st().Buffer}catch{}n.isBN=function(h){return h instanceof n?!0:h!==null&&typeof h=="object"&&h.constructor.wordSize===n.wordSize&&Array.isArray(h.words)},n.max=function(h,_){return h.cmp(_)>0?h:_},n.min=function(h,_){return h.cmp(_)<0?h:_},n.prototype._init=function(h,_,d){if(typeof h=="number")return this._initNumber(h,_,d);if(typeof h=="object")return this._initArray(h,_,d);_==="hex"&&(_=16),r(_===(_|0)&&_>=2&&_<=36),h=h.toString().replace(/\s+/g,"");var f=0;h[0]==="-"&&(f++,this.negative=1),f<h.length&&(_===16?this._parseHex(h,f,d):(this._parseBase(h,_,f),d==="le"&&this._initArray(this.toArray(),_,d)))},n.prototype._initNumber=function(h,_,d){h<0&&(this.negative=1,h=-h),h<67108864?(this.words=[h&67108863],this.length=1):h<4503599627370496?(this.words=[h&67108863,h/67108864&67108863],this.length=2):(r(h<9007199254740992),this.words=[h&67108863,h/67108864&67108863,1],this.length=3),d==="le"&&this._initArray(this.toArray(),_,d)},n.prototype._initArray=function(h,_,d){if(r(typeof h.length=="number"),h.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(h.length/3),this.words=new Array(this.length);for(var f=0;f<this.length;f++)this.words[f]=0;var l,v,g=0;if(d==="be")for(f=h.length-1,l=0;f>=0;f-=3)v=h[f]|h[f-1]<<8|h[f-2]<<16,this.words[l]|=v<<g&67108863,this.words[l+1]=v>>>26-g&67108863,g+=24,g>=26&&(g-=26,l++);else if(d==="le")for(f=0,l=0;f<h.length;f+=3)v=h[f]|h[f+1]<<8|h[f+2]<<16,this.words[l]|=v<<g&67108863,this.words[l+1]=v>>>26-g&67108863,g+=24,g>=26&&(g-=26,l++);return this.strip()};function o(A,h){var _=A.charCodeAt(h);return _>=65&&_<=70?_-55:_>=97&&_<=102?_-87:_-48&15}function s(A,h,_){var d=o(A,_);return _-1>=h&&(d|=o(A,_-1)<<4),d}n.prototype._parseHex=function(h,_,d){this.length=Math.ceil((h.length-_)/6),this.words=new Array(this.length);for(var f=0;f<this.length;f++)this.words[f]=0;var l=0,v=0,g;if(d==="be")for(f=h.length-1;f>=_;f-=2)g=s(h,_,f)<<l,this.words[v]|=g&67108863,l>=18?(l-=18,v+=1,this.words[v]|=g>>>26):l+=8;else{var p=h.length-_;for(f=p%2===0?_+1:_;f<h.length;f+=2)g=s(h,_,f)<<l,this.words[v]|=g&67108863,l>=18?(l-=18,v+=1,this.words[v]|=g>>>26):l+=8}this.strip()};function y(A,h,_,d){for(var f=0,l=Math.min(A.length,_),v=h;v<l;v++){var g=A.charCodeAt(v)-48;f*=d,g>=49?f+=g-49+10:g>=17?f+=g-17+10:f+=g}return f}n.prototype._parseBase=function(h,_,d){this.words=[0],this.length=1;for(var f=0,l=1;l<=67108863;l*=_)f++;f--,l=l/_|0;for(var v=h.length-d,g=v%f,p=Math.min(v,v-g)+d,u=0,w=d;w<p;w+=f)u=y(h,w,w+f,_),this.imuln(l),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(g!==0){var E=1;for(u=y(h,w,h.length,_),w=0;w<g;w++)E*=_;this.imuln(E),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},n.prototype.copy=function(h){h.words=new Array(this.length);for(var _=0;_<this.length;_++)h.words[_]=this.words[_];h.length=this.length,h.negative=this.negative,h.red=this.red},n.prototype.clone=function(){var h=new n(null);return this.copy(h),h},n.prototype._expand=function(h){for(;this.length<h;)this.words[this.length++]=0;return this},n.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},n.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},n.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var b=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],x=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],B=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(h,_){h=h||10,_=_|0||1;var d;if(h===16||h==="hex"){d="";for(var f=0,l=0,v=0;v<this.length;v++){var g=this.words[v],p=((g<<f|l)&16777215).toString(16);l=g>>>24-f&16777215,f+=2,f>=26&&(f-=26,v--),l!==0||v!==this.length-1?d=b[6-p.length]+p+d:d=p+d}for(l!==0&&(d=l.toString(16)+d);d.length%_!==0;)d="0"+d;return this.negative!==0&&(d="-"+d),d}if(h===(h|0)&&h>=2&&h<=36){var u=x[h],w=B[h];d="";var E=this.clone();for(E.negative=0;!E.isZero();){var c=E.modn(w).toString(h);E=E.idivn(w),E.isZero()?d=c+d:d=b[u-c.length]+c+d}for(this.isZero()&&(d="0"+d);d.length%_!==0;)d="0"+d;return this.negative!==0&&(d="-"+d),d}r(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var h=this.words[0];return this.length===2?h+=this.words[1]*67108864:this.length===3&&this.words[2]===1?h+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-h:h},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(h,_){return r(typeof a<"u"),this.toArrayLike(a,h,_)},n.prototype.toArray=function(h,_){return this.toArrayLike(Array,h,_)},n.prototype.toArrayLike=function(h,_,d){var f=this.byteLength(),l=d||Math.max(1,f);r(f<=l,"byte array longer than desired length"),r(l>0,"Requested array length <= 0"),this.strip();var v=_==="le",g=new h(l),p,u,w=this.clone();if(v){for(u=0;!w.isZero();u++)p=w.andln(255),w.iushrn(8),g[u]=p;for(;u<l;u++)g[u]=0}else{for(u=0;u<l-f;u++)g[u]=0;for(u=0;!w.isZero();u++)p=w.andln(255),w.iushrn(8),g[l-u-1]=p}return g},Math.clz32?n.prototype._countBits=function(h){return 32-Math.clz32(h)}:n.prototype._countBits=function(h){var _=h,d=0;return _>=4096&&(d+=13,_>>>=13),_>=64&&(d+=7,_>>>=7),_>=8&&(d+=4,_>>>=4),_>=2&&(d+=2,_>>>=2),d+_},n.prototype._zeroBits=function(h){if(h===0)return 26;var _=h,d=0;return(_&8191)===0&&(d+=13,_>>>=13),(_&127)===0&&(d+=7,_>>>=7),(_&15)===0&&(d+=4,_>>>=4),(_&3)===0&&(d+=2,_>>>=2),(_&1)===0&&d++,d},n.prototype.bitLength=function(){var h=this.words[this.length-1],_=this._countBits(h);return(this.length-1)*26+_};function R(A){for(var h=new Array(A.bitLength()),_=0;_<h.length;_++){var d=_/26|0,f=_%26;h[_]=(A.words[d]&1<<f)>>>f}return h}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var h=0,_=0;_<this.length;_++){var d=this._zeroBits(this.words[_]);if(h+=d,d!==26)break}return h},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(h){return this.negative!==0?this.abs().inotn(h).iaddn(1):this.clone()},n.prototype.fromTwos=function(h){return this.testn(h-1)?this.notn(h).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return this.negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},n.prototype.iuor=function(h){for(;this.length<h.length;)this.words[this.length++]=0;for(var _=0;_<h.length;_++)this.words[_]=this.words[_]|h.words[_];return this.strip()},n.prototype.ior=function(h){return r((this.negative|h.negative)===0),this.iuor(h)},n.prototype.or=function(h){return this.length>h.length?this.clone().ior(h):h.clone().ior(this)},n.prototype.uor=function(h){return this.length>h.length?this.clone().iuor(h):h.clone().iuor(this)},n.prototype.iuand=function(h){var _;this.length>h.length?_=h:_=this;for(var d=0;d<_.length;d++)this.words[d]=this.words[d]&h.words[d];return this.length=_.length,this.strip()},n.prototype.iand=function(h){return r((this.negative|h.negative)===0),this.iuand(h)},n.prototype.and=function(h){return this.length>h.length?this.clone().iand(h):h.clone().iand(this)},n.prototype.uand=function(h){return this.length>h.length?this.clone().iuand(h):h.clone().iuand(this)},n.prototype.iuxor=function(h){var _,d;this.length>h.length?(_=this,d=h):(_=h,d=this);for(var f=0;f<d.length;f++)this.words[f]=_.words[f]^d.words[f];if(this!==_)for(;f<_.length;f++)this.words[f]=_.words[f];return this.length=_.length,this.strip()},n.prototype.ixor=function(h){return r((this.negative|h.negative)===0),this.iuxor(h)},n.prototype.xor=function(h){return this.length>h.length?this.clone().ixor(h):h.clone().ixor(this)},n.prototype.uxor=function(h){return this.length>h.length?this.clone().iuxor(h):h.clone().iuxor(this)},n.prototype.inotn=function(h){r(typeof h=="number"&&h>=0);var _=Math.ceil(h/26)|0,d=h%26;this._expand(_),d>0&&_--;for(var f=0;f<_;f++)this.words[f]=~this.words[f]&67108863;for(d>0&&(this.words[f]=~this.words[f]&67108863>>26-d,f++);f<this.length;f++)this.words[f]=0;return this.strip()},n.prototype.notn=function(h){return this.clone().inotn(h)},n.prototype.setn=function(h,_){r(typeof h=="number"&&h>=0);var d=h/26|0,f=h%26;return this._expand(d+1),_?this.words[d]=this.words[d]|1<<f:this.words[d]=this.words[d]&~(1<<f),this.strip()},n.prototype.iadd=function(h){var _;if(this.negative!==0&&h.negative===0)return this.negative=0,_=this.isub(h),this.negative^=1,this._normSign();if(this.negative===0&&h.negative!==0)return h.negative=0,_=this.isub(h),h.negative=1,_._normSign();var d,f;this.length>h.length?(d=this,f=h):(d=h,f=this);for(var l=0,v=0;v<f.length;v++)_=(d.words[v]|0)+(f.words[v]|0)+l,this.words[v]=_&67108863,l=_>>>26;for(;l!==0&&v<d.length;v++)_=(d.words[v]|0)+l,this.words[v]=_&67108863,l=_>>>26;if(this.length=d.length,l!==0)this.words[this.length]=l,this.length++;else if(d!==this)for(;v<d.length;v++)this.words[v]=d.words[v];return this},n.prototype.add=function(h){var _;return h.negative!==0&&this.negative===0?(h.negative=0,_=this.sub(h),h.negative^=1,_):h.negative===0&&this.negative!==0?(this.negative=0,_=h.sub(this),this.negative=1,_):this.length>h.length?this.clone().iadd(h):h.clone().iadd(this)},n.prototype.isub=function(h){if(h.negative!==0){h.negative=0;var _=this.iadd(h);return h.negative=1,_._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(h),this.negative=1,this._normSign();var d=this.cmp(h);if(d===0)return this.negative=0,this.length=1,this.words[0]=0,this;var f,l;d>0?(f=this,l=h):(f=h,l=this);for(var v=0,g=0;g<l.length;g++)_=(f.words[g]|0)-(l.words[g]|0)+v,v=_>>26,this.words[g]=_&67108863;for(;v!==0&&g<f.length;g++)_=(f.words[g]|0)+v,v=_>>26,this.words[g]=_&67108863;if(v===0&&g<f.length&&f!==this)for(;g<f.length;g++)this.words[g]=f.words[g];return this.length=Math.max(this.length,g),f!==this&&(this.negative=1),this.strip()},n.prototype.sub=function(h){return this.clone().isub(h)};function T(A,h,_){_.negative=h.negative^A.negative;var d=A.length+h.length|0;_.length=d,d=d-1|0;var f=A.words[0]|0,l=h.words[0]|0,v=f*l,g=v&67108863,p=v/67108864|0;_.words[0]=g;for(var u=1;u<d;u++){for(var w=p>>>26,E=p&67108863,c=Math.min(u,h.length-1),S=Math.max(0,u-A.length+1);S<=c;S++){var P=u-S|0;f=A.words[P]|0,l=h.words[S]|0,v=f*l+E,w+=v/67108864|0,E=v&67108863}_.words[u]=E|0,p=w|0}return p!==0?_.words[u]=p|0:_.length--,_.strip()}var O=function(h,_,d){var f=h.words,l=_.words,v=d.words,g=0,p,u,w,E=f[0]|0,c=E&8191,S=E>>>13,P=f[1]|0,C=P&8191,L=P>>>13,V=f[2]|0,G=V&8191,Y=V>>>13,Wt=f[3]|0,Q=Wt&8191,ee=Wt>>>13,_a=f[4]|0,ie=_a&8191,ne=_a>>>13,ma=f[5]|0,ae=ma&8191,oe=ma>>>13,wa=f[6]|0,fe=wa&8191,se=wa>>>13,xa=f[7]|0,ue=xa&8191,le=xa>>>13,Ea=f[8]|0,he=Ea&8191,ce=Ea>>>13,Sa=f[9]|0,de=Sa&8191,pe=Sa>>>13,Ma=l[0]|0,ve=Ma&8191,ye=Ma>>>13,Aa=l[1]|0,ge=Aa&8191,be=Aa>>>13,Ba=l[2]|0,_e=Ba&8191,me=Ba>>>13,Ra=l[3]|0,we=Ra&8191,xe=Ra>>>13,ka=l[4]|0,Ee=ka&8191,Se=ka>>>13,Ta=l[5]|0,Me=Ta&8191,Ae=Ta>>>13,Ia=l[6]|0,Be=Ia&8191,Re=Ia>>>13,Oa=l[7]|0,ke=Oa&8191,Te=Oa>>>13,qa=l[8]|0,Ie=qa&8191,Oe=qa>>>13,Da=l[9]|0,qe=Da&8191,De=Da>>>13;d.negative=h.negative^_.negative,d.length=19,p=Math.imul(c,ve),u=Math.imul(c,ye),u=u+Math.imul(S,ve)|0,w=Math.imul(S,ye);var En=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(En>>>26)|0,En&=67108863,p=Math.imul(C,ve),u=Math.imul(C,ye),u=u+Math.imul(L,ve)|0,w=Math.imul(L,ye),p=p+Math.imul(c,ge)|0,u=u+Math.imul(c,be)|0,u=u+Math.imul(S,ge)|0,w=w+Math.imul(S,be)|0;var $e=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+($e>>>26)|0,$e&=67108863,p=Math.imul(G,ve),u=Math.imul(G,ye),u=u+Math.imul(Y,ve)|0,w=Math.imul(Y,ye),p=p+Math.imul(C,ge)|0,u=u+Math.imul(C,be)|0,u=u+Math.imul(L,ge)|0,w=w+Math.imul(L,be)|0,p=p+Math.imul(c,_e)|0,u=u+Math.imul(c,me)|0,u=u+Math.imul(S,_e)|0,w=w+Math.imul(S,me)|0;var Ye=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(Ye>>>26)|0,Ye&=67108863,p=Math.imul(Q,ve),u=Math.imul(Q,ye),u=u+Math.imul(ee,ve)|0,w=Math.imul(ee,ye),p=p+Math.imul(G,ge)|0,u=u+Math.imul(G,be)|0,u=u+Math.imul(Y,ge)|0,w=w+Math.imul(Y,be)|0,p=p+Math.imul(C,_e)|0,u=u+Math.imul(C,me)|0,u=u+Math.imul(L,_e)|0,w=w+Math.imul(L,me)|0,p=p+Math.imul(c,we)|0,u=u+Math.imul(c,xe)|0,u=u+Math.imul(S,we)|0,w=w+Math.imul(S,xe)|0;var di=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(di>>>26)|0,di&=67108863,p=Math.imul(ie,ve),u=Math.imul(ie,ye),u=u+Math.imul(ne,ve)|0,w=Math.imul(ne,ye),p=p+Math.imul(Q,ge)|0,u=u+Math.imul(Q,be)|0,u=u+Math.imul(ee,ge)|0,w=w+Math.imul(ee,be)|0,p=p+Math.imul(G,_e)|0,u=u+Math.imul(G,me)|0,u=u+Math.imul(Y,_e)|0,w=w+Math.imul(Y,me)|0,p=p+Math.imul(C,we)|0,u=u+Math.imul(C,xe)|0,u=u+Math.imul(L,we)|0,w=w+Math.imul(L,xe)|0,p=p+Math.imul(c,Ee)|0,u=u+Math.imul(c,Se)|0,u=u+Math.imul(S,Ee)|0,w=w+Math.imul(S,Se)|0;var pi=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(pi>>>26)|0,pi&=67108863,p=Math.imul(ae,ve),u=Math.imul(ae,ye),u=u+Math.imul(oe,ve)|0,w=Math.imul(oe,ye),p=p+Math.imul(ie,ge)|0,u=u+Math.imul(ie,be)|0,u=u+Math.imul(ne,ge)|0,w=w+Math.imul(ne,be)|0,p=p+Math.imul(Q,_e)|0,u=u+Math.imul(Q,me)|0,u=u+Math.imul(ee,_e)|0,w=w+Math.imul(ee,me)|0,p=p+Math.imul(G,we)|0,u=u+Math.imul(G,xe)|0,u=u+Math.imul(Y,we)|0,w=w+Math.imul(Y,xe)|0,p=p+Math.imul(C,Ee)|0,u=u+Math.imul(C,Se)|0,u=u+Math.imul(L,Ee)|0,w=w+Math.imul(L,Se)|0,p=p+Math.imul(c,Me)|0,u=u+Math.imul(c,Ae)|0,u=u+Math.imul(S,Me)|0,w=w+Math.imul(S,Ae)|0;var vi=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(vi>>>26)|0,vi&=67108863,p=Math.imul(fe,ve),u=Math.imul(fe,ye),u=u+Math.imul(se,ve)|0,w=Math.imul(se,ye),p=p+Math.imul(ae,ge)|0,u=u+Math.imul(ae,be)|0,u=u+Math.imul(oe,ge)|0,w=w+Math.imul(oe,be)|0,p=p+Math.imul(ie,_e)|0,u=u+Math.imul(ie,me)|0,u=u+Math.imul(ne,_e)|0,w=w+Math.imul(ne,me)|0,p=p+Math.imul(Q,we)|0,u=u+Math.imul(Q,xe)|0,u=u+Math.imul(ee,we)|0,w=w+Math.imul(ee,xe)|0,p=p+Math.imul(G,Ee)|0,u=u+Math.imul(G,Se)|0,u=u+Math.imul(Y,Ee)|0,w=w+Math.imul(Y,Se)|0,p=p+Math.imul(C,Me)|0,u=u+Math.imul(C,Ae)|0,u=u+Math.imul(L,Me)|0,w=w+Math.imul(L,Ae)|0,p=p+Math.imul(c,Be)|0,u=u+Math.imul(c,Re)|0,u=u+Math.imul(S,Be)|0,w=w+Math.imul(S,Re)|0;var yi=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(yi>>>26)|0,yi&=67108863,p=Math.imul(ue,ve),u=Math.imul(ue,ye),u=u+Math.imul(le,ve)|0,w=Math.imul(le,ye),p=p+Math.imul(fe,ge)|0,u=u+Math.imul(fe,be)|0,u=u+Math.imul(se,ge)|0,w=w+Math.imul(se,be)|0,p=p+Math.imul(ae,_e)|0,u=u+Math.imul(ae,me)|0,u=u+Math.imul(oe,_e)|0,w=w+Math.imul(oe,me)|0,p=p+Math.imul(ie,we)|0,u=u+Math.imul(ie,xe)|0,u=u+Math.imul(ne,we)|0,w=w+Math.imul(ne,xe)|0,p=p+Math.imul(Q,Ee)|0,u=u+Math.imul(Q,Se)|0,u=u+Math.imul(ee,Ee)|0,w=w+Math.imul(ee,Se)|0,p=p+Math.imul(G,Me)|0,u=u+Math.imul(G,Ae)|0,u=u+Math.imul(Y,Me)|0,w=w+Math.imul(Y,Ae)|0,p=p+Math.imul(C,Be)|0,u=u+Math.imul(C,Re)|0,u=u+Math.imul(L,Be)|0,w=w+Math.imul(L,Re)|0,p=p+Math.imul(c,ke)|0,u=u+Math.imul(c,Te)|0,u=u+Math.imul(S,ke)|0,w=w+Math.imul(S,Te)|0;var gi=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(gi>>>26)|0,gi&=67108863,p=Math.imul(he,ve),u=Math.imul(he,ye),u=u+Math.imul(ce,ve)|0,w=Math.imul(ce,ye),p=p+Math.imul(ue,ge)|0,u=u+Math.imul(ue,be)|0,u=u+Math.imul(le,ge)|0,w=w+Math.imul(le,be)|0,p=p+Math.imul(fe,_e)|0,u=u+Math.imul(fe,me)|0,u=u+Math.imul(se,_e)|0,w=w+Math.imul(se,me)|0,p=p+Math.imul(ae,we)|0,u=u+Math.imul(ae,xe)|0,u=u+Math.imul(oe,we)|0,w=w+Math.imul(oe,xe)|0,p=p+Math.imul(ie,Ee)|0,u=u+Math.imul(ie,Se)|0,u=u+Math.imul(ne,Ee)|0,w=w+Math.imul(ne,Se)|0,p=p+Math.imul(Q,Me)|0,u=u+Math.imul(Q,Ae)|0,u=u+Math.imul(ee,Me)|0,w=w+Math.imul(ee,Ae)|0,p=p+Math.imul(G,Be)|0,u=u+Math.imul(G,Re)|0,u=u+Math.imul(Y,Be)|0,w=w+Math.imul(Y,Re)|0,p=p+Math.imul(C,ke)|0,u=u+Math.imul(C,Te)|0,u=u+Math.imul(L,ke)|0,w=w+Math.imul(L,Te)|0,p=p+Math.imul(c,Ie)|0,u=u+Math.imul(c,Oe)|0,u=u+Math.imul(S,Ie)|0,w=w+Math.imul(S,Oe)|0;var bi=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(bi>>>26)|0,bi&=67108863,p=Math.imul(de,ve),u=Math.imul(de,ye),u=u+Math.imul(pe,ve)|0,w=Math.imul(pe,ye),p=p+Math.imul(he,ge)|0,u=u+Math.imul(he,be)|0,u=u+Math.imul(ce,ge)|0,w=w+Math.imul(ce,be)|0,p=p+Math.imul(ue,_e)|0,u=u+Math.imul(ue,me)|0,u=u+Math.imul(le,_e)|0,w=w+Math.imul(le,me)|0,p=p+Math.imul(fe,we)|0,u=u+Math.imul(fe,xe)|0,u=u+Math.imul(se,we)|0,w=w+Math.imul(se,xe)|0,p=p+Math.imul(ae,Ee)|0,u=u+Math.imul(ae,Se)|0,u=u+Math.imul(oe,Ee)|0,w=w+Math.imul(oe,Se)|0,p=p+Math.imul(ie,Me)|0,u=u+Math.imul(ie,Ae)|0,u=u+Math.imul(ne,Me)|0,w=w+Math.imul(ne,Ae)|0,p=p+Math.imul(Q,Be)|0,u=u+Math.imul(Q,Re)|0,u=u+Math.imul(ee,Be)|0,w=w+Math.imul(ee,Re)|0,p=p+Math.imul(G,ke)|0,u=u+Math.imul(G,Te)|0,u=u+Math.imul(Y,ke)|0,w=w+Math.imul(Y,Te)|0,p=p+Math.imul(C,Ie)|0,u=u+Math.imul(C,Oe)|0,u=u+Math.imul(L,Ie)|0,w=w+Math.imul(L,Oe)|0,p=p+Math.imul(c,qe)|0,u=u+Math.imul(c,De)|0,u=u+Math.imul(S,qe)|0,w=w+Math.imul(S,De)|0;var _i=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(_i>>>26)|0,_i&=67108863,p=Math.imul(de,ge),u=Math.imul(de,be),u=u+Math.imul(pe,ge)|0,w=Math.imul(pe,be),p=p+Math.imul(he,_e)|0,u=u+Math.imul(he,me)|0,u=u+Math.imul(ce,_e)|0,w=w+Math.imul(ce,me)|0,p=p+Math.imul(ue,we)|0,u=u+Math.imul(ue,xe)|0,u=u+Math.imul(le,we)|0,w=w+Math.imul(le,xe)|0,p=p+Math.imul(fe,Ee)|0,u=u+Math.imul(fe,Se)|0,u=u+Math.imul(se,Ee)|0,w=w+Math.imul(se,Se)|0,p=p+Math.imul(ae,Me)|0,u=u+Math.imul(ae,Ae)|0,u=u+Math.imul(oe,Me)|0,w=w+Math.imul(oe,Ae)|0,p=p+Math.imul(ie,Be)|0,u=u+Math.imul(ie,Re)|0,u=u+Math.imul(ne,Be)|0,w=w+Math.imul(ne,Re)|0,p=p+Math.imul(Q,ke)|0,u=u+Math.imul(Q,Te)|0,u=u+Math.imul(ee,ke)|0,w=w+Math.imul(ee,Te)|0,p=p+Math.imul(G,Ie)|0,u=u+Math.imul(G,Oe)|0,u=u+Math.imul(Y,Ie)|0,w=w+Math.imul(Y,Oe)|0,p=p+Math.imul(C,qe)|0,u=u+Math.imul(C,De)|0,u=u+Math.imul(L,qe)|0,w=w+Math.imul(L,De)|0;var mi=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(mi>>>26)|0,mi&=67108863,p=Math.imul(de,_e),u=Math.imul(de,me),u=u+Math.imul(pe,_e)|0,w=Math.imul(pe,me),p=p+Math.imul(he,we)|0,u=u+Math.imul(he,xe)|0,u=u+Math.imul(ce,we)|0,w=w+Math.imul(ce,xe)|0,p=p+Math.imul(ue,Ee)|0,u=u+Math.imul(ue,Se)|0,u=u+Math.imul(le,Ee)|0,w=w+Math.imul(le,Se)|0,p=p+Math.imul(fe,Me)|0,u=u+Math.imul(fe,Ae)|0,u=u+Math.imul(se,Me)|0,w=w+Math.imul(se,Ae)|0,p=p+Math.imul(ae,Be)|0,u=u+Math.imul(ae,Re)|0,u=u+Math.imul(oe,Be)|0,w=w+Math.imul(oe,Re)|0,p=p+Math.imul(ie,ke)|0,u=u+Math.imul(ie,Te)|0,u=u+Math.imul(ne,ke)|0,w=w+Math.imul(ne,Te)|0,p=p+Math.imul(Q,Ie)|0,u=u+Math.imul(Q,Oe)|0,u=u+Math.imul(ee,Ie)|0,w=w+Math.imul(ee,Oe)|0,p=p+Math.imul(G,qe)|0,u=u+Math.imul(G,De)|0,u=u+Math.imul(Y,qe)|0,w=w+Math.imul(Y,De)|0;var wi=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(wi>>>26)|0,wi&=67108863,p=Math.imul(de,we),u=Math.imul(de,xe),u=u+Math.imul(pe,we)|0,w=Math.imul(pe,xe),p=p+Math.imul(he,Ee)|0,u=u+Math.imul(he,Se)|0,u=u+Math.imul(ce,Ee)|0,w=w+Math.imul(ce,Se)|0,p=p+Math.imul(ue,Me)|0,u=u+Math.imul(ue,Ae)|0,u=u+Math.imul(le,Me)|0,w=w+Math.imul(le,Ae)|0,p=p+Math.imul(fe,Be)|0,u=u+Math.imul(fe,Re)|0,u=u+Math.imul(se,Be)|0,w=w+Math.imul(se,Re)|0,p=p+Math.imul(ae,ke)|0,u=u+Math.imul(ae,Te)|0,u=u+Math.imul(oe,ke)|0,w=w+Math.imul(oe,Te)|0,p=p+Math.imul(ie,Ie)|0,u=u+Math.imul(ie,Oe)|0,u=u+Math.imul(ne,Ie)|0,w=w+Math.imul(ne,Oe)|0,p=p+Math.imul(Q,qe)|0,u=u+Math.imul(Q,De)|0,u=u+Math.imul(ee,qe)|0,w=w+Math.imul(ee,De)|0;var xi=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(xi>>>26)|0,xi&=67108863,p=Math.imul(de,Ee),u=Math.imul(de,Se),u=u+Math.imul(pe,Ee)|0,w=Math.imul(pe,Se),p=p+Math.imul(he,Me)|0,u=u+Math.imul(he,Ae)|0,u=u+Math.imul(ce,Me)|0,w=w+Math.imul(ce,Ae)|0,p=p+Math.imul(ue,Be)|0,u=u+Math.imul(ue,Re)|0,u=u+Math.imul(le,Be)|0,w=w+Math.imul(le,Re)|0,p=p+Math.imul(fe,ke)|0,u=u+Math.imul(fe,Te)|0,u=u+Math.imul(se,ke)|0,w=w+Math.imul(se,Te)|0,p=p+Math.imul(ae,Ie)|0,u=u+Math.imul(ae,Oe)|0,u=u+Math.imul(oe,Ie)|0,w=w+Math.imul(oe,Oe)|0,p=p+Math.imul(ie,qe)|0,u=u+Math.imul(ie,De)|0,u=u+Math.imul(ne,qe)|0,w=w+Math.imul(ne,De)|0;var Ei=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,p=Math.imul(de,Me),u=Math.imul(de,Ae),u=u+Math.imul(pe,Me)|0,w=Math.imul(pe,Ae),p=p+Math.imul(he,Be)|0,u=u+Math.imul(he,Re)|0,u=u+Math.imul(ce,Be)|0,w=w+Math.imul(ce,Re)|0,p=p+Math.imul(ue,ke)|0,u=u+Math.imul(ue,Te)|0,u=u+Math.imul(le,ke)|0,w=w+Math.imul(le,Te)|0,p=p+Math.imul(fe,Ie)|0,u=u+Math.imul(fe,Oe)|0,u=u+Math.imul(se,Ie)|0,w=w+Math.imul(se,Oe)|0,p=p+Math.imul(ae,qe)|0,u=u+Math.imul(ae,De)|0,u=u+Math.imul(oe,qe)|0,w=w+Math.imul(oe,De)|0;var Si=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(Si>>>26)|0,Si&=67108863,p=Math.imul(de,Be),u=Math.imul(de,Re),u=u+Math.imul(pe,Be)|0,w=Math.imul(pe,Re),p=p+Math.imul(he,ke)|0,u=u+Math.imul(he,Te)|0,u=u+Math.imul(ce,ke)|0,w=w+Math.imul(ce,Te)|0,p=p+Math.imul(ue,Ie)|0,u=u+Math.imul(ue,Oe)|0,u=u+Math.imul(le,Ie)|0,w=w+Math.imul(le,Oe)|0,p=p+Math.imul(fe,qe)|0,u=u+Math.imul(fe,De)|0,u=u+Math.imul(se,qe)|0,w=w+Math.imul(se,De)|0;var Mi=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(Mi>>>26)|0,Mi&=67108863,p=Math.imul(de,ke),u=Math.imul(de,Te),u=u+Math.imul(pe,ke)|0,w=Math.imul(pe,Te),p=p+Math.imul(he,Ie)|0,u=u+Math.imul(he,Oe)|0,u=u+Math.imul(ce,Ie)|0,w=w+Math.imul(ce,Oe)|0,p=p+Math.imul(ue,qe)|0,u=u+Math.imul(ue,De)|0,u=u+Math.imul(le,qe)|0,w=w+Math.imul(le,De)|0;var Ai=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(Ai>>>26)|0,Ai&=67108863,p=Math.imul(de,Ie),u=Math.imul(de,Oe),u=u+Math.imul(pe,Ie)|0,w=Math.imul(pe,Oe),p=p+Math.imul(he,qe)|0,u=u+Math.imul(he,De)|0,u=u+Math.imul(ce,qe)|0,w=w+Math.imul(ce,De)|0;var Bi=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(Bi>>>26)|0,Bi&=67108863,p=Math.imul(de,qe),u=Math.imul(de,De),u=u+Math.imul(pe,qe)|0,w=Math.imul(pe,De);var Ri=(g+p|0)+((u&8191)<<13)|0;return g=(w+(u>>>13)|0)+(Ri>>>26)|0,Ri&=67108863,v[0]=En,v[1]=$e,v[2]=Ye,v[3]=di,v[4]=pi,v[5]=vi,v[6]=yi,v[7]=gi,v[8]=bi,v[9]=_i,v[10]=mi,v[11]=wi,v[12]=xi,v[13]=Ei,v[14]=Si,v[15]=Mi,v[16]=Ai,v[17]=Bi,v[18]=Ri,g!==0&&(v[19]=g,d.length++),d};Math.imul||(O=T);function D(A,h,_){_.negative=h.negative^A.negative,_.length=A.length+h.length;for(var d=0,f=0,l=0;l<_.length-1;l++){var v=f;f=0;for(var g=d&67108863,p=Math.min(l,h.length-1),u=Math.max(0,l-A.length+1);u<=p;u++){var w=l-u,E=A.words[w]|0,c=h.words[u]|0,S=E*c,P=S&67108863;v=v+(S/67108864|0)|0,P=P+g|0,g=P&67108863,v=v+(P>>>26)|0,f+=v>>>26,v&=67108863}_.words[l]=g,d=v,v=f}return d!==0?_.words[l]=d:_.length--,_.strip()}function U(A,h,_){var d=new N;return d.mulp(A,h,_)}n.prototype.mulTo=function(h,_){var d,f=this.length+h.length;return this.length===10&&h.length===10?d=O(this,h,_):f<63?d=T(this,h,_):f<1024?d=D(this,h,_):d=U(this,h,_),d};function N(A,h){this.x=A,this.y=h}N.prototype.makeRBT=function(h){for(var _=new Array(h),d=n.prototype._countBits(h)-1,f=0;f<h;f++)_[f]=this.revBin(f,d,h);return _},N.prototype.revBin=function(h,_,d){if(h===0||h===d-1)return h;for(var f=0,l=0;l<_;l++)f|=(h&1)<<_-l-1,h>>=1;return f},N.prototype.permute=function(h,_,d,f,l,v){for(var g=0;g<v;g++)f[g]=_[h[g]],l[g]=d[h[g]]},N.prototype.transform=function(h,_,d,f,l,v){this.permute(v,h,_,d,f,l);for(var g=1;g<l;g<<=1)for(var p=g<<1,u=Math.cos(2*Math.PI/p),w=Math.sin(2*Math.PI/p),E=0;E<l;E+=p)for(var c=u,S=w,P=0;P<g;P++){var C=d[E+P],L=f[E+P],V=d[E+P+g],G=f[E+P+g],Y=c*V-S*G;G=c*G+S*V,V=Y,d[E+P]=C+V,f[E+P]=L+G,d[E+P+g]=C-V,f[E+P+g]=L-G,P!==p&&(Y=u*c-w*S,S=u*S+w*c,c=Y)}},N.prototype.guessLen13b=function(h,_){var d=Math.max(_,h)|1,f=d&1,l=0;for(d=d/2|0;d;d=d>>>1)l++;return 1<<l+1+f},N.prototype.conjugate=function(h,_,d){if(!(d<=1))for(var f=0;f<d/2;f++){var l=h[f];h[f]=h[d-f-1],h[d-f-1]=l,l=_[f],_[f]=-_[d-f-1],_[d-f-1]=-l}},N.prototype.normalize13b=function(h,_){for(var d=0,f=0;f<_/2;f++){var l=Math.round(h[2*f+1]/_)*8192+Math.round(h[2*f]/_)+d;h[f]=l&67108863,l<67108864?d=0:d=l/67108864|0}return h},N.prototype.convert13b=function(h,_,d,f){for(var l=0,v=0;v<_;v++)l=l+(h[v]|0),d[2*v]=l&8191,l=l>>>13,d[2*v+1]=l&8191,l=l>>>13;for(v=2*_;v<f;++v)d[v]=0;r(l===0),r((l&-8192)===0)},N.prototype.stub=function(h){for(var _=new Array(h),d=0;d<h;d++)_[d]=0;return _},N.prototype.mulp=function(h,_,d){var f=2*this.guessLen13b(h.length,_.length),l=this.makeRBT(f),v=this.stub(f),g=new Array(f),p=new Array(f),u=new Array(f),w=new Array(f),E=new Array(f),c=new Array(f),S=d.words;S.length=f,this.convert13b(h.words,h.length,g,f),this.convert13b(_.words,_.length,w,f),this.transform(g,v,p,u,f,l),this.transform(w,v,E,c,f,l);for(var P=0;P<f;P++){var C=p[P]*E[P]-u[P]*c[P];u[P]=p[P]*c[P]+u[P]*E[P],p[P]=C}return this.conjugate(p,u,f),this.transform(p,u,S,v,f,l),this.conjugate(S,v,f),this.normalize13b(S,f),d.negative=h.negative^_.negative,d.length=h.length+_.length,d.strip()},n.prototype.mul=function(h){var _=new n(null);return _.words=new Array(this.length+h.length),this.mulTo(h,_)},n.prototype.mulf=function(h){var _=new n(null);return _.words=new Array(this.length+h.length),U(this,h,_)},n.prototype.imul=function(h){return this.clone().mulTo(h,this)},n.prototype.imuln=function(h){r(typeof h=="number"),r(h<67108864);for(var _=0,d=0;d<this.length;d++){var f=(this.words[d]|0)*h,l=(f&67108863)+(_&67108863);_>>=26,_+=f/67108864|0,_+=l>>>26,this.words[d]=l&67108863}return _!==0&&(this.words[d]=_,this.length++),h===0&&(this.length=1,this._normSign()),this},n.prototype.muln=function(h){return this.clone().imuln(h)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(h){var _=R(h);if(_.length===0)return new n(1);for(var d=this,f=0;f<_.length&&_[f]===0;f++,d=d.sqr());if(++f<_.length)for(var l=d.sqr();f<_.length;f++,l=l.sqr())_[f]!==0&&(d=d.mul(l));return d},n.prototype.iushln=function(h){r(typeof h=="number"&&h>=0);var _=h%26,d=(h-_)/26,f=67108863>>>26-_<<26-_,l;if(_!==0){var v=0;for(l=0;l<this.length;l++){var g=this.words[l]&f,p=(this.words[l]|0)-g<<_;this.words[l]=p|v,v=g>>>26-_}v&&(this.words[l]=v,this.length++)}if(d!==0){for(l=this.length-1;l>=0;l--)this.words[l+d]=this.words[l];for(l=0;l<d;l++)this.words[l]=0;this.length+=d}return this.strip()},n.prototype.ishln=function(h){return r(this.negative===0),this.iushln(h)},n.prototype.iushrn=function(h,_,d){r(typeof h=="number"&&h>=0);var f;_?f=(_-_%26)/26:f=0;var l=h%26,v=Math.min((h-l)/26,this.length),g=67108863^67108863>>>l<<l,p=d;if(f-=v,f=Math.max(0,f),p){for(var u=0;u<v;u++)p.words[u]=this.words[u];p.length=v}if(v!==0)if(this.length>v)for(this.length-=v,u=0;u<this.length;u++)this.words[u]=this.words[u+v];else this.words[0]=0,this.length=1;var w=0;for(u=this.length-1;u>=0&&(w!==0||u>=f);u--){var E=this.words[u]|0;this.words[u]=w<<26-l|E>>>l,w=E&g}return p&&w!==0&&(p.words[p.length++]=w),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},n.prototype.ishrn=function(h,_,d){return r(this.negative===0),this.iushrn(h,_,d)},n.prototype.shln=function(h){return this.clone().ishln(h)},n.prototype.ushln=function(h){return this.clone().iushln(h)},n.prototype.shrn=function(h){return this.clone().ishrn(h)},n.prototype.ushrn=function(h){return this.clone().iushrn(h)},n.prototype.testn=function(h){r(typeof h=="number"&&h>=0);var _=h%26,d=(h-_)/26,f=1<<_;if(this.length<=d)return!1;var l=this.words[d];return!!(l&f)},n.prototype.imaskn=function(h){r(typeof h=="number"&&h>=0);var _=h%26,d=(h-_)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=d)return this;if(_!==0&&d++,this.length=Math.min(d,this.length),_!==0){var f=67108863^67108863>>>_<<_;this.words[this.length-1]&=f}return this.length===0&&(this.words[0]=0,this.length=1),this.strip()},n.prototype.maskn=function(h){return this.clone().imaskn(h)},n.prototype.iaddn=function(h){return r(typeof h=="number"),r(h<67108864),h<0?this.isubn(-h):this.negative!==0?this.length===1&&(this.words[0]|0)<h?(this.words[0]=h-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(h),this.negative=1,this):this._iaddn(h)},n.prototype._iaddn=function(h){this.words[0]+=h;for(var _=0;_<this.length&&this.words[_]>=67108864;_++)this.words[_]-=67108864,_===this.length-1?this.words[_+1]=1:this.words[_+1]++;return this.length=Math.max(this.length,_+1),this},n.prototype.isubn=function(h){if(r(typeof h=="number"),r(h<67108864),h<0)return this.iaddn(-h);if(this.negative!==0)return this.negative=0,this.iaddn(h),this.negative=1,this;if(this.words[0]-=h,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var _=0;_<this.length&&this.words[_]<0;_++)this.words[_]+=67108864,this.words[_+1]-=1;return this.strip()},n.prototype.addn=function(h){return this.clone().iaddn(h)},n.prototype.subn=function(h){return this.clone().isubn(h)},n.prototype.iabs=function(){return this.negative=0,this},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(h,_,d){var f=h.length+d,l;this._expand(f);var v,g=0;for(l=0;l<h.length;l++){v=(this.words[l+d]|0)+g;var p=(h.words[l]|0)*_;v-=p&67108863,g=(v>>26)-(p/67108864|0),this.words[l+d]=v&67108863}for(;l<this.length-d;l++)v=(this.words[l+d]|0)+g,g=v>>26,this.words[l+d]=v&67108863;if(g===0)return this.strip();for(r(g===-1),g=0,l=0;l<this.length;l++)v=-(this.words[l]|0)+g,g=v>>26,this.words[l]=v&67108863;return this.negative=1,this.strip()},n.prototype._wordDiv=function(h,_){var d=this.length-h.length,f=this.clone(),l=h,v=l.words[l.length-1]|0,g=this._countBits(v);d=26-g,d!==0&&(l=l.ushln(d),f.iushln(d),v=l.words[l.length-1]|0);var p=f.length-l.length,u;if(_!=="mod"){u=new n(null),u.length=p+1,u.words=new Array(u.length);for(var w=0;w<u.length;w++)u.words[w]=0}var E=f.clone()._ishlnsubmul(l,1,p);E.negative===0&&(f=E,u&&(u.words[p]=1));for(var c=p-1;c>=0;c--){var S=(f.words[l.length+c]|0)*67108864+(f.words[l.length+c-1]|0);for(S=Math.min(S/v|0,67108863),f._ishlnsubmul(l,S,c);f.negative!==0;)S--,f.negative=0,f._ishlnsubmul(l,1,c),f.isZero()||(f.negative^=1);u&&(u.words[c]=S)}return u&&u.strip(),f.strip(),_!=="div"&&d!==0&&f.iushrn(d),{div:u||null,mod:f}},n.prototype.divmod=function(h,_,d){if(r(!h.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var f,l,v;return this.negative!==0&&h.negative===0?(v=this.neg().divmod(h,_),_!=="mod"&&(f=v.div.neg()),_!=="div"&&(l=v.mod.neg(),d&&l.negative!==0&&l.iadd(h)),{div:f,mod:l}):this.negative===0&&h.negative!==0?(v=this.divmod(h.neg(),_),_!=="mod"&&(f=v.div.neg()),{div:f,mod:v.mod}):(this.negative&h.negative)!==0?(v=this.neg().divmod(h.neg(),_),_!=="div"&&(l=v.mod.neg(),d&&l.negative!==0&&l.isub(h)),{div:v.div,mod:l}):h.length>this.length||this.cmp(h)<0?{div:new n(0),mod:this}:h.length===1?_==="div"?{div:this.divn(h.words[0]),mod:null}:_==="mod"?{div:null,mod:new n(this.modn(h.words[0]))}:{div:this.divn(h.words[0]),mod:new n(this.modn(h.words[0]))}:this._wordDiv(h,_)},n.prototype.div=function(h){return this.divmod(h,"div",!1).div},n.prototype.mod=function(h){return this.divmod(h,"mod",!1).mod},n.prototype.umod=function(h){return this.divmod(h,"mod",!0).mod},n.prototype.divRound=function(h){var _=this.divmod(h);if(_.mod.isZero())return _.div;var d=_.mod.abs(),f=h.abs().iushrn(1),l=h.words[0]&1,v=d.cmp(f);if(v<0||l===1&&v===0)return _.div;var g=new n(1);return g.negative=this.negative^h.negative,_.div.iadd(g)},n.prototype.modn=function(h){r(h<=67108863);for(var _=(1<<26)%h,d=0,f=this.length-1;f>=0;f--)d=(_*d+(this.words[f]|0))%h;return d},n.prototype.idivn=function(h){r(h<=67108863);for(var _=0,d=this.length-1;d>=0;d--){var f=(this.words[d]|0)+_*67108864;this.words[d]=f/h|0,_=f%h}return this.strip()},n.prototype.divn=function(h){return this.clone().idivn(h)},n.prototype.egcd=function(h){r(h.negative===0),r(!h.isZero());var _=this,d=h.clone();_.negative!==0?_=_.umod(h):_=_.clone();for(var f=new n(1),l=new n(0),v=new n(0),g=new n(1),p=0;_.isEven()&&d.isEven();)_.iushrn(1),d.iushrn(1),++p;for(var u=d.clone(),w=_.clone();!_.isZero();){for(var E=0,c=1;(_.words[0]&c)===0&&E<26;++E,c<<=1);if(E>0)for(_.iushrn(E);E-- >0;)(f.isOdd()||l.isOdd())&&(f.iadd(u),l.isub(w)),f.iushrn(1),l.iushrn(1);for(var S=0,P=1;(d.words[0]&P)===0&&S<26;++S,P<<=1);if(S>0)for(d.iushrn(S);S-- >0;)(v.isOdd()||g.isOdd())&&(v.iadd(u),g.isub(w)),v.iushrn(1),g.iushrn(1);_.cmp(d)>=0?(_.isub(d),f.isub(v),l.isub(g)):(d.isub(_),v.isub(f),g.isub(l))}return{a:v,b:g,gcd:d.iushln(p)}},n.prototype._invmp=function(h){r(h.negative===0),r(!h.isZero());var _=this,d=h.clone();_.negative!==0?_=_.umod(h):_=_.clone();for(var f=new n(1),l=new n(0),v=d.clone();_.cmpn(1)>0&&d.cmpn(1)>0;){for(var g=0,p=1;(_.words[0]&p)===0&&g<26;++g,p<<=1);if(g>0)for(_.iushrn(g);g-- >0;)f.isOdd()&&f.iadd(v),f.iushrn(1);for(var u=0,w=1;(d.words[0]&w)===0&&u<26;++u,w<<=1);if(u>0)for(d.iushrn(u);u-- >0;)l.isOdd()&&l.iadd(v),l.iushrn(1);_.cmp(d)>=0?(_.isub(d),f.isub(l)):(d.isub(_),l.isub(f))}var E;return _.cmpn(1)===0?E=f:E=l,E.cmpn(0)<0&&E.iadd(h),E},n.prototype.gcd=function(h){if(this.isZero())return h.abs();if(h.isZero())return this.abs();var _=this.clone(),d=h.clone();_.negative=0,d.negative=0;for(var f=0;_.isEven()&&d.isEven();f++)_.iushrn(1),d.iushrn(1);do{for(;_.isEven();)_.iushrn(1);for(;d.isEven();)d.iushrn(1);var l=_.cmp(d);if(l<0){var v=_;_=d,d=v}else if(l===0||d.cmpn(1)===0)break;_.isub(d)}while(!0);return d.iushln(f)},n.prototype.invm=function(h){return this.egcd(h).a.umod(h)},n.prototype.isEven=function(){return(this.words[0]&1)===0},n.prototype.isOdd=function(){return(this.words[0]&1)===1},n.prototype.andln=function(h){return this.words[0]&h},n.prototype.bincn=function(h){r(typeof h=="number");var _=h%26,d=(h-_)/26,f=1<<_;if(this.length<=d)return this._expand(d+1),this.words[d]|=f,this;for(var l=f,v=d;l!==0&&v<this.length;v++){var g=this.words[v]|0;g+=l,l=g>>>26,g&=67108863,this.words[v]=g}return l!==0&&(this.words[v]=l,this.length++),this},n.prototype.isZero=function(){return this.length===1&&this.words[0]===0},n.prototype.cmpn=function(h){var _=h<0;if(this.negative!==0&&!_)return-1;if(this.negative===0&&_)return 1;this.strip();var d;if(this.length>1)d=1;else{_&&(h=-h),r(h<=67108863,"Number is too big");var f=this.words[0]|0;d=f===h?0:f<h?-1:1}return this.negative!==0?-d|0:d},n.prototype.cmp=function(h){if(this.negative!==0&&h.negative===0)return-1;if(this.negative===0&&h.negative!==0)return 1;var _=this.ucmp(h);return this.negative!==0?-_|0:_},n.prototype.ucmp=function(h){if(this.length>h.length)return 1;if(this.length<h.length)return-1;for(var _=0,d=this.length-1;d>=0;d--){var f=this.words[d]|0,l=h.words[d]|0;if(f!==l){f<l?_=-1:f>l&&(_=1);break}}return _},n.prototype.gtn=function(h){return this.cmpn(h)===1},n.prototype.gt=function(h){return this.cmp(h)===1},n.prototype.gten=function(h){return this.cmpn(h)>=0},n.prototype.gte=function(h){return this.cmp(h)>=0},n.prototype.ltn=function(h){return this.cmpn(h)===-1},n.prototype.lt=function(h){return this.cmp(h)===-1},n.prototype.lten=function(h){return this.cmpn(h)<=0},n.prototype.lte=function(h){return this.cmp(h)<=0},n.prototype.eqn=function(h){return this.cmpn(h)===0},n.prototype.eq=function(h){return this.cmp(h)===0},n.red=function(h){return new z(h)},n.prototype.toRed=function(h){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),h.convertTo(this)._forceRed(h)},n.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(h){return this.red=h,this},n.prototype.forceRed=function(h){return r(!this.red,"Already a number in reduction context"),this._forceRed(h)},n.prototype.redAdd=function(h){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,h)},n.prototype.redIAdd=function(h){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,h)},n.prototype.redSub=function(h){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,h)},n.prototype.redISub=function(h){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,h)},n.prototype.redShl=function(h){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,h)},n.prototype.redMul=function(h){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,h),this.red.mul(this,h)},n.prototype.redIMul=function(h){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,h),this.red.imul(this,h)},n.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(h){return r(this.red&&!h.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,h)};var j={k256:null,p224:null,p192:null,p25519:null};function H(A,h){this.name=A,this.p=new n(h,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}H.prototype._tmp=function(){var h=new n(null);return h.words=new Array(Math.ceil(this.n/13)),h},H.prototype.ireduce=function(h){var _=h,d;do this.split(_,this.tmp),_=this.imulK(_),_=_.iadd(this.tmp),d=_.bitLength();while(d>this.n);var f=d<this.n?-1:_.ucmp(this.p);return f===0?(_.words[0]=0,_.length=1):f>0?_.isub(this.p):_.strip!==void 0?_.strip():_._strip(),_},H.prototype.split=function(h,_){h.iushrn(this.n,0,_)},H.prototype.imulK=function(h){return h.imul(this.k)};function W(){H.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(W,H),W.prototype.split=function(h,_){for(var d=4194303,f=Math.min(h.length,9),l=0;l<f;l++)_.words[l]=h.words[l];if(_.length=f,h.length<=9){h.words[0]=0,h.length=1;return}var v=h.words[9];for(_.words[_.length++]=v&d,l=10;l<h.length;l++){var g=h.words[l]|0;h.words[l-10]=(g&d)<<4|v>>>22,v=g}v>>>=22,h.words[l-10]=v,v===0&&h.length>10?h.length-=10:h.length-=9},W.prototype.imulK=function(h){h.words[h.length]=0,h.words[h.length+1]=0,h.length+=2;for(var _=0,d=0;d<h.length;d++){var f=h.words[d]|0;_+=f*977,h.words[d]=_&67108863,_=f*64+(_/67108864|0)}return h.words[h.length-1]===0&&(h.length--,h.words[h.length-1]===0&&h.length--),h};function Z(){H.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}i(Z,H);function K(){H.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}i(K,H);function J(){H.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}i(J,H),J.prototype.imulK=function(h){for(var _=0,d=0;d<h.length;d++){var f=(h.words[d]|0)*19+_,l=f&67108863;f>>>=26,h.words[d]=l,_=f}return _!==0&&(h.words[h.length++]=_),h},n._prime=function(h){if(j[h])return j[h];var _;if(h==="k256")_=new W;else if(h==="p224")_=new Z;else if(h==="p192")_=new K;else if(h==="p25519")_=new J;else throw new Error("Unknown prime "+h);return j[h]=_,_};function z(A){if(typeof A=="string"){var h=n._prime(A);this.m=h.p,this.prime=h}else r(A.gtn(1),"modulus must be greater than 1"),this.m=A,this.prime=null}z.prototype._verify1=function(h){r(h.negative===0,"red works only with positives"),r(h.red,"red works only with red numbers")},z.prototype._verify2=function(h,_){r((h.negative|_.negative)===0,"red works only with positives"),r(h.red&&h.red===_.red,"red works only with red numbers")},z.prototype.imod=function(h){return this.prime?this.prime.ireduce(h)._forceRed(this):h.umod(this.m)._forceRed(this)},z.prototype.neg=function(h){return h.isZero()?h.clone():this.m.sub(h)._forceRed(this)},z.prototype.add=function(h,_){this._verify2(h,_);var d=h.add(_);return d.cmp(this.m)>=0&&d.isub(this.m),d._forceRed(this)},z.prototype.iadd=function(h,_){this._verify2(h,_);var d=h.iadd(_);return d.cmp(this.m)>=0&&d.isub(this.m),d},z.prototype.sub=function(h,_){this._verify2(h,_);var d=h.sub(_);return d.cmpn(0)<0&&d.iadd(this.m),d._forceRed(this)},z.prototype.isub=function(h,_){this._verify2(h,_);var d=h.isub(_);return d.cmpn(0)<0&&d.iadd(this.m),d},z.prototype.shl=function(h,_){return this._verify1(h),this.imod(h.ushln(_))},z.prototype.imul=function(h,_){return this._verify2(h,_),this.imod(h.imul(_))},z.prototype.mul=function(h,_){return this._verify2(h,_),this.imod(h.mul(_))},z.prototype.isqr=function(h){return this.imul(h,h.clone())},z.prototype.sqr=function(h){return this.mul(h,h)},z.prototype.sqrt=function(h){if(h.isZero())return h.clone();var _=this.m.andln(3);if(r(_%2===1),_===3){var d=this.m.add(new n(1)).iushrn(2);return this.pow(h,d)}for(var f=this.m.subn(1),l=0;!f.isZero()&&f.andln(1)===0;)l++,f.iushrn(1);r(!f.isZero());var v=new n(1).toRed(this),g=v.redNeg(),p=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new n(2*u*u).toRed(this);this.pow(u,p).cmp(g)!==0;)u.redIAdd(g);for(var w=this.pow(u,f),E=this.pow(h,f.addn(1).iushrn(1)),c=this.pow(h,f),S=l;c.cmp(v)!==0;){for(var P=c,C=0;P.cmp(v)!==0;C++)P=P.redSqr();r(C<S);var L=this.pow(w,new n(1).iushln(S-C-1));E=E.redMul(L),w=L.redSqr(),c=c.redMul(w),S=C}return E},z.prototype.invm=function(h){var _=h._invmp(this.m);return _.negative!==0?(_.negative=0,this.imod(_).redNeg()):this.imod(_)},z.prototype.pow=function(h,_){if(_.isZero())return new n(1).toRed(this);if(_.cmpn(1)===0)return h.clone();var d=4,f=new Array(1<<d);f[0]=new n(1).toRed(this),f[1]=h;for(var l=2;l<f.length;l++)f[l]=this.mul(f[l-1],h);var v=f[0],g=0,p=0,u=_.bitLength()%26;for(u===0&&(u=26),l=_.length-1;l>=0;l--){for(var w=_.words[l],E=u-1;E>=0;E--){var c=w>>E&1;if(v!==f[0]&&(v=this.sqr(v)),c===0&&g===0){p=0;continue}g<<=1,g|=c,p++,!(p!==d&&(l!==0||E!==0))&&(v=this.mul(v,f[g]),p=0,g=0)}u=26}return v},z.prototype.convertTo=function(h){var _=h.umod(this.m);return _===h?_.clone():_},z.prototype.convertFrom=function(h){var _=h.clone();return _.red=null,_},n.mont=function(h){return new X(h)};function X(A){z.call(this,A),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new n(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}i(X,z),X.prototype.convertTo=function(h){return this.imod(h.ushln(this.shift))},X.prototype.convertFrom=function(h){var _=this.imod(h.mul(this.rinv));return _.red=null,_},X.prototype.imul=function(h,_){if(h.isZero()||_.isZero())return h.words[0]=0,h.length=1,h;var d=h.imul(_),f=d.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),l=d.isub(f).iushrn(this.shift),v=l;return l.cmp(this.m)>=0?v=l.isub(this.m):l.cmpn(0)<0&&(v=l.iadd(this.m)),v._forceRed(this)},X.prototype.mul=function(h,_){if(h.isZero()||_.isZero())return new n(0)._forceRed(this);var d=h.mul(_),f=d.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),l=d.isub(f).iushrn(this.shift),v=l;return l.cmp(this.m)>=0?v=l.isub(this.m):l.cmpn(0)<0&&(v=l.iadd(this.m)),v._forceRed(this)},X.prototype.invm=function(h){var _=this.imod(h._invmp(this.m).mul(this.r2));return _._forceRed(this)}})(typeof hc>"u"||hc,b_)});var __=k((fL,pc)=>{m();var cc;pc.exports=function(t){return cc||(cc=new ti(null)),cc.generate(t)};function ti(e){this.rand=e}pc.exports.Rand=ti;ti.prototype.generate=function(t){return this._rand(t)};ti.prototype._rand=function(t){if(this.rand.getBytes)return this.rand.getBytes(t);for(var r=new Uint8Array(t),i=0;i<r.length;i++)r[i]=this.rand.getByte();return r};if(typeof self=="object")self.crypto&&self.crypto.getRandomValues?ti.prototype._rand=function(t){var r=new Uint8Array(t);return self.crypto.getRandomValues(r),r}:self.msCrypto&&self.msCrypto.getRandomValues?ti.prototype._rand=function(t){var r=new Uint8Array(t);return self.msCrypto.getRandomValues(r),r}:typeof window=="object"&&(ti.prototype._rand=function(){throw new Error("Not implemented yet")});else try{if(dc=$s(),typeof dc.randomBytes!="function")throw new Error("Not supported");ti.prototype._rand=function(t){return dc.randomBytes(t)}}catch{}var dc});var vc=k((uL,m_)=>{m();var tn=ei(),vR=__();function rn(e){this.rand=e||new vR.Rand}m_.exports=rn;rn.create=function(t){return new rn(t)};rn.prototype._randbelow=function(t){var r=t.bitLength(),i=Math.ceil(r/8);do var n=new tn(this.rand.generate(i));while(n.cmp(t)>=0);return n};rn.prototype._randrange=function(t,r){var i=r.sub(t);return t.add(this._randbelow(i))};rn.prototype.test=function(t,r,i){var n=t.bitLength(),a=tn.mont(t),o=new tn(1).toRed(a);r||(r=Math.max(1,n/48|0));for(var s=t.subn(1),y=0;!s.testn(y);y++);for(var b=t.shrn(y),x=s.toRed(a),B=!0;r>0;r--){var R=this._randrange(new tn(2),s);i&&i(R);var T=R.toRed(a).redPow(b);if(!(T.cmp(o)===0||T.cmp(x)===0)){for(var O=1;O<y;O++){if(T=T.redSqr(),T.cmp(o)===0)return!1;if(T.cmp(x)===0)break}if(O===y)return!1}}return B};rn.prototype.getDivisor=function(t,r){var i=t.bitLength(),n=tn.mont(t),a=new tn(1).toRed(n);r||(r=Math.max(1,i/48|0));for(var o=t.subn(1),s=0;!o.testn(s);s++);for(var y=t.shrn(s),b=o.toRed(n);r>0;r--){var x=this._randrange(new tn(2),o),B=t.gcd(x);if(B.cmpn(1)!==0)return B;var R=x.toRed(n).redPow(y);if(!(R.cmp(a)===0||R.cmp(b)===0)){for(var T=1;T<s;T++){if(R=R.redSqr(),R.cmp(a)===0)return R.fromRed().subn(1).gcd(t);if(R.cmp(b)===0)break}if(T===s)return R=R.redSqr(),R.fromRed().subn(1).gcd(t)}}return!1}});var wc=k((vL,E_)=>{m();var yR=qi();E_.exports=mc;mc.simpleSieve=bc;mc.fermatTest=_c;var ut=ei(),gR=new ut(24),bR=vc(),w_=new bR,_R=new ut(1),gc=new ut(2),mR=new ut(5),hL=new ut(16),cL=new ut(8),wR=new ut(10),xR=new ut(3),dL=new ut(7),ER=new ut(11),x_=new ut(4),pL=new ut(12),yc=null;function SR(){if(yc!==null)return yc;var e=1048576,t=[];t[0]=2;for(var r=1,i=3;i<e;i+=2){for(var n=Math.ceil(Math.sqrt(i)),a=0;a<r&&t[a]<=n&&i%t[a]!==0;a++);r!==a&&t[a]<=n||(t[r++]=i)}return yc=t,t}function bc(e){for(var t=SR(),r=0;r<t.length;r++)if(e.modn(t[r])===0)return e.cmpn(t[r])===0;return!0}function _c(e){var t=ut.mont(e);return gc.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)===0}function mc(e,t){if(e<16)return t===2||t===5?new ut([140,123]):new ut([140,39]);t=new ut(t);for(var r,i;;){for(r=new ut(yR(Math.ceil(e/8)));r.bitLength()>e;)r.ishrn(1);if(r.isEven()&&r.iadd(_R),r.testn(1)||r.iadd(gc),t.cmp(gc)){if(!t.cmp(mR))for(;r.mod(wR).cmp(xR);)r.iadd(x_)}else for(;r.mod(gR).cmp(ER);)r.iadd(x_);if(i=r.shrn(1),bc(i)&&bc(r)&&_c(i)&&_c(r)&&w_.test(i)&&w_.test(r))return r}}});var S_=k((gL,MR)=>{MR.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}});var R_=k((bL,B_)=>{m();var Lt=ei(),AR=vc(),M_=new AR,BR=new Lt(24),RR=new Lt(11),kR=new Lt(10),TR=new Lt(3),IR=new Lt(7),A_=wc(),OR=qi();B_.exports=Ur;function qR(e,t){return t=t||"utf8",I.Buffer.isBuffer(e)||(e=new I.Buffer(e,t)),this._pub=new Lt(e),this}function DR(e,t){return t=t||"utf8",I.Buffer.isBuffer(e)||(e=new I.Buffer(e,t)),this._priv=new Lt(e),this}var Ys={};function NR(e,t){var r=t.toString("hex"),i=[r,e.toString(16)].join("_");if(i in Ys)return Ys[i];var n=0;if(e.isEven()||!A_.simpleSieve||!A_.fermatTest(e)||!M_.test(e))return n+=1,r==="02"||r==="05"?n+=8:n+=4,Ys[i]=n,n;M_.test(e.shrn(1))||(n+=2);var a;switch(r){case"02":e.mod(BR).cmp(RR)&&(n+=8);break;case"05":a=e.mod(kR),a.cmp(TR)&&a.cmp(IR)&&(n+=8);break;default:n+=4}return Ys[i]=n,n}function Ur(e,t,r){this.setGenerator(t),this.__prime=new Lt(e),this._prime=Lt.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=qR,this.setPrivateKey=DR):this._primeCode=8}Object.defineProperty(Ur.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=NR(this.__prime,this.__gen)),this._primeCode}});Ur.prototype.generateKeys=function(){return this._priv||(this._priv=new Lt(OR(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()};Ur.prototype.computeSecret=function(e){e=new Lt(e),e=e.toRed(this._prime);var t=e.redPow(this._priv).fromRed(),r=new I.Buffer(t.toArray()),i=this.getPrime();if(r.length<i.length){var n=new I.Buffer(i.length-r.length);n.fill(0),r=I.Buffer.concat([n,r])}return r};Ur.prototype.getPublicKey=function(t){return Js(this._pub,t)};Ur.prototype.getPrivateKey=function(t){return Js(this._priv,t)};Ur.prototype.getPrime=function(e){return Js(this.__prime,e)};Ur.prototype.getGenerator=function(e){return Js(this._gen,e)};Ur.prototype.setGenerator=function(e,t){return t=t||"utf8",I.Buffer.isBuffer(e)||(e=new I.Buffer(e,t)),this.__gen=e,this._gen=new Lt(e),this};function Js(e,t){var r=new I.Buffer(e.toArray());return t?r.toString(t):r}});var I_=k(ia=>{m();var PR=wc(),k_=S_(),xc=R_();function LR(e){var t=new I.Buffer(k_[e].prime,"hex"),r=new I.Buffer(k_[e].gen,"hex");return new xc(t,r)}var CR={binary:!0,hex:!0,base64:!0};function T_(e,t,r,i){return I.Buffer.isBuffer(t)||CR[t]===void 0?T_(e,"binary",t,r):(t=t||"binary",i=i||"binary",r=r||new I.Buffer([2]),I.Buffer.isBuffer(r)||(r=new I.Buffer(r,i)),typeof e=="number"?new xc(PR(e,r),r,!0):(I.Buffer.isBuffer(e)||(e=new I.Buffer(e,t)),new xc(e,r,!0)))}ia.DiffieHellmanGroup=ia.createDiffieHellmanGroup=ia.getDiffieHellman=LR;ia.createDiffieHellman=ia.DiffieHellman=T_});var O_=k((exports,module)=>{m();var indexOf=function(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0;r<e.length;r++)if(e[r]===t)return r;return-1},Object_keys=function(e){if(Object.keys)return Object.keys(e);var t=[];for(var r in e)t.push(r);return t},forEach=function(e,t){if(e.forEach)return e.forEach(t);for(var r=0;r<e.length;r++)t(e[r],r,e)},defineProp=(function(){try{return Object.defineProperty({},"_",{}),function(e,t,r){Object.defineProperty(e,t,{writable:!0,enumerable:!1,configurable:!0,value:r})}}catch{return function(t,r,i){t[r]=i}}})(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(t){if(!(this instanceof Script))return new Script(t);this.code=t};Script.prototype.runInContext=function(e){if(!(e instanceof Context))throw new TypeError("needs a 'context' argument.");var t=document.createElement("iframe");t.style||(t.style={}),t.style.display="none",document.body.appendChild(t);var r=t.contentWindow,i=r.eval,n=r.execScript;!i&&n&&(n.call(r,"null"),i=r.eval),forEach(Object_keys(e),function(s){r[s]=e[s]}),forEach(globals,function(s){e[s]&&(r[s]=e[s])});var a=Object_keys(r),o=i.call(r,this.code);return forEach(Object_keys(r),function(s){(s in e||indexOf(a,s)===-1)&&(e[s]=r[s])}),forEach(globals,function(s){s in e||defineProp(e,s,r[s])}),document.body.removeChild(t),o};Script.prototype.runInThisContext=function(){return eval(this.code)};Script.prototype.runInNewContext=function(e){var t=Script.createContext(e),r=this.runInContext(t);return e&&forEach(Object_keys(t),function(i){e[i]=t[i]}),r};forEach(Object_keys(Script.prototype),function(e){exports[e]=Script[e]=function(t){var r=Script(t);return r[e].apply(r,[].slice.call(arguments,1))}});exports.isContext=function(e){return e instanceof Context};exports.createScript=function(e){return exports.Script(e)};exports.createContext=Script.createContext=function(e){var t=new Context;return typeof e=="object"&&forEach(Object_keys(e),function(r){t[r]=e[r]}),t}});var N_=k(D_=>{m();var q_=aa(),UR=re(),FR=D_;FR.define=function(t,r){return new na(t,r)};function na(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}na.prototype._createNamed=function(t){var r;try{r=O_().runInThisContext("(function "+this.name+`(entity) {
12
12
  this._initNamed(entity);
13
- })`)}catch{r=function(n){this._initNamed(n)}}return UR(r,t),r.prototype._initNamed=function(n){t.call(this,n)},new r(this)};na.prototype._getDecoder=function(t){return t=t||"der",this.decoders.hasOwnProperty(t)||(this.decoders[t]=this._createNamed(q_.decoders[t])),this.decoders[t]};na.prototype.decode=function(t,r,i){return this._getDecoder(r).decode(t,i)};na.prototype._getEncoder=function(t){return t=t||"der",this.encoders.hasOwnProperty(t)||(this.encoders[t]=this._createNamed(q_.encoders[t])),this.encoders[t]};na.prototype.encode=function(t,r,i){return this._getEncoder(r).encode(t,i)}});var L_=k(P_=>{m();var jR=re();function Ct(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}P_.Reporter=Ct;Ct.prototype.isError=function(t){return t instanceof oa};Ct.prototype.save=function(){var t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}};Ct.prototype.restore=function(t){var r=this._reporterState;r.obj=t.obj,r.path=r.path.slice(0,t.pathLen)};Ct.prototype.enterKey=function(t){return this._reporterState.path.push(t)};Ct.prototype.exitKey=function(t){var r=this._reporterState;r.path=r.path.slice(0,t-1)};Ct.prototype.leaveKey=function(t,r,i){var n=this._reporterState;this.exitKey(t),n.obj!==null&&(n.obj[r]=i)};Ct.prototype.path=function(){return this._reporterState.path.join("/")};Ct.prototype.enterObject=function(){var t=this._reporterState,r=t.obj;return t.obj={},r};Ct.prototype.leaveObject=function(t){var r=this._reporterState,i=r.obj;return r.obj=t,i};Ct.prototype.error=function(t){var r,i=this._reporterState,n=t instanceof oa;if(n?r=t:r=new oa(i.path.map(function(a){return"["+JSON.stringify(a)+"]"}).join(""),t.message||t,t.stack),!i.options.partial)throw r;return n||i.errors.push(r),r};Ct.prototype.wrapResult=function(t){var r=this._reporterState;return r.options.partial?{result:this.isError(t)?null:t,errors:r.errors}:t};function oa(e,t){this.path=e,this.rethrow(t)}jR(oa,Error);oa.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,oa),!this.stack)try{throw new Error(this.message)}catch(r){this.stack=r.stack}return this}});var Sc=k(Ec=>{m();var zR=re(),Qs=fa().Reporter,ko=st().Buffer;function gr(e,t){if(Qs.call(this,t),!ko.isBuffer(e)){this.error("Input not Buffer");return}this.base=e,this.offset=0,this.length=e.length}zR(gr,Qs);Ec.DecoderBuffer=gr;gr.prototype.save=function(){return{offset:this.offset,reporter:Qs.prototype.save.call(this)}};gr.prototype.restore=function(t){var r=new gr(this.base);return r.offset=t.offset,r.length=this.offset,this.offset=t.offset,Qs.prototype.restore.call(this,t.reporter),r};gr.prototype.isEmpty=function(){return this.offset===this.length};gr.prototype.readUInt8=function(t){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(t||"DecoderBuffer overrun")};gr.prototype.skip=function(t,r){if(!(this.offset+t<=this.length))return this.error(r||"DecoderBuffer overrun");var i=new gr(this.base);return i._reporterState=this._reporterState,i.offset=this.offset,i.length=this.offset+t,this.offset+=t,i};gr.prototype.raw=function(t){return this.base.slice(t?t.offset:this.offset,this.length)};function Xs(e,t){if(Array.isArray(e))this.length=0,this.value=e.map(function(r){return r instanceof Xs||(r=new Xs(r,t)),this.length+=r.length,r},this);else if(typeof e=="number"){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if(typeof e=="string")this.value=e,this.length=ko.byteLength(e);else if(ko.isBuffer(e))this.value=e,this.length=e.length;else return t.error("Unsupported type: "+typeof e)}Ec.EncoderBuffer=Xs;Xs.prototype.join=function(t,r){return t||(t=new ko(this.length)),r||(r=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(i){i.join(t,r),r+=i.length}):(typeof this.value=="number"?t[r]=this.value:typeof this.value=="string"?t.write(this.value,r):ko.isBuffer(this.value)&&this.value.copy(t,r),r+=this.length)),t}});var F_=k((kL,U_)=>{m();var ZR=fa().Reporter,HR=fa().EncoderBuffer,WR=fa().DecoderBuffer,bt=Xn(),C_=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],KR=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(C_),GR=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function Ke(e,t){var r={};this._baseState=r,r.enc=e,r.parent=t||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}U_.exports=Ke;var VR=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];Ke.prototype.clone=function(){var t=this._baseState,r={};VR.forEach(function(n){r[n]=t[n]});var i=new this.constructor(r.parent);return i._baseState=r,i};Ke.prototype._wrap=function(){var t=this._baseState;KR.forEach(function(r){this[r]=function(){var n=new this.constructor(this);return t.children.push(n),n[r].apply(n,arguments)}},this)};Ke.prototype._init=function(t){var r=this._baseState;bt(r.parent===null),t.call(this),r.children=r.children.filter(function(i){return i._baseState.parent===this},this),bt.equal(r.children.length,1,"Root node can have only one child")};Ke.prototype._useArgs=function(t){var r=this._baseState,i=t.filter(function(n){return n instanceof this.constructor},this);t=t.filter(function(n){return!(n instanceof this.constructor)},this),i.length!==0&&(bt(r.children===null),r.children=i,i.forEach(function(n){n._baseState.parent=this},this)),t.length!==0&&(bt(r.args===null),r.args=t,r.reverseArgs=t.map(function(n){if(typeof n!="object"||n.constructor!==Object)return n;var a={};return Object.keys(n).forEach(function(o){o==(o|0)&&(o|=0);var s=n[o];a[s]=o}),a}))};GR.forEach(function(e){Ke.prototype[e]=function(){var r=this._baseState;throw new Error(e+" not implemented for encoding: "+r.enc)}});C_.forEach(function(e){Ke.prototype[e]=function(){var r=this._baseState,i=Array.prototype.slice.call(arguments);return bt(r.tag===null),r.tag=e,this._useArgs(i),this}});Ke.prototype.use=function(t){bt(t);var r=this._baseState;return bt(r.use===null),r.use=t,this};Ke.prototype.optional=function(){var t=this._baseState;return t.optional=!0,this};Ke.prototype.def=function(t){var r=this._baseState;return bt(r.default===null),r.default=t,r.optional=!0,this};Ke.prototype.explicit=function(t){var r=this._baseState;return bt(r.explicit===null&&r.implicit===null),r.explicit=t,this};Ke.prototype.implicit=function(t){var r=this._baseState;return bt(r.explicit===null&&r.implicit===null),r.implicit=t,this};Ke.prototype.obj=function(){var t=this._baseState,r=Array.prototype.slice.call(arguments);return t.obj=!0,r.length!==0&&this._useArgs(r),this};Ke.prototype.key=function(t){var r=this._baseState;return bt(r.key===null),r.key=t,this};Ke.prototype.any=function(){var t=this._baseState;return t.any=!0,this};Ke.prototype.choice=function(t){var r=this._baseState;return bt(r.choice===null),r.choice=t,this._useArgs(Object.keys(t).map(function(i){return t[i]})),this};Ke.prototype.contains=function(t){var r=this._baseState;return bt(r.use===null),r.contains=t,this};Ke.prototype._decode=function(t,r){var i=this._baseState;if(i.parent===null)return t.wrapResult(i.children[0]._decode(t,r));var n=i.default,a=!0,o=null;if(i.key!==null&&(o=t.enterKey(i.key)),i.optional){var s=null;if(i.explicit!==null?s=i.explicit:i.implicit!==null?s=i.implicit:i.tag!==null&&(s=i.tag),s===null&&!i.any){var y=t.save();try{i.choice===null?this._decodeGeneric(i.tag,t,r):this._decodeChoice(t,r),a=!0}catch{a=!1}t.restore(y)}else if(a=this._peekTag(t,s,i.any),t.isError(a))return a}var _;if(i.obj&&a&&(_=t.enterObject()),a){if(i.explicit!==null){var x=this._decodeTag(t,i.explicit);if(t.isError(x))return x;t=x}var B=t.offset;if(i.use===null&&i.choice===null){if(i.any)var y=t.save();var R=this._decodeTag(t,i.implicit!==null?i.implicit:i.tag,i.any);if(t.isError(R))return R;i.any?n=t.raw(y):t=R}if(r&&r.track&&i.tag!==null&&r.track(t.path(),B,t.length,"tagged"),r&&r.track&&i.tag!==null&&r.track(t.path(),t.offset,t.length,"content"),i.any?n=n:i.choice===null?n=this._decodeGeneric(i.tag,t,r):n=this._decodeChoice(t,r),t.isError(n))return n;if(!i.any&&i.choice===null&&i.children!==null&&i.children.forEach(function(D){D._decode(t,r)}),i.contains&&(i.tag==="octstr"||i.tag==="bitstr")){var T=new WR(n);n=this._getUse(i.contains,t._reporterState.obj)._decode(T,r)}}return i.obj&&a&&(n=t.leaveObject(_)),i.key!==null&&(n!==null||a===!0)?t.leaveKey(o,i.key,n):o!==null&&t.exitKey(o),n};Ke.prototype._decodeGeneric=function(t,r,i){var n=this._baseState;return t==="seq"||t==="set"?null:t==="seqof"||t==="setof"?this._decodeList(r,t,n.args[0],i):/str$/.test(t)?this._decodeStr(r,t,i):t==="objid"&&n.args?this._decodeObjid(r,n.args[0],n.args[1],i):t==="objid"?this._decodeObjid(r,null,null,i):t==="gentime"||t==="utctime"?this._decodeTime(r,t,i):t==="null_"?this._decodeNull(r,i):t==="bool"?this._decodeBool(r,i):t==="objDesc"?this._decodeStr(r,t,i):t==="int"||t==="enum"?this._decodeInt(r,n.args&&n.args[0],i):n.use!==null?this._getUse(n.use,r._reporterState.obj)._decode(r,i):r.error("unknown tag: "+t)};Ke.prototype._getUse=function(t,r){var i=this._baseState;return i.useDecoder=this._use(t,r),bt(i.useDecoder._baseState.parent===null),i.useDecoder=i.useDecoder._baseState.children[0],i.implicit!==i.useDecoder._baseState.implicit&&(i.useDecoder=i.useDecoder.clone(),i.useDecoder._baseState.implicit=i.implicit),i.useDecoder};Ke.prototype._decodeChoice=function(t,r){var i=this._baseState,n=null,a=!1;return Object.keys(i.choice).some(function(o){var s=t.save(),y=i.choice[o];try{var _=y._decode(t,r);if(t.isError(_))return!1;n={type:o,value:_},a=!0}catch{return t.restore(s),!1}return!0},this),a?n:t.error("Choice not matched")};Ke.prototype._createEncoderBuffer=function(t){return new HR(t,this.reporter)};Ke.prototype._encode=function(t,r,i){var n=this._baseState;if(!(n.default!==null&&n.default===t)){var a=this._encodeValue(t,r,i);if(a!==void 0&&!this._skipDefault(a,r,i))return a}};Ke.prototype._encodeValue=function(t,r,i){var n=this._baseState;if(n.parent===null)return n.children[0]._encode(t,r||new ZR);var y=null;if(this.reporter=r,n.optional&&t===void 0)if(n.default!==null)t=n.default;else return;var a=null,o=!1;if(n.any)y=this._createEncoderBuffer(t);else if(n.choice)y=this._encodeChoice(t,r);else if(n.contains)a=this._getUse(n.contains,i)._encode(t,r),o=!0;else if(n.children)a=n.children.map(function(B){if(B._baseState.tag==="null_")return B._encode(null,r,t);if(B._baseState.key===null)return r.error("Child should have a key");var R=r.enterKey(B._baseState.key);if(typeof t!="object")return r.error("Child expected, but input is not object");var T=B._encode(t[B._baseState.key],r,t);return r.leaveKey(R),T},this).filter(function(B){return B}),a=this._createEncoderBuffer(a);else if(n.tag==="seqof"||n.tag==="setof"){if(!(n.args&&n.args.length===1))return r.error("Too many args for : "+n.tag);if(!Array.isArray(t))return r.error("seqof/setof, but data is not Array");var s=this.clone();s._baseState.implicit=null,a=this._createEncoderBuffer(t.map(function(B){var R=this._baseState;return this._getUse(R.args[0],t)._encode(B,r)},s))}else n.use!==null?y=this._getUse(n.use,i)._encode(t,r):(a=this._encodePrimitive(n.tag,t),o=!0);var y;if(!n.any&&n.choice===null){var _=n.implicit!==null?n.implicit:n.tag,x=n.implicit===null?"universal":"context";_===null?n.use===null&&r.error("Tag could be omitted only for .use()"):n.use===null&&(y=this._encodeComposite(_,o,x,a))}return n.explicit!==null&&(y=this._encodeComposite(n.explicit,!1,"context",y)),y};Ke.prototype._encodeChoice=function(t,r){var i=this._baseState,n=i.choice[t.type];return n||bt(!1,t.type+" not found in "+JSON.stringify(Object.keys(i.choice))),n._encode(t.value,r)};Ke.prototype._encodePrimitive=function(t,r){var i=this._baseState;if(/str$/.test(t))return this._encodeStr(r,t);if(t==="objid"&&i.args)return this._encodeObjid(r,i.reverseArgs[0],i.args[1]);if(t==="objid")return this._encodeObjid(r,null,null);if(t==="gentime"||t==="utctime")return this._encodeTime(r,t);if(t==="null_")return this._encodeNull();if(t==="int"||t==="enum")return this._encodeInt(r,i.args&&i.reverseArgs[0]);if(t==="bool")return this._encodeBool(r);if(t==="objDesc")return this._encodeStr(r,t);throw new Error("Unsupported tag: "+t)};Ke.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)};Ke.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(t)}});var fa=k(j_=>{m();var eu=j_;eu.Reporter=L_().Reporter;eu.DecoderBuffer=Sc().DecoderBuffer;eu.EncoderBuffer=Sc().EncoderBuffer;eu.Node=F_()});var Z_=k(nn=>{m();var z_=Mc();nn.tagClass={0:"universal",1:"application",2:"context",3:"private"};nn.tagClassByName=z_._reverse(nn.tagClass);nn.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"};nn.tagByName=z_._reverse(nn.tag)});var Mc=k(W_=>{m();var H_=W_;H_._reverse=function(t){var r={};return Object.keys(t).forEach(function(i){(i|0)==i&&(i=i|0);var n=t[i];r[n]=i}),r};H_.der=Z_()});var Rc=k((LL,$_)=>{m();var $R=re(),Ac=aa(),tu=Ac.base,YR=Ac.bignum,K_=Ac.constants.der;function G_(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new Bt,this.tree._init(e.body)}$_.exports=G_;G_.prototype.decode=function(t,r){return t instanceof tu.DecoderBuffer||(t=new tu.DecoderBuffer(t,r)),this.tree._decode(t,r)};function Bt(e){tu.Node.call(this,"der",e)}$R(Bt,tu.Node);Bt.prototype._peekTag=function(t,r,i){if(t.isEmpty())return!1;var n=t.save(),a=Bc(t,'Failed to peek tag: "'+r+'"');return t.isError(a)?a:(t.restore(n),a.tag===r||a.tagStr===r||a.tagStr+"of"===r||i)};Bt.prototype._decodeTag=function(t,r,i){var n=Bc(t,'Failed to decode tag of "'+r+'"');if(t.isError(n))return n;var a=V_(t,n.primitive,'Failed to get length of "'+r+'"');if(t.isError(a))return a;if(!i&&n.tag!==r&&n.tagStr!==r&&n.tagStr+"of"!==r)return t.error('Failed to match tag: "'+r+'"');if(n.primitive||a!==null)return t.skip(a,'Failed to match body of: "'+r+'"');var o=t.save(),s=this._skipUntilEnd(t,'Failed to skip indefinite length body: "'+this.tag+'"');return t.isError(s)?s:(a=t.offset-o.offset,t.restore(o),t.skip(a,'Failed to match body of: "'+r+'"'))};Bt.prototype._skipUntilEnd=function(t,r){for(;;){var i=Bc(t,r);if(t.isError(i))return i;var n=V_(t,i.primitive,r);if(t.isError(n))return n;var a;if(i.primitive||n!==null?a=t.skip(n):a=this._skipUntilEnd(t,r),t.isError(a))return a;if(i.tagStr==="end")break}};Bt.prototype._decodeList=function(t,r,i,n){for(var a=[];!t.isEmpty();){var o=this._peekTag(t,"end");if(t.isError(o))return o;var s=i.decode(t,"der",n);if(t.isError(s)&&o)break;a.push(s)}return a};Bt.prototype._decodeStr=function(t,r){if(r==="bitstr"){var i=t.readUInt8();return t.isError(i)?i:{unused:i,data:t.raw()}}else if(r==="bmpstr"){var n=t.raw();if(n.length%2===1)return t.error("Decoding of string type: bmpstr length mismatch");for(var a="",o=0;o<n.length/2;o++)a+=String.fromCharCode(n.readUInt16BE(o*2));return a}else if(r==="numstr"){var s=t.raw().toString("ascii");return this._isNumstr(s)?s:t.error("Decoding of string type: numstr unsupported characters")}else{if(r==="octstr")return t.raw();if(r==="objDesc")return t.raw();if(r==="printstr"){var y=t.raw().toString("ascii");return this._isPrintstr(y)?y:t.error("Decoding of string type: printstr unsupported characters")}else return/str$/.test(r)?t.raw().toString():t.error("Decoding of string type: "+r+" unsupported")}};Bt.prototype._decodeObjid=function(t,r,i){for(var n,a=[],o=0;!t.isEmpty();){var s=t.readUInt8();o<<=7,o|=s&127,(s&128)===0&&(a.push(o),o=0)}s&128&&a.push(o);var y=a[0]/40|0,_=a[0]%40;if(i?n=a:n=[y,_].concat(a.slice(1)),r){var x=r[n.join(" ")];x===void 0&&(x=r[n.join(".")]),x!==void 0&&(n=x)}return n};Bt.prototype._decodeTime=function(t,r){var i=t.raw().toString();if(r==="gentime")var n=i.slice(0,4)|0,a=i.slice(4,6)|0,o=i.slice(6,8)|0,s=i.slice(8,10)|0,y=i.slice(10,12)|0,_=i.slice(12,14)|0;else if(r==="utctime"){var n=i.slice(0,2)|0,a=i.slice(2,4)|0,o=i.slice(4,6)|0,s=i.slice(6,8)|0,y=i.slice(8,10)|0,_=i.slice(10,12)|0;n<70?n=2e3+n:n=1900+n}else return t.error("Decoding "+r+" time is not supported yet");return Date.UTC(n,a-1,o,s,y,_,0)};Bt.prototype._decodeNull=function(t){return null};Bt.prototype._decodeBool=function(t){var r=t.readUInt8();return t.isError(r)?r:r!==0};Bt.prototype._decodeInt=function(t,r){var i=t.raw(),n=new YR(i);return r&&(n=r[n.toString(10)]||n),n};Bt.prototype._use=function(t,r){return typeof t=="function"&&(t=t(r)),t._getDecoder("der").tree};function Bc(e,t){var r=e.readUInt8(t);if(e.isError(r))return r;var i=K_.tagClass[r>>6],n=(r&32)===0;if((r&31)===31){var a=r;for(r=0;(a&128)===128;){if(a=e.readUInt8(t),e.isError(a))return a;r<<=7,r|=a&127}}else r&=31;var o=K_.tag[r];return{cls:i,primitive:n,tag:r,tagStr:o}}function V_(e,t,r){var i=e.readUInt8(r);if(e.isError(i))return i;if(!t&&i===128)return null;if((i&128)===0)return i;var n=i&127;if(n>4)return e.error("length octect is too long");i=0;for(var a=0;a<n;a++){i<<=8;var o=e.readUInt8(r);if(e.isError(o))return o;i|=o}return i}});var J_=k((UL,Y_)=>{m();var JR=re(),XR=st().Buffer,kc=Rc();function Tc(e){kc.call(this,e),this.enc="pem"}JR(Tc,kc);Y_.exports=Tc;Tc.prototype.decode=function(t,r){for(var i=t.toString().split(/[\r\n]+/g),n=r.label.toUpperCase(),a=/^-----(BEGIN|END) ([^-]+)-----$/,o=-1,s=-1,y=0;y<i.length;y++){var _=i[y].match(a);if(_!==null&&_[2]===n)if(o===-1){if(_[1]!=="BEGIN")break;o=y}else{if(_[1]!=="END")break;s=y;break}}if(o===-1||s===-1)throw new Error("PEM section not found for: "+n);var x=i.slice(o+1,s).join("");x.replace(/[^a-z0-9\+\/=]+/gi,"");var B=new XR(x,"base64");return kc.prototype.decode.call(this,B,r)}});var em=k(Q_=>{m();var X_=Q_;X_.der=Rc();X_.pem=J_()});var Oc=k((ZL,nm)=>{m();var QR=re(),Fr=st().Buffer,tm=aa(),rm=tm.base,Ic=tm.constants.der;function im(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new Xt,this.tree._init(e.body)}nm.exports=im;im.prototype.encode=function(t,r){return this.tree._encode(t,r).join()};function Xt(e){rm.Node.call(this,"der",e)}QR(Xt,rm.Node);Xt.prototype._encodeComposite=function(t,r,i,n){var a=ek(t,r,i,this.reporter);if(n.length<128){var y=new Fr(2);return y[0]=a,y[1]=n.length,this._createEncoderBuffer([y,n])}for(var o=1,s=n.length;s>=256;s>>=8)o++;var y=new Fr(2+o);y[0]=a,y[1]=128|o;for(var s=1+o,_=n.length;_>0;s--,_>>=8)y[s]=_&255;return this._createEncoderBuffer([y,n])};Xt.prototype._encodeStr=function(t,r){if(r==="bitstr")return this._createEncoderBuffer([t.unused|0,t.data]);if(r==="bmpstr"){for(var i=new Fr(t.length*2),n=0;n<t.length;n++)i.writeUInt16BE(t.charCodeAt(n),n*2);return this._createEncoderBuffer(i)}else return r==="numstr"?this._isNumstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: numstr supports only digits and space"):r==="printstr"?this._isPrintstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(r)?this._createEncoderBuffer(t):r==="objDesc"?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: "+r+" unsupported")};Xt.prototype._encodeObjid=function(t,r,i){if(typeof t=="string"){if(!r)return this.reporter.error("string objid given, but no values map found");if(!r.hasOwnProperty(t))return this.reporter.error("objid not found in values map");t=r[t].split(/[\s\.]+/g);for(var n=0;n<t.length;n++)t[n]|=0}else if(Array.isArray(t)){t=t.slice();for(var n=0;n<t.length;n++)t[n]|=0}if(!Array.isArray(t))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(t));if(!i){if(t[1]>=40)return this.reporter.error("Second objid identifier OOB");t.splice(0,2,t[0]*40+t[1])}for(var a=0,n=0;n<t.length;n++){var o=t[n];for(a++;o>=128;o>>=7)a++}for(var s=new Fr(a),y=s.length-1,n=t.length-1;n>=0;n--){var o=t[n];for(s[y--]=o&127;(o>>=7)>0;)s[y--]=128|o&127}return this._createEncoderBuffer(s)};function Ut(e){return e<10?"0"+e:e}Xt.prototype._encodeTime=function(t,r){var i,n=new Date(t);return r==="gentime"?i=[Ut(n.getFullYear()),Ut(n.getUTCMonth()+1),Ut(n.getUTCDate()),Ut(n.getUTCHours()),Ut(n.getUTCMinutes()),Ut(n.getUTCSeconds()),"Z"].join(""):r==="utctime"?i=[Ut(n.getFullYear()%100),Ut(n.getUTCMonth()+1),Ut(n.getUTCDate()),Ut(n.getUTCHours()),Ut(n.getUTCMinutes()),Ut(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+r+" time is not supported yet"),this._encodeStr(i,"octstr")};Xt.prototype._encodeNull=function(){return this._createEncoderBuffer("")};Xt.prototype._encodeInt=function(t,r){if(typeof t=="string"){if(!r)return this.reporter.error("String int or enum given, but no values map");if(!r.hasOwnProperty(t))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(t));t=r[t]}if(typeof t!="number"&&!Fr.isBuffer(t)){var i=t.toArray();!t.sign&&i[0]&128&&i.unshift(0),t=new Fr(i)}if(Fr.isBuffer(t)){var n=t.length;t.length===0&&n++;var o=new Fr(n);return t.copy(o),t.length===0&&(o[0]=0),this._createEncoderBuffer(o)}if(t<128)return this._createEncoderBuffer(t);if(t<256)return this._createEncoderBuffer([0,t]);for(var n=1,a=t;a>=256;a>>=8)n++;for(var o=new Array(n),a=o.length-1;a>=0;a--)o[a]=t&255,t>>=8;return o[0]&128&&o.unshift(0),this._createEncoderBuffer(new Fr(o))};Xt.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)};Xt.prototype._use=function(t,r){return typeof t=="function"&&(t=t(r)),t._getEncoder("der").tree};Xt.prototype._skipDefault=function(t,r,i){var n=this._baseState,a;if(n.default===null)return!1;var o=t.join();if(n.defaultBuffer===void 0&&(n.defaultBuffer=this._encodeValue(n.default,r,i).join()),o.length!==n.defaultBuffer.length)return!1;for(a=0;a<o.length;a++)if(o[a]!==n.defaultBuffer[a])return!1;return!0};function ek(e,t,r,i){var n;if(e==="seqof"?e="seq":e==="setof"&&(e="set"),Ic.tagByName.hasOwnProperty(e))n=Ic.tagByName[e];else if(typeof e=="number"&&(e|0)===e)n=e;else return i.error("Unknown tag: "+e);return n>=31?i.error("Multi-octet tag encoding unsupported"):(t||(n|=32),n|=Ic.tagClassByName[r||"universal"]<<6,n)}});var om=k((WL,am)=>{m();var tk=re(),qc=Oc();function Dc(e){qc.call(this,e),this.enc="pem"}tk(Dc,qc);am.exports=Dc;Dc.prototype.encode=function(t,r){for(var i=qc.prototype.encode.call(this,t),n=i.toString("base64"),a=["-----BEGIN "+r.label+"-----"],o=0;o<n.length;o+=64)a.push(n.slice(o,o+64));return a.push("-----END "+r.label+"-----"),a.join(`
14
- `)}});var um=k(sm=>{m();var fm=sm;fm.der=Oc();fm.pem=om()});var aa=k(lm=>{m();var sa=lm;sa.bignum=ei();sa.define=N_().define;sa.base=fa();sa.constants=Mc();sa.decoders=em();sa.encoders=um()});var pm=k((JL,dm)=>{"use strict";m();var Qt=aa(),hm=Qt.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),rk=Qt.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),Nc=Qt.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),ik=Qt.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(Nc),this.key("subjectPublicKey").bitstr())}),nk=Qt.define("RelativeDistinguishedName",function(){this.setof(rk)}),ak=Qt.define("RDNSequence",function(){this.seqof(nk)}),cm=Qt.define("Name",function(){this.choice({rdnSequence:this.use(ak)})}),ok=Qt.define("Validity",function(){this.seq().obj(this.key("notBefore").use(hm),this.key("notAfter").use(hm))}),fk=Qt.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),sk=Qt.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(Nc),this.key("issuer").use(cm),this.key("validity").use(ok),this.key("subject").use(cm),this.key("subjectPublicKeyInfo").use(ik),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(fk).optional())}),uk=Qt.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(sk),this.key("signatureAlgorithm").use(Nc),this.key("signatureValue").bitstr())});dm.exports=uk});var ym=k(tr=>{"use strict";m();var er=aa();tr.certificate=pm();var lk=er.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});tr.RSAPrivateKey=lk;var hk=er.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});tr.RSAPublicKey=hk;var vm=er.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),ck=er.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(vm),this.key("subjectPublicKey").bitstr())});tr.PublicKey=ck;var dk=er.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(vm),this.key("subjectPrivateKey").octstr())});tr.PrivateKey=dk;var pk=er.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});tr.EncryptedPrivateKey=pk;var vk=er.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});tr.DSAPrivateKey=vk;tr.DSAparam=er.define("DSAparam",function(){this.int()});var yk=er.define("ECParameters",function(){this.choice({namedCurve:this.objid()})}),gk=er.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(yk),this.key("publicKey").optional().explicit(1).bitstr())});tr.ECPrivateKey=gk;tr.signature=er.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})});var gm=k((tC,bk)=>{bk.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}});var _m=k((rC,bm)=>{"use strict";m();var _k=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,mk=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,wk=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,xk=Ao(),Ek=Vs(),ru=Ne().Buffer;bm.exports=function(e,t){var r=e.toString(),i=r.match(_k),n;if(i){var o="aes"+i[1],s=ru.from(i[2],"hex"),y=ru.from(i[3].replace(/[\r\n]/g,""),"base64"),_=xk(t,s.slice(0,8),parseInt(i[1],10)).key,x=[],B=Ek.createDecipheriv(o,_,s);x.push(B.update(y)),x.push(B.final()),n=ru.concat(x)}else{var a=r.match(wk);n=ru.from(a[2].replace(/[\r\n]/g,""),"base64")}var R=r.match(mk)[1];return{tag:R,data:n}}});var Lc=k((nC,wm)=>{"use strict";m();var St=ym(),Sk=gm(),Mk=_m(),Ak=Vs(),Bk=Kh().pbkdf2Sync,Pc=Ne().Buffer;function Rk(e,t){var r=e.algorithm.decrypt.kde.kdeparams.salt,i=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),n=Sk[e.algorithm.decrypt.cipher.algo.join(".")],a=e.algorithm.decrypt.cipher.iv,o=e.subjectPrivateKey,s=parseInt(n.split("-")[1],10)/8,y=Bk(t,r,i,s,"sha1"),_=Ak.createDecipheriv(n,y,a),x=[];return x.push(_.update(o)),x.push(_.final()),Pc.concat(x)}function mm(e){var t;typeof e=="object"&&!Pc.isBuffer(e)&&(t=e.passphrase,e=e.key),typeof e=="string"&&(e=Pc.from(e));var r=Mk(e,t),i=r.tag,n=r.data,a,o;switch(i){case"CERTIFICATE":o=St.certificate.decode(n,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(o||(o=St.PublicKey.decode(n,"der")),a=o.algorithm.algorithm.join("."),a){case"1.2.840.113549.1.1.1":return St.RSAPublicKey.decode(o.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return o.subjectPrivateKey=o.subjectPublicKey,{type:"ec",data:o};case"1.2.840.10040.4.1":return o.algorithm.params.pub_key=St.DSAparam.decode(o.subjectPublicKey.data,"der"),{type:"dsa",data:o.algorithm.params};default:throw new Error("unknown key id "+a)}case"ENCRYPTED PRIVATE KEY":n=St.EncryptedPrivateKey.decode(n,"der"),n=Rk(n,t);case"PRIVATE KEY":switch(o=St.PrivateKey.decode(n,"der"),a=o.algorithm.algorithm.join("."),a){case"1.2.840.113549.1.1.1":return St.RSAPrivateKey.decode(o.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:o.algorithm.curve,privateKey:St.ECPrivateKey.decode(o.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return o.algorithm.params.priv_key=St.DSAparam.decode(o.subjectPrivateKey,"der"),{type:"dsa",params:o.algorithm.params};default:throw new Error("unknown key id "+a)}case"RSA PUBLIC KEY":return St.RSAPublicKey.decode(n,"der");case"RSA PRIVATE KEY":return St.RSAPrivateKey.decode(n,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:St.DSAPrivateKey.decode(n,"der")};case"EC PRIVATE KEY":return n=St.ECPrivateKey.decode(n,"der"),{curve:n.parameters.value,privateKey:n.privateKey};default:throw new Error("unknown key type "+i)}}mm.signature=St.signature;wm.exports=mm});var Uc=k((oC,xm)=>{m();var kk=bo(),Cc=Ne().Buffer;xm.exports=function(e,t){for(var r=Cc.alloc(0),i=0,n;r.length<t;)n=Tk(i++),r=Cc.concat([r,kk("sha1").update(e).update(n).digest()]);return r.slice(0,t)};function Tk(e){var t=Cc.allocUnsafe(4);return t.writeUInt32BE(e,0),t}});var Fc=k((sC,Em)=>{m();Em.exports=function(t,r){for(var i=t.length,n=-1;++n<i;)t[n]^=r[n];return t}});var jc=k((lC,Mm)=>{m();var Sm=ei(),Ik=Ne().Buffer;function Ok(e,t){return Ik.from(e.toRed(Sm.mont(t.modulus)).redPow(new Sm(t.publicExponent)).fromRed().toArray())}Mm.exports=Ok});var Bm=k((Am,zc)=>{m();(function(e,t){"use strict";function r(d,f){if(!d)throw new Error(f||"Assertion failed")}function i(d,f){d.super_=f;var l=function(){};l.prototype=f.prototype,d.prototype=new l,d.prototype.constructor=d}function n(d,f,l){if(n.isBN(d))return d;this.negative=0,this.words=null,this.length=0,this.red=null,d!==null&&((f==="le"||f==="be")&&(l=f,f=10),this._init(d||0,f||10,l||"be"))}typeof e=="object"?e.exports=n:t.BN=n,n.BN=n,n.wordSize=26;var a;try{typeof window<"u"&&typeof window.Buffer<"u"?a=window.Buffer:a=st().Buffer}catch{}n.isBN=function(f){return f instanceof n?!0:f!==null&&typeof f=="object"&&f.constructor.wordSize===n.wordSize&&Array.isArray(f.words)},n.max=function(f,l){return f.cmp(l)>0?f:l},n.min=function(f,l){return f.cmp(l)<0?f:l},n.prototype._init=function(f,l,v){if(typeof f=="number")return this._initNumber(f,l,v);if(typeof f=="object")return this._initArray(f,l,v);l==="hex"&&(l=16),r(l===(l|0)&&l>=2&&l<=36),f=f.toString().replace(/\s+/g,"");var g=0;f[0]==="-"&&(g++,this.negative=1),g<f.length&&(l===16?this._parseHex(f,g,v):(this._parseBase(f,l,g),v==="le"&&this._initArray(this.toArray(),l,v)))},n.prototype._initNumber=function(f,l,v){f<0&&(this.negative=1,f=-f),f<67108864?(this.words=[f&67108863],this.length=1):f<4503599627370496?(this.words=[f&67108863,f/67108864&67108863],this.length=2):(r(f<9007199254740992),this.words=[f&67108863,f/67108864&67108863,1],this.length=3),v==="le"&&this._initArray(this.toArray(),l,v)},n.prototype._initArray=function(f,l,v){if(r(typeof f.length=="number"),f.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(f.length/3),this.words=new Array(this.length);for(var g=0;g<this.length;g++)this.words[g]=0;var p,u,w=0;if(v==="be")for(g=f.length-1,p=0;g>=0;g-=3)u=f[g]|f[g-1]<<8|f[g-2]<<16,this.words[p]|=u<<w&67108863,this.words[p+1]=u>>>26-w&67108863,w+=24,w>=26&&(w-=26,p++);else if(v==="le")for(g=0,p=0;g<f.length;g+=3)u=f[g]|f[g+1]<<8|f[g+2]<<16,this.words[p]|=u<<w&67108863,this.words[p+1]=u>>>26-w&67108863,w+=24,w>=26&&(w-=26,p++);return this._strip()};function o(d,f){var l=d.charCodeAt(f);if(l>=48&&l<=57)return l-48;if(l>=65&&l<=70)return l-55;if(l>=97&&l<=102)return l-87;r(!1,"Invalid character in "+d)}function s(d,f,l){var v=o(d,l);return l-1>=f&&(v|=o(d,l-1)<<4),v}n.prototype._parseHex=function(f,l,v){this.length=Math.ceil((f.length-l)/6),this.words=new Array(this.length);for(var g=0;g<this.length;g++)this.words[g]=0;var p=0,u=0,w;if(v==="be")for(g=f.length-1;g>=l;g-=2)w=s(f,l,g)<<p,this.words[u]|=w&67108863,p>=18?(p-=18,u+=1,this.words[u]|=w>>>26):p+=8;else{var E=f.length-l;for(g=E%2===0?l+1:l;g<f.length;g+=2)w=s(f,l,g)<<p,this.words[u]|=w&67108863,p>=18?(p-=18,u+=1,this.words[u]|=w>>>26):p+=8}this._strip()};function y(d,f,l,v){for(var g=0,p=0,u=Math.min(d.length,l),w=f;w<u;w++){var E=d.charCodeAt(w)-48;g*=v,E>=49?p=E-49+10:E>=17?p=E-17+10:p=E,r(E>=0&&p<v,"Invalid character"),g+=p}return g}n.prototype._parseBase=function(f,l,v){this.words=[0],this.length=1;for(var g=0,p=1;p<=67108863;p*=l)g++;g--,p=p/l|0;for(var u=f.length-v,w=u%g,E=Math.min(u,u-w)+v,c=0,S=v;S<E;S+=g)c=y(f,S,S+g,l),this.imuln(p),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(w!==0){var P=1;for(c=y(f,S,f.length,l),S=0;S<w;S++)P*=l;this.imuln(P),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}this._strip()},n.prototype.copy=function(f){f.words=new Array(this.length);for(var l=0;l<this.length;l++)f.words[l]=this.words[l];f.length=this.length,f.negative=this.negative,f.red=this.red};function _(d,f){d.words=f.words,d.length=f.length,d.negative=f.negative,d.red=f.red}if(n.prototype._move=function(f){_(f,this)},n.prototype.clone=function(){var f=new n(null);return this.copy(f),f},n.prototype._expand=function(f){for(;this.length<f;)this.words[this.length++]=0;return this},n.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},n.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{n.prototype[Symbol.for("nodejs.util.inspect.custom")]=x}catch{n.prototype.inspect=x}else n.prototype.inspect=x;function x(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var B=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],R=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],T=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(f,l){f=f||10,l=l|0||1;var v;if(f===16||f==="hex"){v="";for(var g=0,p=0,u=0;u<this.length;u++){var w=this.words[u],E=((w<<g|p)&16777215).toString(16);p=w>>>24-g&16777215,g+=2,g>=26&&(g-=26,u--),p!==0||u!==this.length-1?v=B[6-E.length]+E+v:v=E+v}for(p!==0&&(v=p.toString(16)+v);v.length%l!==0;)v="0"+v;return this.negative!==0&&(v="-"+v),v}if(f===(f|0)&&f>=2&&f<=36){var c=R[f],S=T[f];v="";var P=this.clone();for(P.negative=0;!P.isZero();){var C=P.modrn(S).toString(f);P=P.idivn(S),P.isZero()?v=C+v:v=B[c-C.length]+C+v}for(this.isZero()&&(v="0"+v);v.length%l!==0;)v="0"+v;return this.negative!==0&&(v="-"+v),v}r(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var f=this.words[0];return this.length===2?f+=this.words[1]*67108864:this.length===3&&this.words[2]===1?f+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-f:f},n.prototype.toJSON=function(){return this.toString(16,2)},a&&(n.prototype.toBuffer=function(f,l){return this.toArrayLike(a,f,l)}),n.prototype.toArray=function(f,l){return this.toArrayLike(Array,f,l)};var O=function(f,l){return f.allocUnsafe?f.allocUnsafe(l):new f(l)};n.prototype.toArrayLike=function(f,l,v){this._strip();var g=this.byteLength(),p=v||Math.max(1,g);r(g<=p,"byte array longer than desired length"),r(p>0,"Requested array length <= 0");var u=O(f,p),w=l==="le"?"LE":"BE";return this["_toArrayLike"+w](u,g),u},n.prototype._toArrayLikeLE=function(f,l){for(var v=0,g=0,p=0,u=0;p<this.length;p++){var w=this.words[p]<<u|g;f[v++]=w&255,v<f.length&&(f[v++]=w>>8&255),v<f.length&&(f[v++]=w>>16&255),u===6?(v<f.length&&(f[v++]=w>>24&255),g=0,u=0):(g=w>>>24,u+=2)}if(v<f.length)for(f[v++]=g;v<f.length;)f[v++]=0},n.prototype._toArrayLikeBE=function(f,l){for(var v=f.length-1,g=0,p=0,u=0;p<this.length;p++){var w=this.words[p]<<u|g;f[v--]=w&255,v>=0&&(f[v--]=w>>8&255),v>=0&&(f[v--]=w>>16&255),u===6?(v>=0&&(f[v--]=w>>24&255),g=0,u=0):(g=w>>>24,u+=2)}if(v>=0)for(f[v--]=g;v>=0;)f[v--]=0},Math.clz32?n.prototype._countBits=function(f){return 32-Math.clz32(f)}:n.prototype._countBits=function(f){var l=f,v=0;return l>=4096&&(v+=13,l>>>=13),l>=64&&(v+=7,l>>>=7),l>=8&&(v+=4,l>>>=4),l>=2&&(v+=2,l>>>=2),v+l},n.prototype._zeroBits=function(f){if(f===0)return 26;var l=f,v=0;return(l&8191)===0&&(v+=13,l>>>=13),(l&127)===0&&(v+=7,l>>>=7),(l&15)===0&&(v+=4,l>>>=4),(l&3)===0&&(v+=2,l>>>=2),(l&1)===0&&v++,v},n.prototype.bitLength=function(){var f=this.words[this.length-1],l=this._countBits(f);return(this.length-1)*26+l};function D(d){for(var f=new Array(d.bitLength()),l=0;l<f.length;l++){var v=l/26|0,g=l%26;f[l]=d.words[v]>>>g&1}return f}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var f=0,l=0;l<this.length;l++){var v=this._zeroBits(this.words[l]);if(f+=v,v!==26)break}return f},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(f){return this.negative!==0?this.abs().inotn(f).iaddn(1):this.clone()},n.prototype.fromTwos=function(f){return this.testn(f-1)?this.notn(f).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return this.negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},n.prototype.iuor=function(f){for(;this.length<f.length;)this.words[this.length++]=0;for(var l=0;l<f.length;l++)this.words[l]=this.words[l]|f.words[l];return this._strip()},n.prototype.ior=function(f){return r((this.negative|f.negative)===0),this.iuor(f)},n.prototype.or=function(f){return this.length>f.length?this.clone().ior(f):f.clone().ior(this)},n.prototype.uor=function(f){return this.length>f.length?this.clone().iuor(f):f.clone().iuor(this)},n.prototype.iuand=function(f){var l;this.length>f.length?l=f:l=this;for(var v=0;v<l.length;v++)this.words[v]=this.words[v]&f.words[v];return this.length=l.length,this._strip()},n.prototype.iand=function(f){return r((this.negative|f.negative)===0),this.iuand(f)},n.prototype.and=function(f){return this.length>f.length?this.clone().iand(f):f.clone().iand(this)},n.prototype.uand=function(f){return this.length>f.length?this.clone().iuand(f):f.clone().iuand(this)},n.prototype.iuxor=function(f){var l,v;this.length>f.length?(l=this,v=f):(l=f,v=this);for(var g=0;g<v.length;g++)this.words[g]=l.words[g]^v.words[g];if(this!==l)for(;g<l.length;g++)this.words[g]=l.words[g];return this.length=l.length,this._strip()},n.prototype.ixor=function(f){return r((this.negative|f.negative)===0),this.iuxor(f)},n.prototype.xor=function(f){return this.length>f.length?this.clone().ixor(f):f.clone().ixor(this)},n.prototype.uxor=function(f){return this.length>f.length?this.clone().iuxor(f):f.clone().iuxor(this)},n.prototype.inotn=function(f){r(typeof f=="number"&&f>=0);var l=Math.ceil(f/26)|0,v=f%26;this._expand(l),v>0&&l--;for(var g=0;g<l;g++)this.words[g]=~this.words[g]&67108863;return v>0&&(this.words[g]=~this.words[g]&67108863>>26-v),this._strip()},n.prototype.notn=function(f){return this.clone().inotn(f)},n.prototype.setn=function(f,l){r(typeof f=="number"&&f>=0);var v=f/26|0,g=f%26;return this._expand(v+1),l?this.words[v]=this.words[v]|1<<g:this.words[v]=this.words[v]&~(1<<g),this._strip()},n.prototype.iadd=function(f){var l;if(this.negative!==0&&f.negative===0)return this.negative=0,l=this.isub(f),this.negative^=1,this._normSign();if(this.negative===0&&f.negative!==0)return f.negative=0,l=this.isub(f),f.negative=1,l._normSign();var v,g;this.length>f.length?(v=this,g=f):(v=f,g=this);for(var p=0,u=0;u<g.length;u++)l=(v.words[u]|0)+(g.words[u]|0)+p,this.words[u]=l&67108863,p=l>>>26;for(;p!==0&&u<v.length;u++)l=(v.words[u]|0)+p,this.words[u]=l&67108863,p=l>>>26;if(this.length=v.length,p!==0)this.words[this.length]=p,this.length++;else if(v!==this)for(;u<v.length;u++)this.words[u]=v.words[u];return this},n.prototype.add=function(f){var l;return f.negative!==0&&this.negative===0?(f.negative=0,l=this.sub(f),f.negative^=1,l):f.negative===0&&this.negative!==0?(this.negative=0,l=f.sub(this),this.negative=1,l):this.length>f.length?this.clone().iadd(f):f.clone().iadd(this)},n.prototype.isub=function(f){if(f.negative!==0){f.negative=0;var l=this.iadd(f);return f.negative=1,l._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(f),this.negative=1,this._normSign();var v=this.cmp(f);if(v===0)return this.negative=0,this.length=1,this.words[0]=0,this;var g,p;v>0?(g=this,p=f):(g=f,p=this);for(var u=0,w=0;w<p.length;w++)l=(g.words[w]|0)-(p.words[w]|0)+u,u=l>>26,this.words[w]=l&67108863;for(;u!==0&&w<g.length;w++)l=(g.words[w]|0)+u,u=l>>26,this.words[w]=l&67108863;if(u===0&&w<g.length&&g!==this)for(;w<g.length;w++)this.words[w]=g.words[w];return this.length=Math.max(this.length,w),g!==this&&(this.negative=1),this._strip()},n.prototype.sub=function(f){return this.clone().isub(f)};function U(d,f,l){l.negative=f.negative^d.negative;var v=d.length+f.length|0;l.length=v,v=v-1|0;var g=d.words[0]|0,p=f.words[0]|0,u=g*p,w=u&67108863,E=u/67108864|0;l.words[0]=w;for(var c=1;c<v;c++){for(var S=E>>>26,P=E&67108863,C=Math.min(c,f.length-1),L=Math.max(0,c-d.length+1);L<=C;L++){var V=c-L|0;g=d.words[V]|0,p=f.words[L]|0,u=g*p+P,S+=u/67108864|0,P=u&67108863}l.words[c]=P|0,E=S|0}return E!==0?l.words[c]=E|0:l.length--,l._strip()}var N=function(f,l,v){var g=f.words,p=l.words,u=v.words,w=0,E,c,S,P=g[0]|0,C=P&8191,L=P>>>13,V=g[1]|0,G=V&8191,Y=V>>>13,Wt=g[2]|0,Q=Wt&8191,ee=Wt>>>13,_a=g[3]|0,ie=_a&8191,ne=_a>>>13,ma=g[4]|0,ae=ma&8191,oe=ma>>>13,wa=g[5]|0,fe=wa&8191,se=wa>>>13,xa=g[6]|0,ue=xa&8191,le=xa>>>13,Ea=g[7]|0,he=Ea&8191,ce=Ea>>>13,Sa=g[8]|0,de=Sa&8191,pe=Sa>>>13,Ma=g[9]|0,ve=Ma&8191,ye=Ma>>>13,Aa=p[0]|0,ge=Aa&8191,be=Aa>>>13,Ba=p[1]|0,_e=Ba&8191,me=Ba>>>13,Ra=p[2]|0,we=Ra&8191,xe=Ra>>>13,ka=p[3]|0,Ee=ka&8191,Se=ka>>>13,Ta=p[4]|0,Me=Ta&8191,Ae=Ta>>>13,Ia=p[5]|0,Be=Ia&8191,Re=Ia>>>13,Oa=p[6]|0,ke=Oa&8191,Te=Oa>>>13,qa=p[7]|0,Ie=qa&8191,Oe=qa>>>13,Da=p[8]|0,qe=Da&8191,De=Da>>>13,En=p[9]|0,$e=En&8191,Ye=En>>>13;v.negative=f.negative^l.negative,v.length=19,E=Math.imul(C,ge),c=Math.imul(C,be),c=c+Math.imul(L,ge)|0,S=Math.imul(L,be);var di=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(di>>>26)|0,di&=67108863,E=Math.imul(G,ge),c=Math.imul(G,be),c=c+Math.imul(Y,ge)|0,S=Math.imul(Y,be),E=E+Math.imul(C,_e)|0,c=c+Math.imul(C,me)|0,c=c+Math.imul(L,_e)|0,S=S+Math.imul(L,me)|0;var pi=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(pi>>>26)|0,pi&=67108863,E=Math.imul(Q,ge),c=Math.imul(Q,be),c=c+Math.imul(ee,ge)|0,S=Math.imul(ee,be),E=E+Math.imul(G,_e)|0,c=c+Math.imul(G,me)|0,c=c+Math.imul(Y,_e)|0,S=S+Math.imul(Y,me)|0,E=E+Math.imul(C,we)|0,c=c+Math.imul(C,xe)|0,c=c+Math.imul(L,we)|0,S=S+Math.imul(L,xe)|0;var vi=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(vi>>>26)|0,vi&=67108863,E=Math.imul(ie,ge),c=Math.imul(ie,be),c=c+Math.imul(ne,ge)|0,S=Math.imul(ne,be),E=E+Math.imul(Q,_e)|0,c=c+Math.imul(Q,me)|0,c=c+Math.imul(ee,_e)|0,S=S+Math.imul(ee,me)|0,E=E+Math.imul(G,we)|0,c=c+Math.imul(G,xe)|0,c=c+Math.imul(Y,we)|0,S=S+Math.imul(Y,xe)|0,E=E+Math.imul(C,Ee)|0,c=c+Math.imul(C,Se)|0,c=c+Math.imul(L,Ee)|0,S=S+Math.imul(L,Se)|0;var yi=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(yi>>>26)|0,yi&=67108863,E=Math.imul(ae,ge),c=Math.imul(ae,be),c=c+Math.imul(oe,ge)|0,S=Math.imul(oe,be),E=E+Math.imul(ie,_e)|0,c=c+Math.imul(ie,me)|0,c=c+Math.imul(ne,_e)|0,S=S+Math.imul(ne,me)|0,E=E+Math.imul(Q,we)|0,c=c+Math.imul(Q,xe)|0,c=c+Math.imul(ee,we)|0,S=S+Math.imul(ee,xe)|0,E=E+Math.imul(G,Ee)|0,c=c+Math.imul(G,Se)|0,c=c+Math.imul(Y,Ee)|0,S=S+Math.imul(Y,Se)|0,E=E+Math.imul(C,Me)|0,c=c+Math.imul(C,Ae)|0,c=c+Math.imul(L,Me)|0,S=S+Math.imul(L,Ae)|0;var gi=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(gi>>>26)|0,gi&=67108863,E=Math.imul(fe,ge),c=Math.imul(fe,be),c=c+Math.imul(se,ge)|0,S=Math.imul(se,be),E=E+Math.imul(ae,_e)|0,c=c+Math.imul(ae,me)|0,c=c+Math.imul(oe,_e)|0,S=S+Math.imul(oe,me)|0,E=E+Math.imul(ie,we)|0,c=c+Math.imul(ie,xe)|0,c=c+Math.imul(ne,we)|0,S=S+Math.imul(ne,xe)|0,E=E+Math.imul(Q,Ee)|0,c=c+Math.imul(Q,Se)|0,c=c+Math.imul(ee,Ee)|0,S=S+Math.imul(ee,Se)|0,E=E+Math.imul(G,Me)|0,c=c+Math.imul(G,Ae)|0,c=c+Math.imul(Y,Me)|0,S=S+Math.imul(Y,Ae)|0,E=E+Math.imul(C,Be)|0,c=c+Math.imul(C,Re)|0,c=c+Math.imul(L,Be)|0,S=S+Math.imul(L,Re)|0;var bi=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(bi>>>26)|0,bi&=67108863,E=Math.imul(ue,ge),c=Math.imul(ue,be),c=c+Math.imul(le,ge)|0,S=Math.imul(le,be),E=E+Math.imul(fe,_e)|0,c=c+Math.imul(fe,me)|0,c=c+Math.imul(se,_e)|0,S=S+Math.imul(se,me)|0,E=E+Math.imul(ae,we)|0,c=c+Math.imul(ae,xe)|0,c=c+Math.imul(oe,we)|0,S=S+Math.imul(oe,xe)|0,E=E+Math.imul(ie,Ee)|0,c=c+Math.imul(ie,Se)|0,c=c+Math.imul(ne,Ee)|0,S=S+Math.imul(ne,Se)|0,E=E+Math.imul(Q,Me)|0,c=c+Math.imul(Q,Ae)|0,c=c+Math.imul(ee,Me)|0,S=S+Math.imul(ee,Ae)|0,E=E+Math.imul(G,Be)|0,c=c+Math.imul(G,Re)|0,c=c+Math.imul(Y,Be)|0,S=S+Math.imul(Y,Re)|0,E=E+Math.imul(C,ke)|0,c=c+Math.imul(C,Te)|0,c=c+Math.imul(L,ke)|0,S=S+Math.imul(L,Te)|0;var _i=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(_i>>>26)|0,_i&=67108863,E=Math.imul(he,ge),c=Math.imul(he,be),c=c+Math.imul(ce,ge)|0,S=Math.imul(ce,be),E=E+Math.imul(ue,_e)|0,c=c+Math.imul(ue,me)|0,c=c+Math.imul(le,_e)|0,S=S+Math.imul(le,me)|0,E=E+Math.imul(fe,we)|0,c=c+Math.imul(fe,xe)|0,c=c+Math.imul(se,we)|0,S=S+Math.imul(se,xe)|0,E=E+Math.imul(ae,Ee)|0,c=c+Math.imul(ae,Se)|0,c=c+Math.imul(oe,Ee)|0,S=S+Math.imul(oe,Se)|0,E=E+Math.imul(ie,Me)|0,c=c+Math.imul(ie,Ae)|0,c=c+Math.imul(ne,Me)|0,S=S+Math.imul(ne,Ae)|0,E=E+Math.imul(Q,Be)|0,c=c+Math.imul(Q,Re)|0,c=c+Math.imul(ee,Be)|0,S=S+Math.imul(ee,Re)|0,E=E+Math.imul(G,ke)|0,c=c+Math.imul(G,Te)|0,c=c+Math.imul(Y,ke)|0,S=S+Math.imul(Y,Te)|0,E=E+Math.imul(C,Ie)|0,c=c+Math.imul(C,Oe)|0,c=c+Math.imul(L,Ie)|0,S=S+Math.imul(L,Oe)|0;var mi=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(mi>>>26)|0,mi&=67108863,E=Math.imul(de,ge),c=Math.imul(de,be),c=c+Math.imul(pe,ge)|0,S=Math.imul(pe,be),E=E+Math.imul(he,_e)|0,c=c+Math.imul(he,me)|0,c=c+Math.imul(ce,_e)|0,S=S+Math.imul(ce,me)|0,E=E+Math.imul(ue,we)|0,c=c+Math.imul(ue,xe)|0,c=c+Math.imul(le,we)|0,S=S+Math.imul(le,xe)|0,E=E+Math.imul(fe,Ee)|0,c=c+Math.imul(fe,Se)|0,c=c+Math.imul(se,Ee)|0,S=S+Math.imul(se,Se)|0,E=E+Math.imul(ae,Me)|0,c=c+Math.imul(ae,Ae)|0,c=c+Math.imul(oe,Me)|0,S=S+Math.imul(oe,Ae)|0,E=E+Math.imul(ie,Be)|0,c=c+Math.imul(ie,Re)|0,c=c+Math.imul(ne,Be)|0,S=S+Math.imul(ne,Re)|0,E=E+Math.imul(Q,ke)|0,c=c+Math.imul(Q,Te)|0,c=c+Math.imul(ee,ke)|0,S=S+Math.imul(ee,Te)|0,E=E+Math.imul(G,Ie)|0,c=c+Math.imul(G,Oe)|0,c=c+Math.imul(Y,Ie)|0,S=S+Math.imul(Y,Oe)|0,E=E+Math.imul(C,qe)|0,c=c+Math.imul(C,De)|0,c=c+Math.imul(L,qe)|0,S=S+Math.imul(L,De)|0;var wi=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(wi>>>26)|0,wi&=67108863,E=Math.imul(ve,ge),c=Math.imul(ve,be),c=c+Math.imul(ye,ge)|0,S=Math.imul(ye,be),E=E+Math.imul(de,_e)|0,c=c+Math.imul(de,me)|0,c=c+Math.imul(pe,_e)|0,S=S+Math.imul(pe,me)|0,E=E+Math.imul(he,we)|0,c=c+Math.imul(he,xe)|0,c=c+Math.imul(ce,we)|0,S=S+Math.imul(ce,xe)|0,E=E+Math.imul(ue,Ee)|0,c=c+Math.imul(ue,Se)|0,c=c+Math.imul(le,Ee)|0,S=S+Math.imul(le,Se)|0,E=E+Math.imul(fe,Me)|0,c=c+Math.imul(fe,Ae)|0,c=c+Math.imul(se,Me)|0,S=S+Math.imul(se,Ae)|0,E=E+Math.imul(ae,Be)|0,c=c+Math.imul(ae,Re)|0,c=c+Math.imul(oe,Be)|0,S=S+Math.imul(oe,Re)|0,E=E+Math.imul(ie,ke)|0,c=c+Math.imul(ie,Te)|0,c=c+Math.imul(ne,ke)|0,S=S+Math.imul(ne,Te)|0,E=E+Math.imul(Q,Ie)|0,c=c+Math.imul(Q,Oe)|0,c=c+Math.imul(ee,Ie)|0,S=S+Math.imul(ee,Oe)|0,E=E+Math.imul(G,qe)|0,c=c+Math.imul(G,De)|0,c=c+Math.imul(Y,qe)|0,S=S+Math.imul(Y,De)|0,E=E+Math.imul(C,$e)|0,c=c+Math.imul(C,Ye)|0,c=c+Math.imul(L,$e)|0,S=S+Math.imul(L,Ye)|0;var xi=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(xi>>>26)|0,xi&=67108863,E=Math.imul(ve,_e),c=Math.imul(ve,me),c=c+Math.imul(ye,_e)|0,S=Math.imul(ye,me),E=E+Math.imul(de,we)|0,c=c+Math.imul(de,xe)|0,c=c+Math.imul(pe,we)|0,S=S+Math.imul(pe,xe)|0,E=E+Math.imul(he,Ee)|0,c=c+Math.imul(he,Se)|0,c=c+Math.imul(ce,Ee)|0,S=S+Math.imul(ce,Se)|0,E=E+Math.imul(ue,Me)|0,c=c+Math.imul(ue,Ae)|0,c=c+Math.imul(le,Me)|0,S=S+Math.imul(le,Ae)|0,E=E+Math.imul(fe,Be)|0,c=c+Math.imul(fe,Re)|0,c=c+Math.imul(se,Be)|0,S=S+Math.imul(se,Re)|0,E=E+Math.imul(ae,ke)|0,c=c+Math.imul(ae,Te)|0,c=c+Math.imul(oe,ke)|0,S=S+Math.imul(oe,Te)|0,E=E+Math.imul(ie,Ie)|0,c=c+Math.imul(ie,Oe)|0,c=c+Math.imul(ne,Ie)|0,S=S+Math.imul(ne,Oe)|0,E=E+Math.imul(Q,qe)|0,c=c+Math.imul(Q,De)|0,c=c+Math.imul(ee,qe)|0,S=S+Math.imul(ee,De)|0,E=E+Math.imul(G,$e)|0,c=c+Math.imul(G,Ye)|0,c=c+Math.imul(Y,$e)|0,S=S+Math.imul(Y,Ye)|0;var Ei=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,E=Math.imul(ve,we),c=Math.imul(ve,xe),c=c+Math.imul(ye,we)|0,S=Math.imul(ye,xe),E=E+Math.imul(de,Ee)|0,c=c+Math.imul(de,Se)|0,c=c+Math.imul(pe,Ee)|0,S=S+Math.imul(pe,Se)|0,E=E+Math.imul(he,Me)|0,c=c+Math.imul(he,Ae)|0,c=c+Math.imul(ce,Me)|0,S=S+Math.imul(ce,Ae)|0,E=E+Math.imul(ue,Be)|0,c=c+Math.imul(ue,Re)|0,c=c+Math.imul(le,Be)|0,S=S+Math.imul(le,Re)|0,E=E+Math.imul(fe,ke)|0,c=c+Math.imul(fe,Te)|0,c=c+Math.imul(se,ke)|0,S=S+Math.imul(se,Te)|0,E=E+Math.imul(ae,Ie)|0,c=c+Math.imul(ae,Oe)|0,c=c+Math.imul(oe,Ie)|0,S=S+Math.imul(oe,Oe)|0,E=E+Math.imul(ie,qe)|0,c=c+Math.imul(ie,De)|0,c=c+Math.imul(ne,qe)|0,S=S+Math.imul(ne,De)|0,E=E+Math.imul(Q,$e)|0,c=c+Math.imul(Q,Ye)|0,c=c+Math.imul(ee,$e)|0,S=S+Math.imul(ee,Ye)|0;var Si=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(Si>>>26)|0,Si&=67108863,E=Math.imul(ve,Ee),c=Math.imul(ve,Se),c=c+Math.imul(ye,Ee)|0,S=Math.imul(ye,Se),E=E+Math.imul(de,Me)|0,c=c+Math.imul(de,Ae)|0,c=c+Math.imul(pe,Me)|0,S=S+Math.imul(pe,Ae)|0,E=E+Math.imul(he,Be)|0,c=c+Math.imul(he,Re)|0,c=c+Math.imul(ce,Be)|0,S=S+Math.imul(ce,Re)|0,E=E+Math.imul(ue,ke)|0,c=c+Math.imul(ue,Te)|0,c=c+Math.imul(le,ke)|0,S=S+Math.imul(le,Te)|0,E=E+Math.imul(fe,Ie)|0,c=c+Math.imul(fe,Oe)|0,c=c+Math.imul(se,Ie)|0,S=S+Math.imul(se,Oe)|0,E=E+Math.imul(ae,qe)|0,c=c+Math.imul(ae,De)|0,c=c+Math.imul(oe,qe)|0,S=S+Math.imul(oe,De)|0,E=E+Math.imul(ie,$e)|0,c=c+Math.imul(ie,Ye)|0,c=c+Math.imul(ne,$e)|0,S=S+Math.imul(ne,Ye)|0;var Mi=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(Mi>>>26)|0,Mi&=67108863,E=Math.imul(ve,Me),c=Math.imul(ve,Ae),c=c+Math.imul(ye,Me)|0,S=Math.imul(ye,Ae),E=E+Math.imul(de,Be)|0,c=c+Math.imul(de,Re)|0,c=c+Math.imul(pe,Be)|0,S=S+Math.imul(pe,Re)|0,E=E+Math.imul(he,ke)|0,c=c+Math.imul(he,Te)|0,c=c+Math.imul(ce,ke)|0,S=S+Math.imul(ce,Te)|0,E=E+Math.imul(ue,Ie)|0,c=c+Math.imul(ue,Oe)|0,c=c+Math.imul(le,Ie)|0,S=S+Math.imul(le,Oe)|0,E=E+Math.imul(fe,qe)|0,c=c+Math.imul(fe,De)|0,c=c+Math.imul(se,qe)|0,S=S+Math.imul(se,De)|0,E=E+Math.imul(ae,$e)|0,c=c+Math.imul(ae,Ye)|0,c=c+Math.imul(oe,$e)|0,S=S+Math.imul(oe,Ye)|0;var Ai=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(Ai>>>26)|0,Ai&=67108863,E=Math.imul(ve,Be),c=Math.imul(ve,Re),c=c+Math.imul(ye,Be)|0,S=Math.imul(ye,Re),E=E+Math.imul(de,ke)|0,c=c+Math.imul(de,Te)|0,c=c+Math.imul(pe,ke)|0,S=S+Math.imul(pe,Te)|0,E=E+Math.imul(he,Ie)|0,c=c+Math.imul(he,Oe)|0,c=c+Math.imul(ce,Ie)|0,S=S+Math.imul(ce,Oe)|0,E=E+Math.imul(ue,qe)|0,c=c+Math.imul(ue,De)|0,c=c+Math.imul(le,qe)|0,S=S+Math.imul(le,De)|0,E=E+Math.imul(fe,$e)|0,c=c+Math.imul(fe,Ye)|0,c=c+Math.imul(se,$e)|0,S=S+Math.imul(se,Ye)|0;var Bi=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(Bi>>>26)|0,Bi&=67108863,E=Math.imul(ve,ke),c=Math.imul(ve,Te),c=c+Math.imul(ye,ke)|0,S=Math.imul(ye,Te),E=E+Math.imul(de,Ie)|0,c=c+Math.imul(de,Oe)|0,c=c+Math.imul(pe,Ie)|0,S=S+Math.imul(pe,Oe)|0,E=E+Math.imul(he,qe)|0,c=c+Math.imul(he,De)|0,c=c+Math.imul(ce,qe)|0,S=S+Math.imul(ce,De)|0,E=E+Math.imul(ue,$e)|0,c=c+Math.imul(ue,Ye)|0,c=c+Math.imul(le,$e)|0,S=S+Math.imul(le,Ye)|0;var Ri=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(Ri>>>26)|0,Ri&=67108863,E=Math.imul(ve,Ie),c=Math.imul(ve,Oe),c=c+Math.imul(ye,Ie)|0,S=Math.imul(ye,Oe),E=E+Math.imul(de,qe)|0,c=c+Math.imul(de,De)|0,c=c+Math.imul(pe,qe)|0,S=S+Math.imul(pe,De)|0,E=E+Math.imul(he,$e)|0,c=c+Math.imul(he,Ye)|0,c=c+Math.imul(ce,$e)|0,S=S+Math.imul(ce,Ye)|0;var Zu=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(Zu>>>26)|0,Zu&=67108863,E=Math.imul(ve,qe),c=Math.imul(ve,De),c=c+Math.imul(ye,qe)|0,S=Math.imul(ye,De),E=E+Math.imul(de,$e)|0,c=c+Math.imul(de,Ye)|0,c=c+Math.imul(pe,$e)|0,S=S+Math.imul(pe,Ye)|0;var Hu=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(Hu>>>26)|0,Hu&=67108863,E=Math.imul(ve,$e),c=Math.imul(ve,Ye),c=c+Math.imul(ye,$e)|0,S=Math.imul(ye,Ye);var Wu=(w+E|0)+((c&8191)<<13)|0;return w=(S+(c>>>13)|0)+(Wu>>>26)|0,Wu&=67108863,u[0]=di,u[1]=pi,u[2]=vi,u[3]=yi,u[4]=gi,u[5]=bi,u[6]=_i,u[7]=mi,u[8]=wi,u[9]=xi,u[10]=Ei,u[11]=Si,u[12]=Mi,u[13]=Ai,u[14]=Bi,u[15]=Ri,u[16]=Zu,u[17]=Hu,u[18]=Wu,w!==0&&(u[19]=w,v.length++),v};Math.imul||(N=U);function j(d,f,l){l.negative=f.negative^d.negative,l.length=d.length+f.length;for(var v=0,g=0,p=0;p<l.length-1;p++){var u=g;g=0;for(var w=v&67108863,E=Math.min(p,f.length-1),c=Math.max(0,p-d.length+1);c<=E;c++){var S=p-c,P=d.words[S]|0,C=f.words[c]|0,L=P*C,V=L&67108863;u=u+(L/67108864|0)|0,V=V+w|0,w=V&67108863,u=u+(V>>>26)|0,g+=u>>>26,u&=67108863}l.words[p]=w,v=u,u=g}return v!==0?l.words[p]=v:l.length--,l._strip()}function H(d,f,l){return j(d,f,l)}n.prototype.mulTo=function(f,l){var v,g=this.length+f.length;return this.length===10&&f.length===10?v=N(this,f,l):g<63?v=U(this,f,l):g<1024?v=j(this,f,l):v=H(this,f,l),v};function W(d,f){this.x=d,this.y=f}W.prototype.makeRBT=function(f){for(var l=new Array(f),v=n.prototype._countBits(f)-1,g=0;g<f;g++)l[g]=this.revBin(g,v,f);return l},W.prototype.revBin=function(f,l,v){if(f===0||f===v-1)return f;for(var g=0,p=0;p<l;p++)g|=(f&1)<<l-p-1,f>>=1;return g},W.prototype.permute=function(f,l,v,g,p,u){for(var w=0;w<u;w++)g[w]=l[f[w]],p[w]=v[f[w]]},W.prototype.transform=function(f,l,v,g,p,u){this.permute(u,f,l,v,g,p);for(var w=1;w<p;w<<=1)for(var E=w<<1,c=Math.cos(2*Math.PI/E),S=Math.sin(2*Math.PI/E),P=0;P<p;P+=E)for(var C=c,L=S,V=0;V<w;V++){var G=v[P+V],Y=g[P+V],Wt=v[P+V+w],Q=g[P+V+w],ee=C*Wt-L*Q;Q=C*Q+L*Wt,Wt=ee,v[P+V]=G+Wt,g[P+V]=Y+Q,v[P+V+w]=G-Wt,g[P+V+w]=Y-Q,V!==E&&(ee=c*C-S*L,L=c*L+S*C,C=ee)}},W.prototype.guessLen13b=function(f,l){var v=Math.max(l,f)|1,g=v&1,p=0;for(v=v/2|0;v;v=v>>>1)p++;return 1<<p+1+g},W.prototype.conjugate=function(f,l,v){if(!(v<=1))for(var g=0;g<v/2;g++){var p=f[g];f[g]=f[v-g-1],f[v-g-1]=p,p=l[g],l[g]=-l[v-g-1],l[v-g-1]=-p}},W.prototype.normalize13b=function(f,l){for(var v=0,g=0;g<l/2;g++){var p=Math.round(f[2*g+1]/l)*8192+Math.round(f[2*g]/l)+v;f[g]=p&67108863,p<67108864?v=0:v=p/67108864|0}return f},W.prototype.convert13b=function(f,l,v,g){for(var p=0,u=0;u<l;u++)p=p+(f[u]|0),v[2*u]=p&8191,p=p>>>13,v[2*u+1]=p&8191,p=p>>>13;for(u=2*l;u<g;++u)v[u]=0;r(p===0),r((p&-8192)===0)},W.prototype.stub=function(f){for(var l=new Array(f),v=0;v<f;v++)l[v]=0;return l},W.prototype.mulp=function(f,l,v){var g=2*this.guessLen13b(f.length,l.length),p=this.makeRBT(g),u=this.stub(g),w=new Array(g),E=new Array(g),c=new Array(g),S=new Array(g),P=new Array(g),C=new Array(g),L=v.words;L.length=g,this.convert13b(f.words,f.length,w,g),this.convert13b(l.words,l.length,S,g),this.transform(w,u,E,c,g,p),this.transform(S,u,P,C,g,p);for(var V=0;V<g;V++){var G=E[V]*P[V]-c[V]*C[V];c[V]=E[V]*C[V]+c[V]*P[V],E[V]=G}return this.conjugate(E,c,g),this.transform(E,c,L,u,g,p),this.conjugate(L,u,g),this.normalize13b(L,g),v.negative=f.negative^l.negative,v.length=f.length+l.length,v._strip()},n.prototype.mul=function(f){var l=new n(null);return l.words=new Array(this.length+f.length),this.mulTo(f,l)},n.prototype.mulf=function(f){var l=new n(null);return l.words=new Array(this.length+f.length),H(this,f,l)},n.prototype.imul=function(f){return this.clone().mulTo(f,this)},n.prototype.imuln=function(f){var l=f<0;l&&(f=-f),r(typeof f=="number"),r(f<67108864);for(var v=0,g=0;g<this.length;g++){var p=(this.words[g]|0)*f,u=(p&67108863)+(v&67108863);v>>=26,v+=p/67108864|0,v+=u>>>26,this.words[g]=u&67108863}return v!==0&&(this.words[g]=v,this.length++),this.length=f===0?1:this.length,l?this.ineg():this},n.prototype.muln=function(f){return this.clone().imuln(f)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(f){var l=D(f);if(l.length===0)return new n(1);for(var v=this,g=0;g<l.length&&l[g]===0;g++,v=v.sqr());if(++g<l.length)for(var p=v.sqr();g<l.length;g++,p=p.sqr())l[g]!==0&&(v=v.mul(p));return v},n.prototype.iushln=function(f){r(typeof f=="number"&&f>=0);var l=f%26,v=(f-l)/26,g=67108863>>>26-l<<26-l,p;if(l!==0){var u=0;for(p=0;p<this.length;p++){var w=this.words[p]&g,E=(this.words[p]|0)-w<<l;this.words[p]=E|u,u=w>>>26-l}u&&(this.words[p]=u,this.length++)}if(v!==0){for(p=this.length-1;p>=0;p--)this.words[p+v]=this.words[p];for(p=0;p<v;p++)this.words[p]=0;this.length+=v}return this._strip()},n.prototype.ishln=function(f){return r(this.negative===0),this.iushln(f)},n.prototype.iushrn=function(f,l,v){r(typeof f=="number"&&f>=0);var g;l?g=(l-l%26)/26:g=0;var p=f%26,u=Math.min((f-p)/26,this.length),w=67108863^67108863>>>p<<p,E=v;if(g-=u,g=Math.max(0,g),E){for(var c=0;c<u;c++)E.words[c]=this.words[c];E.length=u}if(u!==0)if(this.length>u)for(this.length-=u,c=0;c<this.length;c++)this.words[c]=this.words[c+u];else this.words[0]=0,this.length=1;var S=0;for(c=this.length-1;c>=0&&(S!==0||c>=g);c--){var P=this.words[c]|0;this.words[c]=S<<26-p|P>>>p,S=P&w}return E&&S!==0&&(E.words[E.length++]=S),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},n.prototype.ishrn=function(f,l,v){return r(this.negative===0),this.iushrn(f,l,v)},n.prototype.shln=function(f){return this.clone().ishln(f)},n.prototype.ushln=function(f){return this.clone().iushln(f)},n.prototype.shrn=function(f){return this.clone().ishrn(f)},n.prototype.ushrn=function(f){return this.clone().iushrn(f)},n.prototype.testn=function(f){r(typeof f=="number"&&f>=0);var l=f%26,v=(f-l)/26,g=1<<l;if(this.length<=v)return!1;var p=this.words[v];return!!(p&g)},n.prototype.imaskn=function(f){r(typeof f=="number"&&f>=0);var l=f%26,v=(f-l)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=v)return this;if(l!==0&&v++,this.length=Math.min(v,this.length),l!==0){var g=67108863^67108863>>>l<<l;this.words[this.length-1]&=g}return this.length===0&&(this.words[0]=0,this.length=1),this._strip()},n.prototype.maskn=function(f){return this.clone().imaskn(f)},n.prototype.iaddn=function(f){return r(typeof f=="number"),r(f<67108864),f<0?this.isubn(-f):this.negative!==0?this.length===1&&(this.words[0]|0)<=f?(this.words[0]=f-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(f),this.negative=1,this):this._iaddn(f)},n.prototype._iaddn=function(f){this.words[0]+=f;for(var l=0;l<this.length&&this.words[l]>=67108864;l++)this.words[l]-=67108864,l===this.length-1?this.words[l+1]=1:this.words[l+1]++;return this.length=Math.max(this.length,l+1),this},n.prototype.isubn=function(f){if(r(typeof f=="number"),r(f<67108864),f<0)return this.iaddn(-f);if(this.negative!==0)return this.negative=0,this.iaddn(f),this.negative=1,this;if(this.words[0]-=f,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var l=0;l<this.length&&this.words[l]<0;l++)this.words[l]+=67108864,this.words[l+1]-=1;return this._strip()},n.prototype.addn=function(f){return this.clone().iaddn(f)},n.prototype.subn=function(f){return this.clone().isubn(f)},n.prototype.iabs=function(){return this.negative=0,this},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(f,l,v){var g=f.length+v,p;this._expand(g);var u,w=0;for(p=0;p<f.length;p++){u=(this.words[p+v]|0)+w;var E=(f.words[p]|0)*l;u-=E&67108863,w=(u>>26)-(E/67108864|0),this.words[p+v]=u&67108863}for(;p<this.length-v;p++)u=(this.words[p+v]|0)+w,w=u>>26,this.words[p+v]=u&67108863;if(w===0)return this._strip();for(r(w===-1),w=0,p=0;p<this.length;p++)u=-(this.words[p]|0)+w,w=u>>26,this.words[p]=u&67108863;return this.negative=1,this._strip()},n.prototype._wordDiv=function(f,l){var v=this.length-f.length,g=this.clone(),p=f,u=p.words[p.length-1]|0,w=this._countBits(u);v=26-w,v!==0&&(p=p.ushln(v),g.iushln(v),u=p.words[p.length-1]|0);var E=g.length-p.length,c;if(l!=="mod"){c=new n(null),c.length=E+1,c.words=new Array(c.length);for(var S=0;S<c.length;S++)c.words[S]=0}var P=g.clone()._ishlnsubmul(p,1,E);P.negative===0&&(g=P,c&&(c.words[E]=1));for(var C=E-1;C>=0;C--){var L=(g.words[p.length+C]|0)*67108864+(g.words[p.length+C-1]|0);for(L=Math.min(L/u|0,67108863),g._ishlnsubmul(p,L,C);g.negative!==0;)L--,g.negative=0,g._ishlnsubmul(p,1,C),g.isZero()||(g.negative^=1);c&&(c.words[C]=L)}return c&&c._strip(),g._strip(),l!=="div"&&v!==0&&g.iushrn(v),{div:c||null,mod:g}},n.prototype.divmod=function(f,l,v){if(r(!f.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var g,p,u;return this.negative!==0&&f.negative===0?(u=this.neg().divmod(f,l),l!=="mod"&&(g=u.div.neg()),l!=="div"&&(p=u.mod.neg(),v&&p.negative!==0&&p.iadd(f)),{div:g,mod:p}):this.negative===0&&f.negative!==0?(u=this.divmod(f.neg(),l),l!=="mod"&&(g=u.div.neg()),{div:g,mod:u.mod}):(this.negative&f.negative)!==0?(u=this.neg().divmod(f.neg(),l),l!=="div"&&(p=u.mod.neg(),v&&p.negative!==0&&p.isub(f)),{div:u.div,mod:p}):f.length>this.length||this.cmp(f)<0?{div:new n(0),mod:this}:f.length===1?l==="div"?{div:this.divn(f.words[0]),mod:null}:l==="mod"?{div:null,mod:new n(this.modrn(f.words[0]))}:{div:this.divn(f.words[0]),mod:new n(this.modrn(f.words[0]))}:this._wordDiv(f,l)},n.prototype.div=function(f){return this.divmod(f,"div",!1).div},n.prototype.mod=function(f){return this.divmod(f,"mod",!1).mod},n.prototype.umod=function(f){return this.divmod(f,"mod",!0).mod},n.prototype.divRound=function(f){var l=this.divmod(f);if(l.mod.isZero())return l.div;var v=l.div.negative!==0?l.mod.isub(f):l.mod,g=f.ushrn(1),p=f.andln(1),u=v.cmp(g);return u<0||p===1&&u===0?l.div:l.div.negative!==0?l.div.isubn(1):l.div.iaddn(1)},n.prototype.modrn=function(f){var l=f<0;l&&(f=-f),r(f<=67108863);for(var v=(1<<26)%f,g=0,p=this.length-1;p>=0;p--)g=(v*g+(this.words[p]|0))%f;return l?-g:g},n.prototype.modn=function(f){return this.modrn(f)},n.prototype.idivn=function(f){var l=f<0;l&&(f=-f),r(f<=67108863);for(var v=0,g=this.length-1;g>=0;g--){var p=(this.words[g]|0)+v*67108864;this.words[g]=p/f|0,v=p%f}return this._strip(),l?this.ineg():this},n.prototype.divn=function(f){return this.clone().idivn(f)},n.prototype.egcd=function(f){r(f.negative===0),r(!f.isZero());var l=this,v=f.clone();l.negative!==0?l=l.umod(f):l=l.clone();for(var g=new n(1),p=new n(0),u=new n(0),w=new n(1),E=0;l.isEven()&&v.isEven();)l.iushrn(1),v.iushrn(1),++E;for(var c=v.clone(),S=l.clone();!l.isZero();){for(var P=0,C=1;(l.words[0]&C)===0&&P<26;++P,C<<=1);if(P>0)for(l.iushrn(P);P-- >0;)(g.isOdd()||p.isOdd())&&(g.iadd(c),p.isub(S)),g.iushrn(1),p.iushrn(1);for(var L=0,V=1;(v.words[0]&V)===0&&L<26;++L,V<<=1);if(L>0)for(v.iushrn(L);L-- >0;)(u.isOdd()||w.isOdd())&&(u.iadd(c),w.isub(S)),u.iushrn(1),w.iushrn(1);l.cmp(v)>=0?(l.isub(v),g.isub(u),p.isub(w)):(v.isub(l),u.isub(g),w.isub(p))}return{a:u,b:w,gcd:v.iushln(E)}},n.prototype._invmp=function(f){r(f.negative===0),r(!f.isZero());var l=this,v=f.clone();l.negative!==0?l=l.umod(f):l=l.clone();for(var g=new n(1),p=new n(0),u=v.clone();l.cmpn(1)>0&&v.cmpn(1)>0;){for(var w=0,E=1;(l.words[0]&E)===0&&w<26;++w,E<<=1);if(w>0)for(l.iushrn(w);w-- >0;)g.isOdd()&&g.iadd(u),g.iushrn(1);for(var c=0,S=1;(v.words[0]&S)===0&&c<26;++c,S<<=1);if(c>0)for(v.iushrn(c);c-- >0;)p.isOdd()&&p.iadd(u),p.iushrn(1);l.cmp(v)>=0?(l.isub(v),g.isub(p)):(v.isub(l),p.isub(g))}var P;return l.cmpn(1)===0?P=g:P=p,P.cmpn(0)<0&&P.iadd(f),P},n.prototype.gcd=function(f){if(this.isZero())return f.abs();if(f.isZero())return this.abs();var l=this.clone(),v=f.clone();l.negative=0,v.negative=0;for(var g=0;l.isEven()&&v.isEven();g++)l.iushrn(1),v.iushrn(1);do{for(;l.isEven();)l.iushrn(1);for(;v.isEven();)v.iushrn(1);var p=l.cmp(v);if(p<0){var u=l;l=v,v=u}else if(p===0||v.cmpn(1)===0)break;l.isub(v)}while(!0);return v.iushln(g)},n.prototype.invm=function(f){return this.egcd(f).a.umod(f)},n.prototype.isEven=function(){return(this.words[0]&1)===0},n.prototype.isOdd=function(){return(this.words[0]&1)===1},n.prototype.andln=function(f){return this.words[0]&f},n.prototype.bincn=function(f){r(typeof f=="number");var l=f%26,v=(f-l)/26,g=1<<l;if(this.length<=v)return this._expand(v+1),this.words[v]|=g,this;for(var p=g,u=v;p!==0&&u<this.length;u++){var w=this.words[u]|0;w+=p,p=w>>>26,w&=67108863,this.words[u]=w}return p!==0&&(this.words[u]=p,this.length++),this},n.prototype.isZero=function(){return this.length===1&&this.words[0]===0},n.prototype.cmpn=function(f){var l=f<0;if(this.negative!==0&&!l)return-1;if(this.negative===0&&l)return 1;this._strip();var v;if(this.length>1)v=1;else{l&&(f=-f),r(f<=67108863,"Number is too big");var g=this.words[0]|0;v=g===f?0:g<f?-1:1}return this.negative!==0?-v|0:v},n.prototype.cmp=function(f){if(this.negative!==0&&f.negative===0)return-1;if(this.negative===0&&f.negative!==0)return 1;var l=this.ucmp(f);return this.negative!==0?-l|0:l},n.prototype.ucmp=function(f){if(this.length>f.length)return 1;if(this.length<f.length)return-1;for(var l=0,v=this.length-1;v>=0;v--){var g=this.words[v]|0,p=f.words[v]|0;if(g!==p){g<p?l=-1:g>p&&(l=1);break}}return l},n.prototype.gtn=function(f){return this.cmpn(f)===1},n.prototype.gt=function(f){return this.cmp(f)===1},n.prototype.gten=function(f){return this.cmpn(f)>=0},n.prototype.gte=function(f){return this.cmp(f)>=0},n.prototype.ltn=function(f){return this.cmpn(f)===-1},n.prototype.lt=function(f){return this.cmp(f)===-1},n.prototype.lten=function(f){return this.cmpn(f)<=0},n.prototype.lte=function(f){return this.cmp(f)<=0},n.prototype.eqn=function(f){return this.cmpn(f)===0},n.prototype.eq=function(f){return this.cmp(f)===0},n.red=function(f){return new h(f)},n.prototype.toRed=function(f){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),f.convertTo(this)._forceRed(f)},n.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(f){return this.red=f,this},n.prototype.forceRed=function(f){return r(!this.red,"Already a number in reduction context"),this._forceRed(f)},n.prototype.redAdd=function(f){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,f)},n.prototype.redIAdd=function(f){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,f)},n.prototype.redSub=function(f){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,f)},n.prototype.redISub=function(f){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,f)},n.prototype.redShl=function(f){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,f)},n.prototype.redMul=function(f){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.mul(this,f)},n.prototype.redIMul=function(f){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.imul(this,f)},n.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(f){return r(this.red&&!f.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,f)};var Z={k256:null,p224:null,p192:null,p25519:null};function K(d,f){this.name=d,this.p=new n(f,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}K.prototype._tmp=function(){var f=new n(null);return f.words=new Array(Math.ceil(this.n/13)),f},K.prototype.ireduce=function(f){var l=f,v;do this.split(l,this.tmp),l=this.imulK(l),l=l.iadd(this.tmp),v=l.bitLength();while(v>this.n);var g=v<this.n?-1:l.ucmp(this.p);return g===0?(l.words[0]=0,l.length=1):g>0?l.isub(this.p):l.strip!==void 0?l.strip():l._strip(),l},K.prototype.split=function(f,l){f.iushrn(this.n,0,l)},K.prototype.imulK=function(f){return f.imul(this.k)};function J(){K.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(J,K),J.prototype.split=function(f,l){for(var v=4194303,g=Math.min(f.length,9),p=0;p<g;p++)l.words[p]=f.words[p];if(l.length=g,f.length<=9){f.words[0]=0,f.length=1;return}var u=f.words[9];for(l.words[l.length++]=u&v,p=10;p<f.length;p++){var w=f.words[p]|0;f.words[p-10]=(w&v)<<4|u>>>22,u=w}u>>>=22,f.words[p-10]=u,u===0&&f.length>10?f.length-=10:f.length-=9},J.prototype.imulK=function(f){f.words[f.length]=0,f.words[f.length+1]=0,f.length+=2;for(var l=0,v=0;v<f.length;v++){var g=f.words[v]|0;l+=g*977,f.words[v]=l&67108863,l=g*64+(l/67108864|0)}return f.words[f.length-1]===0&&(f.length--,f.words[f.length-1]===0&&f.length--),f};function z(){K.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}i(z,K);function X(){K.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}i(X,K);function A(){K.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}i(A,K),A.prototype.imulK=function(f){for(var l=0,v=0;v<f.length;v++){var g=(f.words[v]|0)*19+l,p=g&67108863;g>>>=26,f.words[v]=p,l=g}return l!==0&&(f.words[f.length++]=l),f},n._prime=function(f){if(Z[f])return Z[f];var l;if(f==="k256")l=new J;else if(f==="p224")l=new z;else if(f==="p192")l=new X;else if(f==="p25519")l=new A;else throw new Error("Unknown prime "+f);return Z[f]=l,l};function h(d){if(typeof d=="string"){var f=n._prime(d);this.m=f.p,this.prime=f}else r(d.gtn(1),"modulus must be greater than 1"),this.m=d,this.prime=null}h.prototype._verify1=function(f){r(f.negative===0,"red works only with positives"),r(f.red,"red works only with red numbers")},h.prototype._verify2=function(f,l){r((f.negative|l.negative)===0,"red works only with positives"),r(f.red&&f.red===l.red,"red works only with red numbers")},h.prototype.imod=function(f){return this.prime?this.prime.ireduce(f)._forceRed(this):(_(f,f.umod(this.m)._forceRed(this)),f)},h.prototype.neg=function(f){return f.isZero()?f.clone():this.m.sub(f)._forceRed(this)},h.prototype.add=function(f,l){this._verify2(f,l);var v=f.add(l);return v.cmp(this.m)>=0&&v.isub(this.m),v._forceRed(this)},h.prototype.iadd=function(f,l){this._verify2(f,l);var v=f.iadd(l);return v.cmp(this.m)>=0&&v.isub(this.m),v},h.prototype.sub=function(f,l){this._verify2(f,l);var v=f.sub(l);return v.cmpn(0)<0&&v.iadd(this.m),v._forceRed(this)},h.prototype.isub=function(f,l){this._verify2(f,l);var v=f.isub(l);return v.cmpn(0)<0&&v.iadd(this.m),v},h.prototype.shl=function(f,l){return this._verify1(f),this.imod(f.ushln(l))},h.prototype.imul=function(f,l){return this._verify2(f,l),this.imod(f.imul(l))},h.prototype.mul=function(f,l){return this._verify2(f,l),this.imod(f.mul(l))},h.prototype.isqr=function(f){return this.imul(f,f.clone())},h.prototype.sqr=function(f){return this.mul(f,f)},h.prototype.sqrt=function(f){if(f.isZero())return f.clone();var l=this.m.andln(3);if(r(l%2===1),l===3){var v=this.m.add(new n(1)).iushrn(2);return this.pow(f,v)}for(var g=this.m.subn(1),p=0;!g.isZero()&&g.andln(1)===0;)p++,g.iushrn(1);r(!g.isZero());var u=new n(1).toRed(this),w=u.redNeg(),E=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new n(2*c*c).toRed(this);this.pow(c,E).cmp(w)!==0;)c.redIAdd(w);for(var S=this.pow(c,g),P=this.pow(f,g.addn(1).iushrn(1)),C=this.pow(f,g),L=p;C.cmp(u)!==0;){for(var V=C,G=0;V.cmp(u)!==0;G++)V=V.redSqr();r(G<L);var Y=this.pow(S,new n(1).iushln(L-G-1));P=P.redMul(Y),S=Y.redSqr(),C=C.redMul(S),L=G}return P},h.prototype.invm=function(f){var l=f._invmp(this.m);return l.negative!==0?(l.negative=0,this.imod(l).redNeg()):this.imod(l)},h.prototype.pow=function(f,l){if(l.isZero())return new n(1).toRed(this);if(l.cmpn(1)===0)return f.clone();var v=4,g=new Array(1<<v);g[0]=new n(1).toRed(this),g[1]=f;for(var p=2;p<g.length;p++)g[p]=this.mul(g[p-1],f);var u=g[0],w=0,E=0,c=l.bitLength()%26;for(c===0&&(c=26),p=l.length-1;p>=0;p--){for(var S=l.words[p],P=c-1;P>=0;P--){var C=S>>P&1;if(u!==g[0]&&(u=this.sqr(u)),C===0&&w===0){E=0;continue}w<<=1,w|=C,E++,!(E!==v&&(p!==0||P!==0))&&(u=this.mul(u,g[w]),E=0,w=0)}c=26}return u},h.prototype.convertTo=function(f){var l=f.umod(this.m);return l===f?l.clone():l},h.prototype.convertFrom=function(f){var l=f.clone();return l.red=null,l},n.mont=function(f){return new b(f)};function b(d){h.call(this,d),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new n(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}i(b,h),b.prototype.convertTo=function(f){return this.imod(f.ushln(this.shift))},b.prototype.convertFrom=function(f){var l=this.imod(f.mul(this.rinv));return l.red=null,l},b.prototype.imul=function(f,l){if(f.isZero()||l.isZero())return f.words[0]=0,f.length=1,f;var v=f.imul(l),g=v.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),p=v.isub(g).iushrn(this.shift),u=p;return p.cmp(this.m)>=0?u=p.isub(this.m):p.cmpn(0)<0&&(u=p.iadd(this.m)),u._forceRed(this)},b.prototype.mul=function(f,l){if(f.isZero()||l.isZero())return new n(0)._forceRed(this);var v=f.mul(l),g=v.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),p=v.isub(g).iushrn(this.shift),u=p;return p.cmp(this.m)>=0?u=p.isub(this.m):p.cmpn(0)<0&&(u=p.iadd(this.m)),u._forceRed(this)},b.prototype.invm=function(f){var l=this.imod(f._invmp(this.m).mul(this.r2));return l._forceRed(this)}})(typeof zc>"u"||zc,Am)});var Zc=k((dC,Tm)=>{"use strict";m();var ua=Bm(),qk=qi(),Dk=Ne().Buffer;function Rm(e){var t=e.modulus.byteLength(),r;do r=new ua(qk(t));while(r.cmp(e.modulus)>=0||!r.umod(e.prime1)||!r.umod(e.prime2));return r}function Nk(e){var t=Rm(e),r=t.toRed(ua.mont(e.modulus)).redPow(new ua(e.publicExponent)).fromRed();return{blinder:r,unblinder:t.invm(e.modulus)}}function km(e,t){var r=Nk(t),i=t.modulus.byteLength(),n=new ua(e).mul(r.blinder).umod(t.modulus),a=n.toRed(ua.mont(t.prime1)),o=n.toRed(ua.mont(t.prime2)),s=t.coefficient,y=t.prime1,_=t.prime2,x=a.redPow(t.exponent1).fromRed(),B=o.redPow(t.exponent2).fromRed(),R=x.isub(B).imul(s).umod(y).imul(_);return B.iadd(R).imul(r.unblinder).umod(t.modulus).toArrayLike(Dk,"be",i)}km.getr=Rm;Tm.exports=km});var Dm=k((vC,qm)=>{m();var Pk=Lc(),Hc=qi(),Lk=bo(),Im=Uc(),Om=Fc(),Wc=ei(),Ck=jc(),Uk=Zc(),rr=Ne().Buffer;qm.exports=function(t,r,i){var n;t.padding?n=t.padding:i?n=1:n=4;var a=Pk(t),o;if(n===4)o=Fk(a,r);else if(n===1)o=jk(a,r,i);else if(n===3){if(o=new Wc(r),o.cmp(a.modulus)>=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return i?Uk(o,a):Ck(o,a)};function Fk(e,t){var r=e.modulus.byteLength(),i=t.length,n=Lk("sha1").update(rr.alloc(0)).digest(),a=n.length,o=2*a;if(i>r-o-2)throw new Error("message too long");var s=rr.alloc(r-i-o-2),y=r-a-1,_=Hc(a),x=Om(rr.concat([n,s,rr.alloc(1,1),t],y),Im(_,y)),B=Om(_,Im(x,a));return new Wc(rr.concat([rr.alloc(1),B,x],r))}function jk(e,t,r){var i=t.length,n=e.modulus.byteLength();if(i>n-11)throw new Error("message too long");var a;return r?a=rr.alloc(n-i-3,255):a=zk(n-i-3),new Wc(rr.concat([rr.from([0,r?1:2]),a,rr.alloc(1),t],n))}function zk(e){for(var t=rr.allocUnsafe(e),r=0,i=Hc(e*2),n=0,a;r<e;)n===i.length&&(i=Hc(e*2),n=0),a=i[n++],a&&(t[r++]=a);return t}});var Um=k((gC,Cm)=>{m();var Zk=Lc(),Nm=Uc(),Pm=Fc(),Lm=ei(),Hk=Zc(),Wk=bo(),Kk=jc(),To=Ne().Buffer;Cm.exports=function(t,r,i){var n;t.padding?n=t.padding:i?n=1:n=4;var a=Zk(t),o=a.modulus.byteLength();if(r.length>o||new Lm(r).cmp(a.modulus)>=0)throw new Error("decryption error");var s;i?s=Kk(new Lm(r),a):s=Hk(r,a);var y=To.alloc(o-s.length);if(s=To.concat([y,s],o),n===4)return Gk(a,s);if(n===1)return Vk(a,s,i);if(n===3)return s;throw new Error("unknown padding")};function Gk(e,t){var r=e.modulus.byteLength(),i=Wk("sha1").update(To.alloc(0)).digest(),n=i.length;if(t[0]!==0)throw new Error("decryption error");var a=t.slice(1,n+1),o=t.slice(n+1),s=Pm(a,Nm(o,n)),y=Pm(o,Nm(s,r-n-1));if($k(i,y.slice(0,n)))throw new Error("decryption error");for(var _=n;y[_]===0;)_++;if(y[_++]!==1)throw new Error("decryption error");return y.slice(_)}function Vk(e,t,r){for(var i=t.slice(0,2),n=2,a=0;t[n++]!==0;)if(n>=t.length){a++;break}var o=t.slice(2,n-1);if((i.toString("hex")!=="0002"&&!r||i.toString("hex")!=="0001"&&r)&&a++,o.length<8&&a++,a)throw new Error("decryption error");return t.slice(n)}function $k(e,t){e=To.from(e),t=To.from(t);var r=0,i=e.length;e.length!==t.length&&(r++,i=Math.min(e.length,t.length));for(var n=-1;++n<i;)r+=e[n]^t[n];return r}});var Fm=k(an=>{m();an.publicEncrypt=Dm();an.privateDecrypt=Um();an.privateEncrypt=function(t,r){return an.publicEncrypt(t,r,!0)};an.publicDecrypt=function(t,r){return an.privateDecrypt(t,r,!0)}});var Ym=k(Io=>{"use strict";m();function jm(){throw new Error(`secure random number generation not supported by this browser
13
+ })`)}catch{r=function(n){this._initNamed(n)}}return UR(r,t),r.prototype._initNamed=function(n){t.call(this,n)},new r(this)};na.prototype._getDecoder=function(t){return t=t||"der",this.decoders.hasOwnProperty(t)||(this.decoders[t]=this._createNamed(q_.decoders[t])),this.decoders[t]};na.prototype.decode=function(t,r,i){return this._getDecoder(r).decode(t,i)};na.prototype._getEncoder=function(t){return t=t||"der",this.encoders.hasOwnProperty(t)||(this.encoders[t]=this._createNamed(q_.encoders[t])),this.encoders[t]};na.prototype.encode=function(t,r,i){return this._getEncoder(r).encode(t,i)}});var L_=k(P_=>{m();var jR=re();function Ct(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}P_.Reporter=Ct;Ct.prototype.isError=function(t){return t instanceof oa};Ct.prototype.save=function(){var t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}};Ct.prototype.restore=function(t){var r=this._reporterState;r.obj=t.obj,r.path=r.path.slice(0,t.pathLen)};Ct.prototype.enterKey=function(t){return this._reporterState.path.push(t)};Ct.prototype.exitKey=function(t){var r=this._reporterState;r.path=r.path.slice(0,t-1)};Ct.prototype.leaveKey=function(t,r,i){var n=this._reporterState;this.exitKey(t),n.obj!==null&&(n.obj[r]=i)};Ct.prototype.path=function(){return this._reporterState.path.join("/")};Ct.prototype.enterObject=function(){var t=this._reporterState,r=t.obj;return t.obj={},r};Ct.prototype.leaveObject=function(t){var r=this._reporterState,i=r.obj;return r.obj=t,i};Ct.prototype.error=function(t){var r,i=this._reporterState,n=t instanceof oa;if(n?r=t:r=new oa(i.path.map(function(a){return"["+JSON.stringify(a)+"]"}).join(""),t.message||t,t.stack),!i.options.partial)throw r;return n||i.errors.push(r),r};Ct.prototype.wrapResult=function(t){var r=this._reporterState;return r.options.partial?{result:this.isError(t)?null:t,errors:r.errors}:t};function oa(e,t){this.path=e,this.rethrow(t)}jR(oa,Error);oa.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,oa),!this.stack)try{throw new Error(this.message)}catch(r){this.stack=r.stack}return this}});var Sc=k(Ec=>{m();var zR=re(),Qs=fa().Reporter,ko=st().Buffer;function gr(e,t){if(Qs.call(this,t),!ko.isBuffer(e)){this.error("Input not Buffer");return}this.base=e,this.offset=0,this.length=e.length}zR(gr,Qs);Ec.DecoderBuffer=gr;gr.prototype.save=function(){return{offset:this.offset,reporter:Qs.prototype.save.call(this)}};gr.prototype.restore=function(t){var r=new gr(this.base);return r.offset=t.offset,r.length=this.offset,this.offset=t.offset,Qs.prototype.restore.call(this,t.reporter),r};gr.prototype.isEmpty=function(){return this.offset===this.length};gr.prototype.readUInt8=function(t){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(t||"DecoderBuffer overrun")};gr.prototype.skip=function(t,r){if(!(this.offset+t<=this.length))return this.error(r||"DecoderBuffer overrun");var i=new gr(this.base);return i._reporterState=this._reporterState,i.offset=this.offset,i.length=this.offset+t,this.offset+=t,i};gr.prototype.raw=function(t){return this.base.slice(t?t.offset:this.offset,this.length)};function Xs(e,t){if(Array.isArray(e))this.length=0,this.value=e.map(function(r){return r instanceof Xs||(r=new Xs(r,t)),this.length+=r.length,r},this);else if(typeof e=="number"){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if(typeof e=="string")this.value=e,this.length=ko.byteLength(e);else if(ko.isBuffer(e))this.value=e,this.length=e.length;else return t.error("Unsupported type: "+typeof e)}Ec.EncoderBuffer=Xs;Xs.prototype.join=function(t,r){return t||(t=new ko(this.length)),r||(r=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(i){i.join(t,r),r+=i.length}):(typeof this.value=="number"?t[r]=this.value:typeof this.value=="string"?t.write(this.value,r):ko.isBuffer(this.value)&&this.value.copy(t,r),r+=this.length)),t}});var F_=k((kL,U_)=>{m();var ZR=fa().Reporter,HR=fa().EncoderBuffer,WR=fa().DecoderBuffer,bt=Xn(),C_=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],KR=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(C_),GR=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function Ke(e,t){var r={};this._baseState=r,r.enc=e,r.parent=t||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}U_.exports=Ke;var VR=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];Ke.prototype.clone=function(){var t=this._baseState,r={};VR.forEach(function(n){r[n]=t[n]});var i=new this.constructor(r.parent);return i._baseState=r,i};Ke.prototype._wrap=function(){var t=this._baseState;KR.forEach(function(r){this[r]=function(){var n=new this.constructor(this);return t.children.push(n),n[r].apply(n,arguments)}},this)};Ke.prototype._init=function(t){var r=this._baseState;bt(r.parent===null),t.call(this),r.children=r.children.filter(function(i){return i._baseState.parent===this},this),bt.equal(r.children.length,1,"Root node can have only one child")};Ke.prototype._useArgs=function(t){var r=this._baseState,i=t.filter(function(n){return n instanceof this.constructor},this);t=t.filter(function(n){return!(n instanceof this.constructor)},this),i.length!==0&&(bt(r.children===null),r.children=i,i.forEach(function(n){n._baseState.parent=this},this)),t.length!==0&&(bt(r.args===null),r.args=t,r.reverseArgs=t.map(function(n){if(typeof n!="object"||n.constructor!==Object)return n;var a={};return Object.keys(n).forEach(function(o){o==(o|0)&&(o|=0);var s=n[o];a[s]=o}),a}))};GR.forEach(function(e){Ke.prototype[e]=function(){var r=this._baseState;throw new Error(e+" not implemented for encoding: "+r.enc)}});C_.forEach(function(e){Ke.prototype[e]=function(){var r=this._baseState,i=Array.prototype.slice.call(arguments);return bt(r.tag===null),r.tag=e,this._useArgs(i),this}});Ke.prototype.use=function(t){bt(t);var r=this._baseState;return bt(r.use===null),r.use=t,this};Ke.prototype.optional=function(){var t=this._baseState;return t.optional=!0,this};Ke.prototype.def=function(t){var r=this._baseState;return bt(r.default===null),r.default=t,r.optional=!0,this};Ke.prototype.explicit=function(t){var r=this._baseState;return bt(r.explicit===null&&r.implicit===null),r.explicit=t,this};Ke.prototype.implicit=function(t){var r=this._baseState;return bt(r.explicit===null&&r.implicit===null),r.implicit=t,this};Ke.prototype.obj=function(){var t=this._baseState,r=Array.prototype.slice.call(arguments);return t.obj=!0,r.length!==0&&this._useArgs(r),this};Ke.prototype.key=function(t){var r=this._baseState;return bt(r.key===null),r.key=t,this};Ke.prototype.any=function(){var t=this._baseState;return t.any=!0,this};Ke.prototype.choice=function(t){var r=this._baseState;return bt(r.choice===null),r.choice=t,this._useArgs(Object.keys(t).map(function(i){return t[i]})),this};Ke.prototype.contains=function(t){var r=this._baseState;return bt(r.use===null),r.contains=t,this};Ke.prototype._decode=function(t,r){var i=this._baseState;if(i.parent===null)return t.wrapResult(i.children[0]._decode(t,r));var n=i.default,a=!0,o=null;if(i.key!==null&&(o=t.enterKey(i.key)),i.optional){var s=null;if(i.explicit!==null?s=i.explicit:i.implicit!==null?s=i.implicit:i.tag!==null&&(s=i.tag),s===null&&!i.any){var y=t.save();try{i.choice===null?this._decodeGeneric(i.tag,t,r):this._decodeChoice(t,r),a=!0}catch{a=!1}t.restore(y)}else if(a=this._peekTag(t,s,i.any),t.isError(a))return a}var b;if(i.obj&&a&&(b=t.enterObject()),a){if(i.explicit!==null){var x=this._decodeTag(t,i.explicit);if(t.isError(x))return x;t=x}var B=t.offset;if(i.use===null&&i.choice===null){if(i.any)var y=t.save();var R=this._decodeTag(t,i.implicit!==null?i.implicit:i.tag,i.any);if(t.isError(R))return R;i.any?n=t.raw(y):t=R}if(r&&r.track&&i.tag!==null&&r.track(t.path(),B,t.length,"tagged"),r&&r.track&&i.tag!==null&&r.track(t.path(),t.offset,t.length,"content"),i.any?n=n:i.choice===null?n=this._decodeGeneric(i.tag,t,r):n=this._decodeChoice(t,r),t.isError(n))return n;if(!i.any&&i.choice===null&&i.children!==null&&i.children.forEach(function(D){D._decode(t,r)}),i.contains&&(i.tag==="octstr"||i.tag==="bitstr")){var T=new WR(n);n=this._getUse(i.contains,t._reporterState.obj)._decode(T,r)}}return i.obj&&a&&(n=t.leaveObject(b)),i.key!==null&&(n!==null||a===!0)?t.leaveKey(o,i.key,n):o!==null&&t.exitKey(o),n};Ke.prototype._decodeGeneric=function(t,r,i){var n=this._baseState;return t==="seq"||t==="set"?null:t==="seqof"||t==="setof"?this._decodeList(r,t,n.args[0],i):/str$/.test(t)?this._decodeStr(r,t,i):t==="objid"&&n.args?this._decodeObjid(r,n.args[0],n.args[1],i):t==="objid"?this._decodeObjid(r,null,null,i):t==="gentime"||t==="utctime"?this._decodeTime(r,t,i):t==="null_"?this._decodeNull(r,i):t==="bool"?this._decodeBool(r,i):t==="objDesc"?this._decodeStr(r,t,i):t==="int"||t==="enum"?this._decodeInt(r,n.args&&n.args[0],i):n.use!==null?this._getUse(n.use,r._reporterState.obj)._decode(r,i):r.error("unknown tag: "+t)};Ke.prototype._getUse=function(t,r){var i=this._baseState;return i.useDecoder=this._use(t,r),bt(i.useDecoder._baseState.parent===null),i.useDecoder=i.useDecoder._baseState.children[0],i.implicit!==i.useDecoder._baseState.implicit&&(i.useDecoder=i.useDecoder.clone(),i.useDecoder._baseState.implicit=i.implicit),i.useDecoder};Ke.prototype._decodeChoice=function(t,r){var i=this._baseState,n=null,a=!1;return Object.keys(i.choice).some(function(o){var s=t.save(),y=i.choice[o];try{var b=y._decode(t,r);if(t.isError(b))return!1;n={type:o,value:b},a=!0}catch{return t.restore(s),!1}return!0},this),a?n:t.error("Choice not matched")};Ke.prototype._createEncoderBuffer=function(t){return new HR(t,this.reporter)};Ke.prototype._encode=function(t,r,i){var n=this._baseState;if(!(n.default!==null&&n.default===t)){var a=this._encodeValue(t,r,i);if(a!==void 0&&!this._skipDefault(a,r,i))return a}};Ke.prototype._encodeValue=function(t,r,i){var n=this._baseState;if(n.parent===null)return n.children[0]._encode(t,r||new ZR);var y=null;if(this.reporter=r,n.optional&&t===void 0)if(n.default!==null)t=n.default;else return;var a=null,o=!1;if(n.any)y=this._createEncoderBuffer(t);else if(n.choice)y=this._encodeChoice(t,r);else if(n.contains)a=this._getUse(n.contains,i)._encode(t,r),o=!0;else if(n.children)a=n.children.map(function(B){if(B._baseState.tag==="null_")return B._encode(null,r,t);if(B._baseState.key===null)return r.error("Child should have a key");var R=r.enterKey(B._baseState.key);if(typeof t!="object")return r.error("Child expected, but input is not object");var T=B._encode(t[B._baseState.key],r,t);return r.leaveKey(R),T},this).filter(function(B){return B}),a=this._createEncoderBuffer(a);else if(n.tag==="seqof"||n.tag==="setof"){if(!(n.args&&n.args.length===1))return r.error("Too many args for : "+n.tag);if(!Array.isArray(t))return r.error("seqof/setof, but data is not Array");var s=this.clone();s._baseState.implicit=null,a=this._createEncoderBuffer(t.map(function(B){var R=this._baseState;return this._getUse(R.args[0],t)._encode(B,r)},s))}else n.use!==null?y=this._getUse(n.use,i)._encode(t,r):(a=this._encodePrimitive(n.tag,t),o=!0);var y;if(!n.any&&n.choice===null){var b=n.implicit!==null?n.implicit:n.tag,x=n.implicit===null?"universal":"context";b===null?n.use===null&&r.error("Tag could be omitted only for .use()"):n.use===null&&(y=this._encodeComposite(b,o,x,a))}return n.explicit!==null&&(y=this._encodeComposite(n.explicit,!1,"context",y)),y};Ke.prototype._encodeChoice=function(t,r){var i=this._baseState,n=i.choice[t.type];return n||bt(!1,t.type+" not found in "+JSON.stringify(Object.keys(i.choice))),n._encode(t.value,r)};Ke.prototype._encodePrimitive=function(t,r){var i=this._baseState;if(/str$/.test(t))return this._encodeStr(r,t);if(t==="objid"&&i.args)return this._encodeObjid(r,i.reverseArgs[0],i.args[1]);if(t==="objid")return this._encodeObjid(r,null,null);if(t==="gentime"||t==="utctime")return this._encodeTime(r,t);if(t==="null_")return this._encodeNull();if(t==="int"||t==="enum")return this._encodeInt(r,i.args&&i.reverseArgs[0]);if(t==="bool")return this._encodeBool(r);if(t==="objDesc")return this._encodeStr(r,t);throw new Error("Unsupported tag: "+t)};Ke.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)};Ke.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(t)}});var fa=k(j_=>{m();var eu=j_;eu.Reporter=L_().Reporter;eu.DecoderBuffer=Sc().DecoderBuffer;eu.EncoderBuffer=Sc().EncoderBuffer;eu.Node=F_()});var Z_=k(nn=>{m();var z_=Mc();nn.tagClass={0:"universal",1:"application",2:"context",3:"private"};nn.tagClassByName=z_._reverse(nn.tagClass);nn.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"};nn.tagByName=z_._reverse(nn.tag)});var Mc=k(W_=>{m();var H_=W_;H_._reverse=function(t){var r={};return Object.keys(t).forEach(function(i){(i|0)==i&&(i=i|0);var n=t[i];r[n]=i}),r};H_.der=Z_()});var Rc=k((LL,$_)=>{m();var $R=re(),Ac=aa(),tu=Ac.base,YR=Ac.bignum,K_=Ac.constants.der;function G_(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new Bt,this.tree._init(e.body)}$_.exports=G_;G_.prototype.decode=function(t,r){return t instanceof tu.DecoderBuffer||(t=new tu.DecoderBuffer(t,r)),this.tree._decode(t,r)};function Bt(e){tu.Node.call(this,"der",e)}$R(Bt,tu.Node);Bt.prototype._peekTag=function(t,r,i){if(t.isEmpty())return!1;var n=t.save(),a=Bc(t,'Failed to peek tag: "'+r+'"');return t.isError(a)?a:(t.restore(n),a.tag===r||a.tagStr===r||a.tagStr+"of"===r||i)};Bt.prototype._decodeTag=function(t,r,i){var n=Bc(t,'Failed to decode tag of "'+r+'"');if(t.isError(n))return n;var a=V_(t,n.primitive,'Failed to get length of "'+r+'"');if(t.isError(a))return a;if(!i&&n.tag!==r&&n.tagStr!==r&&n.tagStr+"of"!==r)return t.error('Failed to match tag: "'+r+'"');if(n.primitive||a!==null)return t.skip(a,'Failed to match body of: "'+r+'"');var o=t.save(),s=this._skipUntilEnd(t,'Failed to skip indefinite length body: "'+this.tag+'"');return t.isError(s)?s:(a=t.offset-o.offset,t.restore(o),t.skip(a,'Failed to match body of: "'+r+'"'))};Bt.prototype._skipUntilEnd=function(t,r){for(;;){var i=Bc(t,r);if(t.isError(i))return i;var n=V_(t,i.primitive,r);if(t.isError(n))return n;var a;if(i.primitive||n!==null?a=t.skip(n):a=this._skipUntilEnd(t,r),t.isError(a))return a;if(i.tagStr==="end")break}};Bt.prototype._decodeList=function(t,r,i,n){for(var a=[];!t.isEmpty();){var o=this._peekTag(t,"end");if(t.isError(o))return o;var s=i.decode(t,"der",n);if(t.isError(s)&&o)break;a.push(s)}return a};Bt.prototype._decodeStr=function(t,r){if(r==="bitstr"){var i=t.readUInt8();return t.isError(i)?i:{unused:i,data:t.raw()}}else if(r==="bmpstr"){var n=t.raw();if(n.length%2===1)return t.error("Decoding of string type: bmpstr length mismatch");for(var a="",o=0;o<n.length/2;o++)a+=String.fromCharCode(n.readUInt16BE(o*2));return a}else if(r==="numstr"){var s=t.raw().toString("ascii");return this._isNumstr(s)?s:t.error("Decoding of string type: numstr unsupported characters")}else{if(r==="octstr")return t.raw();if(r==="objDesc")return t.raw();if(r==="printstr"){var y=t.raw().toString("ascii");return this._isPrintstr(y)?y:t.error("Decoding of string type: printstr unsupported characters")}else return/str$/.test(r)?t.raw().toString():t.error("Decoding of string type: "+r+" unsupported")}};Bt.prototype._decodeObjid=function(t,r,i){for(var n,a=[],o=0;!t.isEmpty();){var s=t.readUInt8();o<<=7,o|=s&127,(s&128)===0&&(a.push(o),o=0)}s&128&&a.push(o);var y=a[0]/40|0,b=a[0]%40;if(i?n=a:n=[y,b].concat(a.slice(1)),r){var x=r[n.join(" ")];x===void 0&&(x=r[n.join(".")]),x!==void 0&&(n=x)}return n};Bt.prototype._decodeTime=function(t,r){var i=t.raw().toString();if(r==="gentime")var n=i.slice(0,4)|0,a=i.slice(4,6)|0,o=i.slice(6,8)|0,s=i.slice(8,10)|0,y=i.slice(10,12)|0,b=i.slice(12,14)|0;else if(r==="utctime"){var n=i.slice(0,2)|0,a=i.slice(2,4)|0,o=i.slice(4,6)|0,s=i.slice(6,8)|0,y=i.slice(8,10)|0,b=i.slice(10,12)|0;n<70?n=2e3+n:n=1900+n}else return t.error("Decoding "+r+" time is not supported yet");return Date.UTC(n,a-1,o,s,y,b,0)};Bt.prototype._decodeNull=function(t){return null};Bt.prototype._decodeBool=function(t){var r=t.readUInt8();return t.isError(r)?r:r!==0};Bt.prototype._decodeInt=function(t,r){var i=t.raw(),n=new YR(i);return r&&(n=r[n.toString(10)]||n),n};Bt.prototype._use=function(t,r){return typeof t=="function"&&(t=t(r)),t._getDecoder("der").tree};function Bc(e,t){var r=e.readUInt8(t);if(e.isError(r))return r;var i=K_.tagClass[r>>6],n=(r&32)===0;if((r&31)===31){var a=r;for(r=0;(a&128)===128;){if(a=e.readUInt8(t),e.isError(a))return a;r<<=7,r|=a&127}}else r&=31;var o=K_.tag[r];return{cls:i,primitive:n,tag:r,tagStr:o}}function V_(e,t,r){var i=e.readUInt8(r);if(e.isError(i))return i;if(!t&&i===128)return null;if((i&128)===0)return i;var n=i&127;if(n>4)return e.error("length octect is too long");i=0;for(var a=0;a<n;a++){i<<=8;var o=e.readUInt8(r);if(e.isError(o))return o;i|=o}return i}});var J_=k((UL,Y_)=>{m();var JR=re(),XR=st().Buffer,kc=Rc();function Tc(e){kc.call(this,e),this.enc="pem"}JR(Tc,kc);Y_.exports=Tc;Tc.prototype.decode=function(t,r){for(var i=t.toString().split(/[\r\n]+/g),n=r.label.toUpperCase(),a=/^-----(BEGIN|END) ([^-]+)-----$/,o=-1,s=-1,y=0;y<i.length;y++){var b=i[y].match(a);if(b!==null&&b[2]===n)if(o===-1){if(b[1]!=="BEGIN")break;o=y}else{if(b[1]!=="END")break;s=y;break}}if(o===-1||s===-1)throw new Error("PEM section not found for: "+n);var x=i.slice(o+1,s).join("");x.replace(/[^a-z0-9\+\/=]+/gi,"");var B=new XR(x,"base64");return kc.prototype.decode.call(this,B,r)}});var em=k(Q_=>{m();var X_=Q_;X_.der=Rc();X_.pem=J_()});var Oc=k((ZL,nm)=>{m();var QR=re(),Fr=st().Buffer,tm=aa(),rm=tm.base,Ic=tm.constants.der;function im(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new Xt,this.tree._init(e.body)}nm.exports=im;im.prototype.encode=function(t,r){return this.tree._encode(t,r).join()};function Xt(e){rm.Node.call(this,"der",e)}QR(Xt,rm.Node);Xt.prototype._encodeComposite=function(t,r,i,n){var a=ek(t,r,i,this.reporter);if(n.length<128){var y=new Fr(2);return y[0]=a,y[1]=n.length,this._createEncoderBuffer([y,n])}for(var o=1,s=n.length;s>=256;s>>=8)o++;var y=new Fr(2+o);y[0]=a,y[1]=128|o;for(var s=1+o,b=n.length;b>0;s--,b>>=8)y[s]=b&255;return this._createEncoderBuffer([y,n])};Xt.prototype._encodeStr=function(t,r){if(r==="bitstr")return this._createEncoderBuffer([t.unused|0,t.data]);if(r==="bmpstr"){for(var i=new Fr(t.length*2),n=0;n<t.length;n++)i.writeUInt16BE(t.charCodeAt(n),n*2);return this._createEncoderBuffer(i)}else return r==="numstr"?this._isNumstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: numstr supports only digits and space"):r==="printstr"?this._isPrintstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(r)?this._createEncoderBuffer(t):r==="objDesc"?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: "+r+" unsupported")};Xt.prototype._encodeObjid=function(t,r,i){if(typeof t=="string"){if(!r)return this.reporter.error("string objid given, but no values map found");if(!r.hasOwnProperty(t))return this.reporter.error("objid not found in values map");t=r[t].split(/[\s\.]+/g);for(var n=0;n<t.length;n++)t[n]|=0}else if(Array.isArray(t)){t=t.slice();for(var n=0;n<t.length;n++)t[n]|=0}if(!Array.isArray(t))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(t));if(!i){if(t[1]>=40)return this.reporter.error("Second objid identifier OOB");t.splice(0,2,t[0]*40+t[1])}for(var a=0,n=0;n<t.length;n++){var o=t[n];for(a++;o>=128;o>>=7)a++}for(var s=new Fr(a),y=s.length-1,n=t.length-1;n>=0;n--){var o=t[n];for(s[y--]=o&127;(o>>=7)>0;)s[y--]=128|o&127}return this._createEncoderBuffer(s)};function Ut(e){return e<10?"0"+e:e}Xt.prototype._encodeTime=function(t,r){var i,n=new Date(t);return r==="gentime"?i=[Ut(n.getFullYear()),Ut(n.getUTCMonth()+1),Ut(n.getUTCDate()),Ut(n.getUTCHours()),Ut(n.getUTCMinutes()),Ut(n.getUTCSeconds()),"Z"].join(""):r==="utctime"?i=[Ut(n.getFullYear()%100),Ut(n.getUTCMonth()+1),Ut(n.getUTCDate()),Ut(n.getUTCHours()),Ut(n.getUTCMinutes()),Ut(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+r+" time is not supported yet"),this._encodeStr(i,"octstr")};Xt.prototype._encodeNull=function(){return this._createEncoderBuffer("")};Xt.prototype._encodeInt=function(t,r){if(typeof t=="string"){if(!r)return this.reporter.error("String int or enum given, but no values map");if(!r.hasOwnProperty(t))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(t));t=r[t]}if(typeof t!="number"&&!Fr.isBuffer(t)){var i=t.toArray();!t.sign&&i[0]&128&&i.unshift(0),t=new Fr(i)}if(Fr.isBuffer(t)){var n=t.length;t.length===0&&n++;var o=new Fr(n);return t.copy(o),t.length===0&&(o[0]=0),this._createEncoderBuffer(o)}if(t<128)return this._createEncoderBuffer(t);if(t<256)return this._createEncoderBuffer([0,t]);for(var n=1,a=t;a>=256;a>>=8)n++;for(var o=new Array(n),a=o.length-1;a>=0;a--)o[a]=t&255,t>>=8;return o[0]&128&&o.unshift(0),this._createEncoderBuffer(new Fr(o))};Xt.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)};Xt.prototype._use=function(t,r){return typeof t=="function"&&(t=t(r)),t._getEncoder("der").tree};Xt.prototype._skipDefault=function(t,r,i){var n=this._baseState,a;if(n.default===null)return!1;var o=t.join();if(n.defaultBuffer===void 0&&(n.defaultBuffer=this._encodeValue(n.default,r,i).join()),o.length!==n.defaultBuffer.length)return!1;for(a=0;a<o.length;a++)if(o[a]!==n.defaultBuffer[a])return!1;return!0};function ek(e,t,r,i){var n;if(e==="seqof"?e="seq":e==="setof"&&(e="set"),Ic.tagByName.hasOwnProperty(e))n=Ic.tagByName[e];else if(typeof e=="number"&&(e|0)===e)n=e;else return i.error("Unknown tag: "+e);return n>=31?i.error("Multi-octet tag encoding unsupported"):(t||(n|=32),n|=Ic.tagClassByName[r||"universal"]<<6,n)}});var om=k((WL,am)=>{m();var tk=re(),qc=Oc();function Dc(e){qc.call(this,e),this.enc="pem"}tk(Dc,qc);am.exports=Dc;Dc.prototype.encode=function(t,r){for(var i=qc.prototype.encode.call(this,t),n=i.toString("base64"),a=["-----BEGIN "+r.label+"-----"],o=0;o<n.length;o+=64)a.push(n.slice(o,o+64));return a.push("-----END "+r.label+"-----"),a.join(`
14
+ `)}});var um=k(sm=>{m();var fm=sm;fm.der=Oc();fm.pem=om()});var aa=k(lm=>{m();var sa=lm;sa.bignum=ei();sa.define=N_().define;sa.base=fa();sa.constants=Mc();sa.decoders=em();sa.encoders=um()});var pm=k((JL,dm)=>{"use strict";m();var Qt=aa(),hm=Qt.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),rk=Qt.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),Nc=Qt.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),ik=Qt.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(Nc),this.key("subjectPublicKey").bitstr())}),nk=Qt.define("RelativeDistinguishedName",function(){this.setof(rk)}),ak=Qt.define("RDNSequence",function(){this.seqof(nk)}),cm=Qt.define("Name",function(){this.choice({rdnSequence:this.use(ak)})}),ok=Qt.define("Validity",function(){this.seq().obj(this.key("notBefore").use(hm),this.key("notAfter").use(hm))}),fk=Qt.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),sk=Qt.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(Nc),this.key("issuer").use(cm),this.key("validity").use(ok),this.key("subject").use(cm),this.key("subjectPublicKeyInfo").use(ik),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(fk).optional())}),uk=Qt.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(sk),this.key("signatureAlgorithm").use(Nc),this.key("signatureValue").bitstr())});dm.exports=uk});var ym=k(tr=>{"use strict";m();var er=aa();tr.certificate=pm();var lk=er.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});tr.RSAPrivateKey=lk;var hk=er.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});tr.RSAPublicKey=hk;var vm=er.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),ck=er.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(vm),this.key("subjectPublicKey").bitstr())});tr.PublicKey=ck;var dk=er.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(vm),this.key("subjectPrivateKey").octstr())});tr.PrivateKey=dk;var pk=er.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});tr.EncryptedPrivateKey=pk;var vk=er.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});tr.DSAPrivateKey=vk;tr.DSAparam=er.define("DSAparam",function(){this.int()});var yk=er.define("ECParameters",function(){this.choice({namedCurve:this.objid()})}),gk=er.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(yk),this.key("publicKey").optional().explicit(1).bitstr())});tr.ECPrivateKey=gk;tr.signature=er.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})});var gm=k((tC,bk)=>{bk.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}});var _m=k((rC,bm)=>{"use strict";m();var _k=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,mk=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,wk=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,xk=Ao(),Ek=Vs(),ru=Ne().Buffer;bm.exports=function(e,t){var r=e.toString(),i=r.match(_k),n;if(i){var o="aes"+i[1],s=ru.from(i[2],"hex"),y=ru.from(i[3].replace(/[\r\n]/g,""),"base64"),b=xk(t,s.slice(0,8),parseInt(i[1],10)).key,x=[],B=Ek.createDecipheriv(o,b,s);x.push(B.update(y)),x.push(B.final()),n=ru.concat(x)}else{var a=r.match(wk);n=ru.from(a[2].replace(/[\r\n]/g,""),"base64")}var R=r.match(mk)[1];return{tag:R,data:n}}});var Lc=k((nC,wm)=>{"use strict";m();var St=ym(),Sk=gm(),Mk=_m(),Ak=Vs(),Bk=Kh().pbkdf2Sync,Pc=Ne().Buffer;function Rk(e,t){var r=e.algorithm.decrypt.kde.kdeparams.salt,i=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),n=Sk[e.algorithm.decrypt.cipher.algo.join(".")],a=e.algorithm.decrypt.cipher.iv,o=e.subjectPrivateKey,s=parseInt(n.split("-")[1],10)/8,y=Bk(t,r,i,s,"sha1"),b=Ak.createDecipheriv(n,y,a),x=[];return x.push(b.update(o)),x.push(b.final()),Pc.concat(x)}function mm(e){var t;typeof e=="object"&&!Pc.isBuffer(e)&&(t=e.passphrase,e=e.key),typeof e=="string"&&(e=Pc.from(e));var r=Mk(e,t),i=r.tag,n=r.data,a,o;switch(i){case"CERTIFICATE":o=St.certificate.decode(n,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(o||(o=St.PublicKey.decode(n,"der")),a=o.algorithm.algorithm.join("."),a){case"1.2.840.113549.1.1.1":return St.RSAPublicKey.decode(o.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return o.subjectPrivateKey=o.subjectPublicKey,{type:"ec",data:o};case"1.2.840.10040.4.1":return o.algorithm.params.pub_key=St.DSAparam.decode(o.subjectPublicKey.data,"der"),{type:"dsa",data:o.algorithm.params};default:throw new Error("unknown key id "+a)}case"ENCRYPTED PRIVATE KEY":n=St.EncryptedPrivateKey.decode(n,"der"),n=Rk(n,t);case"PRIVATE KEY":switch(o=St.PrivateKey.decode(n,"der"),a=o.algorithm.algorithm.join("."),a){case"1.2.840.113549.1.1.1":return St.RSAPrivateKey.decode(o.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:o.algorithm.curve,privateKey:St.ECPrivateKey.decode(o.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return o.algorithm.params.priv_key=St.DSAparam.decode(o.subjectPrivateKey,"der"),{type:"dsa",params:o.algorithm.params};default:throw new Error("unknown key id "+a)}case"RSA PUBLIC KEY":return St.RSAPublicKey.decode(n,"der");case"RSA PRIVATE KEY":return St.RSAPrivateKey.decode(n,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:St.DSAPrivateKey.decode(n,"der")};case"EC PRIVATE KEY":return n=St.ECPrivateKey.decode(n,"der"),{curve:n.parameters.value,privateKey:n.privateKey};default:throw new Error("unknown key type "+i)}}mm.signature=St.signature;wm.exports=mm});var Uc=k((oC,xm)=>{m();var kk=bo(),Cc=Ne().Buffer;xm.exports=function(e,t){for(var r=Cc.alloc(0),i=0,n;r.length<t;)n=Tk(i++),r=Cc.concat([r,kk("sha1").update(e).update(n).digest()]);return r.slice(0,t)};function Tk(e){var t=Cc.allocUnsafe(4);return t.writeUInt32BE(e,0),t}});var Fc=k((sC,Em)=>{m();Em.exports=function(t,r){for(var i=t.length,n=-1;++n<i;)t[n]^=r[n];return t}});var jc=k((lC,Mm)=>{m();var Sm=ei(),Ik=Ne().Buffer;function Ok(e,t){return Ik.from(e.toRed(Sm.mont(t.modulus)).redPow(new Sm(t.publicExponent)).fromRed().toArray())}Mm.exports=Ok});var Bm=k((Am,zc)=>{m();(function(e,t){"use strict";function r(d,f){if(!d)throw new Error(f||"Assertion failed")}function i(d,f){d.super_=f;var l=function(){};l.prototype=f.prototype,d.prototype=new l,d.prototype.constructor=d}function n(d,f,l){if(n.isBN(d))return d;this.negative=0,this.words=null,this.length=0,this.red=null,d!==null&&((f==="le"||f==="be")&&(l=f,f=10),this._init(d||0,f||10,l||"be"))}typeof e=="object"?e.exports=n:t.BN=n,n.BN=n,n.wordSize=26;var a;try{typeof window<"u"&&typeof window.Buffer<"u"?a=window.Buffer:a=st().Buffer}catch{}n.isBN=function(f){return f instanceof n?!0:f!==null&&typeof f=="object"&&f.constructor.wordSize===n.wordSize&&Array.isArray(f.words)},n.max=function(f,l){return f.cmp(l)>0?f:l},n.min=function(f,l){return f.cmp(l)<0?f:l},n.prototype._init=function(f,l,v){if(typeof f=="number")return this._initNumber(f,l,v);if(typeof f=="object")return this._initArray(f,l,v);l==="hex"&&(l=16),r(l===(l|0)&&l>=2&&l<=36),f=f.toString().replace(/\s+/g,"");var g=0;f[0]==="-"&&(g++,this.negative=1),g<f.length&&(l===16?this._parseHex(f,g,v):(this._parseBase(f,l,g),v==="le"&&this._initArray(this.toArray(),l,v)))},n.prototype._initNumber=function(f,l,v){f<0&&(this.negative=1,f=-f),f<67108864?(this.words=[f&67108863],this.length=1):f<4503599627370496?(this.words=[f&67108863,f/67108864&67108863],this.length=2):(r(f<9007199254740992),this.words=[f&67108863,f/67108864&67108863,1],this.length=3),v==="le"&&this._initArray(this.toArray(),l,v)},n.prototype._initArray=function(f,l,v){if(r(typeof f.length=="number"),f.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(f.length/3),this.words=new Array(this.length);for(var g=0;g<this.length;g++)this.words[g]=0;var p,u,w=0;if(v==="be")for(g=f.length-1,p=0;g>=0;g-=3)u=f[g]|f[g-1]<<8|f[g-2]<<16,this.words[p]|=u<<w&67108863,this.words[p+1]=u>>>26-w&67108863,w+=24,w>=26&&(w-=26,p++);else if(v==="le")for(g=0,p=0;g<f.length;g+=3)u=f[g]|f[g+1]<<8|f[g+2]<<16,this.words[p]|=u<<w&67108863,this.words[p+1]=u>>>26-w&67108863,w+=24,w>=26&&(w-=26,p++);return this._strip()};function o(d,f){var l=d.charCodeAt(f);if(l>=48&&l<=57)return l-48;if(l>=65&&l<=70)return l-55;if(l>=97&&l<=102)return l-87;r(!1,"Invalid character in "+d)}function s(d,f,l){var v=o(d,l);return l-1>=f&&(v|=o(d,l-1)<<4),v}n.prototype._parseHex=function(f,l,v){this.length=Math.ceil((f.length-l)/6),this.words=new Array(this.length);for(var g=0;g<this.length;g++)this.words[g]=0;var p=0,u=0,w;if(v==="be")for(g=f.length-1;g>=l;g-=2)w=s(f,l,g)<<p,this.words[u]|=w&67108863,p>=18?(p-=18,u+=1,this.words[u]|=w>>>26):p+=8;else{var E=f.length-l;for(g=E%2===0?l+1:l;g<f.length;g+=2)w=s(f,l,g)<<p,this.words[u]|=w&67108863,p>=18?(p-=18,u+=1,this.words[u]|=w>>>26):p+=8}this._strip()};function y(d,f,l,v){for(var g=0,p=0,u=Math.min(d.length,l),w=f;w<u;w++){var E=d.charCodeAt(w)-48;g*=v,E>=49?p=E-49+10:E>=17?p=E-17+10:p=E,r(E>=0&&p<v,"Invalid character"),g+=p}return g}n.prototype._parseBase=function(f,l,v){this.words=[0],this.length=1;for(var g=0,p=1;p<=67108863;p*=l)g++;g--,p=p/l|0;for(var u=f.length-v,w=u%g,E=Math.min(u,u-w)+v,c=0,S=v;S<E;S+=g)c=y(f,S,S+g,l),this.imuln(p),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(w!==0){var P=1;for(c=y(f,S,f.length,l),S=0;S<w;S++)P*=l;this.imuln(P),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}this._strip()},n.prototype.copy=function(f){f.words=new Array(this.length);for(var l=0;l<this.length;l++)f.words[l]=this.words[l];f.length=this.length,f.negative=this.negative,f.red=this.red};function b(d,f){d.words=f.words,d.length=f.length,d.negative=f.negative,d.red=f.red}if(n.prototype._move=function(f){b(f,this)},n.prototype.clone=function(){var f=new n(null);return this.copy(f),f},n.prototype._expand=function(f){for(;this.length<f;)this.words[this.length++]=0;return this},n.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},n.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{n.prototype[Symbol.for("nodejs.util.inspect.custom")]=x}catch{n.prototype.inspect=x}else n.prototype.inspect=x;function x(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var B=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],R=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],T=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(f,l){f=f||10,l=l|0||1;var v;if(f===16||f==="hex"){v="";for(var g=0,p=0,u=0;u<this.length;u++){var w=this.words[u],E=((w<<g|p)&16777215).toString(16);p=w>>>24-g&16777215,g+=2,g>=26&&(g-=26,u--),p!==0||u!==this.length-1?v=B[6-E.length]+E+v:v=E+v}for(p!==0&&(v=p.toString(16)+v);v.length%l!==0;)v="0"+v;return this.negative!==0&&(v="-"+v),v}if(f===(f|0)&&f>=2&&f<=36){var c=R[f],S=T[f];v="";var P=this.clone();for(P.negative=0;!P.isZero();){var C=P.modrn(S).toString(f);P=P.idivn(S),P.isZero()?v=C+v:v=B[c-C.length]+C+v}for(this.isZero()&&(v="0"+v);v.length%l!==0;)v="0"+v;return this.negative!==0&&(v="-"+v),v}r(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var f=this.words[0];return this.length===2?f+=this.words[1]*67108864:this.length===3&&this.words[2]===1?f+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-f:f},n.prototype.toJSON=function(){return this.toString(16,2)},a&&(n.prototype.toBuffer=function(f,l){return this.toArrayLike(a,f,l)}),n.prototype.toArray=function(f,l){return this.toArrayLike(Array,f,l)};var O=function(f,l){return f.allocUnsafe?f.allocUnsafe(l):new f(l)};n.prototype.toArrayLike=function(f,l,v){this._strip();var g=this.byteLength(),p=v||Math.max(1,g);r(g<=p,"byte array longer than desired length"),r(p>0,"Requested array length <= 0");var u=O(f,p),w=l==="le"?"LE":"BE";return this["_toArrayLike"+w](u,g),u},n.prototype._toArrayLikeLE=function(f,l){for(var v=0,g=0,p=0,u=0;p<this.length;p++){var w=this.words[p]<<u|g;f[v++]=w&255,v<f.length&&(f[v++]=w>>8&255),v<f.length&&(f[v++]=w>>16&255),u===6?(v<f.length&&(f[v++]=w>>24&255),g=0,u=0):(g=w>>>24,u+=2)}if(v<f.length)for(f[v++]=g;v<f.length;)f[v++]=0},n.prototype._toArrayLikeBE=function(f,l){for(var v=f.length-1,g=0,p=0,u=0;p<this.length;p++){var w=this.words[p]<<u|g;f[v--]=w&255,v>=0&&(f[v--]=w>>8&255),v>=0&&(f[v--]=w>>16&255),u===6?(v>=0&&(f[v--]=w>>24&255),g=0,u=0):(g=w>>>24,u+=2)}if(v>=0)for(f[v--]=g;v>=0;)f[v--]=0},Math.clz32?n.prototype._countBits=function(f){return 32-Math.clz32(f)}:n.prototype._countBits=function(f){var l=f,v=0;return l>=4096&&(v+=13,l>>>=13),l>=64&&(v+=7,l>>>=7),l>=8&&(v+=4,l>>>=4),l>=2&&(v+=2,l>>>=2),v+l},n.prototype._zeroBits=function(f){if(f===0)return 26;var l=f,v=0;return(l&8191)===0&&(v+=13,l>>>=13),(l&127)===0&&(v+=7,l>>>=7),(l&15)===0&&(v+=4,l>>>=4),(l&3)===0&&(v+=2,l>>>=2),(l&1)===0&&v++,v},n.prototype.bitLength=function(){var f=this.words[this.length-1],l=this._countBits(f);return(this.length-1)*26+l};function D(d){for(var f=new Array(d.bitLength()),l=0;l<f.length;l++){var v=l/26|0,g=l%26;f[l]=d.words[v]>>>g&1}return f}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var f=0,l=0;l<this.length;l++){var v=this._zeroBits(this.words[l]);if(f+=v,v!==26)break}return f},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(f){return this.negative!==0?this.abs().inotn(f).iaddn(1):this.clone()},n.prototype.fromTwos=function(f){return this.testn(f-1)?this.notn(f).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return this.negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},n.prototype.iuor=function(f){for(;this.length<f.length;)this.words[this.length++]=0;for(var l=0;l<f.length;l++)this.words[l]=this.words[l]|f.words[l];return this._strip()},n.prototype.ior=function(f){return r((this.negative|f.negative)===0),this.iuor(f)},n.prototype.or=function(f){return this.length>f.length?this.clone().ior(f):f.clone().ior(this)},n.prototype.uor=function(f){return this.length>f.length?this.clone().iuor(f):f.clone().iuor(this)},n.prototype.iuand=function(f){var l;this.length>f.length?l=f:l=this;for(var v=0;v<l.length;v++)this.words[v]=this.words[v]&f.words[v];return this.length=l.length,this._strip()},n.prototype.iand=function(f){return r((this.negative|f.negative)===0),this.iuand(f)},n.prototype.and=function(f){return this.length>f.length?this.clone().iand(f):f.clone().iand(this)},n.prototype.uand=function(f){return this.length>f.length?this.clone().iuand(f):f.clone().iuand(this)},n.prototype.iuxor=function(f){var l,v;this.length>f.length?(l=this,v=f):(l=f,v=this);for(var g=0;g<v.length;g++)this.words[g]=l.words[g]^v.words[g];if(this!==l)for(;g<l.length;g++)this.words[g]=l.words[g];return this.length=l.length,this._strip()},n.prototype.ixor=function(f){return r((this.negative|f.negative)===0),this.iuxor(f)},n.prototype.xor=function(f){return this.length>f.length?this.clone().ixor(f):f.clone().ixor(this)},n.prototype.uxor=function(f){return this.length>f.length?this.clone().iuxor(f):f.clone().iuxor(this)},n.prototype.inotn=function(f){r(typeof f=="number"&&f>=0);var l=Math.ceil(f/26)|0,v=f%26;this._expand(l),v>0&&l--;for(var g=0;g<l;g++)this.words[g]=~this.words[g]&67108863;return v>0&&(this.words[g]=~this.words[g]&67108863>>26-v),this._strip()},n.prototype.notn=function(f){return this.clone().inotn(f)},n.prototype.setn=function(f,l){r(typeof f=="number"&&f>=0);var v=f/26|0,g=f%26;return this._expand(v+1),l?this.words[v]=this.words[v]|1<<g:this.words[v]=this.words[v]&~(1<<g),this._strip()},n.prototype.iadd=function(f){var l;if(this.negative!==0&&f.negative===0)return this.negative=0,l=this.isub(f),this.negative^=1,this._normSign();if(this.negative===0&&f.negative!==0)return f.negative=0,l=this.isub(f),f.negative=1,l._normSign();var v,g;this.length>f.length?(v=this,g=f):(v=f,g=this);for(var p=0,u=0;u<g.length;u++)l=(v.words[u]|0)+(g.words[u]|0)+p,this.words[u]=l&67108863,p=l>>>26;for(;p!==0&&u<v.length;u++)l=(v.words[u]|0)+p,this.words[u]=l&67108863,p=l>>>26;if(this.length=v.length,p!==0)this.words[this.length]=p,this.length++;else if(v!==this)for(;u<v.length;u++)this.words[u]=v.words[u];return this},n.prototype.add=function(f){var l;return f.negative!==0&&this.negative===0?(f.negative=0,l=this.sub(f),f.negative^=1,l):f.negative===0&&this.negative!==0?(this.negative=0,l=f.sub(this),this.negative=1,l):this.length>f.length?this.clone().iadd(f):f.clone().iadd(this)},n.prototype.isub=function(f){if(f.negative!==0){f.negative=0;var l=this.iadd(f);return f.negative=1,l._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(f),this.negative=1,this._normSign();var v=this.cmp(f);if(v===0)return this.negative=0,this.length=1,this.words[0]=0,this;var g,p;v>0?(g=this,p=f):(g=f,p=this);for(var u=0,w=0;w<p.length;w++)l=(g.words[w]|0)-(p.words[w]|0)+u,u=l>>26,this.words[w]=l&67108863;for(;u!==0&&w<g.length;w++)l=(g.words[w]|0)+u,u=l>>26,this.words[w]=l&67108863;if(u===0&&w<g.length&&g!==this)for(;w<g.length;w++)this.words[w]=g.words[w];return this.length=Math.max(this.length,w),g!==this&&(this.negative=1),this._strip()},n.prototype.sub=function(f){return this.clone().isub(f)};function U(d,f,l){l.negative=f.negative^d.negative;var v=d.length+f.length|0;l.length=v,v=v-1|0;var g=d.words[0]|0,p=f.words[0]|0,u=g*p,w=u&67108863,E=u/67108864|0;l.words[0]=w;for(var c=1;c<v;c++){for(var S=E>>>26,P=E&67108863,C=Math.min(c,f.length-1),L=Math.max(0,c-d.length+1);L<=C;L++){var V=c-L|0;g=d.words[V]|0,p=f.words[L]|0,u=g*p+P,S+=u/67108864|0,P=u&67108863}l.words[c]=P|0,E=S|0}return E!==0?l.words[c]=E|0:l.length--,l._strip()}var N=function(f,l,v){var g=f.words,p=l.words,u=v.words,w=0,E,c,S,P=g[0]|0,C=P&8191,L=P>>>13,V=g[1]|0,G=V&8191,Y=V>>>13,Wt=g[2]|0,Q=Wt&8191,ee=Wt>>>13,_a=g[3]|0,ie=_a&8191,ne=_a>>>13,ma=g[4]|0,ae=ma&8191,oe=ma>>>13,wa=g[5]|0,fe=wa&8191,se=wa>>>13,xa=g[6]|0,ue=xa&8191,le=xa>>>13,Ea=g[7]|0,he=Ea&8191,ce=Ea>>>13,Sa=g[8]|0,de=Sa&8191,pe=Sa>>>13,Ma=g[9]|0,ve=Ma&8191,ye=Ma>>>13,Aa=p[0]|0,ge=Aa&8191,be=Aa>>>13,Ba=p[1]|0,_e=Ba&8191,me=Ba>>>13,Ra=p[2]|0,we=Ra&8191,xe=Ra>>>13,ka=p[3]|0,Ee=ka&8191,Se=ka>>>13,Ta=p[4]|0,Me=Ta&8191,Ae=Ta>>>13,Ia=p[5]|0,Be=Ia&8191,Re=Ia>>>13,Oa=p[6]|0,ke=Oa&8191,Te=Oa>>>13,qa=p[7]|0,Ie=qa&8191,Oe=qa>>>13,Da=p[8]|0,qe=Da&8191,De=Da>>>13,En=p[9]|0,$e=En&8191,Ye=En>>>13;v.negative=f.negative^l.negative,v.length=19,E=Math.imul(C,ge),c=Math.imul(C,be),c=c+Math.imul(L,ge)|0,S=Math.imul(L,be);var di=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(di>>>26)|0,di&=67108863,E=Math.imul(G,ge),c=Math.imul(G,be),c=c+Math.imul(Y,ge)|0,S=Math.imul(Y,be),E=E+Math.imul(C,_e)|0,c=c+Math.imul(C,me)|0,c=c+Math.imul(L,_e)|0,S=S+Math.imul(L,me)|0;var pi=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(pi>>>26)|0,pi&=67108863,E=Math.imul(Q,ge),c=Math.imul(Q,be),c=c+Math.imul(ee,ge)|0,S=Math.imul(ee,be),E=E+Math.imul(G,_e)|0,c=c+Math.imul(G,me)|0,c=c+Math.imul(Y,_e)|0,S=S+Math.imul(Y,me)|0,E=E+Math.imul(C,we)|0,c=c+Math.imul(C,xe)|0,c=c+Math.imul(L,we)|0,S=S+Math.imul(L,xe)|0;var vi=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(vi>>>26)|0,vi&=67108863,E=Math.imul(ie,ge),c=Math.imul(ie,be),c=c+Math.imul(ne,ge)|0,S=Math.imul(ne,be),E=E+Math.imul(Q,_e)|0,c=c+Math.imul(Q,me)|0,c=c+Math.imul(ee,_e)|0,S=S+Math.imul(ee,me)|0,E=E+Math.imul(G,we)|0,c=c+Math.imul(G,xe)|0,c=c+Math.imul(Y,we)|0,S=S+Math.imul(Y,xe)|0,E=E+Math.imul(C,Ee)|0,c=c+Math.imul(C,Se)|0,c=c+Math.imul(L,Ee)|0,S=S+Math.imul(L,Se)|0;var yi=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(yi>>>26)|0,yi&=67108863,E=Math.imul(ae,ge),c=Math.imul(ae,be),c=c+Math.imul(oe,ge)|0,S=Math.imul(oe,be),E=E+Math.imul(ie,_e)|0,c=c+Math.imul(ie,me)|0,c=c+Math.imul(ne,_e)|0,S=S+Math.imul(ne,me)|0,E=E+Math.imul(Q,we)|0,c=c+Math.imul(Q,xe)|0,c=c+Math.imul(ee,we)|0,S=S+Math.imul(ee,xe)|0,E=E+Math.imul(G,Ee)|0,c=c+Math.imul(G,Se)|0,c=c+Math.imul(Y,Ee)|0,S=S+Math.imul(Y,Se)|0,E=E+Math.imul(C,Me)|0,c=c+Math.imul(C,Ae)|0,c=c+Math.imul(L,Me)|0,S=S+Math.imul(L,Ae)|0;var gi=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(gi>>>26)|0,gi&=67108863,E=Math.imul(fe,ge),c=Math.imul(fe,be),c=c+Math.imul(se,ge)|0,S=Math.imul(se,be),E=E+Math.imul(ae,_e)|0,c=c+Math.imul(ae,me)|0,c=c+Math.imul(oe,_e)|0,S=S+Math.imul(oe,me)|0,E=E+Math.imul(ie,we)|0,c=c+Math.imul(ie,xe)|0,c=c+Math.imul(ne,we)|0,S=S+Math.imul(ne,xe)|0,E=E+Math.imul(Q,Ee)|0,c=c+Math.imul(Q,Se)|0,c=c+Math.imul(ee,Ee)|0,S=S+Math.imul(ee,Se)|0,E=E+Math.imul(G,Me)|0,c=c+Math.imul(G,Ae)|0,c=c+Math.imul(Y,Me)|0,S=S+Math.imul(Y,Ae)|0,E=E+Math.imul(C,Be)|0,c=c+Math.imul(C,Re)|0,c=c+Math.imul(L,Be)|0,S=S+Math.imul(L,Re)|0;var bi=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(bi>>>26)|0,bi&=67108863,E=Math.imul(ue,ge),c=Math.imul(ue,be),c=c+Math.imul(le,ge)|0,S=Math.imul(le,be),E=E+Math.imul(fe,_e)|0,c=c+Math.imul(fe,me)|0,c=c+Math.imul(se,_e)|0,S=S+Math.imul(se,me)|0,E=E+Math.imul(ae,we)|0,c=c+Math.imul(ae,xe)|0,c=c+Math.imul(oe,we)|0,S=S+Math.imul(oe,xe)|0,E=E+Math.imul(ie,Ee)|0,c=c+Math.imul(ie,Se)|0,c=c+Math.imul(ne,Ee)|0,S=S+Math.imul(ne,Se)|0,E=E+Math.imul(Q,Me)|0,c=c+Math.imul(Q,Ae)|0,c=c+Math.imul(ee,Me)|0,S=S+Math.imul(ee,Ae)|0,E=E+Math.imul(G,Be)|0,c=c+Math.imul(G,Re)|0,c=c+Math.imul(Y,Be)|0,S=S+Math.imul(Y,Re)|0,E=E+Math.imul(C,ke)|0,c=c+Math.imul(C,Te)|0,c=c+Math.imul(L,ke)|0,S=S+Math.imul(L,Te)|0;var _i=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(_i>>>26)|0,_i&=67108863,E=Math.imul(he,ge),c=Math.imul(he,be),c=c+Math.imul(ce,ge)|0,S=Math.imul(ce,be),E=E+Math.imul(ue,_e)|0,c=c+Math.imul(ue,me)|0,c=c+Math.imul(le,_e)|0,S=S+Math.imul(le,me)|0,E=E+Math.imul(fe,we)|0,c=c+Math.imul(fe,xe)|0,c=c+Math.imul(se,we)|0,S=S+Math.imul(se,xe)|0,E=E+Math.imul(ae,Ee)|0,c=c+Math.imul(ae,Se)|0,c=c+Math.imul(oe,Ee)|0,S=S+Math.imul(oe,Se)|0,E=E+Math.imul(ie,Me)|0,c=c+Math.imul(ie,Ae)|0,c=c+Math.imul(ne,Me)|0,S=S+Math.imul(ne,Ae)|0,E=E+Math.imul(Q,Be)|0,c=c+Math.imul(Q,Re)|0,c=c+Math.imul(ee,Be)|0,S=S+Math.imul(ee,Re)|0,E=E+Math.imul(G,ke)|0,c=c+Math.imul(G,Te)|0,c=c+Math.imul(Y,ke)|0,S=S+Math.imul(Y,Te)|0,E=E+Math.imul(C,Ie)|0,c=c+Math.imul(C,Oe)|0,c=c+Math.imul(L,Ie)|0,S=S+Math.imul(L,Oe)|0;var mi=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(mi>>>26)|0,mi&=67108863,E=Math.imul(de,ge),c=Math.imul(de,be),c=c+Math.imul(pe,ge)|0,S=Math.imul(pe,be),E=E+Math.imul(he,_e)|0,c=c+Math.imul(he,me)|0,c=c+Math.imul(ce,_e)|0,S=S+Math.imul(ce,me)|0,E=E+Math.imul(ue,we)|0,c=c+Math.imul(ue,xe)|0,c=c+Math.imul(le,we)|0,S=S+Math.imul(le,xe)|0,E=E+Math.imul(fe,Ee)|0,c=c+Math.imul(fe,Se)|0,c=c+Math.imul(se,Ee)|0,S=S+Math.imul(se,Se)|0,E=E+Math.imul(ae,Me)|0,c=c+Math.imul(ae,Ae)|0,c=c+Math.imul(oe,Me)|0,S=S+Math.imul(oe,Ae)|0,E=E+Math.imul(ie,Be)|0,c=c+Math.imul(ie,Re)|0,c=c+Math.imul(ne,Be)|0,S=S+Math.imul(ne,Re)|0,E=E+Math.imul(Q,ke)|0,c=c+Math.imul(Q,Te)|0,c=c+Math.imul(ee,ke)|0,S=S+Math.imul(ee,Te)|0,E=E+Math.imul(G,Ie)|0,c=c+Math.imul(G,Oe)|0,c=c+Math.imul(Y,Ie)|0,S=S+Math.imul(Y,Oe)|0,E=E+Math.imul(C,qe)|0,c=c+Math.imul(C,De)|0,c=c+Math.imul(L,qe)|0,S=S+Math.imul(L,De)|0;var wi=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(wi>>>26)|0,wi&=67108863,E=Math.imul(ve,ge),c=Math.imul(ve,be),c=c+Math.imul(ye,ge)|0,S=Math.imul(ye,be),E=E+Math.imul(de,_e)|0,c=c+Math.imul(de,me)|0,c=c+Math.imul(pe,_e)|0,S=S+Math.imul(pe,me)|0,E=E+Math.imul(he,we)|0,c=c+Math.imul(he,xe)|0,c=c+Math.imul(ce,we)|0,S=S+Math.imul(ce,xe)|0,E=E+Math.imul(ue,Ee)|0,c=c+Math.imul(ue,Se)|0,c=c+Math.imul(le,Ee)|0,S=S+Math.imul(le,Se)|0,E=E+Math.imul(fe,Me)|0,c=c+Math.imul(fe,Ae)|0,c=c+Math.imul(se,Me)|0,S=S+Math.imul(se,Ae)|0,E=E+Math.imul(ae,Be)|0,c=c+Math.imul(ae,Re)|0,c=c+Math.imul(oe,Be)|0,S=S+Math.imul(oe,Re)|0,E=E+Math.imul(ie,ke)|0,c=c+Math.imul(ie,Te)|0,c=c+Math.imul(ne,ke)|0,S=S+Math.imul(ne,Te)|0,E=E+Math.imul(Q,Ie)|0,c=c+Math.imul(Q,Oe)|0,c=c+Math.imul(ee,Ie)|0,S=S+Math.imul(ee,Oe)|0,E=E+Math.imul(G,qe)|0,c=c+Math.imul(G,De)|0,c=c+Math.imul(Y,qe)|0,S=S+Math.imul(Y,De)|0,E=E+Math.imul(C,$e)|0,c=c+Math.imul(C,Ye)|0,c=c+Math.imul(L,$e)|0,S=S+Math.imul(L,Ye)|0;var xi=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(xi>>>26)|0,xi&=67108863,E=Math.imul(ve,_e),c=Math.imul(ve,me),c=c+Math.imul(ye,_e)|0,S=Math.imul(ye,me),E=E+Math.imul(de,we)|0,c=c+Math.imul(de,xe)|0,c=c+Math.imul(pe,we)|0,S=S+Math.imul(pe,xe)|0,E=E+Math.imul(he,Ee)|0,c=c+Math.imul(he,Se)|0,c=c+Math.imul(ce,Ee)|0,S=S+Math.imul(ce,Se)|0,E=E+Math.imul(ue,Me)|0,c=c+Math.imul(ue,Ae)|0,c=c+Math.imul(le,Me)|0,S=S+Math.imul(le,Ae)|0,E=E+Math.imul(fe,Be)|0,c=c+Math.imul(fe,Re)|0,c=c+Math.imul(se,Be)|0,S=S+Math.imul(se,Re)|0,E=E+Math.imul(ae,ke)|0,c=c+Math.imul(ae,Te)|0,c=c+Math.imul(oe,ke)|0,S=S+Math.imul(oe,Te)|0,E=E+Math.imul(ie,Ie)|0,c=c+Math.imul(ie,Oe)|0,c=c+Math.imul(ne,Ie)|0,S=S+Math.imul(ne,Oe)|0,E=E+Math.imul(Q,qe)|0,c=c+Math.imul(Q,De)|0,c=c+Math.imul(ee,qe)|0,S=S+Math.imul(ee,De)|0,E=E+Math.imul(G,$e)|0,c=c+Math.imul(G,Ye)|0,c=c+Math.imul(Y,$e)|0,S=S+Math.imul(Y,Ye)|0;var Ei=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,E=Math.imul(ve,we),c=Math.imul(ve,xe),c=c+Math.imul(ye,we)|0,S=Math.imul(ye,xe),E=E+Math.imul(de,Ee)|0,c=c+Math.imul(de,Se)|0,c=c+Math.imul(pe,Ee)|0,S=S+Math.imul(pe,Se)|0,E=E+Math.imul(he,Me)|0,c=c+Math.imul(he,Ae)|0,c=c+Math.imul(ce,Me)|0,S=S+Math.imul(ce,Ae)|0,E=E+Math.imul(ue,Be)|0,c=c+Math.imul(ue,Re)|0,c=c+Math.imul(le,Be)|0,S=S+Math.imul(le,Re)|0,E=E+Math.imul(fe,ke)|0,c=c+Math.imul(fe,Te)|0,c=c+Math.imul(se,ke)|0,S=S+Math.imul(se,Te)|0,E=E+Math.imul(ae,Ie)|0,c=c+Math.imul(ae,Oe)|0,c=c+Math.imul(oe,Ie)|0,S=S+Math.imul(oe,Oe)|0,E=E+Math.imul(ie,qe)|0,c=c+Math.imul(ie,De)|0,c=c+Math.imul(ne,qe)|0,S=S+Math.imul(ne,De)|0,E=E+Math.imul(Q,$e)|0,c=c+Math.imul(Q,Ye)|0,c=c+Math.imul(ee,$e)|0,S=S+Math.imul(ee,Ye)|0;var Si=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(Si>>>26)|0,Si&=67108863,E=Math.imul(ve,Ee),c=Math.imul(ve,Se),c=c+Math.imul(ye,Ee)|0,S=Math.imul(ye,Se),E=E+Math.imul(de,Me)|0,c=c+Math.imul(de,Ae)|0,c=c+Math.imul(pe,Me)|0,S=S+Math.imul(pe,Ae)|0,E=E+Math.imul(he,Be)|0,c=c+Math.imul(he,Re)|0,c=c+Math.imul(ce,Be)|0,S=S+Math.imul(ce,Re)|0,E=E+Math.imul(ue,ke)|0,c=c+Math.imul(ue,Te)|0,c=c+Math.imul(le,ke)|0,S=S+Math.imul(le,Te)|0,E=E+Math.imul(fe,Ie)|0,c=c+Math.imul(fe,Oe)|0,c=c+Math.imul(se,Ie)|0,S=S+Math.imul(se,Oe)|0,E=E+Math.imul(ae,qe)|0,c=c+Math.imul(ae,De)|0,c=c+Math.imul(oe,qe)|0,S=S+Math.imul(oe,De)|0,E=E+Math.imul(ie,$e)|0,c=c+Math.imul(ie,Ye)|0,c=c+Math.imul(ne,$e)|0,S=S+Math.imul(ne,Ye)|0;var Mi=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(Mi>>>26)|0,Mi&=67108863,E=Math.imul(ve,Me),c=Math.imul(ve,Ae),c=c+Math.imul(ye,Me)|0,S=Math.imul(ye,Ae),E=E+Math.imul(de,Be)|0,c=c+Math.imul(de,Re)|0,c=c+Math.imul(pe,Be)|0,S=S+Math.imul(pe,Re)|0,E=E+Math.imul(he,ke)|0,c=c+Math.imul(he,Te)|0,c=c+Math.imul(ce,ke)|0,S=S+Math.imul(ce,Te)|0,E=E+Math.imul(ue,Ie)|0,c=c+Math.imul(ue,Oe)|0,c=c+Math.imul(le,Ie)|0,S=S+Math.imul(le,Oe)|0,E=E+Math.imul(fe,qe)|0,c=c+Math.imul(fe,De)|0,c=c+Math.imul(se,qe)|0,S=S+Math.imul(se,De)|0,E=E+Math.imul(ae,$e)|0,c=c+Math.imul(ae,Ye)|0,c=c+Math.imul(oe,$e)|0,S=S+Math.imul(oe,Ye)|0;var Ai=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(Ai>>>26)|0,Ai&=67108863,E=Math.imul(ve,Be),c=Math.imul(ve,Re),c=c+Math.imul(ye,Be)|0,S=Math.imul(ye,Re),E=E+Math.imul(de,ke)|0,c=c+Math.imul(de,Te)|0,c=c+Math.imul(pe,ke)|0,S=S+Math.imul(pe,Te)|0,E=E+Math.imul(he,Ie)|0,c=c+Math.imul(he,Oe)|0,c=c+Math.imul(ce,Ie)|0,S=S+Math.imul(ce,Oe)|0,E=E+Math.imul(ue,qe)|0,c=c+Math.imul(ue,De)|0,c=c+Math.imul(le,qe)|0,S=S+Math.imul(le,De)|0,E=E+Math.imul(fe,$e)|0,c=c+Math.imul(fe,Ye)|0,c=c+Math.imul(se,$e)|0,S=S+Math.imul(se,Ye)|0;var Bi=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(Bi>>>26)|0,Bi&=67108863,E=Math.imul(ve,ke),c=Math.imul(ve,Te),c=c+Math.imul(ye,ke)|0,S=Math.imul(ye,Te),E=E+Math.imul(de,Ie)|0,c=c+Math.imul(de,Oe)|0,c=c+Math.imul(pe,Ie)|0,S=S+Math.imul(pe,Oe)|0,E=E+Math.imul(he,qe)|0,c=c+Math.imul(he,De)|0,c=c+Math.imul(ce,qe)|0,S=S+Math.imul(ce,De)|0,E=E+Math.imul(ue,$e)|0,c=c+Math.imul(ue,Ye)|0,c=c+Math.imul(le,$e)|0,S=S+Math.imul(le,Ye)|0;var Ri=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(Ri>>>26)|0,Ri&=67108863,E=Math.imul(ve,Ie),c=Math.imul(ve,Oe),c=c+Math.imul(ye,Ie)|0,S=Math.imul(ye,Oe),E=E+Math.imul(de,qe)|0,c=c+Math.imul(de,De)|0,c=c+Math.imul(pe,qe)|0,S=S+Math.imul(pe,De)|0,E=E+Math.imul(he,$e)|0,c=c+Math.imul(he,Ye)|0,c=c+Math.imul(ce,$e)|0,S=S+Math.imul(ce,Ye)|0;var Zu=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(Zu>>>26)|0,Zu&=67108863,E=Math.imul(ve,qe),c=Math.imul(ve,De),c=c+Math.imul(ye,qe)|0,S=Math.imul(ye,De),E=E+Math.imul(de,$e)|0,c=c+Math.imul(de,Ye)|0,c=c+Math.imul(pe,$e)|0,S=S+Math.imul(pe,Ye)|0;var Hu=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(Hu>>>26)|0,Hu&=67108863,E=Math.imul(ve,$e),c=Math.imul(ve,Ye),c=c+Math.imul(ye,$e)|0,S=Math.imul(ye,Ye);var Wu=(w+E|0)+((c&8191)<<13)|0;return w=(S+(c>>>13)|0)+(Wu>>>26)|0,Wu&=67108863,u[0]=di,u[1]=pi,u[2]=vi,u[3]=yi,u[4]=gi,u[5]=bi,u[6]=_i,u[7]=mi,u[8]=wi,u[9]=xi,u[10]=Ei,u[11]=Si,u[12]=Mi,u[13]=Ai,u[14]=Bi,u[15]=Ri,u[16]=Zu,u[17]=Hu,u[18]=Wu,w!==0&&(u[19]=w,v.length++),v};Math.imul||(N=U);function j(d,f,l){l.negative=f.negative^d.negative,l.length=d.length+f.length;for(var v=0,g=0,p=0;p<l.length-1;p++){var u=g;g=0;for(var w=v&67108863,E=Math.min(p,f.length-1),c=Math.max(0,p-d.length+1);c<=E;c++){var S=p-c,P=d.words[S]|0,C=f.words[c]|0,L=P*C,V=L&67108863;u=u+(L/67108864|0)|0,V=V+w|0,w=V&67108863,u=u+(V>>>26)|0,g+=u>>>26,u&=67108863}l.words[p]=w,v=u,u=g}return v!==0?l.words[p]=v:l.length--,l._strip()}function H(d,f,l){return j(d,f,l)}n.prototype.mulTo=function(f,l){var v,g=this.length+f.length;return this.length===10&&f.length===10?v=N(this,f,l):g<63?v=U(this,f,l):g<1024?v=j(this,f,l):v=H(this,f,l),v};function W(d,f){this.x=d,this.y=f}W.prototype.makeRBT=function(f){for(var l=new Array(f),v=n.prototype._countBits(f)-1,g=0;g<f;g++)l[g]=this.revBin(g,v,f);return l},W.prototype.revBin=function(f,l,v){if(f===0||f===v-1)return f;for(var g=0,p=0;p<l;p++)g|=(f&1)<<l-p-1,f>>=1;return g},W.prototype.permute=function(f,l,v,g,p,u){for(var w=0;w<u;w++)g[w]=l[f[w]],p[w]=v[f[w]]},W.prototype.transform=function(f,l,v,g,p,u){this.permute(u,f,l,v,g,p);for(var w=1;w<p;w<<=1)for(var E=w<<1,c=Math.cos(2*Math.PI/E),S=Math.sin(2*Math.PI/E),P=0;P<p;P+=E)for(var C=c,L=S,V=0;V<w;V++){var G=v[P+V],Y=g[P+V],Wt=v[P+V+w],Q=g[P+V+w],ee=C*Wt-L*Q;Q=C*Q+L*Wt,Wt=ee,v[P+V]=G+Wt,g[P+V]=Y+Q,v[P+V+w]=G-Wt,g[P+V+w]=Y-Q,V!==E&&(ee=c*C-S*L,L=c*L+S*C,C=ee)}},W.prototype.guessLen13b=function(f,l){var v=Math.max(l,f)|1,g=v&1,p=0;for(v=v/2|0;v;v=v>>>1)p++;return 1<<p+1+g},W.prototype.conjugate=function(f,l,v){if(!(v<=1))for(var g=0;g<v/2;g++){var p=f[g];f[g]=f[v-g-1],f[v-g-1]=p,p=l[g],l[g]=-l[v-g-1],l[v-g-1]=-p}},W.prototype.normalize13b=function(f,l){for(var v=0,g=0;g<l/2;g++){var p=Math.round(f[2*g+1]/l)*8192+Math.round(f[2*g]/l)+v;f[g]=p&67108863,p<67108864?v=0:v=p/67108864|0}return f},W.prototype.convert13b=function(f,l,v,g){for(var p=0,u=0;u<l;u++)p=p+(f[u]|0),v[2*u]=p&8191,p=p>>>13,v[2*u+1]=p&8191,p=p>>>13;for(u=2*l;u<g;++u)v[u]=0;r(p===0),r((p&-8192)===0)},W.prototype.stub=function(f){for(var l=new Array(f),v=0;v<f;v++)l[v]=0;return l},W.prototype.mulp=function(f,l,v){var g=2*this.guessLen13b(f.length,l.length),p=this.makeRBT(g),u=this.stub(g),w=new Array(g),E=new Array(g),c=new Array(g),S=new Array(g),P=new Array(g),C=new Array(g),L=v.words;L.length=g,this.convert13b(f.words,f.length,w,g),this.convert13b(l.words,l.length,S,g),this.transform(w,u,E,c,g,p),this.transform(S,u,P,C,g,p);for(var V=0;V<g;V++){var G=E[V]*P[V]-c[V]*C[V];c[V]=E[V]*C[V]+c[V]*P[V],E[V]=G}return this.conjugate(E,c,g),this.transform(E,c,L,u,g,p),this.conjugate(L,u,g),this.normalize13b(L,g),v.negative=f.negative^l.negative,v.length=f.length+l.length,v._strip()},n.prototype.mul=function(f){var l=new n(null);return l.words=new Array(this.length+f.length),this.mulTo(f,l)},n.prototype.mulf=function(f){var l=new n(null);return l.words=new Array(this.length+f.length),H(this,f,l)},n.prototype.imul=function(f){return this.clone().mulTo(f,this)},n.prototype.imuln=function(f){var l=f<0;l&&(f=-f),r(typeof f=="number"),r(f<67108864);for(var v=0,g=0;g<this.length;g++){var p=(this.words[g]|0)*f,u=(p&67108863)+(v&67108863);v>>=26,v+=p/67108864|0,v+=u>>>26,this.words[g]=u&67108863}return v!==0&&(this.words[g]=v,this.length++),this.length=f===0?1:this.length,l?this.ineg():this},n.prototype.muln=function(f){return this.clone().imuln(f)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(f){var l=D(f);if(l.length===0)return new n(1);for(var v=this,g=0;g<l.length&&l[g]===0;g++,v=v.sqr());if(++g<l.length)for(var p=v.sqr();g<l.length;g++,p=p.sqr())l[g]!==0&&(v=v.mul(p));return v},n.prototype.iushln=function(f){r(typeof f=="number"&&f>=0);var l=f%26,v=(f-l)/26,g=67108863>>>26-l<<26-l,p;if(l!==0){var u=0;for(p=0;p<this.length;p++){var w=this.words[p]&g,E=(this.words[p]|0)-w<<l;this.words[p]=E|u,u=w>>>26-l}u&&(this.words[p]=u,this.length++)}if(v!==0){for(p=this.length-1;p>=0;p--)this.words[p+v]=this.words[p];for(p=0;p<v;p++)this.words[p]=0;this.length+=v}return this._strip()},n.prototype.ishln=function(f){return r(this.negative===0),this.iushln(f)},n.prototype.iushrn=function(f,l,v){r(typeof f=="number"&&f>=0);var g;l?g=(l-l%26)/26:g=0;var p=f%26,u=Math.min((f-p)/26,this.length),w=67108863^67108863>>>p<<p,E=v;if(g-=u,g=Math.max(0,g),E){for(var c=0;c<u;c++)E.words[c]=this.words[c];E.length=u}if(u!==0)if(this.length>u)for(this.length-=u,c=0;c<this.length;c++)this.words[c]=this.words[c+u];else this.words[0]=0,this.length=1;var S=0;for(c=this.length-1;c>=0&&(S!==0||c>=g);c--){var P=this.words[c]|0;this.words[c]=S<<26-p|P>>>p,S=P&w}return E&&S!==0&&(E.words[E.length++]=S),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},n.prototype.ishrn=function(f,l,v){return r(this.negative===0),this.iushrn(f,l,v)},n.prototype.shln=function(f){return this.clone().ishln(f)},n.prototype.ushln=function(f){return this.clone().iushln(f)},n.prototype.shrn=function(f){return this.clone().ishrn(f)},n.prototype.ushrn=function(f){return this.clone().iushrn(f)},n.prototype.testn=function(f){r(typeof f=="number"&&f>=0);var l=f%26,v=(f-l)/26,g=1<<l;if(this.length<=v)return!1;var p=this.words[v];return!!(p&g)},n.prototype.imaskn=function(f){r(typeof f=="number"&&f>=0);var l=f%26,v=(f-l)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=v)return this;if(l!==0&&v++,this.length=Math.min(v,this.length),l!==0){var g=67108863^67108863>>>l<<l;this.words[this.length-1]&=g}return this.length===0&&(this.words[0]=0,this.length=1),this._strip()},n.prototype.maskn=function(f){return this.clone().imaskn(f)},n.prototype.iaddn=function(f){return r(typeof f=="number"),r(f<67108864),f<0?this.isubn(-f):this.negative!==0?this.length===1&&(this.words[0]|0)<=f?(this.words[0]=f-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(f),this.negative=1,this):this._iaddn(f)},n.prototype._iaddn=function(f){this.words[0]+=f;for(var l=0;l<this.length&&this.words[l]>=67108864;l++)this.words[l]-=67108864,l===this.length-1?this.words[l+1]=1:this.words[l+1]++;return this.length=Math.max(this.length,l+1),this},n.prototype.isubn=function(f){if(r(typeof f=="number"),r(f<67108864),f<0)return this.iaddn(-f);if(this.negative!==0)return this.negative=0,this.iaddn(f),this.negative=1,this;if(this.words[0]-=f,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var l=0;l<this.length&&this.words[l]<0;l++)this.words[l]+=67108864,this.words[l+1]-=1;return this._strip()},n.prototype.addn=function(f){return this.clone().iaddn(f)},n.prototype.subn=function(f){return this.clone().isubn(f)},n.prototype.iabs=function(){return this.negative=0,this},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(f,l,v){var g=f.length+v,p;this._expand(g);var u,w=0;for(p=0;p<f.length;p++){u=(this.words[p+v]|0)+w;var E=(f.words[p]|0)*l;u-=E&67108863,w=(u>>26)-(E/67108864|0),this.words[p+v]=u&67108863}for(;p<this.length-v;p++)u=(this.words[p+v]|0)+w,w=u>>26,this.words[p+v]=u&67108863;if(w===0)return this._strip();for(r(w===-1),w=0,p=0;p<this.length;p++)u=-(this.words[p]|0)+w,w=u>>26,this.words[p]=u&67108863;return this.negative=1,this._strip()},n.prototype._wordDiv=function(f,l){var v=this.length-f.length,g=this.clone(),p=f,u=p.words[p.length-1]|0,w=this._countBits(u);v=26-w,v!==0&&(p=p.ushln(v),g.iushln(v),u=p.words[p.length-1]|0);var E=g.length-p.length,c;if(l!=="mod"){c=new n(null),c.length=E+1,c.words=new Array(c.length);for(var S=0;S<c.length;S++)c.words[S]=0}var P=g.clone()._ishlnsubmul(p,1,E);P.negative===0&&(g=P,c&&(c.words[E]=1));for(var C=E-1;C>=0;C--){var L=(g.words[p.length+C]|0)*67108864+(g.words[p.length+C-1]|0);for(L=Math.min(L/u|0,67108863),g._ishlnsubmul(p,L,C);g.negative!==0;)L--,g.negative=0,g._ishlnsubmul(p,1,C),g.isZero()||(g.negative^=1);c&&(c.words[C]=L)}return c&&c._strip(),g._strip(),l!=="div"&&v!==0&&g.iushrn(v),{div:c||null,mod:g}},n.prototype.divmod=function(f,l,v){if(r(!f.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var g,p,u;return this.negative!==0&&f.negative===0?(u=this.neg().divmod(f,l),l!=="mod"&&(g=u.div.neg()),l!=="div"&&(p=u.mod.neg(),v&&p.negative!==0&&p.iadd(f)),{div:g,mod:p}):this.negative===0&&f.negative!==0?(u=this.divmod(f.neg(),l),l!=="mod"&&(g=u.div.neg()),{div:g,mod:u.mod}):(this.negative&f.negative)!==0?(u=this.neg().divmod(f.neg(),l),l!=="div"&&(p=u.mod.neg(),v&&p.negative!==0&&p.isub(f)),{div:u.div,mod:p}):f.length>this.length||this.cmp(f)<0?{div:new n(0),mod:this}:f.length===1?l==="div"?{div:this.divn(f.words[0]),mod:null}:l==="mod"?{div:null,mod:new n(this.modrn(f.words[0]))}:{div:this.divn(f.words[0]),mod:new n(this.modrn(f.words[0]))}:this._wordDiv(f,l)},n.prototype.div=function(f){return this.divmod(f,"div",!1).div},n.prototype.mod=function(f){return this.divmod(f,"mod",!1).mod},n.prototype.umod=function(f){return this.divmod(f,"mod",!0).mod},n.prototype.divRound=function(f){var l=this.divmod(f);if(l.mod.isZero())return l.div;var v=l.div.negative!==0?l.mod.isub(f):l.mod,g=f.ushrn(1),p=f.andln(1),u=v.cmp(g);return u<0||p===1&&u===0?l.div:l.div.negative!==0?l.div.isubn(1):l.div.iaddn(1)},n.prototype.modrn=function(f){var l=f<0;l&&(f=-f),r(f<=67108863);for(var v=(1<<26)%f,g=0,p=this.length-1;p>=0;p--)g=(v*g+(this.words[p]|0))%f;return l?-g:g},n.prototype.modn=function(f){return this.modrn(f)},n.prototype.idivn=function(f){var l=f<0;l&&(f=-f),r(f<=67108863);for(var v=0,g=this.length-1;g>=0;g--){var p=(this.words[g]|0)+v*67108864;this.words[g]=p/f|0,v=p%f}return this._strip(),l?this.ineg():this},n.prototype.divn=function(f){return this.clone().idivn(f)},n.prototype.egcd=function(f){r(f.negative===0),r(!f.isZero());var l=this,v=f.clone();l.negative!==0?l=l.umod(f):l=l.clone();for(var g=new n(1),p=new n(0),u=new n(0),w=new n(1),E=0;l.isEven()&&v.isEven();)l.iushrn(1),v.iushrn(1),++E;for(var c=v.clone(),S=l.clone();!l.isZero();){for(var P=0,C=1;(l.words[0]&C)===0&&P<26;++P,C<<=1);if(P>0)for(l.iushrn(P);P-- >0;)(g.isOdd()||p.isOdd())&&(g.iadd(c),p.isub(S)),g.iushrn(1),p.iushrn(1);for(var L=0,V=1;(v.words[0]&V)===0&&L<26;++L,V<<=1);if(L>0)for(v.iushrn(L);L-- >0;)(u.isOdd()||w.isOdd())&&(u.iadd(c),w.isub(S)),u.iushrn(1),w.iushrn(1);l.cmp(v)>=0?(l.isub(v),g.isub(u),p.isub(w)):(v.isub(l),u.isub(g),w.isub(p))}return{a:u,b:w,gcd:v.iushln(E)}},n.prototype._invmp=function(f){r(f.negative===0),r(!f.isZero());var l=this,v=f.clone();l.negative!==0?l=l.umod(f):l=l.clone();for(var g=new n(1),p=new n(0),u=v.clone();l.cmpn(1)>0&&v.cmpn(1)>0;){for(var w=0,E=1;(l.words[0]&E)===0&&w<26;++w,E<<=1);if(w>0)for(l.iushrn(w);w-- >0;)g.isOdd()&&g.iadd(u),g.iushrn(1);for(var c=0,S=1;(v.words[0]&S)===0&&c<26;++c,S<<=1);if(c>0)for(v.iushrn(c);c-- >0;)p.isOdd()&&p.iadd(u),p.iushrn(1);l.cmp(v)>=0?(l.isub(v),g.isub(p)):(v.isub(l),p.isub(g))}var P;return l.cmpn(1)===0?P=g:P=p,P.cmpn(0)<0&&P.iadd(f),P},n.prototype.gcd=function(f){if(this.isZero())return f.abs();if(f.isZero())return this.abs();var l=this.clone(),v=f.clone();l.negative=0,v.negative=0;for(var g=0;l.isEven()&&v.isEven();g++)l.iushrn(1),v.iushrn(1);do{for(;l.isEven();)l.iushrn(1);for(;v.isEven();)v.iushrn(1);var p=l.cmp(v);if(p<0){var u=l;l=v,v=u}else if(p===0||v.cmpn(1)===0)break;l.isub(v)}while(!0);return v.iushln(g)},n.prototype.invm=function(f){return this.egcd(f).a.umod(f)},n.prototype.isEven=function(){return(this.words[0]&1)===0},n.prototype.isOdd=function(){return(this.words[0]&1)===1},n.prototype.andln=function(f){return this.words[0]&f},n.prototype.bincn=function(f){r(typeof f=="number");var l=f%26,v=(f-l)/26,g=1<<l;if(this.length<=v)return this._expand(v+1),this.words[v]|=g,this;for(var p=g,u=v;p!==0&&u<this.length;u++){var w=this.words[u]|0;w+=p,p=w>>>26,w&=67108863,this.words[u]=w}return p!==0&&(this.words[u]=p,this.length++),this},n.prototype.isZero=function(){return this.length===1&&this.words[0]===0},n.prototype.cmpn=function(f){var l=f<0;if(this.negative!==0&&!l)return-1;if(this.negative===0&&l)return 1;this._strip();var v;if(this.length>1)v=1;else{l&&(f=-f),r(f<=67108863,"Number is too big");var g=this.words[0]|0;v=g===f?0:g<f?-1:1}return this.negative!==0?-v|0:v},n.prototype.cmp=function(f){if(this.negative!==0&&f.negative===0)return-1;if(this.negative===0&&f.negative!==0)return 1;var l=this.ucmp(f);return this.negative!==0?-l|0:l},n.prototype.ucmp=function(f){if(this.length>f.length)return 1;if(this.length<f.length)return-1;for(var l=0,v=this.length-1;v>=0;v--){var g=this.words[v]|0,p=f.words[v]|0;if(g!==p){g<p?l=-1:g>p&&(l=1);break}}return l},n.prototype.gtn=function(f){return this.cmpn(f)===1},n.prototype.gt=function(f){return this.cmp(f)===1},n.prototype.gten=function(f){return this.cmpn(f)>=0},n.prototype.gte=function(f){return this.cmp(f)>=0},n.prototype.ltn=function(f){return this.cmpn(f)===-1},n.prototype.lt=function(f){return this.cmp(f)===-1},n.prototype.lten=function(f){return this.cmpn(f)<=0},n.prototype.lte=function(f){return this.cmp(f)<=0},n.prototype.eqn=function(f){return this.cmpn(f)===0},n.prototype.eq=function(f){return this.cmp(f)===0},n.red=function(f){return new h(f)},n.prototype.toRed=function(f){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),f.convertTo(this)._forceRed(f)},n.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(f){return this.red=f,this},n.prototype.forceRed=function(f){return r(!this.red,"Already a number in reduction context"),this._forceRed(f)},n.prototype.redAdd=function(f){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,f)},n.prototype.redIAdd=function(f){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,f)},n.prototype.redSub=function(f){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,f)},n.prototype.redISub=function(f){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,f)},n.prototype.redShl=function(f){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,f)},n.prototype.redMul=function(f){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.mul(this,f)},n.prototype.redIMul=function(f){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.imul(this,f)},n.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(f){return r(this.red&&!f.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,f)};var Z={k256:null,p224:null,p192:null,p25519:null};function K(d,f){this.name=d,this.p=new n(f,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}K.prototype._tmp=function(){var f=new n(null);return f.words=new Array(Math.ceil(this.n/13)),f},K.prototype.ireduce=function(f){var l=f,v;do this.split(l,this.tmp),l=this.imulK(l),l=l.iadd(this.tmp),v=l.bitLength();while(v>this.n);var g=v<this.n?-1:l.ucmp(this.p);return g===0?(l.words[0]=0,l.length=1):g>0?l.isub(this.p):l.strip!==void 0?l.strip():l._strip(),l},K.prototype.split=function(f,l){f.iushrn(this.n,0,l)},K.prototype.imulK=function(f){return f.imul(this.k)};function J(){K.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(J,K),J.prototype.split=function(f,l){for(var v=4194303,g=Math.min(f.length,9),p=0;p<g;p++)l.words[p]=f.words[p];if(l.length=g,f.length<=9){f.words[0]=0,f.length=1;return}var u=f.words[9];for(l.words[l.length++]=u&v,p=10;p<f.length;p++){var w=f.words[p]|0;f.words[p-10]=(w&v)<<4|u>>>22,u=w}u>>>=22,f.words[p-10]=u,u===0&&f.length>10?f.length-=10:f.length-=9},J.prototype.imulK=function(f){f.words[f.length]=0,f.words[f.length+1]=0,f.length+=2;for(var l=0,v=0;v<f.length;v++){var g=f.words[v]|0;l+=g*977,f.words[v]=l&67108863,l=g*64+(l/67108864|0)}return f.words[f.length-1]===0&&(f.length--,f.words[f.length-1]===0&&f.length--),f};function z(){K.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}i(z,K);function X(){K.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}i(X,K);function A(){K.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}i(A,K),A.prototype.imulK=function(f){for(var l=0,v=0;v<f.length;v++){var g=(f.words[v]|0)*19+l,p=g&67108863;g>>>=26,f.words[v]=p,l=g}return l!==0&&(f.words[f.length++]=l),f},n._prime=function(f){if(Z[f])return Z[f];var l;if(f==="k256")l=new J;else if(f==="p224")l=new z;else if(f==="p192")l=new X;else if(f==="p25519")l=new A;else throw new Error("Unknown prime "+f);return Z[f]=l,l};function h(d){if(typeof d=="string"){var f=n._prime(d);this.m=f.p,this.prime=f}else r(d.gtn(1),"modulus must be greater than 1"),this.m=d,this.prime=null}h.prototype._verify1=function(f){r(f.negative===0,"red works only with positives"),r(f.red,"red works only with red numbers")},h.prototype._verify2=function(f,l){r((f.negative|l.negative)===0,"red works only with positives"),r(f.red&&f.red===l.red,"red works only with red numbers")},h.prototype.imod=function(f){return this.prime?this.prime.ireduce(f)._forceRed(this):(b(f,f.umod(this.m)._forceRed(this)),f)},h.prototype.neg=function(f){return f.isZero()?f.clone():this.m.sub(f)._forceRed(this)},h.prototype.add=function(f,l){this._verify2(f,l);var v=f.add(l);return v.cmp(this.m)>=0&&v.isub(this.m),v._forceRed(this)},h.prototype.iadd=function(f,l){this._verify2(f,l);var v=f.iadd(l);return v.cmp(this.m)>=0&&v.isub(this.m),v},h.prototype.sub=function(f,l){this._verify2(f,l);var v=f.sub(l);return v.cmpn(0)<0&&v.iadd(this.m),v._forceRed(this)},h.prototype.isub=function(f,l){this._verify2(f,l);var v=f.isub(l);return v.cmpn(0)<0&&v.iadd(this.m),v},h.prototype.shl=function(f,l){return this._verify1(f),this.imod(f.ushln(l))},h.prototype.imul=function(f,l){return this._verify2(f,l),this.imod(f.imul(l))},h.prototype.mul=function(f,l){return this._verify2(f,l),this.imod(f.mul(l))},h.prototype.isqr=function(f){return this.imul(f,f.clone())},h.prototype.sqr=function(f){return this.mul(f,f)},h.prototype.sqrt=function(f){if(f.isZero())return f.clone();var l=this.m.andln(3);if(r(l%2===1),l===3){var v=this.m.add(new n(1)).iushrn(2);return this.pow(f,v)}for(var g=this.m.subn(1),p=0;!g.isZero()&&g.andln(1)===0;)p++,g.iushrn(1);r(!g.isZero());var u=new n(1).toRed(this),w=u.redNeg(),E=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new n(2*c*c).toRed(this);this.pow(c,E).cmp(w)!==0;)c.redIAdd(w);for(var S=this.pow(c,g),P=this.pow(f,g.addn(1).iushrn(1)),C=this.pow(f,g),L=p;C.cmp(u)!==0;){for(var V=C,G=0;V.cmp(u)!==0;G++)V=V.redSqr();r(G<L);var Y=this.pow(S,new n(1).iushln(L-G-1));P=P.redMul(Y),S=Y.redSqr(),C=C.redMul(S),L=G}return P},h.prototype.invm=function(f){var l=f._invmp(this.m);return l.negative!==0?(l.negative=0,this.imod(l).redNeg()):this.imod(l)},h.prototype.pow=function(f,l){if(l.isZero())return new n(1).toRed(this);if(l.cmpn(1)===0)return f.clone();var v=4,g=new Array(1<<v);g[0]=new n(1).toRed(this),g[1]=f;for(var p=2;p<g.length;p++)g[p]=this.mul(g[p-1],f);var u=g[0],w=0,E=0,c=l.bitLength()%26;for(c===0&&(c=26),p=l.length-1;p>=0;p--){for(var S=l.words[p],P=c-1;P>=0;P--){var C=S>>P&1;if(u!==g[0]&&(u=this.sqr(u)),C===0&&w===0){E=0;continue}w<<=1,w|=C,E++,!(E!==v&&(p!==0||P!==0))&&(u=this.mul(u,g[w]),E=0,w=0)}c=26}return u},h.prototype.convertTo=function(f){var l=f.umod(this.m);return l===f?l.clone():l},h.prototype.convertFrom=function(f){var l=f.clone();return l.red=null,l},n.mont=function(f){return new _(f)};function _(d){h.call(this,d),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new n(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}i(_,h),_.prototype.convertTo=function(f){return this.imod(f.ushln(this.shift))},_.prototype.convertFrom=function(f){var l=this.imod(f.mul(this.rinv));return l.red=null,l},_.prototype.imul=function(f,l){if(f.isZero()||l.isZero())return f.words[0]=0,f.length=1,f;var v=f.imul(l),g=v.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),p=v.isub(g).iushrn(this.shift),u=p;return p.cmp(this.m)>=0?u=p.isub(this.m):p.cmpn(0)<0&&(u=p.iadd(this.m)),u._forceRed(this)},_.prototype.mul=function(f,l){if(f.isZero()||l.isZero())return new n(0)._forceRed(this);var v=f.mul(l),g=v.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),p=v.isub(g).iushrn(this.shift),u=p;return p.cmp(this.m)>=0?u=p.isub(this.m):p.cmpn(0)<0&&(u=p.iadd(this.m)),u._forceRed(this)},_.prototype.invm=function(f){var l=this.imod(f._invmp(this.m).mul(this.r2));return l._forceRed(this)}})(typeof zc>"u"||zc,Am)});var Zc=k((dC,Tm)=>{"use strict";m();var ua=Bm(),qk=qi(),Dk=Ne().Buffer;function Rm(e){var t=e.modulus.byteLength(),r;do r=new ua(qk(t));while(r.cmp(e.modulus)>=0||!r.umod(e.prime1)||!r.umod(e.prime2));return r}function Nk(e){var t=Rm(e),r=t.toRed(ua.mont(e.modulus)).redPow(new ua(e.publicExponent)).fromRed();return{blinder:r,unblinder:t.invm(e.modulus)}}function km(e,t){var r=Nk(t),i=t.modulus.byteLength(),n=new ua(e).mul(r.blinder).umod(t.modulus),a=n.toRed(ua.mont(t.prime1)),o=n.toRed(ua.mont(t.prime2)),s=t.coefficient,y=t.prime1,b=t.prime2,x=a.redPow(t.exponent1).fromRed(),B=o.redPow(t.exponent2).fromRed(),R=x.isub(B).imul(s).umod(y).imul(b);return B.iadd(R).imul(r.unblinder).umod(t.modulus).toArrayLike(Dk,"be",i)}km.getr=Rm;Tm.exports=km});var Dm=k((vC,qm)=>{m();var Pk=Lc(),Hc=qi(),Lk=bo(),Im=Uc(),Om=Fc(),Wc=ei(),Ck=jc(),Uk=Zc(),rr=Ne().Buffer;qm.exports=function(t,r,i){var n;t.padding?n=t.padding:i?n=1:n=4;var a=Pk(t),o;if(n===4)o=Fk(a,r);else if(n===1)o=jk(a,r,i);else if(n===3){if(o=new Wc(r),o.cmp(a.modulus)>=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return i?Uk(o,a):Ck(o,a)};function Fk(e,t){var r=e.modulus.byteLength(),i=t.length,n=Lk("sha1").update(rr.alloc(0)).digest(),a=n.length,o=2*a;if(i>r-o-2)throw new Error("message too long");var s=rr.alloc(r-i-o-2),y=r-a-1,b=Hc(a),x=Om(rr.concat([n,s,rr.alloc(1,1),t],y),Im(b,y)),B=Om(b,Im(x,a));return new Wc(rr.concat([rr.alloc(1),B,x],r))}function jk(e,t,r){var i=t.length,n=e.modulus.byteLength();if(i>n-11)throw new Error("message too long");var a;return r?a=rr.alloc(n-i-3,255):a=zk(n-i-3),new Wc(rr.concat([rr.from([0,r?1:2]),a,rr.alloc(1),t],n))}function zk(e){for(var t=rr.allocUnsafe(e),r=0,i=Hc(e*2),n=0,a;r<e;)n===i.length&&(i=Hc(e*2),n=0),a=i[n++],a&&(t[r++]=a);return t}});var Um=k((gC,Cm)=>{m();var Zk=Lc(),Nm=Uc(),Pm=Fc(),Lm=ei(),Hk=Zc(),Wk=bo(),Kk=jc(),To=Ne().Buffer;Cm.exports=function(t,r,i){var n;t.padding?n=t.padding:i?n=1:n=4;var a=Zk(t),o=a.modulus.byteLength();if(r.length>o||new Lm(r).cmp(a.modulus)>=0)throw new Error("decryption error");var s;i?s=Kk(new Lm(r),a):s=Hk(r,a);var y=To.alloc(o-s.length);if(s=To.concat([y,s],o),n===4)return Gk(a,s);if(n===1)return Vk(a,s,i);if(n===3)return s;throw new Error("unknown padding")};function Gk(e,t){var r=e.modulus.byteLength(),i=Wk("sha1").update(To.alloc(0)).digest(),n=i.length;if(t[0]!==0)throw new Error("decryption error");var a=t.slice(1,n+1),o=t.slice(n+1),s=Pm(a,Nm(o,n)),y=Pm(o,Nm(s,r-n-1));if($k(i,y.slice(0,n)))throw new Error("decryption error");for(var b=n;y[b]===0;)b++;if(y[b++]!==1)throw new Error("decryption error");return y.slice(b)}function Vk(e,t,r){for(var i=t.slice(0,2),n=2,a=0;t[n++]!==0;)if(n>=t.length){a++;break}var o=t.slice(2,n-1);if((i.toString("hex")!=="0002"&&!r||i.toString("hex")!=="0001"&&r)&&a++,o.length<8&&a++,a)throw new Error("decryption error");return t.slice(n)}function $k(e,t){e=To.from(e),t=To.from(t);var r=0,i=e.length;e.length!==t.length&&(r++,i=Math.min(e.length,t.length));for(var n=-1;++n<i;)r+=e[n]^t[n];return r}});var Fm=k(an=>{m();an.publicEncrypt=Dm();an.privateDecrypt=Um();an.privateEncrypt=function(t,r){return an.publicEncrypt(t,r,!0)};an.publicDecrypt=function(t,r){return an.privateDecrypt(t,r,!0)}});var Ym=k(Io=>{"use strict";m();function jm(){throw new Error(`secure random number generation not supported by this browser
15
15
  use chrome, FireFox or Internet Explorer 11`)}var Zm=Ne(),zm=qi(),Hm=Zm.Buffer,Wm=Zm.kMaxLength,Kc=globalThis.crypto||globalThis.msCrypto,Km=Math.pow(2,32)-1;function Gm(e,t){if(typeof e!="number"||e!==e)throw new TypeError("offset must be a number");if(e>Km||e<0)throw new TypeError("offset must be a uint32");if(e>Wm||e>t)throw new RangeError("offset out of range")}function Vm(e,t,r){if(typeof e!="number"||e!==e)throw new TypeError("size must be a number");if(e>Km||e<0)throw new TypeError("size must be a uint32");if(e+t>r||e>Wm)throw new RangeError("buffer too small")}Kc&&Kc.getRandomValues||!M.default.browser?(Io.randomFill=Yk,Io.randomFillSync=Jk):(Io.randomFill=jm,Io.randomFillSync=jm);function Yk(e,t,r,i){if(!Hm.isBuffer(e)&&!(e instanceof globalThis.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof t=="function")i=t,t=0,r=e.length;else if(typeof r=="function")i=r,r=e.length-t;else if(typeof i!="function")throw new TypeError('"cb" argument must be a function');return Gm(t,e.length),Vm(r,t,e.length),$m(e,t,r,i)}function $m(e,t,r,i){if(M.default.browser){var n=e.buffer,a=new Uint8Array(n,t,r);if(Kc.getRandomValues(a),i){M.default.nextTick(function(){i(null,e)});return}return e}if(i){zm(r,function(s,y){if(s)return i(s);y.copy(e,t),i(null,e)});return}var o=zm(r);return o.copy(e,t),e}function Jk(e,t,r){if(typeof t>"u"&&(t=0),!Hm.isBuffer(e)&&!(e instanceof globalThis.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return Gm(t,e.length),r===void 0&&(r=e.length-t),Vm(r,t,e.length),$m(e,t,r)}});var $s=k(Pe=>{"use strict";m();Pe.randomBytes=Pe.rng=Pe.pseudoRandomBytes=Pe.prng=qi();Pe.createHash=Pe.Hash=bo();Pe.createHmac=Pe.Hmac=Kg();var Xk=qs(),Qk=Object.keys(Xk),eT=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(Qk);Pe.getHashes=function(){return eT};var Jm=Kh();Pe.pbkdf2=Jm.pbkdf2;Pe.pbkdf2Sync=Jm.pbkdf2Sync;var br=g_();Pe.Cipher=br.Cipher;Pe.createCipher=br.createCipher;Pe.Cipheriv=br.Cipheriv;Pe.createCipheriv=br.createCipheriv;Pe.Decipher=br.Decipher;Pe.createDecipher=br.createDecipher;Pe.Decipheriv=br.Decipheriv;Pe.createDecipheriv=br.createDecipheriv;Pe.getCiphers=br.getCiphers;Pe.listCiphers=br.listCiphers;var Oo=I_();Pe.DiffieHellmanGroup=Oo.DiffieHellmanGroup;Pe.createDiffieHellmanGroup=Oo.createDiffieHellmanGroup;Pe.getDiffieHellman=Oo.getDiffieHellman;Pe.createDiffieHellman=Oo.createDiffieHellman;Pe.DiffieHellman=Oo.DiffieHellman;var iu=qs();Pe.createSign=iu.createSign;Pe.Sign=iu.Sign;Pe.createVerify=iu.createVerify;Pe.Verify=iu.Verify;Pe.createECDH=qs();var nu=Fm();Pe.publicEncrypt=nu.publicEncrypt;Pe.privateEncrypt=nu.privateEncrypt;Pe.publicDecrypt=nu.publicDecrypt;Pe.privateDecrypt=nu.privateDecrypt;var Xm=Ym();Pe.randomFill=Xm.randomFill;Pe.randomFillSync=Xm.randomFillSync;Pe.createCredentials=function(){throw new Error(`sorry, createCredentials is not implemented yet
16
16
  we accept pull requests
17
- https://github.com/browserify/crypto-browserify`)};Pe.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}});var ew=k((MC,Qm)=>{"use strict";m();var qo=$s(),Do={ES256:"P-256",ES256K:"secp256k1"},tT=["ES256","ES256K"];function au(e){return e.toString("base64").replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function ou(e){for(e=e.replace(/-/g,"+").replace(/_/g,"/");e.length%4;)e+="=";return I.Buffer.from(e,"base64")}async function rT(e){if(!e.issuerDid||!e.subjectId||!e.credentialSubject||!e.privateJwk)throw new Error("issuerDid, subjectId, credentialSubject, and privateJwk are required");var t=e.alg||"ES256";if(!Do[t])throw new Error("Unsupported algorithm: "+t);if(e.privateJwk.crv&&e.privateJwk.crv!==Do[t])throw new Error("Key curve "+e.privateJwk.crv+" does not match alg "+t);var r=e.kid||e.privateJwk.kid,i=e.types||["VerifiableCredential"],n=e.expSeconds||365*24*60*60,a=Math.floor(Date.now()/1e3),o=new Date().toISOString(),s={"@context":["https://www.w3.org/2018/credentials/v1"],type:i,issuer:e.issuerDid,issuanceDate:o,credentialSubject:Object.assign({id:e.subjectId},e.credentialSubject)},y={iss:e.issuerDid,sub:e.subjectId,iat:a,exp:a+n,vc:s},_={alg:t,typ:"JWT",kid:r},x=au(I.Buffer.from(JSON.stringify(_))),B=au(I.Buffer.from(JSON.stringify(y))),R=x+"."+B,T=qo.createPrivateKey({key:e.privateJwk,format:"jwk"}),O=qo.sign("sha256",I.Buffer.from(R),{key:T,dsaEncoding:"ieee-p1363"}),D=au(O),U=R+"."+D;return{jwt:U}}async function iT(e,t){t=t||{};try{if(typeof e!="string")return{valid:!1,error:"Invalid JWT format"};var r=e.split(".");if(r.length!==3)return{valid:!1,error:"Invalid JWT format"};var i=r[0],n=r[1],a=r[2],o=JSON.parse(ou(i).toString()),s=JSON.parse(ou(n).toString()),y=ou(a),_=t.allowedAlgs||tT;if(!o.alg||_.indexOf(o.alg)===-1||!Do[o.alg])return{valid:!1,error:"Algorithm not allowed: "+o.alg,header:o,payload:s};var x=Math.floor(Date.now()/1e3),B=t.clockToleranceSec||60;if(t.requireExpiration&&!s.exp)return{valid:!1,error:"JWT missing required exp claim",header:o,payload:s};if(s.exp&&s.exp<x-B)return{valid:!1,error:"JWT expired",header:o,payload:s};if(s.nbf&&s.nbf>x+B)return{valid:!1,error:"JWT not yet valid",header:o,payload:s};if(t.expectedIssuerDid&&s.iss!==t.expectedIssuerDid)return{valid:!1,error:"Unexpected issuer",header:o,payload:s};var R;if(t.didResolver){var T=await t.didResolver(s.iss);if(!T||!T.jwks||!T.jwks.keys)return{valid:!1,error:"Failed to resolve issuer DID",header:o,payload:s};var O=T.jwks.keys.find(function(j){return j.kid===o.kid});if(!O)return{valid:!1,error:"Key not found in JWKS",header:o,payload:s};R=O}else return{valid:!1,error:"DID resolver required for verification",header:o,payload:s};if(R.crv&&R.crv!==Do[o.alg])return{valid:!1,error:"Key curve does not match algorithm",header:o,payload:s};var D=i+"."+n,U=qo.createPublicKey({key:R,format:"jwk"}),N=qo.verify("sha256",I.Buffer.from(D),{key:U,dsaEncoding:"ieee-p1363"},y);if(!N&&t.allowLegacyDER)try{N=qo.verify("sha256",I.Buffer.from(D),{key:U,dsaEncoding:"der"},y)}catch{N=!1}return N?{valid:!0,header:o,payload:s}:{valid:!1,error:"Invalid signature",header:o,payload:s}}catch(j){return{valid:!1,error:j.message||"Verification failed"}}}Qm.exports={issueVcJwt:rT,verifyVcJwt:iT,base64UrlEncode:au,base64UrlDecode:ou,ALG_TO_CRV:Do}});var $c=k((BC,nw)=>{"use strict";m();function ri(e){"@babel/helpers - typeof";return ri=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ri(e)}function tw(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,aT(i.key),i)}}function nT(e,t,r){return t&&tw(e.prototype,t),r&&tw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function aT(e){var t=oT(e,"string");return ri(t)==="symbol"?t:String(t)}function oT(e,t){if(ri(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||"default");if(ri(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sT(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vc(e,t)}function Vc(e,t){return Vc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},Vc(e,t)}function uT(e){var t=cT();return function(){var i=fu(e),n;if(t){var a=fu(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return lT(this,n)}}function lT(e,t){if(t&&(ri(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hT(e)}function hT(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cT(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function fu(e){return fu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},fu(e)}var iw={},la,Gc;function No(e,t,r){r||(r=Error);function i(a,o,s){return typeof t=="string"?t:t(a,o,s)}var n=(function(a){sT(s,a);var o=uT(s);function s(y,_,x){var B;return fT(this,s),B=o.call(this,i(y,_,x)),B.code=e,B}return nT(s)})(r);iw[e]=n}function rw(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(i){return String(i)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function dT(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function pT(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function vT(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}No("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError);No("ERR_INVALID_ARG_TYPE",function(e,t,r){la===void 0&&(la=Po()),la(typeof e=="string","'name' must be a string");var i;typeof t=="string"&&dT(t,"not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";var n;if(pT(e," argument"))n="The ".concat(e," ").concat(i," ").concat(rw(t,"type"));else{var a=vT(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(a," ").concat(i," ").concat(rw(t,"type"))}return n+=". Received type ".concat(ri(r)),n},TypeError);No("ERR_INVALID_ARG_VALUE",function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";Gc===void 0&&(Gc=Gt());var i=Gc.inspect(t);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(i)},TypeError,RangeError);No("ERR_INVALID_RETURN_VALUE",function(e,t,r){var i;return r&&r.constructor&&r.constructor.name?i="instance of ".concat(r.constructor.name):i="type ".concat(ri(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(i,".")},TypeError);No("ERR_MISSING_ARGS",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];la===void 0&&(la=Po()),la(t.length>0,"At least one arg needs to be specified");var i="The ",n=t.length;switch(t=t.map(function(a){return'"'.concat(a,'"')}),n){case 1:i+="".concat(t[0]," argument");break;case 2:i+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:i+=t.slice(0,n-1).join(", "),i+=", and ".concat(t[n-1]," arguments");break}return"".concat(i," must be specified")},TypeError);nw.exports.codes=iw});var pw=k((kC,dw)=>{"use strict";m();function aw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function ow(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?aw(Object(r),!0).forEach(function(i){yT(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aw(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function yT(e,t,r){return t=lw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fw(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,lw(i.key),i)}}function bT(e,t,r){return t&&fw(e.prototype,t),r&&fw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function lw(e){var t=_T(e,"string");return Mt(t)==="symbol"?t:String(t)}function _T(e,t){if(Mt(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||"default");if(Mt(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mT(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fo(e,t)}function wT(e){var t=cw();return function(){var i=jo(e),n;if(t){var a=jo(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return hw(this,n)}}function hw(e,t){if(t&&(Mt(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Yc(e)}function Yc(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Jc(e){var t=typeof Map=="function"?new Map:void 0;return Jc=function(i){if(i===null||!xT(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(i))return t.get(i);t.set(i,n)}function n(){return su(i,arguments,jo(this).constructor)}return n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Fo(n,i)},Jc(e)}function su(e,t,r){return cw()?su=Reflect.construct.bind():su=function(n,a,o){var s=[null];s.push.apply(s,a);var y=Function.bind.apply(n,s),_=new y;return o&&Fo(_,o.prototype),_},su.apply(null,arguments)}function cw(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function xT(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Fo(e,t){return Fo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},Fo(e,t)}function jo(e){return jo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},jo(e)}function Mt(e){"@babel/helpers - typeof";return Mt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mt(e)}var ET=Gt(),Xc=ET.inspect,ST=$c(),MT=ST.codes.ERR_INVALID_ARG_TYPE;function sw(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function AT(e,t){if(t=Math.floor(t),e.length==0||t==0)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+=e.substring(0,r-e.length),e}var ir="",Lo="",Co="",lt="",on={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},BT=10;function uw(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach(function(i){r[i]=e[i]}),Object.defineProperty(r,"message",{value:e.message}),r}function Uo(e){return Xc(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function RT(e,t,r){var i="",n="",a=0,o="",s=!1,y=Uo(e),_=y.split(`
17
+ https://github.com/browserify/crypto-browserify`)};Pe.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}});var ew=k((MC,Qm)=>{"use strict";m();var qo=$s(),Do={ES256:"P-256",ES256K:"secp256k1"},tT=["ES256","ES256K"];function au(e){return e.toString("base64").replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function ou(e){for(e=e.replace(/-/g,"+").replace(/_/g,"/");e.length%4;)e+="=";return I.Buffer.from(e,"base64")}async function rT(e){if(!e.issuerDid||!e.subjectId||!e.credentialSubject||!e.privateJwk)throw new Error("issuerDid, subjectId, credentialSubject, and privateJwk are required");var t=e.alg||"ES256";if(!Do[t])throw new Error("Unsupported algorithm: "+t);if(e.privateJwk.crv&&e.privateJwk.crv!==Do[t])throw new Error("Key curve "+e.privateJwk.crv+" does not match alg "+t);var r=e.kid||e.privateJwk.kid,i=e.types||["VerifiableCredential"],n=e.expSeconds||365*24*60*60,a=Math.floor(Date.now()/1e3),o=new Date().toISOString(),s={"@context":["https://www.w3.org/2018/credentials/v1"],type:i,issuer:e.issuerDid,issuanceDate:o,credentialSubject:Object.assign({id:e.subjectId},e.credentialSubject)},y={iss:e.issuerDid,sub:e.subjectId,iat:a,exp:a+n,vc:s},b={alg:t,typ:"JWT",kid:r},x=au(I.Buffer.from(JSON.stringify(b))),B=au(I.Buffer.from(JSON.stringify(y))),R=x+"."+B,T=qo.createPrivateKey({key:e.privateJwk,format:"jwk"}),O=qo.sign("sha256",I.Buffer.from(R),{key:T,dsaEncoding:"ieee-p1363"}),D=au(O),U=R+"."+D;return{jwt:U}}async function iT(e,t){t=t||{};try{if(typeof e!="string")return{valid:!1,error:"Invalid JWT format"};var r=e.split(".");if(r.length!==3)return{valid:!1,error:"Invalid JWT format"};var i=r[0],n=r[1],a=r[2],o=JSON.parse(ou(i).toString()),s=JSON.parse(ou(n).toString()),y=ou(a),b=t.allowedAlgs||tT;if(!o.alg||b.indexOf(o.alg)===-1||!Do[o.alg])return{valid:!1,error:"Algorithm not allowed: "+o.alg,header:o,payload:s};var x=Math.floor(Date.now()/1e3),B=t.clockToleranceSec||60;if(t.requireExpiration&&!s.exp)return{valid:!1,error:"JWT missing required exp claim",header:o,payload:s};if(s.exp&&s.exp<x-B)return{valid:!1,error:"JWT expired",header:o,payload:s};if(s.nbf&&s.nbf>x+B)return{valid:!1,error:"JWT not yet valid",header:o,payload:s};if(t.expectedIssuerDid&&s.iss!==t.expectedIssuerDid)return{valid:!1,error:"Unexpected issuer",header:o,payload:s};var R;if(t.didResolver){var T=await t.didResolver(s.iss);if(!T||!T.jwks||!T.jwks.keys)return{valid:!1,error:"Failed to resolve issuer DID",header:o,payload:s};var O=T.jwks.keys.find(function(j){return j.kid===o.kid});if(!O)return{valid:!1,error:"Key not found in JWKS",header:o,payload:s};R=O}else return{valid:!1,error:"DID resolver required for verification",header:o,payload:s};if(R.crv&&R.crv!==Do[o.alg])return{valid:!1,error:"Key curve does not match algorithm",header:o,payload:s};var D=i+"."+n,U=qo.createPublicKey({key:R,format:"jwk"}),N=qo.verify("sha256",I.Buffer.from(D),{key:U,dsaEncoding:"ieee-p1363"},y);if(!N&&t.allowLegacyDER)try{N=qo.verify("sha256",I.Buffer.from(D),{key:U,dsaEncoding:"der"},y)}catch{N=!1}return N?{valid:!0,header:o,payload:s}:{valid:!1,error:"Invalid signature",header:o,payload:s}}catch(j){return{valid:!1,error:j.message||"Verification failed"}}}Qm.exports={issueVcJwt:rT,verifyVcJwt:iT,base64UrlEncode:au,base64UrlDecode:ou,ALG_TO_CRV:Do}});var $c=k((BC,nw)=>{"use strict";m();function ri(e){"@babel/helpers - typeof";return ri=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ri(e)}function tw(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,aT(i.key),i)}}function nT(e,t,r){return t&&tw(e.prototype,t),r&&tw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function aT(e){var t=oT(e,"string");return ri(t)==="symbol"?t:String(t)}function oT(e,t){if(ri(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||"default");if(ri(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sT(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vc(e,t)}function Vc(e,t){return Vc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},Vc(e,t)}function uT(e){var t=cT();return function(){var i=fu(e),n;if(t){var a=fu(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return lT(this,n)}}function lT(e,t){if(t&&(ri(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hT(e)}function hT(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cT(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function fu(e){return fu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},fu(e)}var iw={},la,Gc;function No(e,t,r){r||(r=Error);function i(a,o,s){return typeof t=="string"?t:t(a,o,s)}var n=(function(a){sT(s,a);var o=uT(s);function s(y,b,x){var B;return fT(this,s),B=o.call(this,i(y,b,x)),B.code=e,B}return nT(s)})(r);iw[e]=n}function rw(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(i){return String(i)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function dT(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function pT(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function vT(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}No("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError);No("ERR_INVALID_ARG_TYPE",function(e,t,r){la===void 0&&(la=Po()),la(typeof e=="string","'name' must be a string");var i;typeof t=="string"&&dT(t,"not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";var n;if(pT(e," argument"))n="The ".concat(e," ").concat(i," ").concat(rw(t,"type"));else{var a=vT(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(a," ").concat(i," ").concat(rw(t,"type"))}return n+=". Received type ".concat(ri(r)),n},TypeError);No("ERR_INVALID_ARG_VALUE",function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";Gc===void 0&&(Gc=Gt());var i=Gc.inspect(t);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(i)},TypeError,RangeError);No("ERR_INVALID_RETURN_VALUE",function(e,t,r){var i;return r&&r.constructor&&r.constructor.name?i="instance of ".concat(r.constructor.name):i="type ".concat(ri(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(i,".")},TypeError);No("ERR_MISSING_ARGS",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];la===void 0&&(la=Po()),la(t.length>0,"At least one arg needs to be specified");var i="The ",n=t.length;switch(t=t.map(function(a){return'"'.concat(a,'"')}),n){case 1:i+="".concat(t[0]," argument");break;case 2:i+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:i+=t.slice(0,n-1).join(", "),i+=", and ".concat(t[n-1]," arguments");break}return"".concat(i," must be specified")},TypeError);nw.exports.codes=iw});var pw=k((kC,dw)=>{"use strict";m();function aw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function ow(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?aw(Object(r),!0).forEach(function(i){yT(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aw(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function yT(e,t,r){return t=lw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fw(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,lw(i.key),i)}}function bT(e,t,r){return t&&fw(e.prototype,t),r&&fw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function lw(e){var t=_T(e,"string");return Mt(t)==="symbol"?t:String(t)}function _T(e,t){if(Mt(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||"default");if(Mt(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mT(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fo(e,t)}function wT(e){var t=cw();return function(){var i=jo(e),n;if(t){var a=jo(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return hw(this,n)}}function hw(e,t){if(t&&(Mt(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Yc(e)}function Yc(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Jc(e){var t=typeof Map=="function"?new Map:void 0;return Jc=function(i){if(i===null||!xT(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(i))return t.get(i);t.set(i,n)}function n(){return su(i,arguments,jo(this).constructor)}return n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Fo(n,i)},Jc(e)}function su(e,t,r){return cw()?su=Reflect.construct.bind():su=function(n,a,o){var s=[null];s.push.apply(s,a);var y=Function.bind.apply(n,s),b=new y;return o&&Fo(b,o.prototype),b},su.apply(null,arguments)}function cw(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function xT(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Fo(e,t){return Fo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},Fo(e,t)}function jo(e){return jo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},jo(e)}function Mt(e){"@babel/helpers - typeof";return Mt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mt(e)}var ET=Gt(),Xc=ET.inspect,ST=$c(),MT=ST.codes.ERR_INVALID_ARG_TYPE;function sw(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function AT(e,t){if(t=Math.floor(t),e.length==0||t==0)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+=e.substring(0,r-e.length),e}var ir="",Lo="",Co="",lt="",on={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},BT=10;function uw(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach(function(i){r[i]=e[i]}),Object.defineProperty(r,"message",{value:e.message}),r}function Uo(e){return Xc(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function RT(e,t,r){var i="",n="",a=0,o="",s=!1,y=Uo(e),b=y.split(`
18
18
  `),x=Uo(t).split(`
19
- `),B=0,R="";if(r==="strictEqual"&&Mt(e)==="object"&&Mt(t)==="object"&&e!==null&&t!==null&&(r="strictEqualObject"),_.length===1&&x.length===1&&_[0]!==x[0]){var T=_[0].length+x[0].length;if(T<=BT){if((Mt(e)!=="object"||e===null)&&(Mt(t)!=="object"||t===null)&&(e!==0||t!==0))return"".concat(on[r],`
19
+ `),B=0,R="";if(r==="strictEqual"&&Mt(e)==="object"&&Mt(t)==="object"&&e!==null&&t!==null&&(r="strictEqualObject"),b.length===1&&x.length===1&&b[0]!==x[0]){var T=b[0].length+x[0].length;if(T<=BT){if((Mt(e)!=="object"||e===null)&&(Mt(t)!=="object"||t===null)&&(e!==0||t!==0))return"".concat(on[r],`
20
20
 
21
- `)+"".concat(_[0]," !== ").concat(x[0],`
22
- `)}else if(r!=="strictEqualObject"){var O=M.default.stderr&&M.default.stderr.isTTY?M.default.stderr.columns:80;if(T<O){for(;_[0][B]===x[0][B];)B++;B>2&&(R=`
23
- `.concat(AT(" ",B),"^"),B=0)}}}for(var D=_[_.length-1],U=x[x.length-1];D===U&&(B++<2?o=`
24
- `.concat(D).concat(o):i=D,_.pop(),x.pop(),!(_.length===0||x.length===0));)D=_[_.length-1],U=x[x.length-1];var N=Math.max(_.length,x.length);if(N===0){var j=y.split(`
21
+ `)+"".concat(b[0]," !== ").concat(x[0],`
22
+ `)}else if(r!=="strictEqualObject"){var O=M.default.stderr&&M.default.stderr.isTTY?M.default.stderr.columns:80;if(T<O){for(;b[0][B]===x[0][B];)B++;B>2&&(R=`
23
+ `.concat(AT(" ",B),"^"),B=0)}}}for(var D=b[b.length-1],U=x[x.length-1];D===U&&(B++<2?o=`
24
+ `.concat(D).concat(o):i=D,b.pop(),x.pop(),!(b.length===0||x.length===0));)D=b[b.length-1],U=x[x.length-1];var N=Math.max(b.length,x.length);if(N===0){var j=y.split(`
25
25
  `);if(j.length>30)for(j[26]="".concat(ir,"...").concat(lt);j.length>27;)j.pop();return"".concat(on.notIdentical,`
26
26
 
27
27
  `).concat(j.join(`
@@ -29,30 +29,30 @@ https://github.com/browserify/crypto-browserify`)};Pe.constants={DH_CHECK_P_NOT_
29
29
  `)}B>3&&(o=`
30
30
  `.concat(ir,"...").concat(lt).concat(o),s=!0),i!==""&&(o=`
31
31
  `.concat(i).concat(o),i="");var H=0,W=on[r]+`
32
- `.concat(Lo,"+ actual").concat(lt," ").concat(Co,"- expected").concat(lt),Z=" ".concat(ir,"...").concat(lt," Lines skipped");for(B=0;B<N;B++){var K=B-a;if(_.length<B+1)K>1&&B>2&&(K>4?(n+=`
32
+ `.concat(Lo,"+ actual").concat(lt," ").concat(Co,"- expected").concat(lt),Z=" ".concat(ir,"...").concat(lt," Lines skipped");for(B=0;B<N;B++){var K=B-a;if(b.length<B+1)K>1&&B>2&&(K>4?(n+=`
33
33
  `.concat(ir,"...").concat(lt),s=!0):K>3&&(n+=`
34
34
  `.concat(x[B-2]),H++),n+=`
35
35
  `.concat(x[B-1]),H++),a=B,i+=`
36
36
  `.concat(Co,"-").concat(lt," ").concat(x[B]),H++;else if(x.length<B+1)K>1&&B>2&&(K>4?(n+=`
37
37
  `.concat(ir,"...").concat(lt),s=!0):K>3&&(n+=`
38
- `.concat(_[B-2]),H++),n+=`
39
- `.concat(_[B-1]),H++),a=B,n+=`
40
- `.concat(Lo,"+").concat(lt," ").concat(_[B]),H++;else{var J=x[B],z=_[B],X=z!==J&&(!sw(z,",")||z.slice(0,-1)!==J);X&&sw(J,",")&&J.slice(0,-1)===z&&(X=!1,z+=","),X?(K>1&&B>2&&(K>4?(n+=`
38
+ `.concat(b[B-2]),H++),n+=`
39
+ `.concat(b[B-1]),H++),a=B,n+=`
40
+ `.concat(Lo,"+").concat(lt," ").concat(b[B]),H++;else{var J=x[B],z=b[B],X=z!==J&&(!sw(z,",")||z.slice(0,-1)!==J);X&&sw(J,",")&&J.slice(0,-1)===z&&(X=!1,z+=","),X?(K>1&&B>2&&(K>4?(n+=`
41
41
  `.concat(ir,"...").concat(lt),s=!0):K>3&&(n+=`
42
- `.concat(_[B-2]),H++),n+=`
43
- `.concat(_[B-1]),H++),a=B,n+=`
42
+ `.concat(b[B-2]),H++),n+=`
43
+ `.concat(b[B-1]),H++),a=B,n+=`
44
44
  `.concat(Lo,"+").concat(lt," ").concat(z),i+=`
45
45
  `.concat(Co,"-").concat(lt," ").concat(J),H+=2):(n+=i,i="",(K===1||B===0)&&(n+=`
46
46
  `.concat(z),H++))}if(H>20&&B<N-2)return"".concat(W).concat(Z,`
47
47
  `).concat(n,`
48
48
  `).concat(ir,"...").concat(lt).concat(i,`
49
49
  `)+"".concat(ir,"...").concat(lt)}return"".concat(W).concat(s?Z:"",`
50
- `).concat(n).concat(i).concat(o).concat(R)}var kT=(function(e,t){mT(i,e);var r=wT(i);function i(n){var a;if(gT(this,i),Mt(n)!=="object"||n===null)throw new MT("options","Object",n);var o=n.message,s=n.operator,y=n.stackStartFn,_=n.actual,x=n.expected,B=Error.stackTraceLimit;if(Error.stackTraceLimit=0,o!=null)a=r.call(this,String(o));else if(M.default.stderr&&M.default.stderr.isTTY&&(M.default.stderr&&M.default.stderr.getColorDepth&&M.default.stderr.getColorDepth()!==1?(ir="\x1B[34m",Lo="\x1B[32m",lt="\x1B[39m",Co="\x1B[31m"):(ir="",Lo="",lt="",Co="")),Mt(_)==="object"&&_!==null&&Mt(x)==="object"&&x!==null&&"stack"in _&&_ instanceof Error&&"stack"in x&&x instanceof Error&&(_=uw(_),x=uw(x)),s==="deepStrictEqual"||s==="strictEqual")a=r.call(this,RT(_,x,s));else if(s==="notDeepStrictEqual"||s==="notStrictEqual"){var R=on[s],T=Uo(_).split(`
51
- `);if(s==="notStrictEqual"&&Mt(_)==="object"&&_!==null&&(R=on.notStrictEqualObject),T.length>30)for(T[26]="".concat(ir,"...").concat(lt);T.length>27;)T.pop();T.length===1?a=r.call(this,"".concat(R," ").concat(T[0])):a=r.call(this,"".concat(R,`
50
+ `).concat(n).concat(i).concat(o).concat(R)}var kT=(function(e,t){mT(i,e);var r=wT(i);function i(n){var a;if(gT(this,i),Mt(n)!=="object"||n===null)throw new MT("options","Object",n);var o=n.message,s=n.operator,y=n.stackStartFn,b=n.actual,x=n.expected,B=Error.stackTraceLimit;if(Error.stackTraceLimit=0,o!=null)a=r.call(this,String(o));else if(M.default.stderr&&M.default.stderr.isTTY&&(M.default.stderr&&M.default.stderr.getColorDepth&&M.default.stderr.getColorDepth()!==1?(ir="\x1B[34m",Lo="\x1B[32m",lt="\x1B[39m",Co="\x1B[31m"):(ir="",Lo="",lt="",Co="")),Mt(b)==="object"&&b!==null&&Mt(x)==="object"&&x!==null&&"stack"in b&&b instanceof Error&&"stack"in x&&x instanceof Error&&(b=uw(b),x=uw(x)),s==="deepStrictEqual"||s==="strictEqual")a=r.call(this,RT(b,x,s));else if(s==="notDeepStrictEqual"||s==="notStrictEqual"){var R=on[s],T=Uo(b).split(`
51
+ `);if(s==="notStrictEqual"&&Mt(b)==="object"&&b!==null&&(R=on.notStrictEqualObject),T.length>30)for(T[26]="".concat(ir,"...").concat(lt);T.length>27;)T.pop();T.length===1?a=r.call(this,"".concat(R," ").concat(T[0])):a=r.call(this,"".concat(R,`
52
52
 
53
53
  `).concat(T.join(`
54
54
  `),`
55
- `))}else{var O=Uo(_),D="",U=on[s];s==="notDeepEqual"||s==="notEqual"?(O="".concat(on[s],`
55
+ `))}else{var O=Uo(b),D="",U=on[s];s==="notDeepEqual"||s==="notEqual"?(O="".concat(on[s],`
56
56
 
57
57
  `).concat(O),O.length>1024&&(O="".concat(O.slice(0,1021),"..."))):(D="".concat(Uo(x)),O.length>512&&(O="".concat(O.slice(0,509),"...")),D.length>512&&(D="".concat(D.slice(0,509),"...")),s==="deepEqual"||s==="equal"?O="".concat(U,`
58
58
 
@@ -60,8 +60,8 @@ https://github.com/browserify/crypto-browserify`)};Pe.constants={DH_CHECK_P_NOT_
60
60
 
61
61
  should equal
62
62
 
63
- `):D=" ".concat(s," ").concat(D)),a=r.call(this,"".concat(O).concat(D))}return Error.stackTraceLimit=B,a.generatedMessage=!o,Object.defineProperty(Yc(a),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),a.code="ERR_ASSERTION",a.actual=_,a.expected=x,a.operator=s,Error.captureStackTrace&&Error.captureStackTrace(Yc(a),y),a.stack,a.name="AssertionError",hw(a)}return bT(i,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:t,value:function(a,o){return Xc(this,ow(ow({},o),{},{customInspect:!1,depth:0}))}}]),i})(Jc(Error),Xc.custom);dw.exports=kT});var Qc=k((IC,yw)=>{"use strict";m();var vw=Object.prototype.toString;yw.exports=function(t){var r=vw.call(t),i=r==="[object Arguments]";return i||(i=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&vw.call(t.callee)==="[object Function]"),i}});var Mw=k((qC,Sw)=>{"use strict";m();var Ew;Object.keys||(zo=Object.prototype.hasOwnProperty,e0=Object.prototype.toString,gw=Qc(),t0=Object.prototype.propertyIsEnumerable,bw=!t0.call({toString:null},"toString"),_w=t0.call(function(){},"prototype"),Zo=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],uu=function(e){var t=e.constructor;return t&&t.prototype===e},mw={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},ww=(function(){if(typeof window>"u")return!1;for(var e in window)try{if(!mw["$"+e]&&zo.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{uu(window[e])}catch{return!0}}catch{return!0}return!1})(),xw=function(e){if(typeof window>"u"||!ww)return uu(e);try{return uu(e)}catch{return!1}},Ew=function(t){var r=t!==null&&typeof t=="object",i=e0.call(t)==="[object Function]",n=gw(t),a=r&&e0.call(t)==="[object String]",o=[];if(!r&&!i&&!n)throw new TypeError("Object.keys called on a non-object");var s=_w&&i;if(a&&t.length>0&&!zo.call(t,0))for(var y=0;y<t.length;++y)o.push(String(y));if(n&&t.length>0)for(var _=0;_<t.length;++_)o.push(String(_));else for(var x in t)!(s&&x==="prototype")&&zo.call(t,x)&&o.push(String(x));if(bw)for(var B=xw(t),R=0;R<Zo.length;++R)!(B&&Zo[R]==="constructor")&&zo.call(t,Zo[R])&&o.push(Zo[R]);return o});var zo,e0,gw,t0,bw,_w,Zo,uu,mw,ww,xw;Sw.exports=Ew});var r0=k((NC,Rw)=>{"use strict";m();var TT=Array.prototype.slice,IT=Qc(),Aw=Object.keys,lu=Aw?function(t){return Aw(t)}:Mw(),Bw=Object.keys;lu.shim=function(){if(Object.keys){var t=(function(){var r=Object.keys(arguments);return r&&r.length===arguments.length})(1,2);t||(Object.keys=function(i){return IT(i)?Bw(TT.call(i)):Bw(i)})}else Object.keys=lu;return Object.keys||lu};Rw.exports=lu});var qw=k((LC,Ow)=>{"use strict";m();var OT=r0(),Tw=gf()(),Iw=Hr(),hu=bf(),qT=Iw("Array.prototype.push"),kw=Iw("Object.prototype.propertyIsEnumerable"),DT=Tw?hu.getOwnPropertySymbols:null;Ow.exports=function(t,r){if(t==null)throw new TypeError("target must be an object");var i=hu(t);if(arguments.length===1)return i;for(var n=1;n<arguments.length;++n){var a=hu(arguments[n]),o=OT(a),s=Tw&&(hu.getOwnPropertySymbols||DT);if(s)for(var y=s(a),_=0;_<y.length;++_){var x=y[_];kw(a,x)&&qT(o,x)}for(var B=0;B<o.length;++B){var R=o[B];if(kw(a,R)){var T=a[R];i[R]=T}}}return i}});var Nw=k((UC,Dw)=>{"use strict";m();var i0=qw(),NT=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),r={},i=0;i<t.length;++i)r[t[i]]=t[i];var n=Object.assign({},r),a="";for(var o in n)a+=o;return e!==a},PT=function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch{return e[1]==="y"}return!1};Dw.exports=function(){return!Object.assign||NT()||PT()?i0:Object.assign}});var n0=k((jC,Lw)=>{"use strict";m();var Pw=function(e){return e!==e};Lw.exports=function(t,r){return t===0&&r===0?1/t===1/r:!!(t===r||Pw(t)&&Pw(r))}});var cu=k((ZC,Cw)=>{"use strict";m();var LT=n0();Cw.exports=function(){return typeof Object.is=="function"?Object.is:LT}});var zw=k((WC,jw)=>{"use strict";m();var Uw=Bf(),Fw=ja(),CT=Fw(Uw("String.prototype.indexOf"));jw.exports=function(t,r){var i=Uw(t,!!r);return typeof i=="function"&&CT(t,".prototype.")>-1?Fw(i):i}});var Ho=k((GC,Kw)=>{"use strict";m();var UT=r0(),FT=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",jT=Object.prototype.toString,zT=Array.prototype.concat,Zw=Bl(),ZT=function(e){return typeof e=="function"&&jT.call(e)==="[object Function]"},Hw=kl()(),HT=function(e,t,r,i){if(t in e){if(i===!0){if(e[t]===r)return}else if(!ZT(i)||!i())return}Hw?Zw(e,t,r,!0):Zw(e,t,r)},Ww=function(e,t){var r=arguments.length>2?arguments[2]:{},i=UT(t);FT&&(i=zT.call(i,Object.getOwnPropertySymbols(t)));for(var n=0;n<i.length;n+=1)HT(e,i[n],t[i[n]],r[i[n]])};Ww.supportsDescriptors=!!Hw;Kw.exports=Ww});var Vw=k(($C,Gw)=>{"use strict";m();var WT=cu(),KT=Ho();Gw.exports=function(){var t=WT();return KT(Object,{is:t},{is:function(){return Object.is!==t}}),t}});var Xw=k((JC,Jw)=>{"use strict";m();var GT=Ho(),VT=ja(),$T=n0(),$w=cu(),YT=Vw(),Yw=VT($w(),Object);GT(Yw,{getPolyfill:$w,implementation:$T,shim:YT});Jw.exports=Yw});var a0=k((QC,Qw)=>{"use strict";m();Qw.exports=function(t){return t!==t}});var o0=k((tU,e2)=>{"use strict";m();var JT=a0();e2.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:JT}});var r2=k((iU,t2)=>{"use strict";m();var XT=Ho(),QT=o0();t2.exports=function(){var t=QT();return XT(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}});var o2=k((aU,a2)=>{"use strict";m();var e7=ja(),t7=Ho(),r7=a0(),i2=o0(),i7=r2(),n2=e7(i2(),Number);t7(n2,{getPolyfill:i2,implementation:r7,shim:i7});a2.exports=n2});var A2=k((fU,M2)=>{"use strict";m();function f2(e,t){return f7(e)||o7(e,t)||a7(e,t)||n7()}function n7(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
64
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a7(e,t){if(e){if(typeof e=="string")return s2(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s2(e,t)}}function s2(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}function o7(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,n,a,o,s=[],y=!0,_=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;y=!1}else for(;!(y=(i=a.call(r)).done)&&(s.push(i.value),s.length!==t);y=!0);}catch(x){_=!0,n=x}finally{try{if(!y&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(_)throw n}}return s}}function f7(e){if(Array.isArray(e))return e}function Ft(e){"@babel/helpers - typeof";return Ft=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ft(e)}var s7=/a/g.flags!==void 0,_u=function(t){var r=[];return t.forEach(function(i){return r.push(i)}),r},u2=function(t){var r=[];return t.forEach(function(i,n){return r.push([n,i])}),r},m2=Object.is?Object.is:Xw(),gu=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},f0=Number.isNaN?Number.isNaN:o2();function u0(e){return e.call.bind(e)}var Ko=u0(Object.prototype.hasOwnProperty),bu=u0(Object.prototype.propertyIsEnumerable),l2=u0(Object.prototype.toString),_t=Gt().types,u7=_t.isAnyArrayBuffer,l7=_t.isArrayBufferView,h2=_t.isDate,du=_t.isMap,c2=_t.isRegExp,pu=_t.isSet,h7=_t.isNativeError,c7=_t.isBoxedPrimitive,d2=_t.isNumberObject,p2=_t.isStringObject,v2=_t.isBooleanObject,y2=_t.isBigIntObject,d7=_t.isSymbolObject,p7=_t.isFloat32Array,v7=_t.isFloat64Array;function y7(e){if(e.length===0||e.length>10)return!0;for(var t=0;t<e.length;t++){var r=e.charCodeAt(t);if(r<48||r>57)return!0}return e.length===10&&e>=Math.pow(2,32)}function vu(e){return Object.keys(e).filter(y7).concat(gu(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function w2(e,t){if(e===t)return 0;for(var r=e.length,i=t.length,n=0,a=Math.min(r,i);n<a;++n)if(e[n]!==t[n]){r=e[n],i=t[n];break}return r<i?-1:i<r?1:0}var yu=void 0,g7=!0,b7=!1,s0=0,l0=1,x2=2,E2=3;function _7(e,t){return s7?e.source===t.source&&e.flags===t.flags:RegExp.prototype.toString.call(e)===RegExp.prototype.toString.call(t)}function m7(e,t){if(e.byteLength!==t.byteLength)return!1;for(var r=0;r<e.byteLength;r++)if(e[r]!==t[r])return!1;return!0}function w7(e,t){return e.byteLength!==t.byteLength?!1:w2(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))===0}function x7(e,t){return e.byteLength===t.byteLength&&w2(new Uint8Array(e),new Uint8Array(t))===0}function E7(e,t){return d2(e)?d2(t)&&m2(Number.prototype.valueOf.call(e),Number.prototype.valueOf.call(t)):p2(e)?p2(t)&&String.prototype.valueOf.call(e)===String.prototype.valueOf.call(t):v2(e)?v2(t)&&Boolean.prototype.valueOf.call(e)===Boolean.prototype.valueOf.call(t):y2(e)?y2(t)&&BigInt.prototype.valueOf.call(e)===BigInt.prototype.valueOf.call(t):d7(t)&&Symbol.prototype.valueOf.call(e)===Symbol.prototype.valueOf.call(t)}function jt(e,t,r,i){if(e===t)return e!==0?!0:r?m2(e,t):!0;if(r){if(Ft(e)!=="object")return typeof e=="number"&&f0(e)&&f0(t);if(Ft(t)!=="object"||e===null||t===null||Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1}else{if(e===null||Ft(e)!=="object")return t===null||Ft(t)!=="object"?e==t:!1;if(t===null||Ft(t)!=="object")return!1}var n=l2(e),a=l2(t);if(n!==a)return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var o=vu(e,yu),s=vu(t,yu);return o.length!==s.length?!1:Wo(e,t,r,i,l0,o)}if(n==="[object Object]"&&(!du(e)&&du(t)||!pu(e)&&pu(t)))return!1;if(h2(e)){if(!h2(t)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(t))return!1}else if(c2(e)){if(!c2(t)||!_7(e,t))return!1}else if(h7(e)||e instanceof Error){if(e.message!==t.message||e.name!==t.name)return!1}else if(l7(e)){if(!r&&(p7(e)||v7(e))){if(!m7(e,t))return!1}else if(!w7(e,t))return!1;var y=vu(e,yu),_=vu(t,yu);return y.length!==_.length?!1:Wo(e,t,r,i,s0,y)}else{if(pu(e))return!pu(t)||e.size!==t.size?!1:Wo(e,t,r,i,x2);if(du(e))return!du(t)||e.size!==t.size?!1:Wo(e,t,r,i,E2);if(u7(e)){if(!x7(e,t))return!1}else if(c7(e)&&!E7(e,t))return!1}return Wo(e,t,r,i,s0)}function g2(e,t){return t.filter(function(r){return bu(e,r)})}function Wo(e,t,r,i,n,a){if(arguments.length===5){a=Object.keys(e);var o=Object.keys(t);if(a.length!==o.length)return!1}for(var s=0;s<a.length;s++)if(!Ko(t,a[s]))return!1;if(r&&arguments.length===5){var y=gu(e);if(y.length!==0){var _=0;for(s=0;s<y.length;s++){var x=y[s];if(bu(e,x)){if(!bu(t,x))return!1;a.push(x),_++}else if(bu(t,x))return!1}var B=gu(t);if(y.length!==B.length&&g2(t,B).length!==_)return!1}else{var R=gu(t);if(R.length!==0&&g2(t,R).length!==0)return!1}}if(a.length===0&&(n===s0||n===l0&&e.length===0||e.size===0))return!0;if(i===void 0)i={val1:new Map,val2:new Map,position:0};else{var T=i.val1.get(e);if(T!==void 0){var O=i.val2.get(t);if(O!==void 0)return T===O}i.position++}i.val1.set(e,i.position),i.val2.set(t,i.position);var D=R7(e,t,r,a,i,n);return i.val1.delete(e),i.val2.delete(t),D}function b2(e,t,r,i){for(var n=_u(e),a=0;a<n.length;a++){var o=n[a];if(jt(t,o,r,i))return e.delete(o),!0}return!1}function S2(e){switch(Ft(e)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":e=+e;case"number":if(f0(e))return!1}return!0}function S7(e,t,r){var i=S2(r);return i??(t.has(i)&&!e.has(i))}function M7(e,t,r,i,n){var a=S2(r);if(a!=null)return a;var o=t.get(a);return o===void 0&&!t.has(a)||!jt(i,o,!1,n)?!1:!e.has(a)&&jt(i,o,!1,n)}function A7(e,t,r,i){for(var n=null,a=_u(e),o=0;o<a.length;o++){var s=a[o];if(Ft(s)==="object"&&s!==null)n===null&&(n=new Set),n.add(s);else if(!t.has(s)){if(r||!S7(e,t,s))return!1;n===null&&(n=new Set),n.add(s)}}if(n!==null){for(var y=_u(t),_=0;_<y.length;_++){var x=y[_];if(Ft(x)==="object"&&x!==null){if(!b2(n,x,r,i))return!1}else if(!r&&!e.has(x)&&!b2(n,x,r,i))return!1}return n.size===0}return!0}function _2(e,t,r,i,n,a){for(var o=_u(e),s=0;s<o.length;s++){var y=o[s];if(jt(r,y,n,a)&&jt(i,t.get(y),n,a))return e.delete(y),!0}return!1}function B7(e,t,r,i){for(var n=null,a=u2(e),o=0;o<a.length;o++){var s=f2(a[o],2),y=s[0],_=s[1];if(Ft(y)==="object"&&y!==null)n===null&&(n=new Set),n.add(y);else{var x=t.get(y);if(x===void 0&&!t.has(y)||!jt(_,x,r,i)){if(r||!M7(e,t,y,_,i))return!1;n===null&&(n=new Set),n.add(y)}}}if(n!==null){for(var B=u2(t),R=0;R<B.length;R++){var T=f2(B[R],2),O=T[0],D=T[1];if(Ft(O)==="object"&&O!==null){if(!_2(n,e,O,D,r,i))return!1}else if(!r&&(!e.has(O)||!jt(e.get(O),D,!1,i))&&!_2(n,e,O,D,!1,i))return!1}return n.size===0}return!0}function R7(e,t,r,i,n,a){var o=0;if(a===x2){if(!A7(e,t,r,n))return!1}else if(a===E2){if(!B7(e,t,r,n))return!1}else if(a===l0)for(;o<e.length;o++)if(Ko(e,o)){if(!Ko(t,o)||!jt(e[o],t[o],r,n))return!1}else{if(Ko(t,o))return!1;for(var s=Object.keys(e);o<s.length;o++){var y=s[o];if(!Ko(t,y)||!jt(e[y],t[y],r,n))return!1}return s.length===Object.keys(t).length}for(o=0;o<i.length;o++){var _=i[o];if(!jt(e[_],t[_],r,n))return!1}return!0}function k7(e,t){return jt(e,t,b7)}function T7(e,t){return jt(e,t,g7)}M2.exports={isDeepEqual:k7,isDeepStrictEqual:T7}});var Po=k((uU,H2)=>{"use strict";m();function nr(e){"@babel/helpers - typeof";return nr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nr(e)}function B2(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,O7(i.key),i)}}function I7(e,t,r){return t&&B2(e.prototype,t),r&&B2(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function O7(e){var t=q7(e,"string");return nr(t)==="symbol"?t:String(t)}function q7(e,t){if(nr(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||"default");if(nr(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function D7(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var N7=$c(),Go=N7.codes,R2=Go.ERR_AMBIGUOUS_ARGUMENT,ha=Go.ERR_INVALID_ARG_TYPE,P7=Go.ERR_INVALID_ARG_VALUE,L7=Go.ERR_INVALID_RETURN_VALUE,ni=Go.ERR_MISSING_ARGS,ai=pw(),C7=Gt(),mu=C7.inspect,O2=Gt().types,U7=O2.isPromise,wu=O2.isRegExp,F7=Nw()(),q2=cu()(),xu=zw()("RegExp.prototype.test"),ii,Eu;function Vo(){var e=A2();ii=e.isDeepEqual,Eu=e.isDeepStrictEqual}var k2=!1,Ge=H2.exports=h0,Su={};function ar(e){throw e.message instanceof Error?e.message:new ai(e)}function D2(e,t,r,i,n){var a=arguments.length,o;if(a===0)o="Failed";else if(a===1)r=e,e=void 0;else{if(k2===!1){k2=!0;var s=M.default.emitWarning?M.default.emitWarning:console.warn.bind(console);s("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}a===2&&(i="!=")}if(r instanceof Error)throw r;var y={actual:e,expected:t,operator:i===void 0?"fail":i,stackStartFn:n||D2};r!==void 0&&(y.message=r);var _=new ai(y);throw o&&(_.message=o,_.generatedMessage=!0),_}Ge.fail=D2;Ge.AssertionError=ai;function N2(e,t,r,i){if(!r){var n=!1;if(t===0)n=!0,i="No value argument passed to `assert.ok()`";else if(i instanceof Error)throw i;var a=new ai({actual:r,expected:!0,message:i,operator:"==",stackStartFn:e});throw a.generatedMessage=n,a}}function h0(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];N2.apply(void 0,[h0,t.length].concat(t))}Ge.ok=h0;Ge.equal=function e(t,r,i){if(arguments.length<2)throw new ni("actual","expected");t!=r&&ar({actual:t,expected:r,message:i,operator:"==",stackStartFn:e})};Ge.notEqual=function e(t,r,i){if(arguments.length<2)throw new ni("actual","expected");t==r&&ar({actual:t,expected:r,message:i,operator:"!=",stackStartFn:e})};Ge.deepEqual=function e(t,r,i){if(arguments.length<2)throw new ni("actual","expected");ii===void 0&&Vo(),ii(t,r)||ar({actual:t,expected:r,message:i,operator:"deepEqual",stackStartFn:e})};Ge.notDeepEqual=function e(t,r,i){if(arguments.length<2)throw new ni("actual","expected");ii===void 0&&Vo(),ii(t,r)&&ar({actual:t,expected:r,message:i,operator:"notDeepEqual",stackStartFn:e})};Ge.deepStrictEqual=function e(t,r,i){if(arguments.length<2)throw new ni("actual","expected");ii===void 0&&Vo(),Eu(t,r)||ar({actual:t,expected:r,message:i,operator:"deepStrictEqual",stackStartFn:e})};Ge.notDeepStrictEqual=P2;function P2(e,t,r){if(arguments.length<2)throw new ni("actual","expected");ii===void 0&&Vo(),Eu(e,t)&&ar({actual:e,expected:t,message:r,operator:"notDeepStrictEqual",stackStartFn:P2})}Ge.strictEqual=function e(t,r,i){if(arguments.length<2)throw new ni("actual","expected");q2(t,r)||ar({actual:t,expected:r,message:i,operator:"strictEqual",stackStartFn:e})};Ge.notStrictEqual=function e(t,r,i){if(arguments.length<2)throw new ni("actual","expected");q2(t,r)&&ar({actual:t,expected:r,message:i,operator:"notStrictEqual",stackStartFn:e})};var T2=I7(function e(t,r,i){var n=this;D7(this,e),r.forEach(function(a){a in t&&(i!==void 0&&typeof i[a]=="string"&&wu(t[a])&&xu(t[a],i[a])?n[a]=i[a]:n[a]=t[a])})});function j7(e,t,r,i,n,a){if(!(r in e)||!Eu(e[r],t[r])){if(!i){var o=new T2(e,n),s=new T2(t,n,e),y=new ai({actual:o,expected:s,operator:"deepStrictEqual",stackStartFn:a});throw y.actual=e,y.expected=t,y.operator=a.name,y}ar({actual:e,expected:t,message:i,operator:a.name,stackStartFn:a})}}function L2(e,t,r,i){if(typeof t!="function"){if(wu(t))return xu(t,e);if(arguments.length===2)throw new ha("expected",["Function","RegExp"],t);if(nr(e)!=="object"||e===null){var n=new ai({actual:e,expected:t,message:r,operator:"deepStrictEqual",stackStartFn:i});throw n.operator=i.name,n}var a=Object.keys(t);if(t instanceof Error)a.push("name","message");else if(a.length===0)throw new P7("error",t,"may not be an empty object");return ii===void 0&&Vo(),a.forEach(function(o){typeof e[o]=="string"&&wu(t[o])&&xu(t[o],e[o])||j7(e,t,o,r,a,i)}),!0}return t.prototype!==void 0&&e instanceof t?!0:Error.isPrototypeOf(t)?!1:t.call({},e)===!0}function C2(e){if(typeof e!="function")throw new ha("fn","Function",e);try{e()}catch(t){return t}return Su}function I2(e){return U7(e)||e!==null&&nr(e)==="object"&&typeof e.then=="function"&&typeof e.catch=="function"}function U2(e){return Promise.resolve().then(function(){var t;if(typeof e=="function"){if(t=e(),!I2(t))throw new L7("instance of Promise","promiseFn",t)}else if(I2(e))t=e;else throw new ha("promiseFn",["Function","Promise"],e);return Promise.resolve().then(function(){return t}).then(function(){return Su}).catch(function(r){return r})})}function F2(e,t,r,i){if(typeof r=="string"){if(arguments.length===4)throw new ha("error",["Object","Error","Function","RegExp"],r);if(nr(t)==="object"&&t!==null){if(t.message===r)throw new R2("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===r)throw new R2("error/message",'The error "'.concat(t,'" is identical to the message.'));i=r,r=void 0}else if(r!=null&&nr(r)!=="object"&&typeof r!="function")throw new ha("error",["Object","Error","Function","RegExp"],r);if(t===Su){var n="";r&&r.name&&(n+=" (".concat(r.name,")")),n+=i?": ".concat(i):".";var a=e.name==="rejects"?"rejection":"exception";ar({actual:void 0,expected:r,operator:e.name,message:"Missing expected ".concat(a).concat(n),stackStartFn:e})}if(r&&!L2(t,r,i,e))throw t}function j2(e,t,r,i){if(t!==Su){if(typeof r=="string"&&(i=r,r=void 0),!r||L2(t,r)){var n=i?": ".concat(i):".",a=e.name==="doesNotReject"?"rejection":"exception";ar({actual:t,expected:r,operator:e.name,message:"Got unwanted ".concat(a).concat(n,`
63
+ `):D=" ".concat(s," ").concat(D)),a=r.call(this,"".concat(O).concat(D))}return Error.stackTraceLimit=B,a.generatedMessage=!o,Object.defineProperty(Yc(a),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),a.code="ERR_ASSERTION",a.actual=b,a.expected=x,a.operator=s,Error.captureStackTrace&&Error.captureStackTrace(Yc(a),y),a.stack,a.name="AssertionError",hw(a)}return bT(i,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:t,value:function(a,o){return Xc(this,ow(ow({},o),{},{customInspect:!1,depth:0}))}}]),i})(Jc(Error),Xc.custom);dw.exports=kT});var Qc=k((IC,yw)=>{"use strict";m();var vw=Object.prototype.toString;yw.exports=function(t){var r=vw.call(t),i=r==="[object Arguments]";return i||(i=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&vw.call(t.callee)==="[object Function]"),i}});var Mw=k((qC,Sw)=>{"use strict";m();var Ew;Object.keys||(zo=Object.prototype.hasOwnProperty,e0=Object.prototype.toString,gw=Qc(),t0=Object.prototype.propertyIsEnumerable,bw=!t0.call({toString:null},"toString"),_w=t0.call(function(){},"prototype"),Zo=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],uu=function(e){var t=e.constructor;return t&&t.prototype===e},mw={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},ww=(function(){if(typeof window>"u")return!1;for(var e in window)try{if(!mw["$"+e]&&zo.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{uu(window[e])}catch{return!0}}catch{return!0}return!1})(),xw=function(e){if(typeof window>"u"||!ww)return uu(e);try{return uu(e)}catch{return!1}},Ew=function(t){var r=t!==null&&typeof t=="object",i=e0.call(t)==="[object Function]",n=gw(t),a=r&&e0.call(t)==="[object String]",o=[];if(!r&&!i&&!n)throw new TypeError("Object.keys called on a non-object");var s=_w&&i;if(a&&t.length>0&&!zo.call(t,0))for(var y=0;y<t.length;++y)o.push(String(y));if(n&&t.length>0)for(var b=0;b<t.length;++b)o.push(String(b));else for(var x in t)!(s&&x==="prototype")&&zo.call(t,x)&&o.push(String(x));if(bw)for(var B=xw(t),R=0;R<Zo.length;++R)!(B&&Zo[R]==="constructor")&&zo.call(t,Zo[R])&&o.push(Zo[R]);return o});var zo,e0,gw,t0,bw,_w,Zo,uu,mw,ww,xw;Sw.exports=Ew});var r0=k((NC,Rw)=>{"use strict";m();var TT=Array.prototype.slice,IT=Qc(),Aw=Object.keys,lu=Aw?function(t){return Aw(t)}:Mw(),Bw=Object.keys;lu.shim=function(){if(Object.keys){var t=(function(){var r=Object.keys(arguments);return r&&r.length===arguments.length})(1,2);t||(Object.keys=function(i){return IT(i)?Bw(TT.call(i)):Bw(i)})}else Object.keys=lu;return Object.keys||lu};Rw.exports=lu});var qw=k((LC,Ow)=>{"use strict";m();var OT=r0(),Tw=gf()(),Iw=Hr(),hu=bf(),qT=Iw("Array.prototype.push"),kw=Iw("Object.prototype.propertyIsEnumerable"),DT=Tw?hu.getOwnPropertySymbols:null;Ow.exports=function(t,r){if(t==null)throw new TypeError("target must be an object");var i=hu(t);if(arguments.length===1)return i;for(var n=1;n<arguments.length;++n){var a=hu(arguments[n]),o=OT(a),s=Tw&&(hu.getOwnPropertySymbols||DT);if(s)for(var y=s(a),b=0;b<y.length;++b){var x=y[b];kw(a,x)&&qT(o,x)}for(var B=0;B<o.length;++B){var R=o[B];if(kw(a,R)){var T=a[R];i[R]=T}}}return i}});var Nw=k((UC,Dw)=>{"use strict";m();var i0=qw(),NT=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),r={},i=0;i<t.length;++i)r[t[i]]=t[i];var n=Object.assign({},r),a="";for(var o in n)a+=o;return e!==a},PT=function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch{return e[1]==="y"}return!1};Dw.exports=function(){return!Object.assign||NT()||PT()?i0:Object.assign}});var n0=k((jC,Lw)=>{"use strict";m();var Pw=function(e){return e!==e};Lw.exports=function(t,r){return t===0&&r===0?1/t===1/r:!!(t===r||Pw(t)&&Pw(r))}});var cu=k((ZC,Cw)=>{"use strict";m();var LT=n0();Cw.exports=function(){return typeof Object.is=="function"?Object.is:LT}});var zw=k((WC,jw)=>{"use strict";m();var Uw=Bf(),Fw=ja(),CT=Fw(Uw("String.prototype.indexOf"));jw.exports=function(t,r){var i=Uw(t,!!r);return typeof i=="function"&&CT(t,".prototype.")>-1?Fw(i):i}});var Ho=k((GC,Kw)=>{"use strict";m();var UT=r0(),FT=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",jT=Object.prototype.toString,zT=Array.prototype.concat,Zw=Bl(),ZT=function(e){return typeof e=="function"&&jT.call(e)==="[object Function]"},Hw=kl()(),HT=function(e,t,r,i){if(t in e){if(i===!0){if(e[t]===r)return}else if(!ZT(i)||!i())return}Hw?Zw(e,t,r,!0):Zw(e,t,r)},Ww=function(e,t){var r=arguments.length>2?arguments[2]:{},i=UT(t);FT&&(i=zT.call(i,Object.getOwnPropertySymbols(t)));for(var n=0;n<i.length;n+=1)HT(e,i[n],t[i[n]],r[i[n]])};Ww.supportsDescriptors=!!Hw;Kw.exports=Ww});var Vw=k(($C,Gw)=>{"use strict";m();var WT=cu(),KT=Ho();Gw.exports=function(){var t=WT();return KT(Object,{is:t},{is:function(){return Object.is!==t}}),t}});var Xw=k((JC,Jw)=>{"use strict";m();var GT=Ho(),VT=ja(),$T=n0(),$w=cu(),YT=Vw(),Yw=VT($w(),Object);GT(Yw,{getPolyfill:$w,implementation:$T,shim:YT});Jw.exports=Yw});var a0=k((QC,Qw)=>{"use strict";m();Qw.exports=function(t){return t!==t}});var o0=k((tU,e2)=>{"use strict";m();var JT=a0();e2.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:JT}});var r2=k((iU,t2)=>{"use strict";m();var XT=Ho(),QT=o0();t2.exports=function(){var t=QT();return XT(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}});var o2=k((aU,a2)=>{"use strict";m();var e7=ja(),t7=Ho(),r7=a0(),i2=o0(),i7=r2(),n2=e7(i2(),Number);t7(n2,{getPolyfill:i2,implementation:r7,shim:i7});a2.exports=n2});var A2=k((fU,M2)=>{"use strict";m();function f2(e,t){return f7(e)||o7(e,t)||a7(e,t)||n7()}function n7(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
64
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a7(e,t){if(e){if(typeof e=="string")return s2(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s2(e,t)}}function s2(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}function o7(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,n,a,o,s=[],y=!0,b=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;y=!1}else for(;!(y=(i=a.call(r)).done)&&(s.push(i.value),s.length!==t);y=!0);}catch(x){b=!0,n=x}finally{try{if(!y&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(b)throw n}}return s}}function f7(e){if(Array.isArray(e))return e}function Ft(e){"@babel/helpers - typeof";return Ft=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ft(e)}var s7=/a/g.flags!==void 0,_u=function(t){var r=[];return t.forEach(function(i){return r.push(i)}),r},u2=function(t){var r=[];return t.forEach(function(i,n){return r.push([n,i])}),r},m2=Object.is?Object.is:Xw(),gu=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},f0=Number.isNaN?Number.isNaN:o2();function u0(e){return e.call.bind(e)}var Ko=u0(Object.prototype.hasOwnProperty),bu=u0(Object.prototype.propertyIsEnumerable),l2=u0(Object.prototype.toString),_t=Gt().types,u7=_t.isAnyArrayBuffer,l7=_t.isArrayBufferView,h2=_t.isDate,du=_t.isMap,c2=_t.isRegExp,pu=_t.isSet,h7=_t.isNativeError,c7=_t.isBoxedPrimitive,d2=_t.isNumberObject,p2=_t.isStringObject,v2=_t.isBooleanObject,y2=_t.isBigIntObject,d7=_t.isSymbolObject,p7=_t.isFloat32Array,v7=_t.isFloat64Array;function y7(e){if(e.length===0||e.length>10)return!0;for(var t=0;t<e.length;t++){var r=e.charCodeAt(t);if(r<48||r>57)return!0}return e.length===10&&e>=Math.pow(2,32)}function vu(e){return Object.keys(e).filter(y7).concat(gu(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function w2(e,t){if(e===t)return 0;for(var r=e.length,i=t.length,n=0,a=Math.min(r,i);n<a;++n)if(e[n]!==t[n]){r=e[n],i=t[n];break}return r<i?-1:i<r?1:0}var yu=void 0,g7=!0,b7=!1,s0=0,l0=1,x2=2,E2=3;function _7(e,t){return s7?e.source===t.source&&e.flags===t.flags:RegExp.prototype.toString.call(e)===RegExp.prototype.toString.call(t)}function m7(e,t){if(e.byteLength!==t.byteLength)return!1;for(var r=0;r<e.byteLength;r++)if(e[r]!==t[r])return!1;return!0}function w7(e,t){return e.byteLength!==t.byteLength?!1:w2(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))===0}function x7(e,t){return e.byteLength===t.byteLength&&w2(new Uint8Array(e),new Uint8Array(t))===0}function E7(e,t){return d2(e)?d2(t)&&m2(Number.prototype.valueOf.call(e),Number.prototype.valueOf.call(t)):p2(e)?p2(t)&&String.prototype.valueOf.call(e)===String.prototype.valueOf.call(t):v2(e)?v2(t)&&Boolean.prototype.valueOf.call(e)===Boolean.prototype.valueOf.call(t):y2(e)?y2(t)&&BigInt.prototype.valueOf.call(e)===BigInt.prototype.valueOf.call(t):d7(t)&&Symbol.prototype.valueOf.call(e)===Symbol.prototype.valueOf.call(t)}function jt(e,t,r,i){if(e===t)return e!==0?!0:r?m2(e,t):!0;if(r){if(Ft(e)!=="object")return typeof e=="number"&&f0(e)&&f0(t);if(Ft(t)!=="object"||e===null||t===null||Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1}else{if(e===null||Ft(e)!=="object")return t===null||Ft(t)!=="object"?e==t:!1;if(t===null||Ft(t)!=="object")return!1}var n=l2(e),a=l2(t);if(n!==a)return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var o=vu(e,yu),s=vu(t,yu);return o.length!==s.length?!1:Wo(e,t,r,i,l0,o)}if(n==="[object Object]"&&(!du(e)&&du(t)||!pu(e)&&pu(t)))return!1;if(h2(e)){if(!h2(t)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(t))return!1}else if(c2(e)){if(!c2(t)||!_7(e,t))return!1}else if(h7(e)||e instanceof Error){if(e.message!==t.message||e.name!==t.name)return!1}else if(l7(e)){if(!r&&(p7(e)||v7(e))){if(!m7(e,t))return!1}else if(!w7(e,t))return!1;var y=vu(e,yu),b=vu(t,yu);return y.length!==b.length?!1:Wo(e,t,r,i,s0,y)}else{if(pu(e))return!pu(t)||e.size!==t.size?!1:Wo(e,t,r,i,x2);if(du(e))return!du(t)||e.size!==t.size?!1:Wo(e,t,r,i,E2);if(u7(e)){if(!x7(e,t))return!1}else if(c7(e)&&!E7(e,t))return!1}return Wo(e,t,r,i,s0)}function g2(e,t){return t.filter(function(r){return bu(e,r)})}function Wo(e,t,r,i,n,a){if(arguments.length===5){a=Object.keys(e);var o=Object.keys(t);if(a.length!==o.length)return!1}for(var s=0;s<a.length;s++)if(!Ko(t,a[s]))return!1;if(r&&arguments.length===5){var y=gu(e);if(y.length!==0){var b=0;for(s=0;s<y.length;s++){var x=y[s];if(bu(e,x)){if(!bu(t,x))return!1;a.push(x),b++}else if(bu(t,x))return!1}var B=gu(t);if(y.length!==B.length&&g2(t,B).length!==b)return!1}else{var R=gu(t);if(R.length!==0&&g2(t,R).length!==0)return!1}}if(a.length===0&&(n===s0||n===l0&&e.length===0||e.size===0))return!0;if(i===void 0)i={val1:new Map,val2:new Map,position:0};else{var T=i.val1.get(e);if(T!==void 0){var O=i.val2.get(t);if(O!==void 0)return T===O}i.position++}i.val1.set(e,i.position),i.val2.set(t,i.position);var D=R7(e,t,r,a,i,n);return i.val1.delete(e),i.val2.delete(t),D}function b2(e,t,r,i){for(var n=_u(e),a=0;a<n.length;a++){var o=n[a];if(jt(t,o,r,i))return e.delete(o),!0}return!1}function S2(e){switch(Ft(e)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":e=+e;case"number":if(f0(e))return!1}return!0}function S7(e,t,r){var i=S2(r);return i??(t.has(i)&&!e.has(i))}function M7(e,t,r,i,n){var a=S2(r);if(a!=null)return a;var o=t.get(a);return o===void 0&&!t.has(a)||!jt(i,o,!1,n)?!1:!e.has(a)&&jt(i,o,!1,n)}function A7(e,t,r,i){for(var n=null,a=_u(e),o=0;o<a.length;o++){var s=a[o];if(Ft(s)==="object"&&s!==null)n===null&&(n=new Set),n.add(s);else if(!t.has(s)){if(r||!S7(e,t,s))return!1;n===null&&(n=new Set),n.add(s)}}if(n!==null){for(var y=_u(t),b=0;b<y.length;b++){var x=y[b];if(Ft(x)==="object"&&x!==null){if(!b2(n,x,r,i))return!1}else if(!r&&!e.has(x)&&!b2(n,x,r,i))return!1}return n.size===0}return!0}function _2(e,t,r,i,n,a){for(var o=_u(e),s=0;s<o.length;s++){var y=o[s];if(jt(r,y,n,a)&&jt(i,t.get(y),n,a))return e.delete(y),!0}return!1}function B7(e,t,r,i){for(var n=null,a=u2(e),o=0;o<a.length;o++){var s=f2(a[o],2),y=s[0],b=s[1];if(Ft(y)==="object"&&y!==null)n===null&&(n=new Set),n.add(y);else{var x=t.get(y);if(x===void 0&&!t.has(y)||!jt(b,x,r,i)){if(r||!M7(e,t,y,b,i))return!1;n===null&&(n=new Set),n.add(y)}}}if(n!==null){for(var B=u2(t),R=0;R<B.length;R++){var T=f2(B[R],2),O=T[0],D=T[1];if(Ft(O)==="object"&&O!==null){if(!_2(n,e,O,D,r,i))return!1}else if(!r&&(!e.has(O)||!jt(e.get(O),D,!1,i))&&!_2(n,e,O,D,!1,i))return!1}return n.size===0}return!0}function R7(e,t,r,i,n,a){var o=0;if(a===x2){if(!A7(e,t,r,n))return!1}else if(a===E2){if(!B7(e,t,r,n))return!1}else if(a===l0)for(;o<e.length;o++)if(Ko(e,o)){if(!Ko(t,o)||!jt(e[o],t[o],r,n))return!1}else{if(Ko(t,o))return!1;for(var s=Object.keys(e);o<s.length;o++){var y=s[o];if(!Ko(t,y)||!jt(e[y],t[y],r,n))return!1}return s.length===Object.keys(t).length}for(o=0;o<i.length;o++){var b=i[o];if(!jt(e[b],t[b],r,n))return!1}return!0}function k7(e,t){return jt(e,t,b7)}function T7(e,t){return jt(e,t,g7)}M2.exports={isDeepEqual:k7,isDeepStrictEqual:T7}});var Po=k((uU,H2)=>{"use strict";m();function nr(e){"@babel/helpers - typeof";return nr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nr(e)}function B2(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,O7(i.key),i)}}function I7(e,t,r){return t&&B2(e.prototype,t),r&&B2(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function O7(e){var t=q7(e,"string");return nr(t)==="symbol"?t:String(t)}function q7(e,t){if(nr(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||"default");if(nr(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function D7(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var N7=$c(),Go=N7.codes,R2=Go.ERR_AMBIGUOUS_ARGUMENT,ha=Go.ERR_INVALID_ARG_TYPE,P7=Go.ERR_INVALID_ARG_VALUE,L7=Go.ERR_INVALID_RETURN_VALUE,ni=Go.ERR_MISSING_ARGS,ai=pw(),C7=Gt(),mu=C7.inspect,O2=Gt().types,U7=O2.isPromise,wu=O2.isRegExp,F7=Nw()(),q2=cu()(),xu=zw()("RegExp.prototype.test"),ii,Eu;function Vo(){var e=A2();ii=e.isDeepEqual,Eu=e.isDeepStrictEqual}var k2=!1,Ge=H2.exports=h0,Su={};function ar(e){throw e.message instanceof Error?e.message:new ai(e)}function D2(e,t,r,i,n){var a=arguments.length,o;if(a===0)o="Failed";else if(a===1)r=e,e=void 0;else{if(k2===!1){k2=!0;var s=M.default.emitWarning?M.default.emitWarning:console.warn.bind(console);s("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}a===2&&(i="!=")}if(r instanceof Error)throw r;var y={actual:e,expected:t,operator:i===void 0?"fail":i,stackStartFn:n||D2};r!==void 0&&(y.message=r);var b=new ai(y);throw o&&(b.message=o,b.generatedMessage=!0),b}Ge.fail=D2;Ge.AssertionError=ai;function N2(e,t,r,i){if(!r){var n=!1;if(t===0)n=!0,i="No value argument passed to `assert.ok()`";else if(i instanceof Error)throw i;var a=new ai({actual:r,expected:!0,message:i,operator:"==",stackStartFn:e});throw a.generatedMessage=n,a}}function h0(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];N2.apply(void 0,[h0,t.length].concat(t))}Ge.ok=h0;Ge.equal=function e(t,r,i){if(arguments.length<2)throw new ni("actual","expected");t!=r&&ar({actual:t,expected:r,message:i,operator:"==",stackStartFn:e})};Ge.notEqual=function e(t,r,i){if(arguments.length<2)throw new ni("actual","expected");t==r&&ar({actual:t,expected:r,message:i,operator:"!=",stackStartFn:e})};Ge.deepEqual=function e(t,r,i){if(arguments.length<2)throw new ni("actual","expected");ii===void 0&&Vo(),ii(t,r)||ar({actual:t,expected:r,message:i,operator:"deepEqual",stackStartFn:e})};Ge.notDeepEqual=function e(t,r,i){if(arguments.length<2)throw new ni("actual","expected");ii===void 0&&Vo(),ii(t,r)&&ar({actual:t,expected:r,message:i,operator:"notDeepEqual",stackStartFn:e})};Ge.deepStrictEqual=function e(t,r,i){if(arguments.length<2)throw new ni("actual","expected");ii===void 0&&Vo(),Eu(t,r)||ar({actual:t,expected:r,message:i,operator:"deepStrictEqual",stackStartFn:e})};Ge.notDeepStrictEqual=P2;function P2(e,t,r){if(arguments.length<2)throw new ni("actual","expected");ii===void 0&&Vo(),Eu(e,t)&&ar({actual:e,expected:t,message:r,operator:"notDeepStrictEqual",stackStartFn:P2})}Ge.strictEqual=function e(t,r,i){if(arguments.length<2)throw new ni("actual","expected");q2(t,r)||ar({actual:t,expected:r,message:i,operator:"strictEqual",stackStartFn:e})};Ge.notStrictEqual=function e(t,r,i){if(arguments.length<2)throw new ni("actual","expected");q2(t,r)&&ar({actual:t,expected:r,message:i,operator:"notStrictEqual",stackStartFn:e})};var T2=I7(function e(t,r,i){var n=this;D7(this,e),r.forEach(function(a){a in t&&(i!==void 0&&typeof i[a]=="string"&&wu(t[a])&&xu(t[a],i[a])?n[a]=i[a]:n[a]=t[a])})});function j7(e,t,r,i,n,a){if(!(r in e)||!Eu(e[r],t[r])){if(!i){var o=new T2(e,n),s=new T2(t,n,e),y=new ai({actual:o,expected:s,operator:"deepStrictEqual",stackStartFn:a});throw y.actual=e,y.expected=t,y.operator=a.name,y}ar({actual:e,expected:t,message:i,operator:a.name,stackStartFn:a})}}function L2(e,t,r,i){if(typeof t!="function"){if(wu(t))return xu(t,e);if(arguments.length===2)throw new ha("expected",["Function","RegExp"],t);if(nr(e)!=="object"||e===null){var n=new ai({actual:e,expected:t,message:r,operator:"deepStrictEqual",stackStartFn:i});throw n.operator=i.name,n}var a=Object.keys(t);if(t instanceof Error)a.push("name","message");else if(a.length===0)throw new P7("error",t,"may not be an empty object");return ii===void 0&&Vo(),a.forEach(function(o){typeof e[o]=="string"&&wu(t[o])&&xu(t[o],e[o])||j7(e,t,o,r,a,i)}),!0}return t.prototype!==void 0&&e instanceof t?!0:Error.isPrototypeOf(t)?!1:t.call({},e)===!0}function C2(e){if(typeof e!="function")throw new ha("fn","Function",e);try{e()}catch(t){return t}return Su}function I2(e){return U7(e)||e!==null&&nr(e)==="object"&&typeof e.then=="function"&&typeof e.catch=="function"}function U2(e){return Promise.resolve().then(function(){var t;if(typeof e=="function"){if(t=e(),!I2(t))throw new L7("instance of Promise","promiseFn",t)}else if(I2(e))t=e;else throw new ha("promiseFn",["Function","Promise"],e);return Promise.resolve().then(function(){return t}).then(function(){return Su}).catch(function(r){return r})})}function F2(e,t,r,i){if(typeof r=="string"){if(arguments.length===4)throw new ha("error",["Object","Error","Function","RegExp"],r);if(nr(t)==="object"&&t!==null){if(t.message===r)throw new R2("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===r)throw new R2("error/message",'The error "'.concat(t,'" is identical to the message.'));i=r,r=void 0}else if(r!=null&&nr(r)!=="object"&&typeof r!="function")throw new ha("error",["Object","Error","Function","RegExp"],r);if(t===Su){var n="";r&&r.name&&(n+=" (".concat(r.name,")")),n+=i?": ".concat(i):".";var a=e.name==="rejects"?"rejection":"exception";ar({actual:void 0,expected:r,operator:e.name,message:"Missing expected ".concat(a).concat(n),stackStartFn:e})}if(r&&!L2(t,r,i,e))throw t}function j2(e,t,r,i){if(t!==Su){if(typeof r=="string"&&(i=r,r=void 0),!r||L2(t,r)){var n=i?": ".concat(i):".",a=e.name==="doesNotReject"?"rejection":"exception";ar({actual:t,expected:r,operator:e.name,message:"Got unwanted ".concat(a).concat(n,`
65
65
  `)+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}Ge.throws=function e(t){for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];F2.apply(void 0,[e,C2(t)].concat(i))};Ge.rejects=function e(t){for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return U2(t).then(function(a){return F2.apply(void 0,[e,a].concat(i))})};Ge.doesNotThrow=function e(t){for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];j2.apply(void 0,[e,C2(t)].concat(i))};Ge.doesNotReject=function e(t){for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return U2(t).then(function(a){return j2.apply(void 0,[e,a].concat(i))})};Ge.ifError=function e(t){if(t!=null){var r="ifError got unwanted exception: ";nr(t)==="object"&&typeof t.message=="string"?t.message.length===0&&t.constructor?r+=t.constructor.name:r+=t.message:r+=mu(t);var i=new ai({actual:t,expected:null,operator:"ifError",message:r,stackStartFn:e}),n=t.stack;if(typeof n=="string"){var a=n.split(`
66
66
  `);a.shift();for(var o=i.stack.split(`
67
67
  `),s=0;s<a.length;s++){var y=o.indexOf(a[s]);if(y!==-1){o=o.slice(0,y);break}}i.stack="".concat(o.join(`
@@ -70,5 +70,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
70
70
  `))}throw i}};function z2(e,t,r,i,n){if(!wu(t))throw new ha("regexp","RegExp",t);var a=n==="match";if(typeof e!="string"||xu(t,e)!==a){if(r instanceof Error)throw r;var o=!r;r=r||(typeof e!="string"?'The "string" argument must be of type string. Received type '+"".concat(nr(e)," (").concat(mu(e),")"):(a?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(mu(t),`. Input:
71
71
 
72
72
  `).concat(mu(e),`
73
- `));var s=new ai({actual:e,expected:t,message:r,operator:n,stackStartFn:i});throw s.generatedMessage=o,s}}Ge.match=function e(t,r,i){z2(t,r,i,e,"match")};Ge.doesNotMatch=function e(t,r,i){z2(t,r,i,e,"doesNotMatch")};function Z2(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];N2.apply(void 0,[Z2,t.length].concat(t))}Ge.strict=F7(Z2,Ge,{equal:Ge.strictEqual,deepEqual:Ge.deepStrictEqual,notEqual:Ge.notStrictEqual,notDeepEqual:Ge.notDeepStrictEqual});Ge.strict.strict=Ge.strict});var K2=k((hU,W2)=>{"use strict";m();function z7(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}W2.exports=z7});var $o=k(mt=>{"use strict";m();var Z7=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function H7(e,t){return Object.prototype.hasOwnProperty.call(e,t)}mt.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if(typeof r!="object")throw new TypeError(r+"must be non-object");for(var i in r)H7(r,i)&&(e[i]=r[i])}}return e};mt.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var W7={arraySet:function(e,t,r,i,n){if(t.subarray&&e.subarray){e.set(t.subarray(r,r+i),n);return}for(var a=0;a<i;a++)e[n+a]=t[r+a]},flattenChunks:function(e){var t,r,i,n,a,o;for(i=0,t=0,r=e.length;t<r;t++)i+=e[t].length;for(o=new Uint8Array(i),n=0,t=0,r=e.length;t<r;t++)a=e[t],o.set(a,n),n+=a.length;return o}},K7={arraySet:function(e,t,r,i,n){for(var a=0;a<i;a++)e[n+a]=t[r+a]},flattenChunks:function(e){return[].concat.apply([],e)}};mt.setTyped=function(e){e?(mt.Buf8=Uint8Array,mt.Buf16=Uint16Array,mt.Buf32=Int32Array,mt.assign(mt,W7)):(mt.Buf8=Array,mt.Buf16=Array,mt.Buf32=Array,mt.assign(mt,K7))};mt.setTyped(Z7)});var vx=k(pa=>{"use strict";m();var G7=$o(),V7=4,G2=0,V2=1,$7=2;function da(e){for(var t=e.length;--t>=0;)e[t]=0}var Y7=0,ex=1,J7=2,X7=3,Q7=258,b0=29,tf=256,Jo=tf+1+b0,ca=30,_0=19,tx=2*Jo+1,fn=15,c0=16,eI=7,m0=256,rx=16,ix=17,nx=18,y0=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],Mu=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],tI=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ax=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],rI=512,jr=new Array((Jo+2)*2);da(jr);var Yo=new Array(ca*2);da(Yo);var Xo=new Array(rI);da(Xo);var Qo=new Array(Q7-X7+1);da(Qo);var w0=new Array(b0);da(w0);var Au=new Array(ca);da(Au);function d0(e,t,r,i,n){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=i,this.max_length=n,this.has_stree=e&&e.length}var ox,fx,sx;function p0(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function ux(e){return e<256?Xo[e]:Xo[256+(e>>>7)]}function ef(e,t){e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255}function At(e,t,r){e.bi_valid>c0-r?(e.bi_buf|=t<<e.bi_valid&65535,ef(e,e.bi_buf),e.bi_buf=t>>c0-e.bi_valid,e.bi_valid+=r-c0):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function _r(e,t,r){At(e,r[t*2],r[t*2+1])}function lx(e,t){var r=0;do r|=e&1,e>>>=1,r<<=1;while(--t>0);return r>>>1}function iI(e){e.bi_valid===16?(ef(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)}function nI(e,t){var r=t.dyn_tree,i=t.max_code,n=t.stat_desc.static_tree,a=t.stat_desc.has_stree,o=t.stat_desc.extra_bits,s=t.stat_desc.extra_base,y=t.stat_desc.max_length,_,x,B,R,T,O,D=0;for(R=0;R<=fn;R++)e.bl_count[R]=0;for(r[e.heap[e.heap_max]*2+1]=0,_=e.heap_max+1;_<tx;_++)x=e.heap[_],R=r[r[x*2+1]*2+1]+1,R>y&&(R=y,D++),r[x*2+1]=R,!(x>i)&&(e.bl_count[R]++,T=0,x>=s&&(T=o[x-s]),O=r[x*2],e.opt_len+=O*(R+T),a&&(e.static_len+=O*(n[x*2+1]+T)));if(D!==0){do{for(R=y-1;e.bl_count[R]===0;)R--;e.bl_count[R]--,e.bl_count[R+1]+=2,e.bl_count[y]--,D-=2}while(D>0);for(R=y;R!==0;R--)for(x=e.bl_count[R];x!==0;)B=e.heap[--_],!(B>i)&&(r[B*2+1]!==R&&(e.opt_len+=(R-r[B*2+1])*r[B*2],r[B*2+1]=R),x--)}}function hx(e,t,r){var i=new Array(fn+1),n=0,a,o;for(a=1;a<=fn;a++)i[a]=n=n+r[a-1]<<1;for(o=0;o<=t;o++){var s=e[o*2+1];s!==0&&(e[o*2]=lx(i[s]++,s))}}function aI(){var e,t,r,i,n,a=new Array(fn+1);for(r=0,i=0;i<b0-1;i++)for(w0[i]=r,e=0;e<1<<y0[i];e++)Qo[r++]=i;for(Qo[r-1]=i,n=0,i=0;i<16;i++)for(Au[i]=n,e=0;e<1<<Mu[i];e++)Xo[n++]=i;for(n>>=7;i<ca;i++)for(Au[i]=n<<7,e=0;e<1<<Mu[i]-7;e++)Xo[256+n++]=i;for(t=0;t<=fn;t++)a[t]=0;for(e=0;e<=143;)jr[e*2+1]=8,e++,a[8]++;for(;e<=255;)jr[e*2+1]=9,e++,a[9]++;for(;e<=279;)jr[e*2+1]=7,e++,a[7]++;for(;e<=287;)jr[e*2+1]=8,e++,a[8]++;for(hx(jr,Jo+1,a),e=0;e<ca;e++)Yo[e*2+1]=5,Yo[e*2]=lx(e,5);ox=new d0(jr,y0,tf+1,Jo,fn),fx=new d0(Yo,Mu,0,ca,fn),sx=new d0(new Array(0),tI,0,_0,eI)}function cx(e){var t;for(t=0;t<Jo;t++)e.dyn_ltree[t*2]=0;for(t=0;t<ca;t++)e.dyn_dtree[t*2]=0;for(t=0;t<_0;t++)e.bl_tree[t*2]=0;e.dyn_ltree[m0*2]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function dx(e){e.bi_valid>8?ef(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function oI(e,t,r,i){dx(e),i&&(ef(e,r),ef(e,~r)),G7.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}function $2(e,t,r,i){var n=t*2,a=r*2;return e[n]<e[a]||e[n]===e[a]&&i[t]<=i[r]}function v0(e,t,r){for(var i=e.heap[r],n=r<<1;n<=e.heap_len&&(n<e.heap_len&&$2(t,e.heap[n+1],e.heap[n],e.depth)&&n++,!$2(t,i,e.heap[n],e.depth));)e.heap[r]=e.heap[n],r=n,n<<=1;e.heap[r]=i}function Y2(e,t,r){var i,n,a=0,o,s;if(e.last_lit!==0)do i=e.pending_buf[e.d_buf+a*2]<<8|e.pending_buf[e.d_buf+a*2+1],n=e.pending_buf[e.l_buf+a],a++,i===0?_r(e,n,t):(o=Qo[n],_r(e,o+tf+1,t),s=y0[o],s!==0&&(n-=w0[o],At(e,n,s)),i--,o=ux(i),_r(e,o,r),s=Mu[o],s!==0&&(i-=Au[o],At(e,i,s)));while(a<e.last_lit);_r(e,m0,t)}function g0(e,t){var r=t.dyn_tree,i=t.stat_desc.static_tree,n=t.stat_desc.has_stree,a=t.stat_desc.elems,o,s,y=-1,_;for(e.heap_len=0,e.heap_max=tx,o=0;o<a;o++)r[o*2]!==0?(e.heap[++e.heap_len]=y=o,e.depth[o]=0):r[o*2+1]=0;for(;e.heap_len<2;)_=e.heap[++e.heap_len]=y<2?++y:0,r[_*2]=1,e.depth[_]=0,e.opt_len--,n&&(e.static_len-=i[_*2+1]);for(t.max_code=y,o=e.heap_len>>1;o>=1;o--)v0(e,r,o);_=a;do o=e.heap[1],e.heap[1]=e.heap[e.heap_len--],v0(e,r,1),s=e.heap[1],e.heap[--e.heap_max]=o,e.heap[--e.heap_max]=s,r[_*2]=r[o*2]+r[s*2],e.depth[_]=(e.depth[o]>=e.depth[s]?e.depth[o]:e.depth[s])+1,r[o*2+1]=r[s*2+1]=_,e.heap[1]=_++,v0(e,r,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],nI(e,t),hx(r,y,e.bl_count)}function J2(e,t,r){var i,n=-1,a,o=t[1],s=0,y=7,_=4;for(o===0&&(y=138,_=3),t[(r+1)*2+1]=65535,i=0;i<=r;i++)a=o,o=t[(i+1)*2+1],!(++s<y&&a===o)&&(s<_?e.bl_tree[a*2]+=s:a!==0?(a!==n&&e.bl_tree[a*2]++,e.bl_tree[rx*2]++):s<=10?e.bl_tree[ix*2]++:e.bl_tree[nx*2]++,s=0,n=a,o===0?(y=138,_=3):a===o?(y=6,_=3):(y=7,_=4))}function X2(e,t,r){var i,n=-1,a,o=t[1],s=0,y=7,_=4;for(o===0&&(y=138,_=3),i=0;i<=r;i++)if(a=o,o=t[(i+1)*2+1],!(++s<y&&a===o)){if(s<_)do _r(e,a,e.bl_tree);while(--s!==0);else a!==0?(a!==n&&(_r(e,a,e.bl_tree),s--),_r(e,rx,e.bl_tree),At(e,s-3,2)):s<=10?(_r(e,ix,e.bl_tree),At(e,s-3,3)):(_r(e,nx,e.bl_tree),At(e,s-11,7));s=0,n=a,o===0?(y=138,_=3):a===o?(y=6,_=3):(y=7,_=4)}}function fI(e){var t;for(J2(e,e.dyn_ltree,e.l_desc.max_code),J2(e,e.dyn_dtree,e.d_desc.max_code),g0(e,e.bl_desc),t=_0-1;t>=3&&e.bl_tree[ax[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t}function sI(e,t,r,i){var n;for(At(e,t-257,5),At(e,r-1,5),At(e,i-4,4),n=0;n<i;n++)At(e,e.bl_tree[ax[n]*2+1],3);X2(e,e.dyn_ltree,t-1),X2(e,e.dyn_dtree,r-1)}function uI(e){var t=4093624447,r;for(r=0;r<=31;r++,t>>>=1)if(t&1&&e.dyn_ltree[r*2]!==0)return G2;if(e.dyn_ltree[18]!==0||e.dyn_ltree[20]!==0||e.dyn_ltree[26]!==0)return V2;for(r=32;r<tf;r++)if(e.dyn_ltree[r*2]!==0)return V2;return G2}var Q2=!1;function lI(e){Q2||(aI(),Q2=!0),e.l_desc=new p0(e.dyn_ltree,ox),e.d_desc=new p0(e.dyn_dtree,fx),e.bl_desc=new p0(e.bl_tree,sx),e.bi_buf=0,e.bi_valid=0,cx(e)}function px(e,t,r,i){At(e,(Y7<<1)+(i?1:0),3),oI(e,t,r,!0)}function hI(e){At(e,ex<<1,3),_r(e,m0,jr),iI(e)}function cI(e,t,r,i){var n,a,o=0;e.level>0?(e.strm.data_type===$7&&(e.strm.data_type=uI(e)),g0(e,e.l_desc),g0(e,e.d_desc),o=fI(e),n=e.opt_len+3+7>>>3,a=e.static_len+3+7>>>3,a<=n&&(n=a)):n=a=r+5,r+4<=n&&t!==-1?px(e,t,r,i):e.strategy===V7||a===n?(At(e,(ex<<1)+(i?1:0),3),Y2(e,jr,Yo)):(At(e,(J7<<1)+(i?1:0),3),sI(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),Y2(e,e.dyn_ltree,e.dyn_dtree)),cx(e),i&&dx(e)}function dI(e,t,r){return e.pending_buf[e.d_buf+e.last_lit*2]=t>>>8&255,e.pending_buf[e.d_buf+e.last_lit*2+1]=t&255,e.pending_buf[e.l_buf+e.last_lit]=r&255,e.last_lit++,t===0?e.dyn_ltree[r*2]++:(e.matches++,t--,e.dyn_ltree[(Qo[r]+tf+1)*2]++,e.dyn_dtree[ux(t)*2]++),e.last_lit===e.lit_bufsize-1}pa._tr_init=lI;pa._tr_stored_block=px;pa._tr_flush_block=cI;pa._tr_tally=dI;pa._tr_align=hI});var x0=k((gU,yx)=>{"use strict";m();function pI(e,t,r,i){for(var n=e&65535|0,a=e>>>16&65535|0,o=0;r!==0;){o=r>2e3?2e3:r,r-=o;do n=n+t[i++]|0,a=a+n|0;while(--o);n%=65521,a%=65521}return n|a<<16|0}yx.exports=pI});var E0=k((_U,gx)=>{"use strict";m();function vI(){for(var e,t=[],r=0;r<256;r++){e=r;for(var i=0;i<8;i++)e=e&1?3988292384^e>>>1:e>>>1;t[r]=e}return t}var yI=vI();function gI(e,t,r,i){var n=yI,a=i+r;e^=-1;for(var o=i;o<a;o++)e=e>>>8^n[(e^t[o])&255];return e^-1}gx.exports=gI});var _x=k((wU,bx)=>{"use strict";m();bx.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}});var Rx=k(xr=>{"use strict";m();var wt=$o(),zt=vx(),Ex=x0(),oi=E0(),bI=_x(),hn=0,_I=1,mI=3,hi=4,mx=5,wr=0,wx=1,Zt=-2,wI=-3,S0=-5,xI=-1,EI=1,Bu=2,SI=3,MI=4,AI=0,BI=2,Iu=8,RI=9,kI=15,TI=8,II=29,OI=256,A0=OI+1+II,qI=30,DI=19,NI=2*A0+1,PI=15,je=3,ui=258,or=ui+je+1,LI=32,Ou=42,B0=69,Ru=73,ku=91,Tu=103,sn=113,nf=666,nt=1,af=2,un=3,ga=4,CI=3;function li(e,t){return e.msg=bI[t],t}function xx(e){return(e<<1)-(e>4?9:0)}function si(e){for(var t=e.length;--t>=0;)e[t]=0}function fi(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),r!==0&&(wt.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,t.pending===0&&(t.pending_out=0))}function ht(e,t){zt._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,fi(e.strm)}function Ze(e,t){e.pending_buf[e.pending++]=t}function rf(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255}function UI(e,t,r,i){var n=e.avail_in;return n>i&&(n=i),n===0?0:(e.avail_in-=n,wt.arraySet(t,e.input,e.next_in,n,r),e.state.wrap===1?e.adler=Ex(e.adler,t,n,r):e.state.wrap===2&&(e.adler=oi(e.adler,t,n,r)),e.next_in+=n,e.total_in+=n,n)}function Sx(e,t){var r=e.max_chain_length,i=e.strstart,n,a,o=e.prev_length,s=e.nice_match,y=e.strstart>e.w_size-or?e.strstart-(e.w_size-or):0,_=e.window,x=e.w_mask,B=e.prev,R=e.strstart+ui,T=_[i+o-1],O=_[i+o];e.prev_length>=e.good_match&&(r>>=2),s>e.lookahead&&(s=e.lookahead);do if(n=t,!(_[n+o]!==O||_[n+o-1]!==T||_[n]!==_[i]||_[++n]!==_[i+1])){i+=2,n++;do;while(_[++i]===_[++n]&&_[++i]===_[++n]&&_[++i]===_[++n]&&_[++i]===_[++n]&&_[++i]===_[++n]&&_[++i]===_[++n]&&_[++i]===_[++n]&&_[++i]===_[++n]&&i<R);if(a=ui-(R-i),i=R-ui,a>o){if(e.match_start=t,o=a,a>=s)break;T=_[i+o-1],O=_[i+o]}}while((t=B[t&x])>y&&--r!==0);return o<=e.lookahead?o:e.lookahead}function ln(e){var t=e.w_size,r,i,n,a,o;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-or)){wt.arraySet(e.window,e.window,t,t,0),e.match_start-=t,e.strstart-=t,e.block_start-=t,i=e.hash_size,r=i;do n=e.head[--r],e.head[r]=n>=t?n-t:0;while(--i);i=t,r=i;do n=e.prev[--r],e.prev[r]=n>=t?n-t:0;while(--i);a+=t}if(e.strm.avail_in===0)break;if(i=UI(e.strm,e.window,e.strstart+e.lookahead,a),e.lookahead+=i,e.lookahead+e.insert>=je)for(o=e.strstart-e.insert,e.ins_h=e.window[o],e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+je-1])&e.hash_mask,e.prev[o&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=o,o++,e.insert--,!(e.lookahead+e.insert<je)););}while(e.lookahead<or&&e.strm.avail_in!==0)}function FI(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(ln(e),e.lookahead===0&&t===hn)return nt;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;var i=e.block_start+r;if((e.strstart===0||e.strstart>=i)&&(e.lookahead=e.strstart-i,e.strstart=i,ht(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-or&&(ht(e,!1),e.strm.avail_out===0))return nt}return e.insert=0,t===hi?(ht(e,!0),e.strm.avail_out===0?un:ga):(e.strstart>e.block_start&&(ht(e,!1),e.strm.avail_out===0),nt)}function M0(e,t){for(var r,i;;){if(e.lookahead<or){if(ln(e),e.lookahead<or&&t===hn)return nt;if(e.lookahead===0)break}if(r=0,e.lookahead>=je&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+je-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),r!==0&&e.strstart-r<=e.w_size-or&&(e.match_length=Sx(e,r)),e.match_length>=je)if(i=zt._tr_tally(e,e.strstart-e.match_start,e.match_length-je),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=je){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+je-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else i=zt._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(ht(e,!1),e.strm.avail_out===0))return nt}return e.insert=e.strstart<je-1?e.strstart:je-1,t===hi?(ht(e,!0),e.strm.avail_out===0?un:ga):e.last_lit&&(ht(e,!1),e.strm.avail_out===0)?nt:af}function va(e,t){for(var r,i,n;;){if(e.lookahead<or){if(ln(e),e.lookahead<or&&t===hn)return nt;if(e.lookahead===0)break}if(r=0,e.lookahead>=je&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+je-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=je-1,r!==0&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-or&&(e.match_length=Sx(e,r),e.match_length<=5&&(e.strategy===EI||e.match_length===je&&e.strstart-e.match_start>4096)&&(e.match_length=je-1)),e.prev_length>=je&&e.match_length<=e.prev_length){n=e.strstart+e.lookahead-je,i=zt._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-je),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=n&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+je-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=je-1,e.strstart++,i&&(ht(e,!1),e.strm.avail_out===0))return nt}else if(e.match_available){if(i=zt._tr_tally(e,0,e.window[e.strstart-1]),i&&ht(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return nt}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=zt._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<je-1?e.strstart:je-1,t===hi?(ht(e,!0),e.strm.avail_out===0?un:ga):e.last_lit&&(ht(e,!1),e.strm.avail_out===0)?nt:af}function jI(e,t){for(var r,i,n,a,o=e.window;;){if(e.lookahead<=ui){if(ln(e),e.lookahead<=ui&&t===hn)return nt;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=je&&e.strstart>0&&(n=e.strstart-1,i=o[n],i===o[++n]&&i===o[++n]&&i===o[++n])){a=e.strstart+ui;do;while(i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&n<a);e.match_length=ui-(a-n),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=je?(r=zt._tr_tally(e,1,e.match_length-je),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=zt._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(ht(e,!1),e.strm.avail_out===0))return nt}return e.insert=0,t===hi?(ht(e,!0),e.strm.avail_out===0?un:ga):e.last_lit&&(ht(e,!1),e.strm.avail_out===0)?nt:af}function zI(e,t){for(var r;;){if(e.lookahead===0&&(ln(e),e.lookahead===0)){if(t===hn)return nt;break}if(e.match_length=0,r=zt._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(ht(e,!1),e.strm.avail_out===0))return nt}return e.insert=0,t===hi?(ht(e,!0),e.strm.avail_out===0?un:ga):e.last_lit&&(ht(e,!1),e.strm.avail_out===0)?nt:af}function mr(e,t,r,i,n){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=i,this.func=n}var ya;ya=[new mr(0,0,0,0,FI),new mr(4,4,8,4,M0),new mr(4,5,16,8,M0),new mr(4,6,32,32,M0),new mr(4,4,16,16,va),new mr(8,16,32,32,va),new mr(8,16,128,128,va),new mr(8,32,128,256,va),new mr(32,128,258,1024,va),new mr(32,258,258,4096,va)];function ZI(e){e.window_size=2*e.w_size,si(e.head),e.max_lazy_match=ya[e.level].max_lazy,e.good_match=ya[e.level].good_length,e.nice_match=ya[e.level].nice_length,e.max_chain_length=ya[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=je-1,e.match_available=0,e.ins_h=0}function HI(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Iu,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new wt.Buf16(NI*2),this.dyn_dtree=new wt.Buf16((2*qI+1)*2),this.bl_tree=new wt.Buf16((2*DI+1)*2),si(this.dyn_ltree),si(this.dyn_dtree),si(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new wt.Buf16(PI+1),this.heap=new wt.Buf16(2*A0+1),si(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new wt.Buf16(2*A0+1),si(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Mx(e){var t;return!e||!e.state?li(e,Zt):(e.total_in=e.total_out=0,e.data_type=BI,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?Ou:sn,e.adler=t.wrap===2?0:1,t.last_flush=hn,zt._tr_init(t),wr)}function Ax(e){var t=Mx(e);return t===wr&&ZI(e.state),t}function WI(e,t){return!e||!e.state||e.state.wrap!==2?Zt:(e.state.gzhead=t,wr)}function Bx(e,t,r,i,n,a){if(!e)return Zt;var o=1;if(t===xI&&(t=6),i<0?(o=0,i=-i):i>15&&(o=2,i-=16),n<1||n>RI||r!==Iu||i<8||i>15||t<0||t>9||a<0||a>MI)return li(e,Zt);i===8&&(i=9);var s=new HI;return e.state=s,s.strm=e,s.wrap=o,s.gzhead=null,s.w_bits=i,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=n+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+je-1)/je),s.window=new wt.Buf8(s.w_size*2),s.head=new wt.Buf16(s.hash_size),s.prev=new wt.Buf16(s.w_size),s.lit_bufsize=1<<n+6,s.pending_buf_size=s.lit_bufsize*4,s.pending_buf=new wt.Buf8(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=t,s.strategy=a,s.method=r,Ax(e)}function KI(e,t){return Bx(e,t,Iu,kI,TI,AI)}function GI(e,t){var r,i,n,a;if(!e||!e.state||t>mx||t<0)return e?li(e,Zt):Zt;if(i=e.state,!e.output||!e.input&&e.avail_in!==0||i.status===nf&&t!==hi)return li(e,e.avail_out===0?S0:Zt);if(i.strm=e,r=i.last_flush,i.last_flush=t,i.status===Ou)if(i.wrap===2)e.adler=0,Ze(i,31),Ze(i,139),Ze(i,8),i.gzhead?(Ze(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),Ze(i,i.gzhead.time&255),Ze(i,i.gzhead.time>>8&255),Ze(i,i.gzhead.time>>16&255),Ze(i,i.gzhead.time>>24&255),Ze(i,i.level===9?2:i.strategy>=Bu||i.level<2?4:0),Ze(i,i.gzhead.os&255),i.gzhead.extra&&i.gzhead.extra.length&&(Ze(i,i.gzhead.extra.length&255),Ze(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=oi(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=B0):(Ze(i,0),Ze(i,0),Ze(i,0),Ze(i,0),Ze(i,0),Ze(i,i.level===9?2:i.strategy>=Bu||i.level<2?4:0),Ze(i,CI),i.status=sn);else{var o=Iu+(i.w_bits-8<<4)<<8,s=-1;i.strategy>=Bu||i.level<2?s=0:i.level<6?s=1:i.level===6?s=2:s=3,o|=s<<6,i.strstart!==0&&(o|=LI),o+=31-o%31,i.status=sn,rf(i,o),i.strstart!==0&&(rf(i,e.adler>>>16),rf(i,e.adler&65535)),e.adler=1}if(i.status===B0)if(i.gzhead.extra){for(n=i.pending;i.gzindex<(i.gzhead.extra.length&65535)&&!(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(e.adler=oi(e.adler,i.pending_buf,i.pending-n,n)),fi(e),n=i.pending,i.pending===i.pending_buf_size));)Ze(i,i.gzhead.extra[i.gzindex]&255),i.gzindex++;i.gzhead.hcrc&&i.pending>n&&(e.adler=oi(e.adler,i.pending_buf,i.pending-n,n)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=Ru)}else i.status=Ru;if(i.status===Ru)if(i.gzhead.name){n=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(e.adler=oi(e.adler,i.pending_buf,i.pending-n,n)),fi(e),n=i.pending,i.pending===i.pending_buf_size)){a=1;break}i.gzindex<i.gzhead.name.length?a=i.gzhead.name.charCodeAt(i.gzindex++)&255:a=0,Ze(i,a)}while(a!==0);i.gzhead.hcrc&&i.pending>n&&(e.adler=oi(e.adler,i.pending_buf,i.pending-n,n)),a===0&&(i.gzindex=0,i.status=ku)}else i.status=ku;if(i.status===ku)if(i.gzhead.comment){n=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(e.adler=oi(e.adler,i.pending_buf,i.pending-n,n)),fi(e),n=i.pending,i.pending===i.pending_buf_size)){a=1;break}i.gzindex<i.gzhead.comment.length?a=i.gzhead.comment.charCodeAt(i.gzindex++)&255:a=0,Ze(i,a)}while(a!==0);i.gzhead.hcrc&&i.pending>n&&(e.adler=oi(e.adler,i.pending_buf,i.pending-n,n)),a===0&&(i.status=Tu)}else i.status=Tu;if(i.status===Tu&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&fi(e),i.pending+2<=i.pending_buf_size&&(Ze(i,e.adler&255),Ze(i,e.adler>>8&255),e.adler=0,i.status=sn)):i.status=sn),i.pending!==0){if(fi(e),e.avail_out===0)return i.last_flush=-1,wr}else if(e.avail_in===0&&xx(t)<=xx(r)&&t!==hi)return li(e,S0);if(i.status===nf&&e.avail_in!==0)return li(e,S0);if(e.avail_in!==0||i.lookahead!==0||t!==hn&&i.status!==nf){var y=i.strategy===Bu?zI(i,t):i.strategy===SI?jI(i,t):ya[i.level].func(i,t);if((y===un||y===ga)&&(i.status=nf),y===nt||y===un)return e.avail_out===0&&(i.last_flush=-1),wr;if(y===af&&(t===_I?zt._tr_align(i):t!==mx&&(zt._tr_stored_block(i,0,0,!1),t===mI&&(si(i.head),i.lookahead===0&&(i.strstart=0,i.block_start=0,i.insert=0))),fi(e),e.avail_out===0))return i.last_flush=-1,wr}return t!==hi?wr:i.wrap<=0?wx:(i.wrap===2?(Ze(i,e.adler&255),Ze(i,e.adler>>8&255),Ze(i,e.adler>>16&255),Ze(i,e.adler>>24&255),Ze(i,e.total_in&255),Ze(i,e.total_in>>8&255),Ze(i,e.total_in>>16&255),Ze(i,e.total_in>>24&255)):(rf(i,e.adler>>>16),rf(i,e.adler&65535)),fi(e),i.wrap>0&&(i.wrap=-i.wrap),i.pending!==0?wr:wx)}function VI(e){var t;return!e||!e.state?Zt:(t=e.state.status,t!==Ou&&t!==B0&&t!==Ru&&t!==ku&&t!==Tu&&t!==sn&&t!==nf?li(e,Zt):(e.state=null,t===sn?li(e,wI):wr))}function $I(e,t){var r=t.length,i,n,a,o,s,y,_,x;if(!e||!e.state||(i=e.state,o=i.wrap,o===2||o===1&&i.status!==Ou||i.lookahead))return Zt;for(o===1&&(e.adler=Ex(e.adler,t,r,0)),i.wrap=0,r>=i.w_size&&(o===0&&(si(i.head),i.strstart=0,i.block_start=0,i.insert=0),x=new wt.Buf8(i.w_size),wt.arraySet(x,t,r-i.w_size,i.w_size,0),t=x,r=i.w_size),s=e.avail_in,y=e.next_in,_=e.input,e.avail_in=r,e.next_in=0,e.input=t,ln(i);i.lookahead>=je;){n=i.strstart,a=i.lookahead-(je-1);do i.ins_h=(i.ins_h<<i.hash_shift^i.window[n+je-1])&i.hash_mask,i.prev[n&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=n,n++;while(--a);i.strstart=n,i.lookahead=je-1,ln(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=je-1,i.match_available=0,e.next_in=y,e.input=_,e.avail_in=s,i.wrap=o,wr}xr.deflateInit=KI;xr.deflateInit2=Bx;xr.deflateReset=Ax;xr.deflateResetKeep=Mx;xr.deflateSetHeader=WI;xr.deflate=GI;xr.deflateEnd=VI;xr.deflateSetDictionary=$I;xr.deflateInfo="pako deflate (from Nodeca project)"});var Tx=k((MU,kx)=>{"use strict";m();var qu=30,YI=12;kx.exports=function(t,r){var i,n,a,o,s,y,_,x,B,R,T,O,D,U,N,j,H,W,Z,K,J,z,X,A,h;i=t.state,n=t.next_in,A=t.input,a=n+(t.avail_in-5),o=t.next_out,h=t.output,s=o-(r-t.avail_out),y=o+(t.avail_out-257),_=i.dmax,x=i.wsize,B=i.whave,R=i.wnext,T=i.window,O=i.hold,D=i.bits,U=i.lencode,N=i.distcode,j=(1<<i.lenbits)-1,H=(1<<i.distbits)-1;e:do{D<15&&(O+=A[n++]<<D,D+=8,O+=A[n++]<<D,D+=8),W=U[O&j];t:for(;;){if(Z=W>>>24,O>>>=Z,D-=Z,Z=W>>>16&255,Z===0)h[o++]=W&65535;else if(Z&16){K=W&65535,Z&=15,Z&&(D<Z&&(O+=A[n++]<<D,D+=8),K+=O&(1<<Z)-1,O>>>=Z,D-=Z),D<15&&(O+=A[n++]<<D,D+=8,O+=A[n++]<<D,D+=8),W=N[O&H];r:for(;;){if(Z=W>>>24,O>>>=Z,D-=Z,Z=W>>>16&255,Z&16){if(J=W&65535,Z&=15,D<Z&&(O+=A[n++]<<D,D+=8,D<Z&&(O+=A[n++]<<D,D+=8)),J+=O&(1<<Z)-1,J>_){t.msg="invalid distance too far back",i.mode=qu;break e}if(O>>>=Z,D-=Z,Z=o-s,J>Z){if(Z=J-Z,Z>B&&i.sane){t.msg="invalid distance too far back",i.mode=qu;break e}if(z=0,X=T,R===0){if(z+=x-Z,Z<K){K-=Z;do h[o++]=T[z++];while(--Z);z=o-J,X=h}}else if(R<Z){if(z+=x+R-Z,Z-=R,Z<K){K-=Z;do h[o++]=T[z++];while(--Z);if(z=0,R<K){Z=R,K-=Z;do h[o++]=T[z++];while(--Z);z=o-J,X=h}}}else if(z+=R-Z,Z<K){K-=Z;do h[o++]=T[z++];while(--Z);z=o-J,X=h}for(;K>2;)h[o++]=X[z++],h[o++]=X[z++],h[o++]=X[z++],K-=3;K&&(h[o++]=X[z++],K>1&&(h[o++]=X[z++]))}else{z=o-J;do h[o++]=h[z++],h[o++]=h[z++],h[o++]=h[z++],K-=3;while(K>2);K&&(h[o++]=h[z++],K>1&&(h[o++]=h[z++]))}}else if((Z&64)===0){W=N[(W&65535)+(O&(1<<Z)-1)];continue r}else{t.msg="invalid distance code",i.mode=qu;break e}break}}else if((Z&64)===0){W=U[(W&65535)+(O&(1<<Z)-1)];continue t}else if(Z&32){i.mode=YI;break e}else{t.msg="invalid literal/length code",i.mode=qu;break e}break}}while(n<a&&o<y);K=D>>3,n-=K,D-=K<<3,O&=(1<<D)-1,t.next_in=n,t.next_out=o,t.avail_in=n<a?5+(a-n):5-(n-a),t.avail_out=o<y?257+(y-o):257-(o-y),i.hold=O,i.bits=D}});var Lx=k((BU,Px)=>{"use strict";m();var Ix=$o(),ba=15,Ox=852,qx=592,Dx=0,R0=1,Nx=2,JI=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],XI=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],QI=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],eO=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];Px.exports=function(t,r,i,n,a,o,s,y){var _=y.bits,x=0,B=0,R=0,T=0,O=0,D=0,U=0,N=0,j=0,H=0,W,Z,K,J,z,X=null,A=0,h,b=new Ix.Buf16(ba+1),d=new Ix.Buf16(ba+1),f=null,l=0,v,g,p;for(x=0;x<=ba;x++)b[x]=0;for(B=0;B<n;B++)b[r[i+B]]++;for(O=_,T=ba;T>=1&&b[T]===0;T--);if(O>T&&(O=T),T===0)return a[o++]=1<<24|64<<16|0,a[o++]=1<<24|64<<16|0,y.bits=1,0;for(R=1;R<T&&b[R]===0;R++);for(O<R&&(O=R),N=1,x=1;x<=ba;x++)if(N<<=1,N-=b[x],N<0)return-1;if(N>0&&(t===Dx||T!==1))return-1;for(d[1]=0,x=1;x<ba;x++)d[x+1]=d[x]+b[x];for(B=0;B<n;B++)r[i+B]!==0&&(s[d[r[i+B]]++]=B);if(t===Dx?(X=f=s,h=19):t===R0?(X=JI,A-=257,f=XI,l-=257,h=256):(X=QI,f=eO,h=-1),H=0,B=0,x=R,z=o,D=O,U=0,K=-1,j=1<<O,J=j-1,t===R0&&j>Ox||t===Nx&&j>qx)return 1;for(;;){v=x-U,s[B]<h?(g=0,p=s[B]):s[B]>h?(g=f[l+s[B]],p=X[A+s[B]]):(g=96,p=0),W=1<<x-U,Z=1<<D,R=Z;do Z-=W,a[z+(H>>U)+Z]=v<<24|g<<16|p|0;while(Z!==0);for(W=1<<x-1;H&W;)W>>=1;if(W!==0?(H&=W-1,H+=W):H=0,B++,--b[x]===0){if(x===T)break;x=r[i+s[B]]}if(x>O&&(H&J)!==K){for(U===0&&(U=O),z+=R,D=x-U,N=1<<D;D+U<T&&(N-=b[D+U],!(N<=0));)D++,N<<=1;if(j+=1<<D,t===R0&&j>Ox||t===Nx&&j>qx)return 1;K=H&J,a[K]=O<<24|D<<16|z-o|0}}return H!==0&&(a[z+H]=x-U<<24|64<<16|0),y.bits=O,0}});var bE=k(fr=>{"use strict";m();var Rt=$o(),D0=x0(),Er=E0(),tO=Tx(),of=Lx(),rO=0,uE=1,lE=2,Cx=4,iO=5,Du=6,cn=0,nO=1,aO=2,Ht=-2,hE=-3,N0=-4,oO=-5,Ux=8,cE=1,Fx=2,jx=3,zx=4,Zx=5,Hx=6,Wx=7,Kx=8,Gx=9,Vx=10,Lu=11,zr=12,k0=13,$x=14,T0=15,Yx=16,Jx=17,Xx=18,Qx=19,Nu=20,Pu=21,eE=22,tE=23,rE=24,iE=25,nE=26,I0=27,aE=28,oE=29,Je=30,P0=31,fO=32,sO=852,uO=592,lO=15,hO=lO;function fE(e){return(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24)}function cO(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Rt.Buf16(320),this.work=new Rt.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function dE(e){var t;return!e||!e.state?Ht:(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=cE,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Rt.Buf32(sO),t.distcode=t.distdyn=new Rt.Buf32(uO),t.sane=1,t.back=-1,cn)}function pE(e){var t;return!e||!e.state?Ht:(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,dE(e))}function vE(e,t){var r,i;return!e||!e.state||(i=e.state,t<0?(r=0,t=-t):(r=(t>>4)+1,t<48&&(t&=15)),t&&(t<8||t>15))?Ht:(i.window!==null&&i.wbits!==t&&(i.window=null),i.wrap=r,i.wbits=t,pE(e))}function yE(e,t){var r,i;return e?(i=new cO,e.state=i,i.window=null,r=vE(e,t),r!==cn&&(e.state=null),r):Ht}function dO(e){return yE(e,hO)}var sE=!0,O0,q0;function pO(e){if(sE){var t;for(O0=new Rt.Buf32(512),q0=new Rt.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(of(uE,e.lens,0,288,O0,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;of(lE,e.lens,0,32,q0,0,e.work,{bits:5}),sE=!1}e.lencode=O0,e.lenbits=9,e.distcode=q0,e.distbits=5}function gE(e,t,r,i){var n,a=e.state;return a.window===null&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new Rt.Buf8(a.wsize)),i>=a.wsize?(Rt.arraySet(a.window,t,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(n=a.wsize-a.wnext,n>i&&(n=i),Rt.arraySet(a.window,t,r-i,n,a.wnext),i-=n,i?(Rt.arraySet(a.window,t,r-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=n,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=n))),0}function vO(e,t){var r,i,n,a,o,s,y,_,x,B,R,T,O,D,U=0,N,j,H,W,Z,K,J,z,X=new Rt.Buf8(4),A,h,b=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&e.avail_in!==0)return Ht;r=e.state,r.mode===zr&&(r.mode=k0),o=e.next_out,n=e.output,y=e.avail_out,a=e.next_in,i=e.input,s=e.avail_in,_=r.hold,x=r.bits,B=s,R=y,z=cn;e:for(;;)switch(r.mode){case cE:if(r.wrap===0){r.mode=k0;break}for(;x<16;){if(s===0)break e;s--,_+=i[a++]<<x,x+=8}if(r.wrap&2&&_===35615){r.check=0,X[0]=_&255,X[1]=_>>>8&255,r.check=Er(r.check,X,2,0),_=0,x=0,r.mode=Fx;break}if(r.flags=0,r.head&&(r.head.done=!1),!(r.wrap&1)||(((_&255)<<8)+(_>>8))%31){e.msg="incorrect header check",r.mode=Je;break}if((_&15)!==Ux){e.msg="unknown compression method",r.mode=Je;break}if(_>>>=4,x-=4,J=(_&15)+8,r.wbits===0)r.wbits=J;else if(J>r.wbits){e.msg="invalid window size",r.mode=Je;break}r.dmax=1<<J,e.adler=r.check=1,r.mode=_&512?Vx:zr,_=0,x=0;break;case Fx:for(;x<16;){if(s===0)break e;s--,_+=i[a++]<<x,x+=8}if(r.flags=_,(r.flags&255)!==Ux){e.msg="unknown compression method",r.mode=Je;break}if(r.flags&57344){e.msg="unknown header flags set",r.mode=Je;break}r.head&&(r.head.text=_>>8&1),r.flags&512&&(X[0]=_&255,X[1]=_>>>8&255,r.check=Er(r.check,X,2,0)),_=0,x=0,r.mode=jx;case jx:for(;x<32;){if(s===0)break e;s--,_+=i[a++]<<x,x+=8}r.head&&(r.head.time=_),r.flags&512&&(X[0]=_&255,X[1]=_>>>8&255,X[2]=_>>>16&255,X[3]=_>>>24&255,r.check=Er(r.check,X,4,0)),_=0,x=0,r.mode=zx;case zx:for(;x<16;){if(s===0)break e;s--,_+=i[a++]<<x,x+=8}r.head&&(r.head.xflags=_&255,r.head.os=_>>8),r.flags&512&&(X[0]=_&255,X[1]=_>>>8&255,r.check=Er(r.check,X,2,0)),_=0,x=0,r.mode=Zx;case Zx:if(r.flags&1024){for(;x<16;){if(s===0)break e;s--,_+=i[a++]<<x,x+=8}r.length=_,r.head&&(r.head.extra_len=_),r.flags&512&&(X[0]=_&255,X[1]=_>>>8&255,r.check=Er(r.check,X,2,0)),_=0,x=0}else r.head&&(r.head.extra=null);r.mode=Hx;case Hx:if(r.flags&1024&&(T=r.length,T>s&&(T=s),T&&(r.head&&(J=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),Rt.arraySet(r.head.extra,i,a,T,J)),r.flags&512&&(r.check=Er(r.check,i,T,a)),s-=T,a+=T,r.length-=T),r.length))break e;r.length=0,r.mode=Wx;case Wx:if(r.flags&2048){if(s===0)break e;T=0;do J=i[a+T++],r.head&&J&&r.length<65536&&(r.head.name+=String.fromCharCode(J));while(J&&T<s);if(r.flags&512&&(r.check=Er(r.check,i,T,a)),s-=T,a+=T,J)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=Kx;case Kx:if(r.flags&4096){if(s===0)break e;T=0;do J=i[a+T++],r.head&&J&&r.length<65536&&(r.head.comment+=String.fromCharCode(J));while(J&&T<s);if(r.flags&512&&(r.check=Er(r.check,i,T,a)),s-=T,a+=T,J)break e}else r.head&&(r.head.comment=null);r.mode=Gx;case Gx:if(r.flags&512){for(;x<16;){if(s===0)break e;s--,_+=i[a++]<<x,x+=8}if(_!==(r.check&65535)){e.msg="header crc mismatch",r.mode=Je;break}_=0,x=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=zr;break;case Vx:for(;x<32;){if(s===0)break e;s--,_+=i[a++]<<x,x+=8}e.adler=r.check=fE(_),_=0,x=0,r.mode=Lu;case Lu:if(r.havedict===0)return e.next_out=o,e.avail_out=y,e.next_in=a,e.avail_in=s,r.hold=_,r.bits=x,aO;e.adler=r.check=1,r.mode=zr;case zr:if(t===iO||t===Du)break e;case k0:if(r.last){_>>>=x&7,x-=x&7,r.mode=I0;break}for(;x<3;){if(s===0)break e;s--,_+=i[a++]<<x,x+=8}switch(r.last=_&1,_>>>=1,x-=1,_&3){case 0:r.mode=$x;break;case 1:if(pO(r),r.mode=Nu,t===Du){_>>>=2,x-=2;break e}break;case 2:r.mode=Jx;break;case 3:e.msg="invalid block type",r.mode=Je}_>>>=2,x-=2;break;case $x:for(_>>>=x&7,x-=x&7;x<32;){if(s===0)break e;s--,_+=i[a++]<<x,x+=8}if((_&65535)!==(_>>>16^65535)){e.msg="invalid stored block lengths",r.mode=Je;break}if(r.length=_&65535,_=0,x=0,r.mode=T0,t===Du)break e;case T0:r.mode=Yx;case Yx:if(T=r.length,T){if(T>s&&(T=s),T>y&&(T=y),T===0)break e;Rt.arraySet(n,i,a,T,o),s-=T,a+=T,y-=T,o+=T,r.length-=T;break}r.mode=zr;break;case Jx:for(;x<14;){if(s===0)break e;s--,_+=i[a++]<<x,x+=8}if(r.nlen=(_&31)+257,_>>>=5,x-=5,r.ndist=(_&31)+1,_>>>=5,x-=5,r.ncode=(_&15)+4,_>>>=4,x-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=Je;break}r.have=0,r.mode=Xx;case Xx:for(;r.have<r.ncode;){for(;x<3;){if(s===0)break e;s--,_+=i[a++]<<x,x+=8}r.lens[b[r.have++]]=_&7,_>>>=3,x-=3}for(;r.have<19;)r.lens[b[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,A={bits:r.lenbits},z=of(rO,r.lens,0,19,r.lencode,0,r.work,A),r.lenbits=A.bits,z){e.msg="invalid code lengths set",r.mode=Je;break}r.have=0,r.mode=Qx;case Qx:for(;r.have<r.nlen+r.ndist;){for(;U=r.lencode[_&(1<<r.lenbits)-1],N=U>>>24,j=U>>>16&255,H=U&65535,!(N<=x);){if(s===0)break e;s--,_+=i[a++]<<x,x+=8}if(H<16)_>>>=N,x-=N,r.lens[r.have++]=H;else{if(H===16){for(h=N+2;x<h;){if(s===0)break e;s--,_+=i[a++]<<x,x+=8}if(_>>>=N,x-=N,r.have===0){e.msg="invalid bit length repeat",r.mode=Je;break}J=r.lens[r.have-1],T=3+(_&3),_>>>=2,x-=2}else if(H===17){for(h=N+3;x<h;){if(s===0)break e;s--,_+=i[a++]<<x,x+=8}_>>>=N,x-=N,J=0,T=3+(_&7),_>>>=3,x-=3}else{for(h=N+7;x<h;){if(s===0)break e;s--,_+=i[a++]<<x,x+=8}_>>>=N,x-=N,J=0,T=11+(_&127),_>>>=7,x-=7}if(r.have+T>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=Je;break}for(;T--;)r.lens[r.have++]=J}}if(r.mode===Je)break;if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block",r.mode=Je;break}if(r.lenbits=9,A={bits:r.lenbits},z=of(uE,r.lens,0,r.nlen,r.lencode,0,r.work,A),r.lenbits=A.bits,z){e.msg="invalid literal/lengths set",r.mode=Je;break}if(r.distbits=6,r.distcode=r.distdyn,A={bits:r.distbits},z=of(lE,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,A),r.distbits=A.bits,z){e.msg="invalid distances set",r.mode=Je;break}if(r.mode=Nu,t===Du)break e;case Nu:r.mode=Pu;case Pu:if(s>=6&&y>=258){e.next_out=o,e.avail_out=y,e.next_in=a,e.avail_in=s,r.hold=_,r.bits=x,tO(e,R),o=e.next_out,n=e.output,y=e.avail_out,a=e.next_in,i=e.input,s=e.avail_in,_=r.hold,x=r.bits,r.mode===zr&&(r.back=-1);break}for(r.back=0;U=r.lencode[_&(1<<r.lenbits)-1],N=U>>>24,j=U>>>16&255,H=U&65535,!(N<=x);){if(s===0)break e;s--,_+=i[a++]<<x,x+=8}if(j&&(j&240)===0){for(W=N,Z=j,K=H;U=r.lencode[K+((_&(1<<W+Z)-1)>>W)],N=U>>>24,j=U>>>16&255,H=U&65535,!(W+N<=x);){if(s===0)break e;s--,_+=i[a++]<<x,x+=8}_>>>=W,x-=W,r.back+=W}if(_>>>=N,x-=N,r.back+=N,r.length=H,j===0){r.mode=nE;break}if(j&32){r.back=-1,r.mode=zr;break}if(j&64){e.msg="invalid literal/length code",r.mode=Je;break}r.extra=j&15,r.mode=eE;case eE:if(r.extra){for(h=r.extra;x<h;){if(s===0)break e;s--,_+=i[a++]<<x,x+=8}r.length+=_&(1<<r.extra)-1,_>>>=r.extra,x-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=tE;case tE:for(;U=r.distcode[_&(1<<r.distbits)-1],N=U>>>24,j=U>>>16&255,H=U&65535,!(N<=x);){if(s===0)break e;s--,_+=i[a++]<<x,x+=8}if((j&240)===0){for(W=N,Z=j,K=H;U=r.distcode[K+((_&(1<<W+Z)-1)>>W)],N=U>>>24,j=U>>>16&255,H=U&65535,!(W+N<=x);){if(s===0)break e;s--,_+=i[a++]<<x,x+=8}_>>>=W,x-=W,r.back+=W}if(_>>>=N,x-=N,r.back+=N,j&64){e.msg="invalid distance code",r.mode=Je;break}r.offset=H,r.extra=j&15,r.mode=rE;case rE:if(r.extra){for(h=r.extra;x<h;){if(s===0)break e;s--,_+=i[a++]<<x,x+=8}r.offset+=_&(1<<r.extra)-1,_>>>=r.extra,x-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=Je;break}r.mode=iE;case iE:if(y===0)break e;if(T=R-y,r.offset>T){if(T=r.offset-T,T>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=Je;break}T>r.wnext?(T-=r.wnext,O=r.wsize-T):O=r.wnext-T,T>r.length&&(T=r.length),D=r.window}else D=n,O=o-r.offset,T=r.length;T>y&&(T=y),y-=T,r.length-=T;do n[o++]=D[O++];while(--T);r.length===0&&(r.mode=Pu);break;case nE:if(y===0)break e;n[o++]=r.length,y--,r.mode=Pu;break;case I0:if(r.wrap){for(;x<32;){if(s===0)break e;s--,_|=i[a++]<<x,x+=8}if(R-=y,e.total_out+=R,r.total+=R,R&&(e.adler=r.check=r.flags?Er(r.check,n,R,o-R):D0(r.check,n,R,o-R)),R=y,(r.flags?_:fE(_))!==r.check){e.msg="incorrect data check",r.mode=Je;break}_=0,x=0}r.mode=aE;case aE:if(r.wrap&&r.flags){for(;x<32;){if(s===0)break e;s--,_+=i[a++]<<x,x+=8}if(_!==(r.total&4294967295)){e.msg="incorrect length check",r.mode=Je;break}_=0,x=0}r.mode=oE;case oE:z=nO;break e;case Je:z=hE;break e;case P0:return N0;case fO:default:return Ht}return e.next_out=o,e.avail_out=y,e.next_in=a,e.avail_in=s,r.hold=_,r.bits=x,(r.wsize||R!==e.avail_out&&r.mode<Je&&(r.mode<I0||t!==Cx))&&gE(e,e.output,e.next_out,R-e.avail_out)?(r.mode=P0,N0):(B-=e.avail_in,R-=e.avail_out,e.total_in+=B,e.total_out+=R,r.total+=R,r.wrap&&R&&(e.adler=r.check=r.flags?Er(r.check,n,R,e.next_out-R):D0(r.check,n,R,e.next_out-R)),e.data_type=r.bits+(r.last?64:0)+(r.mode===zr?128:0)+(r.mode===Nu||r.mode===T0?256:0),(B===0&&R===0||t===Cx)&&z===cn&&(z=oO),z)}function yO(e){if(!e||!e.state)return Ht;var t=e.state;return t.window&&(t.window=null),e.state=null,cn}function gO(e,t){var r;return!e||!e.state||(r=e.state,(r.wrap&2)===0)?Ht:(r.head=t,t.done=!1,cn)}function bO(e,t){var r=t.length,i,n,a;return!e||!e.state||(i=e.state,i.wrap!==0&&i.mode!==Lu)?Ht:i.mode===Lu&&(n=1,n=D0(n,t,r,0),n!==i.check)?hE:(a=gE(e,t,r,r),a?(i.mode=P0,N0):(i.havedict=1,cn))}fr.inflateReset=pE;fr.inflateReset2=vE;fr.inflateResetKeep=dE;fr.inflateInit=dO;fr.inflateInit2=yE;fr.inflate=vO;fr.inflateEnd=yO;fr.inflateGetHeader=gO;fr.inflateSetDictionary=bO;fr.inflateInfo="pako inflate (from Nodeca project)"});var mE=k((IU,_E)=>{"use strict";m();_E.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}});var xE=k(F=>{"use strict";m();var kt=Po(),_O=K2(),ff=Rx(),dn=bE(),wE=mE();for(L0 in wE)F[L0]=wE[L0];var L0;F.NONE=0;F.DEFLATE=1;F.INFLATE=2;F.GZIP=3;F.GUNZIP=4;F.DEFLATERAW=5;F.INFLATERAW=6;F.UNZIP=7;var mO=31,wO=139;function gt(e){if(typeof e!="number"||e<F.DEFLATE||e>F.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=e,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}gt.prototype.close=function(){if(this.write_in_progress){this.pending_close=!0;return}this.pending_close=!1,kt(this.init_done,"close before init"),kt(this.mode<=F.UNZIP),this.mode===F.DEFLATE||this.mode===F.GZIP||this.mode===F.DEFLATERAW?ff.deflateEnd(this.strm):(this.mode===F.INFLATE||this.mode===F.GUNZIP||this.mode===F.INFLATERAW||this.mode===F.UNZIP)&&dn.inflateEnd(this.strm),this.mode=F.NONE,this.dictionary=null};gt.prototype.write=function(e,t,r,i,n,a,o){return this._write(!0,e,t,r,i,n,a,o)};gt.prototype.writeSync=function(e,t,r,i,n,a,o){return this._write(!1,e,t,r,i,n,a,o)};gt.prototype._write=function(e,t,r,i,n,a,o,s){if(kt.equal(arguments.length,8),kt(this.init_done,"write before init"),kt(this.mode!==F.NONE,"already finalized"),kt.equal(!1,this.write_in_progress,"write already in progress"),kt.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,kt.equal(!1,t===void 0,"must provide flush value"),this.write_in_progress=!0,t!==F.Z_NO_FLUSH&&t!==F.Z_PARTIAL_FLUSH&&t!==F.Z_SYNC_FLUSH&&t!==F.Z_FULL_FLUSH&&t!==F.Z_FINISH&&t!==F.Z_BLOCK)throw new Error("Invalid flush value");if(r==null&&(r=I.Buffer.alloc(0),n=0,i=0),this.strm.avail_in=n,this.strm.input=r,this.strm.next_in=i,this.strm.avail_out=s,this.strm.output=a,this.strm.next_out=o,this.flush=t,!e)return this._process(),this._checkError()?this._afterSync():void 0;var y=this;return M.default.nextTick(function(){y._process(),y._after()}),this};gt.prototype._afterSync=function(){var e=this.strm.avail_out,t=this.strm.avail_in;return this.write_in_progress=!1,[t,e]};gt.prototype._process=function(){var e=null;switch(this.mode){case F.DEFLATE:case F.GZIP:case F.DEFLATERAW:this.err=ff.deflate(this.strm,this.flush);break;case F.UNZIP:switch(this.strm.avail_in>0&&(e=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(e===null)break;if(this.strm.input[e]===mO){if(this.gzip_id_bytes_read=1,e++,this.strm.avail_in===1)break}else{this.mode=F.INFLATE;break}case 1:if(e===null)break;this.strm.input[e]===wO?(this.gzip_id_bytes_read=2,this.mode=F.GUNZIP):this.mode=F.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case F.INFLATE:case F.GUNZIP:case F.INFLATERAW:for(this.err=dn.inflate(this.strm,this.flush),this.err===F.Z_NEED_DICT&&this.dictionary&&(this.err=dn.inflateSetDictionary(this.strm,this.dictionary),this.err===F.Z_OK?this.err=dn.inflate(this.strm,this.flush):this.err===F.Z_DATA_ERROR&&(this.err=F.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===F.GUNZIP&&this.err===F.Z_STREAM_END&&this.strm.next_in[0]!==0;)this.reset(),this.err=dn.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}};gt.prototype._checkError=function(){switch(this.err){case F.Z_OK:case F.Z_BUF_ERROR:if(this.strm.avail_out!==0&&this.flush===F.Z_FINISH)return this._error("unexpected end of file"),!1;break;case F.Z_STREAM_END:break;case F.Z_NEED_DICT:return this.dictionary==null?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0};gt.prototype._after=function(){if(this._checkError()){var e=this.strm.avail_out,t=this.strm.avail_in;this.write_in_progress=!1,this.callback(t,e),this.pending_close&&this.close()}};gt.prototype._error=function(e){this.strm.msg&&(e=this.strm.msg),this.onerror(e,this.err),this.write_in_progress=!1,this.pending_close&&this.close()};gt.prototype.init=function(e,t,r,i,n){kt(arguments.length===4||arguments.length===5,"init(windowBits, level, memLevel, strategy, [dictionary])"),kt(e>=8&&e<=15,"invalid windowBits"),kt(t>=-1&&t<=9,"invalid compression level"),kt(r>=1&&r<=9,"invalid memlevel"),kt(i===F.Z_FILTERED||i===F.Z_HUFFMAN_ONLY||i===F.Z_RLE||i===F.Z_FIXED||i===F.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(t,e,r,i,n),this._setDictionary()};gt.prototype.params=function(){throw new Error("deflateParams Not supported")};gt.prototype.reset=function(){this._reset(),this._setDictionary()};gt.prototype._init=function(e,t,r,i,n){switch(this.level=e,this.windowBits=t,this.memLevel=r,this.strategy=i,this.flush=F.Z_NO_FLUSH,this.err=F.Z_OK,(this.mode===F.GZIP||this.mode===F.GUNZIP)&&(this.windowBits+=16),this.mode===F.UNZIP&&(this.windowBits+=32),(this.mode===F.DEFLATERAW||this.mode===F.INFLATERAW)&&(this.windowBits=-1*this.windowBits),this.strm=new _O,this.mode){case F.DEFLATE:case F.GZIP:case F.DEFLATERAW:this.err=ff.deflateInit2(this.strm,this.level,F.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case F.INFLATE:case F.GUNZIP:case F.INFLATERAW:case F.UNZIP:this.err=dn.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==F.Z_OK&&this._error("Init error"),this.dictionary=n,this.write_in_progress=!1,this.init_done=!0};gt.prototype._setDictionary=function(){if(this.dictionary!=null){switch(this.err=F.Z_OK,this.mode){case F.DEFLATE:case F.DEFLATERAW:this.err=ff.deflateSetDictionary(this.strm,this.dictionary);break;default:break}this.err!==F.Z_OK&&this._error("Failed to set dictionary")}};gt.prototype._reset=function(){switch(this.err=F.Z_OK,this.mode){case F.DEFLATE:case F.DEFLATERAW:case F.GZIP:this.err=ff.deflateReset(this.strm);break;case F.INFLATE:case F.INFLATERAW:case F.GUNZIP:this.err=dn.inflateReset(this.strm);break;default:break}this.err!==F.Z_OK&&this._error("Failed to reset stream")};F.Zlib=gt});var F0=k($=>{"use strict";m();var Sr=st().Buffer,AE=ls().Transform,te=xE(),ci=Gt(),sf=Po().ok,U0=st().kMaxLength,BE="Cannot create final Buffer. It would be larger than 0x"+U0.toString(16)+" bytes";te.Z_MIN_WINDOWBITS=8;te.Z_MAX_WINDOWBITS=15;te.Z_DEFAULT_WINDOWBITS=15;te.Z_MIN_CHUNK=64;te.Z_MAX_CHUNK=1/0;te.Z_DEFAULT_CHUNK=16*1024;te.Z_MIN_MEMLEVEL=1;te.Z_MAX_MEMLEVEL=9;te.Z_DEFAULT_MEMLEVEL=8;te.Z_MIN_LEVEL=-1;te.Z_MAX_LEVEL=9;te.Z_DEFAULT_LEVEL=te.Z_DEFAULT_COMPRESSION;var EE=Object.keys(te);for(Cu=0;Cu<EE.length;Cu++)Uu=EE[Cu],Uu.match(/^Z/)&&Object.defineProperty($,Uu,{enumerable:!0,value:te[Uu],writable:!1});var Uu,Cu,ju={Z_OK:te.Z_OK,Z_STREAM_END:te.Z_STREAM_END,Z_NEED_DICT:te.Z_NEED_DICT,Z_ERRNO:te.Z_ERRNO,Z_STREAM_ERROR:te.Z_STREAM_ERROR,Z_DATA_ERROR:te.Z_DATA_ERROR,Z_MEM_ERROR:te.Z_MEM_ERROR,Z_BUF_ERROR:te.Z_BUF_ERROR,Z_VERSION_ERROR:te.Z_VERSION_ERROR},SE=Object.keys(ju);for(Fu=0;Fu<SE.length;Fu++)C0=SE[Fu],ju[ju[C0]]=C0;var C0,Fu;Object.defineProperty($,"codes",{enumerable:!0,value:Object.freeze(ju),writable:!1});$.Deflate=pn;$.Inflate=vn;$.Gzip=yn;$.Gunzip=gn;$.DeflateRaw=bn;$.InflateRaw=_n;$.Unzip=mn;$.createDeflate=function(e){return new pn(e)};$.createInflate=function(e){return new vn(e)};$.createDeflateRaw=function(e){return new bn(e)};$.createInflateRaw=function(e){return new _n(e)};$.createGzip=function(e){return new yn(e)};$.createGunzip=function(e){return new gn(e)};$.createUnzip=function(e){return new mn(e)};$.deflate=function(e,t,r){return typeof t=="function"&&(r=t,t={}),wn(new pn(t),e,r)};$.deflateSync=function(e,t){return xn(new pn(t),e)};$.gzip=function(e,t,r){return typeof t=="function"&&(r=t,t={}),wn(new yn(t),e,r)};$.gzipSync=function(e,t){return xn(new yn(t),e)};$.deflateRaw=function(e,t,r){return typeof t=="function"&&(r=t,t={}),wn(new bn(t),e,r)};$.deflateRawSync=function(e,t){return xn(new bn(t),e)};$.unzip=function(e,t,r){return typeof t=="function"&&(r=t,t={}),wn(new mn(t),e,r)};$.unzipSync=function(e,t){return xn(new mn(t),e)};$.inflate=function(e,t,r){return typeof t=="function"&&(r=t,t={}),wn(new vn(t),e,r)};$.inflateSync=function(e,t){return xn(new vn(t),e)};$.gunzip=function(e,t,r){return typeof t=="function"&&(r=t,t={}),wn(new gn(t),e,r)};$.gunzipSync=function(e,t){return xn(new gn(t),e)};$.inflateRaw=function(e,t,r){return typeof t=="function"&&(r=t,t={}),wn(new _n(t),e,r)};$.inflateRawSync=function(e,t){return xn(new _n(t),e)};function wn(e,t,r){var i=[],n=0;e.on("error",o),e.on("end",s),e.end(t),a();function a(){for(var y;(y=e.read())!==null;)i.push(y),n+=y.length;e.once("readable",a)}function o(y){e.removeListener("end",s),e.removeListener("readable",a),r(y)}function s(){var y,_=null;n>=U0?_=new RangeError(BE):y=Sr.concat(i,n),i=[],e.close(),r(_,y)}}function xn(e,t){if(typeof t=="string"&&(t=Sr.from(t)),!Sr.isBuffer(t))throw new TypeError("Not a string or buffer");var r=e._finishFlushFlag;return e._processChunk(t,r)}function pn(e){if(!(this instanceof pn))return new pn(e);Qe.call(this,e,te.DEFLATE)}function vn(e){if(!(this instanceof vn))return new vn(e);Qe.call(this,e,te.INFLATE)}function yn(e){if(!(this instanceof yn))return new yn(e);Qe.call(this,e,te.GZIP)}function gn(e){if(!(this instanceof gn))return new gn(e);Qe.call(this,e,te.GUNZIP)}function bn(e){if(!(this instanceof bn))return new bn(e);Qe.call(this,e,te.DEFLATERAW)}function _n(e){if(!(this instanceof _n))return new _n(e);Qe.call(this,e,te.INFLATERAW)}function mn(e){if(!(this instanceof mn))return new mn(e);Qe.call(this,e,te.UNZIP)}function ME(e){return e===te.Z_NO_FLUSH||e===te.Z_PARTIAL_FLUSH||e===te.Z_SYNC_FLUSH||e===te.Z_FULL_FLUSH||e===te.Z_FINISH||e===te.Z_BLOCK}function Qe(e,t){var r=this;if(this._opts=e=e||{},this._chunkSize=e.chunkSize||$.Z_DEFAULT_CHUNK,AE.call(this,e),e.flush&&!ME(e.flush))throw new Error("Invalid flush flag: "+e.flush);if(e.finishFlush&&!ME(e.finishFlush))throw new Error("Invalid flush flag: "+e.finishFlush);if(this._flushFlag=e.flush||te.Z_NO_FLUSH,this._finishFlushFlag=typeof e.finishFlush<"u"?e.finishFlush:te.Z_FINISH,e.chunkSize&&(e.chunkSize<$.Z_MIN_CHUNK||e.chunkSize>$.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+e.chunkSize);if(e.windowBits&&(e.windowBits<$.Z_MIN_WINDOWBITS||e.windowBits>$.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+e.windowBits);if(e.level&&(e.level<$.Z_MIN_LEVEL||e.level>$.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+e.level);if(e.memLevel&&(e.memLevel<$.Z_MIN_MEMLEVEL||e.memLevel>$.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+e.memLevel);if(e.strategy&&e.strategy!=$.Z_FILTERED&&e.strategy!=$.Z_HUFFMAN_ONLY&&e.strategy!=$.Z_RLE&&e.strategy!=$.Z_FIXED&&e.strategy!=$.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+e.strategy);if(e.dictionary&&!Sr.isBuffer(e.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new te.Zlib(t);var i=this;this._hadError=!1,this._handle.onerror=function(o,s){zu(i),i._hadError=!0;var y=new Error(o);y.errno=s,y.code=$.codes[s],i.emit("error",y)};var n=$.Z_DEFAULT_COMPRESSION;typeof e.level=="number"&&(n=e.level);var a=$.Z_DEFAULT_STRATEGY;typeof e.strategy=="number"&&(a=e.strategy),this._handle.init(e.windowBits||$.Z_DEFAULT_WINDOWBITS,n,e.memLevel||$.Z_DEFAULT_MEMLEVEL,a,e.dictionary),this._buffer=Sr.allocUnsafe(this._chunkSize),this._offset=0,this._level=n,this._strategy=a,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!r._handle},configurable:!0,enumerable:!0})}ci.inherits(Qe,AE);Qe.prototype.params=function(e,t,r){if(e<$.Z_MIN_LEVEL||e>$.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+e);if(t!=$.Z_FILTERED&&t!=$.Z_HUFFMAN_ONLY&&t!=$.Z_RLE&&t!=$.Z_FIXED&&t!=$.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+t);if(this._level!==e||this._strategy!==t){var i=this;this.flush(te.Z_SYNC_FLUSH,function(){sf(i._handle,"zlib binding closed"),i._handle.params(e,t),i._hadError||(i._level=e,i._strategy=t,r&&r())})}else M.default.nextTick(r)};Qe.prototype.reset=function(){return sf(this._handle,"zlib binding closed"),this._handle.reset()};Qe.prototype._flush=function(e){this._transform(Sr.alloc(0),"",e)};Qe.prototype.flush=function(e,t){var r=this,i=this._writableState;(typeof e=="function"||e===void 0&&!t)&&(t=e,e=te.Z_FULL_FLUSH),i.ended?t&&M.default.nextTick(t):i.ending?t&&this.once("end",t):i.needDrain?t&&this.once("drain",function(){return r.flush(e,t)}):(this._flushFlag=e,this.write(Sr.alloc(0),"",t))};Qe.prototype.close=function(e){zu(this,e),M.default.nextTick(xO,this)};function zu(e,t){t&&M.default.nextTick(t),e._handle&&(e._handle.close(),e._handle=null)}function xO(e){e.emit("close")}Qe.prototype._transform=function(e,t,r){var i,n=this._writableState,a=n.ending||n.ended,o=a&&(!e||n.length===e.length);if(e!==null&&!Sr.isBuffer(e))return r(new Error("invalid input"));if(!this._handle)return r(new Error("zlib binding closed"));o?i=this._finishFlushFlag:(i=this._flushFlag,e.length>=n.length&&(this._flushFlag=this._opts.flush||te.Z_NO_FLUSH)),this._processChunk(e,i,r)};Qe.prototype._processChunk=function(e,t,r){var i=e&&e.length,n=this._chunkSize-this._offset,a=0,o=this,s=typeof r=="function";if(!s){var y=[],_=0,x;this.on("error",function(D){x=D}),sf(this._handle,"zlib binding closed");do var B=this._handle.writeSync(t,e,a,i,this._buffer,this._offset,n);while(!this._hadError&&O(B[0],B[1]));if(this._hadError)throw x;if(_>=U0)throw zu(this),new RangeError(BE);var R=Sr.concat(y,_);return zu(this),R}sf(this._handle,"zlib binding closed");var T=this._handle.write(t,e,a,i,this._buffer,this._offset,n);T.buffer=e,T.callback=O;function O(D,U){if(this&&(this.buffer=null,this.callback=null),!o._hadError){var N=n-U;if(sf(N>=0,"have should not go down"),N>0){var j=o._buffer.slice(o._offset,o._offset+N);o._offset+=N,s?o.push(j):(y.push(j),_+=j.length)}if((U===0||o._offset>=o._chunkSize)&&(n=o._chunkSize,o._offset=0,o._buffer=Sr.allocUnsafe(o._chunkSize)),U===0){if(a+=i-D,i=D,!s)return!0;var H=o._handle.write(t,e,a,i,o._buffer,o._offset,o._chunkSize);H.callback=O,H.buffer=e;return}if(!s)return!1;r()}}};ci.inherits(pn,Qe);ci.inherits(vn,Qe);ci.inherits(yn,Qe);ci.inherits(gn,Qe);ci.inherits(bn,Qe);ci.inherits(_n,Qe);ci.inherits(mn,Qe)});var OE=k((CU,IE)=>{"use strict";m();var j0=ew(),LU=$s(),RE=F0(),EO=8*1024*1024;function kE(e,t){var r=t&&t.maxDecompressedBytes||EO;return RE.gunzipSync(I.Buffer.from(e,"base64"),{maxOutputLength:r})}async function TE(e,t){if(!t.expectedIssuerDid)throw new Error("expectedIssuerDid is required to verify a status list (issuer pinning); refusing to read revocation state from an unpinned/unverified JWT");var r=t.didResolver;if(!r){var i=t.issuerJwks||(t.issuerPublicJwk?{keys:[t.issuerPublicJwk]}:null);if(!i)throw new Error("Provide params.didResolver, params.issuerJwks, or params.issuerPublicJwk to verify the status list signature");r=async function(){return{jwks:i}}}var n=await j0.verifyVcJwt(e,{didResolver:r,expectedIssuerDid:t.expectedIssuerDid,allowedAlgs:t.allowedAlgs,allowLegacyDER:t.allowLegacyDER,clockToleranceSec:t.clockToleranceSec});if(!n.valid)throw new Error("Status list signature verification failed: "+(n.error||"invalid signature"));return n.payload}async function SO(e){if(!e.issuerDid||!e.privateJwk)throw new Error("issuerDid and privateJwk are required");var t=e.listId||e.issuerDid+"/status/"+Date.now(),r=e.listSize||1e5,i=Math.ceil(r/8),n=I.Buffer.alloc(i,0),a=F0(),o=a.gzipSync(n),s=o.toString("base64"),y={"@context":["https://www.w3.org/2018/credentials/v1","https://w3id.org/vc/status-list/2021/v1"],type:["VerifiableCredential","StatusList2021Credential"],issuer:e.issuerDid,issuanceDate:new Date().toISOString(),credentialSubject:{id:t,type:"StatusList2021",statusPurpose:"revocation",encodedList:s}},_=await j0.issueVcJwt({issuerDid:e.issuerDid,subjectId:t,types:["VerifiableCredential","StatusList2021Credential"],credentialSubject:y.credentialSubject,privateJwk:e.privateJwk,alg:e.privateJwk.alg||"ES256"});return{listVcJwt:_.jwt,listId:t}}async function MO(e){if(!e.listVcJwt||e.index===void 0||!e.status||!e.privateJwk)throw new Error("listVcJwt, index, status, and privateJwk are required");if(e.status==="suspended")throw new Error("status 'suspended' is not supported by this list: its statusPurpose is 'revocation', and suspension would be written to the same bit and read back as 'revoked'. Maintain a separate list for suspension until statusPurpose is configurable.");var t=await TE(e.listVcJwt,e),r=t.vc.credentialSubject.encodedList,i=kE(r,e),n=Math.floor(e.index/8),a=e.index%8;if(n>=i.length)throw new Error("Index out of range");var o=e.status==="revoked"?1:0;o===1?i[n]|=1<<a:i[n]&=~(1<<a);var s=RE.gzipSync(i),y=s.toString("base64"),_={id:t.vc.credentialSubject.id,type:"StatusList2021",statusPurpose:"revocation",encodedList:y},x=await j0.issueVcJwt({issuerDid:t.iss,subjectId:t.vc.credentialSubject.id,types:["VerifiableCredential","StatusList2021Credential"],credentialSubject:_,privateJwk:e.privateJwk,alg:e.privateJwk.alg||"ES256"});return{listVcJwt:x.jwt}}async function AO(e){if(!e.listVcJwt||e.index===void 0)throw new Error("listVcJwt and index are required");var t=await TE(e.listVcJwt,e),r=t.vc.credentialSubject.encodedList,i=kE(r,e),n=Math.floor(e.index/8),a=e.index%8;if(n>=i.length)throw new Error("Index out of range");var o=i[n]>>a&1;return o===1?"revoked":"valid"}IE.exports={createStatusList:SO,updateStatusList:MO,getCredentialStatusEntry:AO}});var BO=k((FU,qE)=>{m();qE.exports=OE()});return BO();})();
73
+ `));var s=new ai({actual:e,expected:t,message:r,operator:n,stackStartFn:i});throw s.generatedMessage=o,s}}Ge.match=function e(t,r,i){z2(t,r,i,e,"match")};Ge.doesNotMatch=function e(t,r,i){z2(t,r,i,e,"doesNotMatch")};function Z2(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];N2.apply(void 0,[Z2,t.length].concat(t))}Ge.strict=F7(Z2,Ge,{equal:Ge.strictEqual,deepEqual:Ge.deepStrictEqual,notEqual:Ge.notStrictEqual,notDeepEqual:Ge.notDeepStrictEqual});Ge.strict.strict=Ge.strict});var K2=k((hU,W2)=>{"use strict";m();function z7(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}W2.exports=z7});var $o=k(mt=>{"use strict";m();var Z7=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function H7(e,t){return Object.prototype.hasOwnProperty.call(e,t)}mt.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if(typeof r!="object")throw new TypeError(r+"must be non-object");for(var i in r)H7(r,i)&&(e[i]=r[i])}}return e};mt.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var W7={arraySet:function(e,t,r,i,n){if(t.subarray&&e.subarray){e.set(t.subarray(r,r+i),n);return}for(var a=0;a<i;a++)e[n+a]=t[r+a]},flattenChunks:function(e){var t,r,i,n,a,o;for(i=0,t=0,r=e.length;t<r;t++)i+=e[t].length;for(o=new Uint8Array(i),n=0,t=0,r=e.length;t<r;t++)a=e[t],o.set(a,n),n+=a.length;return o}},K7={arraySet:function(e,t,r,i,n){for(var a=0;a<i;a++)e[n+a]=t[r+a]},flattenChunks:function(e){return[].concat.apply([],e)}};mt.setTyped=function(e){e?(mt.Buf8=Uint8Array,mt.Buf16=Uint16Array,mt.Buf32=Int32Array,mt.assign(mt,W7)):(mt.Buf8=Array,mt.Buf16=Array,mt.Buf32=Array,mt.assign(mt,K7))};mt.setTyped(Z7)});var vx=k(pa=>{"use strict";m();var G7=$o(),V7=4,G2=0,V2=1,$7=2;function da(e){for(var t=e.length;--t>=0;)e[t]=0}var Y7=0,ex=1,J7=2,X7=3,Q7=258,b0=29,tf=256,Jo=tf+1+b0,ca=30,_0=19,tx=2*Jo+1,fn=15,c0=16,eI=7,m0=256,rx=16,ix=17,nx=18,y0=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],Mu=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],tI=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ax=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],rI=512,jr=new Array((Jo+2)*2);da(jr);var Yo=new Array(ca*2);da(Yo);var Xo=new Array(rI);da(Xo);var Qo=new Array(Q7-X7+1);da(Qo);var w0=new Array(b0);da(w0);var Au=new Array(ca);da(Au);function d0(e,t,r,i,n){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=i,this.max_length=n,this.has_stree=e&&e.length}var ox,fx,sx;function p0(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function ux(e){return e<256?Xo[e]:Xo[256+(e>>>7)]}function ef(e,t){e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255}function At(e,t,r){e.bi_valid>c0-r?(e.bi_buf|=t<<e.bi_valid&65535,ef(e,e.bi_buf),e.bi_buf=t>>c0-e.bi_valid,e.bi_valid+=r-c0):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function _r(e,t,r){At(e,r[t*2],r[t*2+1])}function lx(e,t){var r=0;do r|=e&1,e>>>=1,r<<=1;while(--t>0);return r>>>1}function iI(e){e.bi_valid===16?(ef(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)}function nI(e,t){var r=t.dyn_tree,i=t.max_code,n=t.stat_desc.static_tree,a=t.stat_desc.has_stree,o=t.stat_desc.extra_bits,s=t.stat_desc.extra_base,y=t.stat_desc.max_length,b,x,B,R,T,O,D=0;for(R=0;R<=fn;R++)e.bl_count[R]=0;for(r[e.heap[e.heap_max]*2+1]=0,b=e.heap_max+1;b<tx;b++)x=e.heap[b],R=r[r[x*2+1]*2+1]+1,R>y&&(R=y,D++),r[x*2+1]=R,!(x>i)&&(e.bl_count[R]++,T=0,x>=s&&(T=o[x-s]),O=r[x*2],e.opt_len+=O*(R+T),a&&(e.static_len+=O*(n[x*2+1]+T)));if(D!==0){do{for(R=y-1;e.bl_count[R]===0;)R--;e.bl_count[R]--,e.bl_count[R+1]+=2,e.bl_count[y]--,D-=2}while(D>0);for(R=y;R!==0;R--)for(x=e.bl_count[R];x!==0;)B=e.heap[--b],!(B>i)&&(r[B*2+1]!==R&&(e.opt_len+=(R-r[B*2+1])*r[B*2],r[B*2+1]=R),x--)}}function hx(e,t,r){var i=new Array(fn+1),n=0,a,o;for(a=1;a<=fn;a++)i[a]=n=n+r[a-1]<<1;for(o=0;o<=t;o++){var s=e[o*2+1];s!==0&&(e[o*2]=lx(i[s]++,s))}}function aI(){var e,t,r,i,n,a=new Array(fn+1);for(r=0,i=0;i<b0-1;i++)for(w0[i]=r,e=0;e<1<<y0[i];e++)Qo[r++]=i;for(Qo[r-1]=i,n=0,i=0;i<16;i++)for(Au[i]=n,e=0;e<1<<Mu[i];e++)Xo[n++]=i;for(n>>=7;i<ca;i++)for(Au[i]=n<<7,e=0;e<1<<Mu[i]-7;e++)Xo[256+n++]=i;for(t=0;t<=fn;t++)a[t]=0;for(e=0;e<=143;)jr[e*2+1]=8,e++,a[8]++;for(;e<=255;)jr[e*2+1]=9,e++,a[9]++;for(;e<=279;)jr[e*2+1]=7,e++,a[7]++;for(;e<=287;)jr[e*2+1]=8,e++,a[8]++;for(hx(jr,Jo+1,a),e=0;e<ca;e++)Yo[e*2+1]=5,Yo[e*2]=lx(e,5);ox=new d0(jr,y0,tf+1,Jo,fn),fx=new d0(Yo,Mu,0,ca,fn),sx=new d0(new Array(0),tI,0,_0,eI)}function cx(e){var t;for(t=0;t<Jo;t++)e.dyn_ltree[t*2]=0;for(t=0;t<ca;t++)e.dyn_dtree[t*2]=0;for(t=0;t<_0;t++)e.bl_tree[t*2]=0;e.dyn_ltree[m0*2]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function dx(e){e.bi_valid>8?ef(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function oI(e,t,r,i){dx(e),i&&(ef(e,r),ef(e,~r)),G7.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}function $2(e,t,r,i){var n=t*2,a=r*2;return e[n]<e[a]||e[n]===e[a]&&i[t]<=i[r]}function v0(e,t,r){for(var i=e.heap[r],n=r<<1;n<=e.heap_len&&(n<e.heap_len&&$2(t,e.heap[n+1],e.heap[n],e.depth)&&n++,!$2(t,i,e.heap[n],e.depth));)e.heap[r]=e.heap[n],r=n,n<<=1;e.heap[r]=i}function Y2(e,t,r){var i,n,a=0,o,s;if(e.last_lit!==0)do i=e.pending_buf[e.d_buf+a*2]<<8|e.pending_buf[e.d_buf+a*2+1],n=e.pending_buf[e.l_buf+a],a++,i===0?_r(e,n,t):(o=Qo[n],_r(e,o+tf+1,t),s=y0[o],s!==0&&(n-=w0[o],At(e,n,s)),i--,o=ux(i),_r(e,o,r),s=Mu[o],s!==0&&(i-=Au[o],At(e,i,s)));while(a<e.last_lit);_r(e,m0,t)}function g0(e,t){var r=t.dyn_tree,i=t.stat_desc.static_tree,n=t.stat_desc.has_stree,a=t.stat_desc.elems,o,s,y=-1,b;for(e.heap_len=0,e.heap_max=tx,o=0;o<a;o++)r[o*2]!==0?(e.heap[++e.heap_len]=y=o,e.depth[o]=0):r[o*2+1]=0;for(;e.heap_len<2;)b=e.heap[++e.heap_len]=y<2?++y:0,r[b*2]=1,e.depth[b]=0,e.opt_len--,n&&(e.static_len-=i[b*2+1]);for(t.max_code=y,o=e.heap_len>>1;o>=1;o--)v0(e,r,o);b=a;do o=e.heap[1],e.heap[1]=e.heap[e.heap_len--],v0(e,r,1),s=e.heap[1],e.heap[--e.heap_max]=o,e.heap[--e.heap_max]=s,r[b*2]=r[o*2]+r[s*2],e.depth[b]=(e.depth[o]>=e.depth[s]?e.depth[o]:e.depth[s])+1,r[o*2+1]=r[s*2+1]=b,e.heap[1]=b++,v0(e,r,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],nI(e,t),hx(r,y,e.bl_count)}function J2(e,t,r){var i,n=-1,a,o=t[1],s=0,y=7,b=4;for(o===0&&(y=138,b=3),t[(r+1)*2+1]=65535,i=0;i<=r;i++)a=o,o=t[(i+1)*2+1],!(++s<y&&a===o)&&(s<b?e.bl_tree[a*2]+=s:a!==0?(a!==n&&e.bl_tree[a*2]++,e.bl_tree[rx*2]++):s<=10?e.bl_tree[ix*2]++:e.bl_tree[nx*2]++,s=0,n=a,o===0?(y=138,b=3):a===o?(y=6,b=3):(y=7,b=4))}function X2(e,t,r){var i,n=-1,a,o=t[1],s=0,y=7,b=4;for(o===0&&(y=138,b=3),i=0;i<=r;i++)if(a=o,o=t[(i+1)*2+1],!(++s<y&&a===o)){if(s<b)do _r(e,a,e.bl_tree);while(--s!==0);else a!==0?(a!==n&&(_r(e,a,e.bl_tree),s--),_r(e,rx,e.bl_tree),At(e,s-3,2)):s<=10?(_r(e,ix,e.bl_tree),At(e,s-3,3)):(_r(e,nx,e.bl_tree),At(e,s-11,7));s=0,n=a,o===0?(y=138,b=3):a===o?(y=6,b=3):(y=7,b=4)}}function fI(e){var t;for(J2(e,e.dyn_ltree,e.l_desc.max_code),J2(e,e.dyn_dtree,e.d_desc.max_code),g0(e,e.bl_desc),t=_0-1;t>=3&&e.bl_tree[ax[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t}function sI(e,t,r,i){var n;for(At(e,t-257,5),At(e,r-1,5),At(e,i-4,4),n=0;n<i;n++)At(e,e.bl_tree[ax[n]*2+1],3);X2(e,e.dyn_ltree,t-1),X2(e,e.dyn_dtree,r-1)}function uI(e){var t=4093624447,r;for(r=0;r<=31;r++,t>>>=1)if(t&1&&e.dyn_ltree[r*2]!==0)return G2;if(e.dyn_ltree[18]!==0||e.dyn_ltree[20]!==0||e.dyn_ltree[26]!==0)return V2;for(r=32;r<tf;r++)if(e.dyn_ltree[r*2]!==0)return V2;return G2}var Q2=!1;function lI(e){Q2||(aI(),Q2=!0),e.l_desc=new p0(e.dyn_ltree,ox),e.d_desc=new p0(e.dyn_dtree,fx),e.bl_desc=new p0(e.bl_tree,sx),e.bi_buf=0,e.bi_valid=0,cx(e)}function px(e,t,r,i){At(e,(Y7<<1)+(i?1:0),3),oI(e,t,r,!0)}function hI(e){At(e,ex<<1,3),_r(e,m0,jr),iI(e)}function cI(e,t,r,i){var n,a,o=0;e.level>0?(e.strm.data_type===$7&&(e.strm.data_type=uI(e)),g0(e,e.l_desc),g0(e,e.d_desc),o=fI(e),n=e.opt_len+3+7>>>3,a=e.static_len+3+7>>>3,a<=n&&(n=a)):n=a=r+5,r+4<=n&&t!==-1?px(e,t,r,i):e.strategy===V7||a===n?(At(e,(ex<<1)+(i?1:0),3),Y2(e,jr,Yo)):(At(e,(J7<<1)+(i?1:0),3),sI(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),Y2(e,e.dyn_ltree,e.dyn_dtree)),cx(e),i&&dx(e)}function dI(e,t,r){return e.pending_buf[e.d_buf+e.last_lit*2]=t>>>8&255,e.pending_buf[e.d_buf+e.last_lit*2+1]=t&255,e.pending_buf[e.l_buf+e.last_lit]=r&255,e.last_lit++,t===0?e.dyn_ltree[r*2]++:(e.matches++,t--,e.dyn_ltree[(Qo[r]+tf+1)*2]++,e.dyn_dtree[ux(t)*2]++),e.last_lit===e.lit_bufsize-1}pa._tr_init=lI;pa._tr_stored_block=px;pa._tr_flush_block=cI;pa._tr_tally=dI;pa._tr_align=hI});var x0=k((gU,yx)=>{"use strict";m();function pI(e,t,r,i){for(var n=e&65535|0,a=e>>>16&65535|0,o=0;r!==0;){o=r>2e3?2e3:r,r-=o;do n=n+t[i++]|0,a=a+n|0;while(--o);n%=65521,a%=65521}return n|a<<16|0}yx.exports=pI});var E0=k((_U,gx)=>{"use strict";m();function vI(){for(var e,t=[],r=0;r<256;r++){e=r;for(var i=0;i<8;i++)e=e&1?3988292384^e>>>1:e>>>1;t[r]=e}return t}var yI=vI();function gI(e,t,r,i){var n=yI,a=i+r;e^=-1;for(var o=i;o<a;o++)e=e>>>8^n[(e^t[o])&255];return e^-1}gx.exports=gI});var _x=k((wU,bx)=>{"use strict";m();bx.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}});var Rx=k(xr=>{"use strict";m();var wt=$o(),zt=vx(),Ex=x0(),oi=E0(),bI=_x(),hn=0,_I=1,mI=3,hi=4,mx=5,wr=0,wx=1,Zt=-2,wI=-3,S0=-5,xI=-1,EI=1,Bu=2,SI=3,MI=4,AI=0,BI=2,Iu=8,RI=9,kI=15,TI=8,II=29,OI=256,A0=OI+1+II,qI=30,DI=19,NI=2*A0+1,PI=15,je=3,ui=258,or=ui+je+1,LI=32,Ou=42,B0=69,Ru=73,ku=91,Tu=103,sn=113,nf=666,nt=1,af=2,un=3,ga=4,CI=3;function li(e,t){return e.msg=bI[t],t}function xx(e){return(e<<1)-(e>4?9:0)}function si(e){for(var t=e.length;--t>=0;)e[t]=0}function fi(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),r!==0&&(wt.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,t.pending===0&&(t.pending_out=0))}function ht(e,t){zt._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,fi(e.strm)}function Ze(e,t){e.pending_buf[e.pending++]=t}function rf(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255}function UI(e,t,r,i){var n=e.avail_in;return n>i&&(n=i),n===0?0:(e.avail_in-=n,wt.arraySet(t,e.input,e.next_in,n,r),e.state.wrap===1?e.adler=Ex(e.adler,t,n,r):e.state.wrap===2&&(e.adler=oi(e.adler,t,n,r)),e.next_in+=n,e.total_in+=n,n)}function Sx(e,t){var r=e.max_chain_length,i=e.strstart,n,a,o=e.prev_length,s=e.nice_match,y=e.strstart>e.w_size-or?e.strstart-(e.w_size-or):0,b=e.window,x=e.w_mask,B=e.prev,R=e.strstart+ui,T=b[i+o-1],O=b[i+o];e.prev_length>=e.good_match&&(r>>=2),s>e.lookahead&&(s=e.lookahead);do if(n=t,!(b[n+o]!==O||b[n+o-1]!==T||b[n]!==b[i]||b[++n]!==b[i+1])){i+=2,n++;do;while(b[++i]===b[++n]&&b[++i]===b[++n]&&b[++i]===b[++n]&&b[++i]===b[++n]&&b[++i]===b[++n]&&b[++i]===b[++n]&&b[++i]===b[++n]&&b[++i]===b[++n]&&i<R);if(a=ui-(R-i),i=R-ui,a>o){if(e.match_start=t,o=a,a>=s)break;T=b[i+o-1],O=b[i+o]}}while((t=B[t&x])>y&&--r!==0);return o<=e.lookahead?o:e.lookahead}function ln(e){var t=e.w_size,r,i,n,a,o;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-or)){wt.arraySet(e.window,e.window,t,t,0),e.match_start-=t,e.strstart-=t,e.block_start-=t,i=e.hash_size,r=i;do n=e.head[--r],e.head[r]=n>=t?n-t:0;while(--i);i=t,r=i;do n=e.prev[--r],e.prev[r]=n>=t?n-t:0;while(--i);a+=t}if(e.strm.avail_in===0)break;if(i=UI(e.strm,e.window,e.strstart+e.lookahead,a),e.lookahead+=i,e.lookahead+e.insert>=je)for(o=e.strstart-e.insert,e.ins_h=e.window[o],e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+je-1])&e.hash_mask,e.prev[o&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=o,o++,e.insert--,!(e.lookahead+e.insert<je)););}while(e.lookahead<or&&e.strm.avail_in!==0)}function FI(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(ln(e),e.lookahead===0&&t===hn)return nt;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;var i=e.block_start+r;if((e.strstart===0||e.strstart>=i)&&(e.lookahead=e.strstart-i,e.strstart=i,ht(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-or&&(ht(e,!1),e.strm.avail_out===0))return nt}return e.insert=0,t===hi?(ht(e,!0),e.strm.avail_out===0?un:ga):(e.strstart>e.block_start&&(ht(e,!1),e.strm.avail_out===0),nt)}function M0(e,t){for(var r,i;;){if(e.lookahead<or){if(ln(e),e.lookahead<or&&t===hn)return nt;if(e.lookahead===0)break}if(r=0,e.lookahead>=je&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+je-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),r!==0&&e.strstart-r<=e.w_size-or&&(e.match_length=Sx(e,r)),e.match_length>=je)if(i=zt._tr_tally(e,e.strstart-e.match_start,e.match_length-je),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=je){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+je-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else i=zt._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(ht(e,!1),e.strm.avail_out===0))return nt}return e.insert=e.strstart<je-1?e.strstart:je-1,t===hi?(ht(e,!0),e.strm.avail_out===0?un:ga):e.last_lit&&(ht(e,!1),e.strm.avail_out===0)?nt:af}function va(e,t){for(var r,i,n;;){if(e.lookahead<or){if(ln(e),e.lookahead<or&&t===hn)return nt;if(e.lookahead===0)break}if(r=0,e.lookahead>=je&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+je-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=je-1,r!==0&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-or&&(e.match_length=Sx(e,r),e.match_length<=5&&(e.strategy===EI||e.match_length===je&&e.strstart-e.match_start>4096)&&(e.match_length=je-1)),e.prev_length>=je&&e.match_length<=e.prev_length){n=e.strstart+e.lookahead-je,i=zt._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-je),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=n&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+je-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=je-1,e.strstart++,i&&(ht(e,!1),e.strm.avail_out===0))return nt}else if(e.match_available){if(i=zt._tr_tally(e,0,e.window[e.strstart-1]),i&&ht(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return nt}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=zt._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<je-1?e.strstart:je-1,t===hi?(ht(e,!0),e.strm.avail_out===0?un:ga):e.last_lit&&(ht(e,!1),e.strm.avail_out===0)?nt:af}function jI(e,t){for(var r,i,n,a,o=e.window;;){if(e.lookahead<=ui){if(ln(e),e.lookahead<=ui&&t===hn)return nt;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=je&&e.strstart>0&&(n=e.strstart-1,i=o[n],i===o[++n]&&i===o[++n]&&i===o[++n])){a=e.strstart+ui;do;while(i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&n<a);e.match_length=ui-(a-n),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=je?(r=zt._tr_tally(e,1,e.match_length-je),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=zt._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(ht(e,!1),e.strm.avail_out===0))return nt}return e.insert=0,t===hi?(ht(e,!0),e.strm.avail_out===0?un:ga):e.last_lit&&(ht(e,!1),e.strm.avail_out===0)?nt:af}function zI(e,t){for(var r;;){if(e.lookahead===0&&(ln(e),e.lookahead===0)){if(t===hn)return nt;break}if(e.match_length=0,r=zt._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(ht(e,!1),e.strm.avail_out===0))return nt}return e.insert=0,t===hi?(ht(e,!0),e.strm.avail_out===0?un:ga):e.last_lit&&(ht(e,!1),e.strm.avail_out===0)?nt:af}function mr(e,t,r,i,n){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=i,this.func=n}var ya;ya=[new mr(0,0,0,0,FI),new mr(4,4,8,4,M0),new mr(4,5,16,8,M0),new mr(4,6,32,32,M0),new mr(4,4,16,16,va),new mr(8,16,32,32,va),new mr(8,16,128,128,va),new mr(8,32,128,256,va),new mr(32,128,258,1024,va),new mr(32,258,258,4096,va)];function ZI(e){e.window_size=2*e.w_size,si(e.head),e.max_lazy_match=ya[e.level].max_lazy,e.good_match=ya[e.level].good_length,e.nice_match=ya[e.level].nice_length,e.max_chain_length=ya[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=je-1,e.match_available=0,e.ins_h=0}function HI(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Iu,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new wt.Buf16(NI*2),this.dyn_dtree=new wt.Buf16((2*qI+1)*2),this.bl_tree=new wt.Buf16((2*DI+1)*2),si(this.dyn_ltree),si(this.dyn_dtree),si(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new wt.Buf16(PI+1),this.heap=new wt.Buf16(2*A0+1),si(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new wt.Buf16(2*A0+1),si(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Mx(e){var t;return!e||!e.state?li(e,Zt):(e.total_in=e.total_out=0,e.data_type=BI,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?Ou:sn,e.adler=t.wrap===2?0:1,t.last_flush=hn,zt._tr_init(t),wr)}function Ax(e){var t=Mx(e);return t===wr&&ZI(e.state),t}function WI(e,t){return!e||!e.state||e.state.wrap!==2?Zt:(e.state.gzhead=t,wr)}function Bx(e,t,r,i,n,a){if(!e)return Zt;var o=1;if(t===xI&&(t=6),i<0?(o=0,i=-i):i>15&&(o=2,i-=16),n<1||n>RI||r!==Iu||i<8||i>15||t<0||t>9||a<0||a>MI)return li(e,Zt);i===8&&(i=9);var s=new HI;return e.state=s,s.strm=e,s.wrap=o,s.gzhead=null,s.w_bits=i,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=n+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+je-1)/je),s.window=new wt.Buf8(s.w_size*2),s.head=new wt.Buf16(s.hash_size),s.prev=new wt.Buf16(s.w_size),s.lit_bufsize=1<<n+6,s.pending_buf_size=s.lit_bufsize*4,s.pending_buf=new wt.Buf8(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=t,s.strategy=a,s.method=r,Ax(e)}function KI(e,t){return Bx(e,t,Iu,kI,TI,AI)}function GI(e,t){var r,i,n,a;if(!e||!e.state||t>mx||t<0)return e?li(e,Zt):Zt;if(i=e.state,!e.output||!e.input&&e.avail_in!==0||i.status===nf&&t!==hi)return li(e,e.avail_out===0?S0:Zt);if(i.strm=e,r=i.last_flush,i.last_flush=t,i.status===Ou)if(i.wrap===2)e.adler=0,Ze(i,31),Ze(i,139),Ze(i,8),i.gzhead?(Ze(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),Ze(i,i.gzhead.time&255),Ze(i,i.gzhead.time>>8&255),Ze(i,i.gzhead.time>>16&255),Ze(i,i.gzhead.time>>24&255),Ze(i,i.level===9?2:i.strategy>=Bu||i.level<2?4:0),Ze(i,i.gzhead.os&255),i.gzhead.extra&&i.gzhead.extra.length&&(Ze(i,i.gzhead.extra.length&255),Ze(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=oi(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=B0):(Ze(i,0),Ze(i,0),Ze(i,0),Ze(i,0),Ze(i,0),Ze(i,i.level===9?2:i.strategy>=Bu||i.level<2?4:0),Ze(i,CI),i.status=sn);else{var o=Iu+(i.w_bits-8<<4)<<8,s=-1;i.strategy>=Bu||i.level<2?s=0:i.level<6?s=1:i.level===6?s=2:s=3,o|=s<<6,i.strstart!==0&&(o|=LI),o+=31-o%31,i.status=sn,rf(i,o),i.strstart!==0&&(rf(i,e.adler>>>16),rf(i,e.adler&65535)),e.adler=1}if(i.status===B0)if(i.gzhead.extra){for(n=i.pending;i.gzindex<(i.gzhead.extra.length&65535)&&!(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(e.adler=oi(e.adler,i.pending_buf,i.pending-n,n)),fi(e),n=i.pending,i.pending===i.pending_buf_size));)Ze(i,i.gzhead.extra[i.gzindex]&255),i.gzindex++;i.gzhead.hcrc&&i.pending>n&&(e.adler=oi(e.adler,i.pending_buf,i.pending-n,n)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=Ru)}else i.status=Ru;if(i.status===Ru)if(i.gzhead.name){n=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(e.adler=oi(e.adler,i.pending_buf,i.pending-n,n)),fi(e),n=i.pending,i.pending===i.pending_buf_size)){a=1;break}i.gzindex<i.gzhead.name.length?a=i.gzhead.name.charCodeAt(i.gzindex++)&255:a=0,Ze(i,a)}while(a!==0);i.gzhead.hcrc&&i.pending>n&&(e.adler=oi(e.adler,i.pending_buf,i.pending-n,n)),a===0&&(i.gzindex=0,i.status=ku)}else i.status=ku;if(i.status===ku)if(i.gzhead.comment){n=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(e.adler=oi(e.adler,i.pending_buf,i.pending-n,n)),fi(e),n=i.pending,i.pending===i.pending_buf_size)){a=1;break}i.gzindex<i.gzhead.comment.length?a=i.gzhead.comment.charCodeAt(i.gzindex++)&255:a=0,Ze(i,a)}while(a!==0);i.gzhead.hcrc&&i.pending>n&&(e.adler=oi(e.adler,i.pending_buf,i.pending-n,n)),a===0&&(i.status=Tu)}else i.status=Tu;if(i.status===Tu&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&fi(e),i.pending+2<=i.pending_buf_size&&(Ze(i,e.adler&255),Ze(i,e.adler>>8&255),e.adler=0,i.status=sn)):i.status=sn),i.pending!==0){if(fi(e),e.avail_out===0)return i.last_flush=-1,wr}else if(e.avail_in===0&&xx(t)<=xx(r)&&t!==hi)return li(e,S0);if(i.status===nf&&e.avail_in!==0)return li(e,S0);if(e.avail_in!==0||i.lookahead!==0||t!==hn&&i.status!==nf){var y=i.strategy===Bu?zI(i,t):i.strategy===SI?jI(i,t):ya[i.level].func(i,t);if((y===un||y===ga)&&(i.status=nf),y===nt||y===un)return e.avail_out===0&&(i.last_flush=-1),wr;if(y===af&&(t===_I?zt._tr_align(i):t!==mx&&(zt._tr_stored_block(i,0,0,!1),t===mI&&(si(i.head),i.lookahead===0&&(i.strstart=0,i.block_start=0,i.insert=0))),fi(e),e.avail_out===0))return i.last_flush=-1,wr}return t!==hi?wr:i.wrap<=0?wx:(i.wrap===2?(Ze(i,e.adler&255),Ze(i,e.adler>>8&255),Ze(i,e.adler>>16&255),Ze(i,e.adler>>24&255),Ze(i,e.total_in&255),Ze(i,e.total_in>>8&255),Ze(i,e.total_in>>16&255),Ze(i,e.total_in>>24&255)):(rf(i,e.adler>>>16),rf(i,e.adler&65535)),fi(e),i.wrap>0&&(i.wrap=-i.wrap),i.pending!==0?wr:wx)}function VI(e){var t;return!e||!e.state?Zt:(t=e.state.status,t!==Ou&&t!==B0&&t!==Ru&&t!==ku&&t!==Tu&&t!==sn&&t!==nf?li(e,Zt):(e.state=null,t===sn?li(e,wI):wr))}function $I(e,t){var r=t.length,i,n,a,o,s,y,b,x;if(!e||!e.state||(i=e.state,o=i.wrap,o===2||o===1&&i.status!==Ou||i.lookahead))return Zt;for(o===1&&(e.adler=Ex(e.adler,t,r,0)),i.wrap=0,r>=i.w_size&&(o===0&&(si(i.head),i.strstart=0,i.block_start=0,i.insert=0),x=new wt.Buf8(i.w_size),wt.arraySet(x,t,r-i.w_size,i.w_size,0),t=x,r=i.w_size),s=e.avail_in,y=e.next_in,b=e.input,e.avail_in=r,e.next_in=0,e.input=t,ln(i);i.lookahead>=je;){n=i.strstart,a=i.lookahead-(je-1);do i.ins_h=(i.ins_h<<i.hash_shift^i.window[n+je-1])&i.hash_mask,i.prev[n&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=n,n++;while(--a);i.strstart=n,i.lookahead=je-1,ln(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=je-1,i.match_available=0,e.next_in=y,e.input=b,e.avail_in=s,i.wrap=o,wr}xr.deflateInit=KI;xr.deflateInit2=Bx;xr.deflateReset=Ax;xr.deflateResetKeep=Mx;xr.deflateSetHeader=WI;xr.deflate=GI;xr.deflateEnd=VI;xr.deflateSetDictionary=$I;xr.deflateInfo="pako deflate (from Nodeca project)"});var Tx=k((MU,kx)=>{"use strict";m();var qu=30,YI=12;kx.exports=function(t,r){var i,n,a,o,s,y,b,x,B,R,T,O,D,U,N,j,H,W,Z,K,J,z,X,A,h;i=t.state,n=t.next_in,A=t.input,a=n+(t.avail_in-5),o=t.next_out,h=t.output,s=o-(r-t.avail_out),y=o+(t.avail_out-257),b=i.dmax,x=i.wsize,B=i.whave,R=i.wnext,T=i.window,O=i.hold,D=i.bits,U=i.lencode,N=i.distcode,j=(1<<i.lenbits)-1,H=(1<<i.distbits)-1;e:do{D<15&&(O+=A[n++]<<D,D+=8,O+=A[n++]<<D,D+=8),W=U[O&j];t:for(;;){if(Z=W>>>24,O>>>=Z,D-=Z,Z=W>>>16&255,Z===0)h[o++]=W&65535;else if(Z&16){K=W&65535,Z&=15,Z&&(D<Z&&(O+=A[n++]<<D,D+=8),K+=O&(1<<Z)-1,O>>>=Z,D-=Z),D<15&&(O+=A[n++]<<D,D+=8,O+=A[n++]<<D,D+=8),W=N[O&H];r:for(;;){if(Z=W>>>24,O>>>=Z,D-=Z,Z=W>>>16&255,Z&16){if(J=W&65535,Z&=15,D<Z&&(O+=A[n++]<<D,D+=8,D<Z&&(O+=A[n++]<<D,D+=8)),J+=O&(1<<Z)-1,J>b){t.msg="invalid distance too far back",i.mode=qu;break e}if(O>>>=Z,D-=Z,Z=o-s,J>Z){if(Z=J-Z,Z>B&&i.sane){t.msg="invalid distance too far back",i.mode=qu;break e}if(z=0,X=T,R===0){if(z+=x-Z,Z<K){K-=Z;do h[o++]=T[z++];while(--Z);z=o-J,X=h}}else if(R<Z){if(z+=x+R-Z,Z-=R,Z<K){K-=Z;do h[o++]=T[z++];while(--Z);if(z=0,R<K){Z=R,K-=Z;do h[o++]=T[z++];while(--Z);z=o-J,X=h}}}else if(z+=R-Z,Z<K){K-=Z;do h[o++]=T[z++];while(--Z);z=o-J,X=h}for(;K>2;)h[o++]=X[z++],h[o++]=X[z++],h[o++]=X[z++],K-=3;K&&(h[o++]=X[z++],K>1&&(h[o++]=X[z++]))}else{z=o-J;do h[o++]=h[z++],h[o++]=h[z++],h[o++]=h[z++],K-=3;while(K>2);K&&(h[o++]=h[z++],K>1&&(h[o++]=h[z++]))}}else if((Z&64)===0){W=N[(W&65535)+(O&(1<<Z)-1)];continue r}else{t.msg="invalid distance code",i.mode=qu;break e}break}}else if((Z&64)===0){W=U[(W&65535)+(O&(1<<Z)-1)];continue t}else if(Z&32){i.mode=YI;break e}else{t.msg="invalid literal/length code",i.mode=qu;break e}break}}while(n<a&&o<y);K=D>>3,n-=K,D-=K<<3,O&=(1<<D)-1,t.next_in=n,t.next_out=o,t.avail_in=n<a?5+(a-n):5-(n-a),t.avail_out=o<y?257+(y-o):257-(o-y),i.hold=O,i.bits=D}});var Lx=k((BU,Px)=>{"use strict";m();var Ix=$o(),ba=15,Ox=852,qx=592,Dx=0,R0=1,Nx=2,JI=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],XI=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],QI=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],eO=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];Px.exports=function(t,r,i,n,a,o,s,y){var b=y.bits,x=0,B=0,R=0,T=0,O=0,D=0,U=0,N=0,j=0,H=0,W,Z,K,J,z,X=null,A=0,h,_=new Ix.Buf16(ba+1),d=new Ix.Buf16(ba+1),f=null,l=0,v,g,p;for(x=0;x<=ba;x++)_[x]=0;for(B=0;B<n;B++)_[r[i+B]]++;for(O=b,T=ba;T>=1&&_[T]===0;T--);if(O>T&&(O=T),T===0)return a[o++]=1<<24|64<<16|0,a[o++]=1<<24|64<<16|0,y.bits=1,0;for(R=1;R<T&&_[R]===0;R++);for(O<R&&(O=R),N=1,x=1;x<=ba;x++)if(N<<=1,N-=_[x],N<0)return-1;if(N>0&&(t===Dx||T!==1))return-1;for(d[1]=0,x=1;x<ba;x++)d[x+1]=d[x]+_[x];for(B=0;B<n;B++)r[i+B]!==0&&(s[d[r[i+B]]++]=B);if(t===Dx?(X=f=s,h=19):t===R0?(X=JI,A-=257,f=XI,l-=257,h=256):(X=QI,f=eO,h=-1),H=0,B=0,x=R,z=o,D=O,U=0,K=-1,j=1<<O,J=j-1,t===R0&&j>Ox||t===Nx&&j>qx)return 1;for(;;){v=x-U,s[B]<h?(g=0,p=s[B]):s[B]>h?(g=f[l+s[B]],p=X[A+s[B]]):(g=96,p=0),W=1<<x-U,Z=1<<D,R=Z;do Z-=W,a[z+(H>>U)+Z]=v<<24|g<<16|p|0;while(Z!==0);for(W=1<<x-1;H&W;)W>>=1;if(W!==0?(H&=W-1,H+=W):H=0,B++,--_[x]===0){if(x===T)break;x=r[i+s[B]]}if(x>O&&(H&J)!==K){for(U===0&&(U=O),z+=R,D=x-U,N=1<<D;D+U<T&&(N-=_[D+U],!(N<=0));)D++,N<<=1;if(j+=1<<D,t===R0&&j>Ox||t===Nx&&j>qx)return 1;K=H&J,a[K]=O<<24|D<<16|z-o|0}}return H!==0&&(a[z+H]=x-U<<24|64<<16|0),y.bits=O,0}});var bE=k(fr=>{"use strict";m();var Rt=$o(),D0=x0(),Er=E0(),tO=Tx(),of=Lx(),rO=0,uE=1,lE=2,Cx=4,iO=5,Du=6,cn=0,nO=1,aO=2,Ht=-2,hE=-3,N0=-4,oO=-5,Ux=8,cE=1,Fx=2,jx=3,zx=4,Zx=5,Hx=6,Wx=7,Kx=8,Gx=9,Vx=10,Lu=11,zr=12,k0=13,$x=14,T0=15,Yx=16,Jx=17,Xx=18,Qx=19,Nu=20,Pu=21,eE=22,tE=23,rE=24,iE=25,nE=26,I0=27,aE=28,oE=29,Je=30,P0=31,fO=32,sO=852,uO=592,lO=15,hO=lO;function fE(e){return(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24)}function cO(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Rt.Buf16(320),this.work=new Rt.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function dE(e){var t;return!e||!e.state?Ht:(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=cE,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Rt.Buf32(sO),t.distcode=t.distdyn=new Rt.Buf32(uO),t.sane=1,t.back=-1,cn)}function pE(e){var t;return!e||!e.state?Ht:(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,dE(e))}function vE(e,t){var r,i;return!e||!e.state||(i=e.state,t<0?(r=0,t=-t):(r=(t>>4)+1,t<48&&(t&=15)),t&&(t<8||t>15))?Ht:(i.window!==null&&i.wbits!==t&&(i.window=null),i.wrap=r,i.wbits=t,pE(e))}function yE(e,t){var r,i;return e?(i=new cO,e.state=i,i.window=null,r=vE(e,t),r!==cn&&(e.state=null),r):Ht}function dO(e){return yE(e,hO)}var sE=!0,O0,q0;function pO(e){if(sE){var t;for(O0=new Rt.Buf32(512),q0=new Rt.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(of(uE,e.lens,0,288,O0,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;of(lE,e.lens,0,32,q0,0,e.work,{bits:5}),sE=!1}e.lencode=O0,e.lenbits=9,e.distcode=q0,e.distbits=5}function gE(e,t,r,i){var n,a=e.state;return a.window===null&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new Rt.Buf8(a.wsize)),i>=a.wsize?(Rt.arraySet(a.window,t,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(n=a.wsize-a.wnext,n>i&&(n=i),Rt.arraySet(a.window,t,r-i,n,a.wnext),i-=n,i?(Rt.arraySet(a.window,t,r-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=n,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=n))),0}function vO(e,t){var r,i,n,a,o,s,y,b,x,B,R,T,O,D,U=0,N,j,H,W,Z,K,J,z,X=new Rt.Buf8(4),A,h,_=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&e.avail_in!==0)return Ht;r=e.state,r.mode===zr&&(r.mode=k0),o=e.next_out,n=e.output,y=e.avail_out,a=e.next_in,i=e.input,s=e.avail_in,b=r.hold,x=r.bits,B=s,R=y,z=cn;e:for(;;)switch(r.mode){case cE:if(r.wrap===0){r.mode=k0;break}for(;x<16;){if(s===0)break e;s--,b+=i[a++]<<x,x+=8}if(r.wrap&2&&b===35615){r.check=0,X[0]=b&255,X[1]=b>>>8&255,r.check=Er(r.check,X,2,0),b=0,x=0,r.mode=Fx;break}if(r.flags=0,r.head&&(r.head.done=!1),!(r.wrap&1)||(((b&255)<<8)+(b>>8))%31){e.msg="incorrect header check",r.mode=Je;break}if((b&15)!==Ux){e.msg="unknown compression method",r.mode=Je;break}if(b>>>=4,x-=4,J=(b&15)+8,r.wbits===0)r.wbits=J;else if(J>r.wbits){e.msg="invalid window size",r.mode=Je;break}r.dmax=1<<J,e.adler=r.check=1,r.mode=b&512?Vx:zr,b=0,x=0;break;case Fx:for(;x<16;){if(s===0)break e;s--,b+=i[a++]<<x,x+=8}if(r.flags=b,(r.flags&255)!==Ux){e.msg="unknown compression method",r.mode=Je;break}if(r.flags&57344){e.msg="unknown header flags set",r.mode=Je;break}r.head&&(r.head.text=b>>8&1),r.flags&512&&(X[0]=b&255,X[1]=b>>>8&255,r.check=Er(r.check,X,2,0)),b=0,x=0,r.mode=jx;case jx:for(;x<32;){if(s===0)break e;s--,b+=i[a++]<<x,x+=8}r.head&&(r.head.time=b),r.flags&512&&(X[0]=b&255,X[1]=b>>>8&255,X[2]=b>>>16&255,X[3]=b>>>24&255,r.check=Er(r.check,X,4,0)),b=0,x=0,r.mode=zx;case zx:for(;x<16;){if(s===0)break e;s--,b+=i[a++]<<x,x+=8}r.head&&(r.head.xflags=b&255,r.head.os=b>>8),r.flags&512&&(X[0]=b&255,X[1]=b>>>8&255,r.check=Er(r.check,X,2,0)),b=0,x=0,r.mode=Zx;case Zx:if(r.flags&1024){for(;x<16;){if(s===0)break e;s--,b+=i[a++]<<x,x+=8}r.length=b,r.head&&(r.head.extra_len=b),r.flags&512&&(X[0]=b&255,X[1]=b>>>8&255,r.check=Er(r.check,X,2,0)),b=0,x=0}else r.head&&(r.head.extra=null);r.mode=Hx;case Hx:if(r.flags&1024&&(T=r.length,T>s&&(T=s),T&&(r.head&&(J=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),Rt.arraySet(r.head.extra,i,a,T,J)),r.flags&512&&(r.check=Er(r.check,i,T,a)),s-=T,a+=T,r.length-=T),r.length))break e;r.length=0,r.mode=Wx;case Wx:if(r.flags&2048){if(s===0)break e;T=0;do J=i[a+T++],r.head&&J&&r.length<65536&&(r.head.name+=String.fromCharCode(J));while(J&&T<s);if(r.flags&512&&(r.check=Er(r.check,i,T,a)),s-=T,a+=T,J)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=Kx;case Kx:if(r.flags&4096){if(s===0)break e;T=0;do J=i[a+T++],r.head&&J&&r.length<65536&&(r.head.comment+=String.fromCharCode(J));while(J&&T<s);if(r.flags&512&&(r.check=Er(r.check,i,T,a)),s-=T,a+=T,J)break e}else r.head&&(r.head.comment=null);r.mode=Gx;case Gx:if(r.flags&512){for(;x<16;){if(s===0)break e;s--,b+=i[a++]<<x,x+=8}if(b!==(r.check&65535)){e.msg="header crc mismatch",r.mode=Je;break}b=0,x=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=zr;break;case Vx:for(;x<32;){if(s===0)break e;s--,b+=i[a++]<<x,x+=8}e.adler=r.check=fE(b),b=0,x=0,r.mode=Lu;case Lu:if(r.havedict===0)return e.next_out=o,e.avail_out=y,e.next_in=a,e.avail_in=s,r.hold=b,r.bits=x,aO;e.adler=r.check=1,r.mode=zr;case zr:if(t===iO||t===Du)break e;case k0:if(r.last){b>>>=x&7,x-=x&7,r.mode=I0;break}for(;x<3;){if(s===0)break e;s--,b+=i[a++]<<x,x+=8}switch(r.last=b&1,b>>>=1,x-=1,b&3){case 0:r.mode=$x;break;case 1:if(pO(r),r.mode=Nu,t===Du){b>>>=2,x-=2;break e}break;case 2:r.mode=Jx;break;case 3:e.msg="invalid block type",r.mode=Je}b>>>=2,x-=2;break;case $x:for(b>>>=x&7,x-=x&7;x<32;){if(s===0)break e;s--,b+=i[a++]<<x,x+=8}if((b&65535)!==(b>>>16^65535)){e.msg="invalid stored block lengths",r.mode=Je;break}if(r.length=b&65535,b=0,x=0,r.mode=T0,t===Du)break e;case T0:r.mode=Yx;case Yx:if(T=r.length,T){if(T>s&&(T=s),T>y&&(T=y),T===0)break e;Rt.arraySet(n,i,a,T,o),s-=T,a+=T,y-=T,o+=T,r.length-=T;break}r.mode=zr;break;case Jx:for(;x<14;){if(s===0)break e;s--,b+=i[a++]<<x,x+=8}if(r.nlen=(b&31)+257,b>>>=5,x-=5,r.ndist=(b&31)+1,b>>>=5,x-=5,r.ncode=(b&15)+4,b>>>=4,x-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=Je;break}r.have=0,r.mode=Xx;case Xx:for(;r.have<r.ncode;){for(;x<3;){if(s===0)break e;s--,b+=i[a++]<<x,x+=8}r.lens[_[r.have++]]=b&7,b>>>=3,x-=3}for(;r.have<19;)r.lens[_[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,A={bits:r.lenbits},z=of(rO,r.lens,0,19,r.lencode,0,r.work,A),r.lenbits=A.bits,z){e.msg="invalid code lengths set",r.mode=Je;break}r.have=0,r.mode=Qx;case Qx:for(;r.have<r.nlen+r.ndist;){for(;U=r.lencode[b&(1<<r.lenbits)-1],N=U>>>24,j=U>>>16&255,H=U&65535,!(N<=x);){if(s===0)break e;s--,b+=i[a++]<<x,x+=8}if(H<16)b>>>=N,x-=N,r.lens[r.have++]=H;else{if(H===16){for(h=N+2;x<h;){if(s===0)break e;s--,b+=i[a++]<<x,x+=8}if(b>>>=N,x-=N,r.have===0){e.msg="invalid bit length repeat",r.mode=Je;break}J=r.lens[r.have-1],T=3+(b&3),b>>>=2,x-=2}else if(H===17){for(h=N+3;x<h;){if(s===0)break e;s--,b+=i[a++]<<x,x+=8}b>>>=N,x-=N,J=0,T=3+(b&7),b>>>=3,x-=3}else{for(h=N+7;x<h;){if(s===0)break e;s--,b+=i[a++]<<x,x+=8}b>>>=N,x-=N,J=0,T=11+(b&127),b>>>=7,x-=7}if(r.have+T>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=Je;break}for(;T--;)r.lens[r.have++]=J}}if(r.mode===Je)break;if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block",r.mode=Je;break}if(r.lenbits=9,A={bits:r.lenbits},z=of(uE,r.lens,0,r.nlen,r.lencode,0,r.work,A),r.lenbits=A.bits,z){e.msg="invalid literal/lengths set",r.mode=Je;break}if(r.distbits=6,r.distcode=r.distdyn,A={bits:r.distbits},z=of(lE,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,A),r.distbits=A.bits,z){e.msg="invalid distances set",r.mode=Je;break}if(r.mode=Nu,t===Du)break e;case Nu:r.mode=Pu;case Pu:if(s>=6&&y>=258){e.next_out=o,e.avail_out=y,e.next_in=a,e.avail_in=s,r.hold=b,r.bits=x,tO(e,R),o=e.next_out,n=e.output,y=e.avail_out,a=e.next_in,i=e.input,s=e.avail_in,b=r.hold,x=r.bits,r.mode===zr&&(r.back=-1);break}for(r.back=0;U=r.lencode[b&(1<<r.lenbits)-1],N=U>>>24,j=U>>>16&255,H=U&65535,!(N<=x);){if(s===0)break e;s--,b+=i[a++]<<x,x+=8}if(j&&(j&240)===0){for(W=N,Z=j,K=H;U=r.lencode[K+((b&(1<<W+Z)-1)>>W)],N=U>>>24,j=U>>>16&255,H=U&65535,!(W+N<=x);){if(s===0)break e;s--,b+=i[a++]<<x,x+=8}b>>>=W,x-=W,r.back+=W}if(b>>>=N,x-=N,r.back+=N,r.length=H,j===0){r.mode=nE;break}if(j&32){r.back=-1,r.mode=zr;break}if(j&64){e.msg="invalid literal/length code",r.mode=Je;break}r.extra=j&15,r.mode=eE;case eE:if(r.extra){for(h=r.extra;x<h;){if(s===0)break e;s--,b+=i[a++]<<x,x+=8}r.length+=b&(1<<r.extra)-1,b>>>=r.extra,x-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=tE;case tE:for(;U=r.distcode[b&(1<<r.distbits)-1],N=U>>>24,j=U>>>16&255,H=U&65535,!(N<=x);){if(s===0)break e;s--,b+=i[a++]<<x,x+=8}if((j&240)===0){for(W=N,Z=j,K=H;U=r.distcode[K+((b&(1<<W+Z)-1)>>W)],N=U>>>24,j=U>>>16&255,H=U&65535,!(W+N<=x);){if(s===0)break e;s--,b+=i[a++]<<x,x+=8}b>>>=W,x-=W,r.back+=W}if(b>>>=N,x-=N,r.back+=N,j&64){e.msg="invalid distance code",r.mode=Je;break}r.offset=H,r.extra=j&15,r.mode=rE;case rE:if(r.extra){for(h=r.extra;x<h;){if(s===0)break e;s--,b+=i[a++]<<x,x+=8}r.offset+=b&(1<<r.extra)-1,b>>>=r.extra,x-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=Je;break}r.mode=iE;case iE:if(y===0)break e;if(T=R-y,r.offset>T){if(T=r.offset-T,T>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=Je;break}T>r.wnext?(T-=r.wnext,O=r.wsize-T):O=r.wnext-T,T>r.length&&(T=r.length),D=r.window}else D=n,O=o-r.offset,T=r.length;T>y&&(T=y),y-=T,r.length-=T;do n[o++]=D[O++];while(--T);r.length===0&&(r.mode=Pu);break;case nE:if(y===0)break e;n[o++]=r.length,y--,r.mode=Pu;break;case I0:if(r.wrap){for(;x<32;){if(s===0)break e;s--,b|=i[a++]<<x,x+=8}if(R-=y,e.total_out+=R,r.total+=R,R&&(e.adler=r.check=r.flags?Er(r.check,n,R,o-R):D0(r.check,n,R,o-R)),R=y,(r.flags?b:fE(b))!==r.check){e.msg="incorrect data check",r.mode=Je;break}b=0,x=0}r.mode=aE;case aE:if(r.wrap&&r.flags){for(;x<32;){if(s===0)break e;s--,b+=i[a++]<<x,x+=8}if(b!==(r.total&4294967295)){e.msg="incorrect length check",r.mode=Je;break}b=0,x=0}r.mode=oE;case oE:z=nO;break e;case Je:z=hE;break e;case P0:return N0;case fO:default:return Ht}return e.next_out=o,e.avail_out=y,e.next_in=a,e.avail_in=s,r.hold=b,r.bits=x,(r.wsize||R!==e.avail_out&&r.mode<Je&&(r.mode<I0||t!==Cx))&&gE(e,e.output,e.next_out,R-e.avail_out)?(r.mode=P0,N0):(B-=e.avail_in,R-=e.avail_out,e.total_in+=B,e.total_out+=R,r.total+=R,r.wrap&&R&&(e.adler=r.check=r.flags?Er(r.check,n,R,e.next_out-R):D0(r.check,n,R,e.next_out-R)),e.data_type=r.bits+(r.last?64:0)+(r.mode===zr?128:0)+(r.mode===Nu||r.mode===T0?256:0),(B===0&&R===0||t===Cx)&&z===cn&&(z=oO),z)}function yO(e){if(!e||!e.state)return Ht;var t=e.state;return t.window&&(t.window=null),e.state=null,cn}function gO(e,t){var r;return!e||!e.state||(r=e.state,(r.wrap&2)===0)?Ht:(r.head=t,t.done=!1,cn)}function bO(e,t){var r=t.length,i,n,a;return!e||!e.state||(i=e.state,i.wrap!==0&&i.mode!==Lu)?Ht:i.mode===Lu&&(n=1,n=D0(n,t,r,0),n!==i.check)?hE:(a=gE(e,t,r,r),a?(i.mode=P0,N0):(i.havedict=1,cn))}fr.inflateReset=pE;fr.inflateReset2=vE;fr.inflateResetKeep=dE;fr.inflateInit=dO;fr.inflateInit2=yE;fr.inflate=vO;fr.inflateEnd=yO;fr.inflateGetHeader=gO;fr.inflateSetDictionary=bO;fr.inflateInfo="pako inflate (from Nodeca project)"});var mE=k((IU,_E)=>{"use strict";m();_E.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}});var xE=k(F=>{"use strict";m();var kt=Po(),_O=K2(),ff=Rx(),dn=bE(),wE=mE();for(L0 in wE)F[L0]=wE[L0];var L0;F.NONE=0;F.DEFLATE=1;F.INFLATE=2;F.GZIP=3;F.GUNZIP=4;F.DEFLATERAW=5;F.INFLATERAW=6;F.UNZIP=7;var mO=31,wO=139;function gt(e){if(typeof e!="number"||e<F.DEFLATE||e>F.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=e,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}gt.prototype.close=function(){if(this.write_in_progress){this.pending_close=!0;return}this.pending_close=!1,kt(this.init_done,"close before init"),kt(this.mode<=F.UNZIP),this.mode===F.DEFLATE||this.mode===F.GZIP||this.mode===F.DEFLATERAW?ff.deflateEnd(this.strm):(this.mode===F.INFLATE||this.mode===F.GUNZIP||this.mode===F.INFLATERAW||this.mode===F.UNZIP)&&dn.inflateEnd(this.strm),this.mode=F.NONE,this.dictionary=null};gt.prototype.write=function(e,t,r,i,n,a,o){return this._write(!0,e,t,r,i,n,a,o)};gt.prototype.writeSync=function(e,t,r,i,n,a,o){return this._write(!1,e,t,r,i,n,a,o)};gt.prototype._write=function(e,t,r,i,n,a,o,s){if(kt.equal(arguments.length,8),kt(this.init_done,"write before init"),kt(this.mode!==F.NONE,"already finalized"),kt.equal(!1,this.write_in_progress,"write already in progress"),kt.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,kt.equal(!1,t===void 0,"must provide flush value"),this.write_in_progress=!0,t!==F.Z_NO_FLUSH&&t!==F.Z_PARTIAL_FLUSH&&t!==F.Z_SYNC_FLUSH&&t!==F.Z_FULL_FLUSH&&t!==F.Z_FINISH&&t!==F.Z_BLOCK)throw new Error("Invalid flush value");if(r==null&&(r=I.Buffer.alloc(0),n=0,i=0),this.strm.avail_in=n,this.strm.input=r,this.strm.next_in=i,this.strm.avail_out=s,this.strm.output=a,this.strm.next_out=o,this.flush=t,!e)return this._process(),this._checkError()?this._afterSync():void 0;var y=this;return M.default.nextTick(function(){y._process(),y._after()}),this};gt.prototype._afterSync=function(){var e=this.strm.avail_out,t=this.strm.avail_in;return this.write_in_progress=!1,[t,e]};gt.prototype._process=function(){var e=null;switch(this.mode){case F.DEFLATE:case F.GZIP:case F.DEFLATERAW:this.err=ff.deflate(this.strm,this.flush);break;case F.UNZIP:switch(this.strm.avail_in>0&&(e=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(e===null)break;if(this.strm.input[e]===mO){if(this.gzip_id_bytes_read=1,e++,this.strm.avail_in===1)break}else{this.mode=F.INFLATE;break}case 1:if(e===null)break;this.strm.input[e]===wO?(this.gzip_id_bytes_read=2,this.mode=F.GUNZIP):this.mode=F.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case F.INFLATE:case F.GUNZIP:case F.INFLATERAW:for(this.err=dn.inflate(this.strm,this.flush),this.err===F.Z_NEED_DICT&&this.dictionary&&(this.err=dn.inflateSetDictionary(this.strm,this.dictionary),this.err===F.Z_OK?this.err=dn.inflate(this.strm,this.flush):this.err===F.Z_DATA_ERROR&&(this.err=F.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===F.GUNZIP&&this.err===F.Z_STREAM_END&&this.strm.next_in[0]!==0;)this.reset(),this.err=dn.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}};gt.prototype._checkError=function(){switch(this.err){case F.Z_OK:case F.Z_BUF_ERROR:if(this.strm.avail_out!==0&&this.flush===F.Z_FINISH)return this._error("unexpected end of file"),!1;break;case F.Z_STREAM_END:break;case F.Z_NEED_DICT:return this.dictionary==null?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0};gt.prototype._after=function(){if(this._checkError()){var e=this.strm.avail_out,t=this.strm.avail_in;this.write_in_progress=!1,this.callback(t,e),this.pending_close&&this.close()}};gt.prototype._error=function(e){this.strm.msg&&(e=this.strm.msg),this.onerror(e,this.err),this.write_in_progress=!1,this.pending_close&&this.close()};gt.prototype.init=function(e,t,r,i,n){kt(arguments.length===4||arguments.length===5,"init(windowBits, level, memLevel, strategy, [dictionary])"),kt(e>=8&&e<=15,"invalid windowBits"),kt(t>=-1&&t<=9,"invalid compression level"),kt(r>=1&&r<=9,"invalid memlevel"),kt(i===F.Z_FILTERED||i===F.Z_HUFFMAN_ONLY||i===F.Z_RLE||i===F.Z_FIXED||i===F.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(t,e,r,i,n),this._setDictionary()};gt.prototype.params=function(){throw new Error("deflateParams Not supported")};gt.prototype.reset=function(){this._reset(),this._setDictionary()};gt.prototype._init=function(e,t,r,i,n){switch(this.level=e,this.windowBits=t,this.memLevel=r,this.strategy=i,this.flush=F.Z_NO_FLUSH,this.err=F.Z_OK,(this.mode===F.GZIP||this.mode===F.GUNZIP)&&(this.windowBits+=16),this.mode===F.UNZIP&&(this.windowBits+=32),(this.mode===F.DEFLATERAW||this.mode===F.INFLATERAW)&&(this.windowBits=-1*this.windowBits),this.strm=new _O,this.mode){case F.DEFLATE:case F.GZIP:case F.DEFLATERAW:this.err=ff.deflateInit2(this.strm,this.level,F.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case F.INFLATE:case F.GUNZIP:case F.INFLATERAW:case F.UNZIP:this.err=dn.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==F.Z_OK&&this._error("Init error"),this.dictionary=n,this.write_in_progress=!1,this.init_done=!0};gt.prototype._setDictionary=function(){if(this.dictionary!=null){switch(this.err=F.Z_OK,this.mode){case F.DEFLATE:case F.DEFLATERAW:this.err=ff.deflateSetDictionary(this.strm,this.dictionary);break;default:break}this.err!==F.Z_OK&&this._error("Failed to set dictionary")}};gt.prototype._reset=function(){switch(this.err=F.Z_OK,this.mode){case F.DEFLATE:case F.DEFLATERAW:case F.GZIP:this.err=ff.deflateReset(this.strm);break;case F.INFLATE:case F.INFLATERAW:case F.GUNZIP:this.err=dn.inflateReset(this.strm);break;default:break}this.err!==F.Z_OK&&this._error("Failed to reset stream")};F.Zlib=gt});var F0=k($=>{"use strict";m();var Sr=st().Buffer,AE=ls().Transform,te=xE(),ci=Gt(),sf=Po().ok,U0=st().kMaxLength,BE="Cannot create final Buffer. It would be larger than 0x"+U0.toString(16)+" bytes";te.Z_MIN_WINDOWBITS=8;te.Z_MAX_WINDOWBITS=15;te.Z_DEFAULT_WINDOWBITS=15;te.Z_MIN_CHUNK=64;te.Z_MAX_CHUNK=1/0;te.Z_DEFAULT_CHUNK=16*1024;te.Z_MIN_MEMLEVEL=1;te.Z_MAX_MEMLEVEL=9;te.Z_DEFAULT_MEMLEVEL=8;te.Z_MIN_LEVEL=-1;te.Z_MAX_LEVEL=9;te.Z_DEFAULT_LEVEL=te.Z_DEFAULT_COMPRESSION;var EE=Object.keys(te);for(Cu=0;Cu<EE.length;Cu++)Uu=EE[Cu],Uu.match(/^Z/)&&Object.defineProperty($,Uu,{enumerable:!0,value:te[Uu],writable:!1});var Uu,Cu,ju={Z_OK:te.Z_OK,Z_STREAM_END:te.Z_STREAM_END,Z_NEED_DICT:te.Z_NEED_DICT,Z_ERRNO:te.Z_ERRNO,Z_STREAM_ERROR:te.Z_STREAM_ERROR,Z_DATA_ERROR:te.Z_DATA_ERROR,Z_MEM_ERROR:te.Z_MEM_ERROR,Z_BUF_ERROR:te.Z_BUF_ERROR,Z_VERSION_ERROR:te.Z_VERSION_ERROR},SE=Object.keys(ju);for(Fu=0;Fu<SE.length;Fu++)C0=SE[Fu],ju[ju[C0]]=C0;var C0,Fu;Object.defineProperty($,"codes",{enumerable:!0,value:Object.freeze(ju),writable:!1});$.Deflate=pn;$.Inflate=vn;$.Gzip=yn;$.Gunzip=gn;$.DeflateRaw=bn;$.InflateRaw=_n;$.Unzip=mn;$.createDeflate=function(e){return new pn(e)};$.createInflate=function(e){return new vn(e)};$.createDeflateRaw=function(e){return new bn(e)};$.createInflateRaw=function(e){return new _n(e)};$.createGzip=function(e){return new yn(e)};$.createGunzip=function(e){return new gn(e)};$.createUnzip=function(e){return new mn(e)};$.deflate=function(e,t,r){return typeof t=="function"&&(r=t,t={}),wn(new pn(t),e,r)};$.deflateSync=function(e,t){return xn(new pn(t),e)};$.gzip=function(e,t,r){return typeof t=="function"&&(r=t,t={}),wn(new yn(t),e,r)};$.gzipSync=function(e,t){return xn(new yn(t),e)};$.deflateRaw=function(e,t,r){return typeof t=="function"&&(r=t,t={}),wn(new bn(t),e,r)};$.deflateRawSync=function(e,t){return xn(new bn(t),e)};$.unzip=function(e,t,r){return typeof t=="function"&&(r=t,t={}),wn(new mn(t),e,r)};$.unzipSync=function(e,t){return xn(new mn(t),e)};$.inflate=function(e,t,r){return typeof t=="function"&&(r=t,t={}),wn(new vn(t),e,r)};$.inflateSync=function(e,t){return xn(new vn(t),e)};$.gunzip=function(e,t,r){return typeof t=="function"&&(r=t,t={}),wn(new gn(t),e,r)};$.gunzipSync=function(e,t){return xn(new gn(t),e)};$.inflateRaw=function(e,t,r){return typeof t=="function"&&(r=t,t={}),wn(new _n(t),e,r)};$.inflateRawSync=function(e,t){return xn(new _n(t),e)};function wn(e,t,r){var i=[],n=0;e.on("error",o),e.on("end",s),e.end(t),a();function a(){for(var y;(y=e.read())!==null;)i.push(y),n+=y.length;e.once("readable",a)}function o(y){e.removeListener("end",s),e.removeListener("readable",a),r(y)}function s(){var y,b=null;n>=U0?b=new RangeError(BE):y=Sr.concat(i,n),i=[],e.close(),r(b,y)}}function xn(e,t){if(typeof t=="string"&&(t=Sr.from(t)),!Sr.isBuffer(t))throw new TypeError("Not a string or buffer");var r=e._finishFlushFlag;return e._processChunk(t,r)}function pn(e){if(!(this instanceof pn))return new pn(e);Qe.call(this,e,te.DEFLATE)}function vn(e){if(!(this instanceof vn))return new vn(e);Qe.call(this,e,te.INFLATE)}function yn(e){if(!(this instanceof yn))return new yn(e);Qe.call(this,e,te.GZIP)}function gn(e){if(!(this instanceof gn))return new gn(e);Qe.call(this,e,te.GUNZIP)}function bn(e){if(!(this instanceof bn))return new bn(e);Qe.call(this,e,te.DEFLATERAW)}function _n(e){if(!(this instanceof _n))return new _n(e);Qe.call(this,e,te.INFLATERAW)}function mn(e){if(!(this instanceof mn))return new mn(e);Qe.call(this,e,te.UNZIP)}function ME(e){return e===te.Z_NO_FLUSH||e===te.Z_PARTIAL_FLUSH||e===te.Z_SYNC_FLUSH||e===te.Z_FULL_FLUSH||e===te.Z_FINISH||e===te.Z_BLOCK}function Qe(e,t){var r=this;if(this._opts=e=e||{},this._chunkSize=e.chunkSize||$.Z_DEFAULT_CHUNK,AE.call(this,e),e.flush&&!ME(e.flush))throw new Error("Invalid flush flag: "+e.flush);if(e.finishFlush&&!ME(e.finishFlush))throw new Error("Invalid flush flag: "+e.finishFlush);if(this._flushFlag=e.flush||te.Z_NO_FLUSH,this._finishFlushFlag=typeof e.finishFlush<"u"?e.finishFlush:te.Z_FINISH,e.chunkSize&&(e.chunkSize<$.Z_MIN_CHUNK||e.chunkSize>$.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+e.chunkSize);if(e.windowBits&&(e.windowBits<$.Z_MIN_WINDOWBITS||e.windowBits>$.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+e.windowBits);if(e.level&&(e.level<$.Z_MIN_LEVEL||e.level>$.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+e.level);if(e.memLevel&&(e.memLevel<$.Z_MIN_MEMLEVEL||e.memLevel>$.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+e.memLevel);if(e.strategy&&e.strategy!=$.Z_FILTERED&&e.strategy!=$.Z_HUFFMAN_ONLY&&e.strategy!=$.Z_RLE&&e.strategy!=$.Z_FIXED&&e.strategy!=$.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+e.strategy);if(e.dictionary&&!Sr.isBuffer(e.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new te.Zlib(t);var i=this;this._hadError=!1,this._handle.onerror=function(o,s){zu(i),i._hadError=!0;var y=new Error(o);y.errno=s,y.code=$.codes[s],i.emit("error",y)};var n=$.Z_DEFAULT_COMPRESSION;typeof e.level=="number"&&(n=e.level);var a=$.Z_DEFAULT_STRATEGY;typeof e.strategy=="number"&&(a=e.strategy),this._handle.init(e.windowBits||$.Z_DEFAULT_WINDOWBITS,n,e.memLevel||$.Z_DEFAULT_MEMLEVEL,a,e.dictionary),this._buffer=Sr.allocUnsafe(this._chunkSize),this._offset=0,this._level=n,this._strategy=a,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!r._handle},configurable:!0,enumerable:!0})}ci.inherits(Qe,AE);Qe.prototype.params=function(e,t,r){if(e<$.Z_MIN_LEVEL||e>$.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+e);if(t!=$.Z_FILTERED&&t!=$.Z_HUFFMAN_ONLY&&t!=$.Z_RLE&&t!=$.Z_FIXED&&t!=$.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+t);if(this._level!==e||this._strategy!==t){var i=this;this.flush(te.Z_SYNC_FLUSH,function(){sf(i._handle,"zlib binding closed"),i._handle.params(e,t),i._hadError||(i._level=e,i._strategy=t,r&&r())})}else M.default.nextTick(r)};Qe.prototype.reset=function(){return sf(this._handle,"zlib binding closed"),this._handle.reset()};Qe.prototype._flush=function(e){this._transform(Sr.alloc(0),"",e)};Qe.prototype.flush=function(e,t){var r=this,i=this._writableState;(typeof e=="function"||e===void 0&&!t)&&(t=e,e=te.Z_FULL_FLUSH),i.ended?t&&M.default.nextTick(t):i.ending?t&&this.once("end",t):i.needDrain?t&&this.once("drain",function(){return r.flush(e,t)}):(this._flushFlag=e,this.write(Sr.alloc(0),"",t))};Qe.prototype.close=function(e){zu(this,e),M.default.nextTick(xO,this)};function zu(e,t){t&&M.default.nextTick(t),e._handle&&(e._handle.close(),e._handle=null)}function xO(e){e.emit("close")}Qe.prototype._transform=function(e,t,r){var i,n=this._writableState,a=n.ending||n.ended,o=a&&(!e||n.length===e.length);if(e!==null&&!Sr.isBuffer(e))return r(new Error("invalid input"));if(!this._handle)return r(new Error("zlib binding closed"));o?i=this._finishFlushFlag:(i=this._flushFlag,e.length>=n.length&&(this._flushFlag=this._opts.flush||te.Z_NO_FLUSH)),this._processChunk(e,i,r)};Qe.prototype._processChunk=function(e,t,r){var i=e&&e.length,n=this._chunkSize-this._offset,a=0,o=this,s=typeof r=="function";if(!s){var y=[],b=0,x;this.on("error",function(D){x=D}),sf(this._handle,"zlib binding closed");do var B=this._handle.writeSync(t,e,a,i,this._buffer,this._offset,n);while(!this._hadError&&O(B[0],B[1]));if(this._hadError)throw x;if(b>=U0)throw zu(this),new RangeError(BE);var R=Sr.concat(y,b);return zu(this),R}sf(this._handle,"zlib binding closed");var T=this._handle.write(t,e,a,i,this._buffer,this._offset,n);T.buffer=e,T.callback=O;function O(D,U){if(this&&(this.buffer=null,this.callback=null),!o._hadError){var N=n-U;if(sf(N>=0,"have should not go down"),N>0){var j=o._buffer.slice(o._offset,o._offset+N);o._offset+=N,s?o.push(j):(y.push(j),b+=j.length)}if((U===0||o._offset>=o._chunkSize)&&(n=o._chunkSize,o._offset=0,o._buffer=Sr.allocUnsafe(o._chunkSize)),U===0){if(a+=i-D,i=D,!s)return!0;var H=o._handle.write(t,e,a,i,o._buffer,o._offset,o._chunkSize);H.callback=O,H.buffer=e;return}if(!s)return!1;r()}}};ci.inherits(pn,Qe);ci.inherits(vn,Qe);ci.inherits(yn,Qe);ci.inherits(gn,Qe);ci.inherits(bn,Qe);ci.inherits(_n,Qe);ci.inherits(mn,Qe)});var OE=k((CU,IE)=>{"use strict";m();var j0=ew(),LU=$s(),RE=F0(),EO=8*1024*1024;function kE(e,t){var r=t&&t.maxDecompressedBytes||EO;return RE.gunzipSync(I.Buffer.from(e,"base64"),{maxOutputLength:r})}async function TE(e,t){if(!t.expectedIssuerDid)throw new Error("expectedIssuerDid is required to verify a status list (issuer pinning); refusing to read revocation state from an unpinned/unverified JWT");var r=t.didResolver;if(!r){var i=t.issuerJwks||(t.issuerPublicJwk?{keys:[t.issuerPublicJwk]}:null);if(!i)throw new Error("Provide params.didResolver, params.issuerJwks, or params.issuerPublicJwk to verify the status list signature");r=async function(){return{jwks:i}}}var n=await j0.verifyVcJwt(e,{didResolver:r,expectedIssuerDid:t.expectedIssuerDid,allowedAlgs:t.allowedAlgs,allowLegacyDER:t.allowLegacyDER,clockToleranceSec:t.clockToleranceSec});if(!n.valid)throw new Error("Status list signature verification failed: "+(n.error||"invalid signature"));return n.payload}async function SO(e){if(!e.issuerDid||!e.privateJwk)throw new Error("issuerDid and privateJwk are required");var t=e.listId||e.issuerDid+"/status/"+Date.now(),r=e.listSize||1e5,i=Math.ceil(r/8),n=I.Buffer.alloc(i,0),a=F0(),o=a.gzipSync(n),s=o.toString("base64"),y={"@context":["https://www.w3.org/2018/credentials/v1","https://w3id.org/vc/status-list/2021/v1"],type:["VerifiableCredential","StatusList2021Credential"],issuer:e.issuerDid,issuanceDate:new Date().toISOString(),credentialSubject:{id:t,type:"StatusList2021",statusPurpose:"revocation",encodedList:s}},b=await j0.issueVcJwt({issuerDid:e.issuerDid,subjectId:t,types:["VerifiableCredential","StatusList2021Credential"],credentialSubject:y.credentialSubject,privateJwk:e.privateJwk,alg:e.privateJwk.alg||"ES256"});return{listVcJwt:b.jwt,listId:t}}async function MO(e){if(!e.listVcJwt||e.index===void 0||!e.status||!e.privateJwk)throw new Error("listVcJwt, index, status, and privateJwk are required");if(e.status==="suspended")throw new Error("status 'suspended' is not supported by this list: its statusPurpose is 'revocation', and suspension would be written to the same bit and read back as 'revoked'. Maintain a separate list for suspension until statusPurpose is configurable.");var t=await TE(e.listVcJwt,e),r=t.vc.credentialSubject.encodedList,i=kE(r,e),n=Math.floor(e.index/8),a=e.index%8;if(n>=i.length)throw new Error("Index out of range");var o=e.status==="revoked"?1:0;o===1?i[n]|=1<<a:i[n]&=~(1<<a);var s=RE.gzipSync(i),y=s.toString("base64"),b={id:t.vc.credentialSubject.id,type:"StatusList2021",statusPurpose:"revocation",encodedList:y},x=await j0.issueVcJwt({issuerDid:t.iss,subjectId:t.vc.credentialSubject.id,types:["VerifiableCredential","StatusList2021Credential"],credentialSubject:b,privateJwk:e.privateJwk,alg:e.privateJwk.alg||"ES256"});return{listVcJwt:x.jwt}}async function AO(e){if(!e.listVcJwt||e.index===void 0)throw new Error("listVcJwt and index are required");var t=await TE(e.listVcJwt,e),r=t.vc.credentialSubject.encodedList,i=kE(r,e),n=Math.floor(e.index/8),a=e.index%8;if(n>=i.length)throw new Error("Index out of range");var o=i[n]>>a&1;return o===1?"revoked":"valid"}IE.exports={createStatusList:SO,updateStatusList:MO,getCredentialStatusEntry:AO}});var BO=k((FU,qE)=>{m();qE.exports=OE()});return BO();})();
74
74
  if(typeof module!=="undefined"&&module.exports){module.exports=bsvStatusList}else if(typeof define==="function"&&define.amd){define([],function(){return bsvStatusList})}