diff --git a/snaps-simulator/staging/main.js b/snaps-simulator/staging/main.js index c9531026ca..e3df5017ca 100644 --- a/snaps-simulator/staging/main.js +++ b/snaps-simulator/staging/main.js @@ -8,7 +8,7 @@ * * @author Feross Aboukhadijeh * @license MIT - */let r=n(5766),i=n(2333),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return u(e,t,n)}function u(e,t,n){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!s.isEncoding(t))throw TypeError("Unknown encoding: "+t);let n=0|f(e,t),r=a(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(L(e,Uint8Array)){let t=new Uint8Array(e);return p(t.buffer,t.byteOffset,t.byteLength)}return _(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(L(e,ArrayBuffer)||e&&L(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(L(e,SharedArrayBuffer)||e&&L(e.buffer,SharedArrayBuffer)))return p(e,t,n);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');let r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return s.from(r,t,n);let i=function(e){if(s.isBuffer(e)){let t=0|d(e.length),n=a(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length){var t;return"number"!=typeof e.length||(t=e.length)!=t?a(0):_(e)}if("Buffer"===e.type&&Array.isArray(e.data))return _(e.data)}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,n);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function l(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return l(e),a(e<0?0:0|d(e))}function _(e){let t=e.length<0?0:0|d(e.length),n=a(t);for(let r=0;r=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function f(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||L(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return O(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return P(e).length;default:if(i)return r?-1:O(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,n){let i=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){let r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i="";for(let r=t;r2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),(o=n=+n)!=o&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return -1;n=e.length-1}else if(n<0){if(!i)return -1;n=0}if("string"==typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:g(e,t,n,r,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):g(e,[t],n,r,i);throw TypeError("val must be string, number or Buffer")}function g(e,t,n,r,i){let o,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;a=2,s/=2,u/=2,n/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let r=-1;for(o=n;os&&(n=s-u),o=n;o>=0;o--){let n=!0;for(let r=0;r239?4:t>223?3:t>191?2:1;if(i+a<=n){let n,r,s,u;switch(a){case 1:t<128&&(o=t);break;case 2:(192&(n=e[i+1]))==128&&(u=(31&t)<<6|63&n)>127&&(o=u);break;case 3:n=e[i+1],r=e[i+2],(192&n)==128&&(192&r)==128&&(u=(15&t)<<12|(63&n)<<6|63&r)>2047&&(u<55296||u>57343)&&(o=u);break;case 4:n=e[i+1],r=e[i+2],s=e[i+3],(192&n)==128&&(192&r)==128&&(192&s)==128&&(u=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s)>65535&&u<1114112&&(o=u)}}null===o?(o=65533,a=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=a}return function(e){let t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);let n="",r=0;for(;rn)throw RangeError("Trying to access beyond buffer length")}function x(e,t,n,r,i,o){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw RangeError("Index out of range")}function D(e,t,n,r,i){M(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function S(e,t,n,r,i){M(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n+7]=o,o>>=8,e[n+6]=o,o>>=8,e[n+5]=o,o>>=8,e[n+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function T(e,t,n,r,i,o){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function E(e,t,n,r,o){return t=+t,n>>>=0,o||T(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function w(e,t,n,r,o){return t=+t,n>>>=0,o||T(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}t.Buffer=s,t.SlowBuffer=function(e){return+e!=e&&(e=0),s.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=2147483647,s.TYPED_ARRAY_SUPPORT=function(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||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."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,n){return u(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,n){return(l(e),e<=0)?a(e):void 0!==t?"string"==typeof n?a(e).fill(t,n):a(e).fill(t):a(e)},s.allocUnsafe=function(e){return c(e)},s.allocUnsafeSlow=function(e){return c(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(L(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),L(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,o=Math.min(n,r);ir.length?(s.isBuffer(t)||(t=s.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else if(s.isBuffer(t))t.copy(r,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=t.length}return r},s.byteLength=f,s.prototype._isBuffer=!0,s.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tn&&(e+=" ... "),""},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(L(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;let o=i-r,a=n-t,u=Math.min(o,a),l=this.slice(r,i),c=e.slice(t,n);for(let e=0;e>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let p=this.length-t;if((void 0===n||n>p)&&(n=p),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let d=!1;for(;;)switch(r){case"hex":return function(e,t,n,r){let i;n=Number(n)||0;let o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;let a=t.length;for(r>a/2&&(r=a/2),i=0;i>8,i.push(n%256),i.push(r);return i}(e,this.length-c),this,c,_);default:if(d)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),d=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){let n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||v(e,t,this.length);let r=this[e],i=1,o=0;for(;++o>>=0,t>>>=0,n||v(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||v(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||v(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||v(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||v(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||v(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readBigUInt64LE=R(function(e){k(e>>>=0,"offset");let t=this[e],n=this[e+7];(void 0===t||void 0===n)&&I(e,this.length-8);let r=t+256*this[++e]+65536*this[++e]+16777216*this[++e],i=this[++e]+256*this[++e]+65536*this[++e]+16777216*n;return BigInt(r)+(BigInt(i)<>>=0,"offset");let t=this[e],n=this[e+7];(void 0===t||void 0===n)&&I(e,this.length-8);let r=16777216*t+65536*this[++e]+256*this[++e]+this[++e],i=16777216*this[++e]+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<>>=0,t>>>=0,n||v(e,t,this.length);let r=this[e],i=1,o=0;for(;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||v(e,t,this.length);let r=t,i=1,o=this[e+--r];for(;r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return(e>>>=0,t||v(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||v(e,2,this.length);let n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||v(e,2,this.length);let n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||v(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||v(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readBigInt64LE=R(function(e){k(e>>>=0,"offset");let t=this[e],n=this[e+7];(void 0===t||void 0===n)&&I(e,this.length-8);let r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<>>=0,"offset");let t=this[e],n=this[e+7];(void 0===t||void 0===n)&&I(e,this.length-8);let r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<>>=0,t||v(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||v(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||v(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||v(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){let r=Math.pow(2,8*n)-1;x(this,e,t,n,r,0)}let i=1,o=0;for(this[t]=255&e;++o>>=0,n>>>=0,!r){let r=Math.pow(2,8*n)-1;x(this,e,t,n,r,0)}let i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigUInt64LE=R(function(e,t=0){return D(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=R(function(e,t=0){return S(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=Math.pow(2,8*n-1);x(this,e,t,n,r-1,-r)}let i=0,o=1,a=0;for(this[t]=255&e;++i>0)-a&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=Math.pow(2,8*n-1);x(this,e,t,n,r-1,-r)}let i=n-1,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o>>0)-a&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigInt64LE=R(function(e,t=0){return D(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=R(function(e,t=0){return S(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeFloatLE=function(e,t,n){return E(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return E(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return w(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return w(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function M(e,t,n,r,i,o){if(e>n||e3?0===t||t===BigInt(0)?`>= 0${i} and < 2${i} ** ${(o+1)*8}${i}`:`>= -(2${i} ** ${(o+1)*8-1}${i}) and < 2 ** ${(o+1)*8-1}${i}`:`>= ${t}${i} and <= ${n}${i}`,new A.ERR_OUT_OF_RANGE("value",r,e)}k(i,"offset"),(void 0===r[i]||void 0===r[i+o])&&I(i,r.length-(o+1))}function k(e,t){if("number"!=typeof e)throw new A.ERR_INVALID_ARG_TYPE(t,"number",e)}function I(e,t,n){if(Math.floor(e)!==e)throw k(e,n),new A.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new A.ERR_BUFFER_OUT_OF_BOUNDS;throw new A.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}C("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),C("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),C("ERR_OUT_OF_RANGE",function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>4294967296?i=N(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=N(i)),i+="n"),r+=` It must be ${t}. Received ${i}`},RangeError);let j=/[^+/0-9A-Za-z-_]/g;function O(e,t){let n;t=t||1/0;let r=e.length,i=null,o=[];for(let a=0;a55295&&n<57344){if(!i){if(n>56319||a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return o}function P(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(j,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function F(e,t,n,r){let i;for(i=0;i=t.length)&&!(i>=e.length);++i)t[i+n]=e[i];return i}function L(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}let z=function(){let e="0123456789abcdef",t=Array(256);for(let n=0;n<16;++n){let r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function R(e){return"undefined"==typeof BigInt?B:e}function B(){throw Error("BigInt not supported")}},5890:(e,t,n)=>{"use strict";var r=n(4406);let i=n(7699),o=["assert","buffer","child_process","cluster","console","constants","crypto","dgram","dns","domain","events","fs","http","https","module","net","os","path","punycode","querystring","readline","repl","stream","string_decoder","sys","timers","tls","tty","url","util","vm","zlib"],a={freelist:"<6.0.0",v8:">=1.0.0",process:">=1.1.0",inspector:">=8.0.0",async_hooks:">=8.1.0",http2:">=8.4.0",perf_hooks:">=8.5.0",trace_events:">=10.0.0",worker_threads:">=12.0.0","node:test":">=18.0.0"},s={worker_threads:">=10.5.0",wasi:">=12.16.0",diagnostics_channel:"^14.17.0 || >=15.1.0"};e.exports=({version:e=r.version,experimental:t=!1}={})=>{let n=[...o];for(let[t,r]of Object.entries(a))("*"===e||i.satisfies(e,r))&&n.push(t);if(t)for(let[t,r]of Object.entries(s))!n.includes(t)&&("*"===e||i.satisfies(e,r))&&n.push(t);return n}},2680:(e,t,n)=>{"use strict";var r=n(7286),i=n(9429),o=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&o(e,".prototype.")>-1?i(n):n}},9429:(e,t,n)=>{"use strict";var r=n(4090),i=n(7286),o=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||r.call(a,o),u=i("%Object.getOwnPropertyDescriptor%",!0),l=i("%Object.defineProperty%",!0),c=i("%Math.max%");if(l)try{l({},"a",{value:1})}catch(e){l=null}e.exports=function(e){var t=s(r,a,arguments);return u&&l&&u(t,"length").configurable&&l(t,"length",{value:1+c(0,e.length-(arguments.length-1))}),t};var _=function(){return s(r,o,arguments)};l?l(e.exports,"apply",{value:_}):e.exports.apply=_},101:(e,t,n)=>{var r=n(8834).Buffer,i=n(7525).Writable,o=n(1285),a=n(314);if("undefined"==typeof Uint8Array)var s=n(9085).U2;else var s=Uint8Array;function u(e,t){if(!(this instanceof u))return new u(e,t);"function"==typeof e&&(t=e,e={}),e||(e={});var n=e.encoding,r=!1;n?("u8"===(n=String(n).toLowerCase())||"uint8"===n)&&(n="uint8array"):r=!0,i.call(this,{objectMode:!0}),this.encoding=n,this.shouldInferEncoding=r,t&&this.on("finish",function(){t(this.getBody())}),this.body=[]}function l(e){return"string"==typeof e||/Array\]$/.test(Object.prototype.toString.call(e))||e&&"function"==typeof e.subarray}e.exports=u,o(u,i),u.prototype._write=function(e,t,n){this.body.push(e),n()},u.prototype.inferEncoding=function(e){var t=void 0===e?this.body[0]:e;return r.isBuffer(t)?"buffer":"undefined"!=typeof Uint8Array&&t instanceof Uint8Array?"uint8array":Array.isArray(t)?"array":"string"==typeof t?"string":"[object Object]"===Object.prototype.toString.call(t)?"object":"buffer"},u.prototype.getBody=function(){return this.encoding||0!==this.body.length?(this.shouldInferEncoding&&(this.encoding=this.inferEncoding()),"array"===this.encoding)?function(e){for(var t=[],n=0;n{"use strict";var r=n(8085);function i(e,t){var n={zone:t};if(e?e instanceof i?this._date=e._date:e instanceof Date?this._date=r.DateTime.fromJSDate(e,n):"number"==typeof e?this._date=r.DateTime.fromMillis(e,n):"string"==typeof e&&(this._date=r.DateTime.fromISO(e,n),this._date.isValid||(this._date=r.DateTime.fromRFC2822(e,n)),this._date.isValid||(this._date=r.DateTime.fromSQL(e,n)),this._date.isValid||(this._date=r.DateTime.fromFormat(e,"EEE, d MMM yyyy HH:mm:ss",n))):this._date=r.DateTime.local(),!this._date||!this._date.isValid)throw Error("CronDate: unhandled timestamp: "+JSON.stringify(e));t&&t!==this._date.zoneName&&(this._date=this._date.setZone(t))}i.prototype.addYear=function(){this._date=this._date.plus({years:1})},i.prototype.addMonth=function(){this._date=this._date.plus({months:1}).startOf("month")},i.prototype.addDay=function(){this._date=this._date.plus({days:1}).startOf("day")},i.prototype.addHour=function(){var e=this._date;this._date=this._date.plus({hours:1}).startOf("hour"),this._date<=e&&(this._date=this._date.plus({hours:1}))},i.prototype.addMinute=function(){var e=this._date;this._date=this._date.plus({minutes:1}).startOf("minute"),this._date=e&&(this._date=this._date.minus({hours:1}))},i.prototype.subtractMinute=function(){var e=this._date;this._date=this._date.minus({minutes:1}).endOf("minute").startOf("second"),this._date>e&&(this._date=this._date.minus({hours:1}))},i.prototype.subtractSecond=function(){var e=this._date;this._date=this._date.minus({seconds:1}).startOf("second"),this._date>e&&(this._date=this._date.minus({hours:1}))},i.prototype.getDate=function(){return this._date.day},i.prototype.getFullYear=function(){return this._date.year},i.prototype.getDay=function(){var e=this._date.weekday;return 7==e?0:e},i.prototype.getMonth=function(){return this._date.month-1},i.prototype.getHours=function(){return this._date.hour},i.prototype.getMinutes=function(){return this._date.minute},i.prototype.getSeconds=function(){return this._date.second},i.prototype.getMilliseconds=function(){return this._date.millisecond},i.prototype.getTime=function(){return this._date.valueOf()},i.prototype.getUTCDate=function(){return this._getUTC().day},i.prototype.getUTCFullYear=function(){return this._getUTC().year},i.prototype.getUTCDay=function(){var e=this._getUTC().weekday;return 7==e?0:e},i.prototype.getUTCMonth=function(){return this._getUTC().month-1},i.prototype.getUTCHours=function(){return this._getUTC().hour},i.prototype.getUTCMinutes=function(){return this._getUTC().minute},i.prototype.getUTCSeconds=function(){return this._getUTC().second},i.prototype.toISOString=function(){return this._date.toUTC().toISO()},i.prototype.toJSON=function(){return this._date.toJSON()},i.prototype.setDate=function(e){this._date=this._date.set({day:e})},i.prototype.setFullYear=function(e){this._date=this._date.set({year:e})},i.prototype.setDay=function(e){this._date=this._date.set({weekday:e})},i.prototype.setMonth=function(e){this._date=this._date.set({month:e+1})},i.prototype.setHours=function(e){this._date=this._date.set({hour:e})},i.prototype.setMinutes=function(e){this._date=this._date.set({minute:e})},i.prototype.setSeconds=function(e){this._date=this._date.set({second:e})},i.prototype.setMilliseconds=function(e){this._date=this._date.set({millisecond:e})},i.prototype._getUTC=function(){return this._date.toUTC()},i.prototype.toString=function(){return this.toDate().toString()},i.prototype.toDate=function(){return this._date.toJSDate()},i.prototype.isLastDayOfMonth=function(){var e=this._date.plus({days:1}).startOf("day");return this._date.month!==e.month},i.prototype.isLastWeekdayOfMonth=function(){var e=this._date.plus({days:7}).startOf("day");return this._date.month!==e.month},e.exports=i},2249:(e,t,n)=>{"use strict";var r=n(4167),i=n(9661);function o(e,t){this._options=t,this._utc=t.utc||!1,this._tz=this._utc?"UTC":t.tz,this._currentDate=new r(t.currentDate,this._tz),this._startDate=t.startDate?new r(t.startDate,this._tz):null,this._endDate=t.endDate?new r(t.endDate,this._tz):null,this._isIterator=t.iterator||!1,this._hasIterated=!1,this._nthDayOfWeek=t.nthDayOfWeek||0,this.fields=o._freezeFields(e)}o.map=["second","minute","hour","dayOfMonth","month","dayOfWeek"],o.predefined={"@yearly":"0 0 1 1 *","@monthly":"0 0 1 * *","@weekly":"0 0 * * 0","@daily":"0 0 * * *","@hourly":"0 * * * *"},o.constraints=[{min:0,max:59,chars:[]},{min:0,max:59,chars:[]},{min:0,max:23,chars:[]},{min:1,max:31,chars:["L"]},{min:1,max:12,chars:[]},{min:0,max:7,chars:["L"]}],o.daysInMonth=[31,29,31,30,31,30,31,31,30,31,30,31],o.aliases={month:{jan:1,feb:2,mar:3,apr:4,may:5,jun:6,jul:7,aug:8,sep:9,oct:10,nov:11,dec:12},dayOfWeek:{sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6}},o.parseDefaults=["0","*","*","*","*","*"],o.standardValidCharacters=/^[,*\d/-]+$/,o.dayOfWeekValidCharacters=/^[?,*\dL#/-]+$/,o.dayOfMonthValidCharacters=/^[?,*\dL/-]+$/,o.validCharacters={second:o.standardValidCharacters,minute:o.standardValidCharacters,hour:o.standardValidCharacters,dayOfMonth:o.dayOfMonthValidCharacters,month:o.standardValidCharacters,dayOfWeek:o.dayOfWeekValidCharacters},o._isValidConstraintChar=function(e,t){return"string"==typeof t&&e.chars.some(function(e){return t.indexOf(e)>-1})},o._parseField=function(e,t,n){switch(e){case"month":case"dayOfWeek":var r=o.aliases[e];t=t.replace(/[a-z]{3}/gi,function(e){if(void 0!==r[e=e.toLowerCase()])return r[e];throw Error('Validation error, cannot resolve alias "'+e+'"')})}if(!o.validCharacters[e].test(t))throw Error("Invalid characters, got value: "+t);function i(e){var t=e.split("/");if(t.length>2)throw Error("Invalid repeat: "+e);return t.length>1?(t[0]==+t[0]&&(t=[t[0]+"-"+n.max,t[1]]),a(t[0],t[t.length-1])):a(e,1)}function a(t,r){var i=[],o=t.split("-");if(o.length>1){if(o.length<2)return+t;if(!o[0].length){if(!o[1].length)throw Error("Invalid range: "+t);return+t}var a=+o[0],s=+o[1];if(Number.isNaN(a)||Number.isNaN(s)||an.max)throw Error("Constraint error, got range "+a+"-"+s+" expected range "+n.min+"-"+n.max);if(a>s)throw Error("Invalid range: "+t);var u=+r;if(Number.isNaN(u)||u<=0)throw Error("Constraint error, cannot repeat at every "+u+" time.");"dayOfWeek"===e&&s%7==0&&i.push(0);for(var l=a;l<=s;l++)!(-1!==i.indexOf(l))&&u>0&&u%r==0?(u=1,i.push(l)):u++;return i}return Number.isNaN(+t)?t:+t}return -1!==t.indexOf("*")?t=t.replace(/\*/g,n.min+"-"+n.max):-1!==t.indexOf("?")&&(t=t.replace(/\?/g,n.min+"-"+n.max)),function(t){var r=[];function a(t){if(t instanceof Array)for(var i=0,a=t.length;in.max)throw Error("Constraint error, got value "+s+" expected range "+n.min+"-"+n.max);r.push(s)}else{if(o._isValidConstraintChar(n,t)){r.push(t);return}var u=+t;if(Number.isNaN(u)||un.max)throw Error("Constraint error, got value "+t+" expected range "+n.min+"-"+n.max);"dayOfWeek"===e&&(u%=7),r.push(u)}}var s=t.split(",");if(!s.every(function(e){return e.length>0}))throw Error("Invalid list value format");if(s.length>1)for(var u=0,l=s.length;ut)throw Error("Invalid explicit day of month definition");return e.dayOfMonth.filter(function(e){return"L"===e||e<=t}).sort(o._sortCompareFn)}},o._freezeFields=function(e){for(var t=0,n=o.map.length;t=e)return t[n]===e;return t[0]===e}function n(e){return e.length>0&&e.some(function(e){return"string"==typeof e&&e.indexOf("L")>=0})}for(var i=(e=e||!1)?"subtract":"add",a=new r(this._currentDate,this._tz),s=this._startDate,u=this._endDate,l=a.getTime(),c=0;c<1e4;){if(c++,e){if(s&&a.getTime()-s.getTime()<0)throw Error("Out of the timespan range")}else if(u&&u.getTime()-a.getTime()<0)throw Error("Out of the timespan range");var _=t(a.getDate(),this.fields.dayOfMonth);n(this.fields.dayOfMonth)&&(_=_||a.isLastDayOfMonth());var p=t(a.getDay(),this.fields.dayOfWeek);n(this.fields.dayOfWeek)&&(p=p||this.fields.dayOfWeek.some(function(e){if(!n([e]))return!1;var t=Number.parseInt(e[0])%7;if(Number.isNaN(t))throw Error("Invalid last weekday of the month expression: "+e);return a.getDay()===t&&a.isLastWeekdayOfMonth()}));var d=this.fields.dayOfMonth.length>=o.daysInMonth[a.getMonth()],f=this.fields.dayOfWeek.length===o.constraints[5].max-o.constraints[5].min+1,m=a.getHours();if(!_&&(!p||f)||!d&&f&&!_||d&&!f&&!p||this._nthDayOfWeek>0&&!function(e,t){if(t<6){if(8>e.getDate()&&1===t)return!0;var n=e.getDate()%7?1:0;return Math.floor((e.getDate()-e.getDate()%7)/7)+n===t}return!1}(a,this._nthDayOfWeek)){this._applyTimezoneShift(a,i,"Day");continue}if(!t(a.getMonth()+1,this.fields.month)){this._applyTimezoneShift(a,i,"Month");continue}if(t(m,this.fields.hour)){if(this._dstEnd===m&&!e){this._dstEnd=null,this._applyTimezoneShift(a,"add","Hour");continue}}else{if(this._dstStart!==m){this._dstStart=null,this._applyTimezoneShift(a,i,"Hour");continue}if(!t(m-1,this.fields.hour)){a[i+"Hour"]();continue}}if(!t(a.getMinutes(),this.fields.minute)){this._applyTimezoneShift(a,i,"Minute");continue}if(!t(a.getSeconds(),this.fields.second)){this._applyTimezoneShift(a,i,"Second");continue}if(l===a.getTime()){"add"===i||0===a.getMilliseconds()?this._applyTimezoneShift(a,i,"Second"):a.setMilliseconds(0);continue}break}if(c>=1e4)throw Error("Invalid expression, loop limit exceeded");return this._currentDate=new r(a,this._tz),this._hasIterated=!0,a},o.prototype.next=function(){var e=this._findSchedule();return this._isIterator?{value:e,done:!this.hasNext()}:e},o.prototype.prev=function(){var e=this._findSchedule(!0);return this._isIterator?{value:e,done:!this.hasPrev()}:e},o.prototype.hasNext=function(){var e=this._currentDate,t=this._hasIterated;try{return this._findSchedule(),!0}catch(e){return!1}finally{this._currentDate=e,this._hasIterated=t}},o.prototype.hasPrev=function(){var e=this._currentDate,t=this._hasIterated;try{return this._findSchedule(!0),!0}catch(e){return!1}finally{this._currentDate=e,this._hasIterated=t}},o.prototype.iterate=function(e,t){var n=[];if(e>=0)for(var r=0,i=e;ri;r--)try{var o=this.prev();n.push(o),t&&t(o,r)}catch(e){break}return n},o.prototype.reset=function(e){this._currentDate=new r(e||this._options.currentDate)},o.prototype.stringify=function(e){for(var t=[],n=e?0:1,r=o.map.length;n6)throw Error("Invalid cron expression");for(var s=o.map.length-a.length,u=0,l=o.map.length;ul?u:u-s];if(u1){var r=+n[n.length-1];if(/,/.test(e))throw Error("Constraint error, invalid dayOfWeek `#` and `,` special characters are incompatible");if(/\//.test(e))throw Error("Constraint error, invalid dayOfWeek `#` and `/` special characters are incompatible");if(/-/.test(e))throw Error("Constraint error, invalid dayOfWeek `#` and `-` special characters are incompatible");if(n.length>2||Number.isNaN(r)||r<1||r>5)throw Error("Constraint error, invalid dayOfWeek occurrence number (#)");return t.nthDayOfWeek=r,n[0]}return e}(_):_;i.push(o._parseField(c,p,o.constraints[u]))}}for(var d={},u=0,l=o.map.length;un.max))throw Error("Constraint error, got value "+a+" expected range "+n.min+"-"+n.max)}}(a,s,o.constraints[r]);for(var u=[],l=-1;++l{"use strict";function t(e){return{start:e,count:1}}function n(e,t){e.end=t,e.step=t-e.start,e.count=2}function r(e,n,r){n&&(2===n.count?(e.push(t(n.start)),e.push(t(n.end))):e.push(n)),r&&e.push(r)}e.exports=function(e){for(var i=[],o=void 0,a=0;a{"use strict";var r=n(7156);e.exports=function(e,t,n){var i=r(e);if(1===i.length){var o=i[0],a=o.step;if(1===a&&o.start===t&&o.end===n)return"*";if(1!==a&&o.start===t&&o.end===n-a+1)return"*/"+a}for(var s=[],u=0,l=i.length;uc.end?s.push(e.join(",")):c.end===n-c.step+1?s.push(c.start+"/"+c.step):s.push(c.start+"-"+c.end+"/"+c.step)}return s.join(",")}},3601:(e,t,n)=>{"use strict";var r=n(2249);function i(){}i._parseEntry=function(e){var t=e.split(" ");if(6===t.length)return{interval:r.parse(e)};if(t.length>6)return{interval:r.parse(t.slice(0,6).join(" ")),command:t.slice(6,t.length)};throw Error("Invalid entry: "+e)},i.parseExpression=function(e,t){return r.parse(e,t)},i.fieldsToExpression=function(e,t){return r.fieldsToExpression(e,t)},i.parseString=function(e){for(var t=e.split("\n"),n={variables:{},expressions:[],errors:{}},r=0,o=t.length;r0){if(u.match(/^#/))continue;if(s=u.match(/^(.*)=(.*)$/))n.variables[s[1]]=s[2];else{var l=null;try{l=i._parseEntry("0 "+u),n.expressions.push(l.interval)}catch(e){n.errors[u]=e}}}}return n},i.parseFile=function(e,t){n(6831).readFile(e,function(e,n){if(e){t(e);return}return t(null,i.parseString(n.toString()))})},e.exports=i},5881:e=>{function t(e,t,n,r){return Math.round(e/n)+" "+r+(t>=1.5*n?"s":"")}e.exports=function(e,n){n=n||{};var r,i,o=typeof e;if("string"===o&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*n;case"weeks":case"week":case"w":return 6048e5*n;case"days":case"day":case"d":return 864e5*n;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*n;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*n;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}(e);if("number"===o&&isFinite(e))return n.long?(r=Math.abs(e))>=864e5?t(e,r,864e5,"day"):r>=36e5?t(e,r,36e5,"hour"):r>=6e4?t(e,r,6e4,"minute"):r>=1e3?t(e,r,1e3,"second"):e+" ms":(i=Math.abs(e))>=864e5?Math.round(e/864e5)+"d":i>=36e5?Math.round(e/36e5)+"h":i>=6e4?Math.round(e/6e4)+"m":i>=1e3?Math.round(e/1e3)+"s":e+"ms";throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},5130:(e,t,n)=>{var r=n(4406);t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;let n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(i=r))}),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG),e},t.useColors=function(){return"undefined"!=typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(7123)(t);let{formatters:i}=e.exports;i.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},7123:(e,t,n)=>{e.exports=function(e){function t(e){let n,i,o;let a=null;function s(...e){if(!s.enabled)return;let r=Number(new Date),i=r-(n||r);s.diff=i,s.prev=n,s.curr=r,n=r,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(n,r)=>{if("%%"===n)return"%";o++;let i=t.formatters[r];if("function"==typeof i){let t=e[o];n=i.call(s,t),e.splice(o,1),o--}return n}),t.formatArgs.call(s,e);let a=s.log||t.log;a.apply(s,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=r,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(i!==t.namespaces&&(i=t.namespaces,o=t.enabled(e)),o),set:e=>{a=e}}),"function"==typeof t.init&&t.init(s),s}function r(e,n){let r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){let e=[...t.names.map(i),...t.skips.map(i).map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];let r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t{"use strict";var r=n(3464),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=Object.defineProperty,u=n(1181)(),l=s&&u,c=function(e,t,n,r){(!(t in e)||"function"==typeof r&&"[object Function]"===o.call(r)&&r())&&(l?s(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n)},_=function(e,t){var n=arguments.length>2?arguments[2]:{},o=r(t);i&&(o=a.call(o,Object.getOwnPropertySymbols(t)));for(var s=0;s{"use strict";function t(e,t){if(null==e)throw TypeError("Cannot convert first argument to object");for(var n=Object(e),r=1;r{"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise(function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}m(e,t,o,{once:!0}),"error"!==t&&"function"==typeof e.on&&m(e,"error",i,{once:!0})})},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function l(e,t,n,r){if(s(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=u(e))>0&&a.length>i&&!a.warned){a.warned=!0;var i,o,a,l=Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,console&&console.warn&&console.warn(l)}return e}function c(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=c.bind(r);return i.listener=n,r.wrapFn=i,i}function p(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=Array(e.length),n=0;n0&&(a=t[0]),a instanceof Error)throw a;var a,s=Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=o[e];if(void 0===u)return!1;if("function"==typeof u)r(u,this,t);else for(var l=u.length,c=f(u,l),n=0;n=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return p(this,e,!0)},o.prototype.rawListeners=function(e){return p(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},o.prototype.listenerCount=d,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},2598:e=>{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(i of t.entries())if(!n.has(i[0]))return!1;for(i of t.entries())if(!e(i[1],n.get(i[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(i of t.entries())if(!n.has(i[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(t[i]!==n[i])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!=i--;){var r,i,o,a=o[i];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}},9375:e=>{e.exports=class{constructor(e){if(!(e>0)||(e-1&e)!=0)throw Error("Max size for a FixedFIFO should be a power of two");this.buffer=Array(e),this.mask=e-1,this.top=0,this.btm=0,this.next=null}clear(){this.top=this.btm=0,this.next=null,this.buffer.fill(void 0)}push(e){return void 0===this.buffer[this.top]&&(this.buffer[this.top]=e,this.top=this.top+1&this.mask,!0)}shift(){let e=this.buffer[this.btm];if(void 0!==e)return this.buffer[this.btm]=void 0,this.btm=this.btm+1&this.mask,e}peek(){return this.buffer[this.btm]}isEmpty(){return void 0===this.buffer[this.btm]}}},2865:(e,t,n)=>{let r=n(9375);e.exports=class{constructor(e){this.hwm=e||16,this.head=new r(this.hwm),this.tail=this.head,this.length=0}clear(){this.head=this.tail,this.head.clear(),this.length=0}push(e){if(this.length++,!this.head.push(e)){let t=this.head;this.head=t.next=new r(2*this.head.buffer.length),this.head.push(e)}}shift(){0!==this.length&&this.length--;let e=this.tail.shift();if(void 0===e&&this.tail.next){let e=this.tail.next;return this.tail.next=null,this.tail=e,this.tail.shift()}return e}peek(){let e=this.tail.peek();return void 0===e&&this.tail.next?this.tail.next.peek():e}isEmpty(){return 0===this.length}}},5695:e=>{"use strict";e.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var n,r="boolean"==typeof t.cycles&&t.cycles,i=t.cmp&&(n=t.cmp,function(e){return function(t,r){return n({key:t,value:e[t]},{key:r,value:e[r]})}}),o=[];return function e(t){if(t&&t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);if(Array.isArray(t)){for(n=0,a="[";n{e.exports=a,a.default=a,a.stable=l,a.stableStringify=l;var t="[...]",n="[Circular]",r=[],i=[];function o(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function a(e,a,u,l){void 0===l&&(l=o()),function e(r,i,o,a,u,l,c){if(l+=1,"object"==typeof r&&null!==r){for(_=0;_c.depthLimit||void 0!==c.edgesLimit&&o+1>c.edgesLimit){s(t,r,i,u);return}if(a.push(r),Array.isArray(r))for(_=0;_t?1:0}function l(e,a,l,_){void 0===_&&(_=o());var p,d=function e(i,o,a,l,c,_,p){if(_+=1,"object"==typeof i&&null!==i){for(d=0;dp.depthLimit||void 0!==p.edgesLimit&&a+1>p.edgesLimit){s(t,i,o,c);return}if(l.push(i),Array.isArray(i))for(d=0;d0)for(var r=0;r{"use strict";let r=n(3325),i=n(3281),o=n(7932);e.exports={XMLParser:i,XMLValidator:r,XMLBuilder:o}},4056:(e,t)=>{"use strict";let n=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",r="["+n+"]["+n+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",i=RegExp("^"+r+"$");t.isExist=function(e){return void 0!==e},t.isEmptyObject=function(e){return 0===Object.keys(e).length},t.merge=function(e,t,n){if(t){let r=Object.keys(t),i=r.length;for(let o=0;o{"use strict";let r=n(4056),i={allowBooleanAttributes:!1,unpairedTags:[]};function o(e){return" "===e||" "===e||"\n"===e||"\r"===e}function a(e,t){let n=t;for(;t5&&"xml"===r)return c("InvalidXml","XML declaration allowed only at the start of the document.",_(e,t));if("?"!=e[t]||">"!=e[t+1])continue;t++;break}return t}function s(e,t){if(e.length>t+5&&"-"===e[t+1]&&"-"===e[t+2]){for(t+=3;t"===e[t+2]){t+=2;break}}else if(e.length>t+8&&"D"===e[t+1]&&"O"===e[t+2]&&"C"===e[t+3]&&"T"===e[t+4]&&"Y"===e[t+5]&&"P"===e[t+6]&&"E"===e[t+7]){let n=1;for(t+=8;t"===e[t]&&0==--n)break}else if(e.length>t+9&&"["===e[t+1]&&"C"===e[t+2]&&"D"===e[t+3]&&"A"===e[t+4]&&"T"===e[t+5]&&"A"===e[t+6]&&"["===e[t+7]){for(t+=8;t"===e[t+2]){t+=2;break}}return t}t.validate=function(e,t){t=Object.assign({},i,t);let n=[],u=!1,p=!1;"\uFEFF"===e[0]&&(e=e.substr(1));for(let i=0;i"!==e[i]&&" "!==e[i]&&" "!==e[i]&&"\n"!==e[i]&&"\r"!==e[i];i++)h+=e[i];if("/"===(h=h.trim())[h.length-1]&&(h=h.substring(0,h.length-1),i--),d=h,!r.isName(d))return c("InvalidTag",0===h.trim().length?"Invalid space after '<'.":"Tag '"+h+"' is an invalid name.",_(e,i));let y=function(e,t){let n="",r="",i=!1;for(;t"===e[t]&&""===r){i=!0;break}n+=e[t]}return""===r&&{value:n,index:t,tagClosed:i}}(e,i);if(!1===y)return c("InvalidAttr","Attributes for '"+h+"' have open quote.",_(e,i));let g=y.value;if(i=y.index,"/"===g[g.length-1]){let n=i-g.length;g=g.substring(0,g.length-1);let r=l(g,t);if(!0!==r)return c(r.err.code,r.err.msg,_(e,n+r.err.line));u=!0}else if(m){if(!y.tagClosed)return c("InvalidTag","Closing tag '"+h+"' doesn't have proper closing.",_(e,i));if(g.trim().length>0)return c("InvalidTag","Closing tag '"+h+"' can't have attributes or invalid starting.",_(e,f));{let t=n.pop();if(h!==t.tagName){let n=_(e,t.tagStartPos);return c("InvalidTag","Expected closing tag '"+t.tagName+"' (opened in line "+n.line+", col "+n.col+") instead of closing tag '"+h+"'.",_(e,f))}0==n.length&&(p=!0)}}else{let r=l(g,t);if(!0!==r)return c(r.err.code,r.err.msg,_(e,i-g.length+r.err.line));if(!0===p)return c("InvalidXml","Multiple possible root nodes found.",_(e,i));-1!==t.unpairedTags.indexOf(h)||n.push({tagName:h,tagStartPos:f}),u=!0}for(i++;i0)||c("InvalidXml","Invalid '"+JSON.stringify(n.map(e=>e.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):c("InvalidXml","Start tag expected.",1)};let u=RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function l(e,t){let n=r.getAllMatches(e,u),i={};for(let e=0;e{"use strict";let r=n(6704),i={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:RegExp("&","g"),val:"&"},{regex:RegExp(">","g"),val:">"},{regex:RegExp("<","g"),val:"<"},{regex:RegExp("'","g"),val:"'"},{regex:RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function o(e){this.options=Object.assign({},i,e),this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=u),this.processTextOrObjNode=a,this.options.format?(this.indentate=s,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function a(e,t,n){let r=this.j2x(e,n+1);return void 0!==e[this.options.textNodeName]&&1===Object.keys(e).length?this.buildTextValNode(e[this.options.textNodeName],t,r.attrStr,n):this.buildObjectNode(r.val,t,r.attrStr,n)}function s(e){return this.options.indentBy.repeat(e)}function u(e){return!!e.startsWith(this.options.attributeNamePrefix)&&e.substr(this.attrPrefixLen)}o.prototype.build=function(e){return this.options.preserveOrder?r(e,this.options):(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e}),this.j2x(e,0).val)},o.prototype.j2x=function(e,t){let n="",r="";for(let i in e)if(void 0===e[i]);else if(null===e[i])"?"===i[0]?r+=this.indentate(t)+"<"+i+"?"+this.tagEndChar:r+=this.indentate(t)+"<"+i+"/"+this.tagEndChar;else if(e[i]instanceof Date)r+=this.buildTextValNode(e[i],i,"",t);else if("object"!=typeof e[i]){let o=this.isAttribute(i);if(o)n+=this.buildAttrPairStr(o,""+e[i]);else if(i===this.options.textNodeName){let t=this.options.tagValueProcessor(i,""+e[i]);r+=this.replaceEntitiesValue(t)}else r+=this.buildTextValNode(e[i],i,"",t)}else if(Array.isArray(e[i])){let n=e[i].length,o="";for(let a=0;a"+e+i:!1!==this.options.commentPropName&&t===this.options.commentPropName&&0===o.length?this.indentate(r)+``+this.newLine:this.indentate(r)+"<"+t+n+o+this.tagEndChar+e+this.indentate(r)+i}},o.prototype.closeTag=function(e){let t="";return -1!==this.options.unpairedTags.indexOf(e)?this.options.suppressUnpairedNode||(t="/"):t=this.options.suppressEmptyNode?"/":`>`+this.newLine;if(!1!==this.options.commentPropName&&t===this.options.commentPropName)return this.indentate(r)+``+this.newLine;if("?"===t[0])return this.indentate(r)+"<"+t+n+"?"+this.tagEndChar;{let i=this.options.tagValueProcessor(t,e);return""===(i=this.replaceEntitiesValue(i))?this.indentate(r)+"<"+t+n+this.closeTag(t)+this.tagEndChar:this.indentate(r)+"<"+t+n+">"+i+"0&&this.options.processEntities)for(let t=0;t{function t(e,t){let r="";if(e&&!t.ignoreAttributes)for(let i in e){let o=t.attributeValueProcessor(i,e[i]);!0===(o=n(o,t))&&t.suppressBooleanAttributes?r+=` ${i.substr(t.attributeNamePrefix.length)}`:r+=` ${i.substr(t.attributeNamePrefix.length)}="${o}"`}return r}function n(e,t){if(e&&e.length>0&&t.processEntities)for(let n=0;n0&&(i="\n"),function e(r,i,o,a){let s="",u=!1;for(let l=0;l`,u=!1;continue}if(_===i.commentPropName){s+=a+``,u=!0;continue}if("?"===_[0]){let e=t(c[":@"],i),n="?xml"===_?"":a,r=c[_][0][i.textNodeName];s+=n+`<${_}${r=0!==r.length?" "+r:""}${e}?>`,u=!0;continue}let d=a;""!==d&&(d+=i.indentBy);let f=t(c[":@"],i),m=a+`<${_}${f}`,h=e(c[_],i,p,d);-1!==i.unpairedTags.indexOf(_)?i.suppressUnpairedNode?s+=m+">":s+=m+"/>":(!h||0===h.length)&&i.suppressEmptyNode?s+=m+"/>":h&&h.endsWith(">")?s+=m+`>${h}${a}`:(s+=m+">",h&&""!==a&&(h.includes("/>")||h.includes("`),u=!0}return s}(e,r,"",i)}},3770:(e,t,n)=>{let r=n(4056);function i(e,t){return"!"===e[t+1]&&"-"===e[t+2]&&"-"===e[t+3]}e.exports=function(e,t){let n={};if("O"===e[t+3]&&"C"===e[t+4]&&"T"===e[t+5]&&"Y"===e[t+6]&&"P"===e[t+7]&&"E"===e[t+8]){t+=9;let d=1,f=!1,m=!1;for(;t"===e[t]){if(m?"-"===e[t-1]&&"-"===e[t-2]&&(m=!1,d--):d--,0===d)break}else"["===e[t]?f=!0:e[t]}else{var o,a,s,u,l,c,_,p;if(f&&"!"===(o=e)[(a=t)+1]&&"E"===o[a+2]&&"N"===o[a+3]&&"T"===o[a+4]&&"I"===o[a+5]&&"T"===o[a+6]&&"Y"===o[a+7])t+=7,[entityName,val,t]=function(e,t){let n="";for(;t{let n={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,n){return e}};t.buildOptions=function(e){return Object.assign({},n,e)},t.defaultOptions=n},2848:(e,t,n)=>{"use strict";let r=n(4056),i=n(4499),o=n(3770),a=n(5580);function s(e){let t=Object.keys(e);for(let n=0;n0)){a||(e=this.replaceEntitiesValue(e));let r=this.options.tagValueProcessor(t,e,n,i,o);if(null==r)return e;if(typeof r!=typeof e||r!==e)return r;{if(this.options.trimValues)return v(e,this.options.parseTagValue,this.options.numberParseOptions);let t=e.trim();return t===e?v(e,this.options.parseTagValue,this.options.numberParseOptions):e}}}function l(e){if(this.options.removeNSPrefix){let t=e.split(":"),n="/"===e.charAt(0)?"/":"";if("xmlns"===t[0])return"";2===t.length&&(e=n+t[1])}return e}"<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,r.nameRegexp);let c=RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function _(e,t,n){if(!this.options.ignoreAttributes&&"string"==typeof e){let n=r.getAllMatches(e,c),i=n.length,o={};for(let e=0;e",s,"Closing Tag is not closed."),i=e.substring(s+2,t).trim();if(this.options.removeNSPrefix){let e=i.indexOf(":");-1!==e&&(i=i.substr(e+1))}this.options.transformTagName&&(i=this.options.transformTagName(i)),n&&(r=this.saveTextToParentTag(r,n,a));let o=a.substring(a.lastIndexOf(".")+1);if(i&&-1!==this.options.unpairedTags.indexOf(i))throw Error(`Unpaired tag can not be used as closing tag: `);let u=0;o&&-1!==this.options.unpairedTags.indexOf(o)?(u=a.lastIndexOf(".",a.lastIndexOf(".")-1),this.tagsNodeStack.pop()):u=a.lastIndexOf("."),a=a.substring(0,u),n=this.tagsNodeStack.pop(),r="",s=t}else if("?"===e[s+1]){let t=g(e,s,!1,"?>");if(!t)throw Error("Pi Tag is not closed.");if(r=this.saveTextToParentTag(r,n,a),this.options.ignoreDeclaration&&"?xml"===t.tagName||this.options.ignorePiTags);else{let e=new i(t.tagName);e.add(this.options.textNodeName,""),t.tagName!==t.tagExp&&t.attrExpPresent&&(e[":@"]=this.buildAttributesMap(t.tagExp,a,t.tagName)),this.addChild(n,e,a)}s=t.closeIndex+1}else if("!--"===e.substr(s+1,3)){let t=y(e,"-->",s+4,"Comment is not closed.");if(this.options.commentPropName){let i=e.substring(s+4,t-2);r=this.saveTextToParentTag(r,n,a),n.add(this.options.commentPropName,[{[this.options.textNodeName]:i}])}s=t}else if("!D"===e.substr(s+1,2)){let t=o(e,s);this.docTypeEntities=t.entities,s=t.i}else if("!["===e.substr(s+1,2)){let t=y(e,"]]>",s,"CDATA is not closed.")-2,i=e.substring(s+9,t);if(r=this.saveTextToParentTag(r,n,a),this.options.cdataPropName)n.add(this.options.cdataPropName,[{[this.options.textNodeName]:i}]);else{let e=this.parseTextData(i,n.tagname,a,!0,!1,!0);void 0==e&&(e=""),n.add(this.options.textNodeName,e)}s=t+2}else{let o=g(e,s,this.options.removeNSPrefix),u=o.tagName,l=o.tagExp,c=o.attrExpPresent,_=o.closeIndex;this.options.transformTagName&&(u=this.options.transformTagName(u)),n&&r&&"!xml"!==n.tagname&&(r=this.saveTextToParentTag(r,n,a,!1));let p=n;if(p&&-1!==this.options.unpairedTags.indexOf(p.tagname)&&(n=this.tagsNodeStack.pop(),a=a.substring(0,a.lastIndexOf("."))),u!==t.tagname&&(a+=a?"."+u:u),this.isItStopNode(this.options.stopNodes,a,u)){let t="";if(l.length>0&&l.lastIndexOf("/")===l.length-1)s=o.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(u))s=o.closeIndex;else{let n=this.readStopNodeData(e,u,_+1);if(!n)throw Error(`Unexpected end of ${u}`);s=n.i,t=n.tagContent}let r=new i(u);u!==l&&c&&(r[":@"]=this.buildAttributesMap(l,a,u)),t&&(t=this.parseTextData(t,u,a,!0,c,!0,!0)),a=a.substr(0,a.lastIndexOf(".")),r.add(this.options.textNodeName,t),this.addChild(n,r,a)}else{if(l.length>0&&l.lastIndexOf("/")===l.length-1){l="/"===u[u.length-1]?u=u.substr(0,u.length-1):l.substr(0,l.length-1),this.options.transformTagName&&(u=this.options.transformTagName(u));let e=new i(u);u!==l&&c&&(e[":@"]=this.buildAttributesMap(l,a,u)),this.addChild(n,e,a),a=a.substr(0,a.lastIndexOf("."))}else{let e=new i(u);this.tagsNodeStack.push(n),u!==l&&c&&(e[":@"]=this.buildAttributesMap(l,a,u)),this.addChild(n,e,a),n=e}r="",s=_}}}else r+=e[s]}return t.child};function d(e,t,n){let r=this.options.updateTag(t.tagname,n,t[":@"]);!1===r||("string"==typeof r&&(t.tagname=r),e.addChild(t))}let f=function(e){if(this.options.processEntities){for(let t in this.docTypeEntities){let n=this.docTypeEntities[t];e=e.replace(n.regx,n.val)}for(let t in this.lastEntities){let n=this.lastEntities[t];e=e.replace(n.regex,n.val)}if(this.options.htmlEntities)for(let t in this.htmlEntities){let n=this.htmlEntities[t];e=e.replace(n.regex,n.val)}e=e.replace(this.ampEntity.regex,this.ampEntity.val)}return e};function m(e,t,n,r){return e&&(void 0===r&&(r=0===Object.keys(t.child).length),void 0!==(e=this.parseTextData(e,t.tagname,n,!1,!!t[":@"]&&0!==Object.keys(t[":@"]).length,r))&&""!==e&&t.add(this.options.textNodeName,e),e=""),e}function h(e,t,n){let r="*."+n;for(let n in e){let i=e[n];if(r===i||t===i)return!0}return!1}function y(e,t,n,r){let i=e.indexOf(t,n);if(-1!==i)return i+t.length-1;throw Error(r)}function g(e,t,n,r=">"){let i=function(e,t,n=">"){let r;let i="";for(let o=t;o",n,`${t} is not closed`);if(e.substring(n+2,o).trim()===t&&0==--i)return{tagContent:e.substring(r,n),i:o};n=o}else if("?"===e[n+1]){let t=y(e,"?>",n+1,"StopNode is not closed.");n=t}else if("!--"===e.substr(n+1,3)){let t=y(e,"-->",n+3,"StopNode is not closed.");n=t}else if("!["===e.substr(n+1,2)){let t=y(e,"]]>",n,"StopNode is not closed.")-2;n=t}else{let r=g(e,n,">");if(r){let e=r&&r.tagName;e===t&&"/"!==r.tagExp[r.tagExp.length-1]&&i++,n=r.closeIndex}}}}function v(e,t,n){if(t&&"string"==typeof e){let t=e.trim();return"true"===t||"false"!==t&&a(e,n)}return r.isExist(e)?e:""}e.exports=class{constructor(e){this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"\xa2"},pound:{regex:/&(pound|#163);/g,val:"\xa3"},yen:{regex:/&(yen|#165);/g,val:"\xa5"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"\xa9"},reg:{regex:/&(reg|#174);/g,val:"\xae"},inr:{regex:/&(inr|#8377);/g,val:"₹"}},this.addExternalEntities=s,this.parseXml=p,this.parseTextData=u,this.resolveNameSpace=l,this.buildAttributesMap=_,this.isItStopNode=h,this.replaceEntitiesValue=f,this.readStopNodeData=b,this.saveTextToParentTag=m,this.addChild=d}}},3281:(e,t,n)=>{let{buildOptions:r}=n(4238),i=n(2848),{prettify:o}=n(4416),a=n(3325);e.exports=class{constructor(e){this.externalEntities={},this.options=r(e)}parse(e,t){if("string"==typeof e);else if(e.toString)e=e.toString();else throw Error("XML data is accepted in String or Bytes[] form.");if(t){!0===t&&(t={});let n=a.validate(e,t);if(!0!==n)throw Error(`${n.err.msg}:${n.err.line}:${n.err.col}`)}let n=new i(this.options);n.addExternalEntities(this.externalEntities);let r=n.parseXml(e);return this.options.preserveOrder||void 0===r?r:o(r,this.options)}addEntity(e,t){if(-1!==t.indexOf("&"))throw Error("Entity value can't have '&'");if(-1!==e.indexOf("&")||-1!==e.indexOf(";"))throw Error("An entity must be set without '&' and ';'. Eg. use '#xD' for ' '");if("&"===t)throw Error("An entity with value '&' is not permitted");this.externalEntities[e]=t}}},4416:(e,t)=>{"use strict";t.prettify=function(e,t){return function e(t,n,r){let i;let o={};for(let a=0;a0&&(o[n.textNodeName]=i):void 0!==i&&(o[n.textNodeName]=i),o}(e,t)}},4499:e=>{"use strict";e.exports=class{constructor(e){this.tagname=e,this.child=[],this[":@"]={}}add(e,t){"__proto__"===e&&(e="#__proto__"),this.child.push({[e]:t})}addChild(e){"__proto__"===e.tagname&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child})}}},3243:(e,t,n)=>{"use strict";var r=n(9680),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty,a=function(e,t,n){for(var r=0,i=e.length;r=3&&(o=n),"[object Array]"===i.call(e)?a(e,t,o):"string"==typeof e?s(e,t,o):u(e,t,o)}},7795:e=>{"use strict";var t=Array.prototype.slice,n=Object.prototype.toString;e.exports=function(e){var r,i=this;if("function"!=typeof i||"[object Function]"!==n.call(i))throw TypeError("Function.prototype.bind called on incompatible "+i);for(var o=t.call(arguments,1),a=Math.max(0,i.length-o.length),s=[],u=0;u{"use strict";var r=n(7795);e.exports=Function.prototype.bind||r},7286:(e,t,n)=>{"use strict";var r,i=SyntaxError,o=Function,a=TypeError,s=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(e){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(e){u=null}var l=function(){throw new a},c=u?function(){try{return arguments.callee,l}catch(e){try{return u(arguments,"callee").get}catch(e){return l}}}():l,_=n(2636)(),p=Object.getPrototypeOf||function(e){return e.__proto__},d={},f="undefined"==typeof Uint8Array?r:p(Uint8Array),m={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":_?p([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":d,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":_?p(p([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&_?p(new Map()[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&_?p(new Set()[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":_?p(""[Symbol.iterator]()):r,"%Symbol%":_?Symbol:r,"%SyntaxError%":i,"%ThrowTypeError%":c,"%TypedArray%":f,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};try{null.error}catch(e){var h=p(p(e));m["%Error.prototype%"]=h}var y=function e(t){var n;if("%AsyncFunction%"===t)n=s("async function () {}");else if("%GeneratorFunction%"===t)n=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=s("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&(n=p(i.prototype))}return m[t]=n,n},g={"%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"]},b=n(4090),v=n(3198),x=b.call(Function.call,Array.prototype.concat),D=b.call(Function.apply,Array.prototype.splice),S=b.call(Function.call,String.prototype.replace),T=b.call(Function.call,String.prototype.slice),E=b.call(Function.call,RegExp.prototype.exec),w=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,A=/\\(\\)?/g,C=function(e){var t=T(e,0,1),n=T(e,-1);if("%"===t&&"%"!==n)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var r=[];return S(e,w,function(e,t,n,i){r[r.length]=n?S(i,A,"$1"):t||e}),r},N=function(e,t){var n,r=e;if(v(g,r)&&(r="%"+(n=g[r])[0]+"%"),v(m,r)){var o=m[r];if(o===d&&(o=y(r)),void 0===o&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===E(/^%?[^%]*%?$/,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=C(e),r=n.length>0?n[0]:"",o=N("%"+r+"%",t),s=o.name,l=o.value,c=!1,_=o.alias;_&&(r=_[0],D(n,x([0,1],_)));for(var p=1,d=!0;p=n.length){var g=u(l,f);l=(d=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:l[f]}else d=v(l,f),l=l[f];d&&!c&&(m[s]=l)}}return l}},6692:(e,t)=>{"use strict";t.Z=function(e,t,n){let r;r=(null==n?void 0:n.registry)?n.registry.endsWith("/")?n.registry:`${n.registry}/`:"https://registry.npmjs.org/";let i="@"!==e[0]?e:e.split("/")[1];return`${r}${e}/-/${i}-${function(e){let t=e.indexOf("+");return -1===t?e:e.substring(0,t)}(t)}.tgz`}},326:(e,t,n)=>{"use strict";var r=n(7286)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},1181:(e,t,n)=>{"use strict";var r=n(7286)("%Object.defineProperty%",!0),i=function(){if(r)try{return r({},"a",{value:1}),!0}catch(e){}return!1};i.hasArrayLengthDefineBug=function(){if(!i())return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},2636:(e,t,n)=>{"use strict";var r="undefined"!=typeof Symbol&&Symbol,i=n(6679);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&i()}},6679:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},7226:(e,t,n)=>{"use strict";var r=n(6679);e.exports=function(){return r()&&!!Symbol.toStringTag}},3198:(e,t,n)=>{"use strict";var r=n(4090);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},2333:(e,t)=>{/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,u=(1<>1,c=-7,_=n?i-1:0,p=n?-1:1,d=e[t+_];for(_+=p,o=d&(1<<-c)-1,d>>=-c,c+=s;c>0;o=256*o+e[t+_],_+=p,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+_],_+=p,c-=8);if(0===o)o=1-l;else{if(o===u)return a?NaN:(d?-1:1)*(1/0);a+=Math.pow(2,r),o-=l}return(d?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,u,l=8*o-i-1,c=(1<>1,p=23===i?5960464477539062e-23:0,d=r?0:o-1,f=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),a+_>=1?t+=p/u:t+=p*Math.pow(2,1-_),t*u>=2&&(a++,u/=2),a+_>=c?(s=0,a=c):a+_>=1?(s=(t*u-1)*Math.pow(2,i),a+=_):(s=t*Math.pow(2,_-1)*Math.pow(2,i),a=0));i>=8;e[n+d]=255&s,d+=f,s/=256,i-=8);for(a=a<0;e[n+d]=255&a,d+=f,a/=256,l-=8);e[n+d-f]|=128*m}},1285:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},2635:(e,t,n)=>{"use strict";var r=n(7226)(),i=n(2680)("Object.prototype.toString"),o=function(e){return(!r||!e||"object"!=typeof e||!(Symbol.toStringTag in e))&&"[object Arguments]"===i(e)},a=function(e){return!!o(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"[object Function]"===i(e.callee)},s=function(){return o(arguments)}();o.isLegacyArguments=a,e.exports=s?o:a},9680:e=>{"use strict";var t,n,r=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw n}}),n={},i(function(){throw 42},null,t)}catch(e){e!==n&&(i=null)}else i=null;var o=/^\s*class\b/,a=function(e){try{var t=r.call(e);return o.test(t)}catch(e){return!1}},s=function(e){try{if(a(e))return!1;return r.call(e),!0}catch(e){return!1}},u=Object.prototype.toString,l="function"==typeof Symbol&&!!Symbol.toStringTag,c=!(0 in[,]),_=function(){return!1};if("object"==typeof document){var p=document.all;u.call(p)===u.call(document.all)&&(_=function(e){if((c||!e)&&(void 0===e||"object"==typeof e))try{var t=u.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=i?function(e){if(_(e))return!0;if(!e||"function"!=typeof e&&"object"!=typeof e)return!1;try{i(e,null,t)}catch(e){if(e!==n)return!1}return!a(e)&&s(e)}:function(e){if(_(e))return!0;if(!e||"function"!=typeof e&&"object"!=typeof e)return!1;if(l)return s(e);if(a(e))return!1;var t=u.call(e);return!!("[object Function]"===t||"[object GeneratorFunction]"===t||/^\[object HTML/.test(t))&&s(e)}},3138:(e,t,n)=>{"use strict";var r,i=Object.prototype.toString,o=Function.prototype.toString,a=/^\s*(?:function)?\*/,s=n(7226)(),u=Object.getPrototypeOf,l=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(e){}};e.exports=function(e){if("function"!=typeof e)return!1;if(a.test(o.call(e)))return!0;if(!s)return"[object GeneratorFunction]"===i.call(e);if(!u)return!1;if(void 0===r){var t=l();r=!!t&&u(t)}return u(e)===r}},7053:e=>{"use strict";e.exports=function(e){return e!=e}},4782:(e,t,n)=>{"use strict";var r=n(9429),i=n(4926),o=n(7053),a=n(755),s=n(5346),u=r(a(),Number);i(u,{getPolyfill:a,implementation:o,shim:s}),e.exports=u},755:(e,t,n)=>{"use strict";var r=n(7053);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:r}},5346:(e,t,n)=>{"use strict";var r=n(4926),i=n(755);e.exports=function(){var e=i();return r(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},1175:(e,t,n)=>{"use strict";let{XMLParser:r,XMLValidator:i}=n(2215),o=e=>{let t;if(null==e||0===(e=e.toString().trim()).length||!0!==i.validate(e))return!1;let n=new r;try{t=n.parse(e)}catch(e){return!1}return!!t&&"svg"in t};e.exports=o,e.exports.default=o},198:(e,t,n)=>{"use strict";var r=n(3243),i=n(711),o=n(2680),a=o("Object.prototype.toString"),s=n(7226)(),u=n(326),l="undefined"==typeof globalThis?n.g:globalThis,c=i(),_=o("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n-1)}},8085:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n extends Error{}class r extends n{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class i extends n{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class o extends n{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class a extends n{}class s extends n{constructor(e){super(`Invalid unit ${e}`)}}class u extends n{}class l extends n{constructor(){super("Zone is an abstract class")}}let c="numeric",_="short",p="long",d={year:c,month:c,day:c},f={year:c,month:_,day:c},m={year:c,month:_,day:c,weekday:_},h={year:c,month:p,day:c},y={year:c,month:p,day:c,weekday:p},g={hour:c,minute:c},b={hour:c,minute:c,second:c},v={hour:c,minute:c,second:c,timeZoneName:_},x={hour:c,minute:c,second:c,timeZoneName:p},D={hour:c,minute:c,hourCycle:"h23"},S={hour:c,minute:c,second:c,hourCycle:"h23"},T={hour:c,minute:c,second:c,hourCycle:"h23",timeZoneName:_},E={hour:c,minute:c,second:c,hourCycle:"h23",timeZoneName:p},w={year:c,month:c,day:c,hour:c,minute:c},A={year:c,month:c,day:c,hour:c,minute:c,second:c},C={year:c,month:_,day:c,hour:c,minute:c},N={year:c,month:_,day:c,hour:c,minute:c,second:c},M={year:c,month:_,day:c,weekday:_,hour:c,minute:c},k={year:c,month:p,day:c,hour:c,minute:c,timeZoneName:_},I={year:c,month:p,day:c,hour:c,minute:c,second:c,timeZoneName:_},j={year:c,month:p,day:c,weekday:p,hour:c,minute:c,timeZoneName:p},O={year:c,month:p,day:c,weekday:p,hour:c,minute:c,second:c,timeZoneName:p};class P{get type(){throw new l}get name(){throw new l}get ianaName(){return this.name}get isUniversal(){throw new l}offsetName(e,t){throw new l}formatOffset(e,t){throw new l}offset(e){throw new l}equals(e){throw new l}get isValid(){throw new l}}let F=null;class L extends P{static get instance(){return null===F&&(F=new L),F}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return eN(e,t,n)}formatOffset(e,t){return ej(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return"system"===e.type}get isValid(){return!0}}let z={},R={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6},B={};class U extends P{static create(e){return B[e]||(B[e]=new U(e)),B[e]}static resetCache(){B={},z={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}}constructor(e){super(),this.zoneName=e,this.valid=U.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return eN(e,t,n,this.name)}formatOffset(e,t){return ej(this.offset(e),t)}offset(e){var t;let n=new Date(e);if(isNaN(n))return NaN;let r=(z[t=this.name]||(z[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),z[t]),[i,o,a,s,u,l,c]=r.formatToParts?function(e,t){let n=e.formatToParts(t),r=[];for(let e=0;e=0?d:1e3+d))/6e4}equals(e){return"iana"===e.type&&e.name===this.name}get isValid(){return this.valid}}let J={},$={};function K(e,t={}){let n=JSON.stringify([e,t]),r=$[n];return r||(r=new Intl.DateTimeFormat(e,t),$[n]=r),r}let V={},Y={},W=null;function q(e,t,n,r,i){let o=e.listingMode(n);return"error"===o?null:"en"===o?r(t):i(t)}class Q{constructor(e,t,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;let{padTo:r,floor:i,...o}=n;if(!t||Object.keys(o).length>0){let t={useGrouping:!1,...n};n.padTo>0&&(t.minimumIntegerDigits=n.padTo),this.inf=function(e,t={}){let n=JSON.stringify([e,t]),r=V[n];return r||(r=new Intl.NumberFormat(e,t),V[n]=r),r}(e,t)}}format(e){if(this.inf){let t=this.floor?Math.floor(e):e;return this.inf.format(t)}{let t=this.floor?Math.floor(e):eD(e,3);return eg(t,this.padTo)}}}class H{constructor(e,t,n){let r;if(this.opts=n,this.originalZone=void 0,this.opts.timeZone)this.dt=e;else if("fixed"===e.zone.type){let t=-1*(e.offset/60),n=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;0!==e.offset&&U.create(n).valid?(r=n,this.dt=e):(r="UTC",this.dt=0===e.offset?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else"system"===e.zone.type?this.dt=e:"iana"===e.zone.type?(this.dt=e,r=e.zone.name):(r="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);let i={...this.opts};i.timeZone=i.timeZone||r,this.dtf=K(t,i)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(e=>{if("timeZoneName"!==e.type)return e;{let t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class G{constructor(e,t,n){this.opts={style:"long",...n},!t&&ef()&&(this.rtf=function(e,t={}){let{base:n,...r}=t,i=JSON.stringify([e,r]),o=Y[i];return o||(o=new Intl.RelativeTimeFormat(e,t),Y[i]=o),o}(e,n))}format(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,n="always",r=!1){let i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===n&&o){let n="days"===e;switch(t){case 1:return n?"tomorrow":`next ${i[e][0]}`;case -1:return n?"yesterday":`last ${i[e][0]}`;case 0:return n?"today":`this ${i[e][0]}`}}let a=Object.is(t,-0)||t<0,s=Math.abs(t),u=1===s,l=i[e],c=r?u?l[1]:l[2]||l[1]:u?i[e][0]:e;return a?`${s} ${c} ago`:`in ${s} ${c}`}(t,e,this.opts.numeric,"long"!==this.opts.style)}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}}class Z{static fromOpts(e){return Z.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)}static create(e,t,n,r=!1){let i=e||ec.defaultLocale,o=i||(r?"en-US":W||(W=new Intl.DateTimeFormat().resolvedOptions().locale)),a=t||ec.defaultNumberingSystem,s=n||ec.defaultOutputCalendar;return new Z(o,a,s,i)}static resetCache(){W=null,$={},V={},Y={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:n}={}){return Z.create(e,t,n)}constructor(e,t,n,r){let[i,o,a]=function(e){let t=e.indexOf("-x-");-1!==t&&(e=e.substring(0,t));let n=e.indexOf("-u-");if(-1===n)return[e];{let t,r;try{t=K(e).resolvedOptions(),r=e}catch(o){let i=e.substring(0,n);t=K(i).resolvedOptions(),r=i}let{numberingSystem:i,calendar:o}=t;return[r,i,o]}}(e);this.locale=i,this.numberingSystem=t||o||null,this.outputCalendar=n||a||null,this.intl=function(e,t,n){return(n||t)&&(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`)),e}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=r,this.fastNumbersCached=null}get fastNumbers(){return null==this.fastNumbersCached&&(this.fastNumbersCached=(!this.numberingSystem||"latn"===this.numberingSystem)&&("latn"===this.numberingSystem||!this.locale||this.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(this.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}listingMode(){let e=this.isEnglish(),t=(null===this.numberingSystem||"latn"===this.numberingSystem)&&(null===this.outputCalendar||"gregory"===this.outputCalendar);return e&&t?"en":"intl"}clone(e){return e&&0!==Object.getOwnPropertyNames(e).length?Z.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1):this}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,t=!1,n=!0){return q(this,e,n,ez,()=>{let n=t?{month:e,day:"numeric"}:{month:e},r=t?"format":"standalone";return this.monthsCache[r][e]||(this.monthsCache[r][e]=function(e){let t=[];for(let n=1;n<=12;n++){let r=nC.utc(2016,n,1);t.push(e(r))}return t}(e=>this.extract(e,n,"month"))),this.monthsCache[r][e]})}weekdays(e,t=!1,n=!0){return q(this,e,n,eJ,()=>{let n=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},r=t?"format":"standalone";return this.weekdaysCache[r][e]||(this.weekdaysCache[r][e]=function(e){let t=[];for(let n=1;n<=7;n++){let r=nC.utc(2016,11,13+n);t.push(e(r))}return t}(e=>this.extract(e,n,"weekday"))),this.weekdaysCache[r][e]})}meridiems(e=!0){return q(this,void 0,e,()=>e$,()=>{if(!this.meridiemCache){let e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[nC.utc(2016,11,13,9),nC.utc(2016,11,13,19)].map(t=>this.extract(t,e,"dayperiod"))}return this.meridiemCache})}eras(e,t=!0){return q(this,e,t,eW,()=>{let t={era:e};return this.eraCache[e]||(this.eraCache[e]=[nC.utc(-40,1,1),nC.utc(2017,1,1)].map(e=>this.extract(e,t,"era"))),this.eraCache[e]})}extract(e,t,n){let r=this.dtFormatter(e,t),i=r.formatToParts(),o=i.find(e=>e.type.toLowerCase()===n);return o?o.value:null}numberFormatter(e={}){return new Q(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new H(e,this.intl,t)}relFormatter(e={}){return new G(this.intl,this.isEnglish(),e)}listFormatter(e={}){return function(e,t={}){let n=JSON.stringify([e,t]),r=J[n];return r||(r=new Intl.ListFormat(e,t),J[n]=r),r}(this.intl,e)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let X=null;class ee extends P{static get utcInstance(){return null===X&&(X=new ee(0)),X}static instance(e){return 0===e?ee.utcInstance:new ee(e)}static parseSpecifier(e){if(e){let t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new ee(eM(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${ej(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${ej(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return ej(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return"fixed"===e.type&&e.fixed===this.fixed}get isValid(){return!0}}class et extends P{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function en(e,t){if(e_(e)||null===e)return t;if(e instanceof P)return e;if("string"==typeof e){let n=e.toLowerCase();return"default"===n?t:"local"===n||"system"===n?L.instance:"utc"===n||"gmt"===n?ee.utcInstance:ee.parseSpecifier(n)||U.create(e)}return ep(e)?ee.instance(e):"object"==typeof e&&e.offset&&"number"==typeof e.offset?e:new et(e)}let er=()=>Date.now(),ei="system",eo=null,ea=null,es=null,eu=60,el;class ec{static get now(){return er}static set now(e){er=e}static set defaultZone(e){ei=e}static get defaultZone(){return en(ei,L.instance)}static get defaultLocale(){return eo}static set defaultLocale(e){eo=e}static get defaultNumberingSystem(){return ea}static set defaultNumberingSystem(e){ea=e}static get defaultOutputCalendar(){return es}static set defaultOutputCalendar(e){es=e}static get twoDigitCutoffYear(){return eu}static set twoDigitCutoffYear(e){eu=e%100}static get throwOnInvalid(){return el}static set throwOnInvalid(e){el=e}static resetCaches(){Z.resetCache(),U.resetCache()}}function e_(e){return void 0===e}function ep(e){return"number"==typeof e}function ed(e){return"number"==typeof e&&e%1==0}function ef(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function em(e,t,n){if(0!==e.length)return e.reduce((e,r)=>{let i=[t(r),r];return e&&n(e[0],i[0])===e[0]?e:i},null)[1]}function eh(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ey(e,t,n){return ed(e)&&e>=t&&e<=n}function eg(e,t=2){return e<0?"-"+(""+-e).padStart(t,"0"):(""+e).padStart(t,"0")}function eb(e){if(!e_(e)&&null!==e&&""!==e)return parseInt(e,10)}function ev(e){if(!e_(e)&&null!==e&&""!==e)return parseFloat(e)}function ex(e){if(!e_(e)&&null!==e&&""!==e){let t=1e3*parseFloat("0."+e);return Math.floor(t)}}function eD(e,t,n=!1){let r=10**t;return(n?Math.trunc:Math.round)(e*r)/r}function eS(e){return e%4==0&&(e%100!=0||e%400==0)}function eT(e){return eS(e)?366:365}function eE(e,t){var n;let r=(n=t-1)-12*Math.floor(n/12)+1;return 2===r?eS(e+(t-r)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function ew(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t)).setUTCFullYear(e.year,e.month-1,e.day),+t}function eA(e){let t=e-1;return 4==(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7||3==(t+Math.floor(t/4)-Math.floor(t/100)+Math.floor(t/400))%7?53:52}function eC(e){return e>99?e:e>ec.twoDigitCutoffYear?1900+e:2e3+e}function eN(e,t,n,r=null){let i=new Date(e),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(o.timeZone=r);let a={timeZoneName:t,...o},s=new Intl.DateTimeFormat(n,a).formatToParts(i).find(e=>"timezonename"===e.type.toLowerCase());return s?s.value:null}function eM(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);let r=parseInt(t,10)||0,i=n<0||Object.is(n,-0)?-r:r;return 60*n+i}function ek(e){let t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new u(`Invalid unit value ${e}`);return t}function eI(e,t){let n={};for(let r in e)if(eh(e,r)){let i=e[r];if(null==i)continue;n[t(r)]=ek(i)}return n}function ej(e,t){let n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(t){case"short":return`${i}${eg(n,2)}:${eg(r,2)}`;case"narrow":return`${i}${n}${r>0?`:${r}`:""}`;case"techie":return`${i}${eg(n,2)}${eg(r,2)}`;default:throw RangeError(`Value format ${t} is out of range for property format`)}}function eO(e){return["hour","minute","second","millisecond"].reduce((t,n)=>(t[n]=e[n],t),{})}let eP=["January","February","March","April","May","June","July","August","September","October","November","December"],eF=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],eL=["J","F","M","A","M","J","J","A","S","O","N","D"];function ez(e){switch(e){case"narrow":return[...eL];case"short":return[...eF];case"long":return[...eP];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}let eR=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],eB=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],eU=["M","T","W","T","F","S","S"];function eJ(e){switch(e){case"narrow":return[...eU];case"short":return[...eB];case"long":return[...eR];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}let e$=["AM","PM"],eK=["Before Christ","Anno Domini"],eV=["BC","AD"],eY=["B","A"];function eW(e){switch(e){case"narrow":return[...eY];case"short":return[...eV];case"long":return[...eK];default:return null}}function eq(e,t){let n="";for(let r of e)r.literal?n+=r.val:n+=t(r.val);return n}let eQ={D:d,DD:f,DDD:h,DDDD:y,t:g,tt:b,ttt:v,tttt:x,T:D,TT:S,TTT:T,TTTT:E,f:w,ff:C,fff:k,ffff:j,F:A,FF:N,FFF:I,FFFF:O};class eH{static create(e,t={}){return new eH(e,t)}static parseFormat(e){let t=null,n="",r=!1,i=[];for(let o=0;o0&&i.push({literal:r||/^\s+$/.test(n),val:n}),t=null,n="",r=!r):r?n+=a:a===t?n+=a:(n.length>0&&i.push({literal:/^\s+$/.test(n),val:n}),n=a,t=a)}return n.length>0&&i.push({literal:r||/^\s+$/.test(n),val:n}),i}static macroTokenToFormatOpts(e){return eQ[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem());let n=this.systemLoc.dtFormatter(e,{...this.opts,...t});return n.format()}formatDateTime(e,t={}){let n=this.loc.dtFormatter(e,{...this.opts,...t});return n.format()}formatDateTimeParts(e,t={}){let n=this.loc.dtFormatter(e,{...this.opts,...t});return n.formatToParts()}formatInterval(e,t={}){let n=this.loc.dtFormatter(e.start,{...this.opts,...t});return n.dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t={}){let n=this.loc.dtFormatter(e,{...this.opts,...t});return n.resolvedOptions()}num(e,t=0){if(this.opts.forceSimple)return eg(e,t);let n={...this.opts};return t>0&&(n.padTo=t),this.loc.numberFormatter(n).format(e)}formatDateTimeFromString(e,t){let n="en"===this.loc.listingMode(),r=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,i=(t,n)=>this.loc.extract(e,t,n),o=t=>e.isOffsetFixed&&0===e.offset&&t.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,t.format):"",a=()=>n?e$[e.hour<12?0:1]:i({hour:"numeric",hourCycle:"h12"},"dayperiod"),s=(t,r)=>n?ez(t)[e.month-1]:i(r?{month:t}:{month:t,day:"numeric"},"month"),u=(t,r)=>n?eJ(t)[e.weekday-1]:i(r?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday"),l=t=>{let n=eH.macroTokenToFormatOpts(t);return n?this.formatWithSystemDefault(e,n):t},c=t=>n?eW(t)[e.year<0?0:1]:i({era:t},"era");return eq(eH.parseFormat(t),t=>{switch(t){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12==0?12:e.hour%12);case"hh":return this.num(e.hour%12==0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return o({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return o({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return o({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return a();case"d":return r?i({day:"numeric"},"day"):this.num(e.day);case"dd":return r?i({day:"2-digit"},"day"):this.num(e.day,2);case"c":case"E":return this.num(e.weekday);case"ccc":return u("short",!0);case"cccc":return u("long",!0);case"ccccc":return u("narrow",!0);case"EEE":return u("short",!1);case"EEEE":return u("long",!1);case"EEEEE":return u("narrow",!1);case"L":return r?i({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return r?i({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return s("short",!0);case"LLLL":return s("long",!0);case"LLLLL":return s("narrow",!0);case"M":return r?i({month:"numeric"},"month"):this.num(e.month);case"MM":return r?i({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return s("short",!1);case"MMMM":return s("long",!1);case"MMMMM":return s("narrow",!1);case"y":return r?i({year:"numeric"},"year"):this.num(e.year);case"yy":return r?i({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return r?i({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return r?i({year:"numeric"},"year"):this.num(e.year,6);case"G":return c("short");case"GG":return c("long");case"GGGGG":return c("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return l(t)}})}formatDurationFromString(e,t){let n=e=>{switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},r=eH.parseFormat(t),i=r.reduce((e,{literal:t,val:n})=>t?e:e.concat(n),[]),o=e.shiftTo(...i.map(n).filter(e=>e));return eq(r,e=>{let t=n(e);return t?this.num(o.get(t),e.length):e})}}class eG{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}let eZ=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function eX(...e){let t=e.reduce((e,t)=>e+t.source,"");return RegExp(`^${t}$`)}function e0(...e){return t=>e.reduce(([e,n,r],i)=>{let[o,a,s]=i(t,r);return[{...e,...o},a||n,s]},[{},null,1]).slice(0,2)}function e1(e,...t){if(null==e)return[null,null];for(let[n,r]of t){let t=n.exec(e);if(t)return r(t)}return[null,null]}function e2(...e){return(t,n)=>{let r;let i={};for(r=0;rvoid 0!==e&&(t||e&&c)?-e:e;return[{years:p(ev(n)),months:p(ev(r)),weeks:p(ev(i)),days:p(ev(o)),hours:p(ev(a)),minutes:p(ev(s)),seconds:p(ev(u),"-0"===u),milliseconds:p(ex(l),_)}]}let tl={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function tc(e,t,n,r,i,o,a){let s={year:2===t.length?eC(eb(t)):eb(t),month:eF.indexOf(n)+1,day:eb(r),hour:eb(i),minute:eb(o)};return a&&(s.second=eb(a)),e&&(s.weekday=e.length>3?eR.indexOf(e)+1:eB.indexOf(e)+1),s}let t_=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function tp(e){let t;let[,n,r,i,o,a,s,u,l,c,_,p]=e,d=tc(n,o,i,r,a,s,u);return t=l?tl[l]:c?0:eM(_,p),[d,new ee(t)]}let td=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,tf=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,tm=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function th(e){let[,t,n,r,i,o,a,s]=e,u=tc(t,i,r,n,o,a,s);return[u,ee.utcInstance]}function ty(e){let[,t,n,r,i,o,a,s]=e,u=tc(t,s,n,r,i,o,a);return[u,ee.utcInstance]}let tg=eX(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,e8),tb=eX(/(\d{4})-?W(\d\d)(?:-?(\d))?/,e8),tv=eX(/(\d{4})-?(\d{3})/,e8),tx=eX(e5),tD=e0(function(e,t){let n={year:tn(e,t),month:tn(e,t+1,1),day:tn(e,t+2,1)};return[n,null,t+3]},tr,ti,to),tS=e0(e7,tr,ti,to),tT=e0(e9,tr,ti,to),tE=e0(tr,ti,to),tw=e0(tr),tA=eX(/(\d{4})-(\d\d)-(\d\d)/,tt),tC=eX(te),tN=e0(tr,ti,to),tM={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},tk={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...tM},tI={years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:31556952,milliseconds:31556952e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:7889238,milliseconds:7889238e3},months:{weeks:30.436875/7,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...tM},tj=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],tO=tj.slice(0).reverse();function tP(e,t,n=!1){let r={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new tL(r)}function tF(e,t,n,r,i){let o=e[i][n],a=t[n]/o,s=Math.sign(a)===Math.sign(r[i]),u=!s&&0!==r[i]&&1>=Math.abs(a)?a<0?Math.floor(a):Math.ceil(a):Math.trunc(a);r[i]+=u,t[n]-=u*o}class tL{constructor(e){let t="longterm"===e.conversionAccuracy,n=t?tI:tk;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||Z.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(e,t){return tL.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(null==e||"object"!=typeof e)throw new u(`Duration.fromObject: argument expected to be an object, got ${null===e?"null":typeof e}`);return new tL({values:eI(e,tL.normalizeUnit),loc:Z.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(ep(e))return tL.fromMillis(e);if(tL.isDuration(e))return e;if("object"==typeof e)return tL.fromObject(e);throw new u(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){let[n]=e1(e,[ts,tu]);return n?tL.fromObject(n,t):tL.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){let[n]=e1(e,[ta,tw]);return n?tL.fromObject(n,t):tL.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new u("need to specify a reason the Duration is invalid");let n=e instanceof eG?e:new eG(e,t);if(!ec.throwOnInvalid)return new tL({invalid:n});throw new o(n)}static normalizeUnit(e){let t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new s(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){let n={...t,floor:!1!==t.round&&!1!==t.floor};return this.isValid?eH.create(this.loc,n).formatDurationFromString(this,e):"Invalid Duration"}toHuman(e={}){let t=tj.map(t=>{let n=this.values[t];return e_(n)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:t.slice(0,-1)}).format(n)}).filter(e=>e);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(t)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return 0!==this.years&&(e+=this.years+"Y"),(0!==this.months||0!==this.quarters)&&(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),(0!==this.hours||0!==this.minutes||0!==this.seconds||0!==this.milliseconds)&&(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),(0!==this.seconds||0!==this.milliseconds)&&(e+=eD(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;let t=this.toMillis();if(t<0||t>=864e5)return null;e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e};let n=this.shiftTo("hours","minutes","seconds","milliseconds"),r="basic"===e.format?"hhmm":"hh:mm";e.suppressSeconds&&0===n.seconds&&0===n.milliseconds||(r+="basic"===e.format?"ss":":ss",e.suppressMilliseconds&&0===n.milliseconds||(r+=".SSS"));let i=n.toFormat(r);return e.includePrefix&&(i="T"+i),i}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.as("milliseconds")}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;let t=tL.fromDurationLike(e),n={};for(let e of tj)(eh(t.values,e)||eh(this.values,e))&&(n[e]=t.get(e)+this.get(e));return tP(this,{values:n},!0)}minus(e){if(!this.isValid)return this;let t=tL.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;let t={};for(let n of Object.keys(this.values))t[n]=ek(e(this.values[n],n));return tP(this,{values:t},!0)}get(e){return this[tL.normalizeUnit(e)]}set(e){if(!this.isValid)return this;let t={...this.values,...eI(e,tL.normalizeUnit)};return tP(this,{values:t})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:n,matrix:r}={}){let i=this.loc.clone({locale:e,numberingSystem:t});return tP(this,{loc:i,matrix:r,conversionAccuracy:n})}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){var e;if(!this.isValid)return this;let t=this.toObject();return e=this.matrix,tO.reduce((n,r)=>e_(t[r])?n:(n&&tF(e,t,n,t,r),r),null),tP(this,{values:t},!0)}rescale(){if(!this.isValid)return this;let e=function(e){let t={};for(let[n,r]of Object.entries(e))0!==r&&(t[n]=r);return t}(this.normalize().shiftToAll().toObject());return tP(this,{values:e},!0)}shiftTo(...e){let t;if(!this.isValid||0===e.length)return this;e=e.map(e=>tL.normalizeUnit(e));let n={},r={},i=this.toObject();for(let o of tj)if(e.indexOf(o)>=0){t=o;let e=0;for(let t in r)e+=this.matrix[t][o]*r[t],r[t]=0;ep(i[o])&&(e+=i[o]);let a=Math.trunc(e);for(let t in n[o]=a,r[o]=(1e3*e-1e3*a)/1e3,i)tj.indexOf(t)>tj.indexOf(o)&&tF(this.matrix,i,t,n,o)}else ep(i[o])&&(r[o]=i[o]);for(let e in r)0!==r[e]&&(n[t]+=e===t?r[e]:r[e]/this.matrix[t][e]);return tP(this,{values:n},!0).normalize()}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;let e={};for(let t of Object.keys(this.values))e[t]=0===this.values[t]?0:-this.values[t];return tP(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;for(let r of tj){var t,n;if(t=this.values[r],n=e.values[r],void 0===t||0===t?void 0!==n&&0!==n:t!==n)return!1}return!0}}let tz="Invalid Interval";class tR{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,t=null){if(!e)throw new u("need to specify a reason the Interval is invalid");let n=e instanceof eG?e:new eG(e,t);if(!ec.throwOnInvalid)return new tR({invalid:n});throw new i(n)}static fromDateTimes(e,t){let n=nN(e),r=nN(t),i=n&&n.isValid?r&&r.isValid?re}isBefore(e){return!!this.isValid&&this.e<=e}contains(e){return!!this.isValid&&this.s<=e&&this.e>e}set({start:e,end:t}={}){return this.isValid?tR.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];let t=e.map(nN).filter(e=>this.contains(e)).sort(),n=[],{s:r}=this,i=0;for(;r+this.e?this.e:e;n.push(tR.fromDateTimes(r,o)),r=o,i+=1}return n}splitBy(e){let t=tL.fromDurationLike(e);if(!this.isValid||!t.isValid||0===t.as("milliseconds"))return[];let{s:n}=this,r=1,i,o=[];for(;ne*r));i=+e>+this.e?this.e:e,o.push(tR.fromDateTimes(n,i)),n=i,r+=1}return o}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s=e.e}equals(e){return!!this.isValid&&!!e.isValid&&this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;let t=this.s>e.s?this.s:e.s,n=this.e=n?null:tR.fromDateTimes(t,n)}union(e){if(!this.isValid)return this;let t=this.se.e?this.e:e.e;return tR.fromDateTimes(t,n)}static merge(e){let[t,n]=e.sort((e,t)=>e.s-t.s).reduce(([e,t],n)=>t?t.overlaps(n)||t.abutsStart(n)?[e,t.union(n)]:[e.concat([t]),n]:[e,n],[[],null]);return n&&t.push(n),t}static xor(e){let t=null,n=0,r=[],i=e.map(e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}]),o=Array.prototype.concat(...i),a=o.sort((e,t)=>e.time-t.time);for(let e of a)1===(n+="s"===e.type?1:-1)?t=e.time:(t&&+t!=+e.time&&r.push(tR.fromDateTimes(t,e.time)),t=null);return tR.merge(r)}difference(...e){return tR.xor([this].concat(e)).map(e=>this.intersection(e)).filter(e=>e&&!e.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:tz}toLocaleString(e=d,t={}){return this.isValid?eH.create(this.s.loc.clone(t),e).formatInterval(this):tz}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:tz}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:tz}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:tz}toFormat(e,{separator:t=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:tz}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):tL.invalid(this.invalidReason)}mapEndpoints(e){return tR.fromDateTimes(e(this.s),e(this.e))}}class tB{static hasDST(e=ec.defaultZone){let t=nC.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return U.isValidZone(e)}static normalizeZone(e){return en(e,ec.defaultZone)}static months(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:i="gregory"}={}){return(r||Z.create(t,n,i)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:i="gregory"}={}){return(r||Z.create(t,n,i)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||Z.create(t,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||Z.create(t,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return Z.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return Z.create(t,null,"gregory").eras(e)}static features(){return{relative:ef()}}}function tU(e,t){let n=e=>e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(t)-n(e);return Math.floor(tL.fromMillis(r).as("days"))}let tJ={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},t$={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},tK=tJ.hanidec.replace(/[\[|\]]/g,"").split("");function tV({numberingSystem:e},t=""){return RegExp(`${tJ[e||"latn"]}${t}`)}function tY(e,t=e=>e){return{regex:e,deser:([e])=>t(function(e){let t=parseInt(e,10);if(!isNaN(t))return t;t="";for(let n=0;n=n&&r<=i&&(t+=r-n)}}return parseInt(t,10)}(e))}}let tW=String.fromCharCode(160),tq=`[ ${tW}]`,tQ=RegExp(tq,"g");function tH(e){return e.replace(/\./g,"\\.?").replace(tQ,tq)}function tG(e){return e.replace(/\./g,"").replace(tQ," ").toLowerCase()}function tZ(e,t){return null===e?null:{regex:RegExp(e.map(tH).join("|")),deser:([n])=>e.findIndex(e=>tG(n)===tG(e))+t}}function tX(e,t){return{regex:e,deser:([,e,t])=>eM(e,t),groups:t}}function t0(e){return{regex:e,deser:([e])=>e}}let t1={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}},t2=null;function t3(e,t){return Array.prototype.concat(...e.map(e=>(function(e,t){if(e.literal)return e;let n=eH.macroTokenToFormatOpts(e.val),r=t6(n,t);return null==r||r.includes(void 0)?e:r})(e,t)))}function t4(e,t,n){let r=t3(eH.parseFormat(n),e),i=r.map(t=>(function(e,t){let n=tV(t),r=tV(t,"{2}"),i=tV(t,"{3}"),o=tV(t,"{4}"),a=tV(t,"{6}"),s=tV(t,"{1,2}"),u=tV(t,"{1,3}"),l=tV(t,"{1,6}"),c=tV(t,"{1,9}"),_=tV(t,"{2,4}"),p=tV(t,"{4,6}"),d=e=>({regex:RegExp(e.val.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")),deser:([e])=>e,literal:!0}),f=(f=>{if(e.literal)return d(f);switch(f.val){case"G":return tZ(t.eras("short",!1),0);case"GG":return tZ(t.eras("long",!1),0);case"y":return tY(l);case"yy":case"kk":return tY(_,eC);case"yyyy":case"kkkk":return tY(o);case"yyyyy":return tY(p);case"yyyyyy":return tY(a);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return tY(s);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return tY(r);case"MMM":return tZ(t.months("short",!0,!1),1);case"MMMM":return tZ(t.months("long",!0,!1),1);case"LLL":return tZ(t.months("short",!1,!1),1);case"LLLL":return tZ(t.months("long",!1,!1),1);case"o":case"S":return tY(u);case"ooo":case"SSS":return tY(i);case"u":return t0(c);case"uu":return t0(s);case"uuu":case"E":case"c":return tY(n);case"a":return tZ(t.meridiems(),0);case"EEE":return tZ(t.weekdays("short",!1,!1),1);case"EEEE":return tZ(t.weekdays("long",!1,!1),1);case"ccc":return tZ(t.weekdays("short",!0,!1),1);case"cccc":return tZ(t.weekdays("long",!0,!1),1);case"Z":case"ZZ":return tX(RegExp(`([+-]${s.source})(?::(${r.source}))?`),2);case"ZZZ":return tX(RegExp(`([+-]${s.source})(${r.source})?`),2);case"z":return t0(/[a-z_+-/]{1,256}?/i);case" ":return t0(/[^\S\n\r]/);default:return d(f)}})(e)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return f.token=e,f})(t,e)),o=i.find(e=>e.invalidReason);if(o)return{input:t,tokens:r,invalidReason:o.invalidReason};{let[e,n]=function(e){let t=e.map(e=>e.regex).reduce((e,t)=>`${e}(${t.source})`,"");return[`^${t}$`,e]}(i),o=RegExp(e,"i"),[s,u]=function(e,t,n){let r=e.match(t);if(!r)return[r,{}];{let e={},t=1;for(let i in n)if(eh(n,i)){let o=n[i],a=o.groups?o.groups+1:1;!o.literal&&o.token&&(e[o.token.val[0]]=o.deser(r.slice(t,t+a))),t+=a}return[r,e]}}(t,o,n),[l,c,_]=u?function(e){let t;let n=e=>{switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}},r=null;e_(e.z)||(r=U.create(e.z)),e_(e.Z)||(r||(r=new ee(e.Z)),t=e.Z),e_(e.q)||(e.M=(e.q-1)*3+1),e_(e.h)||(e.h<12&&1===e.a?e.h+=12:12!==e.h||0!==e.a||(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),e_(e.u)||(e.S=ex(e.u));let i=Object.keys(e).reduce((t,r)=>{let i=n(r);return i&&(t[i]=e[r]),t},{});return[i,r,t]}(u):[null,null,void 0];if(eh(u,"a")&&eh(u,"H"))throw new a("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:r,regex:o,rawMatches:s,matches:u,result:l,zone:c,specificOffset:_}}}function t6(e,t){if(!e)return null;let n=eH.create(t,e),r=n.formatDateTimeParts((t2||(t2=nC.fromMillis(1555555555555)),t2));return r.map(t=>(function(e,t){let{type:n,value:r}=e;if("literal"===n){let e=/^\s+$/.test(r);return{literal:!e,val:e?" ":r}}let i=t[n],o=t1[n];if("object"==typeof o&&(o=o[i]),o)return{literal:!1,val:o}})(t,e))}let t5=[0,31,59,90,120,151,181,212,243,273,304,334],t8=[0,31,60,91,121,152,182,213,244,274,305,335];function t7(e,t){return new eG("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function t9(e,t,n){let r=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);let i=r.getUTCDay();return 0===i?7:i}function ne(e,t){let n=eS(e)?t8:t5,r=n.findIndex(e=>eeA(t)?(s=t+1,a=1):s=t,{weekYear:s,weekNumber:a,weekday:o,...eO(e)}}function nn(e){let{weekYear:t,weekNumber:n,weekday:r}=e,i=t9(t,1,4),o=eT(t),a=7*n+r-i-3,s;a<1?a+=eT(s=t-1):a>o?(s=t+1,a-=eT(t)):s=t;let{month:u,day:l}=ne(s,a);return{year:s,month:u,day:l,...eO(e)}}function nr(e){let{year:t,month:n,day:r}=e,i=r+(eS(t)?t8:t5)[n-1];return{year:t,ordinal:i,...eO(e)}}function ni(e){let{year:t,ordinal:n}=e,{month:r,day:i}=ne(t,n);return{year:t,month:r,day:i,...eO(e)}}function no(e){let t=ed(e.year),n=ey(e.month,1,12),r=ey(e.day,1,eE(e.year,e.month));return t?n?!r&&t7("day",e.day):t7("month",e.month):t7("year",e.year)}function na(e){let{hour:t,minute:n,second:r,millisecond:i}=e,o=ey(t,0,23)||24===t&&0===n&&0===r&&0===i,a=ey(n,0,59),s=ey(r,0,59),u=ey(i,0,999);return o?a?s?!u&&t7("millisecond",i):t7("second",r):t7("minute",n):t7("hour",t)}let ns="Invalid DateTime";function nu(e){return new eG("unsupported zone",`the zone "${e.name}" is not supported`)}function nl(e){return null===e.weekData&&(e.weekData=nt(e.c)),e.weekData}function nc(e,t){let n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new nC({...n,...t,old:n})}function n_(e,t,n){let r=e-6e4*t,i=n.offset(r);if(t===i)return[r,t];r-=(i-t)*6e4;let o=n.offset(r);return i===o?[r,i]:[e-6e4*Math.min(i,o),Math.max(i,o)]}function np(e,t){e+=6e4*t;let n=new Date(e);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function nd(e,t){let n=e.o,r=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),o={...e.c,year:r,month:i,day:Math.min(e.c.day,eE(r,i))+Math.trunc(t.days)+7*Math.trunc(t.weeks)},a=tL.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),s=ew(o),[u,l]=n_(s,n,e.zone);return 0!==a&&(u+=a,l=e.zone.offset(u)),{ts:u,o:l}}function nf(e,t,n,r,i,o){let{setZone:a,zone:s}=n;if((!e||0===Object.keys(e).length)&&!t)return nC.invalid(new eG("unparsable",`the input "${i}" can't be parsed as ${r}`));{let r=t||s,i=nC.fromObject(e,{...n,zone:r,specificOffset:o});return a?i:i.setZone(s)}}function nm(e,t,n=!0){return e.isValid?eH.create(Z.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function nh(e,t){let n=e.c.year>9999||e.c.year<0,r="";return n&&e.c.year>=0&&(r+="+"),r+=eg(e.c.year,n?6:4),t?r+="-"+eg(e.c.month)+"-"+eg(e.c.day):r+=eg(e.c.month)+eg(e.c.day),r}function ny(e,t,n,r,i,o){let a=eg(e.c.hour);return t?(a+=":"+eg(e.c.minute),0===e.c.second&&n||(a+=":")):a+=eg(e.c.minute),0===e.c.second&&n||(a+=eg(e.c.second),0===e.c.millisecond&&r||(a+="."+eg(e.c.millisecond,3))),i&&(e.isOffsetFixed&&0===e.offset&&!o?a+="Z":e.o<0?a+="-"+eg(Math.trunc(-e.o/60))+":"+eg(Math.trunc(-e.o%60)):a+="+"+eg(Math.trunc(e.o/60))+":"+eg(Math.trunc(e.o%60))),o&&(a+="["+e.zone.ianaName+"]"),a}let ng={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},nb={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},nv={ordinal:1,hour:0,minute:0,second:0,millisecond:0},nx=["year","month","day","hour","minute","second","millisecond"],nD=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],nS=["year","ordinal","hour","minute","second","millisecond"];function nT(e){let t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new s(e);return t}function nE(e,t){let n,r;let i=en(t.zone,ec.defaultZone),o=Z.fromObject(t),a=ec.now();if(e_(e.year))n=a;else{for(let t of nx)e_(e[t])&&(e[t]=ng[t]);let t=no(e)||na(e);if(t)return nC.invalid(t);let o=i.offset(a);[n,r]=n_(ew(e),o,i)}return new nC({ts:n,zone:i,loc:o,o:r})}function nw(e,t,n){let r=!!e_(n.round)||n.round,i=(e,i)=>{e=eD(e,r||n.calendary?0:2,!0);let o=t.loc.clone(n).relFormatter(n);return o.format(e,i)},o=r=>n.calendary?t.hasSame(e,r)?0:t.startOf(r).diff(e.startOf(r),r).get(r):t.diff(e,r).get(r);if(n.unit)return i(o(n.unit),n.unit);for(let e of n.units){let t=o(e);if(Math.abs(t)>=1)return i(t,e)}return i(e>t?-0:0,n.units[n.units.length-1])}function nA(e){let t={},n;return e.length>0&&"object"==typeof e[e.length-1]?(t=e[e.length-1],n=Array.from(e).slice(0,e.length-1)):n=Array.from(e),[t,n]}class nC{constructor(e){let t=e.zone||ec.defaultZone,n=e.invalid||(Number.isNaN(e.ts)?new eG("invalid input"):null)||(t.isValid?null:nu(t));this.ts=e_(e.ts)?ec.now():e.ts;let r=null,i=null;if(!n){let o=e.old&&e.old.ts===this.ts&&e.old.zone.equals(t);if(o)[r,i]=[e.old.c,e.old.o];else{let e=t.offset(this.ts);r=(n=Number.isNaN((r=np(this.ts,e)).year)?new eG("invalid input"):null)?null:r,i=n?null:e}}this._zone=t,this.loc=e.loc||Z.create(),this.invalid=n,this.weekData=null,this.c=r,this.o=i,this.isLuxonDateTime=!0}static now(){return new nC({})}static local(){let[e,t]=nA(arguments),[n,r,i,o,a,s,u]=t;return nE({year:n,month:r,day:i,hour:o,minute:a,second:s,millisecond:u},e)}static utc(){let[e,t]=nA(arguments),[n,r,i,o,a,s,u]=t;return e.zone=ee.utcInstance,nE({year:n,month:r,day:i,hour:o,minute:a,second:s,millisecond:u},e)}static fromJSDate(e,t={}){let n="[object Date]"===Object.prototype.toString.call(e)?e.valueOf():NaN;if(Number.isNaN(n))return nC.invalid("invalid input");let r=en(t.zone,ec.defaultZone);return r.isValid?new nC({ts:n,zone:r,loc:Z.fromObject(t)}):nC.invalid(nu(r))}static fromMillis(e,t={}){if(ep(e))return e<-864e13||e>864e13?nC.invalid("Timestamp out of range"):new nC({ts:e,zone:en(t.zone,ec.defaultZone),loc:Z.fromObject(t)});throw new u(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if(ep(e))return new nC({ts:1e3*e,zone:en(t.zone,ec.defaultZone),loc:Z.fromObject(t)});throw new u("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};let n=en(t.zone,ec.defaultZone);if(!n.isValid)return nC.invalid(nu(n));let r=ec.now(),i=e_(t.specificOffset)?n.offset(r):t.specificOffset,o=eI(e,nT),s=!e_(o.ordinal),u=!e_(o.year),l=!e_(o.month)||!e_(o.day),c=u||l,_=o.weekYear||o.weekNumber,p=Z.fromObject(t);if((c||s)&&_)throw new a("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&s)throw new a("Can't mix ordinal dates with month/day");let d=_||o.weekday&&!c,f,m,h=np(r,i);d?(f=nD,m=nb,h=nt(h)):s?(f=nS,m=nv,h=nr(h)):(f=nx,m=ng);let y=!1;for(let e of f){let t=o[e];e_(t)?y?o[e]=m[e]:o[e]=h[e]:y=!0}let g=d?function(e){let t=ed(e.weekYear),n=ey(e.weekNumber,1,eA(e.weekYear)),r=ey(e.weekday,1,7);return t?n?!r&&t7("weekday",e.weekday):t7("week",e.week):t7("weekYear",e.weekYear)}(o):s?function(e){let t=ed(e.year),n=ey(e.ordinal,1,eT(e.year));return t?!n&&t7("ordinal",e.ordinal):t7("year",e.year)}(o):no(o),b=g||na(o);if(b)return nC.invalid(b);let v=d?nn(o):s?ni(o):o,[x,D]=n_(ew(v),i,n),S=new nC({ts:x,zone:n,o:D,loc:p});return o.weekday&&c&&e.weekday!==S.weekday?nC.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${S.toISO()}`):S}static fromISO(e,t={}){let[n,r]=e1(e,[tg,tD],[tb,tS],[tv,tT],[tx,tE]);return nf(n,r,t,"ISO 8601",e)}static fromRFC2822(e,t={}){let[n,r]=e1(e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim(),[t_,tp]);return nf(n,r,t,"RFC 2822",e)}static fromHTTP(e,t={}){let[n,r]=e1(e,[td,th],[tf,th],[tm,ty]);return nf(n,r,t,"HTTP",t)}static fromFormat(e,t,n={}){if(e_(e)||e_(t))throw new u("fromFormat requires an input string and a format");let{locale:r=null,numberingSystem:i=null}=n,o=Z.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0}),[a,s,l,c]=function(e,t,n){let{result:r,zone:i,specificOffset:o,invalidReason:a}=t4(e,t,n);return[r,i,o,a]}(o,e,t);return c?nC.invalid(c):nf(a,s,n,`format ${t}`,e,l)}static fromString(e,t,n={}){return nC.fromFormat(e,t,n)}static fromSQL(e,t={}){let[n,r]=e1(e,[tA,tD],[tC,tN]);return nf(n,r,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new u("need to specify a reason the DateTime is invalid");let n=e instanceof eG?e:new eG(e,t);if(!ec.throwOnInvalid)return new nC({invalid:n});throw new r(n)}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){let n=t6(e,Z.fromObject(t));return n?n.map(e=>e?e.val:null).join(""):null}static expandFormat(e,t={}){let n=t3(eH.parseFormat(e),Z.fromObject(t));return n.map(e=>e.val).join("")}get(e){return this[e]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?nl(this).weekYear:NaN}get weekNumber(){return this.isValid?nl(this).weekNumber:NaN}get weekday(){return this.isValid?nl(this).weekday:NaN}get ordinal(){return this.isValid?nr(this.c).ordinal:NaN}get monthShort(){return this.isValid?tB.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?tB.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?tB.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?tB.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}get isInLeapYear(){return eS(this.year)}get daysInMonth(){return eE(this.year,this.month)}get daysInYear(){return this.isValid?eT(this.year):NaN}get weeksInWeekYear(){return this.isValid?eA(this.weekYear):NaN}resolvedLocaleOptions(e={}){let{locale:t,numberingSystem:n,calendar:r}=eH.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:n,outputCalendar:r}}toUTC(e=0,t={}){return this.setZone(ee.instance(e),t)}toLocal(){return this.setZone(ec.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:n=!1}={}){if((e=en(e,ec.defaultZone)).equals(this.zone))return this;if(!e.isValid)return nC.invalid(nu(e));{let i=this.ts;if(t||n){var r;let t=e.offset(this.ts),n=this.toObject();[i]=(r=e,n_(ew(n),t,r))}return nc(this,{ts:i,zone:e})}}reconfigure({locale:e,numberingSystem:t,outputCalendar:n}={}){let r=this.loc.clone({locale:e,numberingSystem:t,outputCalendar:n});return nc(this,{loc:r})}setLocale(e){return this.reconfigure({locale:e})}set(e){var t,n,r;let i;if(!this.isValid)return this;let o=eI(e,nT),s=!e_(o.weekYear)||!e_(o.weekNumber)||!e_(o.weekday),u=!e_(o.ordinal),l=!e_(o.year),c=!e_(o.month)||!e_(o.day),_=o.weekYear||o.weekNumber;if((l||c||u)&&_)throw new a("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&u)throw new a("Can't mix ordinal dates with month/day");s?i=nn({...nt(this.c),...o}):e_(o.ordinal)?(i={...this.toObject(),...o},e_(o.day)&&(i.day=Math.min(eE(i.year,i.month),i.day))):i=ni({...nr(this.c),...o});let[p,d]=(t=i,n=this.o,r=this.zone,n_(ew(t),n,r));return nc(this,{ts:p,o:d})}plus(e){if(!this.isValid)return this;let t=tL.fromDurationLike(e);return nc(this,nd(this,t))}minus(e){if(!this.isValid)return this;let t=tL.fromDurationLike(e).negate();return nc(this,nd(this,t))}startOf(e){if(!this.isValid)return this;let t={},n=tL.normalizeUnit(e);switch(n){case"years":t.month=1;case"quarters":case"months":t.day=1;case"weeks":case"days":t.hour=0;case"hours":t.minute=0;case"minutes":t.second=0;case"seconds":t.millisecond=0}if("weeks"===n&&(t.weekday=1),"quarters"===n){let e=Math.ceil(this.month/3);t.month=(e-1)*3+1}return this.set(t)}endOf(e){return this.isValid?this.plus({[e]:1}).startOf(e).minus(1):this}toFormat(e,t={}){return this.isValid?eH.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):ns}toLocaleString(e=d,t={}){return this.isValid?eH.create(this.loc.clone(t),e).formatDateTime(this):ns}toLocaleParts(e={}){return this.isValid?eH.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=!1,suppressMilliseconds:n=!1,includeOffset:r=!0,extendedZone:i=!1}={}){if(!this.isValid)return null;let o="extended"===e;return nh(this,o)+"T"+ny(this,o,t,n,r,i)}toISODate({format:e="extended"}={}){return this.isValid?nh(this,"extended"===e):null}toISOWeekDate(){return nm(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:n=!0,includePrefix:r=!1,extendedZone:i=!1,format:o="extended"}={}){return this.isValid?(r?"T":"")+ny(this,"extended"===o,t,e,n,i):null}toRFC2822(){return nm(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return nm(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?nh(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:n=!0}={}){let r="HH:mm:ss.SSS";return(t||e)&&(n&&(r+=" "),t?r+="z":e&&(r+="ZZ")),nm(this,r,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():ns}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};let t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t="milliseconds",n={}){if(!this.isValid||!e.isValid)return tL.invalid("created by diffing an invalid DateTime");let r={locale:this.locale,numberingSystem:this.numberingSystem,...n},i=(Array.isArray(t)?t:[t]).map(tL.normalizeUnit),o=e.valueOf()>this.valueOf(),a=function(e,t,n,r){let[i,o,a,s]=function(e,t,n){let r,i;let o=[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+(t.year-e.year)*4],["months",(e,t)=>t.month-e.month+(t.year-e.year)*12],["weeks",(e,t)=>{let n=tU(e,t);return(n-n%7)/7}],["days",tU]],a={},s=e;for(let[u,l]of o)n.indexOf(u)>=0&&(r=u,a[u]=l(e,t),(i=s.plus(a))>t?(a[u]--,e=s.plus(a)):e=i);return[e,a,i,r]}(e,t,n),u=t-i,l=n.filter(e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0);0===l.length&&(a0?tL.fromMillis(u,r).shiftTo(...l).plus(c):c}(o?this:e,o?e:this,i,r);return o?a.negate():a}diffNow(e="milliseconds",t={}){return this.diff(nC.now(),e,t)}until(e){return this.isValid?tR.fromDateTimes(this,e):this}hasSame(e,t){if(!this.isValid)return!1;let n=e.valueOf(),r=this.setZone(e.zone,{keepLocalTime:!0});return r.startOf(t)<=n&&n<=r.endOf(t)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;let t=e.base||nC.fromObject({},{zone:this.zone}),n=e.padding?thise.valueOf(),Math.min)}static max(...e){if(!e.every(nC.isDateTime))throw new u("max requires all arguments be DateTimes");return em(e,e=>e.valueOf(),Math.max)}static fromFormatExplain(e,t,n={}){let{locale:r=null,numberingSystem:i=null}=n,o=Z.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0});return t4(o,e,t)}static fromStringExplain(e,t,n={}){return nC.fromFormatExplain(e,t,n)}static get DATE_SHORT(){return d}static get DATE_MED(){return f}static get DATE_MED_WITH_WEEKDAY(){return m}static get DATE_FULL(){return h}static get DATE_HUGE(){return y}static get TIME_SIMPLE(){return g}static get TIME_WITH_SECONDS(){return b}static get TIME_WITH_SHORT_OFFSET(){return v}static get TIME_WITH_LONG_OFFSET(){return x}static get TIME_24_SIMPLE(){return D}static get TIME_24_WITH_SECONDS(){return S}static get TIME_24_WITH_SHORT_OFFSET(){return T}static get TIME_24_WITH_LONG_OFFSET(){return E}static get DATETIME_SHORT(){return w}static get DATETIME_SHORT_WITH_SECONDS(){return A}static get DATETIME_MED(){return C}static get DATETIME_MED_WITH_SECONDS(){return N}static get DATETIME_MED_WITH_WEEKDAY(){return M}static get DATETIME_FULL(){return k}static get DATETIME_FULL_WITH_SECONDS(){return I}static get DATETIME_HUGE(){return j}static get DATETIME_HUGE_WITH_SECONDS(){return O}}function nN(e){if(nC.isDateTime(e))return e;if(e&&e.valueOf&&ep(e.valueOf()))return nC.fromJSDate(e);if(e&&"object"==typeof e)return nC.fromObject(e);throw new u(`Unknown datetime argument: ${e}, of type ${typeof e}`)}t.DateTime=nC,t.Duration=tL,t.FixedOffsetZone=ee,t.IANAZone=U,t.Info=tB,t.Interval=tR,t.InvalidZone=et,t.Settings=ec,t.SystemZone=L,t.VERSION="3.3.0",t.Zone=P},8169:e=>{"use strict";var t=function(e){return e!=e};e.exports=function(e,n){return 0===e&&0===n?1/e==1/n:!!(e===n||t(e)&&t(n))}},4679:(e,t,n)=>{"use strict";var r=n(4926),i=n(9429),o=n(8169),a=n(8070),s=n(191),u=i(a(),Object);r(u,{getPolyfill:a,implementation:o,shim:s}),e.exports=u},8070:(e,t,n)=>{"use strict";var r=n(8169);e.exports=function(){return"function"==typeof Object.is?Object.is:r}},191:(e,t,n)=>{"use strict";var r=n(8070),i=n(4926);e.exports=function(){var e=r();return i(Object,{is:e},{is:function(){return Object.is!==e}}),e}},5691:(e,t,n)=>{"use strict";var r;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=n(801),s=Object.prototype.propertyIsEnumerable,u=!s.call({toString:null},"toString"),l=s.call(function(){},"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],_=function(e){var t=e.constructor;return t&&t.prototype===e},p={$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},d=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!p["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{_(window[e])}catch(e){return!0}}catch(e){return!0}return!1}(),f=function(e){if("undefined"==typeof window||!d)return _(e);try{return _(e)}catch(e){return!1}};r=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===o.call(e),r=a(e),s=t&&"[object String]"===o.call(e),_=[];if(!t&&!n&&!r)throw TypeError("Object.keys called on a non-object");var p=l&&n;if(s&&e.length>0&&!i.call(e,0))for(var d=0;d0)for(var m=0;m{"use strict";var r=Array.prototype.slice,i=n(801),o=Object.keys,a=o?function(e){return o(e)}:n(5691),s=Object.keys;a.shim=function(){return Object.keys?!function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)&&(Object.keys=function(e){return i(e)?s(r.call(e)):s(e)}):Object.keys=a,Object.keys||a},e.exports=a},801:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),r}},9928:(e,t,n)=>{var r=n(8892);function i(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function o(e){var t=function(){if(t.called)throw Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},n=e.name||"Function wrapped with `once`";return t.onceError=n+" shouldn't be called more than once",t.called=!1,t}e.exports=r(i),e.exports.strict=r(o),i.proto=i(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return i(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return o(this)},configurable:!0})})},9761:(e,t)=>{"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;t.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw TypeError(n+"must be non-object");for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var r={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray){e.set(t.subarray(n,n+r),i);return}for(var o=0;o{"use strict";e.exports=function(e,t,n,r){for(var i=65535&e|0,o=e>>>16&65535|0,a=0;0!==n;){a=n>2e3?2e3:n,n-=a;do o=o+(i=i+t[r++]|0)|0;while(--a)i%=65521,o%=65521}return i|o<<16|0}},1271:e=>{"use strict";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}},4299:e=>{"use strict";var t=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();e.exports=function(e,n,r,i){var o=i+r;e^=-1;for(var a=i;a>>8^t[(e^n[a])&255];return -1^e}},5789:(e,t,n)=>{"use strict";var r,i=n(9761),o=n(9564),a=n(5562),s=n(4299),u=n(2950);function l(e,t){return e.msg=u[t],t}function c(e){return(e<<1)-(e>4?9:0)}function _(e){for(var t=e.length;--t>=0;)e[t]=0}function p(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(i.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function d(e,t){o._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,p(e.strm)}function f(e,t){e.pending_buf[e.pending++]=t}function m(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function h(e,t){var n,r,i=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match,u=e.strstart>e.w_size-262?e.strstart-(e.w_size-262):0,l=e.window,c=e.w_mask,_=e.prev,p=e.strstart+258,d=l[o+a-1],f=l[o+a];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(l[(n=t)+a]!==f||l[n+a-1]!==d||l[n]!==l[o]||l[++n]!==l[o+1])continue;o+=2,n++;do;while(l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&oa){if(e.match_start=t,a=r,r>=s)break;d=l[o+a-1],f=l[o+a]}}while((t=_[t&c])>u&&0!=--i)return a<=e.lookahead?a:e.lookahead}function y(e){var t,n,r,o,u,l=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=l+(l-262)){i.arraySet(e.window,e.window,l,l,0),e.match_start-=l,e.strstart-=l,e.block_start-=l,t=n=e.hash_size;do r=e.head[--t],e.head[t]=r>=l?r-l:0;while(--n)t=n=l;do r=e.prev[--t],e.prev[t]=r>=l?r-l:0;while(--n)o+=l}if(0===e.strm.avail_in)break;if(n=function(e,t,n,r){var o=e.avail_in;return(o>r&&(o=r),0===o)?0:(e.avail_in-=o,i.arraySet(t,e.input,e.next_in,o,n),1===e.state.wrap?e.adler=a(e.adler,t,o,n):2===e.state.wrap&&(e.adler=s(e.adler,t,o,n)),e.next_in+=o,e.total_in+=o,o)}(e.strm,e.window,e.strstart+e.lookahead,o),e.lookahead+=n,e.lookahead+e.insert>=3)for(u=e.strstart-e.insert,e.ins_h=e.window[u],e.ins_h=(e.ins_h<=3&&(e.ins_h=(e.ins_h<=3){if(r=o._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<=3&&(e.ins_h=(e.ins_h<4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-3,r=o._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=i&&(e.ins_h=(e.ins_h<15&&(s=2,r-=16),o<1||o>9||8!==n||r<8||r>15||t<0||t>9||a<0||a>4)return l(e,-2);8===r&&(r=9);var u=new x;return e.state=u,u.strm=e,u.wrap=s,u.gzhead=null,u.w_bits=r,u.w_size=1<e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(y(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,d(e,!1),0===e.strm.avail_out)||e.strstart-e.block_start>=e.w_size-262&&(d(e,!1),0===e.strm.avail_out))return 1}return(e.insert=0,4===t)?(d(e,!0),0===e.strm.avail_out)?3:4:(e.strstart>e.block_start&&(d(e,!1),e.strm.avail_out),1)}),new v(4,4,8,4,g),new v(4,5,16,8,g),new v(4,6,32,32,g),new v(4,4,16,16,b),new v(8,16,32,32,b),new v(8,16,128,128,b),new v(8,32,128,256,b),new v(32,128,258,1024,b),new v(32,258,258,4096,b)],t.deflateInit=function(e,t){return T(e,t,8,15,8,0)},t.deflateInit2=T,t.deflateReset=S,t.deflateResetKeep=D,t.deflateSetHeader=function(e,t){return e&&e.state&&2===e.state.wrap?(e.state.gzhead=t,0):-2},t.deflate=function(e,t){if(!e||!e.state||t>5||t<0)return e?l(e,-2):-2;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||666===i.status&&4!==t)return l(e,0===e.avail_out?-5:-2);if(i.strm=e,n=i.last_flush,i.last_flush=t,42===i.status){if(2===i.wrap)e.adler=0,f(i,31),f(i,139),f(i,8),i.gzhead?(f(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)),f(i,255&i.gzhead.time),f(i,i.gzhead.time>>8&255),f(i,i.gzhead.time>>16&255),f(i,i.gzhead.time>>24&255),f(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),f(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(f(i,255&i.gzhead.extra.length),f(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(f(i,0),f(i,0),f(i,0),f(i,0),f(i,0),f(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),f(i,3),i.status=113);else{var n,i,a,u,h=8+(i.w_bits-8<<4)<<8;h|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(h|=32),h+=31-h%31,i.status=113,m(i,h),0!==i.strstart&&(m(i,e.adler>>>16),m(i,65535&e.adler)),e.adler=1}}if(69===i.status){if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),p(e),a=i.pending,i.pending!==i.pending_buf_size));)f(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73}if(73===i.status){if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),p(e),a=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindexa&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===u&&(i.gzindex=0,i.status=91)}else i.status=91}if(91===i.status){if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),p(e),a=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindexa&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===u&&(i.status=103)}else i.status=103}if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&p(e),i.pending+2<=i.pending_buf_size&&(f(i,255&e.adler),f(i,e.adler>>8&255),e.adler=0,i.status=113)):i.status=113),0!==i.pending){if(p(e),0===e.avail_out)return i.last_flush=-1,0}else if(0===e.avail_in&&c(t)<=c(n)&&4!==t)return l(e,-5);if(666===i.status&&0!==e.avail_in)return l(e,-5);if(0!==e.avail_in||0!==i.lookahead||0!==t&&666!==i.status){var g=2===i.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(y(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(d(e,!1),0===e.strm.avail_out))return 1}return(e.insert=0,4===t)?(d(e,!0),0===e.strm.avail_out)?3:4:e.last_lit&&(d(e,!1),0===e.strm.avail_out)?1:2}(i,t):3===i.strategy?function(e,t){for(var n,r,i,a,s=e.window;;){if(e.lookahead<=258){if(y(e),e.lookahead<=258&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(r=s[i=e.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){a=e.strstart+258;do;while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&ie.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=o._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(d(e,!1),0===e.strm.avail_out))return 1}return(e.insert=0,4===t)?(d(e,!0),0===e.strm.avail_out)?3:4:e.last_lit&&(d(e,!1),0===e.strm.avail_out)?1:2}(i,t):r[i.level].func(i,t);if((3===g||4===g)&&(i.status=666),1===g||3===g)return 0===e.avail_out&&(i.last_flush=-1),0;if(2===g&&(1===t?o._tr_align(i):5!==t&&(o._tr_stored_block(i,0,0,!1),3===t&&(_(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),p(e),0===e.avail_out))return i.last_flush=-1,0}return 4!==t?0:i.wrap<=0?1:(2===i.wrap?(f(i,255&e.adler),f(i,e.adler>>8&255),f(i,e.adler>>16&255),f(i,e.adler>>24&255),f(i,255&e.total_in),f(i,e.total_in>>8&255),f(i,e.total_in>>16&255),f(i,e.total_in>>24&255)):(m(i,e.adler>>>16),m(i,65535&e.adler)),p(e),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?0:1)},t.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&103!==t&&113!==t&&666!==t?l(e,-2):(e.state=null,113===t?l(e,-3):0):-2},t.deflateSetDictionary=function(e,t){var n,r,o,s,u,l,c,p,d=t.length;if(!e||!e.state||2===(s=(n=e.state).wrap)||1===s&&42!==n.status||n.lookahead)return -2;for(1===s&&(e.adler=a(e.adler,t,d,0)),n.wrap=0,d>=n.w_size&&(0===s&&(_(n.head),n.strstart=0,n.block_start=0,n.insert=0),p=new i.Buf8(n.w_size),i.arraySet(p,t,d-n.w_size,n.w_size,0),t=p,d=n.w_size),u=e.avail_in,l=e.next_in,c=e.input,e.avail_in=d,e.next_in=0,e.input=t,y(n);n.lookahead>=3;){r=n.strstart,o=n.lookahead-2;do n.ins_h=(n.ins_h<{"use strict";e.exports=function(e,t){var n,r,i,o,a,s,u,l,c,_,p,d,f,m,h,y,g,b,v,x,D,S,T,E,w;n=e.state,r=e.next_in,E=e.input,i=r+(e.avail_in-5),o=e.next_out,w=e.output,a=o-(t-e.avail_out),s=o+(e.avail_out-257),u=n.dmax,l=n.wsize,c=n.whave,_=n.wnext,p=n.window,d=n.hold,f=n.bits,m=n.lencode,h=n.distcode,y=(1<>>=v=b>>>24,f-=v,0==(v=b>>>16&255))w[o++]=65535&b;else if(16&v)for(x=65535&b,(v&=15)&&(f>>=v,f-=v),f<15&&(d+=E[r++]<>>=v=b>>>24,f-=v,16&(v=b>>>16&255)){if(D=65535&b,f<(v&=15)&&(d+=E[r++]<u){e.msg="invalid distance too far back",n.mode=30;break e}if(d>>>=v,f-=v,D>(v=o-a)){if((v=D-v)>c&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(S=0,T=p,0===_){if(S+=l-v,v2;)w[o++]=T[S++],w[o++]=T[S++],w[o++]=T[S++],x-=3;x&&(w[o++]=T[S++],x>1&&(w[o++]=T[S++]))}else{S=o-D;do w[o++]=w[S++],w[o++]=w[S++],w[o++]=w[S++],x-=3;while(x>2)x&&(w[o++]=w[S++],x>1&&(w[o++]=w[S++]))}}else if((64&v)==0){b=h[(65535&b)+(d&(1<>3,f-=x<<3,d&=(1<{"use strict";var r,i,o=n(9761),a=n(5562),s=n(4299),u=n(4980),l=n(881);function c(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function _(){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 o.Buf16(320),this.work=new o.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function p(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new o.Buf32(852),t.distcode=t.distdyn=new o.Buf32(592),t.sane=1,t.back=-1,0):-2}function d(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,p(e)):-2}function f(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=(t>>4)+1,t<48&&(t&=15)),t&&(t<8||t>15))?-2:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,d(e)):-2}function m(e,t){var n,r;return e?(r=new _,e.state=r,r.window=null,0!==(n=f(e,t))&&(e.state=null),n):-2}var h=!0;function y(e,t,n,r){var i,a=e.state;return null===a.window&&(a.wsize=1<=a.wsize?(o.arraySet(a.window,t,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((i=a.wsize-a.wnext)>r&&(i=r),o.arraySet(a.window,t,n-r,i,a.wnext),(r-=i)?(o.arraySet(a.window,t,n-r,r,0),a.wnext=r,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave>>8&255,n.check=s(n.check,L,2,0),b=0,v=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&b)<<8)+(b>>8))%31){e.msg="incorrect header check",n.mode=30;break}if((15&b)!=8){e.msg="unknown compression method",n.mode=30;break}if(b>>>=4,v-=4,I=(15&b)+8,0===n.wbits)n.wbits=I;else if(I>n.wbits){e.msg="invalid window size",n.mode=30;break}n.dmax=1<>8&1),512&n.flags&&(L[0]=255&b,L[1]=b>>>8&255,n.check=s(n.check,L,2,0)),b=0,v=0,n.mode=3;case 3:for(;v<32;){if(0===m)break t;m--,b+=_[d++]<>>8&255,L[2]=b>>>16&255,L[3]=b>>>24&255,n.check=s(n.check,L,4,0)),b=0,v=0,n.mode=4;case 4:for(;v<16;){if(0===m)break t;m--,b+=_[d++]<>8),512&n.flags&&(L[0]=255&b,L[1]=b>>>8&255,n.check=s(n.check,L,2,0)),b=0,v=0,n.mode=5;case 5:if(1024&n.flags){for(;v<16;){if(0===m)break t;m--,b+=_[d++]<>>8&255,n.check=s(n.check,L,2,0)),b=0,v=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((S=n.length)>m&&(S=m),S&&(n.head&&(I=n.head.extra_len-n.length,n.head.extra||(n.head.extra=Array(n.head.extra_len)),o.arraySet(n.head.extra,_,d,S,I)),512&n.flags&&(n.check=s(n.check,_,S,d)),m-=S,d+=S,n.length-=S),n.length))break t;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===m)break t;S=0;do I=_[d+S++],n.head&&I&&n.length<65536&&(n.head.name+=String.fromCharCode(I));while(I&&S>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;v<32;){if(0===m)break t;m--,b+=_[d++]<>>=7&v,v-=7&v,n.mode=27;break}for(;v<3;){if(0===m)break t;m--,b+=_[d++]<>>=1)){case 0:n.mode=14;break;case 1:if(function(e){if(h){var t;for(r=new o.Buf32(512),i=new o.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(l(1,e.lens,0,288,r,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;l(2,e.lens,0,32,i,0,e.work,{bits:5}),h=!1}e.lencode=r,e.lenbits=9,e.distcode=i,e.distbits=5}(n),n.mode=20,6===t){b>>>=2,v-=2;break t}break;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=30}b>>>=2,v-=2;break;case 14:for(b>>>=7&v,v-=7&v;v<32;){if(0===m)break t;m--,b+=_[d++]<>>16^65535)){e.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&b,b=0,v=0,n.mode=15,6===t)break t;case 15:n.mode=16;case 16:if(S=n.length){if(S>m&&(S=m),S>g&&(S=g),0===S)break t;o.arraySet(p,_,d,S,f),m-=S,d+=S,g-=S,f+=S,n.length-=S;break}n.mode=12;break;case 17:for(;v<14;){if(0===m)break t;m--,b+=_[d++]<>>=5,v-=5,n.ndist=(31&b)+1,b>>>=5,v-=5,n.ncode=(15&b)+4,b>>>=4,v-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have>>=3,v-=3}for(;n.have<19;)n.lens[z[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,O={bits:n.lenbits},j=l(0,n.lens,0,19,n.lencode,0,n.work,O),n.lenbits=O.bits,j){e.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have>>24,A=F>>>16&255,C=65535&F,!(w<=v);){if(0===m)break t;m--,b+=_[d++]<>>=w,v-=w,n.lens[n.have++]=C;else{if(16===C){for(P=w+2;v>>=w,v-=w,0===n.have){e.msg="invalid bit length repeat",n.mode=30;break}I=n.lens[n.have-1],S=3+(3&b),b>>>=2,v-=2}else if(17===C){for(P=w+3;v>>=w,v-=w,I=0,S=3+(7&b),b>>>=3,v-=3}else{for(P=w+7;v>>=w,v-=w,I=0,S=11+(127&b),b>>>=7,v-=7}if(n.have+S>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=30;break}for(;S--;)n.lens[n.have++]=I}}if(30===n.mode)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,O={bits:n.lenbits},j=l(1,n.lens,0,n.nlen,n.lencode,0,n.work,O),n.lenbits=O.bits,j){e.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,O={bits:n.distbits},j=l(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,O),n.distbits=O.bits,j){e.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===t)break t;case 20:n.mode=21;case 21:if(m>=6&&g>=258){e.next_out=f,e.avail_out=g,e.next_in=d,e.avail_in=m,n.hold=b,n.bits=v,u(e,D),f=e.next_out,p=e.output,g=e.avail_out,d=e.next_in,_=e.input,m=e.avail_in,b=n.hold,v=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;w=(F=n.lencode[b&(1<>>24,A=F>>>16&255,C=65535&F,!(w<=v);){if(0===m)break t;m--,b+=_[d++]<>N)])>>>24,A=F>>>16&255,C=65535&F,!(N+w<=v);){if(0===m)break t;m--,b+=_[d++]<>>=N,v-=N,n.back+=N}if(b>>>=w,v-=w,n.back+=w,n.length=C,0===A){n.mode=26;break}if(32&A){n.back=-1,n.mode=12;break}if(64&A){e.msg="invalid literal/length code",n.mode=30;break}n.extra=15&A,n.mode=22;case 22:if(n.extra){for(P=n.extra;v>>=n.extra,v-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;w=(F=n.distcode[b&(1<>>24,A=F>>>16&255,C=65535&F,!(w<=v);){if(0===m)break t;m--,b+=_[d++]<>N)])>>>24,A=F>>>16&255,C=65535&F,!(N+w<=v);){if(0===m)break t;m--,b+=_[d++]<>>=N,v-=N,n.back+=N}if(b>>>=w,v-=w,n.back+=w,64&A){e.msg="invalid distance code",n.mode=30;break}n.offset=C,n.extra=15&A,n.mode=24;case 24:if(n.extra){for(P=n.extra;v>>=n.extra,v-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===g)break t;if(S=D-g,n.offset>S){if((S=n.offset-S)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=30;break}S>n.wnext?(S-=n.wnext,T=n.wsize-S):T=n.wnext-S,S>n.length&&(S=n.length),E=n.window}else E=p,T=f-n.offset,S=n.length;S>g&&(S=g),g-=S,n.length-=S;do p[f++]=E[T++];while(--S)0===n.length&&(n.mode=21);break;case 26:if(0===g)break t;p[f++]=n.length,g--,n.mode=21;break;case 27:if(n.wrap){for(;v<32;){if(0===m)break t;m--,b|=_[d++]<{"use strict";var r=n(9761),i=[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],o=[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],a=[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],s=[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];e.exports=function(e,t,n,u,l,c,_,p){var d,f,m,h,y,g,b,v,x,D=p.bits,S=0,T=0,E=0,w=0,A=0,C=0,N=0,M=0,k=0,I=0,j=null,O=0,P=new r.Buf16(16),F=new r.Buf16(16),L=null,z=0;for(S=0;S<=15;S++)P[S]=0;for(T=0;T=1&&0===P[w];w--);if(A>w&&(A=w),0===w)return l[c++]=20971520,l[c++]=20971520,p.bits=1,0;for(E=1;E0&&(0===e||1!==w))return -1;for(S=1,F[1]=0;S<15;S++)F[S+1]=F[S]+P[S];for(T=0;T852||2===e&&k>592)return 1;for(;;){b=S-N,_[T]g?(v=L[z+_[T]],x=j[O+_[T]]):(v=96,x=0),d=1<>N)+(f-=d)]=b<<24|v<<16|x|0;while(0!==f)for(d=1<>=1;if(0!==d?(I&=d-1,I+=d):I=0,T++,0==--P[S]){if(S===w)break;S=t[n+_[T]]}if(S>A&&(I&h)!==m){for(0===N&&(N=A),y+=E,M=1<<(C=S-N);C+N852||2===e&&k>592)return 1;l[m=I&h]=A<<24|C<<16|y-c|0}}return 0!==I&&(l[y+I]=S-N<<24|4194304),p.bits=A,0}},2950:e=>{"use strict";e.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"}},9564:(e,t,n)=>{"use strict";var r,i,o,a=n(9761);function s(e){for(var t=e.length;--t>=0;)e[t]=0}var u=[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],l=[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],c=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],_=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],p=Array(576);s(p);var d=Array(60);s(d);var f=Array(512);s(f);var m=Array(256);s(m);var h=Array(29);s(h);var y=Array(30);function g(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function b(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function v(e){return e<256?f[e]:f[256+(e>>>7)]}function x(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function D(e,t,n){e.bi_valid>16-n?(e.bi_buf|=t<>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<>>=1,n<<=1;while(--t>0)return n>>>1}function E(e,t,n){var r,i,o=Array(16),a=0;for(r=1;r<=15;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=T(o[s]++,s))}}function w(e){var t;for(t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function A(e){e.bi_valid>8?x(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 C(e,t,n,r){var i=2*t,o=2*n;return e[i]>1;n>=1;n--)N(e,o,n);i=u;do n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],N(e,o,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,o[2*i]=o[2*n]+o[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,o[2*n+1]=o[2*r+1]=i,e.heap[1]=i++,N(e,o,1);while(e.heap_len>=2)e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,o,a,s,u=t.dyn_tree,l=t.max_code,c=t.stat_desc.static_tree,_=t.stat_desc.has_stree,p=t.stat_desc.extra_bits,d=t.stat_desc.extra_base,f=t.stat_desc.max_length,m=0;for(o=0;o<=15;o++)e.bl_count[o]=0;for(u[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<573;n++)(o=u[2*u[2*(r=e.heap[n])+1]+1]+1)>f&&(o=f,m++),u[2*r+1]=o,!(r>l)&&(e.bl_count[o]++,a=0,r>=d&&(a=p[r-d]),s=u[2*r],e.opt_len+=s*(o+a),_&&(e.static_len+=s*(c[2*r+1]+a)));if(0!==m){do{for(o=f-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[f]--,m-=2}while(m>0)for(o=f;0!==o;o--)for(r=e.bl_count[o];0!==r;)!((i=e.heap[--n])>l)&&(u[2*i+1]!==o&&(e.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),r--)}}(e,t),E(o,l,e.bl_count)}function I(e,t,n){var r,i,o=-1,a=t[1],s=0,u=7,l=4;for(0===a&&(u=138,l=3),t[(n+1)*2+1]=65535,r=0;r<=n;r++)i=a,a=t[(r+1)*2+1],++s>=7;a<30;a++)for(e=0,y[a]=s<<7;e<1<0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<256;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),k(e,e.l_desc),k(e,e.d_desc),a=function(e){var t;for(I(e,e.dyn_ltree,e.l_desc.max_code),I(e,e.dyn_dtree,e.d_desc.max_code),k(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*_[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(o=e.static_len+3+7>>>3)<=i&&(i=o)):i=o=n+5,n+4<=i&&-1!==t?P(e,t,n,r):4===e.strategy||o===i?(D(e,2+(r?1:0),3),M(e,p,d)):(D(e,4+(r?1:0),3),function(e,t,n,r){var i;for(D(e,t-257,5),D(e,n-1,5),D(e,r-4,4),i=0;i>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[(m[n]+256+1)*2]++,e.dyn_dtree[2*v(t)]++),e.last_lit===e.lit_bufsize-1},t._tr_align=function(e){D(e,2,3),S(e,256,p),16===e.bi_valid?(x(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}},744:e=>{"use strict";e.exports=function(){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}},9498:(e,t,n)=>{"use strict";let{ErrorWithCause:r}=n(1261),{findCauseByReference:i,getErrorCause:o,messageWithCauses:a,stackWithCauses:s}=n(1662);e.exports={ErrorWithCause:r,findCauseByReference:i,getErrorCause:o,stackWithCauses:s,messageWithCauses:a}},1261:e=>{"use strict";class t extends Error{constructor(e,{cause:n}={}){super(e),this.name=t.name,n&&(this.cause=n),this.message=e}}e.exports={ErrorWithCause:t}},1662:e=>{"use strict";let t=e=>{if(e&&"object"==typeof e&&"cause"in e){if("function"!=typeof e.cause)return e.cause instanceof Error?e.cause:void 0;{let t=e.cause();return t instanceof Error?t:void 0}}},n=(e,r)=>{if(!(e instanceof Error))return"";let i=e.stack||"";if(r.has(e))return i+"\ncauses have become circular...";let o=t(e);return o?(r.add(e),i+"\ncaused by: "+n(o,r)):i},r=(e,n,i)=>{if(!(e instanceof Error))return"";let o=i?"":e.message||"";if(n.has(e))return o+": ...";let a=t(e);if(!a)return o;{n.add(e);let t="cause"in e&&"function"==typeof e.cause;return o+(t?"":": ")+r(a,n,t)}};e.exports={findCauseByReference:(e,n)=>{if(!e||!n||!(e instanceof Error)||!(n.prototype instanceof Error)&&n!==Error)return;let r=new Set,i=e;for(;i&&!r.has(i);){if(r.add(i),i instanceof n)return i;i=t(i)}},getErrorCause:t,stackWithCauses:e=>n(e,new Set),messageWithCauses:e=>r(e,new Set)}},8261:(e,t,n)=>{e.exports=function(){"use strict";var e=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),t=e((e,t)=>{var r=function(e){return e&&e.Math==Math&&e};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()}),r=e((e,t)=>{t.exports=function(e){try{return!!e()}catch{return!0}}}),i=e((e,t)=>{var n=r();t.exports=!n(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})}),o=e((e,t)=>{var n=r();t.exports=!n(function(){var e=(function(){}).bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})}),a=e((e,t)=>{var n=o(),r=Function.prototype.call;t.exports=n?r.bind(r):function(){return r.apply(r,arguments)}}),s=e(e=>{var t={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,r=n&&!t.call({1:2},1);e.f=r?function(e){var t=n(this,e);return!!t&&t.enumerable}:t}),u=e((e,t)=>{t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}}),l=e((e,t)=>{var n=o(),r=Function.prototype,i=r.call,a=n&&r.bind.bind(i,i);t.exports=n?a:function(e){return function(){return i.apply(e,arguments)}}}),c=e((e,t)=>{var n=l(),r=n({}.toString),i=n("".slice);t.exports=function(e){return i(r(e),8,-1)}}),_=e((e,t)=>{var n=l(),i=r(),o=c(),a=Object,s=n("".split);t.exports=i(function(){return!a("z").propertyIsEnumerable(0)})?function(e){return"String"==o(e)?s(e,""):a(e)}:a}),p=e((e,t)=>{t.exports=function(e){return null==e}}),d=e((e,t)=>{var n=p(),r=TypeError;t.exports=function(e){if(n(e))throw r("Can't call method on "+e);return e}}),f=e((e,t)=>{var n=_(),r=d();t.exports=function(e){return n(r(e))}}),m=e((e,t)=>{var n="object"==typeof document&&document.all;t.exports={all:n,IS_HTMLDDA:typeof n>"u"&&void 0!==n}}),h=e((e,t)=>{var n=m(),r=n.all;t.exports=n.IS_HTMLDDA?function(e){return"function"==typeof e||e===r}:function(e){return"function"==typeof e}}),y=e((e,t)=>{var n=h(),r=m(),i=r.all;t.exports=r.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:n(e)||e===i}:function(e){return"object"==typeof e?null!==e:n(e)}}),g=e((e,n)=>{var r=t(),i=h();n.exports=function(e,t){var n;return arguments.length<2?i(n=r[e])?n:void 0:r[e]&&r[e][t]}}),b=e((e,t)=>{var n=l();t.exports=n({}.isPrototypeOf)}),v=e((e,t)=>{var n=g();t.exports=n("navigator","userAgent")||""}),x=e((e,n)=>{var r,i,o=t(),a=v(),s=o.process,u=o.Deno,l=s&&s.versions||u&&u.version,c=l&&l.v8;c&&(i=(r=c.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=+r[1]),n.exports=i}),D=e((e,t)=>{var n=x(),i=r();t.exports=!!Object.getOwnPropertySymbols&&!i(function(){var e=Symbol();return!String(e)||!(Object(e) instanceof Symbol)||!Symbol.sham&&n&&n<41})}),S=e((e,t)=>{var n=D();t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}),T=e((e,t)=>{var n=g(),r=h(),i=b(),o=S(),a=Object;t.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return r(t)&&i(t.prototype,a(e))}}),E=e((e,t)=>{var n=String;t.exports=function(e){try{return n(e)}catch{return"Object"}}}),w=e((e,t)=>{var n=h(),r=E(),i=TypeError;t.exports=function(e){if(n(e))return e;throw i(r(e)+" is not a function")}}),A=e((e,t)=>{var n=w(),r=p();t.exports=function(e,t){var i=e[t];return r(i)?void 0:n(i)}}),C=e((e,t)=>{var n=a(),r=h(),i=y(),o=TypeError;t.exports=function(e,t){var a,s;if("string"===t&&r(a=e.toString)&&!i(s=n(a,e))||r(a=e.valueOf)&&!i(s=n(a,e))||"string"!==t&&r(a=e.toString)&&!i(s=n(a,e)))return s;throw o("Can't convert object to primitive value")}}),N=e((e,t)=>{t.exports=!1}),M=e((e,n)=>{var r=t(),i=Object.defineProperty;n.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch{r[e]=t}return t}}),k=e((e,n)=>{var r=t(),i=M(),o="__core-js_shared__",a=r[o]||i(o,{});n.exports=a}),I=e((e,t)=>{var n=N(),r=k();(t.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.26.1",mode:n?"pure":"global",copyright:"\xa9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"})}),j=e((e,t)=>{var n=d(),r=Object;t.exports=function(e){return r(n(e))}}),O=e((e,t)=>{var n=l(),r=j(),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(e,t){return i(r(e),t)}}),P=e((e,t)=>{var n=l(),r=0,i=Math.random(),o=n(1..toString);t.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++r+i,36)}}),F=e((e,n)=>{var r=t(),i=I(),o=O(),a=P(),s=D(),u=S(),l=i("wks"),c=r.Symbol,_=c&&c.for,p=u?c:c&&c.withoutSetter||a;n.exports=function(e){if(!o(l,e)||!(s||"string"==typeof l[e])){var t="Symbol."+e;s&&o(c,e)?l[e]=c[e]:u&&_?l[e]=_(t):l[e]=p(t)}return l[e]}}),L=e((e,t)=>{var n=a(),r=y(),i=T(),o=A(),s=C(),u=F(),l=TypeError,c=u("toPrimitive");t.exports=function(e,t){if(!r(e)||i(e))return e;var a,u=o(e,c);if(u){if(void 0===t&&(t="default"),!r(a=n(u,e,t))||i(a))return a;throw l("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}}),z=e((e,t)=>{var n=L(),r=T();t.exports=function(e){var t=n(e,"string");return r(t)?t:t+""}}),R=e((e,n)=>{var r=t(),i=y(),o=r.document,a=i(o)&&i(o.createElement);n.exports=function(e){return a?o.createElement(e):{}}}),B=e((e,t)=>{var n=i(),o=r(),a=R();t.exports=!n&&!o(function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a})}),U=e(e=>{var t=i(),n=a(),r=s(),o=u(),l=f(),c=z(),_=O(),p=B(),d=Object.getOwnPropertyDescriptor;e.f=t?d:function(e,t){if(e=l(e),t=c(t),p)try{return d(e,t)}catch{}if(_(e,t))return o(!n(r.f,e,t),e[t])}}),J=e((e,t)=>{var n=i(),o=r();t.exports=n&&o(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}),$=e((e,t)=>{var n=y(),r=String,i=TypeError;t.exports=function(e){if(n(e))return e;throw i(r(e)+" is not an object")}}),K=e(e=>{var t=i(),n=B(),r=J(),o=$(),a=z(),s=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c="enumerable",_="configurable",p="writable";e.f=t?r?function(e,t,n){if(o(e),t=a(t),o(n),"function"==typeof e&&"prototype"===t&&"value"in n&&p in n&&!n[p]){var r=l(e,t);r&&r[p]&&(e[t]=n.value,n={configurable:_ in n?n[_]:r[_],enumerable:c in n?n[c]:r[c],writable:!1})}return u(e,t,n)}:u:function(e,t,r){if(o(e),t=a(t),o(r),n)try{return u(e,t,r)}catch{}if("get"in r||"set"in r)throw s("Accessors not supported");return"value"in r&&(e[t]=r.value),e}}),V=e((e,t)=>{var n=i(),r=K(),o=u();t.exports=n?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}}),Y=e((e,t)=>{var n=i(),r=O(),o=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,s=r(o,"name"),u=s&&(!n||n&&a(o,"name").configurable);t.exports={EXISTS:s,PROPER:s&&"something"===(function(){}).name,CONFIGURABLE:u}}),W=e((e,t)=>{var n=l(),r=h(),i=k(),o=n(Function.toString);r(i.inspectSource)||(i.inspectSource=function(e){return o(e)}),t.exports=i.inspectSource}),q=e((e,n)=>{var r=t(),i=h(),o=r.WeakMap;n.exports=i(o)&&/native code/.test(String(o))}),Q=e((e,t)=>{var n=I(),r=P(),i=n("keys");t.exports=function(e){return i[e]||(i[e]=r(e))}}),H=e((e,t)=>{t.exports={}}),G=e((e,n)=>{var r,i,o,a,s,u=q(),l=t(),c=y(),_=V(),p=O(),d=k(),f=Q(),m=H(),h="Object already initialized",g=l.TypeError,b=l.WeakMap;u||d.state?((r=d.state||(d.state=new b)).get=r.get,r.has=r.has,r.set=r.set,o=function(e,t){if(r.has(e))throw g(h);return t.facade=e,r.set(e,t),t},a=function(e){return r.get(e)||{}},s=function(e){return r.has(e)}):(m[i=f("state")]=!0,o=function(e,t){if(p(e,i))throw g(h);return t.facade=e,_(e,i,t),t},a=function(e){return p(e,i)?e[i]:{}},s=function(e){return p(e,i)}),n.exports={set:o,get:a,has:s,enforce:function(e){return s(e)?a(e):o(e,{})},getterFor:function(e){return function(t){var n;if(!c(t)||(n=a(t)).type!==e)throw g("Incompatible receiver, "+e+" required");return n}}}}),Z=e((e,t)=>{var n=r(),o=h(),a=O(),s=i(),u=Y().CONFIGURABLE,l=W(),c=G(),_=c.enforce,p=c.get,d=Object.defineProperty,f=s&&!n(function(){return 8!==d(function(){},"length",{value:8}).length}),m=String(String).split("String"),y=t.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||u&&e.name!==t)&&(s?d(e,"name",{value:t,configurable:!0}):e.name=t),f&&n&&a(n,"arity")&&e.length!==n.arity&&d(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch{}var r=_(e);return a(r,"source")||(r.source=m.join("string"==typeof t?t:"")),e};Function.prototype.toString=y(function(){return o(this)&&p(this).source||l(this)},"toString")}),X=e((e,t)=>{var n=h(),r=K(),i=Z(),o=M();t.exports=function(e,t,a,s){s||(s={});var u=s.enumerable,l=void 0!==s.name?s.name:t;if(n(a)&&i(a,l,s),s.global)u?e[t]=a:o(t,a);else{try{s.unsafe?e[t]&&(u=!0):delete e[t]}catch{}u?e[t]=a:r.f(e,t,{value:a,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}}),ee=e((e,t)=>{var n=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(e){var t=+e;return(t>0?r:n)(t)}}),et=e((e,t)=>{var n=ee();t.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}}),en=e((e,t)=>{var n=et(),r=Math.max,i=Math.min;t.exports=function(e,t){var o=n(e);return o<0?r(o+t,0):i(o,t)}}),er=e((e,t)=>{var n=et(),r=Math.min;t.exports=function(e){return e>0?r(n(e),9007199254740991):0}}),ei=e((e,t)=>{var n=er();t.exports=function(e){return n(e.length)}}),eo=e((e,t)=>{var n=f(),r=en(),i=ei(),o=function(e){return function(t,o,a){var s,u=n(t),l=i(u),c=r(a,l);if(e&&o!=o){for(;l>c;)if((s=u[c++])!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===o)return e||c||0;return!e&&-1}};t.exports={includes:o(!0),indexOf:o(!1)}}),ea=e((e,t)=>{var n=l(),r=O(),i=f(),o=eo().indexOf,a=H(),s=n([].push);t.exports=function(e,t){var n,u=i(e),l=0,c=[];for(n in u)!r(a,n)&&r(u,n)&&s(c,n);for(;t.length>l;)r(u,n=t[l++])&&(~o(c,n)||s(c,n));return c}}),es=e((e,t)=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]}),eu=e(e=>{var t=ea(),n=es().concat("length","prototype");e.f=Object.getOwnPropertyNames||function(e){return t(e,n)}}),el=e(e=>{e.f=Object.getOwnPropertySymbols}),ec=e((e,t)=>{var n=g(),r=l(),i=eu(),o=el(),a=$(),s=r([].concat);t.exports=n("Reflect","ownKeys")||function(e){var t=i.f(a(e)),n=o.f;return n?s(t,n(e)):t}}),e_=e((e,t)=>{var n=O(),r=ec(),i=U(),o=K();t.exports=function(e,t,a){for(var s=r(t),u=o.f,l=i.f,c=0;c{var n=r(),i=h(),o=/#|\.prototype\./,a=function(e,t){var r=u[s(e)];return r==c||r!=l&&(i(t)?n(t):!!t)},s=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},u=a.data={},l=a.NATIVE="N",c=a.POLYFILL="P";t.exports=a}),ed=e((e,n)=>{var r=t(),i=U().f,o=V(),a=X(),s=M(),u=e_(),l=ep();n.exports=function(e,t){var n,c,_,p,d,f=e.target,m=e.global,h=e.stat;if(n=m?r:h?r[f]||s(f,{}):(r[f]||{}).prototype)for(c in t){if(p=t[c],_=e.dontCallGetSet?(d=i(n,c))&&d.value:n[c],!l(m?c:f+(h?".":"#")+c,e.forced)&&void 0!==_){if(typeof p==typeof _)continue;u(p,_)}(e.sham||_&&_.sham)&&o(p,"sham",!0),a(n,c,p,e)}}}),ef=e(()=>{var e=ed(),n=t();e({global:!0,forced:n.globalThis!==n},{globalThis:n})}),em=e(()=>{ef()}),eh=e((e,t)=>{var n=Z(),r=K();t.exports=function(e,t,i){return i.get&&n(i.get,t,{getter:!0}),i.set&&n(i.set,t,{setter:!0}),r.f(e,t,i)}}),ey=e((e,t)=>{var n=$();t.exports=function(){var e=n(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}}),eg=e(()=>{var e=t(),n=i(),o=eh(),a=ey(),s=r(),u=e.RegExp,l=u.prototype;n&&s(function(){var e=!0;try{u(".","d")}catch{e=!1}var t={},n="",r=e?"dgimsy":"gimsy",i=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},o={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(o.hasIndices="d"),o)i(a,o[a]);return Object.getOwnPropertyDescriptor(l,"flags").get.call(t)!==r||n!==r})&&o(l,"flags",{configurable:!0,get:a})});return e((e,t)=>{em(),eg();var n,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,s=(e,t)=>function(){return e&&(t=(0,e[o(e)[0]])(e=0)),t},u=(e,t)=>function(){return t||(0,e[o(e)[0]])((t={exports:{}}).exports,t),t.exports},l=(e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})},c=(e,t,n,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let u of o(t))a.call(e,u)||u===n||r(e,u,{get:()=>t[u],enumerable:!(s=i(t,u))||s.enumerable});return e},_=e=>c(r({},"__esModule",{value:!0}),e),p=s({""(){n={env:{},argv:[]}}}),d=u({"src/common/parser-create-error.js"(e,t){p(),t.exports=function(e,t){let n=SyntaxError(e+" ("+t.start.line+":"+t.start.column+")");return n.loc=t,n}}}),f=u({"src/utils/try-combinations.js"(e,t){p(),t.exports=function(){let e;for(var t=arguments.length,n=Array(t),r=0;r"u"){var e=new ArrayBuffer(2),t=new Uint8Array(e),n=new Uint16Array(e);if(t[0]=1,t[1]=2,258===n[0])M="BE";else if(513===n[0])M="LE";else throw Error("unable to figure out endianess")}return M}function y(){return"u">typeof globalThis.location?globalThis.location.hostname:""}function g(){return[]}function b(){return 0}function v(){return Number.MAX_VALUE}function x(){return Number.MAX_VALUE}function D(){return[]}function S(){return"Browser"}function T(){return"u">typeof globalThis.navigator?globalThis.navigator.appVersion:""}function E(){}function w(){}function A(){return"javascript"}function C(){return"browser"}function N(){return"/tmp"}l(m,{EOL:()=>I,arch:()=>A,cpus:()=>D,default:()=>j,endianness:()=>h,freemem:()=>v,getNetworkInterfaces:()=>w,hostname:()=>y,loadavg:()=>g,networkInterfaces:()=>E,platform:()=>C,release:()=>T,tmpDir:()=>N,tmpdir:()=>k,totalmem:()=>x,type:()=>S,uptime:()=>b});var M,k,I,j,O=s({"node-modules-polyfills:os"(){p(),j={EOL:I=` + */let r=n(5766),i=n(2333),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return u(e,t,n)}function u(e,t,n){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!s.isEncoding(t))throw TypeError("Unknown encoding: "+t);let n=0|f(e,t),r=a(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(L(e,Uint8Array)){let t=new Uint8Array(e);return p(t.buffer,t.byteOffset,t.byteLength)}return _(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(L(e,ArrayBuffer)||e&&L(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(L(e,SharedArrayBuffer)||e&&L(e.buffer,SharedArrayBuffer)))return p(e,t,n);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');let r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return s.from(r,t,n);let i=function(e){if(s.isBuffer(e)){let t=0|d(e.length),n=a(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length){var t;return"number"!=typeof e.length||(t=e.length)!=t?a(0):_(e)}if("Buffer"===e.type&&Array.isArray(e.data))return _(e.data)}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,n);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function l(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return l(e),a(e<0?0:0|d(e))}function _(e){let t=e.length<0?0:0|d(e.length),n=a(t);for(let r=0;r=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function f(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||L(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return O(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return P(e).length;default:if(i)return r?-1:O(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,n){let i=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){let r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i="";for(let r=t;r2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),(o=n=+n)!=o&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return -1;n=e.length-1}else if(n<0){if(!i)return -1;n=0}if("string"==typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:g(e,t,n,r,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):g(e,[t],n,r,i);throw TypeError("val must be string, number or Buffer")}function g(e,t,n,r,i){let o,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;a=2,s/=2,u/=2,n/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let r=-1;for(o=n;os&&(n=s-u),o=n;o>=0;o--){let n=!0;for(let r=0;r239?4:t>223?3:t>191?2:1;if(i+a<=n){let n,r,s,u;switch(a){case 1:t<128&&(o=t);break;case 2:(192&(n=e[i+1]))==128&&(u=(31&t)<<6|63&n)>127&&(o=u);break;case 3:n=e[i+1],r=e[i+2],(192&n)==128&&(192&r)==128&&(u=(15&t)<<12|(63&n)<<6|63&r)>2047&&(u<55296||u>57343)&&(o=u);break;case 4:n=e[i+1],r=e[i+2],s=e[i+3],(192&n)==128&&(192&r)==128&&(192&s)==128&&(u=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s)>65535&&u<1114112&&(o=u)}}null===o?(o=65533,a=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=a}return function(e){let t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);let n="",r=0;for(;rn)throw RangeError("Trying to access beyond buffer length")}function x(e,t,n,r,i,o){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw RangeError("Index out of range")}function D(e,t,n,r,i){M(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function S(e,t,n,r,i){M(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n+7]=o,o>>=8,e[n+6]=o,o>>=8,e[n+5]=o,o>>=8,e[n+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function T(e,t,n,r,i,o){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function E(e,t,n,r,o){return t=+t,n>>>=0,o||T(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function w(e,t,n,r,o){return t=+t,n>>>=0,o||T(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}t.Buffer=s,t.SlowBuffer=function(e){return+e!=e&&(e=0),s.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=2147483647,s.TYPED_ARRAY_SUPPORT=function(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||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."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,n){return u(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,n){return(l(e),e<=0)?a(e):void 0!==t?"string"==typeof n?a(e).fill(t,n):a(e).fill(t):a(e)},s.allocUnsafe=function(e){return c(e)},s.allocUnsafeSlow=function(e){return c(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(L(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),L(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,o=Math.min(n,r);ir.length?(s.isBuffer(t)||(t=s.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else if(s.isBuffer(t))t.copy(r,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=t.length}return r},s.byteLength=f,s.prototype._isBuffer=!0,s.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tn&&(e+=" ... "),""},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(L(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;let o=i-r,a=n-t,u=Math.min(o,a),l=this.slice(r,i),c=e.slice(t,n);for(let e=0;e>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let p=this.length-t;if((void 0===n||n>p)&&(n=p),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let d=!1;for(;;)switch(r){case"hex":return function(e,t,n,r){let i;n=Number(n)||0;let o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;let a=t.length;for(r>a/2&&(r=a/2),i=0;i>8,i.push(n%256),i.push(r);return i}(e,this.length-c),this,c,_);default:if(d)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),d=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){let n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||v(e,t,this.length);let r=this[e],i=1,o=0;for(;++o>>=0,t>>>=0,n||v(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||v(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||v(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||v(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||v(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||v(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readBigUInt64LE=R(function(e){k(e>>>=0,"offset");let t=this[e],n=this[e+7];(void 0===t||void 0===n)&&I(e,this.length-8);let r=t+256*this[++e]+65536*this[++e]+16777216*this[++e],i=this[++e]+256*this[++e]+65536*this[++e]+16777216*n;return BigInt(r)+(BigInt(i)<>>=0,"offset");let t=this[e],n=this[e+7];(void 0===t||void 0===n)&&I(e,this.length-8);let r=16777216*t+65536*this[++e]+256*this[++e]+this[++e],i=16777216*this[++e]+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<>>=0,t>>>=0,n||v(e,t,this.length);let r=this[e],i=1,o=0;for(;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||v(e,t,this.length);let r=t,i=1,o=this[e+--r];for(;r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return(e>>>=0,t||v(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||v(e,2,this.length);let n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||v(e,2,this.length);let n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||v(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||v(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readBigInt64LE=R(function(e){k(e>>>=0,"offset");let t=this[e],n=this[e+7];(void 0===t||void 0===n)&&I(e,this.length-8);let r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<>>=0,"offset");let t=this[e],n=this[e+7];(void 0===t||void 0===n)&&I(e,this.length-8);let r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<>>=0,t||v(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||v(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||v(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||v(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){let r=Math.pow(2,8*n)-1;x(this,e,t,n,r,0)}let i=1,o=0;for(this[t]=255&e;++o>>=0,n>>>=0,!r){let r=Math.pow(2,8*n)-1;x(this,e,t,n,r,0)}let i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigUInt64LE=R(function(e,t=0){return D(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=R(function(e,t=0){return S(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=Math.pow(2,8*n-1);x(this,e,t,n,r-1,-r)}let i=0,o=1,a=0;for(this[t]=255&e;++i>0)-a&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=Math.pow(2,8*n-1);x(this,e,t,n,r-1,-r)}let i=n-1,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o>>0)-a&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigInt64LE=R(function(e,t=0){return D(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=R(function(e,t=0){return S(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeFloatLE=function(e,t,n){return E(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return E(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return w(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return w(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function M(e,t,n,r,i,o){if(e>n||e3?0===t||t===BigInt(0)?`>= 0${i} and < 2${i} ** ${(o+1)*8}${i}`:`>= -(2${i} ** ${(o+1)*8-1}${i}) and < 2 ** ${(o+1)*8-1}${i}`:`>= ${t}${i} and <= ${n}${i}`,new A.ERR_OUT_OF_RANGE("value",r,e)}k(i,"offset"),(void 0===r[i]||void 0===r[i+o])&&I(i,r.length-(o+1))}function k(e,t){if("number"!=typeof e)throw new A.ERR_INVALID_ARG_TYPE(t,"number",e)}function I(e,t,n){if(Math.floor(e)!==e)throw k(e,n),new A.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new A.ERR_BUFFER_OUT_OF_BOUNDS;throw new A.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}C("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),C("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),C("ERR_OUT_OF_RANGE",function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>4294967296?i=N(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=N(i)),i+="n"),r+=` It must be ${t}. Received ${i}`},RangeError);let j=/[^+/0-9A-Za-z-_]/g;function O(e,t){let n;t=t||1/0;let r=e.length,i=null,o=[];for(let a=0;a55295&&n<57344){if(!i){if(n>56319||a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return o}function P(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(j,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function F(e,t,n,r){let i;for(i=0;i=t.length)&&!(i>=e.length);++i)t[i+n]=e[i];return i}function L(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}let z=function(){let e="0123456789abcdef",t=Array(256);for(let n=0;n<16;++n){let r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function R(e){return"undefined"==typeof BigInt?B:e}function B(){throw Error("BigInt not supported")}},5890:(e,t,n)=>{"use strict";var r=n(4406);let i=n(7699),o=["assert","buffer","child_process","cluster","console","constants","crypto","dgram","dns","domain","events","fs","http","https","module","net","os","path","punycode","querystring","readline","repl","stream","string_decoder","sys","timers","tls","tty","url","util","vm","zlib"],a={freelist:"<6.0.0",v8:">=1.0.0",process:">=1.1.0",inspector:">=8.0.0",async_hooks:">=8.1.0",http2:">=8.4.0",perf_hooks:">=8.5.0",trace_events:">=10.0.0",worker_threads:">=12.0.0","node:test":">=18.0.0"},s={worker_threads:">=10.5.0",wasi:">=12.16.0",diagnostics_channel:"^14.17.0 || >=15.1.0"};e.exports=({version:e=r.version,experimental:t=!1}={})=>{let n=[...o];for(let[t,r]of Object.entries(a))("*"===e||i.satisfies(e,r))&&n.push(t);if(t)for(let[t,r]of Object.entries(s))!n.includes(t)&&("*"===e||i.satisfies(e,r))&&n.push(t);return n}},2680:(e,t,n)=>{"use strict";var r=n(7286),i=n(9429),o=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&o(e,".prototype.")>-1?i(n):n}},9429:(e,t,n)=>{"use strict";var r=n(4090),i=n(7286),o=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||r.call(a,o),u=i("%Object.getOwnPropertyDescriptor%",!0),l=i("%Object.defineProperty%",!0),c=i("%Math.max%");if(l)try{l({},"a",{value:1})}catch(e){l=null}e.exports=function(e){var t=s(r,a,arguments);return u&&l&&u(t,"length").configurable&&l(t,"length",{value:1+c(0,e.length-(arguments.length-1))}),t};var _=function(){return s(r,o,arguments)};l?l(e.exports,"apply",{value:_}):e.exports.apply=_},101:(e,t,n)=>{var r=n(8834).Buffer,i=n(7525).Writable,o=n(1285),a=n(314);if("undefined"==typeof Uint8Array)var s=n(9085).U2;else var s=Uint8Array;function u(e,t){if(!(this instanceof u))return new u(e,t);"function"==typeof e&&(t=e,e={}),e||(e={});var n=e.encoding,r=!1;n?("u8"===(n=String(n).toLowerCase())||"uint8"===n)&&(n="uint8array"):r=!0,i.call(this,{objectMode:!0}),this.encoding=n,this.shouldInferEncoding=r,t&&this.on("finish",function(){t(this.getBody())}),this.body=[]}function l(e){return"string"==typeof e||/Array\]$/.test(Object.prototype.toString.call(e))||e&&"function"==typeof e.subarray}e.exports=u,o(u,i),u.prototype._write=function(e,t,n){this.body.push(e),n()},u.prototype.inferEncoding=function(e){var t=void 0===e?this.body[0]:e;return r.isBuffer(t)?"buffer":"undefined"!=typeof Uint8Array&&t instanceof Uint8Array?"uint8array":Array.isArray(t)?"array":"string"==typeof t?"string":"[object Object]"===Object.prototype.toString.call(t)?"object":"buffer"},u.prototype.getBody=function(){return this.encoding||0!==this.body.length?(this.shouldInferEncoding&&(this.encoding=this.inferEncoding()),"array"===this.encoding)?function(e){for(var t=[],n=0;n{"use strict";var r=n(8085);function i(e,t){var n={zone:t};if(e?e instanceof i?this._date=e._date:e instanceof Date?this._date=r.DateTime.fromJSDate(e,n):"number"==typeof e?this._date=r.DateTime.fromMillis(e,n):"string"==typeof e&&(this._date=r.DateTime.fromISO(e,n),this._date.isValid||(this._date=r.DateTime.fromRFC2822(e,n)),this._date.isValid||(this._date=r.DateTime.fromSQL(e,n)),this._date.isValid||(this._date=r.DateTime.fromFormat(e,"EEE, d MMM yyyy HH:mm:ss",n))):this._date=r.DateTime.local(),!this._date||!this._date.isValid)throw Error("CronDate: unhandled timestamp: "+JSON.stringify(e));t&&t!==this._date.zoneName&&(this._date=this._date.setZone(t))}i.prototype.addYear=function(){this._date=this._date.plus({years:1})},i.prototype.addMonth=function(){this._date=this._date.plus({months:1}).startOf("month")},i.prototype.addDay=function(){this._date=this._date.plus({days:1}).startOf("day")},i.prototype.addHour=function(){var e=this._date;this._date=this._date.plus({hours:1}).startOf("hour"),this._date<=e&&(this._date=this._date.plus({hours:1}))},i.prototype.addMinute=function(){var e=this._date;this._date=this._date.plus({minutes:1}).startOf("minute"),this._date=e&&(this._date=this._date.minus({hours:1}))},i.prototype.subtractMinute=function(){var e=this._date;this._date=this._date.minus({minutes:1}).endOf("minute").startOf("second"),this._date>e&&(this._date=this._date.minus({hours:1}))},i.prototype.subtractSecond=function(){var e=this._date;this._date=this._date.minus({seconds:1}).startOf("second"),this._date>e&&(this._date=this._date.minus({hours:1}))},i.prototype.getDate=function(){return this._date.day},i.prototype.getFullYear=function(){return this._date.year},i.prototype.getDay=function(){var e=this._date.weekday;return 7==e?0:e},i.prototype.getMonth=function(){return this._date.month-1},i.prototype.getHours=function(){return this._date.hour},i.prototype.getMinutes=function(){return this._date.minute},i.prototype.getSeconds=function(){return this._date.second},i.prototype.getMilliseconds=function(){return this._date.millisecond},i.prototype.getTime=function(){return this._date.valueOf()},i.prototype.getUTCDate=function(){return this._getUTC().day},i.prototype.getUTCFullYear=function(){return this._getUTC().year},i.prototype.getUTCDay=function(){var e=this._getUTC().weekday;return 7==e?0:e},i.prototype.getUTCMonth=function(){return this._getUTC().month-1},i.prototype.getUTCHours=function(){return this._getUTC().hour},i.prototype.getUTCMinutes=function(){return this._getUTC().minute},i.prototype.getUTCSeconds=function(){return this._getUTC().second},i.prototype.toISOString=function(){return this._date.toUTC().toISO()},i.prototype.toJSON=function(){return this._date.toJSON()},i.prototype.setDate=function(e){this._date=this._date.set({day:e})},i.prototype.setFullYear=function(e){this._date=this._date.set({year:e})},i.prototype.setDay=function(e){this._date=this._date.set({weekday:e})},i.prototype.setMonth=function(e){this._date=this._date.set({month:e+1})},i.prototype.setHours=function(e){this._date=this._date.set({hour:e})},i.prototype.setMinutes=function(e){this._date=this._date.set({minute:e})},i.prototype.setSeconds=function(e){this._date=this._date.set({second:e})},i.prototype.setMilliseconds=function(e){this._date=this._date.set({millisecond:e})},i.prototype._getUTC=function(){return this._date.toUTC()},i.prototype.toString=function(){return this.toDate().toString()},i.prototype.toDate=function(){return this._date.toJSDate()},i.prototype.isLastDayOfMonth=function(){var e=this._date.plus({days:1}).startOf("day");return this._date.month!==e.month},i.prototype.isLastWeekdayOfMonth=function(){var e=this._date.plus({days:7}).startOf("day");return this._date.month!==e.month},e.exports=i},2249:(e,t,n)=>{"use strict";var r=n(4167),i=n(9661);function o(e,t){this._options=t,this._utc=t.utc||!1,this._tz=this._utc?"UTC":t.tz,this._currentDate=new r(t.currentDate,this._tz),this._startDate=t.startDate?new r(t.startDate,this._tz):null,this._endDate=t.endDate?new r(t.endDate,this._tz):null,this._isIterator=t.iterator||!1,this._hasIterated=!1,this._nthDayOfWeek=t.nthDayOfWeek||0,this.fields=o._freezeFields(e)}o.map=["second","minute","hour","dayOfMonth","month","dayOfWeek"],o.predefined={"@yearly":"0 0 1 1 *","@monthly":"0 0 1 * *","@weekly":"0 0 * * 0","@daily":"0 0 * * *","@hourly":"0 * * * *"},o.constraints=[{min:0,max:59,chars:[]},{min:0,max:59,chars:[]},{min:0,max:23,chars:[]},{min:1,max:31,chars:["L"]},{min:1,max:12,chars:[]},{min:0,max:7,chars:["L"]}],o.daysInMonth=[31,29,31,30,31,30,31,31,30,31,30,31],o.aliases={month:{jan:1,feb:2,mar:3,apr:4,may:5,jun:6,jul:7,aug:8,sep:9,oct:10,nov:11,dec:12},dayOfWeek:{sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6}},o.parseDefaults=["0","*","*","*","*","*"],o.standardValidCharacters=/^[,*\d/-]+$/,o.dayOfWeekValidCharacters=/^[?,*\dL#/-]+$/,o.dayOfMonthValidCharacters=/^[?,*\dL/-]+$/,o.validCharacters={second:o.standardValidCharacters,minute:o.standardValidCharacters,hour:o.standardValidCharacters,dayOfMonth:o.dayOfMonthValidCharacters,month:o.standardValidCharacters,dayOfWeek:o.dayOfWeekValidCharacters},o._isValidConstraintChar=function(e,t){return"string"==typeof t&&e.chars.some(function(e){return t.indexOf(e)>-1})},o._parseField=function(e,t,n){switch(e){case"month":case"dayOfWeek":var r=o.aliases[e];t=t.replace(/[a-z]{3}/gi,function(e){if(void 0!==r[e=e.toLowerCase()])return r[e];throw Error('Validation error, cannot resolve alias "'+e+'"')})}if(!o.validCharacters[e].test(t))throw Error("Invalid characters, got value: "+t);function i(e){var t=e.split("/");if(t.length>2)throw Error("Invalid repeat: "+e);return t.length>1?(t[0]==+t[0]&&(t=[t[0]+"-"+n.max,t[1]]),a(t[0],t[t.length-1])):a(e,1)}function a(t,r){var i=[],o=t.split("-");if(o.length>1){if(o.length<2)return+t;if(!o[0].length){if(!o[1].length)throw Error("Invalid range: "+t);return+t}var a=+o[0],s=+o[1];if(Number.isNaN(a)||Number.isNaN(s)||an.max)throw Error("Constraint error, got range "+a+"-"+s+" expected range "+n.min+"-"+n.max);if(a>s)throw Error("Invalid range: "+t);var u=+r;if(Number.isNaN(u)||u<=0)throw Error("Constraint error, cannot repeat at every "+u+" time.");"dayOfWeek"===e&&s%7==0&&i.push(0);for(var l=a;l<=s;l++)!(-1!==i.indexOf(l))&&u>0&&u%r==0?(u=1,i.push(l)):u++;return i}return Number.isNaN(+t)?t:+t}return -1!==t.indexOf("*")?t=t.replace(/\*/g,n.min+"-"+n.max):-1!==t.indexOf("?")&&(t=t.replace(/\?/g,n.min+"-"+n.max)),function(t){var r=[];function a(t){if(t instanceof Array)for(var i=0,a=t.length;in.max)throw Error("Constraint error, got value "+s+" expected range "+n.min+"-"+n.max);r.push(s)}else{if(o._isValidConstraintChar(n,t)){r.push(t);return}var u=+t;if(Number.isNaN(u)||un.max)throw Error("Constraint error, got value "+t+" expected range "+n.min+"-"+n.max);"dayOfWeek"===e&&(u%=7),r.push(u)}}var s=t.split(",");if(!s.every(function(e){return e.length>0}))throw Error("Invalid list value format");if(s.length>1)for(var u=0,l=s.length;ut)throw Error("Invalid explicit day of month definition");return e.dayOfMonth.filter(function(e){return"L"===e||e<=t}).sort(o._sortCompareFn)}},o._freezeFields=function(e){for(var t=0,n=o.map.length;t=e)return t[n]===e;return t[0]===e}function n(e){return e.length>0&&e.some(function(e){return"string"==typeof e&&e.indexOf("L")>=0})}for(var i=(e=e||!1)?"subtract":"add",a=new r(this._currentDate,this._tz),s=this._startDate,u=this._endDate,l=a.getTime(),c=0;c<1e4;){if(c++,e){if(s&&a.getTime()-s.getTime()<0)throw Error("Out of the timespan range")}else if(u&&u.getTime()-a.getTime()<0)throw Error("Out of the timespan range");var _=t(a.getDate(),this.fields.dayOfMonth);n(this.fields.dayOfMonth)&&(_=_||a.isLastDayOfMonth());var p=t(a.getDay(),this.fields.dayOfWeek);n(this.fields.dayOfWeek)&&(p=p||this.fields.dayOfWeek.some(function(e){if(!n([e]))return!1;var t=Number.parseInt(e[0])%7;if(Number.isNaN(t))throw Error("Invalid last weekday of the month expression: "+e);return a.getDay()===t&&a.isLastWeekdayOfMonth()}));var d=this.fields.dayOfMonth.length>=o.daysInMonth[a.getMonth()],f=this.fields.dayOfWeek.length===o.constraints[5].max-o.constraints[5].min+1,m=a.getHours();if(!_&&(!p||f)||!d&&f&&!_||d&&!f&&!p||this._nthDayOfWeek>0&&!function(e,t){if(t<6){if(8>e.getDate()&&1===t)return!0;var n=e.getDate()%7?1:0;return Math.floor((e.getDate()-e.getDate()%7)/7)+n===t}return!1}(a,this._nthDayOfWeek)){this._applyTimezoneShift(a,i,"Day");continue}if(!t(a.getMonth()+1,this.fields.month)){this._applyTimezoneShift(a,i,"Month");continue}if(t(m,this.fields.hour)){if(this._dstEnd===m&&!e){this._dstEnd=null,this._applyTimezoneShift(a,"add","Hour");continue}}else{if(this._dstStart!==m){this._dstStart=null,this._applyTimezoneShift(a,i,"Hour");continue}if(!t(m-1,this.fields.hour)){a[i+"Hour"]();continue}}if(!t(a.getMinutes(),this.fields.minute)){this._applyTimezoneShift(a,i,"Minute");continue}if(!t(a.getSeconds(),this.fields.second)){this._applyTimezoneShift(a,i,"Second");continue}if(l===a.getTime()){"add"===i||0===a.getMilliseconds()?this._applyTimezoneShift(a,i,"Second"):a.setMilliseconds(0);continue}break}if(c>=1e4)throw Error("Invalid expression, loop limit exceeded");return this._currentDate=new r(a,this._tz),this._hasIterated=!0,a},o.prototype.next=function(){var e=this._findSchedule();return this._isIterator?{value:e,done:!this.hasNext()}:e},o.prototype.prev=function(){var e=this._findSchedule(!0);return this._isIterator?{value:e,done:!this.hasPrev()}:e},o.prototype.hasNext=function(){var e=this._currentDate,t=this._hasIterated;try{return this._findSchedule(),!0}catch(e){return!1}finally{this._currentDate=e,this._hasIterated=t}},o.prototype.hasPrev=function(){var e=this._currentDate,t=this._hasIterated;try{return this._findSchedule(!0),!0}catch(e){return!1}finally{this._currentDate=e,this._hasIterated=t}},o.prototype.iterate=function(e,t){var n=[];if(e>=0)for(var r=0,i=e;ri;r--)try{var o=this.prev();n.push(o),t&&t(o,r)}catch(e){break}return n},o.prototype.reset=function(e){this._currentDate=new r(e||this._options.currentDate)},o.prototype.stringify=function(e){for(var t=[],n=e?0:1,r=o.map.length;n6)throw Error("Invalid cron expression");for(var s=o.map.length-a.length,u=0,l=o.map.length;ul?u:u-s];if(u1){var r=+n[n.length-1];if(/,/.test(e))throw Error("Constraint error, invalid dayOfWeek `#` and `,` special characters are incompatible");if(/\//.test(e))throw Error("Constraint error, invalid dayOfWeek `#` and `/` special characters are incompatible");if(/-/.test(e))throw Error("Constraint error, invalid dayOfWeek `#` and `-` special characters are incompatible");if(n.length>2||Number.isNaN(r)||r<1||r>5)throw Error("Constraint error, invalid dayOfWeek occurrence number (#)");return t.nthDayOfWeek=r,n[0]}return e}(_):_;i.push(o._parseField(c,p,o.constraints[u]))}}for(var d={},u=0,l=o.map.length;un.max))throw Error("Constraint error, got value "+a+" expected range "+n.min+"-"+n.max)}}(a,s,o.constraints[r]);for(var u=[],l=-1;++l{"use strict";function t(e){return{start:e,count:1}}function n(e,t){e.end=t,e.step=t-e.start,e.count=2}function r(e,n,r){n&&(2===n.count?(e.push(t(n.start)),e.push(t(n.end))):e.push(n)),r&&e.push(r)}e.exports=function(e){for(var i=[],o=void 0,a=0;a{"use strict";var r=n(7156);e.exports=function(e,t,n){var i=r(e);if(1===i.length){var o=i[0],a=o.step;if(1===a&&o.start===t&&o.end===n)return"*";if(1!==a&&o.start===t&&o.end===n-a+1)return"*/"+a}for(var s=[],u=0,l=i.length;uc.end?s.push(e.join(",")):c.end===n-c.step+1?s.push(c.start+"/"+c.step):s.push(c.start+"-"+c.end+"/"+c.step)}return s.join(",")}},3601:(e,t,n)=>{"use strict";var r=n(2249);function i(){}i._parseEntry=function(e){var t=e.split(" ");if(6===t.length)return{interval:r.parse(e)};if(t.length>6)return{interval:r.parse(t.slice(0,6).join(" ")),command:t.slice(6,t.length)};throw Error("Invalid entry: "+e)},i.parseExpression=function(e,t){return r.parse(e,t)},i.fieldsToExpression=function(e,t){return r.fieldsToExpression(e,t)},i.parseString=function(e){for(var t=e.split("\n"),n={variables:{},expressions:[],errors:{}},r=0,o=t.length;r0){if(u.match(/^#/))continue;if(s=u.match(/^(.*)=(.*)$/))n.variables[s[1]]=s[2];else{var l=null;try{l=i._parseEntry("0 "+u),n.expressions.push(l.interval)}catch(e){n.errors[u]=e}}}}return n},i.parseFile=function(e,t){n(6831).readFile(e,function(e,n){if(e){t(e);return}return t(null,i.parseString(n.toString()))})},e.exports=i},5881:e=>{function t(e,t,n,r){return Math.round(e/n)+" "+r+(t>=1.5*n?"s":"")}e.exports=function(e,n){n=n||{};var r,i,o=typeof e;if("string"===o&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*n;case"weeks":case"week":case"w":return 6048e5*n;case"days":case"day":case"d":return 864e5*n;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*n;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*n;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}(e);if("number"===o&&isFinite(e))return n.long?(r=Math.abs(e))>=864e5?t(e,r,864e5,"day"):r>=36e5?t(e,r,36e5,"hour"):r>=6e4?t(e,r,6e4,"minute"):r>=1e3?t(e,r,1e3,"second"):e+" ms":(i=Math.abs(e))>=864e5?Math.round(e/864e5)+"d":i>=36e5?Math.round(e/36e5)+"h":i>=6e4?Math.round(e/6e4)+"m":i>=1e3?Math.round(e/1e3)+"s":e+"ms";throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},5130:(e,t,n)=>{var r=n(4406);t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;let n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(i=r))}),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG),e},t.useColors=function(){return"undefined"!=typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(7123)(t);let{formatters:i}=e.exports;i.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},7123:(e,t,n)=>{e.exports=function(e){function t(e){let n,i,o;let a=null;function s(...e){if(!s.enabled)return;let r=Number(new Date),i=r-(n||r);s.diff=i,s.prev=n,s.curr=r,n=r,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(n,r)=>{if("%%"===n)return"%";o++;let i=t.formatters[r];if("function"==typeof i){let t=e[o];n=i.call(s,t),e.splice(o,1),o--}return n}),t.formatArgs.call(s,e);let a=s.log||t.log;a.apply(s,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=r,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(i!==t.namespaces&&(i=t.namespaces,o=t.enabled(e)),o),set:e=>{a=e}}),"function"==typeof t.init&&t.init(s),s}function r(e,n){let r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){let e=[...t.names.map(i),...t.skips.map(i).map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];let r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t{"use strict";var r=n(3464),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=Object.defineProperty,u=n(1181)(),l=s&&u,c=function(e,t,n,r){(!(t in e)||"function"==typeof r&&"[object Function]"===o.call(r)&&r())&&(l?s(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n)},_=function(e,t){var n=arguments.length>2?arguments[2]:{},o=r(t);i&&(o=a.call(o,Object.getOwnPropertySymbols(t)));for(var s=0;s{"use strict";function t(e,t){if(null==e)throw TypeError("Cannot convert first argument to object");for(var n=Object(e),r=1;r{"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise(function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}m(e,t,o,{once:!0}),"error"!==t&&"function"==typeof e.on&&m(e,"error",i,{once:!0})})},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function l(e,t,n,r){if(s(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=u(e))>0&&a.length>i&&!a.warned){a.warned=!0;var i,o,a,l=Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,console&&console.warn&&console.warn(l)}return e}function c(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=c.bind(r);return i.listener=n,r.wrapFn=i,i}function p(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=Array(e.length),n=0;n0&&(a=t[0]),a instanceof Error)throw a;var a,s=Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=o[e];if(void 0===u)return!1;if("function"==typeof u)r(u,this,t);else for(var l=u.length,c=f(u,l),n=0;n=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return p(this,e,!0)},o.prototype.rawListeners=function(e){return p(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},o.prototype.listenerCount=d,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},2598:e=>{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(i of t.entries())if(!n.has(i[0]))return!1;for(i of t.entries())if(!e(i[1],n.get(i[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(i of t.entries())if(!n.has(i[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(t[i]!==n[i])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!=i--;){var r,i,o,a=o[i];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}},9375:e=>{e.exports=class{constructor(e){if(!(e>0)||(e-1&e)!=0)throw Error("Max size for a FixedFIFO should be a power of two");this.buffer=Array(e),this.mask=e-1,this.top=0,this.btm=0,this.next=null}clear(){this.top=this.btm=0,this.next=null,this.buffer.fill(void 0)}push(e){return void 0===this.buffer[this.top]&&(this.buffer[this.top]=e,this.top=this.top+1&this.mask,!0)}shift(){let e=this.buffer[this.btm];if(void 0!==e)return this.buffer[this.btm]=void 0,this.btm=this.btm+1&this.mask,e}peek(){return this.buffer[this.btm]}isEmpty(){return void 0===this.buffer[this.btm]}}},2865:(e,t,n)=>{let r=n(9375);e.exports=class{constructor(e){this.hwm=e||16,this.head=new r(this.hwm),this.tail=this.head,this.length=0}clear(){this.head=this.tail,this.head.clear(),this.length=0}push(e){if(this.length++,!this.head.push(e)){let t=this.head;this.head=t.next=new r(2*this.head.buffer.length),this.head.push(e)}}shift(){0!==this.length&&this.length--;let e=this.tail.shift();if(void 0===e&&this.tail.next){let e=this.tail.next;return this.tail.next=null,this.tail=e,this.tail.shift()}return e}peek(){let e=this.tail.peek();return void 0===e&&this.tail.next?this.tail.next.peek():e}isEmpty(){return 0===this.length}}},5695:e=>{"use strict";e.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var n,r="boolean"==typeof t.cycles&&t.cycles,i=t.cmp&&(n=t.cmp,function(e){return function(t,r){return n({key:t,value:e[t]},{key:r,value:e[r]})}}),o=[];return function e(t){if(t&&t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);if(Array.isArray(t)){for(n=0,a="[";n{e.exports=a,a.default=a,a.stable=l,a.stableStringify=l;var t="[...]",n="[Circular]",r=[],i=[];function o(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function a(e,a,u,l){void 0===l&&(l=o()),function e(r,i,o,a,u,l,c){if(l+=1,"object"==typeof r&&null!==r){for(_=0;_c.depthLimit||void 0!==c.edgesLimit&&o+1>c.edgesLimit){s(t,r,i,u);return}if(a.push(r),Array.isArray(r))for(_=0;_t?1:0}function l(e,a,l,_){void 0===_&&(_=o());var p,d=function e(i,o,a,l,c,_,p){if(_+=1,"object"==typeof i&&null!==i){for(d=0;dp.depthLimit||void 0!==p.edgesLimit&&a+1>p.edgesLimit){s(t,i,o,c);return}if(l.push(i),Array.isArray(i))for(d=0;d0)for(var r=0;r{"use strict";let r=n(3325),i=n(3281),o=n(7932);e.exports={XMLParser:i,XMLValidator:r,XMLBuilder:o}},4056:(e,t)=>{"use strict";let n=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",r="["+n+"]["+n+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",i=RegExp("^"+r+"$");t.isExist=function(e){return void 0!==e},t.isEmptyObject=function(e){return 0===Object.keys(e).length},t.merge=function(e,t,n){if(t){let r=Object.keys(t),i=r.length;for(let o=0;o{"use strict";let r=n(4056),i={allowBooleanAttributes:!1,unpairedTags:[]};function o(e){return" "===e||" "===e||"\n"===e||"\r"===e}function a(e,t){let n=t;for(;t5&&"xml"===r)return c("InvalidXml","XML declaration allowed only at the start of the document.",_(e,t));if("?"!=e[t]||">"!=e[t+1])continue;t++;break}return t}function s(e,t){if(e.length>t+5&&"-"===e[t+1]&&"-"===e[t+2]){for(t+=3;t"===e[t+2]){t+=2;break}}else if(e.length>t+8&&"D"===e[t+1]&&"O"===e[t+2]&&"C"===e[t+3]&&"T"===e[t+4]&&"Y"===e[t+5]&&"P"===e[t+6]&&"E"===e[t+7]){let n=1;for(t+=8;t"===e[t]&&0==--n)break}else if(e.length>t+9&&"["===e[t+1]&&"C"===e[t+2]&&"D"===e[t+3]&&"A"===e[t+4]&&"T"===e[t+5]&&"A"===e[t+6]&&"["===e[t+7]){for(t+=8;t"===e[t+2]){t+=2;break}}return t}t.validate=function(e,t){t=Object.assign({},i,t);let n=[],u=!1,p=!1;"\uFEFF"===e[0]&&(e=e.substr(1));for(let i=0;i"!==e[i]&&" "!==e[i]&&" "!==e[i]&&"\n"!==e[i]&&"\r"!==e[i];i++)h+=e[i];if("/"===(h=h.trim())[h.length-1]&&(h=h.substring(0,h.length-1),i--),d=h,!r.isName(d))return c("InvalidTag",0===h.trim().length?"Invalid space after '<'.":"Tag '"+h+"' is an invalid name.",_(e,i));let y=function(e,t){let n="",r="",i=!1;for(;t"===e[t]&&""===r){i=!0;break}n+=e[t]}return""===r&&{value:n,index:t,tagClosed:i}}(e,i);if(!1===y)return c("InvalidAttr","Attributes for '"+h+"' have open quote.",_(e,i));let g=y.value;if(i=y.index,"/"===g[g.length-1]){let n=i-g.length;g=g.substring(0,g.length-1);let r=l(g,t);if(!0!==r)return c(r.err.code,r.err.msg,_(e,n+r.err.line));u=!0}else if(m){if(!y.tagClosed)return c("InvalidTag","Closing tag '"+h+"' doesn't have proper closing.",_(e,i));if(g.trim().length>0)return c("InvalidTag","Closing tag '"+h+"' can't have attributes or invalid starting.",_(e,f));{let t=n.pop();if(h!==t.tagName){let n=_(e,t.tagStartPos);return c("InvalidTag","Expected closing tag '"+t.tagName+"' (opened in line "+n.line+", col "+n.col+") instead of closing tag '"+h+"'.",_(e,f))}0==n.length&&(p=!0)}}else{let r=l(g,t);if(!0!==r)return c(r.err.code,r.err.msg,_(e,i-g.length+r.err.line));if(!0===p)return c("InvalidXml","Multiple possible root nodes found.",_(e,i));-1!==t.unpairedTags.indexOf(h)||n.push({tagName:h,tagStartPos:f}),u=!0}for(i++;i0)||c("InvalidXml","Invalid '"+JSON.stringify(n.map(e=>e.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):c("InvalidXml","Start tag expected.",1)};let u=RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function l(e,t){let n=r.getAllMatches(e,u),i={};for(let e=0;e{"use strict";let r=n(6704),i={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:RegExp("&","g"),val:"&"},{regex:RegExp(">","g"),val:">"},{regex:RegExp("<","g"),val:"<"},{regex:RegExp("'","g"),val:"'"},{regex:RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function o(e){this.options=Object.assign({},i,e),this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=u),this.processTextOrObjNode=a,this.options.format?(this.indentate=s,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function a(e,t,n){let r=this.j2x(e,n+1);return void 0!==e[this.options.textNodeName]&&1===Object.keys(e).length?this.buildTextValNode(e[this.options.textNodeName],t,r.attrStr,n):this.buildObjectNode(r.val,t,r.attrStr,n)}function s(e){return this.options.indentBy.repeat(e)}function u(e){return!!e.startsWith(this.options.attributeNamePrefix)&&e.substr(this.attrPrefixLen)}o.prototype.build=function(e){return this.options.preserveOrder?r(e,this.options):(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e}),this.j2x(e,0).val)},o.prototype.j2x=function(e,t){let n="",r="";for(let i in e)if(void 0===e[i]);else if(null===e[i])"?"===i[0]?r+=this.indentate(t)+"<"+i+"?"+this.tagEndChar:r+=this.indentate(t)+"<"+i+"/"+this.tagEndChar;else if(e[i]instanceof Date)r+=this.buildTextValNode(e[i],i,"",t);else if("object"!=typeof e[i]){let o=this.isAttribute(i);if(o)n+=this.buildAttrPairStr(o,""+e[i]);else if(i===this.options.textNodeName){let t=this.options.tagValueProcessor(i,""+e[i]);r+=this.replaceEntitiesValue(t)}else r+=this.buildTextValNode(e[i],i,"",t)}else if(Array.isArray(e[i])){let n=e[i].length,o="";for(let a=0;a"+e+i:!1!==this.options.commentPropName&&t===this.options.commentPropName&&0===o.length?this.indentate(r)+``+this.newLine:this.indentate(r)+"<"+t+n+o+this.tagEndChar+e+this.indentate(r)+i}},o.prototype.closeTag=function(e){let t="";return -1!==this.options.unpairedTags.indexOf(e)?this.options.suppressUnpairedNode||(t="/"):t=this.options.suppressEmptyNode?"/":`>`+this.newLine;if(!1!==this.options.commentPropName&&t===this.options.commentPropName)return this.indentate(r)+``+this.newLine;if("?"===t[0])return this.indentate(r)+"<"+t+n+"?"+this.tagEndChar;{let i=this.options.tagValueProcessor(t,e);return""===(i=this.replaceEntitiesValue(i))?this.indentate(r)+"<"+t+n+this.closeTag(t)+this.tagEndChar:this.indentate(r)+"<"+t+n+">"+i+"0&&this.options.processEntities)for(let t=0;t{function t(e,t){let r="";if(e&&!t.ignoreAttributes)for(let i in e){let o=t.attributeValueProcessor(i,e[i]);!0===(o=n(o,t))&&t.suppressBooleanAttributes?r+=` ${i.substr(t.attributeNamePrefix.length)}`:r+=` ${i.substr(t.attributeNamePrefix.length)}="${o}"`}return r}function n(e,t){if(e&&e.length>0&&t.processEntities)for(let n=0;n0&&(i="\n"),function e(r,i,o,a){let s="",u=!1;for(let l=0;l`,u=!1;continue}if(_===i.commentPropName){s+=a+``,u=!0;continue}if("?"===_[0]){let e=t(c[":@"],i),n="?xml"===_?"":a,r=c[_][0][i.textNodeName];s+=n+`<${_}${r=0!==r.length?" "+r:""}${e}?>`,u=!0;continue}let d=a;""!==d&&(d+=i.indentBy);let f=t(c[":@"],i),m=a+`<${_}${f}`,h=e(c[_],i,p,d);-1!==i.unpairedTags.indexOf(_)?i.suppressUnpairedNode?s+=m+">":s+=m+"/>":(!h||0===h.length)&&i.suppressEmptyNode?s+=m+"/>":h&&h.endsWith(">")?s+=m+`>${h}${a}`:(s+=m+">",h&&""!==a&&(h.includes("/>")||h.includes("`),u=!0}return s}(e,r,"",i)}},3770:(e,t,n)=>{let r=n(4056);function i(e,t){return"!"===e[t+1]&&"-"===e[t+2]&&"-"===e[t+3]}e.exports=function(e,t){let n={};if("O"===e[t+3]&&"C"===e[t+4]&&"T"===e[t+5]&&"Y"===e[t+6]&&"P"===e[t+7]&&"E"===e[t+8]){t+=9;let d=1,f=!1,m=!1;for(;t"===e[t]){if(m?"-"===e[t-1]&&"-"===e[t-2]&&(m=!1,d--):d--,0===d)break}else"["===e[t]?f=!0:e[t]}else{var o,a,s,u,l,c,_,p;if(f&&"!"===(o=e)[(a=t)+1]&&"E"===o[a+2]&&"N"===o[a+3]&&"T"===o[a+4]&&"I"===o[a+5]&&"T"===o[a+6]&&"Y"===o[a+7])t+=7,[entityName,val,t]=function(e,t){let n="";for(;t{let n={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,n){return e}};t.buildOptions=function(e){return Object.assign({},n,e)},t.defaultOptions=n},2848:(e,t,n)=>{"use strict";let r=n(4056),i=n(4499),o=n(3770),a=n(5580);function s(e){let t=Object.keys(e);for(let n=0;n0)){a||(e=this.replaceEntitiesValue(e));let r=this.options.tagValueProcessor(t,e,n,i,o);if(null==r)return e;if(typeof r!=typeof e||r!==e)return r;{if(this.options.trimValues)return v(e,this.options.parseTagValue,this.options.numberParseOptions);let t=e.trim();return t===e?v(e,this.options.parseTagValue,this.options.numberParseOptions):e}}}function l(e){if(this.options.removeNSPrefix){let t=e.split(":"),n="/"===e.charAt(0)?"/":"";if("xmlns"===t[0])return"";2===t.length&&(e=n+t[1])}return e}"<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,r.nameRegexp);let c=RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function _(e,t,n){if(!this.options.ignoreAttributes&&"string"==typeof e){let n=r.getAllMatches(e,c),i=n.length,o={};for(let e=0;e",s,"Closing Tag is not closed."),i=e.substring(s+2,t).trim();if(this.options.removeNSPrefix){let e=i.indexOf(":");-1!==e&&(i=i.substr(e+1))}this.options.transformTagName&&(i=this.options.transformTagName(i)),n&&(r=this.saveTextToParentTag(r,n,a));let o=a.substring(a.lastIndexOf(".")+1);if(i&&-1!==this.options.unpairedTags.indexOf(i))throw Error(`Unpaired tag can not be used as closing tag: `);let u=0;o&&-1!==this.options.unpairedTags.indexOf(o)?(u=a.lastIndexOf(".",a.lastIndexOf(".")-1),this.tagsNodeStack.pop()):u=a.lastIndexOf("."),a=a.substring(0,u),n=this.tagsNodeStack.pop(),r="",s=t}else if("?"===e[s+1]){let t=g(e,s,!1,"?>");if(!t)throw Error("Pi Tag is not closed.");if(r=this.saveTextToParentTag(r,n,a),this.options.ignoreDeclaration&&"?xml"===t.tagName||this.options.ignorePiTags);else{let e=new i(t.tagName);e.add(this.options.textNodeName,""),t.tagName!==t.tagExp&&t.attrExpPresent&&(e[":@"]=this.buildAttributesMap(t.tagExp,a,t.tagName)),this.addChild(n,e,a)}s=t.closeIndex+1}else if("!--"===e.substr(s+1,3)){let t=y(e,"-->",s+4,"Comment is not closed.");if(this.options.commentPropName){let i=e.substring(s+4,t-2);r=this.saveTextToParentTag(r,n,a),n.add(this.options.commentPropName,[{[this.options.textNodeName]:i}])}s=t}else if("!D"===e.substr(s+1,2)){let t=o(e,s);this.docTypeEntities=t.entities,s=t.i}else if("!["===e.substr(s+1,2)){let t=y(e,"]]>",s,"CDATA is not closed.")-2,i=e.substring(s+9,t);if(r=this.saveTextToParentTag(r,n,a),this.options.cdataPropName)n.add(this.options.cdataPropName,[{[this.options.textNodeName]:i}]);else{let e=this.parseTextData(i,n.tagname,a,!0,!1,!0);void 0==e&&(e=""),n.add(this.options.textNodeName,e)}s=t+2}else{let o=g(e,s,this.options.removeNSPrefix),u=o.tagName,l=o.tagExp,c=o.attrExpPresent,_=o.closeIndex;this.options.transformTagName&&(u=this.options.transformTagName(u)),n&&r&&"!xml"!==n.tagname&&(r=this.saveTextToParentTag(r,n,a,!1));let p=n;if(p&&-1!==this.options.unpairedTags.indexOf(p.tagname)&&(n=this.tagsNodeStack.pop(),a=a.substring(0,a.lastIndexOf("."))),u!==t.tagname&&(a+=a?"."+u:u),this.isItStopNode(this.options.stopNodes,a,u)){let t="";if(l.length>0&&l.lastIndexOf("/")===l.length-1)s=o.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(u))s=o.closeIndex;else{let n=this.readStopNodeData(e,u,_+1);if(!n)throw Error(`Unexpected end of ${u}`);s=n.i,t=n.tagContent}let r=new i(u);u!==l&&c&&(r[":@"]=this.buildAttributesMap(l,a,u)),t&&(t=this.parseTextData(t,u,a,!0,c,!0,!0)),a=a.substr(0,a.lastIndexOf(".")),r.add(this.options.textNodeName,t),this.addChild(n,r,a)}else{if(l.length>0&&l.lastIndexOf("/")===l.length-1){l="/"===u[u.length-1]?u=u.substr(0,u.length-1):l.substr(0,l.length-1),this.options.transformTagName&&(u=this.options.transformTagName(u));let e=new i(u);u!==l&&c&&(e[":@"]=this.buildAttributesMap(l,a,u)),this.addChild(n,e,a),a=a.substr(0,a.lastIndexOf("."))}else{let e=new i(u);this.tagsNodeStack.push(n),u!==l&&c&&(e[":@"]=this.buildAttributesMap(l,a,u)),this.addChild(n,e,a),n=e}r="",s=_}}}else r+=e[s]}return t.child};function d(e,t,n){let r=this.options.updateTag(t.tagname,n,t[":@"]);!1===r||("string"==typeof r&&(t.tagname=r),e.addChild(t))}let f=function(e){if(this.options.processEntities){for(let t in this.docTypeEntities){let n=this.docTypeEntities[t];e=e.replace(n.regx,n.val)}for(let t in this.lastEntities){let n=this.lastEntities[t];e=e.replace(n.regex,n.val)}if(this.options.htmlEntities)for(let t in this.htmlEntities){let n=this.htmlEntities[t];e=e.replace(n.regex,n.val)}e=e.replace(this.ampEntity.regex,this.ampEntity.val)}return e};function m(e,t,n,r){return e&&(void 0===r&&(r=0===Object.keys(t.child).length),void 0!==(e=this.parseTextData(e,t.tagname,n,!1,!!t[":@"]&&0!==Object.keys(t[":@"]).length,r))&&""!==e&&t.add(this.options.textNodeName,e),e=""),e}function h(e,t,n){let r="*."+n;for(let n in e){let i=e[n];if(r===i||t===i)return!0}return!1}function y(e,t,n,r){let i=e.indexOf(t,n);if(-1!==i)return i+t.length-1;throw Error(r)}function g(e,t,n,r=">"){let i=function(e,t,n=">"){let r;let i="";for(let o=t;o",n,`${t} is not closed`);if(e.substring(n+2,o).trim()===t&&0==--i)return{tagContent:e.substring(r,n),i:o};n=o}else if("?"===e[n+1]){let t=y(e,"?>",n+1,"StopNode is not closed.");n=t}else if("!--"===e.substr(n+1,3)){let t=y(e,"-->",n+3,"StopNode is not closed.");n=t}else if("!["===e.substr(n+1,2)){let t=y(e,"]]>",n,"StopNode is not closed.")-2;n=t}else{let r=g(e,n,">");if(r){let e=r&&r.tagName;e===t&&"/"!==r.tagExp[r.tagExp.length-1]&&i++,n=r.closeIndex}}}}function v(e,t,n){if(t&&"string"==typeof e){let t=e.trim();return"true"===t||"false"!==t&&a(e,n)}return r.isExist(e)?e:""}e.exports=class{constructor(e){this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"\xa2"},pound:{regex:/&(pound|#163);/g,val:"\xa3"},yen:{regex:/&(yen|#165);/g,val:"\xa5"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"\xa9"},reg:{regex:/&(reg|#174);/g,val:"\xae"},inr:{regex:/&(inr|#8377);/g,val:"₹"}},this.addExternalEntities=s,this.parseXml=p,this.parseTextData=u,this.resolveNameSpace=l,this.buildAttributesMap=_,this.isItStopNode=h,this.replaceEntitiesValue=f,this.readStopNodeData=b,this.saveTextToParentTag=m,this.addChild=d}}},3281:(e,t,n)=>{let{buildOptions:r}=n(4238),i=n(2848),{prettify:o}=n(3937),a=n(3325);e.exports=class{constructor(e){this.externalEntities={},this.options=r(e)}parse(e,t){if("string"==typeof e);else if(e.toString)e=e.toString();else throw Error("XML data is accepted in String or Bytes[] form.");if(t){!0===t&&(t={});let n=a.validate(e,t);if(!0!==n)throw Error(`${n.err.msg}:${n.err.line}:${n.err.col}`)}let n=new i(this.options);n.addExternalEntities(this.externalEntities);let r=n.parseXml(e);return this.options.preserveOrder||void 0===r?r:o(r,this.options)}addEntity(e,t){if(-1!==t.indexOf("&"))throw Error("Entity value can't have '&'");if(-1!==e.indexOf("&")||-1!==e.indexOf(";"))throw Error("An entity must be set without '&' and ';'. Eg. use '#xD' for ' '");if("&"===t)throw Error("An entity with value '&' is not permitted");this.externalEntities[e]=t}}},3937:(e,t)=>{"use strict";t.prettify=function(e,t){return function e(t,n,r){let i;let o={};for(let a=0;a0&&(o[n.textNodeName]=i):void 0!==i&&(o[n.textNodeName]=i),o}(e,t)}},4499:e=>{"use strict";e.exports=class{constructor(e){this.tagname=e,this.child=[],this[":@"]={}}add(e,t){"__proto__"===e&&(e="#__proto__"),this.child.push({[e]:t})}addChild(e){"__proto__"===e.tagname&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child})}}},3243:(e,t,n)=>{"use strict";var r=n(9680),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty,a=function(e,t,n){for(var r=0,i=e.length;r=3&&(o=n),"[object Array]"===i.call(e)?a(e,t,o):"string"==typeof e?s(e,t,o):u(e,t,o)}},7795:e=>{"use strict";var t=Array.prototype.slice,n=Object.prototype.toString;e.exports=function(e){var r,i=this;if("function"!=typeof i||"[object Function]"!==n.call(i))throw TypeError("Function.prototype.bind called on incompatible "+i);for(var o=t.call(arguments,1),a=Math.max(0,i.length-o.length),s=[],u=0;u{"use strict";var r=n(7795);e.exports=Function.prototype.bind||r},7286:(e,t,n)=>{"use strict";var r,i=SyntaxError,o=Function,a=TypeError,s=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(e){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(e){u=null}var l=function(){throw new a},c=u?function(){try{return arguments.callee,l}catch(e){try{return u(arguments,"callee").get}catch(e){return l}}}():l,_=n(2636)(),p=Object.getPrototypeOf||function(e){return e.__proto__},d={},f="undefined"==typeof Uint8Array?r:p(Uint8Array),m={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":_?p([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":d,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":_?p(p([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&_?p(new Map()[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&_?p(new Set()[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":_?p(""[Symbol.iterator]()):r,"%Symbol%":_?Symbol:r,"%SyntaxError%":i,"%ThrowTypeError%":c,"%TypedArray%":f,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};try{null.error}catch(e){var h=p(p(e));m["%Error.prototype%"]=h}var y=function e(t){var n;if("%AsyncFunction%"===t)n=s("async function () {}");else if("%GeneratorFunction%"===t)n=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=s("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&(n=p(i.prototype))}return m[t]=n,n},g={"%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"]},b=n(4090),v=n(3198),x=b.call(Function.call,Array.prototype.concat),D=b.call(Function.apply,Array.prototype.splice),S=b.call(Function.call,String.prototype.replace),T=b.call(Function.call,String.prototype.slice),E=b.call(Function.call,RegExp.prototype.exec),w=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,A=/\\(\\)?/g,C=function(e){var t=T(e,0,1),n=T(e,-1);if("%"===t&&"%"!==n)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var r=[];return S(e,w,function(e,t,n,i){r[r.length]=n?S(i,A,"$1"):t||e}),r},N=function(e,t){var n,r=e;if(v(g,r)&&(r="%"+(n=g[r])[0]+"%"),v(m,r)){var o=m[r];if(o===d&&(o=y(r)),void 0===o&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===E(/^%?[^%]*%?$/,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=C(e),r=n.length>0?n[0]:"",o=N("%"+r+"%",t),s=o.name,l=o.value,c=!1,_=o.alias;_&&(r=_[0],D(n,x([0,1],_)));for(var p=1,d=!0;p=n.length){var g=u(l,f);l=(d=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:l[f]}else d=v(l,f),l=l[f];d&&!c&&(m[s]=l)}}return l}},6692:(e,t)=>{"use strict";t.Z=function(e,t,n){let r;r=(null==n?void 0:n.registry)?n.registry.endsWith("/")?n.registry:`${n.registry}/`:"https://registry.npmjs.org/";let i="@"!==e[0]?e:e.split("/")[1];return`${r}${e}/-/${i}-${function(e){let t=e.indexOf("+");return -1===t?e:e.substring(0,t)}(t)}.tgz`}},326:(e,t,n)=>{"use strict";var r=n(7286)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},1181:(e,t,n)=>{"use strict";var r=n(7286)("%Object.defineProperty%",!0),i=function(){if(r)try{return r({},"a",{value:1}),!0}catch(e){}return!1};i.hasArrayLengthDefineBug=function(){if(!i())return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},2636:(e,t,n)=>{"use strict";var r="undefined"!=typeof Symbol&&Symbol,i=n(6679);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&i()}},6679:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},7226:(e,t,n)=>{"use strict";var r=n(6679);e.exports=function(){return r()&&!!Symbol.toStringTag}},3198:(e,t,n)=>{"use strict";var r=n(4090);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},2333:(e,t)=>{/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,u=(1<>1,c=-7,_=n?i-1:0,p=n?-1:1,d=e[t+_];for(_+=p,o=d&(1<<-c)-1,d>>=-c,c+=s;c>0;o=256*o+e[t+_],_+=p,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+_],_+=p,c-=8);if(0===o)o=1-l;else{if(o===u)return a?NaN:(d?-1:1)*(1/0);a+=Math.pow(2,r),o-=l}return(d?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,u,l=8*o-i-1,c=(1<>1,p=23===i?5960464477539062e-23:0,d=r?0:o-1,f=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),a+_>=1?t+=p/u:t+=p*Math.pow(2,1-_),t*u>=2&&(a++,u/=2),a+_>=c?(s=0,a=c):a+_>=1?(s=(t*u-1)*Math.pow(2,i),a+=_):(s=t*Math.pow(2,_-1)*Math.pow(2,i),a=0));i>=8;e[n+d]=255&s,d+=f,s/=256,i-=8);for(a=a<0;e[n+d]=255&a,d+=f,a/=256,l-=8);e[n+d-f]|=128*m}},1285:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},2635:(e,t,n)=>{"use strict";var r=n(7226)(),i=n(2680)("Object.prototype.toString"),o=function(e){return(!r||!e||"object"!=typeof e||!(Symbol.toStringTag in e))&&"[object Arguments]"===i(e)},a=function(e){return!!o(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"[object Function]"===i(e.callee)},s=function(){return o(arguments)}();o.isLegacyArguments=a,e.exports=s?o:a},9680:e=>{"use strict";var t,n,r=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw n}}),n={},i(function(){throw 42},null,t)}catch(e){e!==n&&(i=null)}else i=null;var o=/^\s*class\b/,a=function(e){try{var t=r.call(e);return o.test(t)}catch(e){return!1}},s=function(e){try{if(a(e))return!1;return r.call(e),!0}catch(e){return!1}},u=Object.prototype.toString,l="function"==typeof Symbol&&!!Symbol.toStringTag,c=!(0 in[,]),_=function(){return!1};if("object"==typeof document){var p=document.all;u.call(p)===u.call(document.all)&&(_=function(e){if((c||!e)&&(void 0===e||"object"==typeof e))try{var t=u.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=i?function(e){if(_(e))return!0;if(!e||"function"!=typeof e&&"object"!=typeof e)return!1;try{i(e,null,t)}catch(e){if(e!==n)return!1}return!a(e)&&s(e)}:function(e){if(_(e))return!0;if(!e||"function"!=typeof e&&"object"!=typeof e)return!1;if(l)return s(e);if(a(e))return!1;var t=u.call(e);return!!("[object Function]"===t||"[object GeneratorFunction]"===t||/^\[object HTML/.test(t))&&s(e)}},3138:(e,t,n)=>{"use strict";var r,i=Object.prototype.toString,o=Function.prototype.toString,a=/^\s*(?:function)?\*/,s=n(7226)(),u=Object.getPrototypeOf,l=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(e){}};e.exports=function(e){if("function"!=typeof e)return!1;if(a.test(o.call(e)))return!0;if(!s)return"[object GeneratorFunction]"===i.call(e);if(!u)return!1;if(void 0===r){var t=l();r=!!t&&u(t)}return u(e)===r}},7053:e=>{"use strict";e.exports=function(e){return e!=e}},4782:(e,t,n)=>{"use strict";var r=n(9429),i=n(4926),o=n(7053),a=n(755),s=n(5346),u=r(a(),Number);i(u,{getPolyfill:a,implementation:o,shim:s}),e.exports=u},755:(e,t,n)=>{"use strict";var r=n(7053);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:r}},5346:(e,t,n)=>{"use strict";var r=n(4926),i=n(755);e.exports=function(){var e=i();return r(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},1175:(e,t,n)=>{"use strict";let{XMLParser:r,XMLValidator:i}=n(2215),o=e=>{let t;if(null==e||0===(e=e.toString().trim()).length||!0!==i.validate(e))return!1;let n=new r;try{t=n.parse(e)}catch(e){return!1}return!!t&&"svg"in t};e.exports=o,e.exports.default=o},198:(e,t,n)=>{"use strict";var r=n(3243),i=n(711),o=n(2680),a=o("Object.prototype.toString"),s=n(7226)(),u=n(326),l="undefined"==typeof globalThis?n.g:globalThis,c=i(),_=o("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n-1)}},8085:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n extends Error{}class r extends n{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class i extends n{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class o extends n{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class a extends n{}class s extends n{constructor(e){super(`Invalid unit ${e}`)}}class u extends n{}class l extends n{constructor(){super("Zone is an abstract class")}}let c="numeric",_="short",p="long",d={year:c,month:c,day:c},f={year:c,month:_,day:c},m={year:c,month:_,day:c,weekday:_},h={year:c,month:p,day:c},y={year:c,month:p,day:c,weekday:p},g={hour:c,minute:c},b={hour:c,minute:c,second:c},v={hour:c,minute:c,second:c,timeZoneName:_},x={hour:c,minute:c,second:c,timeZoneName:p},D={hour:c,minute:c,hourCycle:"h23"},S={hour:c,minute:c,second:c,hourCycle:"h23"},T={hour:c,minute:c,second:c,hourCycle:"h23",timeZoneName:_},E={hour:c,minute:c,second:c,hourCycle:"h23",timeZoneName:p},w={year:c,month:c,day:c,hour:c,minute:c},A={year:c,month:c,day:c,hour:c,minute:c,second:c},C={year:c,month:_,day:c,hour:c,minute:c},N={year:c,month:_,day:c,hour:c,minute:c,second:c},M={year:c,month:_,day:c,weekday:_,hour:c,minute:c},k={year:c,month:p,day:c,hour:c,minute:c,timeZoneName:_},I={year:c,month:p,day:c,hour:c,minute:c,second:c,timeZoneName:_},j={year:c,month:p,day:c,weekday:p,hour:c,minute:c,timeZoneName:p},O={year:c,month:p,day:c,weekday:p,hour:c,minute:c,second:c,timeZoneName:p};class P{get type(){throw new l}get name(){throw new l}get ianaName(){return this.name}get isUniversal(){throw new l}offsetName(e,t){throw new l}formatOffset(e,t){throw new l}offset(e){throw new l}equals(e){throw new l}get isValid(){throw new l}}let F=null;class L extends P{static get instance(){return null===F&&(F=new L),F}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return eN(e,t,n)}formatOffset(e,t){return ej(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return"system"===e.type}get isValid(){return!0}}let z={},R={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6},B={};class U extends P{static create(e){return B[e]||(B[e]=new U(e)),B[e]}static resetCache(){B={},z={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}}constructor(e){super(),this.zoneName=e,this.valid=U.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return eN(e,t,n,this.name)}formatOffset(e,t){return ej(this.offset(e),t)}offset(e){var t;let n=new Date(e);if(isNaN(n))return NaN;let r=(z[t=this.name]||(z[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),z[t]),[i,o,a,s,u,l,c]=r.formatToParts?function(e,t){let n=e.formatToParts(t),r=[];for(let e=0;e=0?d:1e3+d))/6e4}equals(e){return"iana"===e.type&&e.name===this.name}get isValid(){return this.valid}}let J={},$={};function K(e,t={}){let n=JSON.stringify([e,t]),r=$[n];return r||(r=new Intl.DateTimeFormat(e,t),$[n]=r),r}let V={},Y={},W=null;function q(e,t,n,r,i){let o=e.listingMode(n);return"error"===o?null:"en"===o?r(t):i(t)}class Q{constructor(e,t,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;let{padTo:r,floor:i,...o}=n;if(!t||Object.keys(o).length>0){let t={useGrouping:!1,...n};n.padTo>0&&(t.minimumIntegerDigits=n.padTo),this.inf=function(e,t={}){let n=JSON.stringify([e,t]),r=V[n];return r||(r=new Intl.NumberFormat(e,t),V[n]=r),r}(e,t)}}format(e){if(this.inf){let t=this.floor?Math.floor(e):e;return this.inf.format(t)}{let t=this.floor?Math.floor(e):eD(e,3);return eg(t,this.padTo)}}}class H{constructor(e,t,n){let r;if(this.opts=n,this.originalZone=void 0,this.opts.timeZone)this.dt=e;else if("fixed"===e.zone.type){let t=-1*(e.offset/60),n=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;0!==e.offset&&U.create(n).valid?(r=n,this.dt=e):(r="UTC",this.dt=0===e.offset?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else"system"===e.zone.type?this.dt=e:"iana"===e.zone.type?(this.dt=e,r=e.zone.name):(r="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);let i={...this.opts};i.timeZone=i.timeZone||r,this.dtf=K(t,i)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(e=>{if("timeZoneName"!==e.type)return e;{let t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class G{constructor(e,t,n){this.opts={style:"long",...n},!t&&ef()&&(this.rtf=function(e,t={}){let{base:n,...r}=t,i=JSON.stringify([e,r]),o=Y[i];return o||(o=new Intl.RelativeTimeFormat(e,t),Y[i]=o),o}(e,n))}format(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,n="always",r=!1){let i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===n&&o){let n="days"===e;switch(t){case 1:return n?"tomorrow":`next ${i[e][0]}`;case -1:return n?"yesterday":`last ${i[e][0]}`;case 0:return n?"today":`this ${i[e][0]}`}}let a=Object.is(t,-0)||t<0,s=Math.abs(t),u=1===s,l=i[e],c=r?u?l[1]:l[2]||l[1]:u?i[e][0]:e;return a?`${s} ${c} ago`:`in ${s} ${c}`}(t,e,this.opts.numeric,"long"!==this.opts.style)}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}}class Z{static fromOpts(e){return Z.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)}static create(e,t,n,r=!1){let i=e||ec.defaultLocale,o=i||(r?"en-US":W||(W=new Intl.DateTimeFormat().resolvedOptions().locale)),a=t||ec.defaultNumberingSystem,s=n||ec.defaultOutputCalendar;return new Z(o,a,s,i)}static resetCache(){W=null,$={},V={},Y={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:n}={}){return Z.create(e,t,n)}constructor(e,t,n,r){let[i,o,a]=function(e){let t=e.indexOf("-x-");-1!==t&&(e=e.substring(0,t));let n=e.indexOf("-u-");if(-1===n)return[e];{let t,r;try{t=K(e).resolvedOptions(),r=e}catch(o){let i=e.substring(0,n);t=K(i).resolvedOptions(),r=i}let{numberingSystem:i,calendar:o}=t;return[r,i,o]}}(e);this.locale=i,this.numberingSystem=t||o||null,this.outputCalendar=n||a||null,this.intl=function(e,t,n){return(n||t)&&(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`)),e}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=r,this.fastNumbersCached=null}get fastNumbers(){return null==this.fastNumbersCached&&(this.fastNumbersCached=(!this.numberingSystem||"latn"===this.numberingSystem)&&("latn"===this.numberingSystem||!this.locale||this.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(this.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}listingMode(){let e=this.isEnglish(),t=(null===this.numberingSystem||"latn"===this.numberingSystem)&&(null===this.outputCalendar||"gregory"===this.outputCalendar);return e&&t?"en":"intl"}clone(e){return e&&0!==Object.getOwnPropertyNames(e).length?Z.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1):this}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,t=!1,n=!0){return q(this,e,n,ez,()=>{let n=t?{month:e,day:"numeric"}:{month:e},r=t?"format":"standalone";return this.monthsCache[r][e]||(this.monthsCache[r][e]=function(e){let t=[];for(let n=1;n<=12;n++){let r=nC.utc(2016,n,1);t.push(e(r))}return t}(e=>this.extract(e,n,"month"))),this.monthsCache[r][e]})}weekdays(e,t=!1,n=!0){return q(this,e,n,eJ,()=>{let n=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},r=t?"format":"standalone";return this.weekdaysCache[r][e]||(this.weekdaysCache[r][e]=function(e){let t=[];for(let n=1;n<=7;n++){let r=nC.utc(2016,11,13+n);t.push(e(r))}return t}(e=>this.extract(e,n,"weekday"))),this.weekdaysCache[r][e]})}meridiems(e=!0){return q(this,void 0,e,()=>e$,()=>{if(!this.meridiemCache){let e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[nC.utc(2016,11,13,9),nC.utc(2016,11,13,19)].map(t=>this.extract(t,e,"dayperiod"))}return this.meridiemCache})}eras(e,t=!0){return q(this,e,t,eW,()=>{let t={era:e};return this.eraCache[e]||(this.eraCache[e]=[nC.utc(-40,1,1),nC.utc(2017,1,1)].map(e=>this.extract(e,t,"era"))),this.eraCache[e]})}extract(e,t,n){let r=this.dtFormatter(e,t),i=r.formatToParts(),o=i.find(e=>e.type.toLowerCase()===n);return o?o.value:null}numberFormatter(e={}){return new Q(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new H(e,this.intl,t)}relFormatter(e={}){return new G(this.intl,this.isEnglish(),e)}listFormatter(e={}){return function(e,t={}){let n=JSON.stringify([e,t]),r=J[n];return r||(r=new Intl.ListFormat(e,t),J[n]=r),r}(this.intl,e)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let X=null;class ee extends P{static get utcInstance(){return null===X&&(X=new ee(0)),X}static instance(e){return 0===e?ee.utcInstance:new ee(e)}static parseSpecifier(e){if(e){let t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new ee(eM(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${ej(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${ej(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return ej(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return"fixed"===e.type&&e.fixed===this.fixed}get isValid(){return!0}}class et extends P{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function en(e,t){if(e_(e)||null===e)return t;if(e instanceof P)return e;if("string"==typeof e){let n=e.toLowerCase();return"default"===n?t:"local"===n||"system"===n?L.instance:"utc"===n||"gmt"===n?ee.utcInstance:ee.parseSpecifier(n)||U.create(e)}return ep(e)?ee.instance(e):"object"==typeof e&&e.offset&&"number"==typeof e.offset?e:new et(e)}let er=()=>Date.now(),ei="system",eo=null,ea=null,es=null,eu=60,el;class ec{static get now(){return er}static set now(e){er=e}static set defaultZone(e){ei=e}static get defaultZone(){return en(ei,L.instance)}static get defaultLocale(){return eo}static set defaultLocale(e){eo=e}static get defaultNumberingSystem(){return ea}static set defaultNumberingSystem(e){ea=e}static get defaultOutputCalendar(){return es}static set defaultOutputCalendar(e){es=e}static get twoDigitCutoffYear(){return eu}static set twoDigitCutoffYear(e){eu=e%100}static get throwOnInvalid(){return el}static set throwOnInvalid(e){el=e}static resetCaches(){Z.resetCache(),U.resetCache()}}function e_(e){return void 0===e}function ep(e){return"number"==typeof e}function ed(e){return"number"==typeof e&&e%1==0}function ef(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function em(e,t,n){if(0!==e.length)return e.reduce((e,r)=>{let i=[t(r),r];return e&&n(e[0],i[0])===e[0]?e:i},null)[1]}function eh(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ey(e,t,n){return ed(e)&&e>=t&&e<=n}function eg(e,t=2){return e<0?"-"+(""+-e).padStart(t,"0"):(""+e).padStart(t,"0")}function eb(e){if(!e_(e)&&null!==e&&""!==e)return parseInt(e,10)}function ev(e){if(!e_(e)&&null!==e&&""!==e)return parseFloat(e)}function ex(e){if(!e_(e)&&null!==e&&""!==e){let t=1e3*parseFloat("0."+e);return Math.floor(t)}}function eD(e,t,n=!1){let r=10**t;return(n?Math.trunc:Math.round)(e*r)/r}function eS(e){return e%4==0&&(e%100!=0||e%400==0)}function eT(e){return eS(e)?366:365}function eE(e,t){var n;let r=(n=t-1)-12*Math.floor(n/12)+1;return 2===r?eS(e+(t-r)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function ew(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t)).setUTCFullYear(e.year,e.month-1,e.day),+t}function eA(e){let t=e-1;return 4==(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7||3==(t+Math.floor(t/4)-Math.floor(t/100)+Math.floor(t/400))%7?53:52}function eC(e){return e>99?e:e>ec.twoDigitCutoffYear?1900+e:2e3+e}function eN(e,t,n,r=null){let i=new Date(e),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(o.timeZone=r);let a={timeZoneName:t,...o},s=new Intl.DateTimeFormat(n,a).formatToParts(i).find(e=>"timezonename"===e.type.toLowerCase());return s?s.value:null}function eM(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);let r=parseInt(t,10)||0,i=n<0||Object.is(n,-0)?-r:r;return 60*n+i}function ek(e){let t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new u(`Invalid unit value ${e}`);return t}function eI(e,t){let n={};for(let r in e)if(eh(e,r)){let i=e[r];if(null==i)continue;n[t(r)]=ek(i)}return n}function ej(e,t){let n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(t){case"short":return`${i}${eg(n,2)}:${eg(r,2)}`;case"narrow":return`${i}${n}${r>0?`:${r}`:""}`;case"techie":return`${i}${eg(n,2)}${eg(r,2)}`;default:throw RangeError(`Value format ${t} is out of range for property format`)}}function eO(e){return["hour","minute","second","millisecond"].reduce((t,n)=>(t[n]=e[n],t),{})}let eP=["January","February","March","April","May","June","July","August","September","October","November","December"],eF=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],eL=["J","F","M","A","M","J","J","A","S","O","N","D"];function ez(e){switch(e){case"narrow":return[...eL];case"short":return[...eF];case"long":return[...eP];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}let eR=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],eB=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],eU=["M","T","W","T","F","S","S"];function eJ(e){switch(e){case"narrow":return[...eU];case"short":return[...eB];case"long":return[...eR];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}let e$=["AM","PM"],eK=["Before Christ","Anno Domini"],eV=["BC","AD"],eY=["B","A"];function eW(e){switch(e){case"narrow":return[...eY];case"short":return[...eV];case"long":return[...eK];default:return null}}function eq(e,t){let n="";for(let r of e)r.literal?n+=r.val:n+=t(r.val);return n}let eQ={D:d,DD:f,DDD:h,DDDD:y,t:g,tt:b,ttt:v,tttt:x,T:D,TT:S,TTT:T,TTTT:E,f:w,ff:C,fff:k,ffff:j,F:A,FF:N,FFF:I,FFFF:O};class eH{static create(e,t={}){return new eH(e,t)}static parseFormat(e){let t=null,n="",r=!1,i=[];for(let o=0;o0&&i.push({literal:r||/^\s+$/.test(n),val:n}),t=null,n="",r=!r):r?n+=a:a===t?n+=a:(n.length>0&&i.push({literal:/^\s+$/.test(n),val:n}),n=a,t=a)}return n.length>0&&i.push({literal:r||/^\s+$/.test(n),val:n}),i}static macroTokenToFormatOpts(e){return eQ[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem());let n=this.systemLoc.dtFormatter(e,{...this.opts,...t});return n.format()}formatDateTime(e,t={}){let n=this.loc.dtFormatter(e,{...this.opts,...t});return n.format()}formatDateTimeParts(e,t={}){let n=this.loc.dtFormatter(e,{...this.opts,...t});return n.formatToParts()}formatInterval(e,t={}){let n=this.loc.dtFormatter(e.start,{...this.opts,...t});return n.dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t={}){let n=this.loc.dtFormatter(e,{...this.opts,...t});return n.resolvedOptions()}num(e,t=0){if(this.opts.forceSimple)return eg(e,t);let n={...this.opts};return t>0&&(n.padTo=t),this.loc.numberFormatter(n).format(e)}formatDateTimeFromString(e,t){let n="en"===this.loc.listingMode(),r=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,i=(t,n)=>this.loc.extract(e,t,n),o=t=>e.isOffsetFixed&&0===e.offset&&t.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,t.format):"",a=()=>n?e$[e.hour<12?0:1]:i({hour:"numeric",hourCycle:"h12"},"dayperiod"),s=(t,r)=>n?ez(t)[e.month-1]:i(r?{month:t}:{month:t,day:"numeric"},"month"),u=(t,r)=>n?eJ(t)[e.weekday-1]:i(r?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday"),l=t=>{let n=eH.macroTokenToFormatOpts(t);return n?this.formatWithSystemDefault(e,n):t},c=t=>n?eW(t)[e.year<0?0:1]:i({era:t},"era");return eq(eH.parseFormat(t),t=>{switch(t){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12==0?12:e.hour%12);case"hh":return this.num(e.hour%12==0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return o({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return o({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return o({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return a();case"d":return r?i({day:"numeric"},"day"):this.num(e.day);case"dd":return r?i({day:"2-digit"},"day"):this.num(e.day,2);case"c":case"E":return this.num(e.weekday);case"ccc":return u("short",!0);case"cccc":return u("long",!0);case"ccccc":return u("narrow",!0);case"EEE":return u("short",!1);case"EEEE":return u("long",!1);case"EEEEE":return u("narrow",!1);case"L":return r?i({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return r?i({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return s("short",!0);case"LLLL":return s("long",!0);case"LLLLL":return s("narrow",!0);case"M":return r?i({month:"numeric"},"month"):this.num(e.month);case"MM":return r?i({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return s("short",!1);case"MMMM":return s("long",!1);case"MMMMM":return s("narrow",!1);case"y":return r?i({year:"numeric"},"year"):this.num(e.year);case"yy":return r?i({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return r?i({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return r?i({year:"numeric"},"year"):this.num(e.year,6);case"G":return c("short");case"GG":return c("long");case"GGGGG":return c("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return l(t)}})}formatDurationFromString(e,t){let n=e=>{switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},r=eH.parseFormat(t),i=r.reduce((e,{literal:t,val:n})=>t?e:e.concat(n),[]),o=e.shiftTo(...i.map(n).filter(e=>e));return eq(r,e=>{let t=n(e);return t?this.num(o.get(t),e.length):e})}}class eG{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}let eZ=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function eX(...e){let t=e.reduce((e,t)=>e+t.source,"");return RegExp(`^${t}$`)}function e0(...e){return t=>e.reduce(([e,n,r],i)=>{let[o,a,s]=i(t,r);return[{...e,...o},a||n,s]},[{},null,1]).slice(0,2)}function e1(e,...t){if(null==e)return[null,null];for(let[n,r]of t){let t=n.exec(e);if(t)return r(t)}return[null,null]}function e2(...e){return(t,n)=>{let r;let i={};for(r=0;rvoid 0!==e&&(t||e&&c)?-e:e;return[{years:p(ev(n)),months:p(ev(r)),weeks:p(ev(i)),days:p(ev(o)),hours:p(ev(a)),minutes:p(ev(s)),seconds:p(ev(u),"-0"===u),milliseconds:p(ex(l),_)}]}let tl={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function tc(e,t,n,r,i,o,a){let s={year:2===t.length?eC(eb(t)):eb(t),month:eF.indexOf(n)+1,day:eb(r),hour:eb(i),minute:eb(o)};return a&&(s.second=eb(a)),e&&(s.weekday=e.length>3?eR.indexOf(e)+1:eB.indexOf(e)+1),s}let t_=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function tp(e){let t;let[,n,r,i,o,a,s,u,l,c,_,p]=e,d=tc(n,o,i,r,a,s,u);return t=l?tl[l]:c?0:eM(_,p),[d,new ee(t)]}let td=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,tf=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,tm=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function th(e){let[,t,n,r,i,o,a,s]=e,u=tc(t,i,r,n,o,a,s);return[u,ee.utcInstance]}function ty(e){let[,t,n,r,i,o,a,s]=e,u=tc(t,s,n,r,i,o,a);return[u,ee.utcInstance]}let tg=eX(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,e8),tb=eX(/(\d{4})-?W(\d\d)(?:-?(\d))?/,e8),tv=eX(/(\d{4})-?(\d{3})/,e8),tx=eX(e5),tD=e0(function(e,t){let n={year:tn(e,t),month:tn(e,t+1,1),day:tn(e,t+2,1)};return[n,null,t+3]},tr,ti,to),tS=e0(e7,tr,ti,to),tT=e0(e9,tr,ti,to),tE=e0(tr,ti,to),tw=e0(tr),tA=eX(/(\d{4})-(\d\d)-(\d\d)/,tt),tC=eX(te),tN=e0(tr,ti,to),tM={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},tk={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...tM},tI={years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:31556952,milliseconds:31556952e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:7889238,milliseconds:7889238e3},months:{weeks:30.436875/7,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...tM},tj=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],tO=tj.slice(0).reverse();function tP(e,t,n=!1){let r={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new tL(r)}function tF(e,t,n,r,i){let o=e[i][n],a=t[n]/o,s=Math.sign(a)===Math.sign(r[i]),u=!s&&0!==r[i]&&1>=Math.abs(a)?a<0?Math.floor(a):Math.ceil(a):Math.trunc(a);r[i]+=u,t[n]-=u*o}class tL{constructor(e){let t="longterm"===e.conversionAccuracy,n=t?tI:tk;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||Z.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(e,t){return tL.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(null==e||"object"!=typeof e)throw new u(`Duration.fromObject: argument expected to be an object, got ${null===e?"null":typeof e}`);return new tL({values:eI(e,tL.normalizeUnit),loc:Z.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(ep(e))return tL.fromMillis(e);if(tL.isDuration(e))return e;if("object"==typeof e)return tL.fromObject(e);throw new u(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){let[n]=e1(e,[ts,tu]);return n?tL.fromObject(n,t):tL.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){let[n]=e1(e,[ta,tw]);return n?tL.fromObject(n,t):tL.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new u("need to specify a reason the Duration is invalid");let n=e instanceof eG?e:new eG(e,t);if(!ec.throwOnInvalid)return new tL({invalid:n});throw new o(n)}static normalizeUnit(e){let t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new s(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){let n={...t,floor:!1!==t.round&&!1!==t.floor};return this.isValid?eH.create(this.loc,n).formatDurationFromString(this,e):"Invalid Duration"}toHuman(e={}){let t=tj.map(t=>{let n=this.values[t];return e_(n)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:t.slice(0,-1)}).format(n)}).filter(e=>e);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(t)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return 0!==this.years&&(e+=this.years+"Y"),(0!==this.months||0!==this.quarters)&&(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),(0!==this.hours||0!==this.minutes||0!==this.seconds||0!==this.milliseconds)&&(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),(0!==this.seconds||0!==this.milliseconds)&&(e+=eD(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;let t=this.toMillis();if(t<0||t>=864e5)return null;e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e};let n=this.shiftTo("hours","minutes","seconds","milliseconds"),r="basic"===e.format?"hhmm":"hh:mm";e.suppressSeconds&&0===n.seconds&&0===n.milliseconds||(r+="basic"===e.format?"ss":":ss",e.suppressMilliseconds&&0===n.milliseconds||(r+=".SSS"));let i=n.toFormat(r);return e.includePrefix&&(i="T"+i),i}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.as("milliseconds")}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;let t=tL.fromDurationLike(e),n={};for(let e of tj)(eh(t.values,e)||eh(this.values,e))&&(n[e]=t.get(e)+this.get(e));return tP(this,{values:n},!0)}minus(e){if(!this.isValid)return this;let t=tL.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;let t={};for(let n of Object.keys(this.values))t[n]=ek(e(this.values[n],n));return tP(this,{values:t},!0)}get(e){return this[tL.normalizeUnit(e)]}set(e){if(!this.isValid)return this;let t={...this.values,...eI(e,tL.normalizeUnit)};return tP(this,{values:t})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:n,matrix:r}={}){let i=this.loc.clone({locale:e,numberingSystem:t});return tP(this,{loc:i,matrix:r,conversionAccuracy:n})}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){var e;if(!this.isValid)return this;let t=this.toObject();return e=this.matrix,tO.reduce((n,r)=>e_(t[r])?n:(n&&tF(e,t,n,t,r),r),null),tP(this,{values:t},!0)}rescale(){if(!this.isValid)return this;let e=function(e){let t={};for(let[n,r]of Object.entries(e))0!==r&&(t[n]=r);return t}(this.normalize().shiftToAll().toObject());return tP(this,{values:e},!0)}shiftTo(...e){let t;if(!this.isValid||0===e.length)return this;e=e.map(e=>tL.normalizeUnit(e));let n={},r={},i=this.toObject();for(let o of tj)if(e.indexOf(o)>=0){t=o;let e=0;for(let t in r)e+=this.matrix[t][o]*r[t],r[t]=0;ep(i[o])&&(e+=i[o]);let a=Math.trunc(e);for(let t in n[o]=a,r[o]=(1e3*e-1e3*a)/1e3,i)tj.indexOf(t)>tj.indexOf(o)&&tF(this.matrix,i,t,n,o)}else ep(i[o])&&(r[o]=i[o]);for(let e in r)0!==r[e]&&(n[t]+=e===t?r[e]:r[e]/this.matrix[t][e]);return tP(this,{values:n},!0).normalize()}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;let e={};for(let t of Object.keys(this.values))e[t]=0===this.values[t]?0:-this.values[t];return tP(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;for(let r of tj){var t,n;if(t=this.values[r],n=e.values[r],void 0===t||0===t?void 0!==n&&0!==n:t!==n)return!1}return!0}}let tz="Invalid Interval";class tR{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,t=null){if(!e)throw new u("need to specify a reason the Interval is invalid");let n=e instanceof eG?e:new eG(e,t);if(!ec.throwOnInvalid)return new tR({invalid:n});throw new i(n)}static fromDateTimes(e,t){let n=nN(e),r=nN(t),i=n&&n.isValid?r&&r.isValid?re}isBefore(e){return!!this.isValid&&this.e<=e}contains(e){return!!this.isValid&&this.s<=e&&this.e>e}set({start:e,end:t}={}){return this.isValid?tR.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];let t=e.map(nN).filter(e=>this.contains(e)).sort(),n=[],{s:r}=this,i=0;for(;r+this.e?this.e:e;n.push(tR.fromDateTimes(r,o)),r=o,i+=1}return n}splitBy(e){let t=tL.fromDurationLike(e);if(!this.isValid||!t.isValid||0===t.as("milliseconds"))return[];let{s:n}=this,r=1,i,o=[];for(;ne*r));i=+e>+this.e?this.e:e,o.push(tR.fromDateTimes(n,i)),n=i,r+=1}return o}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s=e.e}equals(e){return!!this.isValid&&!!e.isValid&&this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;let t=this.s>e.s?this.s:e.s,n=this.e=n?null:tR.fromDateTimes(t,n)}union(e){if(!this.isValid)return this;let t=this.se.e?this.e:e.e;return tR.fromDateTimes(t,n)}static merge(e){let[t,n]=e.sort((e,t)=>e.s-t.s).reduce(([e,t],n)=>t?t.overlaps(n)||t.abutsStart(n)?[e,t.union(n)]:[e.concat([t]),n]:[e,n],[[],null]);return n&&t.push(n),t}static xor(e){let t=null,n=0,r=[],i=e.map(e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}]),o=Array.prototype.concat(...i),a=o.sort((e,t)=>e.time-t.time);for(let e of a)1===(n+="s"===e.type?1:-1)?t=e.time:(t&&+t!=+e.time&&r.push(tR.fromDateTimes(t,e.time)),t=null);return tR.merge(r)}difference(...e){return tR.xor([this].concat(e)).map(e=>this.intersection(e)).filter(e=>e&&!e.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:tz}toLocaleString(e=d,t={}){return this.isValid?eH.create(this.s.loc.clone(t),e).formatInterval(this):tz}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:tz}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:tz}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:tz}toFormat(e,{separator:t=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:tz}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):tL.invalid(this.invalidReason)}mapEndpoints(e){return tR.fromDateTimes(e(this.s),e(this.e))}}class tB{static hasDST(e=ec.defaultZone){let t=nC.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return U.isValidZone(e)}static normalizeZone(e){return en(e,ec.defaultZone)}static months(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:i="gregory"}={}){return(r||Z.create(t,n,i)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:i="gregory"}={}){return(r||Z.create(t,n,i)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||Z.create(t,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||Z.create(t,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return Z.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return Z.create(t,null,"gregory").eras(e)}static features(){return{relative:ef()}}}function tU(e,t){let n=e=>e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(t)-n(e);return Math.floor(tL.fromMillis(r).as("days"))}let tJ={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},t$={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},tK=tJ.hanidec.replace(/[\[|\]]/g,"").split("");function tV({numberingSystem:e},t=""){return RegExp(`${tJ[e||"latn"]}${t}`)}function tY(e,t=e=>e){return{regex:e,deser:([e])=>t(function(e){let t=parseInt(e,10);if(!isNaN(t))return t;t="";for(let n=0;n=n&&r<=i&&(t+=r-n)}}return parseInt(t,10)}(e))}}let tW=String.fromCharCode(160),tq=`[ ${tW}]`,tQ=RegExp(tq,"g");function tH(e){return e.replace(/\./g,"\\.?").replace(tQ,tq)}function tG(e){return e.replace(/\./g,"").replace(tQ," ").toLowerCase()}function tZ(e,t){return null===e?null:{regex:RegExp(e.map(tH).join("|")),deser:([n])=>e.findIndex(e=>tG(n)===tG(e))+t}}function tX(e,t){return{regex:e,deser:([,e,t])=>eM(e,t),groups:t}}function t0(e){return{regex:e,deser:([e])=>e}}let t1={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}},t2=null;function t3(e,t){return Array.prototype.concat(...e.map(e=>(function(e,t){if(e.literal)return e;let n=eH.macroTokenToFormatOpts(e.val),r=t6(n,t);return null==r||r.includes(void 0)?e:r})(e,t)))}function t4(e,t,n){let r=t3(eH.parseFormat(n),e),i=r.map(t=>(function(e,t){let n=tV(t),r=tV(t,"{2}"),i=tV(t,"{3}"),o=tV(t,"{4}"),a=tV(t,"{6}"),s=tV(t,"{1,2}"),u=tV(t,"{1,3}"),l=tV(t,"{1,6}"),c=tV(t,"{1,9}"),_=tV(t,"{2,4}"),p=tV(t,"{4,6}"),d=e=>({regex:RegExp(e.val.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")),deser:([e])=>e,literal:!0}),f=(f=>{if(e.literal)return d(f);switch(f.val){case"G":return tZ(t.eras("short",!1),0);case"GG":return tZ(t.eras("long",!1),0);case"y":return tY(l);case"yy":case"kk":return tY(_,eC);case"yyyy":case"kkkk":return tY(o);case"yyyyy":return tY(p);case"yyyyyy":return tY(a);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return tY(s);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return tY(r);case"MMM":return tZ(t.months("short",!0,!1),1);case"MMMM":return tZ(t.months("long",!0,!1),1);case"LLL":return tZ(t.months("short",!1,!1),1);case"LLLL":return tZ(t.months("long",!1,!1),1);case"o":case"S":return tY(u);case"ooo":case"SSS":return tY(i);case"u":return t0(c);case"uu":return t0(s);case"uuu":case"E":case"c":return tY(n);case"a":return tZ(t.meridiems(),0);case"EEE":return tZ(t.weekdays("short",!1,!1),1);case"EEEE":return tZ(t.weekdays("long",!1,!1),1);case"ccc":return tZ(t.weekdays("short",!0,!1),1);case"cccc":return tZ(t.weekdays("long",!0,!1),1);case"Z":case"ZZ":return tX(RegExp(`([+-]${s.source})(?::(${r.source}))?`),2);case"ZZZ":return tX(RegExp(`([+-]${s.source})(${r.source})?`),2);case"z":return t0(/[a-z_+-/]{1,256}?/i);case" ":return t0(/[^\S\n\r]/);default:return d(f)}})(e)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return f.token=e,f})(t,e)),o=i.find(e=>e.invalidReason);if(o)return{input:t,tokens:r,invalidReason:o.invalidReason};{let[e,n]=function(e){let t=e.map(e=>e.regex).reduce((e,t)=>`${e}(${t.source})`,"");return[`^${t}$`,e]}(i),o=RegExp(e,"i"),[s,u]=function(e,t,n){let r=e.match(t);if(!r)return[r,{}];{let e={},t=1;for(let i in n)if(eh(n,i)){let o=n[i],a=o.groups?o.groups+1:1;!o.literal&&o.token&&(e[o.token.val[0]]=o.deser(r.slice(t,t+a))),t+=a}return[r,e]}}(t,o,n),[l,c,_]=u?function(e){let t;let n=e=>{switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}},r=null;e_(e.z)||(r=U.create(e.z)),e_(e.Z)||(r||(r=new ee(e.Z)),t=e.Z),e_(e.q)||(e.M=(e.q-1)*3+1),e_(e.h)||(e.h<12&&1===e.a?e.h+=12:12!==e.h||0!==e.a||(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),e_(e.u)||(e.S=ex(e.u));let i=Object.keys(e).reduce((t,r)=>{let i=n(r);return i&&(t[i]=e[r]),t},{});return[i,r,t]}(u):[null,null,void 0];if(eh(u,"a")&&eh(u,"H"))throw new a("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:r,regex:o,rawMatches:s,matches:u,result:l,zone:c,specificOffset:_}}}function t6(e,t){if(!e)return null;let n=eH.create(t,e),r=n.formatDateTimeParts((t2||(t2=nC.fromMillis(1555555555555)),t2));return r.map(t=>(function(e,t){let{type:n,value:r}=e;if("literal"===n){let e=/^\s+$/.test(r);return{literal:!e,val:e?" ":r}}let i=t[n],o=t1[n];if("object"==typeof o&&(o=o[i]),o)return{literal:!1,val:o}})(t,e))}let t5=[0,31,59,90,120,151,181,212,243,273,304,334],t8=[0,31,60,91,121,152,182,213,244,274,305,335];function t7(e,t){return new eG("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function t9(e,t,n){let r=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);let i=r.getUTCDay();return 0===i?7:i}function ne(e,t){let n=eS(e)?t8:t5,r=n.findIndex(e=>eeA(t)?(s=t+1,a=1):s=t,{weekYear:s,weekNumber:a,weekday:o,...eO(e)}}function nn(e){let{weekYear:t,weekNumber:n,weekday:r}=e,i=t9(t,1,4),o=eT(t),a=7*n+r-i-3,s;a<1?a+=eT(s=t-1):a>o?(s=t+1,a-=eT(t)):s=t;let{month:u,day:l}=ne(s,a);return{year:s,month:u,day:l,...eO(e)}}function nr(e){let{year:t,month:n,day:r}=e,i=r+(eS(t)?t8:t5)[n-1];return{year:t,ordinal:i,...eO(e)}}function ni(e){let{year:t,ordinal:n}=e,{month:r,day:i}=ne(t,n);return{year:t,month:r,day:i,...eO(e)}}function no(e){let t=ed(e.year),n=ey(e.month,1,12),r=ey(e.day,1,eE(e.year,e.month));return t?n?!r&&t7("day",e.day):t7("month",e.month):t7("year",e.year)}function na(e){let{hour:t,minute:n,second:r,millisecond:i}=e,o=ey(t,0,23)||24===t&&0===n&&0===r&&0===i,a=ey(n,0,59),s=ey(r,0,59),u=ey(i,0,999);return o?a?s?!u&&t7("millisecond",i):t7("second",r):t7("minute",n):t7("hour",t)}let ns="Invalid DateTime";function nu(e){return new eG("unsupported zone",`the zone "${e.name}" is not supported`)}function nl(e){return null===e.weekData&&(e.weekData=nt(e.c)),e.weekData}function nc(e,t){let n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new nC({...n,...t,old:n})}function n_(e,t,n){let r=e-6e4*t,i=n.offset(r);if(t===i)return[r,t];r-=(i-t)*6e4;let o=n.offset(r);return i===o?[r,i]:[e-6e4*Math.min(i,o),Math.max(i,o)]}function np(e,t){e+=6e4*t;let n=new Date(e);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function nd(e,t){let n=e.o,r=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),o={...e.c,year:r,month:i,day:Math.min(e.c.day,eE(r,i))+Math.trunc(t.days)+7*Math.trunc(t.weeks)},a=tL.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),s=ew(o),[u,l]=n_(s,n,e.zone);return 0!==a&&(u+=a,l=e.zone.offset(u)),{ts:u,o:l}}function nf(e,t,n,r,i,o){let{setZone:a,zone:s}=n;if((!e||0===Object.keys(e).length)&&!t)return nC.invalid(new eG("unparsable",`the input "${i}" can't be parsed as ${r}`));{let r=t||s,i=nC.fromObject(e,{...n,zone:r,specificOffset:o});return a?i:i.setZone(s)}}function nm(e,t,n=!0){return e.isValid?eH.create(Z.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function nh(e,t){let n=e.c.year>9999||e.c.year<0,r="";return n&&e.c.year>=0&&(r+="+"),r+=eg(e.c.year,n?6:4),t?r+="-"+eg(e.c.month)+"-"+eg(e.c.day):r+=eg(e.c.month)+eg(e.c.day),r}function ny(e,t,n,r,i,o){let a=eg(e.c.hour);return t?(a+=":"+eg(e.c.minute),0===e.c.second&&n||(a+=":")):a+=eg(e.c.minute),0===e.c.second&&n||(a+=eg(e.c.second),0===e.c.millisecond&&r||(a+="."+eg(e.c.millisecond,3))),i&&(e.isOffsetFixed&&0===e.offset&&!o?a+="Z":e.o<0?a+="-"+eg(Math.trunc(-e.o/60))+":"+eg(Math.trunc(-e.o%60)):a+="+"+eg(Math.trunc(e.o/60))+":"+eg(Math.trunc(e.o%60))),o&&(a+="["+e.zone.ianaName+"]"),a}let ng={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},nb={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},nv={ordinal:1,hour:0,minute:0,second:0,millisecond:0},nx=["year","month","day","hour","minute","second","millisecond"],nD=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],nS=["year","ordinal","hour","minute","second","millisecond"];function nT(e){let t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new s(e);return t}function nE(e,t){let n,r;let i=en(t.zone,ec.defaultZone),o=Z.fromObject(t),a=ec.now();if(e_(e.year))n=a;else{for(let t of nx)e_(e[t])&&(e[t]=ng[t]);let t=no(e)||na(e);if(t)return nC.invalid(t);let o=i.offset(a);[n,r]=n_(ew(e),o,i)}return new nC({ts:n,zone:i,loc:o,o:r})}function nw(e,t,n){let r=!!e_(n.round)||n.round,i=(e,i)=>{e=eD(e,r||n.calendary?0:2,!0);let o=t.loc.clone(n).relFormatter(n);return o.format(e,i)},o=r=>n.calendary?t.hasSame(e,r)?0:t.startOf(r).diff(e.startOf(r),r).get(r):t.diff(e,r).get(r);if(n.unit)return i(o(n.unit),n.unit);for(let e of n.units){let t=o(e);if(Math.abs(t)>=1)return i(t,e)}return i(e>t?-0:0,n.units[n.units.length-1])}function nA(e){let t={},n;return e.length>0&&"object"==typeof e[e.length-1]?(t=e[e.length-1],n=Array.from(e).slice(0,e.length-1)):n=Array.from(e),[t,n]}class nC{constructor(e){let t=e.zone||ec.defaultZone,n=e.invalid||(Number.isNaN(e.ts)?new eG("invalid input"):null)||(t.isValid?null:nu(t));this.ts=e_(e.ts)?ec.now():e.ts;let r=null,i=null;if(!n){let o=e.old&&e.old.ts===this.ts&&e.old.zone.equals(t);if(o)[r,i]=[e.old.c,e.old.o];else{let e=t.offset(this.ts);r=(n=Number.isNaN((r=np(this.ts,e)).year)?new eG("invalid input"):null)?null:r,i=n?null:e}}this._zone=t,this.loc=e.loc||Z.create(),this.invalid=n,this.weekData=null,this.c=r,this.o=i,this.isLuxonDateTime=!0}static now(){return new nC({})}static local(){let[e,t]=nA(arguments),[n,r,i,o,a,s,u]=t;return nE({year:n,month:r,day:i,hour:o,minute:a,second:s,millisecond:u},e)}static utc(){let[e,t]=nA(arguments),[n,r,i,o,a,s,u]=t;return e.zone=ee.utcInstance,nE({year:n,month:r,day:i,hour:o,minute:a,second:s,millisecond:u},e)}static fromJSDate(e,t={}){let n="[object Date]"===Object.prototype.toString.call(e)?e.valueOf():NaN;if(Number.isNaN(n))return nC.invalid("invalid input");let r=en(t.zone,ec.defaultZone);return r.isValid?new nC({ts:n,zone:r,loc:Z.fromObject(t)}):nC.invalid(nu(r))}static fromMillis(e,t={}){if(ep(e))return e<-864e13||e>864e13?nC.invalid("Timestamp out of range"):new nC({ts:e,zone:en(t.zone,ec.defaultZone),loc:Z.fromObject(t)});throw new u(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if(ep(e))return new nC({ts:1e3*e,zone:en(t.zone,ec.defaultZone),loc:Z.fromObject(t)});throw new u("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};let n=en(t.zone,ec.defaultZone);if(!n.isValid)return nC.invalid(nu(n));let r=ec.now(),i=e_(t.specificOffset)?n.offset(r):t.specificOffset,o=eI(e,nT),s=!e_(o.ordinal),u=!e_(o.year),l=!e_(o.month)||!e_(o.day),c=u||l,_=o.weekYear||o.weekNumber,p=Z.fromObject(t);if((c||s)&&_)throw new a("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&s)throw new a("Can't mix ordinal dates with month/day");let d=_||o.weekday&&!c,f,m,h=np(r,i);d?(f=nD,m=nb,h=nt(h)):s?(f=nS,m=nv,h=nr(h)):(f=nx,m=ng);let y=!1;for(let e of f){let t=o[e];e_(t)?y?o[e]=m[e]:o[e]=h[e]:y=!0}let g=d?function(e){let t=ed(e.weekYear),n=ey(e.weekNumber,1,eA(e.weekYear)),r=ey(e.weekday,1,7);return t?n?!r&&t7("weekday",e.weekday):t7("week",e.week):t7("weekYear",e.weekYear)}(o):s?function(e){let t=ed(e.year),n=ey(e.ordinal,1,eT(e.year));return t?!n&&t7("ordinal",e.ordinal):t7("year",e.year)}(o):no(o),b=g||na(o);if(b)return nC.invalid(b);let v=d?nn(o):s?ni(o):o,[x,D]=n_(ew(v),i,n),S=new nC({ts:x,zone:n,o:D,loc:p});return o.weekday&&c&&e.weekday!==S.weekday?nC.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${S.toISO()}`):S}static fromISO(e,t={}){let[n,r]=e1(e,[tg,tD],[tb,tS],[tv,tT],[tx,tE]);return nf(n,r,t,"ISO 8601",e)}static fromRFC2822(e,t={}){let[n,r]=e1(e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim(),[t_,tp]);return nf(n,r,t,"RFC 2822",e)}static fromHTTP(e,t={}){let[n,r]=e1(e,[td,th],[tf,th],[tm,ty]);return nf(n,r,t,"HTTP",t)}static fromFormat(e,t,n={}){if(e_(e)||e_(t))throw new u("fromFormat requires an input string and a format");let{locale:r=null,numberingSystem:i=null}=n,o=Z.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0}),[a,s,l,c]=function(e,t,n){let{result:r,zone:i,specificOffset:o,invalidReason:a}=t4(e,t,n);return[r,i,o,a]}(o,e,t);return c?nC.invalid(c):nf(a,s,n,`format ${t}`,e,l)}static fromString(e,t,n={}){return nC.fromFormat(e,t,n)}static fromSQL(e,t={}){let[n,r]=e1(e,[tA,tD],[tC,tN]);return nf(n,r,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new u("need to specify a reason the DateTime is invalid");let n=e instanceof eG?e:new eG(e,t);if(!ec.throwOnInvalid)return new nC({invalid:n});throw new r(n)}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){let n=t6(e,Z.fromObject(t));return n?n.map(e=>e?e.val:null).join(""):null}static expandFormat(e,t={}){let n=t3(eH.parseFormat(e),Z.fromObject(t));return n.map(e=>e.val).join("")}get(e){return this[e]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?nl(this).weekYear:NaN}get weekNumber(){return this.isValid?nl(this).weekNumber:NaN}get weekday(){return this.isValid?nl(this).weekday:NaN}get ordinal(){return this.isValid?nr(this.c).ordinal:NaN}get monthShort(){return this.isValid?tB.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?tB.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?tB.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?tB.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}get isInLeapYear(){return eS(this.year)}get daysInMonth(){return eE(this.year,this.month)}get daysInYear(){return this.isValid?eT(this.year):NaN}get weeksInWeekYear(){return this.isValid?eA(this.weekYear):NaN}resolvedLocaleOptions(e={}){let{locale:t,numberingSystem:n,calendar:r}=eH.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:n,outputCalendar:r}}toUTC(e=0,t={}){return this.setZone(ee.instance(e),t)}toLocal(){return this.setZone(ec.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:n=!1}={}){if((e=en(e,ec.defaultZone)).equals(this.zone))return this;if(!e.isValid)return nC.invalid(nu(e));{let i=this.ts;if(t||n){var r;let t=e.offset(this.ts),n=this.toObject();[i]=(r=e,n_(ew(n),t,r))}return nc(this,{ts:i,zone:e})}}reconfigure({locale:e,numberingSystem:t,outputCalendar:n}={}){let r=this.loc.clone({locale:e,numberingSystem:t,outputCalendar:n});return nc(this,{loc:r})}setLocale(e){return this.reconfigure({locale:e})}set(e){var t,n,r;let i;if(!this.isValid)return this;let o=eI(e,nT),s=!e_(o.weekYear)||!e_(o.weekNumber)||!e_(o.weekday),u=!e_(o.ordinal),l=!e_(o.year),c=!e_(o.month)||!e_(o.day),_=o.weekYear||o.weekNumber;if((l||c||u)&&_)throw new a("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&u)throw new a("Can't mix ordinal dates with month/day");s?i=nn({...nt(this.c),...o}):e_(o.ordinal)?(i={...this.toObject(),...o},e_(o.day)&&(i.day=Math.min(eE(i.year,i.month),i.day))):i=ni({...nr(this.c),...o});let[p,d]=(t=i,n=this.o,r=this.zone,n_(ew(t),n,r));return nc(this,{ts:p,o:d})}plus(e){if(!this.isValid)return this;let t=tL.fromDurationLike(e);return nc(this,nd(this,t))}minus(e){if(!this.isValid)return this;let t=tL.fromDurationLike(e).negate();return nc(this,nd(this,t))}startOf(e){if(!this.isValid)return this;let t={},n=tL.normalizeUnit(e);switch(n){case"years":t.month=1;case"quarters":case"months":t.day=1;case"weeks":case"days":t.hour=0;case"hours":t.minute=0;case"minutes":t.second=0;case"seconds":t.millisecond=0}if("weeks"===n&&(t.weekday=1),"quarters"===n){let e=Math.ceil(this.month/3);t.month=(e-1)*3+1}return this.set(t)}endOf(e){return this.isValid?this.plus({[e]:1}).startOf(e).minus(1):this}toFormat(e,t={}){return this.isValid?eH.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):ns}toLocaleString(e=d,t={}){return this.isValid?eH.create(this.loc.clone(t),e).formatDateTime(this):ns}toLocaleParts(e={}){return this.isValid?eH.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=!1,suppressMilliseconds:n=!1,includeOffset:r=!0,extendedZone:i=!1}={}){if(!this.isValid)return null;let o="extended"===e;return nh(this,o)+"T"+ny(this,o,t,n,r,i)}toISODate({format:e="extended"}={}){return this.isValid?nh(this,"extended"===e):null}toISOWeekDate(){return nm(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:n=!0,includePrefix:r=!1,extendedZone:i=!1,format:o="extended"}={}){return this.isValid?(r?"T":"")+ny(this,"extended"===o,t,e,n,i):null}toRFC2822(){return nm(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return nm(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?nh(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:n=!0}={}){let r="HH:mm:ss.SSS";return(t||e)&&(n&&(r+=" "),t?r+="z":e&&(r+="ZZ")),nm(this,r,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():ns}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};let t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t="milliseconds",n={}){if(!this.isValid||!e.isValid)return tL.invalid("created by diffing an invalid DateTime");let r={locale:this.locale,numberingSystem:this.numberingSystem,...n},i=(Array.isArray(t)?t:[t]).map(tL.normalizeUnit),o=e.valueOf()>this.valueOf(),a=function(e,t,n,r){let[i,o,a,s]=function(e,t,n){let r,i;let o=[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+(t.year-e.year)*4],["months",(e,t)=>t.month-e.month+(t.year-e.year)*12],["weeks",(e,t)=>{let n=tU(e,t);return(n-n%7)/7}],["days",tU]],a={},s=e;for(let[u,l]of o)n.indexOf(u)>=0&&(r=u,a[u]=l(e,t),(i=s.plus(a))>t?(a[u]--,e=s.plus(a)):e=i);return[e,a,i,r]}(e,t,n),u=t-i,l=n.filter(e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0);0===l.length&&(a0?tL.fromMillis(u,r).shiftTo(...l).plus(c):c}(o?this:e,o?e:this,i,r);return o?a.negate():a}diffNow(e="milliseconds",t={}){return this.diff(nC.now(),e,t)}until(e){return this.isValid?tR.fromDateTimes(this,e):this}hasSame(e,t){if(!this.isValid)return!1;let n=e.valueOf(),r=this.setZone(e.zone,{keepLocalTime:!0});return r.startOf(t)<=n&&n<=r.endOf(t)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;let t=e.base||nC.fromObject({},{zone:this.zone}),n=e.padding?thise.valueOf(),Math.min)}static max(...e){if(!e.every(nC.isDateTime))throw new u("max requires all arguments be DateTimes");return em(e,e=>e.valueOf(),Math.max)}static fromFormatExplain(e,t,n={}){let{locale:r=null,numberingSystem:i=null}=n,o=Z.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0});return t4(o,e,t)}static fromStringExplain(e,t,n={}){return nC.fromFormatExplain(e,t,n)}static get DATE_SHORT(){return d}static get DATE_MED(){return f}static get DATE_MED_WITH_WEEKDAY(){return m}static get DATE_FULL(){return h}static get DATE_HUGE(){return y}static get TIME_SIMPLE(){return g}static get TIME_WITH_SECONDS(){return b}static get TIME_WITH_SHORT_OFFSET(){return v}static get TIME_WITH_LONG_OFFSET(){return x}static get TIME_24_SIMPLE(){return D}static get TIME_24_WITH_SECONDS(){return S}static get TIME_24_WITH_SHORT_OFFSET(){return T}static get TIME_24_WITH_LONG_OFFSET(){return E}static get DATETIME_SHORT(){return w}static get DATETIME_SHORT_WITH_SECONDS(){return A}static get DATETIME_MED(){return C}static get DATETIME_MED_WITH_SECONDS(){return N}static get DATETIME_MED_WITH_WEEKDAY(){return M}static get DATETIME_FULL(){return k}static get DATETIME_FULL_WITH_SECONDS(){return I}static get DATETIME_HUGE(){return j}static get DATETIME_HUGE_WITH_SECONDS(){return O}}function nN(e){if(nC.isDateTime(e))return e;if(e&&e.valueOf&&ep(e.valueOf()))return nC.fromJSDate(e);if(e&&"object"==typeof e)return nC.fromObject(e);throw new u(`Unknown datetime argument: ${e}, of type ${typeof e}`)}t.DateTime=nC,t.Duration=tL,t.FixedOffsetZone=ee,t.IANAZone=U,t.Info=tB,t.Interval=tR,t.InvalidZone=et,t.Settings=ec,t.SystemZone=L,t.VERSION="3.3.0",t.Zone=P},8169:e=>{"use strict";var t=function(e){return e!=e};e.exports=function(e,n){return 0===e&&0===n?1/e==1/n:!!(e===n||t(e)&&t(n))}},4679:(e,t,n)=>{"use strict";var r=n(4926),i=n(9429),o=n(8169),a=n(8070),s=n(191),u=i(a(),Object);r(u,{getPolyfill:a,implementation:o,shim:s}),e.exports=u},8070:(e,t,n)=>{"use strict";var r=n(8169);e.exports=function(){return"function"==typeof Object.is?Object.is:r}},191:(e,t,n)=>{"use strict";var r=n(8070),i=n(4926);e.exports=function(){var e=r();return i(Object,{is:e},{is:function(){return Object.is!==e}}),e}},5691:(e,t,n)=>{"use strict";var r;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=n(801),s=Object.prototype.propertyIsEnumerable,u=!s.call({toString:null},"toString"),l=s.call(function(){},"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],_=function(e){var t=e.constructor;return t&&t.prototype===e},p={$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},d=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!p["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{_(window[e])}catch(e){return!0}}catch(e){return!0}return!1}(),f=function(e){if("undefined"==typeof window||!d)return _(e);try{return _(e)}catch(e){return!1}};r=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===o.call(e),r=a(e),s=t&&"[object String]"===o.call(e),_=[];if(!t&&!n&&!r)throw TypeError("Object.keys called on a non-object");var p=l&&n;if(s&&e.length>0&&!i.call(e,0))for(var d=0;d0)for(var m=0;m{"use strict";var r=Array.prototype.slice,i=n(801),o=Object.keys,a=o?function(e){return o(e)}:n(5691),s=Object.keys;a.shim=function(){return Object.keys?!function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)&&(Object.keys=function(e){return i(e)?s(r.call(e)):s(e)}):Object.keys=a,Object.keys||a},e.exports=a},801:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),r}},9928:(e,t,n)=>{var r=n(8892);function i(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function o(e){var t=function(){if(t.called)throw Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},n=e.name||"Function wrapped with `once`";return t.onceError=n+" shouldn't be called more than once",t.called=!1,t}e.exports=r(i),e.exports.strict=r(o),i.proto=i(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return i(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return o(this)},configurable:!0})})},9761:(e,t)=>{"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;t.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw TypeError(n+"must be non-object");for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var r={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray){e.set(t.subarray(n,n+r),i);return}for(var o=0;o{"use strict";e.exports=function(e,t,n,r){for(var i=65535&e|0,o=e>>>16&65535|0,a=0;0!==n;){a=n>2e3?2e3:n,n-=a;do o=o+(i=i+t[r++]|0)|0;while(--a)i%=65521,o%=65521}return i|o<<16|0}},1271:e=>{"use strict";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}},4299:e=>{"use strict";var t=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();e.exports=function(e,n,r,i){var o=i+r;e^=-1;for(var a=i;a>>8^t[(e^n[a])&255];return -1^e}},5789:(e,t,n)=>{"use strict";var r,i=n(9761),o=n(9564),a=n(5562),s=n(4299),u=n(2950);function l(e,t){return e.msg=u[t],t}function c(e){return(e<<1)-(e>4?9:0)}function _(e){for(var t=e.length;--t>=0;)e[t]=0}function p(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(i.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function d(e,t){o._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,p(e.strm)}function f(e,t){e.pending_buf[e.pending++]=t}function m(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function h(e,t){var n,r,i=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match,u=e.strstart>e.w_size-262?e.strstart-(e.w_size-262):0,l=e.window,c=e.w_mask,_=e.prev,p=e.strstart+258,d=l[o+a-1],f=l[o+a];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(l[(n=t)+a]!==f||l[n+a-1]!==d||l[n]!==l[o]||l[++n]!==l[o+1])continue;o+=2,n++;do;while(l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&oa){if(e.match_start=t,a=r,r>=s)break;d=l[o+a-1],f=l[o+a]}}while((t=_[t&c])>u&&0!=--i)return a<=e.lookahead?a:e.lookahead}function y(e){var t,n,r,o,u,l=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=l+(l-262)){i.arraySet(e.window,e.window,l,l,0),e.match_start-=l,e.strstart-=l,e.block_start-=l,t=n=e.hash_size;do r=e.head[--t],e.head[t]=r>=l?r-l:0;while(--n)t=n=l;do r=e.prev[--t],e.prev[t]=r>=l?r-l:0;while(--n)o+=l}if(0===e.strm.avail_in)break;if(n=function(e,t,n,r){var o=e.avail_in;return(o>r&&(o=r),0===o)?0:(e.avail_in-=o,i.arraySet(t,e.input,e.next_in,o,n),1===e.state.wrap?e.adler=a(e.adler,t,o,n):2===e.state.wrap&&(e.adler=s(e.adler,t,o,n)),e.next_in+=o,e.total_in+=o,o)}(e.strm,e.window,e.strstart+e.lookahead,o),e.lookahead+=n,e.lookahead+e.insert>=3)for(u=e.strstart-e.insert,e.ins_h=e.window[u],e.ins_h=(e.ins_h<=3&&(e.ins_h=(e.ins_h<=3){if(r=o._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<=3&&(e.ins_h=(e.ins_h<4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-3,r=o._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=i&&(e.ins_h=(e.ins_h<15&&(s=2,r-=16),o<1||o>9||8!==n||r<8||r>15||t<0||t>9||a<0||a>4)return l(e,-2);8===r&&(r=9);var u=new x;return e.state=u,u.strm=e,u.wrap=s,u.gzhead=null,u.w_bits=r,u.w_size=1<e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(y(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,d(e,!1),0===e.strm.avail_out)||e.strstart-e.block_start>=e.w_size-262&&(d(e,!1),0===e.strm.avail_out))return 1}return(e.insert=0,4===t)?(d(e,!0),0===e.strm.avail_out)?3:4:(e.strstart>e.block_start&&(d(e,!1),e.strm.avail_out),1)}),new v(4,4,8,4,g),new v(4,5,16,8,g),new v(4,6,32,32,g),new v(4,4,16,16,b),new v(8,16,32,32,b),new v(8,16,128,128,b),new v(8,32,128,256,b),new v(32,128,258,1024,b),new v(32,258,258,4096,b)],t.deflateInit=function(e,t){return T(e,t,8,15,8,0)},t.deflateInit2=T,t.deflateReset=S,t.deflateResetKeep=D,t.deflateSetHeader=function(e,t){return e&&e.state&&2===e.state.wrap?(e.state.gzhead=t,0):-2},t.deflate=function(e,t){if(!e||!e.state||t>5||t<0)return e?l(e,-2):-2;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||666===i.status&&4!==t)return l(e,0===e.avail_out?-5:-2);if(i.strm=e,n=i.last_flush,i.last_flush=t,42===i.status){if(2===i.wrap)e.adler=0,f(i,31),f(i,139),f(i,8),i.gzhead?(f(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)),f(i,255&i.gzhead.time),f(i,i.gzhead.time>>8&255),f(i,i.gzhead.time>>16&255),f(i,i.gzhead.time>>24&255),f(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),f(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(f(i,255&i.gzhead.extra.length),f(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(f(i,0),f(i,0),f(i,0),f(i,0),f(i,0),f(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),f(i,3),i.status=113);else{var n,i,a,u,h=8+(i.w_bits-8<<4)<<8;h|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(h|=32),h+=31-h%31,i.status=113,m(i,h),0!==i.strstart&&(m(i,e.adler>>>16),m(i,65535&e.adler)),e.adler=1}}if(69===i.status){if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),p(e),a=i.pending,i.pending!==i.pending_buf_size));)f(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73}if(73===i.status){if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),p(e),a=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindexa&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===u&&(i.gzindex=0,i.status=91)}else i.status=91}if(91===i.status){if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),p(e),a=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindexa&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===u&&(i.status=103)}else i.status=103}if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&p(e),i.pending+2<=i.pending_buf_size&&(f(i,255&e.adler),f(i,e.adler>>8&255),e.adler=0,i.status=113)):i.status=113),0!==i.pending){if(p(e),0===e.avail_out)return i.last_flush=-1,0}else if(0===e.avail_in&&c(t)<=c(n)&&4!==t)return l(e,-5);if(666===i.status&&0!==e.avail_in)return l(e,-5);if(0!==e.avail_in||0!==i.lookahead||0!==t&&666!==i.status){var g=2===i.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(y(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(d(e,!1),0===e.strm.avail_out))return 1}return(e.insert=0,4===t)?(d(e,!0),0===e.strm.avail_out)?3:4:e.last_lit&&(d(e,!1),0===e.strm.avail_out)?1:2}(i,t):3===i.strategy?function(e,t){for(var n,r,i,a,s=e.window;;){if(e.lookahead<=258){if(y(e),e.lookahead<=258&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(r=s[i=e.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){a=e.strstart+258;do;while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&ie.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=o._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(d(e,!1),0===e.strm.avail_out))return 1}return(e.insert=0,4===t)?(d(e,!0),0===e.strm.avail_out)?3:4:e.last_lit&&(d(e,!1),0===e.strm.avail_out)?1:2}(i,t):r[i.level].func(i,t);if((3===g||4===g)&&(i.status=666),1===g||3===g)return 0===e.avail_out&&(i.last_flush=-1),0;if(2===g&&(1===t?o._tr_align(i):5!==t&&(o._tr_stored_block(i,0,0,!1),3===t&&(_(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),p(e),0===e.avail_out))return i.last_flush=-1,0}return 4!==t?0:i.wrap<=0?1:(2===i.wrap?(f(i,255&e.adler),f(i,e.adler>>8&255),f(i,e.adler>>16&255),f(i,e.adler>>24&255),f(i,255&e.total_in),f(i,e.total_in>>8&255),f(i,e.total_in>>16&255),f(i,e.total_in>>24&255)):(m(i,e.adler>>>16),m(i,65535&e.adler)),p(e),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?0:1)},t.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&103!==t&&113!==t&&666!==t?l(e,-2):(e.state=null,113===t?l(e,-3):0):-2},t.deflateSetDictionary=function(e,t){var n,r,o,s,u,l,c,p,d=t.length;if(!e||!e.state||2===(s=(n=e.state).wrap)||1===s&&42!==n.status||n.lookahead)return -2;for(1===s&&(e.adler=a(e.adler,t,d,0)),n.wrap=0,d>=n.w_size&&(0===s&&(_(n.head),n.strstart=0,n.block_start=0,n.insert=0),p=new i.Buf8(n.w_size),i.arraySet(p,t,d-n.w_size,n.w_size,0),t=p,d=n.w_size),u=e.avail_in,l=e.next_in,c=e.input,e.avail_in=d,e.next_in=0,e.input=t,y(n);n.lookahead>=3;){r=n.strstart,o=n.lookahead-2;do n.ins_h=(n.ins_h<{"use strict";e.exports=function(e,t){var n,r,i,o,a,s,u,l,c,_,p,d,f,m,h,y,g,b,v,x,D,S,T,E,w;n=e.state,r=e.next_in,E=e.input,i=r+(e.avail_in-5),o=e.next_out,w=e.output,a=o-(t-e.avail_out),s=o+(e.avail_out-257),u=n.dmax,l=n.wsize,c=n.whave,_=n.wnext,p=n.window,d=n.hold,f=n.bits,m=n.lencode,h=n.distcode,y=(1<>>=v=b>>>24,f-=v,0==(v=b>>>16&255))w[o++]=65535&b;else if(16&v)for(x=65535&b,(v&=15)&&(f>>=v,f-=v),f<15&&(d+=E[r++]<>>=v=b>>>24,f-=v,16&(v=b>>>16&255)){if(D=65535&b,f<(v&=15)&&(d+=E[r++]<u){e.msg="invalid distance too far back",n.mode=30;break e}if(d>>>=v,f-=v,D>(v=o-a)){if((v=D-v)>c&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(S=0,T=p,0===_){if(S+=l-v,v2;)w[o++]=T[S++],w[o++]=T[S++],w[o++]=T[S++],x-=3;x&&(w[o++]=T[S++],x>1&&(w[o++]=T[S++]))}else{S=o-D;do w[o++]=w[S++],w[o++]=w[S++],w[o++]=w[S++],x-=3;while(x>2)x&&(w[o++]=w[S++],x>1&&(w[o++]=w[S++]))}}else if((64&v)==0){b=h[(65535&b)+(d&(1<>3,f-=x<<3,d&=(1<{"use strict";var r,i,o=n(9761),a=n(5562),s=n(4299),u=n(4980),l=n(881);function c(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function _(){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 o.Buf16(320),this.work=new o.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function p(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new o.Buf32(852),t.distcode=t.distdyn=new o.Buf32(592),t.sane=1,t.back=-1,0):-2}function d(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,p(e)):-2}function f(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=(t>>4)+1,t<48&&(t&=15)),t&&(t<8||t>15))?-2:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,d(e)):-2}function m(e,t){var n,r;return e?(r=new _,e.state=r,r.window=null,0!==(n=f(e,t))&&(e.state=null),n):-2}var h=!0;function y(e,t,n,r){var i,a=e.state;return null===a.window&&(a.wsize=1<=a.wsize?(o.arraySet(a.window,t,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((i=a.wsize-a.wnext)>r&&(i=r),o.arraySet(a.window,t,n-r,i,a.wnext),(r-=i)?(o.arraySet(a.window,t,n-r,r,0),a.wnext=r,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave>>8&255,n.check=s(n.check,L,2,0),b=0,v=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&b)<<8)+(b>>8))%31){e.msg="incorrect header check",n.mode=30;break}if((15&b)!=8){e.msg="unknown compression method",n.mode=30;break}if(b>>>=4,v-=4,I=(15&b)+8,0===n.wbits)n.wbits=I;else if(I>n.wbits){e.msg="invalid window size",n.mode=30;break}n.dmax=1<>8&1),512&n.flags&&(L[0]=255&b,L[1]=b>>>8&255,n.check=s(n.check,L,2,0)),b=0,v=0,n.mode=3;case 3:for(;v<32;){if(0===m)break t;m--,b+=_[d++]<>>8&255,L[2]=b>>>16&255,L[3]=b>>>24&255,n.check=s(n.check,L,4,0)),b=0,v=0,n.mode=4;case 4:for(;v<16;){if(0===m)break t;m--,b+=_[d++]<>8),512&n.flags&&(L[0]=255&b,L[1]=b>>>8&255,n.check=s(n.check,L,2,0)),b=0,v=0,n.mode=5;case 5:if(1024&n.flags){for(;v<16;){if(0===m)break t;m--,b+=_[d++]<>>8&255,n.check=s(n.check,L,2,0)),b=0,v=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((S=n.length)>m&&(S=m),S&&(n.head&&(I=n.head.extra_len-n.length,n.head.extra||(n.head.extra=Array(n.head.extra_len)),o.arraySet(n.head.extra,_,d,S,I)),512&n.flags&&(n.check=s(n.check,_,S,d)),m-=S,d+=S,n.length-=S),n.length))break t;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===m)break t;S=0;do I=_[d+S++],n.head&&I&&n.length<65536&&(n.head.name+=String.fromCharCode(I));while(I&&S>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;v<32;){if(0===m)break t;m--,b+=_[d++]<>>=7&v,v-=7&v,n.mode=27;break}for(;v<3;){if(0===m)break t;m--,b+=_[d++]<>>=1)){case 0:n.mode=14;break;case 1:if(function(e){if(h){var t;for(r=new o.Buf32(512),i=new o.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(l(1,e.lens,0,288,r,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;l(2,e.lens,0,32,i,0,e.work,{bits:5}),h=!1}e.lencode=r,e.lenbits=9,e.distcode=i,e.distbits=5}(n),n.mode=20,6===t){b>>>=2,v-=2;break t}break;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=30}b>>>=2,v-=2;break;case 14:for(b>>>=7&v,v-=7&v;v<32;){if(0===m)break t;m--,b+=_[d++]<>>16^65535)){e.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&b,b=0,v=0,n.mode=15,6===t)break t;case 15:n.mode=16;case 16:if(S=n.length){if(S>m&&(S=m),S>g&&(S=g),0===S)break t;o.arraySet(p,_,d,S,f),m-=S,d+=S,g-=S,f+=S,n.length-=S;break}n.mode=12;break;case 17:for(;v<14;){if(0===m)break t;m--,b+=_[d++]<>>=5,v-=5,n.ndist=(31&b)+1,b>>>=5,v-=5,n.ncode=(15&b)+4,b>>>=4,v-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have>>=3,v-=3}for(;n.have<19;)n.lens[z[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,O={bits:n.lenbits},j=l(0,n.lens,0,19,n.lencode,0,n.work,O),n.lenbits=O.bits,j){e.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have>>24,A=F>>>16&255,C=65535&F,!(w<=v);){if(0===m)break t;m--,b+=_[d++]<>>=w,v-=w,n.lens[n.have++]=C;else{if(16===C){for(P=w+2;v>>=w,v-=w,0===n.have){e.msg="invalid bit length repeat",n.mode=30;break}I=n.lens[n.have-1],S=3+(3&b),b>>>=2,v-=2}else if(17===C){for(P=w+3;v>>=w,v-=w,I=0,S=3+(7&b),b>>>=3,v-=3}else{for(P=w+7;v>>=w,v-=w,I=0,S=11+(127&b),b>>>=7,v-=7}if(n.have+S>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=30;break}for(;S--;)n.lens[n.have++]=I}}if(30===n.mode)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,O={bits:n.lenbits},j=l(1,n.lens,0,n.nlen,n.lencode,0,n.work,O),n.lenbits=O.bits,j){e.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,O={bits:n.distbits},j=l(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,O),n.distbits=O.bits,j){e.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===t)break t;case 20:n.mode=21;case 21:if(m>=6&&g>=258){e.next_out=f,e.avail_out=g,e.next_in=d,e.avail_in=m,n.hold=b,n.bits=v,u(e,D),f=e.next_out,p=e.output,g=e.avail_out,d=e.next_in,_=e.input,m=e.avail_in,b=n.hold,v=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;w=(F=n.lencode[b&(1<>>24,A=F>>>16&255,C=65535&F,!(w<=v);){if(0===m)break t;m--,b+=_[d++]<>N)])>>>24,A=F>>>16&255,C=65535&F,!(N+w<=v);){if(0===m)break t;m--,b+=_[d++]<>>=N,v-=N,n.back+=N}if(b>>>=w,v-=w,n.back+=w,n.length=C,0===A){n.mode=26;break}if(32&A){n.back=-1,n.mode=12;break}if(64&A){e.msg="invalid literal/length code",n.mode=30;break}n.extra=15&A,n.mode=22;case 22:if(n.extra){for(P=n.extra;v>>=n.extra,v-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;w=(F=n.distcode[b&(1<>>24,A=F>>>16&255,C=65535&F,!(w<=v);){if(0===m)break t;m--,b+=_[d++]<>N)])>>>24,A=F>>>16&255,C=65535&F,!(N+w<=v);){if(0===m)break t;m--,b+=_[d++]<>>=N,v-=N,n.back+=N}if(b>>>=w,v-=w,n.back+=w,64&A){e.msg="invalid distance code",n.mode=30;break}n.offset=C,n.extra=15&A,n.mode=24;case 24:if(n.extra){for(P=n.extra;v>>=n.extra,v-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===g)break t;if(S=D-g,n.offset>S){if((S=n.offset-S)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=30;break}S>n.wnext?(S-=n.wnext,T=n.wsize-S):T=n.wnext-S,S>n.length&&(S=n.length),E=n.window}else E=p,T=f-n.offset,S=n.length;S>g&&(S=g),g-=S,n.length-=S;do p[f++]=E[T++];while(--S)0===n.length&&(n.mode=21);break;case 26:if(0===g)break t;p[f++]=n.length,g--,n.mode=21;break;case 27:if(n.wrap){for(;v<32;){if(0===m)break t;m--,b|=_[d++]<{"use strict";var r=n(9761),i=[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],o=[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],a=[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],s=[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];e.exports=function(e,t,n,u,l,c,_,p){var d,f,m,h,y,g,b,v,x,D=p.bits,S=0,T=0,E=0,w=0,A=0,C=0,N=0,M=0,k=0,I=0,j=null,O=0,P=new r.Buf16(16),F=new r.Buf16(16),L=null,z=0;for(S=0;S<=15;S++)P[S]=0;for(T=0;T=1&&0===P[w];w--);if(A>w&&(A=w),0===w)return l[c++]=20971520,l[c++]=20971520,p.bits=1,0;for(E=1;E0&&(0===e||1!==w))return -1;for(S=1,F[1]=0;S<15;S++)F[S+1]=F[S]+P[S];for(T=0;T852||2===e&&k>592)return 1;for(;;){b=S-N,_[T]g?(v=L[z+_[T]],x=j[O+_[T]]):(v=96,x=0),d=1<>N)+(f-=d)]=b<<24|v<<16|x|0;while(0!==f)for(d=1<>=1;if(0!==d?(I&=d-1,I+=d):I=0,T++,0==--P[S]){if(S===w)break;S=t[n+_[T]]}if(S>A&&(I&h)!==m){for(0===N&&(N=A),y+=E,M=1<<(C=S-N);C+N852||2===e&&k>592)return 1;l[m=I&h]=A<<24|C<<16|y-c|0}}return 0!==I&&(l[y+I]=S-N<<24|4194304),p.bits=A,0}},2950:e=>{"use strict";e.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"}},9564:(e,t,n)=>{"use strict";var r,i,o,a=n(9761);function s(e){for(var t=e.length;--t>=0;)e[t]=0}var u=[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],l=[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],c=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],_=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],p=Array(576);s(p);var d=Array(60);s(d);var f=Array(512);s(f);var m=Array(256);s(m);var h=Array(29);s(h);var y=Array(30);function g(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function b(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function v(e){return e<256?f[e]:f[256+(e>>>7)]}function x(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function D(e,t,n){e.bi_valid>16-n?(e.bi_buf|=t<>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<>>=1,n<<=1;while(--t>0)return n>>>1}function E(e,t,n){var r,i,o=Array(16),a=0;for(r=1;r<=15;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=T(o[s]++,s))}}function w(e){var t;for(t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function A(e){e.bi_valid>8?x(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 C(e,t,n,r){var i=2*t,o=2*n;return e[i]>1;n>=1;n--)N(e,o,n);i=u;do n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],N(e,o,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,o[2*i]=o[2*n]+o[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,o[2*n+1]=o[2*r+1]=i,e.heap[1]=i++,N(e,o,1);while(e.heap_len>=2)e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,o,a,s,u=t.dyn_tree,l=t.max_code,c=t.stat_desc.static_tree,_=t.stat_desc.has_stree,p=t.stat_desc.extra_bits,d=t.stat_desc.extra_base,f=t.stat_desc.max_length,m=0;for(o=0;o<=15;o++)e.bl_count[o]=0;for(u[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<573;n++)(o=u[2*u[2*(r=e.heap[n])+1]+1]+1)>f&&(o=f,m++),u[2*r+1]=o,!(r>l)&&(e.bl_count[o]++,a=0,r>=d&&(a=p[r-d]),s=u[2*r],e.opt_len+=s*(o+a),_&&(e.static_len+=s*(c[2*r+1]+a)));if(0!==m){do{for(o=f-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[f]--,m-=2}while(m>0)for(o=f;0!==o;o--)for(r=e.bl_count[o];0!==r;)!((i=e.heap[--n])>l)&&(u[2*i+1]!==o&&(e.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),r--)}}(e,t),E(o,l,e.bl_count)}function I(e,t,n){var r,i,o=-1,a=t[1],s=0,u=7,l=4;for(0===a&&(u=138,l=3),t[(n+1)*2+1]=65535,r=0;r<=n;r++)i=a,a=t[(r+1)*2+1],++s>=7;a<30;a++)for(e=0,y[a]=s<<7;e<1<0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<256;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),k(e,e.l_desc),k(e,e.d_desc),a=function(e){var t;for(I(e,e.dyn_ltree,e.l_desc.max_code),I(e,e.dyn_dtree,e.d_desc.max_code),k(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*_[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(o=e.static_len+3+7>>>3)<=i&&(i=o)):i=o=n+5,n+4<=i&&-1!==t?P(e,t,n,r):4===e.strategy||o===i?(D(e,2+(r?1:0),3),M(e,p,d)):(D(e,4+(r?1:0),3),function(e,t,n,r){var i;for(D(e,t-257,5),D(e,n-1,5),D(e,r-4,4),i=0;i>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[(m[n]+256+1)*2]++,e.dyn_dtree[2*v(t)]++),e.last_lit===e.lit_bufsize-1},t._tr_align=function(e){D(e,2,3),S(e,256,p),16===e.bi_valid?(x(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}},744:e=>{"use strict";e.exports=function(){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}},9498:(e,t,n)=>{"use strict";let{ErrorWithCause:r}=n(1261),{findCauseByReference:i,getErrorCause:o,messageWithCauses:a,stackWithCauses:s}=n(1662);e.exports={ErrorWithCause:r,findCauseByReference:i,getErrorCause:o,stackWithCauses:s,messageWithCauses:a}},1261:e=>{"use strict";class t extends Error{constructor(e,{cause:n}={}){super(e),this.name=t.name,n&&(this.cause=n),this.message=e}}e.exports={ErrorWithCause:t}},1662:e=>{"use strict";let t=e=>{if(e&&"object"==typeof e&&"cause"in e){if("function"!=typeof e.cause)return e.cause instanceof Error?e.cause:void 0;{let t=e.cause();return t instanceof Error?t:void 0}}},n=(e,r)=>{if(!(e instanceof Error))return"";let i=e.stack||"";if(r.has(e))return i+"\ncauses have become circular...";let o=t(e);return o?(r.add(e),i+"\ncaused by: "+n(o,r)):i},r=(e,n,i)=>{if(!(e instanceof Error))return"";let o=i?"":e.message||"";if(n.has(e))return o+": ...";let a=t(e);if(!a)return o;{n.add(e);let t="cause"in e&&"function"==typeof e.cause;return o+(t?"":": ")+r(a,n,t)}};e.exports={findCauseByReference:(e,n)=>{if(!e||!n||!(e instanceof Error)||!(n.prototype instanceof Error)&&n!==Error)return;let r=new Set,i=e;for(;i&&!r.has(i);){if(r.add(i),i instanceof n)return i;i=t(i)}},getErrorCause:t,stackWithCauses:e=>n(e,new Set),messageWithCauses:e=>r(e,new Set)}},8261:(e,t,n)=>{e.exports=function(){"use strict";var e=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),t=e((e,t)=>{var r=function(e){return e&&e.Math==Math&&e};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()}),r=e((e,t)=>{t.exports=function(e){try{return!!e()}catch{return!0}}}),i=e((e,t)=>{var n=r();t.exports=!n(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})}),o=e((e,t)=>{var n=r();t.exports=!n(function(){var e=(function(){}).bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})}),a=e((e,t)=>{var n=o(),r=Function.prototype.call;t.exports=n?r.bind(r):function(){return r.apply(r,arguments)}}),s=e(e=>{var t={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,r=n&&!t.call({1:2},1);e.f=r?function(e){var t=n(this,e);return!!t&&t.enumerable}:t}),u=e((e,t)=>{t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}}),l=e((e,t)=>{var n=o(),r=Function.prototype,i=r.call,a=n&&r.bind.bind(i,i);t.exports=n?a:function(e){return function(){return i.apply(e,arguments)}}}),c=e((e,t)=>{var n=l(),r=n({}.toString),i=n("".slice);t.exports=function(e){return i(r(e),8,-1)}}),_=e((e,t)=>{var n=l(),i=r(),o=c(),a=Object,s=n("".split);t.exports=i(function(){return!a("z").propertyIsEnumerable(0)})?function(e){return"String"==o(e)?s(e,""):a(e)}:a}),p=e((e,t)=>{t.exports=function(e){return null==e}}),d=e((e,t)=>{var n=p(),r=TypeError;t.exports=function(e){if(n(e))throw r("Can't call method on "+e);return e}}),f=e((e,t)=>{var n=_(),r=d();t.exports=function(e){return n(r(e))}}),m=e((e,t)=>{var n="object"==typeof document&&document.all;t.exports={all:n,IS_HTMLDDA:typeof n>"u"&&void 0!==n}}),h=e((e,t)=>{var n=m(),r=n.all;t.exports=n.IS_HTMLDDA?function(e){return"function"==typeof e||e===r}:function(e){return"function"==typeof e}}),y=e((e,t)=>{var n=h(),r=m(),i=r.all;t.exports=r.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:n(e)||e===i}:function(e){return"object"==typeof e?null!==e:n(e)}}),g=e((e,n)=>{var r=t(),i=h();n.exports=function(e,t){var n;return arguments.length<2?i(n=r[e])?n:void 0:r[e]&&r[e][t]}}),b=e((e,t)=>{var n=l();t.exports=n({}.isPrototypeOf)}),v=e((e,t)=>{var n=g();t.exports=n("navigator","userAgent")||""}),x=e((e,n)=>{var r,i,o=t(),a=v(),s=o.process,u=o.Deno,l=s&&s.versions||u&&u.version,c=l&&l.v8;c&&(i=(r=c.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=+r[1]),n.exports=i}),D=e((e,t)=>{var n=x(),i=r();t.exports=!!Object.getOwnPropertySymbols&&!i(function(){var e=Symbol();return!String(e)||!(Object(e) instanceof Symbol)||!Symbol.sham&&n&&n<41})}),S=e((e,t)=>{var n=D();t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}),T=e((e,t)=>{var n=g(),r=h(),i=b(),o=S(),a=Object;t.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return r(t)&&i(t.prototype,a(e))}}),E=e((e,t)=>{var n=String;t.exports=function(e){try{return n(e)}catch{return"Object"}}}),w=e((e,t)=>{var n=h(),r=E(),i=TypeError;t.exports=function(e){if(n(e))return e;throw i(r(e)+" is not a function")}}),A=e((e,t)=>{var n=w(),r=p();t.exports=function(e,t){var i=e[t];return r(i)?void 0:n(i)}}),C=e((e,t)=>{var n=a(),r=h(),i=y(),o=TypeError;t.exports=function(e,t){var a,s;if("string"===t&&r(a=e.toString)&&!i(s=n(a,e))||r(a=e.valueOf)&&!i(s=n(a,e))||"string"!==t&&r(a=e.toString)&&!i(s=n(a,e)))return s;throw o("Can't convert object to primitive value")}}),N=e((e,t)=>{t.exports=!1}),M=e((e,n)=>{var r=t(),i=Object.defineProperty;n.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch{r[e]=t}return t}}),k=e((e,n)=>{var r=t(),i=M(),o="__core-js_shared__",a=r[o]||i(o,{});n.exports=a}),I=e((e,t)=>{var n=N(),r=k();(t.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.26.1",mode:n?"pure":"global",copyright:"\xa9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"})}),j=e((e,t)=>{var n=d(),r=Object;t.exports=function(e){return r(n(e))}}),O=e((e,t)=>{var n=l(),r=j(),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(e,t){return i(r(e),t)}}),P=e((e,t)=>{var n=l(),r=0,i=Math.random(),o=n(1..toString);t.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++r+i,36)}}),F=e((e,n)=>{var r=t(),i=I(),o=O(),a=P(),s=D(),u=S(),l=i("wks"),c=r.Symbol,_=c&&c.for,p=u?c:c&&c.withoutSetter||a;n.exports=function(e){if(!o(l,e)||!(s||"string"==typeof l[e])){var t="Symbol."+e;s&&o(c,e)?l[e]=c[e]:u&&_?l[e]=_(t):l[e]=p(t)}return l[e]}}),L=e((e,t)=>{var n=a(),r=y(),i=T(),o=A(),s=C(),u=F(),l=TypeError,c=u("toPrimitive");t.exports=function(e,t){if(!r(e)||i(e))return e;var a,u=o(e,c);if(u){if(void 0===t&&(t="default"),!r(a=n(u,e,t))||i(a))return a;throw l("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}}),z=e((e,t)=>{var n=L(),r=T();t.exports=function(e){var t=n(e,"string");return r(t)?t:t+""}}),R=e((e,n)=>{var r=t(),i=y(),o=r.document,a=i(o)&&i(o.createElement);n.exports=function(e){return a?o.createElement(e):{}}}),B=e((e,t)=>{var n=i(),o=r(),a=R();t.exports=!n&&!o(function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a})}),U=e(e=>{var t=i(),n=a(),r=s(),o=u(),l=f(),c=z(),_=O(),p=B(),d=Object.getOwnPropertyDescriptor;e.f=t?d:function(e,t){if(e=l(e),t=c(t),p)try{return d(e,t)}catch{}if(_(e,t))return o(!n(r.f,e,t),e[t])}}),J=e((e,t)=>{var n=i(),o=r();t.exports=n&&o(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}),$=e((e,t)=>{var n=y(),r=String,i=TypeError;t.exports=function(e){if(n(e))return e;throw i(r(e)+" is not an object")}}),K=e(e=>{var t=i(),n=B(),r=J(),o=$(),a=z(),s=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c="enumerable",_="configurable",p="writable";e.f=t?r?function(e,t,n){if(o(e),t=a(t),o(n),"function"==typeof e&&"prototype"===t&&"value"in n&&p in n&&!n[p]){var r=l(e,t);r&&r[p]&&(e[t]=n.value,n={configurable:_ in n?n[_]:r[_],enumerable:c in n?n[c]:r[c],writable:!1})}return u(e,t,n)}:u:function(e,t,r){if(o(e),t=a(t),o(r),n)try{return u(e,t,r)}catch{}if("get"in r||"set"in r)throw s("Accessors not supported");return"value"in r&&(e[t]=r.value),e}}),V=e((e,t)=>{var n=i(),r=K(),o=u();t.exports=n?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}}),Y=e((e,t)=>{var n=i(),r=O(),o=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,s=r(o,"name"),u=s&&(!n||n&&a(o,"name").configurable);t.exports={EXISTS:s,PROPER:s&&"something"===(function(){}).name,CONFIGURABLE:u}}),W=e((e,t)=>{var n=l(),r=h(),i=k(),o=n(Function.toString);r(i.inspectSource)||(i.inspectSource=function(e){return o(e)}),t.exports=i.inspectSource}),q=e((e,n)=>{var r=t(),i=h(),o=r.WeakMap;n.exports=i(o)&&/native code/.test(String(o))}),Q=e((e,t)=>{var n=I(),r=P(),i=n("keys");t.exports=function(e){return i[e]||(i[e]=r(e))}}),H=e((e,t)=>{t.exports={}}),G=e((e,n)=>{var r,i,o,a,s,u=q(),l=t(),c=y(),_=V(),p=O(),d=k(),f=Q(),m=H(),h="Object already initialized",g=l.TypeError,b=l.WeakMap;u||d.state?((r=d.state||(d.state=new b)).get=r.get,r.has=r.has,r.set=r.set,o=function(e,t){if(r.has(e))throw g(h);return t.facade=e,r.set(e,t),t},a=function(e){return r.get(e)||{}},s=function(e){return r.has(e)}):(m[i=f("state")]=!0,o=function(e,t){if(p(e,i))throw g(h);return t.facade=e,_(e,i,t),t},a=function(e){return p(e,i)?e[i]:{}},s=function(e){return p(e,i)}),n.exports={set:o,get:a,has:s,enforce:function(e){return s(e)?a(e):o(e,{})},getterFor:function(e){return function(t){var n;if(!c(t)||(n=a(t)).type!==e)throw g("Incompatible receiver, "+e+" required");return n}}}}),Z=e((e,t)=>{var n=r(),o=h(),a=O(),s=i(),u=Y().CONFIGURABLE,l=W(),c=G(),_=c.enforce,p=c.get,d=Object.defineProperty,f=s&&!n(function(){return 8!==d(function(){},"length",{value:8}).length}),m=String(String).split("String"),y=t.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||u&&e.name!==t)&&(s?d(e,"name",{value:t,configurable:!0}):e.name=t),f&&n&&a(n,"arity")&&e.length!==n.arity&&d(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch{}var r=_(e);return a(r,"source")||(r.source=m.join("string"==typeof t?t:"")),e};Function.prototype.toString=y(function(){return o(this)&&p(this).source||l(this)},"toString")}),X=e((e,t)=>{var n=h(),r=K(),i=Z(),o=M();t.exports=function(e,t,a,s){s||(s={});var u=s.enumerable,l=void 0!==s.name?s.name:t;if(n(a)&&i(a,l,s),s.global)u?e[t]=a:o(t,a);else{try{s.unsafe?e[t]&&(u=!0):delete e[t]}catch{}u?e[t]=a:r.f(e,t,{value:a,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}}),ee=e((e,t)=>{var n=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(e){var t=+e;return(t>0?r:n)(t)}}),et=e((e,t)=>{var n=ee();t.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}}),en=e((e,t)=>{var n=et(),r=Math.max,i=Math.min;t.exports=function(e,t){var o=n(e);return o<0?r(o+t,0):i(o,t)}}),er=e((e,t)=>{var n=et(),r=Math.min;t.exports=function(e){return e>0?r(n(e),9007199254740991):0}}),ei=e((e,t)=>{var n=er();t.exports=function(e){return n(e.length)}}),eo=e((e,t)=>{var n=f(),r=en(),i=ei(),o=function(e){return function(t,o,a){var s,u=n(t),l=i(u),c=r(a,l);if(e&&o!=o){for(;l>c;)if((s=u[c++])!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===o)return e||c||0;return!e&&-1}};t.exports={includes:o(!0),indexOf:o(!1)}}),ea=e((e,t)=>{var n=l(),r=O(),i=f(),o=eo().indexOf,a=H(),s=n([].push);t.exports=function(e,t){var n,u=i(e),l=0,c=[];for(n in u)!r(a,n)&&r(u,n)&&s(c,n);for(;t.length>l;)r(u,n=t[l++])&&(~o(c,n)||s(c,n));return c}}),es=e((e,t)=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]}),eu=e(e=>{var t=ea(),n=es().concat("length","prototype");e.f=Object.getOwnPropertyNames||function(e){return t(e,n)}}),el=e(e=>{e.f=Object.getOwnPropertySymbols}),ec=e((e,t)=>{var n=g(),r=l(),i=eu(),o=el(),a=$(),s=r([].concat);t.exports=n("Reflect","ownKeys")||function(e){var t=i.f(a(e)),n=o.f;return n?s(t,n(e)):t}}),e_=e((e,t)=>{var n=O(),r=ec(),i=U(),o=K();t.exports=function(e,t,a){for(var s=r(t),u=o.f,l=i.f,c=0;c{var n=r(),i=h(),o=/#|\.prototype\./,a=function(e,t){var r=u[s(e)];return r==c||r!=l&&(i(t)?n(t):!!t)},s=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},u=a.data={},l=a.NATIVE="N",c=a.POLYFILL="P";t.exports=a}),ed=e((e,n)=>{var r=t(),i=U().f,o=V(),a=X(),s=M(),u=e_(),l=ep();n.exports=function(e,t){var n,c,_,p,d,f=e.target,m=e.global,h=e.stat;if(n=m?r:h?r[f]||s(f,{}):(r[f]||{}).prototype)for(c in t){if(p=t[c],_=e.dontCallGetSet?(d=i(n,c))&&d.value:n[c],!l(m?c:f+(h?".":"#")+c,e.forced)&&void 0!==_){if(typeof p==typeof _)continue;u(p,_)}(e.sham||_&&_.sham)&&o(p,"sham",!0),a(n,c,p,e)}}}),ef=e(()=>{var e=ed(),n=t();e({global:!0,forced:n.globalThis!==n},{globalThis:n})}),em=e(()=>{ef()}),eh=e((e,t)=>{var n=Z(),r=K();t.exports=function(e,t,i){return i.get&&n(i.get,t,{getter:!0}),i.set&&n(i.set,t,{setter:!0}),r.f(e,t,i)}}),ey=e((e,t)=>{var n=$();t.exports=function(){var e=n(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}}),eg=e(()=>{var e=t(),n=i(),o=eh(),a=ey(),s=r(),u=e.RegExp,l=u.prototype;n&&s(function(){var e=!0;try{u(".","d")}catch{e=!1}var t={},n="",r=e?"dgimsy":"gimsy",i=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},o={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(o.hasIndices="d"),o)i(a,o[a]);return Object.getOwnPropertyDescriptor(l,"flags").get.call(t)!==r||n!==r})&&o(l,"flags",{configurable:!0,get:a})});return e((e,t)=>{em(),eg();var n,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,s=(e,t)=>function(){return e&&(t=(0,e[o(e)[0]])(e=0)),t},u=(e,t)=>function(){return t||(0,e[o(e)[0]])((t={exports:{}}).exports,t),t.exports},l=(e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})},c=(e,t,n,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let u of o(t))a.call(e,u)||u===n||r(e,u,{get:()=>t[u],enumerable:!(s=i(t,u))||s.enumerable});return e},_=e=>c(r({},"__esModule",{value:!0}),e),p=s({""(){n={env:{},argv:[]}}}),d=u({"src/common/parser-create-error.js"(e,t){p(),t.exports=function(e,t){let n=SyntaxError(e+" ("+t.start.line+":"+t.start.column+")");return n.loc=t,n}}}),f=u({"src/utils/try-combinations.js"(e,t){p(),t.exports=function(){let e;for(var t=arguments.length,n=Array(t),r=0;r"u"){var e=new ArrayBuffer(2),t=new Uint8Array(e),n=new Uint16Array(e);if(t[0]=1,t[1]=2,258===n[0])M="BE";else if(513===n[0])M="LE";else throw Error("unable to figure out endianess")}return M}function y(){return"u">typeof globalThis.location?globalThis.location.hostname:""}function g(){return[]}function b(){return 0}function v(){return Number.MAX_VALUE}function x(){return Number.MAX_VALUE}function D(){return[]}function S(){return"Browser"}function T(){return"u">typeof globalThis.navigator?globalThis.navigator.appVersion:""}function E(){}function w(){}function A(){return"javascript"}function C(){return"browser"}function N(){return"/tmp"}l(m,{EOL:()=>I,arch:()=>A,cpus:()=>D,default:()=>j,endianness:()=>h,freemem:()=>v,getNetworkInterfaces:()=>w,hostname:()=>y,loadavg:()=>g,networkInterfaces:()=>E,platform:()=>C,release:()=>T,tmpDir:()=>N,tmpdir:()=>k,totalmem:()=>x,type:()=>S,uptime:()=>b});var M,k,I,j,O=s({"node-modules-polyfills:os"(){p(),j={EOL:I=` `,tmpdir:k=N,tmpDir:N,networkInterfaces:E,getNetworkInterfaces:w,release:T,type:S,cpus:D,totalmem:x,freemem:v,uptime:b,loadavg:g,hostname:y,endianness:h}}}),P=u({"node-modules-polyfills-commonjs:os"(e,t){p();var n=(O(),_(m));if(n&&n.default)for(let e in t.exports=n.default,n)t.exports[e]=n[e];else n&&(t.exports=n)}}),F=u({"node_modules/detect-newline/index.js"(e,t){p();var n=e=>{if("string"!=typeof e)throw TypeError("Expected a string");let t=e.match(/(?:\r?\n)/g)||[];if(0===t.length)return;let n=t.filter(e=>e===`\r `).length,r=t.length-n;return n>r?`\r `:` @@ -171,7 +171,7 @@ ${e}`}}}}),ic=b({"src/language-yaml/loc.js"(e,t){T(),t.exports={locStart:functio `&&n++,1===n&&/\S/.test(e))break;if(2===n)return!0}return!1},isLastDescendantNode:function(e){switch(e.getValue().type){case"tag":case"anchor":case"comment":return!1}let t=e.stack.length;for(let n=1;n *)[^\n\r ]/m);s=e?e.groups.leadingSpace.length:Number.POSITIVE_INFINITY}else s=e.indent-1+r;let u=a.split(` `).map(e=>e.slice(s));if("preserve"===o.proseWrap||"blockLiteral"===e.type)return l(u.map(e=>0===e.length?[]:[e]));return l(u.map(e=>0===e.length?[]:_(e)).reduce((e,t,r)=>0!==r&&u[r-1].length>0&&t.length>0&&!/^\s/.test(t[0])&&!/^\s|\s$/.test(n(e))?[...e.slice(0,-1),[...n(e),...t]]:[...e,t],[]).map(e=>e.reduce((e,t)=>e.length>0&&/\s$/.test(n(e))?[...e.slice(0,-1),n(e)+" "+t]:[...e,t],[])).map(e=>"never"===o.proseWrap?[e.join(" ")]:e));function l(t){if("keep"===e.chomping)return 0===n(t).length?t.slice(0,-1):t;let r=0;for(let e=t.length-1;e>=0&&0===t[e].length;e--)r++;return 0===r?t:r>=2&&!i?t.slice(0,-(r-1)):t.slice(0,-r)}},getFlowScalarLineContents:function(e,t,r){let i=t.split(` `).map((e,t,n)=>0===t&&t===n.length-1?e:0!==t&&t!==n.length-1?e.trim():0===t?e.trimEnd():e.trimStart());return"preserve"===r.proseWrap?i.map(e=>0===e.length?[]:[e]):i.map(e=>0===e.length?[]:_(e)).reduce((t,r,o)=>0!==o&&i[o-1].length>0&&r.length>0&&!("quoteDouble"===e&&n(n(t)).endsWith("\\"))?[...t.slice(0,-1),[...n(t),...r]]:[...t,r],[]).map(e=>"never"===r.proseWrap?[e.join(" ")]:e)},getLastDescendantNode:function e(t){return r(t.children)?e(n(t.children)):t},hasPrettierIgnore:function(e){let t=e.getValue();if("documentBody"===t.type){let t=e.getParentNode();return c(t.head)&&o(n(t.head.endComments))}return a(t)&&o(n(t.leadingComments))},hasLeadingComments:a,hasMiddleComments:s,hasIndicatorComment:u,hasTrailingComment:l,hasEndComments:c}}}),id=b({"src/language-yaml/print-preprocess.js"(e,t){T();var{defineShortcut:n,mapNode:r}=ip();function i(e){switch(e.type){case"document":n(e,"head",()=>e.children[0]),n(e,"body",()=>e.children[1]);break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":n(e,"content",()=>e.children[0]);break;case"mappingItem":case"flowMappingItem":n(e,"key",()=>e.children[0]),n(e,"value",()=>e.children[1])}return e}t.exports=function(e){return r(e,i)}}}),im=b({"src/language-yaml/print/misc.js"(e,t){T();var{builders:{softline:n,align:r}}=$(),{hasEndComments:i,isNextLineEmpty:o,isNode:a}=ip(),s=new WeakMap;function u(e){return i(e)&&!a(e,["documentHead","documentBody","flowMapping","flowSequence"])}t.exports={alignWithSpaces:function(e,t){return r(" ".repeat(e),t)},shouldPrintEndComments:u,printNextEmptyLine:function(e,t){let r=e.getValue(),i=e.stack[0],a;return s.has(i)?a=s.get(i):(a=new Set,s.set(i,a)),!a.has(r.position.end.line)&&(a.add(r.position.end.line),o(r,t)&&!u(e.getParentNode()))?n:""}}}}),ih=b({"src/language-yaml/print/flow-mapping-sequence.js"(e,t){T();var{builders:{ifBreak:n,line:r,softline:i,hardline:o,join:a}}=$(),{isEmptyNode:s,getLast:u,hasEndComments:l}=ip(),{printNextEmptyLine:c,alignWithSpaces:_}=im();function p(e,t,p){let d,f=e.getValue(),m="flowMapping"===f.type,h=i;m&&f.children.length>0&&p.bracketSpacing&&(h=r);let y=u(f.children),g=y&&"flowMappingItem"===y.type&&s(y.key)&&s(y.value);return[m?"{":"[",_(p.tabWidth,[h,(d=e.getValue(),e.map((e,n)=>[t(),n===d.children.length-1?"":[",",r,d.children[n].position.start.line!==d.children[n+1].position.start.line?c(e,p.originalText):""]],"children")),"none"===p.trailingComma?"":n(","),l(f)?[o,a(o,e.map(t,"endComments"))]:""]),g?"":h,m?"}":"]"]}t.exports={printFlowMapping:p,printFlowSequence:p}}}),iy=b({"src/language-yaml/print/mapping-item.js"(e,t){T();var{builders:{conditionalGroup:n,group:r,hardline:i,ifBreak:o,join:a,line:s}}=$(),{hasLeadingComments:u,hasMiddleComments:l,hasTrailingComment:c,hasEndComments:_,isNode:p,isEmptyNode:d,isInlineNode:f}=ip(),{alignWithSpaces:m}=im();function h(e,t){if(!e)return!0;switch(e.type){case"plain":case"quoteSingle":case"quoteDouble":break;case"alias":return!0;default:return!1}if("preserve"===t.proseWrap)return e.position.start.line===e.position.end.line;if(/\\$/m.test(t.originalText.slice(e.position.start.offset,e.position.end.offset)))return!1;switch(t.proseWrap){case"never":return!e.value.includes(` -`);case"always":return!/[\n ]/.test(e.value);default:return!1}}t.exports=function(e,t,y,g,b){let{key:v,value:x}=e,D=d(v),S=d(x);if(D&&S)return": ";let T=g("key"),E=e.key.content&&"alias"===e.key.content.type?" ":"";if(S)return"flowMappingItem"===e.type&&"flowMapping"===t.type?T:"mappingItem"===e.type&&h(v.content,b)&&!c(v.content)&&(!t.tag||"tag:yaml.org,2002:set"!==t.tag.value)?[T,E,":"]:["? ",m(2,T)];let w=g("value");if(D)return[": ",m(2,w)];if(u(x)||!f(v.content))return["? ",m(2,T),i,a("",y.map(g,"value","leadingComments").map(e=>[e,i])),": ",m(2,w)];if(function(e){if(!e)return!0;switch(e.type){case"plain":case"quoteDouble":case"quoteSingle":return e.position.start.line===e.position.end.line;case"alias":return!0;default:return!1}}(v.content)&&!u(v.content)&&!l(v.content)&&!c(v.content)&&!_(v)&&!u(x.content)&&!l(x.content)&&!_(x)&&h(x.content,b))return[T,E,": ",w];let A=Symbol("mappingKey"),C=r([o("? "),r(m(2,T),{id:A})]),N=[i,": ",m(2,w)],M=[E,":"];u(x.content)||_(x)&&x.content&&!p(x.content,["mapping","sequence"])||"mapping"===t.type&&c(v.content)&&f(x.content)||p(x.content,["mapping","sequence"])&&null===x.content.tag&&null===x.content.anchor?M.push(i):x.content&&M.push(s),M.push(w);let k=m(b.tabWidth,M);return!h(v.content,b)||u(v.content)||l(v.content)||_(v)?n([[C,o(N,k,{groupId:A})]]):n([[T,k]])}}}),ig=b({"src/language-yaml/print/block.js"(e,t){T();var{builders:{dedent:n,dedentToRoot:r,fill:i,hardline:o,join:a,line:s,literalline:u,markAsRoot:l},utils:{getDocParts:c}}=$(),{getAncestorCount:_,getBlockValueLineContents:p,hasIndicatorComment:d,isLastDescendantNode:f,isNode:m}=ip(),{alignWithSpaces:h}=im();t.exports=function(e,t,y){let g=e.getValue(),b=_(e,e=>m(e,["sequence","mapping"])),v=f(e),x=["blockFolded"===g.type?">":"|"];null!==g.indent&&x.push(g.indent.toString()),"clip"!==g.chomping&&x.push("keep"===g.chomping?"+":"-"),d(g)&&x.push(" ",t("indicatorComment"));let D=p(g,{parentIndent:b,isLastDescendant:v,options:y}),S=[];for(let[e,t]of D.entries())0===e&&S.push(o),S.push(i(c(a(s,t)))),e!==D.length-1?S.push(0===t.length?o:l(u)):"keep"===g.chomping&&v&&S.push(r(0===t.length?o:u));return null===g.indent?x.push(n(h(y.tabWidth,S))):x.push(r(h(g.indent-1+b,S))),x}}}),ib=b({"src/language-yaml/printer-yaml.js"(e,t){T();var{builders:{breakParent:n,fill:r,group:i,hardline:o,join:a,line:s,lineSuffix:u,literalline:l},utils:{getDocParts:c,replaceTextEndOfLine:_}}=$(),{isPreviousLineEmpty:p}=ep(),{insertPragma:d,isPragma:f}=il(),{locStart:m}=ic(),h=i_(),{getFlowScalarLineContents:y,getLastDescendantNode:g,hasLeadingComments:b,hasMiddleComments:v,hasTrailingComment:x,hasEndComments:D,hasPrettierIgnore:S,isLastDescendantNode:E,isNode:w,isInlineNode:A}=ip(),C=id(),{alignWithSpaces:N,printNextEmptyLine:M,shouldPrintEndComments:k}=im(),{printFlowMapping:I,printFlowSequence:j}=ih(),O=iy(),P=ig();function F(e,t){return x(e)||t&&(t.head.children.length>0||D(t.head))}function L(e,t,n){return a(o,y(e,t,n).map(e=>r(c(a(s,e)))))}t.exports={preprocess:C,embed:h,print:function(e,t,r){let s=e.getValue(),c=[];"mappingValue"!==s.type&&b(s)&&c.push([a(o,e.map(r,"leadingComments")),o]);let{tag:d,anchor:f}=s;d&&c.push(r("tag")),d&&f&&c.push(" "),f&&c.push(r("anchor"));let h="";w(s,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!E(e)&&(h=M(e,t.originalText)),(d||f)&&(w(s,["sequence","mapping"])&&!v(s)?c.push(o):c.push(" ")),v(s)&&c.push([1===s.middleComments.length?"":o,a(o,e.map(r,"middleComments")),o]);let y=e.getParentNode();return S(e)?c.push(_(t.originalText.slice(s.position.start.offset,s.position.end.offset).trimEnd(),l)):c.push(i(function(e,t,n,r,i){switch(e.type){case"root":{let{children:t}=e,r=[];n.each((e,n)=>{let a=t[n],s=t[n+1];0!==n&&r.push(o),r.push(i()),F(a,s)?(r.push(o,"..."),x(a)&&r.push(" ",i("trailingComment"))):s&&!x(s.head)&&r.push(o,"---")},"children");let a=g(e);return w(a,["blockLiteral","blockFolded"])&&"keep"===a.chomping||r.push(o),r}case"document":{let s=t.children[n.getName()+1],u=[];return"head"===(t.children[0]===e&&/---(?:\s|$)/.test(r.originalText.slice(m(e),m(e)+4))||e.head.children.length>0||D(e.head)||x(e.head)?"head":!F(e,s)&&!!s&&"root")&&((e.head.children.length>0||e.head.endComments.length>0)&&u.push(i("head")),x(e.head)?u.push(["---"," ",i(["head","trailingComment"])]):u.push("---")),(e.body.children.length>0||D(e.body))&&u.push(i("body")),a(o,u)}case"documentHead":return a(o,[...n.map(i,"children"),...n.map(i,"endComments")]);case"documentBody":{let{children:t,endComments:r}=e,s="";if(t.length>0&&r.length>0){let t=g(e);w(t,["blockFolded","blockLiteral"])?"keep"!==t.chomping&&(s=[o,o]):s=o}return[a(o,n.map(i,"children")),s,a(o,n.map(i,"endComments"))]}case"directive":return["%",a(" ",[e.name,...e.parameters])];case"comment":return["#",e.value];case"alias":return["*",e.value];case"tag":return r.originalText.slice(e.position.start.offset,e.position.end.offset);case"anchor":return["&",e.value];case"plain":return L(e.type,r.originalText.slice(e.position.start.offset,e.position.end.offset),r);case"quoteDouble":case"quoteSingle":{let t=r.originalText.slice(e.position.start.offset+1,e.position.end.offset-1);if("quoteSingle"===e.type&&t.includes("\\")||"quoteDouble"===e.type&&/\\[^"]/.test(t)){let n="quoteDouble"===e.type?'"':"'";return[n,L(e.type,t,r),n]}if(t.includes('"'))return["'",L(e.type,"quoteDouble"===e.type?t.replace(/\\"/g,'"').replace(/'/g,"'".repeat(2)):t,r),"'"];if(t.includes("'"))return['"',L(e.type,"quoteSingle"===e.type?t.replace(/''/g,"'"):t,r),'"'];let n=r.singleQuote?"'":'"';return[n,L(e.type,t,r),n]}case"blockFolded":case"blockLiteral":return P(n,i,r);case"mapping":case"sequence":return a(o,n.map(i,"children"));case"sequenceItem":return["- ",N(2,e.content?i("content"):"")];case"mappingKey":case"mappingValue":return e.content?i("content"):"";case"mappingItem":case"flowMappingItem":return O(e,t,n,i,r);case"flowMapping":return I(n,i,r);case"flowSequence":return j(n,i,r);case"flowSequenceItem":return i("content");default:throw Error(`Unexpected node type ${e.type}`)}}(s,y,e,t,r))),x(s)&&!w(s,["document","documentHead"])&&c.push(u(["mappingValue"!==s.type||s.content?" ":"","mappingKey"===y.type&&"mapping"===e.getParentNode(2).type&&A(s)?"":n,r("trailingComment")])),k(s)&&c.push(N("sequenceItem"===s.type?2:0,[o,a(o,e.map(e=>[p(t.originalText,e.getValue(),m)?o:"",r()],"endComments"))])),c.push(h),c},massageAstNode:function(e,t){if(w(t))switch(delete t.position,t.type){case"comment":if(f(t.value))return null;break;case"quoteDouble":case"quoteSingle":t.type="quote"}},insertPragma:d}}}),iv=b({"src/language-yaml/options.js"(e,t){T();var n=nZ();t.exports={bracketSpacing:n.bracketSpacing,singleQuote:n.singleQuote,proseWrap:n.proseWrap}}}),ix=b({"src/language-yaml/parsers.js"(){T()}}),iD=b({"node_modules/linguist-languages/data/YAML.json"(e,t){t.exports={name:"YAML",type:"data",color:"#cb171e",tmScope:"source.yaml",aliases:["yml"],extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],filenames:[".clang-format",".clang-tidy",".gemrc","CITATION.cff","glide.lock","yarn.lock"],aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",languageId:407}}}),iS=b({"src/language-yaml/index.js"(e,t){T();var n=tU(),r=ib(),i=iv(),o=ix(),a=[n(iD(),e=>({since:"1.14.0",parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","home-assistant"],filenames:[...e.filenames.filter(e=>"yarn.lock"!==e),".prettierrc",".stylelintrc",".lintstagedrc"]}))];t.exports={languages:a,printers:{yaml:r},options:i,parsers:o}}}),iT=b({"src/languages.js"(e,t){T(),t.exports=[n8(),ry(),rE(),rI(),rV(),iu(),iS()]}});T();var{version:iE}=E(),iw=tR(),{getSupportInfo:iA}=eo(),iC=tB(),iN=iT(),iM=$();function ik(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return function(){for(var n=arguments.length,r=Array(n),i=0;iiI(e,t).formatted,check(e,t){let{formatted:n}=iI(e,t);return n===e},doc:iM,getSupportInfo:ik(iA,0),version:iE,util:iC,__debug:{parse:ik(iw.parse),formatAST:ik(iw.formatAST),formatDoc:ik(iw.formatDoc),printToDoc:ik(iw.printToDoc),printDocToString:ik(iw.printDocToString)}}})()}()},4406:e=>{var t,n,r,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var u=[],l=!1,c=-1;function _(){l&&r&&(l=!1,r.length?u=r.concat(u):c=-1,u.length&&p())}function p(){if(!l){var e=s(_);l=!0;for(var t=u.length;t;){for(r=u,u=[];++c1)for(var n=1;n{e.exports="function"==typeof queueMicrotask?queueMicrotask:e=>Promise.resolve().then(e)},7029:(e,t,n)=>{"use strict";var r=n(1602);t.s=r.createRoot,r.hydrateRoot},1837:(e,t,n)=>{"use strict";/** +`);case"always":return!/[\n ]/.test(e.value);default:return!1}}t.exports=function(e,t,y,g,b){let{key:v,value:x}=e,D=d(v),S=d(x);if(D&&S)return": ";let T=g("key"),E=e.key.content&&"alias"===e.key.content.type?" ":"";if(S)return"flowMappingItem"===e.type&&"flowMapping"===t.type?T:"mappingItem"===e.type&&h(v.content,b)&&!c(v.content)&&(!t.tag||"tag:yaml.org,2002:set"!==t.tag.value)?[T,E,":"]:["? ",m(2,T)];let w=g("value");if(D)return[": ",m(2,w)];if(u(x)||!f(v.content))return["? ",m(2,T),i,a("",y.map(g,"value","leadingComments").map(e=>[e,i])),": ",m(2,w)];if(function(e){if(!e)return!0;switch(e.type){case"plain":case"quoteDouble":case"quoteSingle":return e.position.start.line===e.position.end.line;case"alias":return!0;default:return!1}}(v.content)&&!u(v.content)&&!l(v.content)&&!c(v.content)&&!_(v)&&!u(x.content)&&!l(x.content)&&!_(x)&&h(x.content,b))return[T,E,": ",w];let A=Symbol("mappingKey"),C=r([o("? "),r(m(2,T),{id:A})]),N=[i,": ",m(2,w)],M=[E,":"];u(x.content)||_(x)&&x.content&&!p(x.content,["mapping","sequence"])||"mapping"===t.type&&c(v.content)&&f(x.content)||p(x.content,["mapping","sequence"])&&null===x.content.tag&&null===x.content.anchor?M.push(i):x.content&&M.push(s),M.push(w);let k=m(b.tabWidth,M);return!h(v.content,b)||u(v.content)||l(v.content)||_(v)?n([[C,o(N,k,{groupId:A})]]):n([[T,k]])}}}),ig=b({"src/language-yaml/print/block.js"(e,t){T();var{builders:{dedent:n,dedentToRoot:r,fill:i,hardline:o,join:a,line:s,literalline:u,markAsRoot:l},utils:{getDocParts:c}}=$(),{getAncestorCount:_,getBlockValueLineContents:p,hasIndicatorComment:d,isLastDescendantNode:f,isNode:m}=ip(),{alignWithSpaces:h}=im();t.exports=function(e,t,y){let g=e.getValue(),b=_(e,e=>m(e,["sequence","mapping"])),v=f(e),x=["blockFolded"===g.type?">":"|"];null!==g.indent&&x.push(g.indent.toString()),"clip"!==g.chomping&&x.push("keep"===g.chomping?"+":"-"),d(g)&&x.push(" ",t("indicatorComment"));let D=p(g,{parentIndent:b,isLastDescendant:v,options:y}),S=[];for(let[e,t]of D.entries())0===e&&S.push(o),S.push(i(c(a(s,t)))),e!==D.length-1?S.push(0===t.length?o:l(u)):"keep"===g.chomping&&v&&S.push(r(0===t.length?o:u));return null===g.indent?x.push(n(h(y.tabWidth,S))):x.push(r(h(g.indent-1+b,S))),x}}}),ib=b({"src/language-yaml/printer-yaml.js"(e,t){T();var{builders:{breakParent:n,fill:r,group:i,hardline:o,join:a,line:s,lineSuffix:u,literalline:l},utils:{getDocParts:c,replaceTextEndOfLine:_}}=$(),{isPreviousLineEmpty:p}=ep(),{insertPragma:d,isPragma:f}=il(),{locStart:m}=ic(),h=i_(),{getFlowScalarLineContents:y,getLastDescendantNode:g,hasLeadingComments:b,hasMiddleComments:v,hasTrailingComment:x,hasEndComments:D,hasPrettierIgnore:S,isLastDescendantNode:E,isNode:w,isInlineNode:A}=ip(),C=id(),{alignWithSpaces:N,printNextEmptyLine:M,shouldPrintEndComments:k}=im(),{printFlowMapping:I,printFlowSequence:j}=ih(),O=iy(),P=ig();function F(e,t){return x(e)||t&&(t.head.children.length>0||D(t.head))}function L(e,t,n){return a(o,y(e,t,n).map(e=>r(c(a(s,e)))))}t.exports={preprocess:C,embed:h,print:function(e,t,r){let s=e.getValue(),c=[];"mappingValue"!==s.type&&b(s)&&c.push([a(o,e.map(r,"leadingComments")),o]);let{tag:d,anchor:f}=s;d&&c.push(r("tag")),d&&f&&c.push(" "),f&&c.push(r("anchor"));let h="";w(s,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!E(e)&&(h=M(e,t.originalText)),(d||f)&&(w(s,["sequence","mapping"])&&!v(s)?c.push(o):c.push(" ")),v(s)&&c.push([1===s.middleComments.length?"":o,a(o,e.map(r,"middleComments")),o]);let y=e.getParentNode();return S(e)?c.push(_(t.originalText.slice(s.position.start.offset,s.position.end.offset).trimEnd(),l)):c.push(i(function(e,t,n,r,i){switch(e.type){case"root":{let{children:t}=e,r=[];n.each((e,n)=>{let a=t[n],s=t[n+1];0!==n&&r.push(o),r.push(i()),F(a,s)?(r.push(o,"..."),x(a)&&r.push(" ",i("trailingComment"))):s&&!x(s.head)&&r.push(o,"---")},"children");let a=g(e);return w(a,["blockLiteral","blockFolded"])&&"keep"===a.chomping||r.push(o),r}case"document":{let s=t.children[n.getName()+1],u=[];return"head"===(t.children[0]===e&&/---(?:\s|$)/.test(r.originalText.slice(m(e),m(e)+4))||e.head.children.length>0||D(e.head)||x(e.head)?"head":!F(e,s)&&!!s&&"root")&&((e.head.children.length>0||e.head.endComments.length>0)&&u.push(i("head")),x(e.head)?u.push(["---"," ",i(["head","trailingComment"])]):u.push("---")),(e.body.children.length>0||D(e.body))&&u.push(i("body")),a(o,u)}case"documentHead":return a(o,[...n.map(i,"children"),...n.map(i,"endComments")]);case"documentBody":{let{children:t,endComments:r}=e,s="";if(t.length>0&&r.length>0){let t=g(e);w(t,["blockFolded","blockLiteral"])?"keep"!==t.chomping&&(s=[o,o]):s=o}return[a(o,n.map(i,"children")),s,a(o,n.map(i,"endComments"))]}case"directive":return["%",a(" ",[e.name,...e.parameters])];case"comment":return["#",e.value];case"alias":return["*",e.value];case"tag":return r.originalText.slice(e.position.start.offset,e.position.end.offset);case"anchor":return["&",e.value];case"plain":return L(e.type,r.originalText.slice(e.position.start.offset,e.position.end.offset),r);case"quoteDouble":case"quoteSingle":{let t=r.originalText.slice(e.position.start.offset+1,e.position.end.offset-1);if("quoteSingle"===e.type&&t.includes("\\")||"quoteDouble"===e.type&&/\\[^"]/.test(t)){let n="quoteDouble"===e.type?'"':"'";return[n,L(e.type,t,r),n]}if(t.includes('"'))return["'",L(e.type,"quoteDouble"===e.type?t.replace(/\\"/g,'"').replace(/'/g,"'".repeat(2)):t,r),"'"];if(t.includes("'"))return['"',L(e.type,"quoteSingle"===e.type?t.replace(/''/g,"'"):t,r),'"'];let n=r.singleQuote?"'":'"';return[n,L(e.type,t,r),n]}case"blockFolded":case"blockLiteral":return P(n,i,r);case"mapping":case"sequence":return a(o,n.map(i,"children"));case"sequenceItem":return["- ",N(2,e.content?i("content"):"")];case"mappingKey":case"mappingValue":return e.content?i("content"):"";case"mappingItem":case"flowMappingItem":return O(e,t,n,i,r);case"flowMapping":return I(n,i,r);case"flowSequence":return j(n,i,r);case"flowSequenceItem":return i("content");default:throw Error(`Unexpected node type ${e.type}`)}}(s,y,e,t,r))),x(s)&&!w(s,["document","documentHead"])&&c.push(u(["mappingValue"!==s.type||s.content?" ":"","mappingKey"===y.type&&"mapping"===e.getParentNode(2).type&&A(s)?"":n,r("trailingComment")])),k(s)&&c.push(N("sequenceItem"===s.type?2:0,[o,a(o,e.map(e=>[p(t.originalText,e.getValue(),m)?o:"",r()],"endComments"))])),c.push(h),c},massageAstNode:function(e,t){if(w(t))switch(delete t.position,t.type){case"comment":if(f(t.value))return null;break;case"quoteDouble":case"quoteSingle":t.type="quote"}},insertPragma:d}}}),iv=b({"src/language-yaml/options.js"(e,t){T();var n=nZ();t.exports={bracketSpacing:n.bracketSpacing,singleQuote:n.singleQuote,proseWrap:n.proseWrap}}}),ix=b({"src/language-yaml/parsers.js"(){T()}}),iD=b({"node_modules/linguist-languages/data/YAML.json"(e,t){t.exports={name:"YAML",type:"data",color:"#cb171e",tmScope:"source.yaml",aliases:["yml"],extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],filenames:[".clang-format",".clang-tidy",".gemrc","CITATION.cff","glide.lock","yarn.lock"],aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",languageId:407}}}),iS=b({"src/language-yaml/index.js"(e,t){T();var n=tU(),r=ib(),i=iv(),o=ix(),a=[n(iD(),e=>({since:"1.14.0",parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","home-assistant"],filenames:[...e.filenames.filter(e=>"yarn.lock"!==e),".prettierrc",".stylelintrc",".lintstagedrc"]}))];t.exports={languages:a,printers:{yaml:r},options:i,parsers:o}}}),iT=b({"src/languages.js"(e,t){T(),t.exports=[n8(),ry(),rE(),rI(),rV(),iu(),iS()]}});T();var{version:iE}=E(),iw=tR(),{getSupportInfo:iA}=eo(),iC=tB(),iN=iT(),iM=$();function ik(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return function(){for(var n=arguments.length,r=Array(n),i=0;iiI(e,t).formatted,check(e,t){let{formatted:n}=iI(e,t);return n===e},doc:iM,getSupportInfo:ik(iA,0),version:iE,util:iC,__debug:{parse:ik(iw.parse),formatAST:ik(iw.formatAST),formatDoc:ik(iw.formatDoc),printToDoc:ik(iw.printToDoc),printDocToString:ik(iw.printDocToString)}}})()}()},4406:e=>{var t,n,r,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var u=[],l=!1,c=-1;function _(){l&&r&&(l=!1,r.length?u=r.concat(u):c=-1,u.length&&p())}function p(){if(!l){var e=s(_);l=!0;for(var t=u.length;t;){for(r=u,u=[];++c1)for(var n=1;n{e.exports="function"==typeof queueMicrotask?queueMicrotask:e=>Promise.resolve().then(e)},7029:(e,t,n)=>{"use strict";var r=n(7973);t.s=r.createRoot,r.hydrateRoot},1837:(e,t,n)=>{"use strict";/** * @license React * react-jsx-runtime.production.min.js * @@ -179,4 +179,4 @@ ${e}`}}}}),ic=b({"src/language-yaml/loc.js"(e,t){T(),t.exports={locStart:functio * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var r=n(348),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,n){var r,o={},l=null,c=null;for(r in void 0!==n&&(l=""+n),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(c=t.ref),t)a.call(t,r)&&!u.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:l,ref:c,props:o,_owner:s.current}}t.Fragment=o,t.jsx=l,t.jsxs=l},2322:(e,t,n)=>{"use strict";e.exports=n(1837)},4452:e=>{"use strict";var t={};function n(e,n,r){r||(r=Error);var i=function(e){function t(t,r,i){return e.call(this,"string"==typeof n?n:n(t,r,i))||this}return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e,t}(r);i.prototype.name=r.name,i.prototype.code=e,t[e]=i}function r(e,t){if(!Array.isArray(e))return"of ".concat(t," ").concat(String(e));var n=e.length;return(e=e.map(function(e){return String(e)}),n>2)?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}n("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),n("ERR_INVALID_ARG_TYPE",function(e,t,n){if("string"==typeof t&&(i="not ",t.substr(!o||o<0?0:+o,i.length)===i)?(l="must not be",t=t.replace(/^not /,"")):l="must be",a=" argument",(void 0===s||s>e.length)&&(s=e.length),e.substring(s-a.length,s)===a)c="The ".concat(e," ").concat(l," ").concat(r(t,"type"));else{var i,o,a,s,u,l,c,_=("number"!=typeof u&&(u=0),u+1>e.length||-1===e.indexOf(".",u))?"argument":"property";c='The "'.concat(e,'" ').concat(_," ").concat(l," ").concat(r(t,"type"))}return c+". Received type ".concat(typeof n)},TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},7073:(e,t,n)=>{"use strict";var r=n(4406),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=c;var o=n(8051),a=n(2557);n(1285)(c,o);for(var s=i(a.prototype),u=0;u{"use strict";e.exports=i;var r=n(7640);function i(e){if(!(this instanceof i))return new i(e);r.call(this,e)}n(1285)(i,r),i.prototype._transform=function(e,t,n){n(null,e)}},8051:(e,t,n)=>{"use strict";var r,i,o,a,s,u=n(4406);e.exports=E,E.ReadableState=T,n(2699).EventEmitter;var l=function(e,t){return e.listeners(t).length},c=n(5010),_=n(8834).Buffer,p=(void 0!==n.g?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},d=n(6602);i=d&&d.debuglog?d.debuglog("stream"):function(){};var f=n(6637),m=n(2262),h=n(7605).getHighWaterMark,y=n(4452).q,g=y.ERR_INVALID_ARG_TYPE,b=y.ERR_STREAM_PUSH_AFTER_EOF,v=y.ERR_METHOD_NOT_IMPLEMENTED,x=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(1285)(E,c);var D=m.errorOrDestroy,S=["error","close","destroy","pause","resume"];function T(e,t,i){r=r||n(7073),e=e||{},"boolean"!=typeof i&&(i=t instanceof r),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=h(this,e,"readableHighWaterMark",i),this.buffer=new f,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=!1!==e.emitClose,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&&(o||(o=n(214).s),this.decoder=new o(e.encoding),this.encoding=e.encoding)}function E(e){if(r=r||n(7073),!(this instanceof E))return new E(e);var t=this instanceof r;this._readableState=new T(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),c.call(this)}function w(e,t,n,r,o){i("readableAddChunk",t);var a,s,u,l,c,d=e._readableState;if(null===t)d.reading=!1,function(e,t){if(i("onEofChunk"),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?N(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,M(e)))}}(e,d);else{if(o||(a=d,s=t,_.isBuffer(s)||s instanceof p||"string"==typeof s||void 0===s||a.objectMode||(u=new g("chunk",["string","Buffer","Uint8Array"],s)),c=u),c)D(e,c);else if(d.objectMode||t&&t.length>0){if("string"==typeof t||d.objectMode||Object.getPrototypeOf(t)===_.prototype||(l=t,t=_.from(l)),r)d.endEmitted?D(e,new x):A(e,d,t,!0);else if(d.ended)D(e,new b);else{if(d.destroyed)return!1;d.reading=!1,d.decoder&&!n?(t=d.decoder.write(t),d.objectMode||0!==t.length?A(e,d,t,!1):k(e,d)):A(e,d,t,!1)}}else r||(d.reading=!1,k(e,d))}return!d.ended&&(d.lengtht.highWaterMark){var n;t.highWaterMark=((n=e)>=1073741824?n=1073741824:(n--,n|=n>>>1,n|=n>>>2,n|=n>>>4,n|=n>>>8,n|=n>>>16,n++),n)}return e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0)}function N(e){var t=e._readableState;i("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(i("emitReadable",t.flowing),t.emittedReadable=!0,u.nextTick(M,e))}function M(e){var t=e._readableState;i("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,F(e)}function k(e,t){t.readingMore||(t.readingMore=!0,u.nextTick(I,e,t))}function I(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function O(e){i("readable nexttick read 0"),e.read(0)}function P(e,t){i("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),F(e),t.flowing&&!t.reading&&e.read(0)}function F(e){var t=e._readableState;for(i("flow",t.flowing);t.flowing&&null!==e.read(););}function L(e,t){var n;return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n)}function z(e){var t=e._readableState;i("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,u.nextTick(R,t,e))}function R(e,t){if(i("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function B(e,t){for(var n=0,r=e.length;n=n.highWaterMark:n.length>0)||n.ended))return i("read: emitReadable",n.length,n.ended),0===n.length&&n.ended?z(this):N(this),null;if(0===(e=C(e,n))&&n.ended)return 0===n.length&&z(this),null;var o=n.needReadable;return i("need readable",o),(0===n.length||n.length-e0?L(e,n):null)?(n.needReadable=n.length<=n.highWaterMark,e=0):(n.length-=e,n.awaitDrain=0),0===n.length&&(n.ended||(n.needReadable=!0),r!==e&&n.ended&&z(this)),null!==t&&this.emit("data",t),t},E.prototype._read=function(e){D(this,new v("_read()"))},E.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,i("pipe count=%d opts=%j",r.pipesCount,t);var o=t&&!1===t.end||e===u.stdout||e===u.stderr?m:a;function a(){i("onend"),e.end()}r.endEmitted?u.nextTick(o):n.once("end",o),e.on("unpipe",function t(o,u){i("onunpipe"),o===n&&u&&!1===u.hasUnpiped&&(u.hasUnpiped=!0,i("cleanup"),e.removeListener("close",d),e.removeListener("finish",f),e.removeListener("drain",s),e.removeListener("error",p),e.removeListener("unpipe",t),n.removeListener("end",a),n.removeListener("end",m),n.removeListener("data",_),c=!0,r.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&s())});var s=function(){var e=n._readableState;i("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&l(n,"data")&&(e.flowing=!0,F(n))};e.on("drain",s);var c=!1;function _(t){i("ondata");var o=e.write(t);i("dest.write",o),!1===o&&((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==B(r.pipes,e))&&!c&&(i("false write response, pause",r.awaitDrain),r.awaitDrain++),n.pause())}function p(t){i("onerror",t),m(),e.removeListener("error",p),0===l(e,"error")&&D(e,t)}function d(){e.removeListener("finish",f),m()}function f(){i("onfinish"),e.removeListener("close",d),m()}function m(){i("unpipe"),n.unpipe(e)}return n.on("data",_),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",p),e.once("close",d),e.once("finish",f),e.emit("pipe",n),r.flowing||(i("pipe resume"),n.resume()),e},E.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o0,!1!==r.flowing&&this.resume()):"readable"!==e||r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,i("on readable",r.length,r.reading),r.length?N(this):r.reading||u.nextTick(O,this)),n},E.prototype.addListener=E.prototype.on,E.prototype.removeListener=function(e,t){var n=c.prototype.removeListener.call(this,e,t);return"readable"===e&&u.nextTick(j,this),n},E.prototype.removeAllListeners=function(e){var t=c.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&u.nextTick(j,this),t},E.prototype.resume=function(){var e=this._readableState;return e.flowing||(i("resume"),e.flowing=!e.readableListening,e.resumeScheduled||(e.resumeScheduled=!0,u.nextTick(P,this,e))),e.paused=!1,this},E.prototype.pause=function(){return i("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(i("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},E.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var o in e.on("end",function(){if(i("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(o){i("wrapped data"),n.decoder&&(o=n.decoder.write(o)),(!n.objectMode||null!=o)&&(n.objectMode||o&&o.length)&&(t.push(o)||(r=!0,e.pause()))}),e)void 0===this[o]&&"function"==typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));for(var a=0;a{"use strict";e.exports=c;var r=n(4452).q,i=r.ERR_METHOD_NOT_IMPLEMENTED,o=r.ERR_MULTIPLE_CALLBACK,a=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=r.ERR_TRANSFORM_WITH_LENGTH_0,u=n(7073);function l(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new o);n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length{"use strict";var r,i,o=n(4406);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){(function(e,t,n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(void 0),r=r.next}t.corkedRequestsFree.next=e})(t,e)}}e.exports=E,E.WritableState=T;var s={deprecate:n(5803)},u=n(5010),l=n(8834).Buffer,c=(void 0!==n.g?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},_=n(2262),p=n(7605).getHighWaterMark,d=n(4452).q,f=d.ERR_INVALID_ARG_TYPE,m=d.ERR_METHOD_NOT_IMPLEMENTED,h=d.ERR_MULTIPLE_CALLBACK,y=d.ERR_STREAM_CANNOT_PIPE,g=d.ERR_STREAM_DESTROYED,b=d.ERR_STREAM_NULL_VALUES,v=d.ERR_STREAM_WRITE_AFTER_END,x=d.ERR_UNKNOWN_ENCODING,D=_.errorOrDestroy;function S(){}function T(e,t,i){r=r||n(7073),e=e||{},"boolean"!=typeof i&&(i=t instanceof r),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=p(this,e,"writableHighWaterMark",i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){(function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if("function"!=typeof i)throw new h;if(n.writing=!1,n.writecb=null,n.length-=n.writelen,n.writelen=0,t)--n.pendingcb,r?(o.nextTick(i,t),o.nextTick(k,e,n),e._writableState.errorEmitted=!0,D(e,t)):(i(t),e._writableState.errorEmitted=!0,D(e,t),k(e,n));else{var a=N(n)||e.destroyed;a||n.corked||n.bufferProcessing||!n.bufferedRequest||C(e,n),r?o.nextTick(A,e,n,a,i):A(e,n,a,i)}})(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function E(e){var t=this instanceof(r=r||n(7073));if(!t&&!i.call(E,this))return new E(e);this._writableState=new T(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),u.call(this)}function w(e,t,n,r,i,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new g("write")):n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function A(e,t,n,r){n||0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain")),t.pendingcb--,r(),k(e,t)}function C(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=Array(t.bufferedRequestCount),i=t.corkedRequestsFree;i.entry=n;for(var o=0,s=!0;n;)r[o]=n,n.isBuf||(s=!1),n=n.next,o+=1;r.allBuffers=s,w(e,t,!0,t.length,r,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,l=n.encoding,c=n.callback,_=t.objectMode?1:u.length;if(w(e,t,!1,_,u,l,c),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function N(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function M(e,t){e._final(function(n){t.pendingcb--,n&&D(e,n),t.prefinished=!0,e.emit("prefinish"),k(e,t)})}function k(e,t){var n=N(t);if(n&&(t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,o.nextTick(M,e,t))),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var r=e._readableState;(!r||r.autoDestroy&&r.endEmitted)&&e.destroy()}return n}n(1285)(E,u),T.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(T.prototype,"buffer",{get:s.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(i=Function.prototype[Symbol.hasInstance],Object.defineProperty(E,Symbol.hasInstance,{value:function(e){return!!i.call(this,e)||this===E&&e&&e._writableState instanceof T}})):i=function(e){return e instanceof this},E.prototype.pipe=function(){D(this,new y)},E.prototype.write=function(e,t,n){var r,i,a,s,u,_,p,d=this._writableState,m=!1,h=!d.objectMode&&(r=e,l.isBuffer(r)||r instanceof c);return h&&!l.isBuffer(e)&&(i=e,e=l.from(i)),("function"==typeof t&&(n=t,t=null),h?t="buffer":t||(t=d.defaultEncoding),"function"!=typeof n&&(n=S),d.ending)?(a=n,D(this,s=new v),o.nextTick(a,s)):(h||(u=e,_=n,null===u?p=new b:"string"==typeof u||d.objectMode||(p=new f("chunk",["string","Buffer"],u)),!p||(D(this,p),o.nextTick(_,p),0)))&&(d.pendingcb++,m=function(e,t,n,r,i,o){if(!n){var a,s,u=(a=r,s=i,t.objectMode||!1===t.decodeStrings||"string"!=typeof a||(a=l.from(a,s)),a);r!==u&&(n=!0,i="buffer",r=u)}var c=t.objectMode?1:r.length;t.length+=c;var _=t.length-1))throw new x(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(E.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),E.prototype._write=function(e,t,n){n(new m("_write()"))},E.prototype._writev=null,E.prototype.end=function(e,t,n){var r,i=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||(r=n,i.ending=!0,k(this,i),r&&(i.finished?o.nextTick(r):this.once("finish",r)),i.ended=!0,this.writable=!1),this},Object.defineProperty(E.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),E.prototype.destroy=_.destroy,E.prototype._undestroy=_.undestroy,E.prototype._destroy=function(e,t){t(e)}},1029:(e,t,n)=>{"use strict";var r,i=n(4406);function o(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=n(9885),s=Symbol("lastResolve"),u=Symbol("lastReject"),l=Symbol("error"),c=Symbol("ended"),_=Symbol("lastPromise"),p=Symbol("handlePromise"),d=Symbol("stream");function f(e,t){return{value:e,done:t}}function m(e){var t=e[s];if(null!==t){var n=e[d].read();null!==n&&(e[_]=null,e[s]=null,e[u]=null,t(f(n,!1)))}}function h(e){i.nextTick(m,e)}var y=Object.getPrototypeOf(function(){}),g=Object.setPrototypeOf((o(r={get stream(){return this[d]},next:function(){var e,t,n=this,r=this[l];if(null!==r)return Promise.reject(r);if(this[c])return Promise.resolve(f(void 0,!0));if(this[d].destroyed)return new Promise(function(e,t){i.nextTick(function(){n[l]?t(n[l]):e(f(void 0,!0))})});var o=this[_];if(o)t=new Promise((e=this,function(t,n){o.then(function(){if(e[c]){t(f(void 0,!0));return}e[p](t,n)},n)}));else{var a=this[d].read();if(null!==a)return Promise.resolve(f(a,!1));t=new Promise(this[p])}return this[_]=t,t}},Symbol.asyncIterator,function(){return this}),o(r,"return",function(){var e=this;return new Promise(function(t,n){e[d].destroy(null,function(e){if(e){n(e);return}t(f(void 0,!0))})})}),r),y);e.exports=function(e){var t,n=Object.create(g,(o(t={},d,{value:e,writable:!0}),o(t,s,{value:null,writable:!0}),o(t,u,{value:null,writable:!0}),o(t,l,{value:null,writable:!0}),o(t,c,{value:e._readableState.endEmitted,writable:!0}),o(t,p,{value:function(e,t){var r=n[d].read();r?(n[_]=null,n[s]=null,n[u]=null,e(f(r,!1))):(n[s]=e,n[u]=t)},writable:!0}),t));return n[_]=null,a(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=n[u];null!==t&&(n[_]=null,n[s]=null,n[u]=null,t(e)),n[l]=e;return}var r=n[s];null!==r&&(n[_]=null,n[s]=null,n[u]=null,r(f(void 0,!0))),n[c]=!0}),e.on("readable",h.bind(null,n)),n}},6637:(e,t,n)=>{"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return s.alloc(0);for(var t,n,r=s.allocUnsafe(e>>>0),i=this.head,o=0;i;)t=i.data,n=o,s.prototype.copy.call(t,r,n),o+=i.data.length,i=i.next;return r}},{key:"consume",value:function(e,t){var n;return ei.length?i.length:e;if(o===i.length?r+=i:r+=i.slice(0,e),0==(e-=o)){o===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=s.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(o));break}++r}return this.length-=r,t}},{key:l,value:function(e,t){return u(this,i(i({},t),{},{depth:0,customInspect:!1}))}}],o(n.prototype,e),t&&o(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}()},2262:(e,t,n)=>{"use strict";var r=n(4406);function i(e,t){a(e,t),o(e)}function o(e){(!e._writableState||e._writableState.emitClose)&&(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function a(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.nextTick(a,this,e)):r.nextTick(a,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?n._writableState?n._writableState.errorEmitted?r.nextTick(o,n):(n._writableState.errorEmitted=!0,r.nextTick(i,n,e)):r.nextTick(i,n,e):t?(r.nextTick(o,n),t(e)):r.nextTick(o,n)})),this},undestroy:function(){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)},errorOrDestroy:function(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}}},9885:(e,t,n)=>{"use strict";var r=n(4452).q.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,n,o){if("function"==typeof n)return e(t,null,n);n||(n={}),a=o||i,s=!1,o=function(){if(!s){s=!0;for(var e=arguments.length,t=Array(e),n=0;n{e.exports=function(){throw Error("Readable.from is not available in the browser")}},3495:(e,t,n)=>{"use strict";var r,i=n(4452).q,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function u(e){e()}function l(e,t){return e.pipe(t)}e.exports=function(){for(var e,t,i=arguments.length,c=Array(i),_=0;_0},function(e){if(e)return o(e);_=!0,o()}),f=!1,function(t){if(!_&&!f){if(f=!0,e.setHeader&&"function"==typeof e.abort)return e.abort();if("function"==typeof e.destroy)return e.destroy();o(t||new a("pipe"))}}});return c.reduce(l)}},7605:(e,t,n)=>{"use strict";var r=n(4452).q.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,n,i){var o=null!=t.highWaterMark?t.highWaterMark:i?t[n]:null;if(null!=o){if(!(isFinite(o)&&Math.floor(o)===o)||o<0){var a=i?n:"highWaterMark";throw new r(a,o)}return Math.floor(o)}return e.objectMode?16:16384}}},5010:(e,t,n)=>{e.exports=n(2699).EventEmitter},7525:(e,t,n)=>{(t=e.exports=n(8051)).Stream=t,t.Readable=t,t.Writable=n(2557),t.Duplex=n(7073),t.Transform=n(7640),t.PassThrough=n(5163),t.finished=n(9885),t.pipeline=n(3495)},8146:(e,t,n)=>{"use strict";t.F=void 0;let r=n(7525);class i extends r.Readable{constructor(e){super(),this.bytesRead=0,this.released=!1,this.reader=e.getReader()}async _read(){if(this.released){this.push(null);return}this.pendingRead=this.reader.read();let e=await this.pendingRead;delete this.pendingRead,e.done||this.released?this.push(null):(this.bytesRead+=e.value.length,this.push(e.value))}async waitForReadToComplete(){this.pendingRead&&await this.pendingRead}async close(){await this.syncAndRelease()}async syncAndRelease(){this.released=!0,await this.waitForReadToComplete(),await this.reader.releaseLock()}}t.F=i},7152:(e,t,n)=>{"use strict";var r=n(8834).Buffer;function i(e){return e instanceof r?r.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}e.exports=function(e){if((e=e||{}).circles)return function(e){var t=[],n=[];return e.proto?function e(o){if("object"!=typeof o||null===o)return o;if(o instanceof Date)return new Date(o);if(Array.isArray(o))return r(o,e);if(o instanceof Map)return new Map(r(Array.from(o),e));if(o instanceof Set)return new Set(r(Array.from(o),e));var a={};for(var s in t.push(o),n.push(a),o){var u=o[s];if("object"!=typeof u||null===u)a[s]=u;else if(u instanceof Date)a[s]=new Date(u);else if(u instanceof Map)a[s]=new Map(r(Array.from(u),e));else if(u instanceof Set)a[s]=new Set(r(Array.from(u),e));else if(ArrayBuffer.isView(u))a[s]=i(u);else{var l=t.indexOf(u);-1!==l?a[s]=n[l]:a[s]=e(u)}}return t.pop(),n.pop(),a}:function e(o){if("object"!=typeof o||null===o)return o;if(o instanceof Date)return new Date(o);if(Array.isArray(o))return r(o,e);if(o instanceof Map)return new Map(r(Array.from(o),e));if(o instanceof Set)return new Set(r(Array.from(o),e));var a={};for(var s in t.push(o),n.push(a),o)if(!1!==Object.hasOwnProperty.call(o,s)){var u=o[s];if("object"!=typeof u||null===u)a[s]=u;else if(u instanceof Date)a[s]=new Date(u);else if(u instanceof Map)a[s]=new Map(r(Array.from(u),e));else if(u instanceof Set)a[s]=new Set(r(Array.from(u),e));else if(ArrayBuffer.isView(u))a[s]=i(u);else{var l=t.indexOf(u);-1!==l?a[s]=n[l]:a[s]=e(u)}}return t.pop(),n.pop(),a};function r(e,r){for(var o=Object.keys(e),a=Array(o.length),s=0;s{/*! safe-buffer. MIT License. Feross Aboukhadijeh */var r=n(8834),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,n){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return r.SlowBuffer(e)}},7847:(e,t,n)=>{let r=Symbol("SemVer ANY");class i{static get ANY(){return r}constructor(e,t){if(t=o(t),e instanceof i){if(!!t.loose===e.loose)return e;e=e.value}l("comparator",e=e.trim().split(/\s+/).join(" "),t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===r?this.value="":this.value=this.operator+this.semver.version,l("comp",this)}parse(e){let t=this.options.loose?a[s.COMPARATORLOOSE]:a[s.COMPARATOR],n=e.match(t);if(!n)throw TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new c(n[2],this.options.loose):this.semver=r}toString(){return this.value}test(e){if(l("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"==typeof e)try{e=new c(e,this.options)}catch(e){return!1}return u(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof i))throw TypeError("a Comparator is required");return""===this.operator?""===this.value||new _(e.value,t).test(this.value):""===e.operator?""===e.value||new _(this.value,t).test(e.semver):!((t=o(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||u(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||u(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">"))}}e.exports=i;let o=n(1388),{safeRe:a,t:s}=n(4808),u=n(8117),l=n(952),c=n(2435),_=n(6843)},6843:(e,t,n)=>{class r{constructor(e,t){if(t=a(t),e instanceof r){if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;return new r(e.raw,t)}if(e instanceof s)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!y(e[0])),0===this.set.length)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(1===e.length&&g(e[0])){this.set=[e];break}}}this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){let t=(this.options.includePrerelease&&m)|(this.options.loose&&h),n=t+":"+e,r=o.get(n);if(r)return r;let i=this.options.loose,a=i?c[_.HYPHENRANGELOOSE]:c[_.HYPHENRANGE];u("hyphen replace",e=e.replace(a,M(this.options.includePrerelease))),u("comparator trim",e=e.replace(c[_.COMPARATORTRIM],p)),u("tilde trim",e=e.replace(c[_.TILDETRIM],d)),u("caret trim",e=e.replace(c[_.CARETTRIM],f));let l=e.split(" ").map(e=>v(e,this.options)).join(" ").split(/\s+/).map(e=>N(e,this.options));i&&(l=l.filter(e=>(u("loose invalid filter",e,this.options),!!e.match(c[_.COMPARATORLOOSE])))),u("range list",l);let g=new Map,b=l.map(e=>new s(e,this.options));for(let e of b){if(y(e))return[e];g.set(e.value,e)}g.size>1&&g.has("")&&g.delete("");let x=[...g.values()];return o.set(n,x),x}intersects(e,t){if(!(e instanceof r))throw TypeError("a Range is required");return this.set.some(n=>b(n,t)&&e.set.some(e=>b(e,t)&&n.every(n=>e.every(e=>n.intersects(e,t)))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new l(e,this.options)}catch(e){return!1}for(let t=0;t"<0.0.0-0"===e.value,g=e=>""===e.value,b=(e,t)=>{let n=!0,r=e.slice(),i=r.pop();for(;n&&r.length;)n=r.every(e=>i.intersects(e,t)),i=r.pop();return n},v=(e,t)=>(u("comp",e,t),u("caret",e=T(e,t)),u("tildes",e=D(e,t)),u("xrange",e=w(e,t)),u("stars",e=C(e,t)),e),x=e=>!e||"x"===e.toLowerCase()||"*"===e,D=(e,t)=>e.trim().split(/\s+/).map(e=>S(e,t)).join(" "),S=(e,t)=>{let n=t.loose?c[_.TILDELOOSE]:c[_.TILDE];return e.replace(n,(t,n,r,i,o)=>{let a;return u("tilde",e,t,n,r,i,o),x(n)?a="":x(r)?a=`>=${n}.0.0 <${+n+1}.0.0-0`:x(i)?a=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:o?(u("replaceTilde pr",o),a=`>=${n}.${r}.${i}-${o} <${n}.${+r+1}.0-0`):a=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,u("tilde return",a),a})},T=(e,t)=>e.trim().split(/\s+/).map(e=>E(e,t)).join(" "),E=(e,t)=>{u("caret",e,t);let n=t.loose?c[_.CARETLOOSE]:c[_.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,(t,n,i,o,a)=>{let s;return u("caret",e,t,n,i,o,a),x(n)?s="":x(i)?s=`>=${n}.0.0${r} <${+n+1}.0.0-0`:x(o)?s="0"===n?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:a?(u("replaceCaret pr",a),s="0"===n?"0"===i?`>=${n}.${i}.${o}-${a} <${n}.${i}.${+o+1}-0`:`>=${n}.${i}.${o}-${a} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${o}-${a} <${+n+1}.0.0-0`):(u("no pr"),s="0"===n?"0"===i?`>=${n}.${i}.${o}${r} <${n}.${i}.${+o+1}-0`:`>=${n}.${i}.${o}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${o} <${+n+1}.0.0-0`),u("caret return",s),s})},w=(e,t)=>(u("replaceXRanges",e,t),e.split(/\s+/).map(e=>A(e,t)).join(" ")),A=(e,t)=>{e=e.trim();let n=t.loose?c[_.XRANGELOOSE]:c[_.XRANGE];return e.replace(n,(n,r,i,o,a,s)=>{u("xRange",e,n,r,i,o,a,s);let l=x(i),c=l||x(o),_=c||x(a);return"="===r&&_&&(r=""),s=t.includePrerelease?"-0":"",l?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&_?(c&&(o=0),a=0,">"===r?(r=">=",c?(i=+i+1,o=0):o=+o+1,a=0):"<="===r&&(r="<",c?i=+i+1:o=+o+1),"<"===r&&(s="-0"),n=`${r+i}.${o}.${a}${s}`):c?n=`>=${i}.0.0${s} <${+i+1}.0.0-0`:_&&(n=`>=${i}.${o}.0${s} <${i}.${+o+1}.0-0`),u("xRange return",n),n})},C=(e,t)=>(u("replaceStars",e,t),e.trim().replace(c[_.STAR],"")),N=(e,t)=>(u("replaceGTE0",e,t),e.trim().replace(c[t.includePrerelease?_.GTE0PRE:_.GTE0],"")),M=e=>(t,n,r,i,o,a,s,u,l,c,_,p,d)=>`${n=x(r)?"":x(i)?`>=${r}.0.0${e?"-0":""}`:x(o)?`>=${r}.${i}.0${e?"-0":""}`:a?`>=${n}`:`>=${n}${e?"-0":""}`} ${u=x(l)?"":x(c)?`<${+l+1}.0.0-0`:x(_)?`<${l}.${+c+1}.0-0`:p?`<=${l}.${c}.${_}-${p}`:e?`<${l}.${c}.${+_+1}-0`:`<=${u}`}`.trim(),k=(e,t,n)=>{for(let n=0;n0){let r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}},2435:(e,t,n)=>{let r=n(952),{MAX_LENGTH:i,MAX_SAFE_INTEGER:o}=n(5558),{safeRe:a,t:s}=n(4808),u=n(1388),{compareIdentifiers:l}=n(4935);class c{constructor(e,t){if(t=u(t),e instanceof c){if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>i)throw TypeError(`version is longer than ${i} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let n=e.trim().match(t.loose?a[s.LOOSE]:a[s.FULL]);if(!n)throw TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>o||this.major<0)throw TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===l(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=c},6694:(e,t,n)=>{let r=n(9943);e.exports=(e,t)=>{let n=r(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}},8117:(e,t,n)=>{let r=n(3276),i=n(7893),o=n(6379),a=n(8463),s=n(1897),u=n(506);e.exports=(e,t,n,l)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return r(e,n,l);case"!=":return i(e,n,l);case">":return o(e,n,l);case">=":return a(e,n,l);case"<":return s(e,n,l);case"<=":return u(e,n,l);default:throw TypeError(`Invalid operator: ${t}`)}}},8686:(e,t,n)=>{let r=n(2435),i=n(9943),{safeRe:o,t:a}=n(4808);e.exports=(e,t)=>{if(e instanceof r)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let n=null;if((t=t||{}).rtl){let t;for(;(t=o[a.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&t.index+t[0].length===n.index+n[0].length||(n=t),o[a.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;o[a.COERCERTL].lastIndex=-1}else n=e.match(o[a.COERCE]);return null===n?null:i(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)}},5914:(e,t,n)=>{let r=n(2435);e.exports=(e,t,n)=>{let i=new r(e,n),o=new r(t,n);return i.compare(o)||i.compareBuild(o)}},5404:(e,t,n)=>{let r=n(2271);e.exports=(e,t)=>r(e,t,!0)},2271:(e,t,n)=>{let r=n(2435);e.exports=(e,t,n)=>new r(e,n).compare(new r(t,n))},6007:(e,t,n)=>{let r=n(9943);e.exports=(e,t)=>{let n=r(e,null,!0),i=r(t,null,!0),o=n.compare(i);if(0===o)return null;let a=o>0,s=a?n:i,u=a?i:n,l=!!s.prerelease.length,c=!!u.prerelease.length;if(c&&!l)return u.patch||u.minor?s.patch?"patch":s.minor?"minor":"major":"major";let _=l?"pre":"";return n.major!==i.major?_+"major":n.minor!==i.minor?_+"minor":n.patch!==i.patch?_+"patch":"prerelease"}},3276:(e,t,n)=>{let r=n(2271);e.exports=(e,t,n)=>0===r(e,t,n)},6379:(e,t,n)=>{let r=n(2271);e.exports=(e,t,n)=>r(e,t,n)>0},8463:(e,t,n)=>{let r=n(2271);e.exports=(e,t,n)=>r(e,t,n)>=0},6360:(e,t,n)=>{let r=n(2435);e.exports=(e,t,n,i,o)=>{"string"==typeof n&&(o=i,i=n,n=void 0);try{return new r(e instanceof r?e.version:e,n).inc(t,i,o).version}catch(e){return null}}},1897:(e,t,n)=>{let r=n(2271);e.exports=(e,t,n)=>0>r(e,t,n)},506:(e,t,n)=>{let r=n(2271);e.exports=(e,t,n)=>0>=r(e,t,n)},4551:(e,t,n)=>{let r=n(2435);e.exports=(e,t)=>new r(e,t).major},469:(e,t,n)=>{let r=n(2435);e.exports=(e,t)=>new r(e,t).minor},7893:(e,t,n)=>{let r=n(2271);e.exports=(e,t,n)=>0!==r(e,t,n)},9943:(e,t,n)=>{let r=n(2435);e.exports=(e,t,n=!1)=>{if(e instanceof r)return e;try{return new r(e,t)}catch(e){if(!n)return null;throw e}}},4250:(e,t,n)=>{let r=n(2435);e.exports=(e,t)=>new r(e,t).patch},8204:(e,t,n)=>{let r=n(9943);e.exports=(e,t)=>{let n=r(e,t);return n&&n.prerelease.length?n.prerelease:null}},733:(e,t,n)=>{let r=n(2271);e.exports=(e,t,n)=>r(t,e,n)},2961:(e,t,n)=>{let r=n(5914);e.exports=(e,t)=>e.sort((e,n)=>r(n,e,t))},9844:(e,t,n)=>{let r=n(6843);e.exports=(e,t,n)=>{try{t=new r(t,n)}catch(e){return!1}return t.test(e)}},1116:(e,t,n)=>{let r=n(5914);e.exports=(e,t)=>e.sort((e,n)=>r(e,n,t))},7230:(e,t,n)=>{let r=n(9943);e.exports=(e,t)=>{let n=r(e,t);return n?n.version:null}},7699:(e,t,n)=>{let r=n(4808),i=n(5558),o=n(2435),a=n(4935),s=n(9943),u=n(7230),l=n(6694),c=n(6360),_=n(6007),p=n(4551),d=n(469),f=n(4250),m=n(8204),h=n(2271),y=n(733),g=n(5404),b=n(5914),v=n(1116),x=n(2961),D=n(6379),S=n(1897),T=n(3276),E=n(7893),w=n(8463),A=n(506),C=n(8117),N=n(8686),M=n(7847),k=n(6843),I=n(9844),j=n(8865),O=n(3727),P=n(4338),F=n(1542),L=n(6240),z=n(9106),R=n(995),B=n(7805),U=n(2013),J=n(1338),$=n(3122);e.exports={parse:s,valid:u,clean:l,inc:c,diff:_,major:p,minor:d,patch:f,prerelease:m,compare:h,rcompare:y,compareLoose:g,compareBuild:b,sort:v,rsort:x,gt:D,lt:S,eq:T,neq:E,gte:w,lte:A,cmp:C,coerce:N,Comparator:M,Range:k,satisfies:I,toComparators:j,maxSatisfying:O,minSatisfying:P,minVersion:F,validRange:L,outside:z,gtr:R,ltr:B,intersects:U,simplifyRange:J,subset:$,SemVer:o,re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:i.SEMVER_SPEC_VERSION,RELEASE_TYPES:i.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}},5558:e=>{let t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},952:(e,t,n)=>{var r=n(4406);let i="object"==typeof r&&r.env&&r.env.NODE_DEBUG&&/\bsemver\b/i.test(r.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=i},4935:e=>{let t=/^[0-9]+$/,n=(e,n)=>{let r=t.test(e),i=t.test(n);return r&&i&&(e=+e,n=+n),e===n?0:r&&!i?-1:i&&!r?1:en(t,e)}},1388:e=>{let t=Object.freeze({loose:!0}),n=Object.freeze({});e.exports=e=>e?"object"!=typeof e?t:e:n},4808:(e,t,n)=>{let{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:o}=n(5558),a=n(952);t=e.exports={};let s=t.re=[],u=t.safeRe=[],l=t.src=[],c=t.t={},_=0,p="[a-zA-Z0-9-]",d=[["\\s",1],["\\d",o],[p,i]],f=e=>{for(let[t,n]of d)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},m=(e,t,n)=>{let r=f(t),i=_++;a(e,i,t),c[e]=i,l[i]=t,s[i]=new RegExp(t,n?"g":void 0),u[i]=new RegExp(r,n?"g":void 0)};m("NUMERICIDENTIFIER","0|[1-9]\\d*"),m("NUMERICIDENTIFIERLOOSE","\\d+"),m("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),m("MAINVERSION",`(${l[c.NUMERICIDENTIFIER]})\\.(${l[c.NUMERICIDENTIFIER]})\\.(${l[c.NUMERICIDENTIFIER]})`),m("MAINVERSIONLOOSE",`(${l[c.NUMERICIDENTIFIERLOOSE]})\\.(${l[c.NUMERICIDENTIFIERLOOSE]})\\.(${l[c.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASEIDENTIFIER",`(?:${l[c.NUMERICIDENTIFIER]}|${l[c.NONNUMERICIDENTIFIER]})`),m("PRERELEASEIDENTIFIERLOOSE",`(?:${l[c.NUMERICIDENTIFIERLOOSE]}|${l[c.NONNUMERICIDENTIFIER]})`),m("PRERELEASE",`(?:-(${l[c.PRERELEASEIDENTIFIER]}(?:\\.${l[c.PRERELEASEIDENTIFIER]})*))`),m("PRERELEASELOOSE",`(?:-?(${l[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[c.PRERELEASEIDENTIFIERLOOSE]})*))`),m("BUILDIDENTIFIER",`${p}+`),m("BUILD",`(?:\\+(${l[c.BUILDIDENTIFIER]}(?:\\.${l[c.BUILDIDENTIFIER]})*))`),m("FULLPLAIN",`v?${l[c.MAINVERSION]}${l[c.PRERELEASE]}?${l[c.BUILD]}?`),m("FULL",`^${l[c.FULLPLAIN]}$`),m("LOOSEPLAIN",`[v=\\s]*${l[c.MAINVERSIONLOOSE]}${l[c.PRERELEASELOOSE]}?${l[c.BUILD]}?`),m("LOOSE",`^${l[c.LOOSEPLAIN]}$`),m("GTLT","((?:<|>)?=?)"),m("XRANGEIDENTIFIERLOOSE",`${l[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),m("XRANGEIDENTIFIER",`${l[c.NUMERICIDENTIFIER]}|x|X|\\*`),m("XRANGEPLAIN",`[v=\\s]*(${l[c.XRANGEIDENTIFIER]})(?:\\.(${l[c.XRANGEIDENTIFIER]})(?:\\.(${l[c.XRANGEIDENTIFIER]})(?:${l[c.PRERELEASE]})?${l[c.BUILD]}?)?)?`),m("XRANGEPLAINLOOSE",`[v=\\s]*(${l[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})(?:${l[c.PRERELEASELOOSE]})?${l[c.BUILD]}?)?)?`),m("XRANGE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAIN]}$`),m("XRANGELOOSE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAINLOOSE]}$`),m("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),m("COERCERTL",l[c.COERCE],!0),m("LONETILDE","(?:~>?)"),m("TILDETRIM",`(\\s*)${l[c.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",m("TILDE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAIN]}$`),m("TILDELOOSE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAINLOOSE]}$`),m("LONECARET","(?:\\^)"),m("CARETTRIM",`(\\s*)${l[c.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",m("CARET",`^${l[c.LONECARET]}${l[c.XRANGEPLAIN]}$`),m("CARETLOOSE",`^${l[c.LONECARET]}${l[c.XRANGEPLAINLOOSE]}$`),m("COMPARATORLOOSE",`^${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]})$|^$`),m("COMPARATOR",`^${l[c.GTLT]}\\s*(${l[c.FULLPLAIN]})$|^$`),m("COMPARATORTRIM",`(\\s*)${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]}|${l[c.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",m("HYPHENRANGE",`^\\s*(${l[c.XRANGEPLAIN]})\\s+-\\s+(${l[c.XRANGEPLAIN]})\\s*$`),m("HYPHENRANGELOOSE",`^\\s*(${l[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[c.XRANGEPLAINLOOSE]})\\s*$`),m("STAR","(<|>)?=?\\s*\\*"),m("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),m("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},293:(e,t,n)=>{"use strict";let r=n(8006),i=Symbol("max"),o=Symbol("length"),a=Symbol("lengthCalculator"),s=Symbol("allowStale"),u=Symbol("maxAge"),l=Symbol("dispose"),c=Symbol("noDisposeOnSet"),_=Symbol("lruList"),p=Symbol("cache"),d=Symbol("updateAgeOnGet"),f=()=>1,m=(e,t,n)=>{let r=e[p].get(t);if(r){let t=r.value;if(h(e,t)){if(g(e,r),!e[s])return}else n&&(e[d]&&(r.value.now=Date.now()),e[_].unshiftNode(r));return t.value}},h=(e,t)=>{if(!t||!t.maxAge&&!e[u])return!1;let n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[u]&&n>e[u]},y=e=>{if(e[o]>e[i])for(let t=e[_].tail;e[o]>e[i]&&null!==t;){let n=t.prev;g(e,t),t=n}},g=(e,t)=>{if(t){let n=t.value;e[l]&&e[l](n.key,n.value),e[o]-=n.length,e[p].delete(n.key),e[_].removeNode(t)}};class b{constructor(e,t,n,r,i){this.key=e,this.value=t,this.length=n,this.now=r,this.maxAge=i||0}}let v=(e,t,n,r)=>{let i=n.value;h(e,i)&&(g(e,n),e[s]||(i=void 0)),i&&t.call(r,i.value,i.key,e)};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw TypeError("max must be a non-negative number");this[i]=e.max||1/0;let t=e.length||f;if(this[a]="function"!=typeof t?f:t,this[s]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw TypeError("maxAge must be a number");this[u]=e.maxAge||0,this[l]=e.dispose,this[c]=e.noDisposeOnSet||!1,this[d]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw TypeError("max must be a non-negative number");this[i]=e||1/0,y(this)}get max(){return this[i]}set allowStale(e){this[s]=!!e}get allowStale(){return this[s]}set maxAge(e){if("number"!=typeof e)throw TypeError("maxAge must be a non-negative number");this[u]=e,y(this)}get maxAge(){return this[u]}set lengthCalculator(e){"function"!=typeof e&&(e=f),e!==this[a]&&(this[a]=e,this[o]=0,this[_].forEach(e=>{e.length=this[a](e.value,e.key),this[o]+=e.length})),y(this)}get lengthCalculator(){return this[a]}get length(){return this[o]}get itemCount(){return this[_].length}rforEach(e,t){t=t||this;for(let n=this[_].tail;null!==n;){let r=n.prev;v(this,e,n,t),n=r}}forEach(e,t){t=t||this;for(let n=this[_].head;null!==n;){let r=n.next;v(this,e,n,t),n=r}}keys(){return this[_].toArray().map(e=>e.key)}values(){return this[_].toArray().map(e=>e.value)}reset(){this[l]&&this[_]&&this[_].length&&this[_].forEach(e=>this[l](e.key,e.value)),this[p]=new Map,this[_]=new r,this[o]=0}dump(){return this[_].map(e=>!h(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[_]}set(e,t,n){if((n=n||this[u])&&"number"!=typeof n)throw TypeError("maxAge must be a number");let r=n?Date.now():0,s=this[a](t,e);if(this[p].has(e)){if(s>this[i])return g(this,this[p].get(e)),!1;let a=this[p].get(e),u=a.value;return this[l]&&!this[c]&&this[l](e,u.value),u.now=r,u.maxAge=n,u.value=t,this[o]+=s-u.length,u.length=s,this.get(e),y(this),!0}let d=new b(e,t,s,r,n);return d.length>this[i]?(this[l]&&this[l](e,t),!1):(this[o]+=d.length,this[_].unshift(d),this[p].set(e,this[_].head),y(this),!0)}has(e){if(!this[p].has(e))return!1;let t=this[p].get(e).value;return!h(this,t)}get(e){return m(this,e,!0)}peek(e){return m(this,e,!1)}pop(){let e=this[_].tail;return e?(g(this,e),e.value):null}del(e){g(this,this[p].get(e))}load(e){this.reset();let t=Date.now();for(let n=e.length-1;n>=0;n--){let r=e[n],i=r.e||0;if(0===i)this.set(r.k,r.v);else{let e=i-t;e>0&&this.set(r.k,r.v,e)}}}prune(){this[p].forEach((e,t)=>m(this,t,!1))}}},995:(e,t,n)=>{let r=n(9106);e.exports=(e,t,n)=>r(e,t,">",n)},2013:(e,t,n)=>{let r=n(6843);e.exports=(e,t,n)=>(e=new r(e,n),t=new r(t,n),e.intersects(t,n))},7805:(e,t,n)=>{let r=n(9106);e.exports=(e,t,n)=>r(e,t,"<",n)},3727:(e,t,n)=>{let r=n(2435),i=n(6843);e.exports=(e,t,n)=>{let o=null,a=null,s=null;try{s=new i(t,n)}catch(e){return null}return e.forEach(e=>{s.test(e)&&(!o||-1===a.compare(e))&&(o=e,a=new r(o,n))}),o}},4338:(e,t,n)=>{let r=n(2435),i=n(6843);e.exports=(e,t,n)=>{let o=null,a=null,s=null;try{s=new i(t,n)}catch(e){return null}return e.forEach(e=>{s.test(e)&&(!o||1===a.compare(e))&&(o=e,a=new r(o,n))}),o}},1542:(e,t,n)=>{let r=n(2435),i=n(6843),o=n(6379);e.exports=(e,t)=>{e=new i(e,t);let n=new r("0.0.0");if(e.test(n)||(n=new r("0.0.0-0"),e.test(n)))return n;n=null;for(let t=0;t{let t=new r(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!a||o(t,a))&&(a=t);break;case"<":case"<=":break;default:throw Error(`Unexpected operation: ${e.operator}`)}}),a&&(!n||o(n,a))&&(n=a)}return n&&e.test(n)?n:null}},9106:(e,t,n)=>{let r=n(2435),i=n(7847),{ANY:o}=i,a=n(6843),s=n(9844),u=n(6379),l=n(1897),c=n(506),_=n(8463);e.exports=(e,t,n,p)=>{let d,f,m,h,y;switch(e=new r(e,p),t=new a(t,p),n){case">":d=u,f=c,m=l,h=">",y=">=";break;case"<":d=l,f=_,m=u,h="<",y="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(s(e,t,p))return!1;for(let n=0;n{e.semver===o&&(e=new i(">=0.0.0")),a=a||e,s=s||e,d(e.semver,a.semver,p)?a=e:m(e.semver,s.semver,p)&&(s=e)}),a.operator===h||a.operator===y||(!s.operator||s.operator===h)&&f(e,s.semver)||s.operator===y&&m(e,s.semver))return!1}return!0}},1338:(e,t,n)=>{let r=n(9844),i=n(2271);e.exports=(e,t,n)=>{let o=[],a=null,s=null,u=e.sort((e,t)=>i(e,t,n));for(let e of u){let i=r(e,t,n);i?(s=e,a||(a=e)):(s&&o.push([a,s]),s=null,a=null)}a&&o.push([a,null]);let l=[];for(let[e,t]of o)e===t?l.push(e):t||e!==u[0]?t?e===u[0]?l.push(`<=${t}`):l.push(`${e} - ${t}`):l.push(`>=${e}`):l.push("*");let c=l.join(" || "),_="string"==typeof t.raw?t.raw:String(t);return c.length<_.length?c:t}},3122:(e,t,n)=>{let r=n(6843),i=n(7847),{ANY:o}=i,a=n(9844),s=n(2271),u=[new i(">=0.0.0-0")],l=[new i(">=0.0.0")],c=(e,t,n)=>{let r,i,c,d,f,m,h;if(e===t)return!0;if(1===e.length&&e[0].semver===o){if(1===t.length&&t[0].semver===o)return!0;e=n.includePrerelease?u:l}if(1===t.length&&t[0].semver===o){if(n.includePrerelease)return!0;t=l}let y=new Set;for(let t of e)">"===t.operator||">="===t.operator?r=_(r,t,n):"<"===t.operator||"<="===t.operator?i=p(i,t,n):y.add(t.semver);if(y.size>1||r&&i&&((c=s(r.semver,i.semver,n))>0||0===c&&(">="!==r.operator||"<="!==i.operator)))return null;for(let e of y){if(r&&!a(e,String(r),n)||i&&!a(e,String(i),n))return null;for(let r of t)if(!a(e,String(r),n))return!1;return!0}let g=!!i&&!n.includePrerelease&&!!i.semver.prerelease.length&&i.semver,b=!!r&&!n.includePrerelease&&!!r.semver.prerelease.length&&r.semver;for(let e of(g&&1===g.prerelease.length&&"<"===i.operator&&0===g.prerelease[0]&&(g=!1),t)){if(h=h||">"===e.operator||">="===e.operator,m=m||"<"===e.operator||"<="===e.operator,r){if(b&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===b.major&&e.semver.minor===b.minor&&e.semver.patch===b.patch&&(b=!1),">"===e.operator||">="===e.operator){if((d=_(r,e,n))===e&&d!==r)return!1}else if(">="===r.operator&&!a(r.semver,String(e),n))return!1}if(i){if(g&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===g.major&&e.semver.minor===g.minor&&e.semver.patch===g.patch&&(g=!1),"<"===e.operator||"<="===e.operator){if((f=p(i,e,n))===e&&f!==i)return!1}else if("<="===i.operator&&!a(i.semver,String(e),n))return!1}if(!e.operator&&(i||r)&&0!==c)return!1}return(!r||!m||!!i||0===c)&&(!i||!h||!!r||0===c)&&!b&&!g},_=(e,t,n)=>{if(!e)return t;let r=s(e.semver,t.semver,n);return r>0?e:r<0?t:">"===t.operator&&">="===e.operator?t:e},p=(e,t,n)=>{if(!e)return t;let r=s(e.semver,t.semver,n);return r<0?e:r>0?t:"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,n={})=>{if(e===t)return!0;e=new r(e,n),t=new r(t,n);let i=!1;r:for(let r of e.set){for(let e of t.set){let t=c(r,e,n);if(i=i||null!==t,t)continue r}if(i)return!1}return!0}},8865:(e,t,n)=>{let r=n(6843);e.exports=(e,t)=>new r(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "))},6240:(e,t,n)=>{let r=n(6843);e.exports=(e,t)=>{try{return new r(e,t).range||"*"}catch(e){return null}}},4851:(e,t,n)=>{e.exports=i;var r=n(2699).EventEmitter;function i(){r.call(this)}n(1285)(i,r),i.Readable=n(8051),i.Writable=n(2557),i.Duplex=n(7073),i.Transform=n(7640),i.PassThrough=n(5163),i.finished=n(9885),i.pipeline=n(3495),i.Stream=i,i.prototype.pipe=function(e,t){var n=this;function i(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function o(){n.readable&&n.resume&&n.resume()}n.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",u));var a=!1;function s(){a||(a=!0,e.end())}function u(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function l(e){if(c(),0===r.listenerCount(this,"error"))throw e}function c(){n.removeListener("data",i),e.removeListener("drain",o),n.removeListener("end",s),n.removeListener("close",u),n.removeListener("error",l),e.removeListener("error",l),n.removeListener("end",c),n.removeListener("close",c),e.removeListener("close",c)}return n.on("error",l),e.on("error",l),n.on("end",c),n.on("close",c),e.on("close",c),e.emit("pipe",n),e}},6871:(e,t,n)=>{let{EventEmitter:r}=n(2699),i=Error("Stream was destroyed"),o=Error("Premature close"),a=n(281),s=n(2865),u=16809999,l=17423,c=16527,_=1167,p=12431,d=82975,f=32879,m=71303183,h=3276815,y=1179663,g=72482831,b=17563663,v=Symbol.asyncIterator||Symbol("asyncIterator");class x{constructor(e,{highWaterMark:t=16384,map:n=null,mapWritable:r,byteLength:i,byteLengthWritable:o}={}){this.stream=e,this.queue=new s,this.highWaterMark=t,this.buffered=0,this.error=null,this.pipeline=null,this.drains=null,this.byteLength=o||i||J,this.map=r||n,this.afterWrite=C.bind(this),this.afterUpdateNextTick=k.bind(this)}get ended(){return(4194304&this.stream._duplexState)!=0}push(e){return(null!==this.map&&(e=this.map(e)),this.buffered+=this.byteLength(e),this.queue.push(e),this.buffered0;)t.push(this.shift());for(let e=0;e0;)r.drains.shift().resolve(!1);null!==r.pipeline&&r.pipeline.done(t,e)}}function C(e){let t=this.stream;e&&t.destroy(e),t._duplexState&=100532223,null!==this.drains&&function(e){for(let t=0;t=e._readableState.highWaterMark}static isPaused(e){return(256&e._duplexState)==0}[v](){let e=this,t=null,n=null,r=null;return this.on("error",e=>{t=e}),this.on("readable",function(){null!==n&&o(e.read())}),this.on("close",function(){null!==n&&o(null)}),{[v](){return this},next:()=>new Promise(function(t,i){n=t,r=i;let a=e.read();null!==a?o(a):(8&e._duplexState)!=0&&o(null)}),return:()=>a(null),throw:e=>a(e)};function o(o){null!==r&&(t?r(t):null===o&&(16384&e._duplexState)==0?r(i):n({value:o,done:null===o}),r=n=null)}function a(t){return e.destroy(t),new Promise((n,r)=>{if(8&e._duplexState)return n({value:void 0,done:!0});e.once("close",function(){t?r(t):n({value:void 0,done:!0})})})}}}class F extends P{constructor(e){super(e),this._duplexState=1,this._writableState=new x(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final))}_writev(e,t){t(null)}_write(e,t){this._writableState.autoBatch(e,t)}_final(e){e(null)}write(e){return this._writableState.updateNextTick(),this._writableState.push(e)}end(e){return this._writableState.updateNextTick(),this._writableState.end(e),this}}class L extends F{constructor(e){super(e),this._transformState=new S(this),e&&(e.transform&&(this._transform=e.transform),e.flush&&(this._flush=e.flush))}_write(e,t){this._readableState.buffered>=this._readableState.highWaterMark?this._transformState.data=e:this._transform(e,this._transformState.afterTransform)}_read(e){if(null!==this._transformState.data){let t=this._transformState.data;this._transformState.data=null,e(null),this._transform(t,this._transformState.afterTransform)}else e(null)}_transform(e,t){t(null,e)}_flush(e){e(null)}_final(e){this._transformState.afterFinal=e,this._flush(z.bind(this))}}function z(e,t){let n=this._transformState.afterFinal;if(e)return n(e);null!=t&&this.push(t),this.push(null),n(null)}function R(e,...t){let n=Array.isArray(e)?[...e,...t]:[e,...t],r=n.length&&"function"==typeof n[n.length-1]?n.pop():null;if(n.length<2)throw Error("Pipeline requires at least 2 streams");let i=n[0],a=null,s=null;for(let e=1;e1,u),i.pipe(a)),i=a;if(r){let e=!1,t=U(a)||!!(a._writableState&&a._writableState.autoDestroy);a.on("error",e=>{null===s&&(s=e)}),a.on("finish",()=>{e=!0,t||r(s)}),t&&a.on("close",()=>r(s||(e?null:o)))}return a;function u(e){if(e&&!s)for(let t of(s=e,n))t.destroy(e)}}function B(e){return!!e._readableState||!!e._writableState}function U(e){return"number"==typeof e._duplexState&&B(e)}function J(e){return"object"==typeof e&&null!==e&&"number"==typeof e.byteLength?e.byteLength:1024}function $(){}function K(){this.destroy(Error("Stream aborted."))}e.exports={pipeline:R,pipelinePromise:function(...e){return new Promise((t,n)=>R(...e,e=>{if(e)return n(e);t()}))},isStream:B,isStreamx:U,getStreamError:function(e){let t=e._readableState&&e._readableState.error||e._writableState&&e._writableState.error;return t===i?null:t},Stream:O,Writable:class extends O{constructor(e){super(e),this._duplexState|=16385,this._writableState=new x(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final),e.eagerOpen&&this._writableState.updateNextTick())}_writev(e,t){t(null)}_write(e,t){this._writableState.autoBatch(e,t)}_final(e){e(null)}static isBackpressured(e){return(73400334&e._duplexState)!=0}static drained(e){if(e.destroyed)return Promise.resolve(!1);let t=e._writableState,n=t.queue.length+(33554432&e._duplexState?1:0);return 0===n?Promise.resolve(!0):(null===t.drains&&(t.drains=[]),new Promise(e=>{t.drains.push({writes:n,resolve:e})}))}write(e){return this._writableState.updateNextTick(),this._writableState.push(e)}end(e){return this._writableState.updateNextTick(),this._writableState.end(e),this}},Readable:P,Duplex:F,Transform:L,PassThrough:class extends L{}}},214:(e,t,n)=>{"use strict";var r=n(7834).Buffer,i=r.isEncoding||function(e){switch((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 o(e){var t;switch(this.encoding=function(e){var t=function(e){var t;if(!e)return"utf8";for(;;)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}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=l,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=c,this.end=_,t=3;break;default:this.write=p,this.end=d;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}(this,e,0);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function u(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function c(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?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-n))}function _(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function p(e){return e.toString(this.encoding)}function d(e){return e&&e.length?this.write(e):""}t.s=o,o.prototype.write=function(e){var t,n;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0?(i>0&&(e.lastNeed=i-1),i):--r=0?(i>0&&(e.lastNeed=i-2),i):--r=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},o.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}},5580:e=>{let t=/^[-+]?0x[a-fA-F0-9]+$/,n=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);let r={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};e.exports=function(e,i={}){if(i=Object.assign({},r,i),!e||"string"!=typeof e)return e;let o=e.trim();if(void 0!==i.skipLike&&i.skipLike.test(o))return e;if(i.hex&&t.test(o))return Number.parseInt(o,16);{let t=n.exec(o);if(!t)return e;{var a;let n=t[1],r=t[2],s=((a=t[3])&&-1!==a.indexOf(".")&&("."===(a=a.replace(/0+$/,""))?a="0":"."===a[0]?a="0"+a:"."===a[a.length-1]&&(a=a.substr(0,a.length-1))),a),u=t[4]||t[6];if(!i.leadingZeros&&r.length>0&&n&&"."!==o[2])return e;{if(!i.leadingZeros&&r.length>0&&!n&&"."!==o[1])return e;let t=Number(o),a=""+t;return -1!==a.search(/[eE]/)||u?i.eNotation?t:e:-1!==o.indexOf(".")?"0"===a&&""===s?t:a===s?t:n&&a==="-"+s?t:e:r?s===a?t:n+s===a?t:e:o===a?t:o===n+a?t:e}}}}},7715:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Struct:()=>l,StructError:()=>r,any:()=>T,array:()=>E,assert:()=>c,assign:()=>m,bigint:()=>w,boolean:()=>A,coerce:()=>Q,create:()=>_,date:()=>C,defaulted:()=>H,define:()=>h,deprecated:()=>y,dynamic:()=>g,empty:()=>Z,enums:()=>N,func:()=>M,instance:()=>k,integer:()=>I,intersection:()=>j,is:()=>d,lazy:()=>b,literal:()=>O,map:()=>P,mask:()=>p,max:()=>ee,min:()=>et,never:()=>F,nonempty:()=>en,nullable:()=>L,number:()=>z,object:()=>R,omit:()=>v,optional:()=>B,partial:()=>x,pattern:()=>er,pick:()=>D,record:()=>U,refine:()=>eo,regexp:()=>J,set:()=>$,size:()=>ei,string:()=>K,struct:()=>S,trimmed:()=>G,tuple:()=>V,type:()=>Y,union:()=>W,unknown:()=>q,validate:()=>f});class r extends TypeError{constructor(e,t){let n;let{message:r,explanation:i,...o}=e,{path:a}=e,s=0===a.length?r:`At path: ${a.join(".")} -- ${r}`;super(i??s),null!=i&&(this.cause=s),Object.assign(this,o),this.name=this.constructor.name,this.failures=()=>n??(n=[e,...t()])}}function i(e){return"object"==typeof e&&null!=e}function o(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function a(e){return"symbol"==typeof e?e.toString():"string"==typeof e?JSON.stringify(e):`${e}`}function*s(e,t,n,r){var o;for(let s of(i(o=e)&&"function"==typeof o[Symbol.iterator]||(e=[e]),e)){let e=function(e,t,n,r){if(!0===e)return;!1===e?e={}:"string"==typeof e&&(e={message:e});let{path:i,branch:o}=t,{type:s}=n,{refinement:u,message:l=`Expected a value of type \`${s}\`${u?` with refinement \`${u}\``:""}, but received: \`${a(r)}\``}=e;return{value:r,type:s,refinement:u,key:i[i.length-1],path:i,branch:o,...e,message:l}}(s,t,n,r);e&&(yield e)}}function*u(e,t,n={}){let{path:r=[],branch:o=[e],coerce:a=!1,mask:s=!1}=n,l={path:r,branch:o};if(a&&(e=t.coercer(e,l),s&&"type"!==t.type&&i(t.schema)&&i(e)&&!Array.isArray(e)))for(let n in e)void 0===t.schema[n]&&delete e[n];let c="valid";for(let r of t.validator(e,l))r.explanation=n.message,c="not_valid",yield[r,void 0];for(let[_,p,d]of t.entries(e,l)){let t=u(p,d,{path:void 0===_?r:[...r,_],branch:void 0===_?o:[...o,p],coerce:a,mask:s,message:n.message});for(let n of t)n[0]?(c=null!=n[0].refinement?"not_refined":"not_valid",yield[n[0],void 0]):a&&(p=n[1],void 0===_?e=p:e instanceof Map?e.set(_,p):e instanceof Set?e.add(p):i(e)&&(void 0!==p||_ in e)&&(e[_]=p))}if("not_valid"!==c)for(let r of t.refiner(e,l))r.explanation=n.message,c="not_refined",yield[r,void 0];"valid"===c&&(yield[void 0,e])}class l{constructor(e){let{type:t,schema:n,validator:r,refiner:i,coercer:o=e=>e,entries:a=function*(){}}=e;this.type=t,this.schema=n,this.entries=a,this.coercer=o,r?this.validator=(e,t)=>{let n=r(e,t);return s(n,t,this,e)}:this.validator=()=>[],i?this.refiner=(e,t)=>{let n=i(e,t);return s(n,t,this,e)}:this.refiner=()=>[]}assert(e,t){return c(e,this,t)}create(e,t){return _(e,this,t)}is(e){return d(e,this)}mask(e,t){return p(e,this,t)}validate(e,t={}){return f(e,this,t)}}function c(e,t,n){let r=f(e,t,{message:n});if(r[0])throw r[0]}function _(e,t,n){let r=f(e,t,{coerce:!0,message:n});if(!r[0])return r[1];throw r[0]}function p(e,t,n){let r=f(e,t,{coerce:!0,mask:!0,message:n});if(!r[0])return r[1];throw r[0]}function d(e,t){let n=f(e,t);return!n[0]}function f(e,t,n={}){let i=u(e,t,n),o=function(e){let{done:t,value:n}=e.next();return t?void 0:n}(i);if(o[0]){let e=new r(o[0],function*(){for(let e of i)e[0]&&(yield e[0])});return[e,void 0]}{let e=o[1];return[void 0,e]}}function m(...e){let t="type"===e[0].type,n=e.map(e=>e.schema),r=Object.assign({},...n);return t?Y(r):R(r)}function h(e,t){return new l({type:e,schema:null,validator:t})}function y(e,t){return new l({...e,refiner:(t,n)=>void 0===t||e.refiner(t,n),validator:(n,r)=>void 0===n||(t(n,r),e.validator(n,r))})}function g(e){return new l({type:"dynamic",schema:null,*entries(t,n){let r=e(t,n);yield*r.entries(t,n)},validator(t,n){let r=e(t,n);return r.validator(t,n)},coercer(t,n){let r=e(t,n);return r.coercer(t,n)},refiner(t,n){let r=e(t,n);return r.refiner(t,n)}})}function b(e){let t;return new l({type:"lazy",schema:null,*entries(n,r){t??(t=e()),yield*t.entries(n,r)},validator:(n,r)=>(t??(t=e()),t.validator(n,r)),coercer:(n,r)=>(t??(t=e()),t.coercer(n,r)),refiner:(n,r)=>(t??(t=e()),t.refiner(n,r))})}function v(e,t){let{schema:n}=e,r={...n};for(let e of t)delete r[e];return"type"===e.type?Y(r):R(r)}function x(e){let t=e instanceof l?{...e.schema}:{...e};for(let e in t)t[e]=B(t[e]);return R(t)}function D(e,t){let{schema:n}=e,r={};for(let e of t)r[e]=n[e];return R(r)}function S(e,t){return console.warn("superstruct@0.11 - The `struct` helper has been renamed to `define`."),h(e,t)}function T(){return h("any",()=>!0)}function E(e){return new l({type:"array",schema:e,*entries(t){if(e&&Array.isArray(t))for(let[n,r]of t.entries())yield[n,r,e]},coercer:e=>Array.isArray(e)?e.slice():e,validator:e=>Array.isArray(e)||`Expected an array value, but received: ${a(e)}`})}function w(){return h("bigint",e=>"bigint"==typeof e)}function A(){return h("boolean",e=>"boolean"==typeof e)}function C(){return h("date",e=>e instanceof Date&&!isNaN(e.getTime())||`Expected a valid \`Date\` object, but received: ${a(e)}`)}function N(e){let t={},n=e.map(e=>a(e)).join();for(let n of e)t[n]=n;return new l({type:"enums",schema:t,validator:t=>e.includes(t)||`Expected one of \`${n}\`, but received: ${a(t)}`})}function M(){return h("func",e=>"function"==typeof e||`Expected a function, but received: ${a(e)}`)}function k(e){return h("instance",t=>t instanceof e||`Expected a \`${e.name}\` instance, but received: ${a(t)}`)}function I(){return h("integer",e=>"number"==typeof e&&!isNaN(e)&&Number.isInteger(e)||`Expected an integer, but received: ${a(e)}`)}function j(e){return new l({type:"intersection",schema:null,*entries(t,n){for(let r of e)yield*r.entries(t,n)},*validator(t,n){for(let r of e)yield*r.validator(t,n)},*refiner(t,n){for(let r of e)yield*r.refiner(t,n)}})}function O(e){let t=a(e),n=typeof e;return new l({type:"literal",schema:"string"===n||"number"===n||"boolean"===n?e:null,validator:n=>n===e||`Expected the literal \`${t}\`, but received: ${a(n)}`})}function P(e,t){return new l({type:"map",schema:null,*entries(n){if(e&&t&&n instanceof Map)for(let[r,i]of n.entries())yield[r,r,e],yield[r,i,t]},coercer:e=>e instanceof Map?new Map(e):e,validator:e=>e instanceof Map||`Expected a \`Map\` object, but received: ${a(e)}`})}function F(){return h("never",()=>!1)}function L(e){return new l({...e,validator:(t,n)=>null===t||e.validator(t,n),refiner:(t,n)=>null===t||e.refiner(t,n)})}function z(){return h("number",e=>"number"==typeof e&&!isNaN(e)||`Expected a number, but received: ${a(e)}`)}function R(e){let t=e?Object.keys(e):[],n=F();return new l({type:"object",schema:e||null,*entries(r){if(e&&i(r)){let i=new Set(Object.keys(r));for(let n of t)i.delete(n),yield[n,r[n],e[n]];for(let e of i)yield[e,r[e],n]}},validator:e=>i(e)||`Expected an object, but received: ${a(e)}`,coercer:e=>i(e)?{...e}:e})}function B(e){return new l({...e,validator:(t,n)=>void 0===t||e.validator(t,n),refiner:(t,n)=>void 0===t||e.refiner(t,n)})}function U(e,t){return new l({type:"record",schema:null,*entries(n){if(i(n))for(let r in n){let i=n[r];yield[r,r,e],yield[r,i,t]}},validator:e=>i(e)||`Expected an object, but received: ${a(e)}`})}function J(){return h("regexp",e=>e instanceof RegExp)}function $(e){return new l({type:"set",schema:null,*entries(t){if(e&&t instanceof Set)for(let n of t)yield[n,n,e]},coercer:e=>e instanceof Set?new Set(e):e,validator:e=>e instanceof Set||`Expected a \`Set\` object, but received: ${a(e)}`})}function K(){return h("string",e=>"string"==typeof e||`Expected a string, but received: ${a(e)}`)}function V(e){let t=F();return new l({type:"tuple",schema:null,*entries(n){if(Array.isArray(n)){let r=Math.max(e.length,n.length);for(let i=0;iArray.isArray(e)||`Expected an array, but received: ${a(e)}`})}function Y(e){let t=Object.keys(e);return new l({type:"type",schema:e,*entries(n){if(i(n))for(let r of t)yield[r,n[r],e[r]]},validator:e=>i(e)||`Expected an object, but received: ${a(e)}`,coercer:e=>i(e)?{...e}:e})}function W(e){let t=e.map(e=>e.type).join(" | ");return new l({type:"union",schema:null,coercer(t){for(let n of e){let[e,r]=n.validate(t,{coerce:!0});if(!e)return r}return t},validator(n,r){let i=[];for(let t of e){let[...e]=u(n,t,r),[o]=e;if(!o[0])return[];for(let[t]of e)t&&i.push(t)}return[`Expected the value to satisfy a union of \`${t}\`, but received: ${a(n)}`,...i]}})}function q(){return h("unknown",()=>!0)}function Q(e,t,n){return new l({...e,coercer:(r,i)=>d(r,t)?e.coercer(n(r,i),i):e.coercer(r,i)})}function H(e,t,n={}){return Q(e,q(),e=>{let r="function"==typeof t?t():t;if(void 0===e)return r;if(!n.strict&&o(e)&&o(r)){let t={...e},n=!1;for(let e in r)void 0===t[e]&&(t[e]=r[e],n=!0);if(n)return t}return e})}function G(e){return Q(e,K(),e=>e.trim())}function Z(e){return eo(e,"empty",t=>{let n=X(t);return 0===n||`Expected an empty ${e.type} but received one with a size of \`${n}\``})}function X(e){return e instanceof Map||e instanceof Set?e.size:e.length}function ee(e,t,n={}){let{exclusive:r}=n;return eo(e,"max",n=>r?nr?n>t:n>=t||`Expected a ${e.type} greater than ${r?"":"or equal to "}${t} but received \`${n}\``)}function en(e){return eo(e,"nonempty",t=>{let n=X(t);return n>0||`Expected a nonempty ${e.type} but received an empty one`})}function er(e,t){return eo(e,"pattern",n=>t.test(n)||`Expected a ${e.type} matching \`/${t.source}/\` but received "${n}"`)}function ei(e,t,n=t){let r=`Expected a ${e.type}`,i=t===n?`of \`${t}\``:`between \`${t}\` and \`${n}\``;return eo(e,"size",e=>{if("number"==typeof e||e instanceof Date)return t<=e&&e<=n||`${r} ${i} but received \`${e}\``;if(e instanceof Map||e instanceof Set){let{size:o}=e;return t<=o&&o<=n||`${r} with a size ${i} but received one with a size of \`${o}\``}{let{length:o}=e;return t<=o&&o<=n||`${r} with a length ${i} but received one with a length of \`${o}\``}})}function eo(e,t,n){return new l({...e,*refiner(r,i){yield*e.refiner(r,i);let o=n(r,i),a=s(o,i,e,r);for(let e of a)yield{...e,refinement:t}}})}},6853:(e,t,n)=>{let r={S_IFMT:61440,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960};try{e.exports=n(4374).constants||r}catch{e.exports=r}},9254:(e,t,n)=>{let{Writable:r,Readable:i,getStreamError:o}=n(6871),a=n(2865),s=n(2871),u=n(8066),l=s.alloc(0);class c{constructor(){this.buffered=0,this.shifted=0,this.queue=new a,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return 0===this._buffered?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(0===e)return l;let t=this._next(e);if(e===t.byteLength)return t;let n=[t];for(;(e-=t.byteLength)>0;)t=this._next(e),n.push(t);return s.concat(n)}_next(e){let t=this.queue.peek(),n=t.byteLength-this._offset;if(e>=n){let e=this._offset?t.subarray(this._offset,t.byteLength):t;return this.queue.shift(),this._offset=0,this.buffered-=n,this.shifted+=n,e}return this.buffered-=e,this.shifted+=e,t.subarray(this._offset,this._offset+=e)}}class _ extends i{constructor(e,t,n){super(),this.header=t,this.offset=n,this._parent=e}_read(e){0===this.header.size&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(o(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=f(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}}class p extends r{constructor(e){super(e),e||(e={}),this._buffer=new c,this._offset=0,this._header=null,this._stream=null,this._missing=0,this._longHeader=!1,this._callback=d,this._locked=!1,this._finished=!1,this._pax=null,this._paxGlobal=null,this._gnuLongPath=null,this._gnuLongLinkPath=null,this._filenameEncoding=e.filenameEncoding||"utf-8",this._allowUnknownFormat=!!e.allowUnknownFormat,this._unlockBound=this._unlock.bind(this)}_unlock(e){if(this._locked=!1,e){this.destroy(e),this._continueWrite(e);return}this._update()}_consumeHeader(){if(this._locked)return!1;this._offset=this._buffer.shifted;try{this._header=u.decode(this._buffer.shift(512),this._filenameEncoding,this._allowUnknownFormat)}catch(e){return this._continueWrite(e),!1}if(!this._header)return!0;switch(this._header.type){case"gnu-long-path":case"gnu-long-link-path":case"pax-global-header":case"pax-header":return this._longHeader=!0,this._missing=this._header.size,!0}return(this._locked=!0,this._applyLongHeaders(),0===this._header.size||"directory"===this._header.type)?this.emit("entry",this._header,this._createStream(),this._unlockBound):(this._stream=this._createStream(),this._missing=this._header.size,this.emit("entry",this._header,this._stream,this._unlockBound)),!0}_applyLongHeaders(){this._gnuLongPath&&(this._header.name=this._gnuLongPath,this._gnuLongPath=null),this._gnuLongLinkPath&&(this._header.linkname=this._gnuLongLinkPath,this._gnuLongLinkPath=null),this._pax&&(this._pax.path&&(this._header.name=this._pax.path),this._pax.linkpath&&(this._header.linkname=this._pax.linkpath),this._pax.size&&(this._header.size=parseInt(this._pax.size,10)),this._header.pax=this._pax,this._pax=null)}_decodeLongHeader(e){switch(this._header.type){case"gnu-long-path":this._gnuLongPath=u.decodeLongPath(e,this._filenameEncoding);break;case"gnu-long-link-path":this._gnuLongLinkPath=u.decodeLongPath(e,this._filenameEncoding);break;case"pax-global-header":this._paxGlobal=u.decodePax(e);break;case"pax-header":this._pax=null===this._paxGlobal?u.decodePax(e):Object.assign({},this._paxGlobal,u.decodePax(e))}}_consumeLongHeader(){this._longHeader=!1,this._missing=f(this._header.size);let e=this._buffer.shift(this._header.size);try{this._decodeLongHeader(e)}catch(e){return this._continueWrite(e),!1}return!0}_consumeStream(){let e=this._buffer.shiftFirst(this._missing);if(null===e)return!1;this._missing-=e.byteLength;let t=this._stream.push(e);return 0===this._missing?(this._stream.push(null),t&&this._stream._detach(),t&&!1===this._locked):t}_createStream(){return new _(this,this._header,this._offset)}_update(){for(;this._buffer.buffered>0&&!this.destroying;){if(this._missing>0){if(null!==this._stream){if(!1===this._consumeStream())return;continue}if(!0===this._longHeader){if(this._missing>this._buffer.buffered)break;if(!1===this._consumeLongHeader())return!1;continue}let e=this._buffer.shiftFirst(this._missing);null!==e&&(this._missing-=e.byteLength);continue}if(this._buffer.buffered<512)break;if(null!==this._stream||!1===this._consumeHeader())return}this._continueWrite(null)}_continueWrite(e){let t=this._callback;this._callback=d,t(e)}_write(e,t){this._callback=t,this._buffer.push(e),this._update()}_final(e){this._finished=0===this._missing&&0===this._buffer.buffered,e(this._finished?null:Error("Unexpected end of data"))}_predestroy(){this._continueWrite(null)}_destroy(e){this._stream&&this._stream.destroy(o(this)),e(null)}[Symbol.asyncIterator](){let e=null,t=null,n=null,r=null,i=null,o=this;return this.on("entry",function(e,o,a){i=a,o.on("error",d),t?(t({value:o,done:!1}),t=n=null):r=o}),this.on("error",t=>{e=t}),this.on("close",function(){a(e),t&&(e?n(e):t({value:void 0,done:!0}),t=n=null)}),{[Symbol.asyncIterator](){return this},next:()=>new Promise(s),return:()=>u(null),throw:e=>u(e)};function a(e){if(!i)return;let t=i;i=null,t(e)}function s(i,s){if(e)return s(e);if(r){i({value:r,done:!1}),r=null;return}t=i,n=s,a(null),o._finished&&t&&(t({value:void 0,done:!0}),t=n=null)}function u(e){return o.destroy(e),a(e),new Promise((t,n)=>{if(o.destroyed)return t({value:void 0,done:!0});o.once("close",function(){e?n(e):t({value:void 0,done:!0})})})}}}function d(){}function f(e){return(e&=511)&&512-e}e.exports=function(e){return new p(e)}},8066:(e,t,n)=>{let r=n(2871),i=r.from([117,115,116,97,114,0]),o=r.from([48,48]),a=r.from([117,115,116,97,114,32]),s=r.from([32,0]);function u(e,t,n,r){for(;nt?"7777777777777777777".slice(0,t)+" ":"0000000000000000000".slice(0,t-e.length)+e+" "}function _(e,t,n){if(128&(e=e.subarray(t,t+n))[t=0])return function(e){let t,n;if(128===e[0])t=!0;else{if(255!==e[0])return null;t=!1}let r=[];for(n=e.length-1;n>0;n--){let i=e[n];t?r.push(i):r.push(255-i)}let i=0,o=r.length;for(n=0;n=i?i:r>=0||(r+=i)>=0?r:0);for(;t=Math.pow(10,n)&&n++,t+n+e}t.decodeLongPath=function(e,t){return p(e,0,e.length,t)},t.encodePax=function(e){let t="";e.name&&(t+=d(" path="+e.name+"\n")),e.linkname&&(t+=d(" linkpath="+e.linkname+"\n"));let n=e.pax;if(n)for(let e in n)t+=d(" "+e+"="+n[e]+"\n");return r.from(t)},t.decodePax=function(e){let t={};for(;e.length;){let n=0;for(;n100;){let e=a.indexOf("/");if(-1===e)return null;s+=s?"/"+a.slice(0,e):a.slice(0,e),a=a.slice(e+1)}return r.byteLength(a)>100||r.byteLength(s)>155||e.linkname&&r.byteLength(e.linkname)>100?null:(r.write(n,a),r.write(n,c(4095&e.mode,6),100),r.write(n,c(e.uid,6),108),r.write(n,c(e.gid,6),116),(t=e.size).toString(8).length>11?function(e,t,n){t[n]=128;for(let r=11;r>0;r--)t[n+r]=255&e,e=Math.floor(e/256)}(t,n,124):r.write(n,c(t,11),124),r.write(n,c(e.mtime.getTime()/1e3|0,11),136),n[156]=48+function(e){switch(e){case"file":break;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}(e.type),e.linkname&&r.write(n,e.linkname,157),r.copy(i,n,257),r.copy(o,n,263),e.uname&&r.write(n,e.uname,265),e.gname&&r.write(n,e.gname,297),r.write(n,c(e.devmajor||0,6),329),r.write(n,c(e.devminor||0,6),337),s&&r.write(n,s,345),r.write(n,c(l(n),6),148),n)},t.decode=function(e,t,n){let o=0===e[156]?0:e[156]-48,u=p(e,0,100,t),c=_(e,100,8),d=_(e,108,8),f=_(e,116,8),m=_(e,124,12),h=_(e,136,12),y=function(e){switch(e){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}(o),g=0===e[157]?null:p(e,157,100,t),b=p(e,265,32),v=p(e,297,32),x=_(e,329,8),D=_(e,337,8),S=l(e);if(256===S)return null;if(S!==_(e,148,8))throw Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(r.equals(i,e.subarray(257,263)))e[345]&&(u=p(e,345,155,t)+"/"+u);else if(r.equals(a,e.subarray(257,263))&&r.equals(s,e.subarray(263,265)));else if(!n)throw Error("Invalid tar header: unknown format.");return 0===o&&u&&"/"===u[u.length-1]&&(o=5),{name:u,mode:c,uid:d,gid:f,size:m,mtime:new Date(1e3*h),type:y,linkname:g,uname:b,gname:v,devmajor:x,devminor:D,pax:null}}},2623:(e,t,n)=>{t.extract=n(9254),n(4132)},4132:(e,t,n)=>{let{Readable:r,Writable:i,getStreamError:o}=n(6871),a=n(2871),s=n(6853),u=n(8066),l=a.alloc(1024);class c extends i{constructor(e,t,n){super({mapWritable:f,eagerOpen:!0}),this.written=0,this.header=t,this._callback=n,this._linkname=null,this._isLinkname="symlink"===t.type&&!t.linkname,this._isVoid="file"!==t.type&&"contiguous-file"!==t.type,this._finished=!1,this._pack=e,this._openCallback=null,null===this._pack._stream?this._pack._stream=this:this._pack._pending.push(this)}_open(e){this._openCallback=e,this._pack._stream===this&&this._continueOpen()}_continuePack(e){if(null===this._callback)return;let t=this._callback;this._callback=null,t(e)}_continueOpen(){null===this._pack._stream&&(this._pack._stream=this);let e=this._openCallback;if(this._openCallback=null,null!==e){if(this._pack.destroying)return e(Error("pack stream destroyed"));if(this._pack._finalized)return e(Error("pack stream is already finalized"));this._pack._stream=this,this._isLinkname||this._pack._encode(this.header),this._isVoid&&(this._finish(),this._continuePack(null)),e(null)}}_write(e,t){return this._isLinkname?(this._linkname=this._linkname?a.concat([this._linkname,e]):e,t(null)):this._isVoid?e.byteLength>0?t(Error("No body allowed for this entry")):t():(this.written+=e.byteLength,this._pack.push(e))?t():void(this._pack._drain=t)}_finish(){this._finished||(this._finished=!0,this._isLinkname&&(this.header.linkname=this._linkname?a.toString(this._linkname,"utf-8"):"",this._pack._encode(this.header)),d(this._pack,this.header.size),this._pack._done(this))}_final(e){if(this.written!==this.header.size)return e(Error("Size mismatch"));this._finish(),e(null)}_getError(){return o(this)||Error("tar entry destroyed")}_predestroy(){this._pack.destroy(this._getError())}_destroy(e){this._pack._done(this),this._continuePack(this._finished?null:this._getError()),e()}}class _ extends r{constructor(e){super(e),this._drain=p,this._finalized=!1,this._finalizing=!1,this._pending=[],this._stream=null}entry(e,t,n){if(this._finalized||this.destroying)throw Error("already finalized or destroyed");"function"==typeof t&&(n=t,t=null),n||(n=p),e.size&&"symlink"!==e.type||(e.size=0),e.type||(e.type=function(e){switch(e&s.S_IFMT){case s.S_IFBLK:return"block-device";case s.S_IFCHR:return"character-device";case s.S_IFDIR:return"directory";case s.S_IFIFO:return"fifo";case s.S_IFLNK:return"symlink"}return"file"}(e.mode)),e.mode||(e.mode="directory"===e.type?493:420),e.uid||(e.uid=0),e.gid||(e.gid=0),e.mtime||(e.mtime=new Date),"string"==typeof t&&(t=a.from(t));let r=new c(this,e,n);return a.isBuffer(t)?(e.size=t.byteLength,r.write(t),r.end()):r._isVoid,r}finalize(){if(this._stream||this._pending.length>0){this._finalizing=!0;return}this._finalized||(this._finalized=!0,this.push(l),this.push(null))}_done(e){e===this._stream&&(this._stream=null,this._finalizing&&this.finalize(),this._pending.length&&this._pending.shift()._continueOpen())}_encode(e){if(!e.pax){let t=u.encode(e);if(t){this.push(t);return}}this._encodePax(e)}_encodePax(e){let t=u.encodePax({name:e.name,linkname:e.linkname,pax:e.pax}),n={name:"PaxHeader",mode:e.mode,uid:e.uid,gid:e.gid,size:t.byteLength,mtime:e.mtime,type:"pax-header",linkname:e.linkname&&"PaxHeader",uname:e.uname,gname:e.gname,devmajor:e.devmajor,devminor:e.devminor};this.push(u.encode(n)),this.push(t),d(this,t.byteLength),n.size=e.size,n.type=e.type,this.push(u.encode(n))}_doDrain(){let e=this._drain;this._drain=p,e()}_predestroy(){let e=o(this);for(this._stream&&this._stream.destroy(e);this._pending.length;){let t=this._pending.shift();t.destroy(e),t._continueOpen()}this._doDrain()}_read(e){this._doDrain(),e()}}function p(){}function d(e,t){(t&=511)&&e.push(l.subarray(0,512-t))}function f(e){return a.isBuffer(e)?e:a.from(e)}e.exports=function(e){return new _(e)}},9085:(e,t)=>{var n,r=function(){var e=Object.prototype.toString,t=Object.prototype.hasOwnProperty;return{Class:function(t){return e.call(t).replace(/^\[object *|\]$/g,"")},HasProperty:function(e,t){return t in e},HasOwnProperty:function(e,n){return t.call(e,n)},IsCallable:function(e){return"function"==typeof e},ToInt32:function(e){return e>>0},ToUint32:function(e){return e>>>0}}}(),i=Math.LN2,o=Math.abs,a=Math.floor,s=Math.log,u=Math.min,l=Math.pow,c=Math.round;function _(e){if(p&&n){var t,r=p(e);for(t=0;t>n}function f(e,t){var n=32-t;return e<>>n}function m(e){return[255&e]}function h(e){return d(e[0],8)}function y(e){return[255&e]}function g(e){return f(e[0],8)}function b(e){return[(e=c(Number(e)))<0?0:e>255?255:255&e]}function v(e){return[e>>8&255,255&e]}function x(e){return d(e[0]<<8|e[1],16)}function D(e){return[e>>8&255,255&e]}function S(e){return f(e[0]<<8|e[1],16)}function T(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]}function E(e){return d(e[0]<<24|e[1]<<16|e[2]<<8|e[3],32)}function w(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]}function A(e){return f(e[0]<<24|e[1]<<16|e[2]<<8|e[3],32)}function C(e,t,n){var r,c,_,p,d,f,m,h=(1<.5?t+1:t%2?t+1:t}for(e!=e?(c=(1<=l(2,1-h)?(c=u(a(s(e)/i),1023),(_=y(e/l(2,c)*l(2,n)))/l(2,n)>=2&&(c+=1,_=1),c>h?(c=(1<>=1;return(p.reverse(),a=p.join(""),s=(1<0?u*l(2,c-s)*(1+_/l(2,n)):0!==_?u*l(2,-(s-1))*(_/l(2,n)):u<0?-0:0}function M(e){return N(e,11,52)}function k(e){return C(e,11,52)}function I(e){return N(e,8,23)}function j(e){return C(e,8,23)}!function(){var e=function(e){var t;if((e=r.ToInt32(e))<0)throw RangeError("ArrayBuffer size is not a small enough positive integer");for(t=0,this.byteLength=e,this._bytes=[],this._bytes.length=e;tthis.buffer.byteLength)throw RangeError("byteOffset out of range");if(this.byteOffset%this.BYTES_PER_ELEMENT)throw RangeError("ArrayBuffer length minus the byteOffset is not a multiple of the element size.");if(arguments.length<3){if(this.byteLength=this.buffer.byteLength-this.byteOffset,this.byteLength%this.BYTES_PER_ELEMENT)throw RangeError("length of buffer minus byteOffset not a multiple of the element size");this.length=this.byteLength/this.BYTES_PER_ELEMENT}else this.length=r.ToUint32(o),this.byteLength=this.length*this.BYTES_PER_ELEMENT;if(this.byteOffset+this.byteLength>this.buffer.byteLength)throw RangeError("byteOffset and length reference an area beyond the end of the buffer")}else throw TypeError("Unexpected argument type(s)")}else for(l=0,u=arguments[0],this.length=r.ToUint32(u.length),this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new e(this.byteLength),this.byteOffset=0;l1e5)throw RangeError("Array too large for polyfill");for(t=0;t=this.length)){var t,n,i=[];for(t=0,n=this.byteOffset+e*this.BYTES_PER_ELEMENT;t=this.length)){var n,i,o=this._pack(t);for(n=0,i=this.byteOffset+e*this.BYTES_PER_ELEMENT;nthis.length)throw RangeError("Offset plus length of array is out of range");if(c=this.byteOffset+o*this.BYTES_PER_ELEMENT,_=n.length*this.BYTES_PER_ELEMENT,n.buffer===this.buffer){for(s=0,p=[],u=n.byteOffset;s<_;s+=1,u+=1)p[s]=n.buffer._bytes[u];for(s=0,l=c;s<_;s+=1,l+=1)this.buffer._bytes[l]=p[s]}else for(s=0,u=n.byteOffset,l=c;s<_;s+=1,u+=1,l+=1)this.buffer._bytes[l]=n.buffer._bytes[u]}else if("object"==typeof arguments[0]&&void 0!==arguments[0].length){if(i=arguments[0],a=r.ToUint32(i.length),o=r.ToUint32(arguments[1]),o+a>this.length)throw RangeError("Offset plus length of array is out of range");for(s=0;si?i:n,o=t,a=this.length;var n,i,o,a,s=(t=o<0?0:o>a?a:o)-e;return s<0&&(s=0),new this.constructor(this.buffer,this.byteOffset+e*this.BYTES_PER_ELEMENT,s)},s}var a=o(1,m,h),s=o(1,y,g),u=o(1,b,g),l=o(2,v,x),c=o(2,D,S),p=o(4,T,E),d=o(4,w,A),f=o(4,j,I),C=o(8,k,M);t.iq=t.iq||a,t.U2=t.U2||s,t.we=t.we||u,t.M2=t.M2||l,t.HA=t.HA||c,t.ZV=t.ZV||p,t._R=t._R||d,t.$L=t.$L||f,t.I=t.I||C}(),function(){function e(e,t){return r.IsCallable(e.get)?e.get(t):e[t]}var n,i=(n=new t.HA([4660]),18===e(new t.U2(n.buffer),0)),o=function(e,n,i){if(0==arguments.length)e=new t.eT(0);else if(!(e instanceof t.eT||"ArrayBuffer"===r.Class(e)))throw TypeError("TypeError");if(this.buffer=e||new t.eT(0),this.byteOffset=r.ToUint32(n),this.byteOffset>this.buffer.byteLength)throw RangeError("byteOffset out of range");if(arguments.length<3?this.byteLength=this.buffer.byteLength-this.byteOffset:this.byteLength=r.ToUint32(i),this.byteOffset+this.byteLength>this.buffer.byteLength)throw RangeError("byteOffset and length reference an area beyond the end of the buffer");_(this)};function a(n){return function(o,a){if((o=r.ToUint32(o))+n.BYTES_PER_ELEMENT>this.byteLength)throw RangeError("Array index out of range");o+=this.byteOffset;var s,u=new t.U2(this.buffer,o,n.BYTES_PER_ELEMENT),l=[];for(s=0;sthis.byteLength)throw RangeError("Array index out of range");var u,l=new n([a]),c=new t.U2(l.buffer),_=[];for(u=0;u{e.exports=function(e,t){if(r("noDeprecation"))return e;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}};function r(e){try{if(!n.g.localStorage)return!1}catch(e){return!1}var t=n.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}},82:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},4895:(e,t,n)=>{"use strict";var r=n(2635),i=n(3138),o=n(2094),a=n(198);function s(e){return e.call.bind(e)}var u="undefined"!=typeof BigInt,l="undefined"!=typeof Symbol,c=s(Object.prototype.toString),_=s(Number.prototype.valueOf),p=s(String.prototype.valueOf),d=s(Boolean.prototype.valueOf);if(u)var f=s(BigInt.prototype.valueOf);if(l)var m=s(Symbol.prototype.valueOf);function h(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function y(e){return"[object Map]"===c(e)}function g(e){return"[object Set]"===c(e)}function b(e){return"[object WeakMap]"===c(e)}function v(e){return"[object WeakSet]"===c(e)}function x(e){return"[object ArrayBuffer]"===c(e)}function D(e){return"undefined"!=typeof ArrayBuffer&&(x.working?x(e):e instanceof ArrayBuffer)}function S(e){return"[object DataView]"===c(e)}function T(e){return"undefined"!=typeof DataView&&(S.working?S(e):e instanceof DataView)}t.isArgumentsObject=r,t.isGeneratorFunction=i,t.isTypedArray=a,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||T(e)},t.isUint8Array=function(e){return"Uint8Array"===o(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===o(e)},t.isUint16Array=function(e){return"Uint16Array"===o(e)},t.isUint32Array=function(e){return"Uint32Array"===o(e)},t.isInt8Array=function(e){return"Int8Array"===o(e)},t.isInt16Array=function(e){return"Int16Array"===o(e)},t.isInt32Array=function(e){return"Int32Array"===o(e)},t.isFloat32Array=function(e){return"Float32Array"===o(e)},t.isFloat64Array=function(e){return"Float64Array"===o(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===o(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===o(e)},y.working="undefined"!=typeof Map&&y(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(y.working?y(e):e instanceof Map)},g.working="undefined"!=typeof Set&&g(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(g.working?g(e):e instanceof Set)},b.working="undefined"!=typeof WeakMap&&b(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(b.working?b(e):e instanceof WeakMap)},v.working="undefined"!=typeof WeakSet&&v(new WeakSet),t.isWeakSet=function(e){return v(e)},x.working="undefined"!=typeof ArrayBuffer&&x(new ArrayBuffer),t.isArrayBuffer=D,S.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&S(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=T;var E="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function w(e){return"[object SharedArrayBuffer]"===c(e)}function A(e){return void 0!==E&&(void 0===w.working&&(w.working=w(new E)),w.working?w(e):e instanceof E)}function C(e){return h(e,_)}function N(e){return h(e,p)}function M(e){return h(e,d)}function k(e){return u&&h(e,f)}function I(e){return l&&h(e,m)}t.isSharedArrayBuffer=A,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===c(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===c(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===c(e)},t.isGeneratorObject=function(e){return"[object Generator]"===c(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===c(e)},t.isNumberObject=C,t.isStringObject=N,t.isBooleanObject=M,t.isBigIntObject=k,t.isSymbolObject=I,t.isBoxedPrimitive=function(e){return C(e)||N(e)||M(e)||k(e)||I(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(D(e)||A(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw Error(e+" is not supported in userland")}})})},3335:(e,t,n)=>{var r=n(4406),i=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}}),s=r[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),h(n)?r.showHidden=n:n&&t._extend(r,n),v(r.showHidden)&&(r.showHidden=!1),v(r.depth)&&(r.depth=2),v(r.colors)&&(r.colors=!1),v(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=c),p(r,e,r.depth)}function c(e,t){var n=l.styles[t];return n?"\x1b["+l.colors[n][0]+"m"+e+"\x1b["+l.colors[n][1]+"m":e}function _(e,t){return e}function p(e,n,r){if(e.customInspect&&n&&E(n.inspect)&&n.inspect!==t.inspect&&!(n.constructor&&n.constructor.prototype===n)){var i,o,a,s,u,l=n.inspect(r,e);return b(l)||(l=p(e,l,r)),l}var c=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(b(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return g(t)?e.stylize(""+t,"number"):h(t)?e.stylize(""+t,"boolean"):y(t)?e.stylize("null","null"):void 0}(e,n);if(c)return c;var _=Object.keys(n),D=(s={},_.forEach(function(e,t){s[e]=!0}),s);if(e.showHidden&&(_=Object.getOwnPropertyNames(n)),T(n)&&(_.indexOf("message")>=0||_.indexOf("description")>=0))return d(n);if(0===_.length){if(E(n)){var w=n.name?": "+n.name:"";return e.stylize("[Function"+w+"]","special")}if(x(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(S(n))return e.stylize(Date.prototype.toString.call(n),"date");if(T(n))return d(n)}var A="",C=!1,M=["{","}"];return(m(n)&&(C=!0,M=["[","]"]),E(n)&&(A=" [Function"+(n.name?": "+n.name:"")+"]"),x(n)&&(A=" "+RegExp.prototype.toString.call(n)),S(n)&&(A=" "+Date.prototype.toUTCString.call(n)),T(n)&&(A=" "+d(n)),0!==_.length||C&&0!=n.length)?r<0?x(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),u=C?function(e,t,n,r,i){for(var o=[],a=0,s=t.length;a=0&&a++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?o[0]+(""===i?"":i+"\n ")+" "+u.join(",\n ")+" "+o[1]:o[0]+i+" "+u.join(", ")+" "+o[1]):M[0]+A+M[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function f(e,t,n,r,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),N(r,i)||(a="["+i+"]"),!s&&(0>e.seen.indexOf(u.value)?(s=y(n)?p(e,u.value,null):p(e,u.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").slice(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),v(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function m(e){return Array.isArray(e)}function h(e){return"boolean"==typeof e}function y(e){return null===e}function g(e){return"number"==typeof e}function b(e){return"string"==typeof e}function v(e){return void 0===e}function x(e){return D(e)&&"[object RegExp]"===w(e)}function D(e){return"object"==typeof e&&null!==e}function S(e){return D(e)&&"[object Date]"===w(e)}function T(e){return D(e)&&("[object Error]"===w(e)||e instanceof Error)}function E(e){return"function"==typeof e}function w(e){return Object.prototype.toString.call(e)}function A(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(!a[e=e.toUpperCase()]){if(s.test(e)){var n=r.pid;a[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,r)}}else a[e]=function(){}}return a[e]},t.inspect=l,l.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]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=n(4895),t.isArray=m,t.isBoolean=h,t.isNull=y,t.isNullOrUndefined=function(e){return null==e},t.isNumber=g,t.isString=b,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=v,t.isRegExp=x,t.types.isRegExp=x,t.isObject=D,t.isDate=S,t.types.isDate=S,t.isError=T,t.types.isNativeError=T,t.isFunction=E,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(82);var C=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function N(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,n;console.log("%s - %s",(n=[A((e=new Date).getHours()),A(e.getMinutes()),A(e.getSeconds())].join(":"),[e.getDate(),C[e.getMonth()],n].join(" ")),t.format.apply(t,arguments))},t.inherits=n(1285),t._extend=function(e,t){if(!t||!D(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var M="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function k(e,t){if(!e){var n=Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');if(M&&e[M]){var t=e[M];if("function"!=typeof t)throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,M,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise(function(e,r){t=e,n=r}),i=[],o=0;o{"use strict";var r=RegExp("^(?:@([^/]+?)[/])?([^/]+?)$"),i=n(5890),o=["node_modules","favicon.ico"],a=function(e,t){var n={validForNewPackages:0===t.length&&0===e.length,validForOldPackages:0===t.length,warnings:e,errors:t};return n.warnings.length||delete n.warnings,n.errors.length||delete n.errors,n};e.exports=function(e){var t=[],n=[];if(null===e)return n.push("name cannot be null"),a(t,n);if(void 0===e)return n.push("name cannot be undefined"),a(t,n);if("string"!=typeof e)return n.push("name must be a string"),a(t,n);if(e.length||n.push("name length must be greater than zero"),e.match(/^\./)&&n.push("name cannot start with a period"),e.match(/^_/)&&n.push("name cannot start with an underscore"),e.trim()!==e&&n.push("name cannot contain leading or trailing spaces"),o.forEach(function(t){e.toLowerCase()===t&&n.push(t+" is a blacklisted name")}),i({version:"*"}).forEach(function(n){e.toLowerCase()===n&&t.push(n+" is a core module name")}),e.length>214&&t.push("name can no longer contain more than 214 characters"),e.toLowerCase()!==e&&t.push("name can no longer contain capital letters"),/[~'!()*]/.test(e.split("/").slice(-1)[0])&&t.push('name can no longer contain special characters ("~\'!()*")'),encodeURIComponent(e)!==e){var s=e.match(r);if(s){var u=s[1],l=s[2];if(encodeURIComponent(u)===u&&encodeURIComponent(l)===l)return a(t,n)}n.push("name can only contain URL-friendly characters")}return a(t,n)}},2094:(e,t,n)=>{"use strict";var r=n(3243),i=n(711),o=n(2680),a=n(326),s=o("Object.prototype.toString"),u=n(7226)(),l="undefined"==typeof globalThis?n.g:globalThis,c=i(),_=o("String.prototype.slice"),p={},d=Object.getPrototypeOf;u&&a&&d&&r(c,function(e){if("function"==typeof l[e]){var t=new l[e];if(Symbol.toStringTag in t){var n=d(t),r=a(n,Symbol.toStringTag);r||(r=a(d(n),Symbol.toStringTag)),p[e]=r.get}}});var f=function(e){var t=!1;return r(p,function(n,r){if(!t)try{var i=n.call(e);i===r&&(t=i)}catch(e){}}),t},m=n(198);e.exports=function(e){return!!m(e)&&(u&&Symbol.toStringTag in e?f(e):_(s(e),8,-1))}},8892:e=>{e.exports=function e(t,n){if(t&&n)return e(t)(n);if("function"!=typeof t)throw TypeError("need wrapper function");return Object.keys(t).forEach(function(e){r[e]=t[e]}),r;function r(){for(var e=Array(arguments.length),n=0;n{"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},8006:(e,t,n)=>{"use strict";function r(e){var t=this;if(t instanceof r||(t=new r),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach(function(e){t.push(e)});else if(arguments.length>0)for(var n=0,i=arguments.length;n1)n=t;else if(this.head)r=this.head.next,n=this.head.value;else throw TypeError("Reduce of empty list with no initial value");for(var i=0;null!==r;i++)n=e(n,r.value,i),r=r.next;return n},r.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else if(this.tail)r=this.tail.prev,n=this.tail.value;else throw TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;null!==r;i--)n=e(n,r.value,i),r=r.prev;return n},r.prototype.toArray=function(){for(var e=Array(this.length),t=0,n=this.head;null!==n;t++)e[t]=n.value,n=n.next;return e},r.prototype.toArrayReverse=function(){for(var e=Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},r.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r;if(tthis.length&&(t=this.length);for(var i=0,o=this.head;null!==o&&ithis.length&&(t=this.length);for(var i=this.length,o=this.tail;null!==o&&i>t;i--)o=o.prev;for(;null!==o&&i>e;i--,o=o.prev)n.push(o.value);return n},r.prototype.splice=function(e,t,...n){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var r=0,o=this.head;null!==o&&r{e.exports=n(9918)(22194)},348:(e,t,n)=>{e.exports=n(9918)(2784)},1602:(e,t,n)=>{e.exports=n(9918)(28316)},3099:(e,t,n)=>{e.exports=n(9918)(29033)},5877:(e,t,n)=>{e.exports=n(9918)(29501)},328:(e,t,n)=>{e.exports=n(9918)(41014)},6116:(e,t,n)=>{e.exports=n(9918)(41023)},5234:(e,t,n)=>{e.exports=n(9918)(44714)},5844:(e,t,n)=>{e.exports=n(9918)(45056)},9851:(e,t,n)=>{e.exports=n(9918)(51501)},1374:(e,t,n)=>{e.exports=n(9918)(57879)},6761:(e,t,n)=>{e.exports=n(9918)(5895)},3856:(e,t,n)=>{e.exports=n(9918)(61199)},7081:(e,t,n)=>{e.exports=n(9918)(63163)},3581:(e,t,n)=>{e.exports=n(9918)(69234)},1179:(e,t,n)=>{e.exports=n(9918)(71384)},9790:(e,t,n)=>{e.exports=n(9918)(73323)},7826:(e,t,n)=>{e.exports=n(9918)(76034)},685:(e,t,n)=>{e.exports=n(9918)(7850)},8209:(e,t,n)=>{e.exports=n(9918)(82323)},3754:(e,t,n)=>{e.exports=n(9918)(83620)},6194:(e,t,n)=>{e.exports=n(9918)(88100)},2858:(e,t,n)=>{e.exports=n(9918)(94762)},9918:e=>{"use strict";e.exports=vendor_27d9d1c678a3dda7b616},6831:()=>{},4854:()=>{},6602:()=>{},4374:()=>{}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{n.g.importScripts&&(e=n.g.location+"");var e,t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var i=r.length-1;i>-1&&!e;)e=r[i--].src}if(!e)throw Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})(),(()=>{"use strict";var e,t,r,i,o,a,s,u,l,c,_,p,d,f,m,h,y,g,b,v,x,D,S,T,E,w,A,C,N,M,k,I=n(2322),j=n(2858),O=n(7029),P=n(348),F=n(7826),L=n(9790),z=(0,L.createSlice)({name:"configuration",initialState:{open:!1,snapId:"local:http://localhost:8080",snapVersion:void 0,srp:"test test test test test test test test test test test ball",sesEnabled:!0},reducers:{openConfigurationModal:function(e){e.open=!0},setOpen:function(e,t){e.open=t.payload},setSnapId:function(e,t){e.snapId=t.payload},setSnapVersion:function(e,t){e.snapVersion=t.payload},setSrp:function(e,t){e.srp=t.payload},setSesEnabled:function(e,t){e.sesEnabled=t.payload}}}),R=z.actions,B=R.openConfigurationModal,U=R.setOpen,J=R.setSnapId,$=R.setSnapVersion;R.setSrp,R.setSesEnabled;var K=z.reducer,V=(0,L.createSelector)(function(e){return e.configuration},function(e){return e.open}),Y=(0,L.createSelector)(function(e){return e.configuration},function(e){return e.snapId}),W=(0,L.createSelector)(function(e){return e.configuration},function(e){return e.snapVersion}),q=(0,L.createSelector)(function(e){return e.configuration},function(e){return e.srp}),Q=(0,L.createSelector)(function(e){return e.configuration},function(e){return e.sesEnabled}),H=n(5234),G=H.useDispatch;(function(e){e.OnRpcRequest="onRpcRequest",e.OnSignature="onSignature",e.OnTransaction="onTransaction",e.OnCronjob="onCronjob",e.OnInstall="onInstall",e.OnUpdate="onUpdate",e.OnNameLookup="onNameLookup",e.OnKeyringRequest="onKeyringRequest",e.OnHomePage="onHomePage"})(e||(e={})),Object.values(e);var Z=n(8209),X={alert:{alt:"Alert",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhl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MTcuMDkyNiAxNC4yMDU0SDIuNjQ1MDlaIiBmaWxsPSIjQkJDMEM1Ii8+Cjwvc3ZnPgo="}},ee=(0,P.forwardRef)(function(e,t){var n=e.icon,r=e.alt,i=void 0===r?X[n].alt:r,o=e.width,a=void 0===o?"32px":o,s=e.height,u=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["icon","alt","width","height"]),l=(0,Z.useColorMode)().colorMode,c=X[n],_=c.src,p=(0,j.hasProperty)(c,"srcDark")?c.srcDark:c.src;return(0,I.jsx)(Z.Image,function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);nn=>e(t(n)),n=Array.from(e).reverse().reduce((e,n)=>e?t(e,n.encode):n.encode,void 0),r=e.reduce((e,n)=>e?t(e,n.decode):n.decode,void 0);return{encode:n,decode:r}}function ey(e){return{encode:t=>{if(!Array.isArray(t)||t.length&&"number"!=typeof t[0])throw Error("alphabet.encode input should be an array of numbers");return t.map(t=>{if(t<0||t>=e.length)throw Error(`Digit index outside alphabet: ${t} (alphabet: ${e.length})`);return e[t]})},decode:t=>{if(!Array.isArray(t)||t.length&&"string"!=typeof t[0])throw Error("alphabet.decode input should be array of strings");return t.map(t=>{if("string"!=typeof t)throw Error(`alphabet.decode: not string element=${t}`);let n=e.indexOf(t);if(-1===n)throw Error(`Unknown letter: "${t}". Allowed: ${e}`);return n})}}}function eg(e=""){if("string"!=typeof e)throw Error("join separator should be string");return{encode:t=>{if(!Array.isArray(t)||t.length&&"string"!=typeof t[0])throw Error("join.encode input should be array of strings");for(let e of t)if("string"!=typeof e)throw Error(`join.encode: non-string input=${e}`);return t.join(e)},decode:t=>{if("string"!=typeof t)throw Error("join.decode input should be string");return t.split(e)}}}let eb=(e,t)=>t?eb(t,e%t):e,ev=(e,t)=>e+(t-eb(e,t));function ex(e,t,n,r){if(!Array.isArray(e))throw Error("convertRadix2: data should be array");if(t<=0||t>32)throw Error(`convertRadix2: wrong from=${t}`);if(n<=0||n>32)throw Error(`convertRadix2: wrong to=${n}`);if(ev(t,n)>32)throw Error(`convertRadix2: carry overflow from=${t} to=${n} carryBits=${ev(t,n)}`);let i=0,o=0,a=2**n-1,s=[];for(let r of e){if(r>=2**t)throw Error(`convertRadix2: invalid data word=${r} from=${t}`);if(i=i<32)throw Error(`convertRadix2: carry overflow pos=${o} from=${t}`);for(o+=t;o>=n;o-=n)s.push((i>>o-n&a)>>>0);i&=2**o-1}if(i=i<=t)throw Error("Excess padding");if(!r&&i)throw Error(`Non-zero padding: ${i}`);return r&&o>0&&s.push(i>>>0),s}let eD=eh(function(e,t=!1){if(e<=0||e>32)throw Error("radix2: bits should be in (0..32]");if(ev(8,e)>32||ev(e,8)>32)throw Error("radix2: carry overflow");return{encode:n=>{if(!(n instanceof Uint8Array))throw Error("radix2.encode input should be Uint8Array");return ex(Array.from(n),8,e,!t)},decode:n=>{if(!Array.isArray(n)||n.length&&"number"!=typeof n[0])throw Error("radix2.decode input should be array of strings");return Uint8Array.from(ex(n,e,8,t))}}}(6),ey("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),function(e,t="="){if("string"!=typeof t)throw Error("padding chr should be string");return{encode(n){if(!Array.isArray(n)||n.length&&"string"!=typeof n[0])throw Error("padding.encode input should be array of strings");for(let e of n)if("string"!=typeof e)throw Error(`padding.encode: non-string input=${e}`);for(;n.length*e%8;)n.push(t);return n},decode(n){if(!Array.isArray(n)||n.length&&"string"!=typeof n[0])throw Error("padding.encode input should be array of strings");for(let e of n)if("string"!=typeof e)throw Error(`padding.decode: non-string input=${e}`);let r=n.length;if(r*e%8)throw Error("Invalid padding: string should have whole number of bytes");for(;r>0&&n[r-1]===t;r--)if(!((r-1)*e%8))throw Error("Invalid padding: string has too much padding");return n.slice(0,r)}}}(6),eg(""));var eS=n(5695),eT=n.n(eS),eE=n(7715),ew=n(9189),eA=n.n(ew);function eC(e){if(!Number.isSafeInteger(e)||e<0)throw Error(`Wrong positive integer: ${e}`)}function eN(e,...t){if(!(e instanceof Uint8Array))throw Error("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function eM(e,t=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")}function ek(e,t){eN(e);let n=t.outputLen;if(e.lengthe instanceof Uint8Array,ej=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),eO=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),eP=(e,t)=>e<<32-t|e>>>t,eF=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0];if(!eF)throw Error("Non little-endian hardware is not supported");function eL(e){if("string"==typeof e&&(e=function(e){if("string"!=typeof e)throw Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}(e)),!eI(e))throw Error(`expected Uint8Array, got ${typeof e}`);return e}class ez{clone(){return this._cloneInto()}}function eR(e){let t=t=>e().update(eL(t)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}class eB extends ez{constructor(e,t,n,r){super(),this.blockLen=e,this.outputLen=t,this.padOffset=n,this.isLE=r,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=eO(this.buffer)}update(e){eM(this);let{view:t,buffer:n,blockLen:r}=this;e=eL(e);let i=e.length;for(let o=0;or-o&&(this.process(n,0),o=0);for(let e=o;e>i&o),s=Number(n&o),u=r?4:0,l=r?0:4;e.setUint32(t+u,a,r),e.setUint32(t+l,s,r)})(n,r-8,BigInt(8*this.length),i),this.process(n,0);let a=eO(e),s=this.outputLen;if(s%4)throw Error("_sha2: outputLen should be aligned to 32bit");let u=s/4,l=this.get();if(u>l.length)throw Error("_sha2: outputLen bigger than state");for(let e=0;ee&t^~e&n,eJ=(e,t,n)=>e&t^e&n^t&n,e$=new Uint32Array([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]),eK=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),eV=new Uint32Array(64);class eY extends eB{constructor(){super(64,32,8,!1),this.A=0|eK[0],this.B=0|eK[1],this.C=0|eK[2],this.D=0|eK[3],this.E=0|eK[4],this.F=0|eK[5],this.G=0|eK[6],this.H=0|eK[7]}get(){let{A:e,B:t,C:n,D:r,E:i,F:o,G:a,H:s}=this;return[e,t,n,r,i,o,a,s]}set(e,t,n,r,i,o,a,s){this.A=0|e,this.B=0|t,this.C=0|n,this.D=0|r,this.E=0|i,this.F=0|o,this.G=0|a,this.H=0|s}process(e,t){for(let n=0;n<16;n++,t+=4)eV[n]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=eV[e-15],n=eV[e-2],r=eP(t,7)^eP(t,18)^t>>>3,i=eP(n,17)^eP(n,19)^n>>>10;eV[e]=i+eV[e-7]+r+eV[e-16]|0}let{A:n,B:r,C:i,D:o,E:a,F:s,G:u,H:l}=this;for(let e=0;e<64;e++){let t=eP(a,6)^eP(a,11)^eP(a,25),c=l+t+eU(a,s,u)+e$[e]+eV[e]|0,_=eP(n,2)^eP(n,13)^eP(n,22),p=_+eJ(n,r,i)|0;l=u,u=s,s=a,a=o+c|0,o=i,i=r,r=n,n=c+p|0}n=n+this.A|0,r=r+this.B|0,i=i+this.C|0,o=o+this.D|0,a=a+this.E|0,s=s+this.F|0,u=u+this.G|0,l=l+this.H|0,this.set(n,r,i,o,a,s,u,l)}roundClean(){eV.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}let eW=eR(()=>new eY);var eq=n(7152),eQ=n.n(eq)()({proto:!1,circles:!1});function eH(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&void 0!==arguments[0]?arguments[0]:{};return(0,eE.refine)((0,eE.union)([(0,eE.string)(),(0,eE.instance)(URL)]),"uri",function(t){try{var n=new URL(t),r=(0,eE.type)(e);return(0,eE.assert)(n,r),!0}catch(e){return'Expected URL, got "'.concat(t.toString(),'".')}})};function e9(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}RegExp("^(?:[A-Za-z0-9-_]+( [A-Za-z0-9-_]+)*)|(?:(?:@[A-Za-z0-9-*~][A-Za-z0-9-*._~]*\\/)?[A-Za-z0-9-~][A-Za-z0-9-._~]*)$","u"),function(e){e.Installing="installing",e.Updating="updating",e.Running="running",e.Stopped="stopped",e.Crashed="crashed"}(u||(u={})),function(e){e.Start="START",e.Stop="STOP",e.Crash="CRASH",e.Update="UPDATE"}(l||(l={})),tu(Error);function tp(){var e;return(e=function(e){var t,n,r,i,o,a,s;return tc(this,function(u){switch(u.label){case 0:var l;return t=e.manifest,n=e.sourceCode,r=e.svgIcon,i=e.auxiliaryFiles,o=e.localizationFiles,a=[(l=t.clone(),delete l.result.source.shasum,l.value=eT()(l.result),l),n,r].concat(ta(i),ta(o)).filter(function(e){return void 0!==e}),s=eD.encode,[4,function(e){return e5.apply(this,arguments)}(a)];case 1:return[2,s.apply(eD,[u.sent()])]}})},tp=function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){tt(o,r,i,a,s,"next",e)}function s(e){tt(o,r,i,a,s,"throw",e)}a(void 0)})}).apply(this,arguments)}var td=(0,eE.pattern)((0,eE.string)(),RegExp("^[\\x21-\\x7E]*$","u")),tf=e7({protocol:(0,eE.enums)(["http:","https:"]),hostname:(0,eE.enums)(["localhost","127.0.0.1","[::1]"]),hash:(0,eE.empty)((0,eE.string)()),search:(0,eE.empty)((0,eE.string)())}),tm=(0,eE.refine)(td,"local Snap Id",function(e){if(!e.startsWith(o.local))return'Expected local snap ID, got "'.concat(e,'".');var t=to((0,eE.validate)(e.slice(o.local.length),tf),1)[0];return null==t||t}),th=(0,eE.intersection)([td,e7({protocol:(0,eE.literal)(o.npm),pathname:(0,eE.refine)((0,eE.string)(),"package name",function(e){var t,n,r,i,o;return tc(this,function(a){switch(a.label){case 0:if(t=e.startsWith("/")?e.slice(1):e,r=(n=eA()(t)).errors,i=n.validForNewPackages,o=n.warnings,i)return[3,4];if(void 0!==r)return[3,2];return(0,j.assert)(void 0!==o),[5,t_(o)];case 1:return a.sent(),[3,4];case 2:return[5,t_(r)];case 3:a.sent(),a.label=4;case 4:return[2,!0]}})}),search:(0,eE.empty)((0,eE.string)()),hash:(0,eE.empty)((0,eE.string)())})]),ty=(0,eE.intersection)([td,e7({protocol:(0,eE.enums)(["http:","https:"]),search:(0,eE.empty)((0,eE.string)()),hash:(0,eE.empty)((0,eE.string)())})]),tg=(0,eE.union)([th,tm]);function tb(e){var t=Object.values(o).find(function(t){return e.startsWith(t)});if(void 0!==t)return t;throw Error('Invalid or no prefix found for "'.concat(e,'"'))}function tv(e){return e.replace(tb(e),"")}function tx(e){return(0,j.getSafeJson)(JSON.parse(e))}var tD=n(6116);function tS(e,t){return e.length===t.length&&e.every(function(e,n){return e===t[n]})}var tT=n(3601),tE=(0,eE.object)({jsonrpc:(0,eE.optional)(j.JsonRpcVersionStruct),id:(0,eE.optional)(j.JsonRpcIdStruct),method:(0,eE.string)(),params:(0,eE.optional)(j.JsonRpcParamsStruct)}),tw=(0,eE.refine)((0,eE.string)(),"CronExpression",function(e){try{return(0,tT.parseExpression)(e),!0}catch(e){return!1}}),tA=(0,eE.object)({expression:tw,request:tE}),tC=(0,eE.array)(tA),tN="1399742832'",tM="572232532'",tk=n(3099),tI=(0,eE.refine)((0,eE.object)({dapps:(0,eE.optional)((0,eE.boolean)()),snaps:(0,eE.optional)((0,eE.boolean)()),allowedOrigins:(0,eE.optional)((0,eE.array)((0,eE.string)()))}),"RPC origins",function(e){return!0===e.snaps||!0===e.dapps||!!e.allowedOrigins&&e.allowedOrigins.length>0||"Must specify at least one JSON-RPC origin."}),tj=(0,eE.object)({allowedOrigins:(0,eE.optional)((0,eE.array)((0,eE.string)()))}),tO=RegExp("^(?[-a-z0-9]{3,8}):(?[-a-zA-Z0-9]{1,32})$","u"),tP=RegExp("^(?(?[-a-z0-9]{3,8}):(?[-a-zA-Z0-9]{1,32})):(?[a-zA-Z0-9]{1,64})$","u"),tF=RegExp("^(?[a-zA-Z0-9]{1,64})$","u"),tL=(0,eE.size)((0,eE.string)(),1,40),tz=(0,eE.define)("Chain ID",(0,eE.string)().validator),tR=(0,eE.pattern)(tz,tO),tB=(0,eE.pattern)((0,eE.string)(),tP);(0,eE.array)(tB),(0,eE.pattern)((0,eE.string)(),tF);var tU=(0,eE.object)({id:tR,name:tL}),tJ=((0,eE.object)({chains:(0,eE.array)(tU),methods:(0,eE.optional)((0,eE.array)(tL)),events:(0,eE.optional)((0,eE.array)(tL))}),(0,eE.pattern)((0,eE.string)(),RegExp("^[-a-z0-9]{3,8}$","u")),[tN,tM]),t$=[60],tK=t$.map(function(e){return["m","44'","".concat(e,"'")]}),tV=(0,eE.refine)((0,eE.array)((0,eE.string)()),"BIP-32 path",function(e){return 0===e.length?"Path must be a non-empty BIP-32 derivation path array":"m"!==e[0]?'Path must start with "m".':e.length<3?"Paths must have a length of at least three.":e.slice(1).some(function(e){return!(0,tD.isValidBIP32PathSegment)(e)})?"Path must be a valid BIP-32 derivation path array.":tJ.includes(e[1])?'The purpose "'.concat(e[1],'" is not allowed for entropy derivation.'):!tK.some(function(t){return tS(e.slice(0,t.length),t)})||'The path "'.concat(e.join("/"),'" is not allowed for entropy derivation.')}),tY=function(e){return(0,eE.refine)(e,"BIP-32 entropy",function(e){return!("ed25519"===e.curve&&e.path.slice(1).some(function(e){return!e.endsWith("'")}))||"Ed25519 does not support unhardened paths."})},tW=tY((0,eE.type)({path:tV,curve:(0,eE.enums)(["ed25519","secp256k1"])})),tq=(0,eE.size)((0,eE.array)(tW),1,1/0),tQ=(0,eE.refine)((0,eE.string)(),"SemVer range",function(e){return!!(0,j.isValidSemVerRange)(e)||"Expected a valid SemVer range."}),tH=(0,eE.refine)((0,eE.record)(tg,(0,eE.object)({version:(0,eE.optional)(tQ)})),"SnapIds",function(e){return 0!==Object.keys(e).length}),tG=(0,eE.array)(tR),tZ=(0,eE.type)({"endowment:network-access":(0,eE.optional)((0,eE.object)({})),"endowment:webassembly":(0,eE.optional)((0,eE.object)({})),"endowment:signature-insight":(0,eE.optional)((0,eE.object)({allowSignatureOrigin:(0,eE.optional)((0,eE.boolean)())})),"endowment:transaction-insight":(0,eE.optional)((0,eE.object)({allowTransactionOrigin:(0,eE.optional)((0,eE.boolean)())})),"endowment:cronjob":(0,eE.optional)((0,eE.object)({jobs:tC})),"endowment:rpc":(0,eE.optional)(tI),"endowment:name-lookup":(0,eE.optional)(tG),"endowment:keyring":(0,eE.optional)(tj),snap_dialog:(0,eE.optional)((0,eE.object)({})),snap_confirm:(0,eE.optional)((0,eE.object)({})),snap_manageState:(0,eE.optional)((0,eE.object)({})),snap_manageAccounts:(0,eE.optional)((0,eE.object)({})),snap_notify:(0,eE.optional)((0,eE.object)({})),snap_getBip32Entropy:(0,eE.optional)(tq),snap_getBip32PublicKey:(0,eE.optional)(tq),snap_getBip44Entropy:(0,eE.optional)((0,eE.size)((0,eE.array)((0,eE.object)({coinType:(0,eE.size)((0,eE.integer)(),0,4294967295)})),1,1/0)),snap_getEntropy:(0,eE.optional)((0,eE.object)({})),wallet_snap:(0,eE.optional)(tH)}),tX=(0,eE.array)((0,eE.string)()),t0=(0,eE.record)((0,eE.intersection)([(0,eE.string)(),e7()]),(0,eE.object)({})),t1=(0,eE.object)({version:j.VersionStruct,description:(0,eE.size)((0,eE.string)(),1,280),proposedName:(0,eE.size)((0,eE.string)(),1,214),repository:(0,eE.optional)((0,eE.object)({type:(0,eE.size)((0,eE.string)(),1,1/0),url:(0,eE.size)((0,eE.string)(),1,1/0)})),source:(0,eE.object)({shasum:j.ChecksumStruct,location:(0,eE.object)({npm:(0,eE.object)({filePath:(0,eE.size)((0,eE.string)(),1,1/0),iconPath:(0,eE.optional)((0,eE.size)((0,eE.string)(),1,1/0)),packageName:e8,registry:(0,eE.union)([(0,eE.literal)("https://registry.npmjs.org"),(0,eE.literal)("https://registry.npmjs.org/")])})}),files:(0,eE.optional)(tX),locales:(0,eE.optional)(tX)}),initialConnections:(0,eE.optional)(t0),initialPermissions:tZ,manifestVersion:(0,eE.literal)("0.1"),$schema:(0,eE.optional)((0,eE.string)())});function t2(e){return(0,eE.create)(e,t1)}function t3(e){return((0,j.assert)(!e.startsWith("/")),(0,j.assert)(-1===e.search(RegExp(":|\\/\\/","u")),'Path "'.concat(e,'" potentially an URI instead of local relative')),e.startsWith("./"))?e.slice(2):e}var t4=n(4325),t6=n(101),t5=n.n(t6),t8=n(6692),t7=n(7525),t9=n(8146),ne=n(2623);function nt(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){n(e);return}s.done?t(u):Promise.resolve(u).then(r,i)}function nn(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){nt(o,r,i,a,s,"next",e)}function s(e){nt(o,r,i,a,s,"throw",e)}a(void 0)})}}function nr(e,t){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}function ni(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function no(e,t,n){if(!t.has(e))throw TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function na(e,t){var n=no(e,t,"get");return n.get?n.get.call(e):n.value}function ns(e,t,n){nr(e,t),t.set(e,n)}function nu(e,t,n){var r=no(e,t,"set");return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw TypeError("attempted to set read only private field");t.value=n}}(e,r,n),n}function nl(e,t){for(var n=0;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]1&&void 0!==arguments[1]?arguments[1]:{};return(0,eE.is)(e,e7(t))}(n)||!n.toString().endsWith(".tgz"))throw Error('Failed to find valid tarball URL in NPM metadata for package "'.concat(this.meta.packageName,'".'));return(i=new URL(n)).hostname=this.meta.registry.hostname,i.protocol=this.meta.registry.protocol,[4,this.fetchNpmTarball(i)];case 3:return nu(this,nh,o.sent()),this.meta.version=r,[2]}})})).apply(this,arguments)}var nv=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&np(e,t)}(r,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n,i=n_(r);if(t){var o=n_(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return(e=n)&&("object"==(e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)||"function"==typeof e)?e:function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this)});function r(){return ni(this,r),n.apply(this,arguments)}return nc(r,[{key:"fetchNpmTarball",value:function(e){var t=this;return nn(function(){var n,r,i;return nd(this,function(o){switch(o.label){case 0:return[4,t.meta.fetch(e.toString())];case 1:if(!(n=o.sent()).ok||!n.body)throw Error('Failed to fetch tarball for package "'.concat(t.meta.packageName,'".'));return r=n.headers.get("content-length"),(0,j.assert)(r,"Snap tarball has invalid content-length"),i=parseInt(r,10),(0,j.assert)(i<=262144e3,"Snap tarball exceeds size limit"),[2,new Promise(function(e,r){var i,o,a,s,u,l,c,_=new Map;(0,t7.pipeline)("function"!=typeof(i=n.body).getReader?i:new t9.F(i),(0,t4.createGunzip)(),(o=t.meta.registry,a=t.meta.packageName,s="npm://",""!==o.username&&(s+=o.username,""!==o.password&&(s+=":".concat(o.password)),s+="@"),u="".concat(s).concat(o.host,"/").concat(a,"/"),(0,j.assert)(u.endsWith("/"),"Base needs to end with '/' for relative paths to be added as children instead of siblings."),(0,j.assert)(u.startsWith("npm:"),'Protocol mismatch, expected "npm:".'),l=(0,ne.extract)(),c=0,l.on("entry",function(e,t,n){var r=e.name;if("file"===e.type){var i=r.replace(nE,"");return t.pipe(t5()({encoding:"uint8array"},function(e){try{c+=e.byteLength,(0,j.assert)(c<262144e3,"Snap tarball exceeds limit of ".concat(262144e3," bytes."));var t=new eX({value:e,path:i,data:{canonicalPath:new URL(i,u).toString()}});return(0,j.assert)(!_.has(i),"Malformed tarball, multiple files with the same path."),_.set(i,t),n()}catch(e){return l.destroy(e)}}))}return t.on("end",function(){return n()}),t.resume()}),l),function(t){t?r(t):e(_)})})]}})})()}}]),r}(function(){function e(t){var n,r,i,o,a,s,u,l,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ni(this,e),nr(this,ny),ny.add(this),r=void 0,(n="meta")in this?Object.defineProperty(this,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):this[n]=r,ns(this,nm,{writable:!0,value:void 0}),ns(this,nh,{writable:!0,value:void 0});var _=null!==(o=c.allowCustomRegistries)&&void 0!==o&&o,p=null!==(a=c.fetch)&&void 0!==a?a:globalThis.fetch.bind(globalThis),d=null!==(s=c.versionRange)&&void 0!==s?s:"*",f=(i=nn(function(e){return nd(this,function(t){return[2,e]})}),function(e){return i.apply(this,arguments)}),m=null!==(u=c.resolveVersion)&&void 0!==u?u:f;(0,j.assertStruct)(t.toString(),th,"Invalid Snap Id: "),""===t.host&&""===t.port&&""===t.username&&""===t.password?l=nf:(l="https://",t.username&&(l+=t.username,t.password&&(l+=":".concat(t.password)),l+="@"),l+=t.host,l=new URL(l),(0,j.assert)(_,TypeError('Custom NPM registries are disabled, tried to use "'.concat(l.toString(),'".')))),(0,j.assert)("/"===l.pathname&&""===l.search&&""===l.hash),(0,j.assert)(""!==t.pathname&&"/"!==t.pathname,TypeError("The package name in NPM location is empty."));var h=t.pathname;h.startsWith("/")&&(h=h.slice(1)),this.meta={requestedRange:d,registry:l,packageName:h,fetch:p,resolveVersion:m}}return nc(e,[{key:"manifest",value:function(){var e=this;return nn(function(){var t,n;return nd(this,function(r){switch(r.label){case 0:if(na(e,nm))return[2,na(e,nm).clone()];return[4,e.fetch("snap.manifest.json")];case 1:return n=tx((t=r.sent()).toString()),t.result=t2(n),nu(e,nm,t),[2,e.manifest()]}})})()}},{key:"fetch",value:function(e){var t=this;return nn(function(){var n,r;return nd(this,function(i){switch(i.label){case 0:if(n=t3(e),na(t,nh))return[3,2];return[4,(function(e,t,n){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return n})(t,ny,ng).call(t)];case 1:i.sent(),(0,j.assert)(void 0!==na(t,nh)),i.label=2;case 2:return r=na(t,nh).get(n),(0,j.assert)(void 0!==r,TypeError('File "'.concat(e,'" not found in package.'))),[2,r.clone()]}})})()}},{key:"packageName",get:function(){return this.meta.packageName}},{key:"version",get:function(){return(0,j.assert)(void 0!==this.meta.version,"Tried to access version without first fetching NPM package."),this.meta.version}},{key:"registry",get:function(){return this.meta.registry}},{key:"versionRange",get:function(){return this.meta.requestedRange}}]),e}());function nx(e,t,n){return nD.apply(this,arguments)}function nD(){return(nD=nn(function(e,t,n){var r,i;return nd(this,function(o){switch(o.label){case 0:return[4,n(new URL(e,t).toString(),{headers:{accept:nS(t)?"application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*":"application/json"}})];case 1:if(!(r=o.sent()).ok)throw Error("Failed to fetch NPM registry entry. Status code: ".concat(r.status,"."));return[4,r.json()];case 2:if(i=o.sent(),!(0,j.isObject)(i))throw Error('Failed to fetch package "'.concat(e,'" metadata from npm.'));return[2,i]}})})).apply(this,arguments)}function nS(e){return e.toString()===nf.toString()}function nT(){return(nT=nn(function(e,t,n,r){var i,o,a,s,u,l,c,_;return nd(this,function(p){switch(p.label){case 0:if(nS(n)&&(0,j.isValidSemVerVersion)(t))return[2,{tarballURL:(0,t8.Z)(e,t),targetVersion:t}];return[4,nx(e,n,r)];case 1:var d,f;if(d=Object.keys(null!==(c=null===(i=l=p.sent())||void 0===i?void 0:i.versions)&&void 0!==c?c:{}).map(function(e){return(0,j.assertIsSemVerVersion)(e),e}),null===(_=(f=(0,em.maxSatisfying)(d,t))?f:(0,em.maxSatisfying)(d,t,{includePrerelease:!0})))throw Error('Failed to find a matching version in npm metadata for package "'.concat(e,'" and requested semver range "').concat(t,'".'));return[2,{tarballURL:null===(u=l)||void 0===u?void 0:null===(s=u.versions)||void 0===s?void 0:null===(a=s[_])||void 0===a?void 0:null===(o=a.dist)||void 0===o?void 0:o.tarball,targetVersion:_}]}})})).apply(this,arguments)}var nE=RegExp("^package\\/","u");function nw(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&(0,I.jsx)(Z.InputRightAddon,{px:"0",bg:"chakra-body-bg",borderColor:"border.default",children:(0,I.jsx)(Z.Select,{border:"none",onChange:function(e){x(e.currentTarget.value)},value:v,children:y.map(function(e){return(0,I.jsx)("option",{value:e,children:e},"version-".concat(e))})})})]}),(0,I.jsx)(Z.FormLabel,{children:"Environment SRP"}),(0,I.jsx)(Z.Textarea,{value:r,readOnly:!0,color:"text.muted",fontSize:"sm"}),(0,I.jsxs)(Z.HStack,{alignItems:"center",justifyContent:"space-between",mb:"4",children:[(0,I.jsx)(Z.FormLabel,{mb:"0",htmlFor:"ses-switch",children:"Secure EcmaScript (SES)"}),(0,I.jsx)(Z.Switch,{id:"ses-switch",size:"lg",isChecked:i,readOnly:!0,colorScheme:"gray"})]}),(0,I.jsxs)(Z.HStack,{alignItems:"center",justifyContent:"space-between",children:[(0,I.jsx)(Z.FormLabel,{mb:"0",htmlFor:"darkmode-switch",children:"Dark Mode"}),(0,I.jsx)(Z.Switch,{id:"darkmode-switch",size:"lg",isChecked:"dark"===u,onChange:function(){l()},colorScheme:"gray"})]})]})}),(0,I.jsx)(Z.Divider,{my:"4"}),(0,I.jsx)(Z.ModalFooter,{pb:"6",pt:"2",children:(0,I.jsx)(Z.Button,{variant:"primary",fontFamily:"default",fontWeight:"semibold",fontSize:"sm",width:"100%",onClick:S,children:"Apply config"})})]})]})};function nM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["to","isExternal","children"]);return void 0!==n&&n?(0,I.jsx)(Z.Link,ru(rs({isExternal:!0,href:t},i),{children:r})):(0,I.jsx)(Z.Link,ru(rs({as:F.Link,to:t},i),{children:r}))},rc=function(e){var t=e.path,n=e.tag,r=e.isExternal,i=e.onClick,o=e.children,a=(0,F.useMatch)(t);return(0,I.jsx)(Z.ListItem,{children:(0,I.jsx)(rl,{padding:"2",variant:a?"navigation-active":"navigation-default",to:t,display:"block",isExternal:void 0!==r&&r,onClick:i,"data-testid":"navigation-".concat(n),_hover:{textDecoration:"none",opacity:1,background:"background.hover"},children:(0,I.jsx)(Z.Stack,{direction:"row",align:"center",children:o})})})};!function(e){e.Valid="valid",e.Invalid="invalid",e.Unknown="unknown"}(p||(p={}));var r_={valid:p.Unknown,results:[]},rp=(0,L.createSlice)({name:"manifest",initialState:r_,reducers:{setValid:function(e,t){e.valid=t.payload},setResults:function(e,t){e.results=t.payload}}}),rd=(0,L.createAction)("".concat(rp.name,"/validateManifest")),rf=rp.actions,rm=rf.setValid,rh=rf.setResults,ry=rp.reducer,rg=(0,L.createSelector)(function(e){return e.manifest},function(e){return e.valid}),rb=(0,L.createSelector)(function(e){return e.manifest},function(e){return e.results});function rv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rx=(rv(d={},p.Valid,"success.default"),rv(d,p.Invalid,"error.default"),d),rD=function(){var e=et(rg);return e===p.Unknown?null:(0,I.jsx)(Z.Box,{position:"absolute",bottom:"0",right:"0",width:"10px",height:"10px",background:rx[e],borderRadius:"5px"})},rS=function(e){var t=e.children,n=e.path,r=!!(0,F.useMatch)(n);return(0,I.jsx)(Z.Tag,{borderRadius:"base",variant:"code",color:r?"#0376C9":"info.default",backgroundColor:r?"rgba(3, 118, 201, 0.1)":"info.muted",children:t})},rT=[{label:"JSON-RPC",tag:"onRpcRequest",description:"Send a JSON-RPC request to the snap",icon:"jsonRpc",path:"/handler/".concat(e.OnRpcRequest)},{label:"Cronjobs",tag:"onCronjob",description:"Schedule and run periodic actions",icon:"cronjob",path:"/handler/".concat(e.OnCronjob)},{label:"Transaction",tag:"onTransaction",description:"Send a transaction to the snap",icon:"insights",path:"/handler/".concat(e.OnTransaction)},{label:"UI Builder",tag:"ui",description:"Build a user interface for the snap",icon:"ui",path:"/builder"}],rE=function(){var e=et(function(e){return e});return(0,I.jsx)(Z.Container,{as:"nav",size:"fullWidth",display:"flex",flexDirection:"column",padding:"2",flex:"1",children:(0,I.jsxs)(Z.Stack,{as:Z.List,spacing:"2",flex:"1",children:[rT.map(function(t){var n=t.condition,r=t.icon,i=t.label,o=t.tag,a=t.description,s=t.path;return n&&!n(e)?null:(0,I.jsxs)(rc,{path:s,tag:o,children:[(0,I.jsx)(ee,{icon:r}),(0,I.jsxs)(Z.Box,{children:[(0,I.jsxs)(Z.Text,{children:[(0,I.jsx)(Z.Box,{as:"span",fontWeight:"600",children:i})," ",(0,I.jsx)(rS,{path:s,children:o})]}),(0,I.jsx)(Z.Text,{fontSize:"sm",marginTop:"1",children:a})]})]},s)}),(0,I.jsxs)(rc,{tag:"manifest",path:"/manifest",children:[(0,I.jsxs)(Z.Box,{position:"relative",children:[(0,I.jsx)(ee,{icon:"manifest"}),(0,I.jsx)(rD,{})]}),(0,I.jsxs)(Z.Box,{children:[(0,I.jsxs)(Z.Text,{children:[(0,I.jsx)(Z.Box,{as:"span",fontWeight:"600",children:"Manifest"})," ",(0,I.jsx)(rS,{path:"/manifest",children:"snap.manifest.json"})]}),(0,I.jsx)(Z.Text,{fontSize:"sm",marginTop:"1",children:"Validate the snap manifest"})]})]},"manifest")]})})},rw=function(){var e=G();return(0,I.jsxs)(Z.List,{borderTop:"1px solid",borderTopColor:"border.default",padding:"2",children:[(0,I.jsxs)(rc,{path:"https://github.com/MetaMask/snaps/tree/main/packages/snaps-simulator",isExternal:!0,tag:"github",children:[(0,I.jsx)(ee,{icon:"gitHub",width:"24px"}),(0,I.jsxs)(Z.Box,{children:[(0,I.jsx)(Z.Text,{children:(0,I.jsx)(Z.Box,{as:"span",fontWeight:"600",children:"GitHub"})}),(0,I.jsx)(Z.Text,{fontSize:"sm",marginTop:"1",children:"Report an issue or contribute to the project"})]})]}),(0,I.jsxs)(rc,{path:"#",onClick:function(){e(B())},tag:"configuration",children:[(0,I.jsx)(ee,{icon:"configuration",width:"24px"}),(0,I.jsxs)(Z.Box,{children:[(0,I.jsx)(Z.Text,{children:(0,I.jsx)(Z.Box,{as:"span",fontWeight:"600",children:"Settings"})}),(0,I.jsx)(Z.Text,{fontSize:"sm",marginTop:"1",children:"Configure the simulation environment"})]})]})]})},rA=function(){return(0,I.jsxs)(Z.Flex,{width:"375px",borderRight:"muted",flexShrink:"0",flexDirection:"column",children:[(0,I.jsx)(rE,{}),(0,I.jsx)(rw,{})]})};!function(e){e.Copyable="copyable",e.Divider="divider",e.Heading="heading",e.Panel="panel",e.Spinner="spinner",e.Text="text",e.Image="image",e.Row="row",e.Address="address"}(f||(f={}));var rC=(0,eE.object)({type:(0,eE.string)()}),rN=(0,eE.assign)(rC,(0,eE.object)({value:(0,eE.unknown)()})),rM=n(6761),rk={$schema:"http://json-schema.org/draft-04/schema#",type:"object",properties:{jsonrpc:{const:"2.0"},id:{oneOf:[{type:"string"},{type:"number"},{type:"null"}]},method:{type:"string"},params:{type:["number","string","boolean","object","array","null"]}},required:["jsonrpc","id","method"],additionalProperties:!1},rI=JSON.stringify({jsonrpc:"2.0",id:1,method:"subtract",params:[42,23]},null,2);function rj(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["border"]),o=(0,Z.useColorMode)().colorMode;return(0,I.jsx)(Z.Box,{width:"100%",padding:"4",border:void 0===r?"1px solid":r,borderColor:"gray.muted",borderRadius:"md",flex:"1",children:(0,I.jsx)(rM.default,(t=rj({language:"json",editorWillMount:function(e){var t;e.editor.defineTheme("vs-dark-custom",{base:"vs-dark",inherit:!0,rules:[],colors:{"editor.background":"#24272A"}}),null===(t=e.languages.json)||void 0===t||t.jsonDefaults.setDiagnosticsOptions({validate:!0,schemas:[{uri:"http://json-schema.org/draft-04/schema#",fileMatch:["*"],schema:rk}]})},value:rI,theme:"light"===o?"vs-light":"vs-dark-custom"},i),n=n={options:rj({tabSize:2,scrollBeyondLastLine:!1,renderLineHighlight:"none",hideCursorInOverviewRuler:!0,scrollbar:{vertical:"visible",verticalScrollbarSize:5},minimap:{enabled:!1},lineNumbers:"off",automaticLayout:!0,glyphMargin:!1,folding:!1,lineDecorationsWidth:0,lineNumbersMinChars:0},i.options)},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t))})};function rP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rF(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:[];return function(){for(var r=arguments.length,i=Array(r),o=0;o=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["children","icon","iconLocation"]);return(0,I.jsxs)(Z.Tag,(n=function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n\n\n\n\n\n\n'),droppable:!1}],it=function(e){var t=e.nextId,n=e.incrementId;return(0,I.jsxs)(Z.Box,{marginBottom:"4",children:[(0,I.jsx)(Z.Text,{fontSize:"xs",fontWeight:"600",lineHeight:"133%",marginBottom:"1",children:"Components"}),(0,I.jsx)(Z.Flex,{as:Z.List,gap:"2",children:ie.map(function(e){return(0,I.jsx)(Z.ListItem,{children:(0,I.jsx)(r9,{incrementId:n,icon:e.icon,node:{id:t,parent:0,droppable:e.droppable,text:e.text,data:e.data}})},"component-".concat(e.text))})})]})},ir=n(328),ii=function(e){var t,n=e.node,r=e.isDragging,i=e.children,o=e.onClose;return(0,j.assert)(null===(t=n.data)||void 0===t?void 0:t.type,"Node must have a type."),(0,I.jsxs)(Z.Flex,{paddingY:"2",paddingLeft:"4",paddingRight:"2",background:"background.alternative",borderRadius:"lg",gap:"4",alignItems:"center",border:"1px solid",borderColor:"border.default",display:r?"none":"flex",marginX:"4",cursor:n.id>1?"move":"default",children:[(0,I.jsx)(ee,{icon:n.data.type,width:"16px"}),(0,I.jsx)(Z.Text,{fontWeight:"500",fontSize:"sm",textTransform:"capitalize",color:"text.muted",display:"inline-block",minWidth:"65px",children:n.data.type}),i,n.id>=2&&(0,I.jsx)(ee,{icon:"cross",width:"11px",marginX:"0.5",marginLeft:"auto",cursor:"pointer",onClick:function(){null==o||o(n)}})]})},io=n(8261),ia=n.n(io),is=n(9691),iu=n.n(is);function il(e){var t=eQ(e),n=!0,r=!1,i=void 0;try{for(var o,a,s=t[Symbol.iterator]();!(n=(a=s.next()).done);n=!0)!function(){var e,n=a.value;(0,j.assert)(n.data,"Node model must have data.");var r=t.find(function(e){return e.id===n.parent});r&&((0,j.assert)((null===(e=r.data)||void 0===e?void 0:e.type)==="panel","Parent must be a panel."),r.data.children.push(n.data))}()}catch(e){r=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(r)throw i}}var u=t.find(function(e){return 0===e.parent});return(0,j.assert)((null==u?void 0:null===(o=u.data)||void 0===o?void 0:o.type)==="panel","Root must be a panel."),u.data}function ic(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n ul":{display:"flex",flexDirection:"column",flex:1,marginY:"4","& > li":{display:"flex",flexDirection:"column",flex:1,marginTop:"0"}},ul:{listStyleType:"none"},li:{marginTop:"2"}},children:(0,I.jsx)(ir.Tree,{ref:r,tree:t,rootId:0,render:function(e,n){var r=n.depth,a=n.isDragging;return t.length<=1?(0,I.jsx)(im,{}):(0,I.jsx)(id,{node:e,depth:r,onChange:i,onClose:o,isDragging:a})},insertDroppableFirst:!1,canDrag:function(e){return!!e&&e.id>=2},canDrop:function(e,t){var n=t.dropTarget,r=t.dropTargetId;return!!r&&(null==n?void 0:n.droppable)&&r>0},onDrop:function(e){n(e)},initialOpen:!0,sort:!1,extraAcceptTypes:["template"],placeholderRender:function(){return(0,I.jsx)(Z.Box,{width:"100%",height:"20px"})}})})},iy=function(e){var t=e.snapName,n=et(n6),r=n&&new Blob([n.value],{type:"image/svg+xml"}),i=r&&URL.createObjectURL(r);return(0,I.jsxs)(Z.Box,{position:"relative",children:[(0,I.jsx)(Z.Avatar,{src:i,name:t.slice(0,1).toUpperCase(),fontSize:"md",background:"background.alternative",color:"text.alternative",size:"sm",margin:"1"}),(0,I.jsx)(ee,{icon:"snap",width:"16px",height:"16px",position:"absolute",bottom:"0px",right:"0px"})]})},ig=function(e){var t=e.snapName,n=e.snapId;return(0,I.jsxs)(Z.Flex,{gap:"2",marginX:"4",marginY:"4",border:"1px solid",borderColor:"border.default",borderRadius:"32px",padding:"1",alignItems:"center",children:[(0,I.jsx)(iy,{snapName:t}),(0,I.jsxs)(Z.Flex,{direction:"column",justify:"center",children:[(0,I.jsx)(Z.Text,{fontSize:"sm",lineHeight:"157%",fontFamily:"custom",children:t}),(0,I.jsx)(Z.Text,{fontSize:"xs",lineHeight:"167%",fontFamily:"custom",color:"text.alternative",children:n})]})]})},ib=function(e){var t=e.snapName,n=e.snapId,r=e.children,i=e.showAuthorship;return(0,I.jsxs)(Z.Flex,{direction:"column",boxShadow:"lg",maxWidth:"360px",height:"600px",paddingY:"4",overflowY:"scroll",children:[(void 0===i||i)&&(0,I.jsx)(ig,{snapName:t,snapId:n}),r]})};!function(e){e.Content="content",e.Error="error",e.Insights="insights"}(h||(h={}));var iv=function(e,t){switch(e){case h.Insights:return"Insights from ".concat(t);case h.Error:return"Error from ".concat(t);default:return"Content from ".concat(t)}},ix=function(e){var t=e.type,n=e.snapName,r=e.children,i=t===h.Error;return(0,I.jsxs)(Z.Box,{border:"1px solid",borderColor:"border.default",borderRadius:"md",backgroundColor:i?"error.muted":void 0,children:[(0,I.jsxs)(Z.Flex,{direction:"row",alignItems:"center",padding:"1.5",borderBottom:"1px solid",borderColor:"border.default",children:[(0,I.jsx)(ee,{icon:i?"snapError":"snap",width:"16px",marginRight:"1"}),(0,I.jsx)(Z.Text,{fontFamily:"custom",fontSize:"xs",color:i?"text.error":void 0,children:iv(t,n)})]}),(0,I.jsx)(Z.Box,{padding:"3",children:r})]})};function iD(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["name","onClick"]);return(0,I.jsx)(r8,{cursor:"pointer",onClick:function(){n(r)},children:t})},oy=function(e){var t=e.onClick;return(0,I.jsxs)(Z.Box,{marginBottom:"4",children:[(0,I.jsx)(Z.Text,{fontWeight:"500",fontSize:"xs",marginBottom:"1",children:"Transaction presets"}),(0,I.jsx)(Z.Flex,{gap:"2",children:om.map(function(e,n){var r,i,o=e.name,a=e.transaction;return(0,P.createElement)(oh,(r=function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var ov={chainId:"eip155:1",origin:"metamask.io",from:"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",to:"0x9f2817015caF6607C1198fB943A8241652EE8906",value:"0.01",gas:"21000",nonce:"5",maxFeePerGas:"10",maxPriorityFeePerGas:"1",data:"0x"},ox=function(){var t,n,r,i,o,a,s,u,l,c,_,p=et(o_).request,d=null!==(_=null==p?void 0:p.params)&&void 0!==_?_:{},f=d.chainId,m=d.transactionOrigin,h=d.transaction;ov.chainId,ov.origin;var y=ob(ov,["chainId","origin"]),g=(0,i0.useForm)({defaultValues:og({chainId:null!=f?f:ov.chainId,transactionOrigin:null!=m?m:ov.origin},null!=h?h:y)}),b=g.handleSubmit,v=g.register,x=g.setValue,D=g.formState.errors,S=G();return(0,I.jsxs)(Z.Flex,{as:"form",flexDirection:"column",flex:"1",onSubmit:b(function(t){var n=t.chainId,r=t.transactionOrigin,i=ob(t,["chainId","transactionOrigin"]);S(nZ({origin:"",handler:e.OnTransaction,request:{jsonrpc:"2.0",method:"onTransaction",params:{chainId:n,transaction:of(i),transactionOrigin:r}}}))}),id:"request-form",children:[(0,I.jsx)(oy,{onClick:function(e){x("chainId",e.chainId),x("transactionOrigin",e.transactionOrigin),x("from",e.from),x("to",e.to),x("value",e.value),x("data",e.data),x("gas",e.gas),x("maxFeePerGas",e.maxFeePerGas),x("maxPriorityFeePerGas",e.maxPriorityFeePerGas),x("nonce",e.nonce)}}),(0,I.jsxs)(Z.Flex,{gap:"2",children:[(0,I.jsxs)(Z.FormControl,{isInvalid:!!D.chainId,children:[(0,I.jsx)(Z.FormLabel,{htmlFor:"chainId",children:"Chain ID"}),(0,I.jsx)(Z.Input,og({id:"chainId",placeholder:ov.chainId,fontFamily:"code"},v("chainId"))),(0,I.jsx)(Z.FormErrorMessage,{children:null===(t=D.chainId)||void 0===t?void 0:t.message})]}),(0,I.jsxs)(Z.FormControl,{isInvalid:!!D.transactionOrigin,children:[(0,I.jsx)(Z.FormLabel,{htmlFor:"origin",children:"Transaction Origin"}),(0,I.jsx)(Z.Input,og({id:"origin",placeholder:ov.origin,fontFamily:"code"},v("transactionOrigin"))),(0,I.jsx)(Z.FormErrorMessage,{children:null===(n=D.transactionOrigin)||void 0===n?void 0:n.message})]})]}),(0,I.jsxs)(Z.FormControl,{isInvalid:!!D.from,children:[(0,I.jsx)(Z.FormLabel,{htmlFor:"from",children:"From Address"}),(0,I.jsx)(Z.Input,og({id:"from",placeholder:ov.from,fontFamily:"code"},v("from"))),(0,I.jsx)(Z.FormErrorMessage,{children:null===(r=D.from)||void 0===r?void 0:r.message})]}),(0,I.jsxs)(Z.FormControl,{isInvalid:!!D.to,children:[(0,I.jsx)(Z.FormLabel,{htmlFor:"to",children:"To Address"}),(0,I.jsx)(Z.Input,og({id:"to",placeholder:ov.to,fontFamily:"code"},v("to"))),(0,I.jsx)(Z.FormErrorMessage,{children:null===(i=D.to)||void 0===i?void 0:i.message})]}),(0,I.jsxs)(Z.FormControl,{isInvalid:!!D.value,children:[(0,I.jsx)(Z.FormLabel,{htmlFor:"value",children:"Value"}),(0,I.jsxs)(Z.InputGroup,{children:[(0,I.jsx)(Z.Input,og({id:"value",placeholder:ov.value,fontFamily:"code"},v("value"))),(0,I.jsx)(Z.InputRightAddon,{children:"ETH",fontSize:"sm"})]}),(0,I.jsx)(Z.FormErrorMessage,{children:null===(o=D.value)||void 0===o?void 0:o.message})]}),(0,I.jsxs)(Z.Flex,{gap:"2",children:[(0,I.jsxs)(Z.FormControl,{isInvalid:!!D.gas,children:[(0,I.jsx)(Z.FormLabel,{htmlFor:"gas",children:"Gas Limit"}),(0,I.jsx)(Z.Input,og({id:"gas",placeholder:ov.gas,fontFamily:"code"},v("gas"))),(0,I.jsx)(Z.FormErrorMessage,{children:null===(a=D.gas)||void 0===a?void 0:a.message})]}),(0,I.jsxs)(Z.FormControl,{isInvalid:!!D.nonce,children:[(0,I.jsx)(Z.FormLabel,{htmlFor:"nonce",children:"Nonce"}),(0,I.jsx)(Z.Input,og({id:"nonce",placeholder:ov.nonce,fontFamily:"code"},v("nonce"))),(0,I.jsx)(Z.FormErrorMessage,{children:null===(s=D.nonce)||void 0===s?void 0:s.message})]})]}),(0,I.jsxs)(Z.Flex,{gap:"2",children:[(0,I.jsxs)(Z.FormControl,{isInvalid:!!D.maxFeePerGas,children:[(0,I.jsx)(Z.FormLabel,{htmlFor:"maxFeePerGas",children:"Max Fee Per Gas"}),(0,I.jsxs)(Z.InputGroup,{children:[(0,I.jsx)(Z.Input,og({id:"maxFeePerGas",placeholder:ov.maxFeePerGas,fontFamily:"code"},v("maxFeePerGas"))),(0,I.jsx)(Z.InputRightAddon,{children:"GWEI",fontSize:"sm"})]}),(0,I.jsx)(Z.FormErrorMessage,{children:null===(u=D.maxFeePerGas)||void 0===u?void 0:u.message})]}),(0,I.jsxs)(Z.FormControl,{isInvalid:!!D.maxPriorityFeePerGas,children:[(0,I.jsx)(Z.FormLabel,{htmlFor:"maxPriorityFeePerGas",children:"Max Priority Fee Per Gas"}),(0,I.jsxs)(Z.InputGroup,{children:[(0,I.jsx)(Z.Input,og({id:"maxPriorityFeePerGas",placeholder:ov.maxPriorityFeePerGas,fontFamily:"code"},v("maxPriorityFeePerGas"))),(0,I.jsx)(Z.InputRightAddon,{children:"GWEI",fontSize:"sm"})]}),(0,I.jsx)(Z.FormErrorMessage,{children:null===(l=D.maxPriorityFeePerGas)||void 0===l?void 0:l.message})]})]}),(0,I.jsxs)(Z.FormControl,{isInvalid:!!D.data,children:[(0,I.jsx)(Z.FormLabel,{htmlFor:"data",children:"Data"}),(0,I.jsx)(Z.Textarea,og({id:"data",placeholder:ov.data,fontFamily:"code"},v("data"))),(0,I.jsx)(Z.FormErrorMessage,{children:null===(c=D.data)||void 0===c?void 0:c.message})]})]})},oD=(0,F.createHashRouter)((0,F.createRoutesFromElements)((0,I.jsxs)(F.Route,{element:(0,I.jsx)(function(){return(0,I.jsxs)(Z.Flex,{direction:"column",height:"100vh",children:[(0,I.jsx)(ra,{}),(0,I.jsxs)(Z.Flex,{direction:"row",flex:"1",overflow:"hidden",children:[(0,I.jsx)(rA,{}),(0,I.jsxs)(Z.Flex,{direction:"column",width:"full",children:[(0,I.jsx)(Z.Flex,{flex:"1",overflow:"hidden",children:(0,I.jsx)(F.Outlet,{})}),(0,I.jsx)(e_,{})]})]})]})},{}),children:[(0,I.jsx)(F.Route,{path:"/",element:(0,I.jsx)(F.Navigate,{to:"/handler/".concat(e.OnRpcRequest),replace:!0})}),(0,I.jsx)(F.Route,{path:"/builder",element:(0,I.jsx)(function(){var e,t,n=iF((0,P.useState)(2),2),r=n[0],i=n[1],o=iF((0,P.useState)([{id:1,parent:0,text:"Panel",droppable:!0,data:{type:f.Panel,children:[]}}]),2),a=o[0],s=o[1];return(0,I.jsx)(Z.Flex,{width:"100%",direction:"column",overflow:"hidden",children:(0,I.jsxs)(Z.Flex,{direction:"row",flex:"1",overflow:"hidden",children:[(0,I.jsx)(Z.Flex,{direction:"column",flex:"1",width:"50%",overflow:"hidden",children:(0,I.jsxs)(Z.Tabs,{display:"flex",flexDirection:"column",flex:"1",overflow:"hidden",children:[(0,I.jsx)(Z.TabList,{children:(0,I.jsx)(Z.Tab,{children:"Builder"})}),(0,I.jsx)(Z.TabPanels,{display:"flex",flexDirection:"column",flex:"1",overflow:"hidden",children:(0,I.jsxs)(Z.TabPanel,{display:"flex",flexDirection:"column",flex:"1",overflowY:"auto",children:[(0,I.jsx)(it,{nextId:r,incrementId:function(){i(function(e){return e+1})}}),(0,I.jsx)(ih,{items:a,setItems:s})]})})]})}),(0,I.jsx)(Z.Box,{display:"flex",flexDirection:"column",flex:"1",width:"50%",borderLeft:"1px solid",borderColor:"border.default",children:(0,I.jsxs)(Z.Tabs,{display:"flex",flexDirection:"column",flex:"1",overflow:"hidden",children:[(0,I.jsxs)(Z.TabList,{children:[(0,I.jsx)(Z.Tab,{children:"Result"}),(0,I.jsx)(Z.Tab,{children:"Code"})]}),(0,I.jsxs)(Z.TabPanels,{display:"flex",flexDirection:"column",flex:"1",overflow:"hidden",children:[(0,I.jsx)(Z.TabPanel,{display:"flex",flexDirection:"column",flex:"1",padding:"4",children:(0,I.jsx)(iO,{items:a})}),(0,I.jsx)(Z.TabPanel,{display:"flex",flexDirection:"column",flex:"1",padding:"0",children:(0,I.jsx)(rO,{border:"none",value:(t=(function e(t){var n=new Set;n.add(t.type);var r=!0,i=!1,o=void 0;try{for(var a,s=t.children[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var u=a.value;if(n.add(u.type),"panel"===u.type){var l=e(u),c=!0,_=!1,p=void 0;try{for(var d,f=l[Symbol.iterator]();!(c=(d=f.next()).done);c=!0){var m=d.value;n.add(m)}}catch(e){_=!0,p=e}finally{try{c||null==f.return||f.return()}finally{if(_)throw p}}}}}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return Array.from(n).sort(function(e,t){return e.localeCompare(t)})})(e=il(a)).join(", "),iu().format("\n import { ".concat(t," } from '@metamask/snaps-sdk';\n\n const component = ").concat(function e(t){if(t.type===f.Panel)return"panel([\n".concat(t.children.map(e).join(",\n"),"\n])");var n=function e(t){switch(t.type){case f.Panel:return t.children.map(e).join(",\n");case f.Text:case f.Heading:case f.Copyable:case f.Image:return JSON.stringify(t.value);case f.Spinner:case f.Divider:default:return""}}(t);return"".concat(t.type,"(").concat(n,")")}(e),";\n"),{parser:"typescript",plugins:[ia()],printWidth:80,tabWidth:2,singleQuote:!0,trailingComma:"all"})),language:"typescript",options:{readOnly:!0}})})]})]})})]})})},{})}),(0,I.jsx)(F.Route,{path:"/manifest",element:(0,I.jsx)(function(){var e=et(re);return(0,I.jsx)(Z.Flex,{width:"100%",direction:"column",overflow:"hidden",children:(0,I.jsxs)(Z.Flex,{direction:"row",flex:"1",overflow:"hidden",children:[(0,I.jsx)(Z.Flex,{direction:"column",flex:"1",width:"50%",overflow:"hidden",children:(0,I.jsxs)(Z.Tabs,{display:"flex",flexDirection:"column",flex:"1",overflow:"hidden",children:[(0,I.jsx)(Z.TabList,{children:(0,I.jsx)(Z.Tab,{children:"Validation"})}),(0,I.jsx)(Z.TabPanels,{display:"flex",flexDirection:"column",flex:"1",overflow:"hidden",children:(0,I.jsx)(Z.TabPanel,{display:"flex",flexDirection:"column",flex:"1",padding:"0",children:(0,I.jsx)(iR,{})})})]})}),(0,I.jsx)(Z.Box,{display:"flex",flexDirection:"column",flex:"1",width:"50%",borderLeft:"1px solid",borderColor:"border.default",children:(0,I.jsxs)(Z.Tabs,{display:"flex",flexDirection:"column",flex:"1",overflow:"hidden",children:[(0,I.jsx)(Z.TabList,{children:(0,I.jsx)(Z.Tab,{children:"Manifest"})}),(0,I.jsx)(Z.TabPanels,{display:"flex",flexDirection:"column",flex:"1",overflow:"hidden",children:(0,I.jsx)(Z.TabPanel,{display:"flex",flexDirection:"column",flex:"1",padding:"0",children:(0,I.jsx)(rO,{border:"none",value:JSON.stringify(e,null,2),options:{readOnly:!0,wordWrap:"on"}})})})]})})]})})},{})}),(0,I.jsxs)(F.Route,{path:"/handler",element:(0,I.jsx)(function(){var e,t=function(e){if(Array.isArray(e))return e}(e=(0,P.useState)(0))||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,s=!1;try{for(i=i.call(e);!(a=(n=i.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==i.return||i.return()}finally{if(s)throw r}}return o}}(e,2)||function(e,t){if(e){if("string"==typeof e)return i3(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i3(e,t)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=t[0],r=t[1],i=et(n5);return(0,I.jsx)(Z.Flex,{width:"100%",direction:"column",overflow:"hidden",children:(0,I.jsxs)(Z.Flex,{direction:"row",flex:"1",overflow:"hidden",children:[(0,I.jsx)(iB,{isTest:!1,children:(0,I.jsx)(Z.Flex,{direction:"column",flex:"1",width:"50%",overflow:"hidden",children:(0,I.jsxs)(Z.Tabs,{display:"flex",flexDirection:"column",flex:"1",overflow:"hidden",isLazy:!0,onChange:r,children:[(0,I.jsx)(iQ,{}),(0,I.jsxs)(Z.TabList,{alignItems:"center",children:[(0,I.jsx)(Z.Tab,{children:"Request"}),(0,I.jsx)(Z.Tab,{children:"History"}),0===n&&(0,I.jsx)(Z.Box,{marginLeft:"auto",children:(0,I.jsx)(iq,{})})]}),(0,I.jsxs)(Z.TabPanels,{display:"flex",flexDirection:"column",flex:"1",overflow:"hidden",children:[(0,I.jsx)(Z.TabPanel,{display:"flex",flexDirection:"column",flex:"1",overflowY:"auto","data-testid":"tab-request",children:(0,I.jsx)(F.Outlet,{})}),(0,I.jsx)(Z.TabPanel,{padding:"0",display:"flex",flexDirection:"column",flex:"1",overflowY:"auto",children:(0,I.jsx)(iV,{})})]})]})})}),(0,I.jsx)(Z.Box,{display:"flex",flexDirection:"column",flex:"1",width:"50%",borderLeft:"1px solid",borderColor:"border.default",children:(0,I.jsxs)(Z.Tabs,{display:"flex",flexDirection:"column",flex:"1",overflow:"hidden",children:[(0,I.jsx)(iQ,{}),(0,I.jsx)(iH,{}),(0,I.jsxs)(Z.TabList,{children:[(0,I.jsx)(Z.Tab,{children:"Response"}),i&&(0,I.jsx)(Z.Tab,{children:"UI"})]}),(0,I.jsxs)(Z.TabPanels,{display:"flex",flexDirection:"column",flex:"1",overflow:"hidden",children:[(0,I.jsx)(Z.TabPanel,{display:"flex",flexDirection:"column",flex:"1",padding:"0","data-testid":"tab-response",children:(0,I.jsx)(iG,{})}),i&&(0,I.jsx)(Z.TabPanel,{overflowY:"auto","data-testid":"tab-ui",children:(0,I.jsx)(i2,{})})]})]})})]})})},{}),children:[(0,I.jsx)(F.Route,{path:"/handler/".concat(e.OnRpcRequest),element:(0,I.jsx)(function(){return(0,I.jsx)(i9,{})},{})}),(0,I.jsx)(F.Route,{path:"/handler/".concat(e.OnCronjob),element:(0,I.jsx)(function(){return(0,I.jsx)(os,{})},{})}),(0,I.jsx)(F.Route,{path:"/handler/".concat(e.OnTransaction),element:(0,I.jsx)(function(){return(0,I.jsx)(ox,{})},{})})]})]})));function oS(e){for(var t=1;t1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r2?o-2:0),s=2;s2?n-2:0),i=2;ie<>>32-n,aN=(e,t,n)=>t<>>32-n,aM=(e,t,n)=>t<>>64-n,ak=(e,t,n)=>e<>>64-n,[aI,aj,aO]=[[],[],[]],aP=BigInt(0),aF=BigInt(1),aL=BigInt(2),az=BigInt(7),aR=BigInt(256),aB=BigInt(113);for(let e=0,t=aF,n=1,r=0;e<24;e++){[n,r]=[r,(2*n+3*r)%5],aI.push(2*(5*r+n)),aj.push((e+1)*(e+2)/2%64);let i=aP;for(let e=0;e<7;e++)(t=(t<>az)*aB)%aR)&aL&&(i^=aF<<(aF<>aA&aw)}:{h:0|Number(e>>aA&aw),l:0|Number(e&aw)}}(e[i],t);[n[i],r[i]]=[o,a]}return[n,r]}(aO,!0),a$=(e,t,n)=>n>32?aM(e,t,n):aC(e,t,n),aK=(e,t,n)=>n>32?ak(e,t,n):aN(e,t,n);class aV extends ez{constructor(e,t,n,r=!1,i=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=n,this.enableXOF=r,this.rounds=i,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,eC(n),0>=this.blockLen||this.blockLen>=200)throw Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=ej(this.state)}keccak(){(function(e,t=24){let n=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let t=0;t<10;t++)n[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let r=(t+8)%10,i=(t+2)%10,o=n[i],a=n[i+1],s=a$(o,a,1)^n[r],u=aK(o,a,1)^n[r+1];for(let n=0;n<50;n+=10)e[t+n]^=s,e[t+n+1]^=u}let t=e[2],i=e[3];for(let n=0;n<24;n++){let r=aj[n],o=a$(t,i,r),a=aK(t,i,r),s=aI[n];t=e[s],i=e[s+1],e[s]=o,e[s+1]=a}for(let t=0;t<50;t+=10){for(let r=0;r<10;r++)n[r]=e[t+r];for(let r=0;r<10;r++)e[t+r]^=~n[(r+2)%10]&n[(r+4)%10]}e[0]^=aU[r],e[1]^=aJ[r]}n.fill(0)})(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){eM(this);let{blockLen:t,state:n}=this;e=eL(e);let r=e.length;for(let i=0;i=n&&this.keccak();let o=Math.min(n-this.posOut,i-r);e.set(t.subarray(this.posOut,this.posOut+o),r),this.posOut+=o,r+=o}return e}xofInto(e){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return eC(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(ek(e,this),this.finished)throw Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){let{blockLen:t,suffix:n,outputLen:r,rounds:i,enableXOF:o}=this;return e||(e=new aV(t,n,r,o,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=n,e.outputLen=r,e.enableXOF=o,e.destroyed=this.destroyed,e}}let aY=eR(()=>new aV(136,1,32));function aW(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]>>0;t.push("bip32:".concat(i-2147483648,"'"))}return t}(aY((0,j.concatBytes)([a,aY(s)]))),[4,tD.SLIP10Node.fromDerivationPath({derivationPath:[i,"bip32:".concat(o)].concat(aH(u)),curve:"secp256k1"})];case 1:return l=c.sent().privateKey,(0,j.assert)(l,"Failed to derive the entropy."),[2,(0,j.add0x)(l)]}})})).apply(this,arguments)}function a1(e){return a2.apply(this,arguments)}function a2(){return(a2=aQ(function(e){var t,n,r,i;return aG(this,function(o){switch(o.label){case 0:return t=e.curve,n=e.secretRecoveryPhrase,r=e.path,i="secp256k1"===t?"bip32":"slip10",[4,tD.SLIP10Node.fromDerivationPath({curve:t,derivationPath:[n].concat(aH(r.slice(1).map(function(e){return"".concat(i,":").concat(e)})))})];case 1:return[2,o.sent()]}})})).apply(this,arguments)}function a3(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){n(e);return}s.done?t(u):Promise.resolve(u).then(r,i)}var a4="snap_getBip32Entropy",a6=Object.freeze({targetName:a4,specificationBuilder:function(e){var t,n,i,o,a=e.methodHooks;return{permissionType:tk.PermissionType.RestrictedMethod,targetName:a4,allowedCaveats:[r.PermittedDerivationPaths],methodImplementation:(i=a.getMnemonic,o=a.getUnlockPromise,t=function(e){var t,n;return function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]2147483647)throw aE.PY.invalidParams({message:'Invalid "coinType" parameter. Coin type must be a non-negative integer.'});if(t$.includes(e.coinType))throw aE.PY.invalidParams({message:"Coin type ".concat(e.coinType," is forbidden.")})}var s_=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},r.PermittedCoinTypes,Object.freeze({type:r.PermittedCoinTypes,decorator:function(e,t){var n,r;return n=function(n){var r;return function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1][^\\]]*)\\]\\((?[^)]+)\\)","giu"),sb=["https:","mailto:"];function sv(e,t){var n=String.prototype.matchAll.call(e,sg),r=!0,i=!1,o=void 0;try{for(var a,s=n[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var u,l=a.value.groups,c=null==l?void 0:l.url;if(c)try{var _=new URL(c);(0,j.assert)(sb.includes(_.protocol),"Protocol must be one of: ".concat(sb.join(", "),"."));var p="mailto:"===_.protocol?_.pathname.split("@")[1]:_.hostname;(0,j.assert)(!t(p),"The specified URL is not allowed.")}catch(e){throw Error("Invalid URL: ".concat((u=j.AssertionError,null!=u&&"undefined"!=typeof Symbol&&u[Symbol.hasInstance]?!!u[Symbol.hasInstance](e):e instanceof u)?e.message:"Unable to parse URL."))}}}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}}function sx(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){n(e);return}s.done?t(u):Promise.resolve(u).then(r,i)}function sD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sS="snap_dialog",sT=(0,eE.optional)((0,eE.size)((0,eE.string)(),1,40)),sE=Object.freeze({targetName:sS,specificationBuilder:function(e){var t,n,r,i,o,a=e.allowedCaveats,s=e.methodHooks;return{permissionType:tk.PermissionType.RestrictedMethod,targetName:sS,allowedCaveats:void 0===a?null:a,methodImplementation:(r=s.showDialog,i=s.isOnPhishingList,o=s.maybeUpdatePhishingList,t=function(e){var t,n,a,s,u,l;return function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function sV(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]2&&void 0!==arguments[2]?arguments[2]:104857600;if(!(0,j.isObject)(e))throw aE.PY.invalidParams({message:"Expected params to be a single object."});var i=e.operation,o=e.newState,a=e.encrypted;if(!i||"string"!=typeof i||!Object.values(E).includes(i))throw aE.PY.invalidParams({message:'Must specify a valid manage state "operation".'});if(void 0!==a&&"boolean"!=typeof a)throw aE.PY.invalidParams({message:'"encrypted" parameter must be a boolean if specified.'});if(i===E.UpdateState){if(!(0,j.isObject)(o))throw aE.PY.invalidParams({message:"Invalid ".concat(t,' "updateState" parameter: The new state must be a plain object.'),data:{receivedNewState:void 0===o?"undefined":o}});try{n=(0,j.getJsonSize)(o)}catch(e){throw aE.PY.invalidParams({message:"Invalid ".concat(t,' "updateState" parameter: The new state must be JSON serializable.'),data:{receivedNewState:void 0===o?"undefined":o}})}if(n>r)throw aE.PY.invalidParams({message:"Invalid ".concat(t,' "updateState" parameter: The new state must not exceed ').concat(r," bytes in size."),data:{receivedNewState:void 0===o?"undefined":o}})}return e}(l,c)).encrypted)||void 0===d||d)&&p.operation!==E.ClearState))return[3,2];return[4,r(!0)];case 1:v.sent(),v.label=2;case 2:switch(p.operation){case E.ClearState:return[3,3];case E.GetState:return[3,4];case E.UpdateState:return[3,9]}return[3,14];case 3:return i(_,f),[2,null];case 4:if(null===(m=o(_,f)))return[2,m];if(!f)return[3,7];return y={state:m,decryptFunction:u},[4,n()];case 5:return[4,sZ.apply(void 0,[(y.mnemonicPhrase=v.sent(),y.snapId=_,y)])];case 6:return h=v.sent(),[3,8];case 7:h=tx(m),v.label=8;case 8:return[2,h];case 9:if(!f)return[3,12];return b={state:p.newState,encryptFunction:s},[4,n()];case 10:return[4,sH.apply(void 0,[(b.mnemonicPhrase=v.sent(),b.snapId=_,b)])];case 11:return g=v.sent(),[3,13];case 12:g=JSON.stringify(p.newState),v.label=13;case 13:return a(_,g,f),[2,null];case 14:throw aE.PY.invalidParams("Invalid ".concat(c,' operation: "').concat(p.operation,'"'));case 15:return[2]}})}),function(e){return t.apply(this,arguments)}),subjectTypes:[tk.SubjectType.Snap]}},methodHooks:{getMnemonic:!0,getUnlockPromise:!0,clearSnapState:!0,getSnapState:!0,updateSnapState:!0,encrypt:!0,decrypt:!0}});function sq(e){return sQ.apply(this,arguments)}function sQ(){return(sQ=s$(function(e){return sV(this,function(t){switch(t.label){case 0:return[4,aX({mnemonicPhrase:e.mnemonicPhrase,input:e.snapId,salt:"snap_manageState encryption",magic:tM})];case 1:return[2,t.sent()]}})})).apply(this,arguments)}function sH(e){return sG.apply(this,arguments)}function sG(){return(sG=s$(function(e){var t,n,r;return sV(this,function(i){switch(i.label){case 0:return t=e.state,n=e.encryptFunction,[4,sq(sK(e,["state","encryptFunction"]))];case 1:return r=i.sent(),[4,n(r,t)];case 2:return[2,i.sent()]}})})).apply(this,arguments)}function sZ(e){return sX.apply(this,arguments)}function sX(){return(sX=s$(function(e){var t,n,r,i,o;return sV(this,function(a){switch(a.label){case 0:t=e.state,n=e.decryptFunction,r=sK(e,["state","decryptFunction"]),a.label=1;case 1:return a.trys.push([1,4,,5]),[4,sq(r)];case 2:return i=a.sent(),[4,n(i,t)];case 3:return o=a.sent(),(0,j.assert)((0,j.isValidJson)(o)),[2,o];case 4:throw a.sent(),aE.PY.internal({message:"Failed to decrypt snap state, the state must be corrupted."});case 5:return[2]}})})).apply(this,arguments)}function s0(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){n(e);return}s.done?t(u):Promise.resolve(u).then(r,i)}var s1="snap_notify",s2=Object.freeze({targetName:s1,specificationBuilder:function(e){var t,n,r,i,o,a,s=e.allowedCaveats,u=e.methodHooks;return{permissionType:tk.PermissionType.RestrictedMethod,targetName:s1,allowedCaveats:void 0===s?null:s,methodImplementation:(r=u.showNativeNotification,i=u.showInAppNotification,o=u.isOnPhishingList,a=u.maybeUpdatePhishingList,t=function(e){var t,n,s;return function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=50)throw aE.PY.invalidParams({message:'Must specify a non-empty string "message" less than 50 characters long.'});return e}(t),[4,a()];case 1:switch(u.sent(),sv(s.message,o),s.type){case v.Native:return[3,2];case v.InApp:return[3,4]}return[3,6];case 2:return[4,r(n,s)];case 3:case 5:return[2,u.sent()];case 4:return[4,i(n,s)];case 6:throw aE.PY.invalidParams({message:'Must specify a valid notification "type".'});case 7:return[2]}})},n=function(){var e=this,n=arguments;return new Promise(function(r,i){var o=t.apply(e,n);function a(e){s0(o,r,i,a,s,"next",e)}function s(e){s0(o,r,i,a,s,"throw",e)}a(void 0)})},function(e){return n.apply(this,arguments)}),subjectTypes:[tk.SubjectType.Snap]}},methodHooks:{showNativeNotification:!0,showInAppNotification:!0,isOnPhishingList:!0,maybeUpdatePhishingList:!0}});function s3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s4=(s3(w={},sE.targetName,sE),s3(w,a6.targetName,a6),s3(w,a9.targetName,a9),s3(w,sn.targetName,sn),s3(w,sO.targetName,sO),s3(w,su.targetName,su),s3(w,sW.targetName,sW),s3(w,s2.targetName,s2),s3(w,sU.targetName,sU),s3(w,sL.targetName,sL),w);!function(e){e.NetworkAccess="endowment:network-access",e.SignatureInsight="endowment:signature-insight",e.TransactionInsight="endowment:transaction-insight",e.Cronjob="endowment:cronjob",e.EthereumProvider="endowment:ethereum-provider",e.Rpc="endowment:rpc",e.WebAssemblyAccess="endowment:webassembly",e.NameLookup="endowment:name-lookup",e.LifecycleHooks="endowment:lifecycle-hooks",e.Keyring="endowment:keyring",e.HomePage="endowment:page-home"}(A||(A={}));var s6=A.Cronjob,s5=Object.freeze({targetName:s6,specificationBuilder:function(e){return{permissionType:tk.PermissionType.Endowment,targetName:s6,allowedCaveats:[r.SnapCronjob],endowmentGetter:function(e){},subjectTypes:[tk.SubjectType.Snap]}}}),s8=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},r.SnapCronjob,Object.freeze({type:r.SnapCronjob,validator:function(e){return function(e){if(!(0,j.hasProperty)(e,"value")||!(0,j.isPlainObject)(e.value))throw aE.PY.invalidParams({message:"Expected a plain object."});var t=e.value;if(!(0,j.hasProperty)(t,"jobs")||!(0,j.isPlainObject)(t))throw aE.PY.invalidParams({message:"Expected a plain object."});if(!function(e){try{return(0,eE.create)(e,tC),!0}catch(e){return!1}}(t.jobs))throw aE.PY.invalidParams({message:"Expected a valid cronjob specification array."})}(e)}})),s7=A.EthereumProvider,s9=Object.freeze({targetName:s7,specificationBuilder:function(e){return{permissionType:tk.PermissionType.Endowment,targetName:s7,allowedCaveats:null,endowmentGetter:function(e){return["ethereum"]},subjectTypes:[tk.SubjectType.Snap]}}}),ue=A.HomePage,ut=Object.freeze({targetName:ue,specificationBuilder:function(e){return{permissionType:tk.PermissionType.Endowment,targetName:ue,allowedCaveats:null,endowmentGetter:function(e){},subjectTypes:[tk.SubjectType.Snap]}}}),un=A.Keyring,ur=Object.freeze({targetName:un,specificationBuilder:function(e){return{permissionType:tk.PermissionType.Endowment,targetName:un,allowedCaveats:[r.KeyringOrigin],endowmentGetter:function(e){},validator:function(e){var t=e.caveats;if((null==t?void 0:t.length)!==1||t[0].type!==r.KeyringOrigin)throw aE.PY.invalidParams({message:'Expected a single "'.concat(r.KeyringOrigin,'" caveat.')})},subjectTypes:[tk.SubjectType.Snap]}}}),ui=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},r.KeyringOrigin,Object.freeze({type:r.KeyringOrigin,validator:function(e){return function(e){var t,n;if(!(0,j.hasProperty)(e,"value")||!(0,j.isPlainObject)(e.value))throw aE.PY.invalidParams({message:"Invalid keyring origins: Expected a plain object."});t=e.value,n=aE.PY.invalidParams,(0,j.assertStruct)(t,tj,"Invalid keyring origins",n)}(e)}})),uo=A.LifecycleHooks,ua=Object.freeze({targetName:uo,specificationBuilder:function(e){return{permissionType:tk.PermissionType.Endowment,targetName:uo,allowedCaveats:null,endowmentGetter:function(e){},subjectTypes:[tk.SubjectType.Snap]}}}),us=A.NameLookup,uu=Object.freeze({targetName:us,specificationBuilder:function(e){return{permissionType:tk.PermissionType.Endowment,targetName:us,allowedCaveats:[r.ChainIds],endowmentGetter:function(e){},validator:function(e){var t=e.caveats;if(!t||null!==t&&(null==t?void 0:t.length)>1||(null==t?void 0:t.length)===1&&t[0].type!==r.ChainIds)throw aE.PY.invalidParams({message:'Expected a single "'.concat(r.ChainIds,'" caveat.')})},subjectTypes:[tk.SubjectType.Snap]}}}),ul=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},r.ChainIds,Object.freeze({type:r.ChainIds,validator:function(e){return function(e){if(!(0,j.hasProperty)(e,"value")||!(0,j.isPlainObject)(e))throw aE.PY.invalidParams({message:"Expected a plain object."});var t=e.value;(0,j.assert)(Array.isArray(t)&&t.every(function(e){return(0,eE.is)(e,tR)}),'Expected caveat value to have type "string array"')}(e)}})),uc=A.NetworkAccess,u_=Object.freeze({targetName:uc,specificationBuilder:function(e){return{permissionType:tk.PermissionType.Endowment,targetName:uc,allowedCaveats:null,endowmentGetter:function(e){return["fetch","Request","Headers","Response"]},subjectTypes:[tk.SubjectType.Snap]}}}),up=A.Rpc,ud=Object.freeze({targetName:up,specificationBuilder:function(e){return{permissionType:tk.PermissionType.Endowment,targetName:up,allowedCaveats:[r.RpcOrigin],endowmentGetter:function(e){},validator:function(e){var t=e.caveats;if((null==t?void 0:t.length)!==1||t[0].type!==r.RpcOrigin)throw aE.PY.invalidParams({message:'Expected a single "'.concat(r.RpcOrigin,'" caveat.')})},subjectTypes:[tk.SubjectType.Snap]}}}),uf=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},r.RpcOrigin,Object.freeze({type:r.RpcOrigin,validator:function(e){return function(e){var t,n;if(!(0,j.hasProperty)(e,"value")||!(0,j.isPlainObject)(e.value))throw aE.PY.invalidParams({message:"Invalid JSON-RPC origins: Expected a plain object."});t=e.value,n=aE.PY.invalidParams,(0,j.assertStruct)(t,tI,"Invalid JSON-RPC origins",n)}(e)}})),um=A.SignatureInsight,uh=Object.freeze({targetName:um,specificationBuilder:function(e){return{permissionType:tk.PermissionType.Endowment,targetName:um,allowedCaveats:[r.SignatureOrigin],endowmentGetter:function(e){},validator:function(e){var t=e.caveats;if(null!==t&&(null==t?void 0:t.length)>1||(null==t?void 0:t.length)===1&&t[0].type!==r.SignatureOrigin)throw aE.PY.invalidParams({message:'Expected a single "'.concat(r.SignatureOrigin,'" caveat.')})},subjectTypes:[tk.SubjectType.Snap]}}}),uy=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},r.SignatureOrigin,Object.freeze({type:r.SignatureOrigin,validator:function(e){return function(e){if(!(0,j.hasProperty)(e,"value")||!(0,j.isPlainObject)(e))throw aE.PY.invalidParams({message:"Expected a plain object."});var t=e.value;(0,j.assert)("boolean"==typeof t,'Expected caveat value to have type "boolean"')}(e)}})),ug=A.TransactionInsight,ub=Object.freeze({targetName:ug,specificationBuilder:function(e){return{permissionType:tk.PermissionType.Endowment,targetName:ug,allowedCaveats:[r.TransactionOrigin],endowmentGetter:function(e){},validator:function(e){var t=e.caveats;if(null!==t&&(null==t?void 0:t.length)>1||(null==t?void 0:t.length)===1&&t[0].type!==r.TransactionOrigin)throw aE.PY.invalidParams({message:'Expected a single "'.concat(r.TransactionOrigin,'" caveat.')})},subjectTypes:[tk.SubjectType.Snap]}}}),uv=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},r.TransactionOrigin,Object.freeze({type:r.TransactionOrigin,validator:function(e){return function(e){if(!(0,j.hasProperty)(e,"value")||!(0,j.isPlainObject)(e))throw aE.PY.invalidParams({message:"Expected a plain object."});var t=e.value;(0,j.assert)("boolean"==typeof t,'Expected caveat value to have type "boolean"')}(e)}})),ux=A.WebAssemblyAccess,uD=Object.freeze({targetName:ux,specificationBuilder:function(e){return{permissionType:tk.PermissionType.Endowment,targetName:ux,allowedCaveats:null,endowmentGetter:function(e){return["WebAssembly"]},subjectTypes:[tk.SubjectType.Snap]}}});function uS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var uT=(uS(C={},u_.targetName,u_),uS(C,ub.targetName,ub),uS(C,s5.targetName,s5),uS(C,s9.targetName,s9),uS(C,ud.targetName,ud),uS(C,uD.targetName,uD),uS(C,uu.targetName,uu),uS(C,ua.targetName,ua),uS(C,ur.targetName,ur),uS(C,ut.targetName,ut),uS(C,uh.targetName,uh),C),uE=function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]2)||void 0===r[2]||r[2],[4,new Promise(function(r,i){var o=document.createElement("iframe");o.setAttribute("id",t),o.setAttribute("data-testid","snaps-iframe"),n&&o.setAttribute("sandbox","allow-scripts"),o.setAttribute("src",e),document.body.appendChild(o),o.addEventListener("load",function(){o.contentWindow?r(o.contentWindow):i(Error('iframe.contentWindow not present on load for job "'.concat(t,'".')))})})];case 1:return[2,i.sent()]}})},(uM=function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){uN(o,r,i,a,s,"next",e)}function s(e){uN(o,r,i,a,s,"throw",e)}a(void 0)})}).apply(this,arguments)}var uk=n(9952),uI=n.n(uk);function uj(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n1?n-1:0),i=1;icrypto.getRandomValues(new Uint8Array(e)).reduce((e,t)=>((t&=63)<36?e+=t.toString(36):t<62?e+=(t-26).toString(36).toUpperCase():t>62?e+="-":e+="_",e),"");var uz=(0,j.createModuleLogger)(uO,"snaps-controllers");function uR(e,t){for(var n=0;n=0,TypeError("Can't start a timer with negative time")),this.state={value:"stopped",remaining:e}}return e=[{key:"status",get:function(){return this.state.value}},{key:"cancel",value:function(){(0,j.assert)("paused"===this.status||"running"===this.status,Error("Tried to cancel a not running Timer")),this.onFinish(!1)}},{key:"pause",value:function(){(0,j.assert)("running"===this.state.value,Error("Tried to pause a not running Timer"));var e=this.state,t=e.callback,n=e.start,r=e.timeout,i=e.remaining;void 0!==r&&clearTimeout(r),this.state={value:"paused",callback:t,remaining:i-(Date.now()-n)}}},{key:"start",value:function(e){(0,j.assert)("stopped"===this.state.value,Error("Tried to start an already running Timer"));var t=this.state.remaining;this.state={value:"paused",remaining:t,callback:e},this.resume()}},{key:"resume",value:function(){var e,t=this;(0,j.assert)("paused"===this.state.value,Error("Tried to resume not paused Timer"));var n=this.state,r=n.remaining,i=n.callback,o=Date.now();r!==Number.POSITIVE_INFINITY&&(e=setTimeout(function(){return t.onFinish(!0)},r)),this.state={value:"running",callback:i,remaining:r,start:o,timeout:e}}},{key:"onFinish",value:function(e){(0,j.assert)("running"===this.state.value||"paused"===this.state.value),"running"===this.state.value&&void 0!==this.state.timeout&&clearTimeout(this.state.timeout);var t=this.state.callback;this.state={value:"finished"},e&&t()}}],uR(n.prototype,e),t&&uR(n,t),n}();function uU(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){n(e);return}s.done?t(u):Promise.resolve(u).then(r,i)}var uJ=Symbol("Used to check if the requested promise has timeout (see withTimeout)");function u$(){var e;return(e=function(e,t){var n;return function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]1&&void 0!==a[1]?a[1]:k.Base64,[4,a_(rn)];case 1:if(r=s.sent(),i=t3(e),!(o=null===(n=r.find(function(e){return e.path===i}))||void 0===n?void 0:n.toString("base64")))return[2,null];return[4,au(lJ,o,t)];case 2:return[2,s.sent()]}})}function lG(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){n(e);return}s.done?t(u):Promise.resolve(u).then(r,i)}function lZ(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){lG(o,r,i,a,s,"next",e)}function s(e){lG(o,r,i,a,s,"throw",e)}a(void 0)})}}function lX(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]1&&void 0!==arguments[1]?arguments[1]:{};(function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")})(this,n),cy(this,"cache",new Map),cy(this,"validatedManifest",void 0),cy(this,"url",void 0),cy(this,"fetchFn",void 0),cy(this,"fetchOptions",void 0),(0,j.assertStruct)(e.toString(),ty,"Invalid Snap Id: "),this.fetchFn=null!==(t=r.fetch)&&void 0!==t?t:globalThis.fetch.bind(globalThis),this.fetchOptions=r.fetchOptions,this.url=e}return e=[{key:"manifest",value:function(){var e=this;return cm(function(){var t,n,r,o,a;return cg(this,function(s){switch(s.label){case 0:if(e.validatedManifest)return[2,e.validatedManifest.clone()];return t=new URL(i.Manifest,e.url).toString(),[4,e.fetchFn(t,e.fetchOptions)];case 1:if(!(n=s.sent()).ok)throw Error('Failed to fetch "'.concat(t,'". Status code: ').concat(n.status,"."));return[4,n.text()];case 2:return o=tx(r=s.sent()),a=new eX({value:r,result:t2(o),path:i.Manifest,data:{canonicalPath:t}}),e.validatedManifest=a,[2,e.manifest()]}})})()}},{key:"fetch",value:function(e){var t=this;return cm(function(){var n,r,i,o,a,s,u,l,c,_,p;return cg(this,function(d){switch(d.label){case 0:if(n=t3(e),!(void 0!==(r=t.cache.get(n))))return[3,2];return i=r.file,o=r.contents,s=Uint8Array.bind,[4,o.arrayBuffer()];case 1:return a=new(s.apply(Uint8Array,[void 0,d.sent()])),(u=i.clone()).value=a,[2,u];case 2:return l=t.toCanonical(n).toString(),[4,t.fetchFn(l,t.fetchOptions)];case 3:if(!(c=d.sent()).ok)throw Error('Failed to fetch "'.concat(l,'". Status code: ').concat(c.status,"."));return _=new eX({value:"",path:n,data:{canonicalPath:l}}),[4,c.blob()];case 4:return p=d.sent(),(0,j.assert)(!t.cache.has(n),"Corrupted cache, multiple files with same path."),t.cache.set(n,{file:_,contents:p}),[2,t.fetch(n)]}})})()}},{key:"root",get:function(){return new URL(this.url)}},{key:"toCanonical",value:function(e){return(0,j.assert)(!e.startsWith("/"),"Tried to parse absolute path."),new URL(e,this.url)}}],ch(n.prototype,e),t&&ch(n,t),n}();function cv(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){n(e);return}s.done?t(u):Promise.resolve(u).then(r,i)}function cx(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){cv(o,r,i,a,s,"next",e)}function s(e){cv(o,r,i,a,s,"throw",e)}a(void 0)})}}function cD(e,t,n){if(!t.has(e))throw TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function cS(e,t){var n=cD(e,t,"get");return n.get?n.get.call(e):n.value}function cT(e,t){for(var n=0;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]1&&void 0!==arguments[1]?arguments[1]:{};(function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")})(this,n),function(e,t){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}(this,cw),cw.set(this,{writable:!0,value:void 0}),(0,j.assertStruct)(e.toString(),tm,"Invalid Snap Id"),(0,j.assert)(void 0===a.fetchOptions,"Currently adding fetch options to local: is unsupported."),i=new cb(new URL(e.toString().slice(o.local.length)),(t=function(e){for(var t=1;t0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0?[2,n.join("\n")]:[2,!0]})});return function(t,n){return e.apply(this,arguments)}}()},{name:"Checksum",manifestName:"source.shasum",validator:function(){var e=c$(function(e,t){var n,r,i,o,a,s,u;return cV(this,function(l){switch(l.label){case 0:if(n=t.sourceCode,r=t.icon,i=t.auxiliaryFiles,o=t.localizationFiles,!e)return[3,2];return s=null===(a=e.result)||void 0===a?void 0:a.source.shasum,[4,function(e){return tp.apply(this,arguments)}({manifest:e,sourceCode:n,svgIcon:r,auxiliaryFiles:i,localizationFiles:o})];case 1:if(u=l.sent(),s!==u)return[2,'Checksum mismatch - expected "'.concat(u,'" got "').concat(s,'"')];l.label=2;case 2:return[2,!0]}})});return function(t,n){return e.apply(this,arguments)}}()},{name:"Bundle",manifestName:"filePath",validator:function(){var e=c$(function(e,t){var n,r,i,o,a,s,u;return cV(this,function(l){return(n=t.sourceCode,u=cK(t1.schema.source.schema.location.schema.npm.schema.filePath.validate(null===(s=e)||void 0===s?void 0:null===(a=s.result)||void 0===a?void 0:null===(o=a.source)||void 0===o?void 0:null===(i=o.location)||void 0===i?void 0:null===(r=i.npm)||void 0===r?void 0:r.filePath),1)[0])?[2,u.message]:n?[2,!0]:[2,"Unable to load bundle."]})});return function(t,n){return e.apply(this,arguments)}}()}];function cW(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]{"use strict";e.exports=n(1837)},4452:e=>{"use strict";var t={};function n(e,n,r){r||(r=Error);var i=function(e){function t(t,r,i){return e.call(this,"string"==typeof n?n:n(t,r,i))||this}return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e,t}(r);i.prototype.name=r.name,i.prototype.code=e,t[e]=i}function r(e,t){if(!Array.isArray(e))return"of ".concat(t," ").concat(String(e));var n=e.length;return(e=e.map(function(e){return String(e)}),n>2)?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}n("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),n("ERR_INVALID_ARG_TYPE",function(e,t,n){if("string"==typeof t&&(i="not ",t.substr(!o||o<0?0:+o,i.length)===i)?(l="must not be",t=t.replace(/^not /,"")):l="must be",a=" argument",(void 0===s||s>e.length)&&(s=e.length),e.substring(s-a.length,s)===a)c="The ".concat(e," ").concat(l," ").concat(r(t,"type"));else{var i,o,a,s,u,l,c,_=("number"!=typeof u&&(u=0),u+1>e.length||-1===e.indexOf(".",u))?"argument":"property";c='The "'.concat(e,'" ').concat(_," ").concat(l," ").concat(r(t,"type"))}return c+". Received type ".concat(typeof n)},TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},7073:(e,t,n)=>{"use strict";var r=n(4406),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=c;var o=n(8051),a=n(2557);n(1285)(c,o);for(var s=i(a.prototype),u=0;u{"use strict";e.exports=i;var r=n(7640);function i(e){if(!(this instanceof i))return new i(e);r.call(this,e)}n(1285)(i,r),i.prototype._transform=function(e,t,n){n(null,e)}},8051:(e,t,n)=>{"use strict";var r,i,o,a,s,u=n(4406);e.exports=E,E.ReadableState=T,n(2699).EventEmitter;var l=function(e,t){return e.listeners(t).length},c=n(5010),_=n(8834).Buffer,p=(void 0!==n.g?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},d=n(6602);i=d&&d.debuglog?d.debuglog("stream"):function(){};var f=n(6637),m=n(2262),h=n(7605).getHighWaterMark,y=n(4452).q,g=y.ERR_INVALID_ARG_TYPE,b=y.ERR_STREAM_PUSH_AFTER_EOF,v=y.ERR_METHOD_NOT_IMPLEMENTED,x=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(1285)(E,c);var D=m.errorOrDestroy,S=["error","close","destroy","pause","resume"];function T(e,t,i){r=r||n(7073),e=e||{},"boolean"!=typeof i&&(i=t instanceof r),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=h(this,e,"readableHighWaterMark",i),this.buffer=new f,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=!1!==e.emitClose,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&&(o||(o=n(214).s),this.decoder=new o(e.encoding),this.encoding=e.encoding)}function E(e){if(r=r||n(7073),!(this instanceof E))return new E(e);var t=this instanceof r;this._readableState=new T(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),c.call(this)}function w(e,t,n,r,o){i("readableAddChunk",t);var a,s,u,l,c,d=e._readableState;if(null===t)d.reading=!1,function(e,t){if(i("onEofChunk"),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?N(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,M(e)))}}(e,d);else{if(o||(a=d,s=t,_.isBuffer(s)||s instanceof p||"string"==typeof s||void 0===s||a.objectMode||(u=new g("chunk",["string","Buffer","Uint8Array"],s)),c=u),c)D(e,c);else if(d.objectMode||t&&t.length>0){if("string"==typeof t||d.objectMode||Object.getPrototypeOf(t)===_.prototype||(l=t,t=_.from(l)),r)d.endEmitted?D(e,new x):A(e,d,t,!0);else if(d.ended)D(e,new b);else{if(d.destroyed)return!1;d.reading=!1,d.decoder&&!n?(t=d.decoder.write(t),d.objectMode||0!==t.length?A(e,d,t,!1):k(e,d)):A(e,d,t,!1)}}else r||(d.reading=!1,k(e,d))}return!d.ended&&(d.lengtht.highWaterMark){var n;t.highWaterMark=((n=e)>=1073741824?n=1073741824:(n--,n|=n>>>1,n|=n>>>2,n|=n>>>4,n|=n>>>8,n|=n>>>16,n++),n)}return e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0)}function N(e){var t=e._readableState;i("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(i("emitReadable",t.flowing),t.emittedReadable=!0,u.nextTick(M,e))}function M(e){var t=e._readableState;i("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,F(e)}function k(e,t){t.readingMore||(t.readingMore=!0,u.nextTick(I,e,t))}function I(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function O(e){i("readable nexttick read 0"),e.read(0)}function P(e,t){i("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),F(e),t.flowing&&!t.reading&&e.read(0)}function F(e){var t=e._readableState;for(i("flow",t.flowing);t.flowing&&null!==e.read(););}function L(e,t){var n;return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n)}function z(e){var t=e._readableState;i("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,u.nextTick(R,t,e))}function R(e,t){if(i("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function B(e,t){for(var n=0,r=e.length;n=n.highWaterMark:n.length>0)||n.ended))return i("read: emitReadable",n.length,n.ended),0===n.length&&n.ended?z(this):N(this),null;if(0===(e=C(e,n))&&n.ended)return 0===n.length&&z(this),null;var o=n.needReadable;return i("need readable",o),(0===n.length||n.length-e0?L(e,n):null)?(n.needReadable=n.length<=n.highWaterMark,e=0):(n.length-=e,n.awaitDrain=0),0===n.length&&(n.ended||(n.needReadable=!0),r!==e&&n.ended&&z(this)),null!==t&&this.emit("data",t),t},E.prototype._read=function(e){D(this,new v("_read()"))},E.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,i("pipe count=%d opts=%j",r.pipesCount,t);var o=t&&!1===t.end||e===u.stdout||e===u.stderr?m:a;function a(){i("onend"),e.end()}r.endEmitted?u.nextTick(o):n.once("end",o),e.on("unpipe",function t(o,u){i("onunpipe"),o===n&&u&&!1===u.hasUnpiped&&(u.hasUnpiped=!0,i("cleanup"),e.removeListener("close",d),e.removeListener("finish",f),e.removeListener("drain",s),e.removeListener("error",p),e.removeListener("unpipe",t),n.removeListener("end",a),n.removeListener("end",m),n.removeListener("data",_),c=!0,r.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&s())});var s=function(){var e=n._readableState;i("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&l(n,"data")&&(e.flowing=!0,F(n))};e.on("drain",s);var c=!1;function _(t){i("ondata");var o=e.write(t);i("dest.write",o),!1===o&&((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==B(r.pipes,e))&&!c&&(i("false write response, pause",r.awaitDrain),r.awaitDrain++),n.pause())}function p(t){i("onerror",t),m(),e.removeListener("error",p),0===l(e,"error")&&D(e,t)}function d(){e.removeListener("finish",f),m()}function f(){i("onfinish"),e.removeListener("close",d),m()}function m(){i("unpipe"),n.unpipe(e)}return n.on("data",_),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",p),e.once("close",d),e.once("finish",f),e.emit("pipe",n),r.flowing||(i("pipe resume"),n.resume()),e},E.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o0,!1!==r.flowing&&this.resume()):"readable"!==e||r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,i("on readable",r.length,r.reading),r.length?N(this):r.reading||u.nextTick(O,this)),n},E.prototype.addListener=E.prototype.on,E.prototype.removeListener=function(e,t){var n=c.prototype.removeListener.call(this,e,t);return"readable"===e&&u.nextTick(j,this),n},E.prototype.removeAllListeners=function(e){var t=c.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&u.nextTick(j,this),t},E.prototype.resume=function(){var e=this._readableState;return e.flowing||(i("resume"),e.flowing=!e.readableListening,e.resumeScheduled||(e.resumeScheduled=!0,u.nextTick(P,this,e))),e.paused=!1,this},E.prototype.pause=function(){return i("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(i("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},E.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var o in e.on("end",function(){if(i("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(o){i("wrapped data"),n.decoder&&(o=n.decoder.write(o)),(!n.objectMode||null!=o)&&(n.objectMode||o&&o.length)&&(t.push(o)||(r=!0,e.pause()))}),e)void 0===this[o]&&"function"==typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));for(var a=0;a{"use strict";e.exports=c;var r=n(4452).q,i=r.ERR_METHOD_NOT_IMPLEMENTED,o=r.ERR_MULTIPLE_CALLBACK,a=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=r.ERR_TRANSFORM_WITH_LENGTH_0,u=n(7073);function l(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new o);n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length{"use strict";var r,i,o=n(4406);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){(function(e,t,n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(void 0),r=r.next}t.corkedRequestsFree.next=e})(t,e)}}e.exports=E,E.WritableState=T;var s={deprecate:n(5803)},u=n(5010),l=n(8834).Buffer,c=(void 0!==n.g?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},_=n(2262),p=n(7605).getHighWaterMark,d=n(4452).q,f=d.ERR_INVALID_ARG_TYPE,m=d.ERR_METHOD_NOT_IMPLEMENTED,h=d.ERR_MULTIPLE_CALLBACK,y=d.ERR_STREAM_CANNOT_PIPE,g=d.ERR_STREAM_DESTROYED,b=d.ERR_STREAM_NULL_VALUES,v=d.ERR_STREAM_WRITE_AFTER_END,x=d.ERR_UNKNOWN_ENCODING,D=_.errorOrDestroy;function S(){}function T(e,t,i){r=r||n(7073),e=e||{},"boolean"!=typeof i&&(i=t instanceof r),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=p(this,e,"writableHighWaterMark",i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){(function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if("function"!=typeof i)throw new h;if(n.writing=!1,n.writecb=null,n.length-=n.writelen,n.writelen=0,t)--n.pendingcb,r?(o.nextTick(i,t),o.nextTick(k,e,n),e._writableState.errorEmitted=!0,D(e,t)):(i(t),e._writableState.errorEmitted=!0,D(e,t),k(e,n));else{var a=N(n)||e.destroyed;a||n.corked||n.bufferProcessing||!n.bufferedRequest||C(e,n),r?o.nextTick(A,e,n,a,i):A(e,n,a,i)}})(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function E(e){var t=this instanceof(r=r||n(7073));if(!t&&!i.call(E,this))return new E(e);this._writableState=new T(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),u.call(this)}function w(e,t,n,r,i,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new g("write")):n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function A(e,t,n,r){n||0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain")),t.pendingcb--,r(),k(e,t)}function C(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=Array(t.bufferedRequestCount),i=t.corkedRequestsFree;i.entry=n;for(var o=0,s=!0;n;)r[o]=n,n.isBuf||(s=!1),n=n.next,o+=1;r.allBuffers=s,w(e,t,!0,t.length,r,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,l=n.encoding,c=n.callback,_=t.objectMode?1:u.length;if(w(e,t,!1,_,u,l,c),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function N(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function M(e,t){e._final(function(n){t.pendingcb--,n&&D(e,n),t.prefinished=!0,e.emit("prefinish"),k(e,t)})}function k(e,t){var n=N(t);if(n&&(t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,o.nextTick(M,e,t))),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var r=e._readableState;(!r||r.autoDestroy&&r.endEmitted)&&e.destroy()}return n}n(1285)(E,u),T.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(T.prototype,"buffer",{get:s.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(i=Function.prototype[Symbol.hasInstance],Object.defineProperty(E,Symbol.hasInstance,{value:function(e){return!!i.call(this,e)||this===E&&e&&e._writableState instanceof T}})):i=function(e){return e instanceof this},E.prototype.pipe=function(){D(this,new y)},E.prototype.write=function(e,t,n){var r,i,a,s,u,_,p,d=this._writableState,m=!1,h=!d.objectMode&&(r=e,l.isBuffer(r)||r instanceof c);return h&&!l.isBuffer(e)&&(i=e,e=l.from(i)),("function"==typeof t&&(n=t,t=null),h?t="buffer":t||(t=d.defaultEncoding),"function"!=typeof n&&(n=S),d.ending)?(a=n,D(this,s=new v),o.nextTick(a,s)):(h||(u=e,_=n,null===u?p=new b:"string"==typeof u||d.objectMode||(p=new f("chunk",["string","Buffer"],u)),!p||(D(this,p),o.nextTick(_,p),0)))&&(d.pendingcb++,m=function(e,t,n,r,i,o){if(!n){var a,s,u=(a=r,s=i,t.objectMode||!1===t.decodeStrings||"string"!=typeof a||(a=l.from(a,s)),a);r!==u&&(n=!0,i="buffer",r=u)}var c=t.objectMode?1:r.length;t.length+=c;var _=t.length-1))throw new x(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(E.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),E.prototype._write=function(e,t,n){n(new m("_write()"))},E.prototype._writev=null,E.prototype.end=function(e,t,n){var r,i=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||(r=n,i.ending=!0,k(this,i),r&&(i.finished?o.nextTick(r):this.once("finish",r)),i.ended=!0,this.writable=!1),this},Object.defineProperty(E.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),E.prototype.destroy=_.destroy,E.prototype._undestroy=_.undestroy,E.prototype._destroy=function(e,t){t(e)}},1029:(e,t,n)=>{"use strict";var r,i=n(4406);function o(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=n(9885),s=Symbol("lastResolve"),u=Symbol("lastReject"),l=Symbol("error"),c=Symbol("ended"),_=Symbol("lastPromise"),p=Symbol("handlePromise"),d=Symbol("stream");function f(e,t){return{value:e,done:t}}function m(e){var t=e[s];if(null!==t){var n=e[d].read();null!==n&&(e[_]=null,e[s]=null,e[u]=null,t(f(n,!1)))}}function h(e){i.nextTick(m,e)}var y=Object.getPrototypeOf(function(){}),g=Object.setPrototypeOf((o(r={get stream(){return this[d]},next:function(){var e,t,n=this,r=this[l];if(null!==r)return Promise.reject(r);if(this[c])return Promise.resolve(f(void 0,!0));if(this[d].destroyed)return new Promise(function(e,t){i.nextTick(function(){n[l]?t(n[l]):e(f(void 0,!0))})});var o=this[_];if(o)t=new Promise((e=this,function(t,n){o.then(function(){if(e[c]){t(f(void 0,!0));return}e[p](t,n)},n)}));else{var a=this[d].read();if(null!==a)return Promise.resolve(f(a,!1));t=new Promise(this[p])}return this[_]=t,t}},Symbol.asyncIterator,function(){return this}),o(r,"return",function(){var e=this;return new Promise(function(t,n){e[d].destroy(null,function(e){if(e){n(e);return}t(f(void 0,!0))})})}),r),y);e.exports=function(e){var t,n=Object.create(g,(o(t={},d,{value:e,writable:!0}),o(t,s,{value:null,writable:!0}),o(t,u,{value:null,writable:!0}),o(t,l,{value:null,writable:!0}),o(t,c,{value:e._readableState.endEmitted,writable:!0}),o(t,p,{value:function(e,t){var r=n[d].read();r?(n[_]=null,n[s]=null,n[u]=null,e(f(r,!1))):(n[s]=e,n[u]=t)},writable:!0}),t));return n[_]=null,a(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=n[u];null!==t&&(n[_]=null,n[s]=null,n[u]=null,t(e)),n[l]=e;return}var r=n[s];null!==r&&(n[_]=null,n[s]=null,n[u]=null,r(f(void 0,!0))),n[c]=!0}),e.on("readable",h.bind(null,n)),n}},6637:(e,t,n)=>{"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return s.alloc(0);for(var t,n,r=s.allocUnsafe(e>>>0),i=this.head,o=0;i;)t=i.data,n=o,s.prototype.copy.call(t,r,n),o+=i.data.length,i=i.next;return r}},{key:"consume",value:function(e,t){var n;return ei.length?i.length:e;if(o===i.length?r+=i:r+=i.slice(0,e),0==(e-=o)){o===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=s.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(o));break}++r}return this.length-=r,t}},{key:l,value:function(e,t){return u(this,i(i({},t),{},{depth:0,customInspect:!1}))}}],o(n.prototype,e),t&&o(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}()},2262:(e,t,n)=>{"use strict";var r=n(4406);function i(e,t){a(e,t),o(e)}function o(e){(!e._writableState||e._writableState.emitClose)&&(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function a(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.nextTick(a,this,e)):r.nextTick(a,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?n._writableState?n._writableState.errorEmitted?r.nextTick(o,n):(n._writableState.errorEmitted=!0,r.nextTick(i,n,e)):r.nextTick(i,n,e):t?(r.nextTick(o,n),t(e)):r.nextTick(o,n)})),this},undestroy:function(){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)},errorOrDestroy:function(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}}},9885:(e,t,n)=>{"use strict";var r=n(4452).q.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,n,o){if("function"==typeof n)return e(t,null,n);n||(n={}),a=o||i,s=!1,o=function(){if(!s){s=!0;for(var e=arguments.length,t=Array(e),n=0;n{e.exports=function(){throw Error("Readable.from is not available in the browser")}},3495:(e,t,n)=>{"use strict";var r,i=n(4452).q,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function u(e){e()}function l(e,t){return e.pipe(t)}e.exports=function(){for(var e,t,i=arguments.length,c=Array(i),_=0;_0},function(e){if(e)return o(e);_=!0,o()}),f=!1,function(t){if(!_&&!f){if(f=!0,e.setHeader&&"function"==typeof e.abort)return e.abort();if("function"==typeof e.destroy)return e.destroy();o(t||new a("pipe"))}}});return c.reduce(l)}},7605:(e,t,n)=>{"use strict";var r=n(4452).q.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,n,i){var o=null!=t.highWaterMark?t.highWaterMark:i?t[n]:null;if(null!=o){if(!(isFinite(o)&&Math.floor(o)===o)||o<0){var a=i?n:"highWaterMark";throw new r(a,o)}return Math.floor(o)}return e.objectMode?16:16384}}},5010:(e,t,n)=>{e.exports=n(2699).EventEmitter},7525:(e,t,n)=>{(t=e.exports=n(8051)).Stream=t,t.Readable=t,t.Writable=n(2557),t.Duplex=n(7073),t.Transform=n(7640),t.PassThrough=n(5163),t.finished=n(9885),t.pipeline=n(3495)},8146:(e,t,n)=>{"use strict";t.F=void 0;let r=n(7525);class i extends r.Readable{constructor(e){super(),this.bytesRead=0,this.released=!1,this.reader=e.getReader()}async _read(){if(this.released){this.push(null);return}this.pendingRead=this.reader.read();let e=await this.pendingRead;delete this.pendingRead,e.done||this.released?this.push(null):(this.bytesRead+=e.value.length,this.push(e.value))}async waitForReadToComplete(){this.pendingRead&&await this.pendingRead}async close(){await this.syncAndRelease()}async syncAndRelease(){this.released=!0,await this.waitForReadToComplete(),await this.reader.releaseLock()}}t.F=i},7152:(e,t,n)=>{"use strict";var r=n(8834).Buffer;function i(e){return e instanceof r?r.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}e.exports=function(e){if((e=e||{}).circles)return function(e){var t=[],n=[];return e.proto?function e(o){if("object"!=typeof o||null===o)return o;if(o instanceof Date)return new Date(o);if(Array.isArray(o))return r(o,e);if(o instanceof Map)return new Map(r(Array.from(o),e));if(o instanceof Set)return new Set(r(Array.from(o),e));var a={};for(var s in t.push(o),n.push(a),o){var u=o[s];if("object"!=typeof u||null===u)a[s]=u;else if(u instanceof Date)a[s]=new Date(u);else if(u instanceof Map)a[s]=new Map(r(Array.from(u),e));else if(u instanceof Set)a[s]=new Set(r(Array.from(u),e));else if(ArrayBuffer.isView(u))a[s]=i(u);else{var l=t.indexOf(u);-1!==l?a[s]=n[l]:a[s]=e(u)}}return t.pop(),n.pop(),a}:function e(o){if("object"!=typeof o||null===o)return o;if(o instanceof Date)return new Date(o);if(Array.isArray(o))return r(o,e);if(o instanceof Map)return new Map(r(Array.from(o),e));if(o instanceof Set)return new Set(r(Array.from(o),e));var a={};for(var s in t.push(o),n.push(a),o)if(!1!==Object.hasOwnProperty.call(o,s)){var u=o[s];if("object"!=typeof u||null===u)a[s]=u;else if(u instanceof Date)a[s]=new Date(u);else if(u instanceof Map)a[s]=new Map(r(Array.from(u),e));else if(u instanceof Set)a[s]=new Set(r(Array.from(u),e));else if(ArrayBuffer.isView(u))a[s]=i(u);else{var l=t.indexOf(u);-1!==l?a[s]=n[l]:a[s]=e(u)}}return t.pop(),n.pop(),a};function r(e,r){for(var o=Object.keys(e),a=Array(o.length),s=0;s{/*! safe-buffer. MIT License. Feross Aboukhadijeh */var r=n(8834),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,n){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return r.SlowBuffer(e)}},7847:(e,t,n)=>{let r=Symbol("SemVer ANY");class i{static get ANY(){return r}constructor(e,t){if(t=o(t),e instanceof i){if(!!t.loose===e.loose)return e;e=e.value}l("comparator",e=e.trim().split(/\s+/).join(" "),t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===r?this.value="":this.value=this.operator+this.semver.version,l("comp",this)}parse(e){let t=this.options.loose?a[s.COMPARATORLOOSE]:a[s.COMPARATOR],n=e.match(t);if(!n)throw TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new c(n[2],this.options.loose):this.semver=r}toString(){return this.value}test(e){if(l("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"==typeof e)try{e=new c(e,this.options)}catch(e){return!1}return u(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof i))throw TypeError("a Comparator is required");return""===this.operator?""===this.value||new _(e.value,t).test(this.value):""===e.operator?""===e.value||new _(this.value,t).test(e.semver):!((t=o(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||u(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||u(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">"))}}e.exports=i;let o=n(1388),{safeRe:a,t:s}=n(4808),u=n(8117),l=n(952),c=n(2435),_=n(6843)},6843:(e,t,n)=>{class r{constructor(e,t){if(t=a(t),e instanceof r){if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;return new r(e.raw,t)}if(e instanceof s)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!y(e[0])),0===this.set.length)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(1===e.length&&g(e[0])){this.set=[e];break}}}this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){let t=(this.options.includePrerelease&&m)|(this.options.loose&&h),n=t+":"+e,r=o.get(n);if(r)return r;let i=this.options.loose,a=i?c[_.HYPHENRANGELOOSE]:c[_.HYPHENRANGE];u("hyphen replace",e=e.replace(a,M(this.options.includePrerelease))),u("comparator trim",e=e.replace(c[_.COMPARATORTRIM],p)),u("tilde trim",e=e.replace(c[_.TILDETRIM],d)),u("caret trim",e=e.replace(c[_.CARETTRIM],f));let l=e.split(" ").map(e=>v(e,this.options)).join(" ").split(/\s+/).map(e=>N(e,this.options));i&&(l=l.filter(e=>(u("loose invalid filter",e,this.options),!!e.match(c[_.COMPARATORLOOSE])))),u("range list",l);let g=new Map,b=l.map(e=>new s(e,this.options));for(let e of b){if(y(e))return[e];g.set(e.value,e)}g.size>1&&g.has("")&&g.delete("");let x=[...g.values()];return o.set(n,x),x}intersects(e,t){if(!(e instanceof r))throw TypeError("a Range is required");return this.set.some(n=>b(n,t)&&e.set.some(e=>b(e,t)&&n.every(n=>e.every(e=>n.intersects(e,t)))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new l(e,this.options)}catch(e){return!1}for(let t=0;t"<0.0.0-0"===e.value,g=e=>""===e.value,b=(e,t)=>{let n=!0,r=e.slice(),i=r.pop();for(;n&&r.length;)n=r.every(e=>i.intersects(e,t)),i=r.pop();return n},v=(e,t)=>(u("comp",e,t),u("caret",e=T(e,t)),u("tildes",e=D(e,t)),u("xrange",e=w(e,t)),u("stars",e=C(e,t)),e),x=e=>!e||"x"===e.toLowerCase()||"*"===e,D=(e,t)=>e.trim().split(/\s+/).map(e=>S(e,t)).join(" "),S=(e,t)=>{let n=t.loose?c[_.TILDELOOSE]:c[_.TILDE];return e.replace(n,(t,n,r,i,o)=>{let a;return u("tilde",e,t,n,r,i,o),x(n)?a="":x(r)?a=`>=${n}.0.0 <${+n+1}.0.0-0`:x(i)?a=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:o?(u("replaceTilde pr",o),a=`>=${n}.${r}.${i}-${o} <${n}.${+r+1}.0-0`):a=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,u("tilde return",a),a})},T=(e,t)=>e.trim().split(/\s+/).map(e=>E(e,t)).join(" "),E=(e,t)=>{u("caret",e,t);let n=t.loose?c[_.CARETLOOSE]:c[_.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,(t,n,i,o,a)=>{let s;return u("caret",e,t,n,i,o,a),x(n)?s="":x(i)?s=`>=${n}.0.0${r} <${+n+1}.0.0-0`:x(o)?s="0"===n?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:a?(u("replaceCaret pr",a),s="0"===n?"0"===i?`>=${n}.${i}.${o}-${a} <${n}.${i}.${+o+1}-0`:`>=${n}.${i}.${o}-${a} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${o}-${a} <${+n+1}.0.0-0`):(u("no pr"),s="0"===n?"0"===i?`>=${n}.${i}.${o}${r} <${n}.${i}.${+o+1}-0`:`>=${n}.${i}.${o}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${o} <${+n+1}.0.0-0`),u("caret return",s),s})},w=(e,t)=>(u("replaceXRanges",e,t),e.split(/\s+/).map(e=>A(e,t)).join(" ")),A=(e,t)=>{e=e.trim();let n=t.loose?c[_.XRANGELOOSE]:c[_.XRANGE];return e.replace(n,(n,r,i,o,a,s)=>{u("xRange",e,n,r,i,o,a,s);let l=x(i),c=l||x(o),_=c||x(a);return"="===r&&_&&(r=""),s=t.includePrerelease?"-0":"",l?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&_?(c&&(o=0),a=0,">"===r?(r=">=",c?(i=+i+1,o=0):o=+o+1,a=0):"<="===r&&(r="<",c?i=+i+1:o=+o+1),"<"===r&&(s="-0"),n=`${r+i}.${o}.${a}${s}`):c?n=`>=${i}.0.0${s} <${+i+1}.0.0-0`:_&&(n=`>=${i}.${o}.0${s} <${i}.${+o+1}.0-0`),u("xRange return",n),n})},C=(e,t)=>(u("replaceStars",e,t),e.trim().replace(c[_.STAR],"")),N=(e,t)=>(u("replaceGTE0",e,t),e.trim().replace(c[t.includePrerelease?_.GTE0PRE:_.GTE0],"")),M=e=>(t,n,r,i,o,a,s,u,l,c,_,p,d)=>`${n=x(r)?"":x(i)?`>=${r}.0.0${e?"-0":""}`:x(o)?`>=${r}.${i}.0${e?"-0":""}`:a?`>=${n}`:`>=${n}${e?"-0":""}`} ${u=x(l)?"":x(c)?`<${+l+1}.0.0-0`:x(_)?`<${l}.${+c+1}.0-0`:p?`<=${l}.${c}.${_}-${p}`:e?`<${l}.${c}.${+_+1}-0`:`<=${u}`}`.trim(),k=(e,t,n)=>{for(let n=0;n0){let r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}},2435:(e,t,n)=>{let r=n(952),{MAX_LENGTH:i,MAX_SAFE_INTEGER:o}=n(5558),{safeRe:a,t:s}=n(4808),u=n(1388),{compareIdentifiers:l}=n(4935);class c{constructor(e,t){if(t=u(t),e instanceof c){if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>i)throw TypeError(`version is longer than ${i} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let n=e.trim().match(t.loose?a[s.LOOSE]:a[s.FULL]);if(!n)throw TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>o||this.major<0)throw TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===l(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=c},6694:(e,t,n)=>{let r=n(9943);e.exports=(e,t)=>{let n=r(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}},8117:(e,t,n)=>{let r=n(3276),i=n(7893),o=n(6379),a=n(8463),s=n(1897),u=n(506);e.exports=(e,t,n,l)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return r(e,n,l);case"!=":return i(e,n,l);case">":return o(e,n,l);case">=":return a(e,n,l);case"<":return s(e,n,l);case"<=":return u(e,n,l);default:throw TypeError(`Invalid operator: ${t}`)}}},8686:(e,t,n)=>{let r=n(2435),i=n(9943),{safeRe:o,t:a}=n(4808);e.exports=(e,t)=>{if(e instanceof r)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let n=null;if((t=t||{}).rtl){let t;for(;(t=o[a.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&t.index+t[0].length===n.index+n[0].length||(n=t),o[a.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;o[a.COERCERTL].lastIndex=-1}else n=e.match(o[a.COERCE]);return null===n?null:i(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)}},5914:(e,t,n)=>{let r=n(2435);e.exports=(e,t,n)=>{let i=new r(e,n),o=new r(t,n);return i.compare(o)||i.compareBuild(o)}},5404:(e,t,n)=>{let r=n(2271);e.exports=(e,t)=>r(e,t,!0)},2271:(e,t,n)=>{let r=n(2435);e.exports=(e,t,n)=>new r(e,n).compare(new r(t,n))},6007:(e,t,n)=>{let r=n(9943);e.exports=(e,t)=>{let n=r(e,null,!0),i=r(t,null,!0),o=n.compare(i);if(0===o)return null;let a=o>0,s=a?n:i,u=a?i:n,l=!!s.prerelease.length,c=!!u.prerelease.length;if(c&&!l)return u.patch||u.minor?s.patch?"patch":s.minor?"minor":"major":"major";let _=l?"pre":"";return n.major!==i.major?_+"major":n.minor!==i.minor?_+"minor":n.patch!==i.patch?_+"patch":"prerelease"}},3276:(e,t,n)=>{let r=n(2271);e.exports=(e,t,n)=>0===r(e,t,n)},6379:(e,t,n)=>{let r=n(2271);e.exports=(e,t,n)=>r(e,t,n)>0},8463:(e,t,n)=>{let r=n(2271);e.exports=(e,t,n)=>r(e,t,n)>=0},6360:(e,t,n)=>{let r=n(2435);e.exports=(e,t,n,i,o)=>{"string"==typeof n&&(o=i,i=n,n=void 0);try{return new r(e instanceof r?e.version:e,n).inc(t,i,o).version}catch(e){return null}}},1897:(e,t,n)=>{let r=n(2271);e.exports=(e,t,n)=>0>r(e,t,n)},506:(e,t,n)=>{let r=n(2271);e.exports=(e,t,n)=>0>=r(e,t,n)},4551:(e,t,n)=>{let r=n(2435);e.exports=(e,t)=>new r(e,t).major},469:(e,t,n)=>{let r=n(2435);e.exports=(e,t)=>new r(e,t).minor},7893:(e,t,n)=>{let r=n(2271);e.exports=(e,t,n)=>0!==r(e,t,n)},9943:(e,t,n)=>{let r=n(2435);e.exports=(e,t,n=!1)=>{if(e instanceof r)return e;try{return new r(e,t)}catch(e){if(!n)return null;throw e}}},4250:(e,t,n)=>{let r=n(2435);e.exports=(e,t)=>new r(e,t).patch},8204:(e,t,n)=>{let r=n(9943);e.exports=(e,t)=>{let n=r(e,t);return n&&n.prerelease.length?n.prerelease:null}},733:(e,t,n)=>{let r=n(2271);e.exports=(e,t,n)=>r(t,e,n)},2961:(e,t,n)=>{let r=n(5914);e.exports=(e,t)=>e.sort((e,n)=>r(n,e,t))},9844:(e,t,n)=>{let r=n(6843);e.exports=(e,t,n)=>{try{t=new r(t,n)}catch(e){return!1}return t.test(e)}},1116:(e,t,n)=>{let r=n(5914);e.exports=(e,t)=>e.sort((e,n)=>r(e,n,t))},7230:(e,t,n)=>{let r=n(9943);e.exports=(e,t)=>{let n=r(e,t);return n?n.version:null}},7699:(e,t,n)=>{let r=n(4808),i=n(5558),o=n(2435),a=n(4935),s=n(9943),u=n(7230),l=n(6694),c=n(6360),_=n(6007),p=n(4551),d=n(469),f=n(4250),m=n(8204),h=n(2271),y=n(733),g=n(5404),b=n(5914),v=n(1116),x=n(2961),D=n(6379),S=n(1897),T=n(3276),E=n(7893),w=n(8463),A=n(506),C=n(8117),N=n(8686),M=n(7847),k=n(6843),I=n(9844),j=n(8865),O=n(3727),P=n(4338),F=n(1542),L=n(6240),z=n(9106),R=n(995),B=n(7805),U=n(2013),J=n(1338),$=n(3122);e.exports={parse:s,valid:u,clean:l,inc:c,diff:_,major:p,minor:d,patch:f,prerelease:m,compare:h,rcompare:y,compareLoose:g,compareBuild:b,sort:v,rsort:x,gt:D,lt:S,eq:T,neq:E,gte:w,lte:A,cmp:C,coerce:N,Comparator:M,Range:k,satisfies:I,toComparators:j,maxSatisfying:O,minSatisfying:P,minVersion:F,validRange:L,outside:z,gtr:R,ltr:B,intersects:U,simplifyRange:J,subset:$,SemVer:o,re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:i.SEMVER_SPEC_VERSION,RELEASE_TYPES:i.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}},5558:e=>{let t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},952:(e,t,n)=>{var r=n(4406);let i="object"==typeof r&&r.env&&r.env.NODE_DEBUG&&/\bsemver\b/i.test(r.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=i},4935:e=>{let t=/^[0-9]+$/,n=(e,n)=>{let r=t.test(e),i=t.test(n);return r&&i&&(e=+e,n=+n),e===n?0:r&&!i?-1:i&&!r?1:en(t,e)}},1388:e=>{let t=Object.freeze({loose:!0}),n=Object.freeze({});e.exports=e=>e?"object"!=typeof e?t:e:n},4808:(e,t,n)=>{let{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:o}=n(5558),a=n(952);t=e.exports={};let s=t.re=[],u=t.safeRe=[],l=t.src=[],c=t.t={},_=0,p="[a-zA-Z0-9-]",d=[["\\s",1],["\\d",o],[p,i]],f=e=>{for(let[t,n]of d)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},m=(e,t,n)=>{let r=f(t),i=_++;a(e,i,t),c[e]=i,l[i]=t,s[i]=new RegExp(t,n?"g":void 0),u[i]=new RegExp(r,n?"g":void 0)};m("NUMERICIDENTIFIER","0|[1-9]\\d*"),m("NUMERICIDENTIFIERLOOSE","\\d+"),m("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),m("MAINVERSION",`(${l[c.NUMERICIDENTIFIER]})\\.(${l[c.NUMERICIDENTIFIER]})\\.(${l[c.NUMERICIDENTIFIER]})`),m("MAINVERSIONLOOSE",`(${l[c.NUMERICIDENTIFIERLOOSE]})\\.(${l[c.NUMERICIDENTIFIERLOOSE]})\\.(${l[c.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASEIDENTIFIER",`(?:${l[c.NUMERICIDENTIFIER]}|${l[c.NONNUMERICIDENTIFIER]})`),m("PRERELEASEIDENTIFIERLOOSE",`(?:${l[c.NUMERICIDENTIFIERLOOSE]}|${l[c.NONNUMERICIDENTIFIER]})`),m("PRERELEASE",`(?:-(${l[c.PRERELEASEIDENTIFIER]}(?:\\.${l[c.PRERELEASEIDENTIFIER]})*))`),m("PRERELEASELOOSE",`(?:-?(${l[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[c.PRERELEASEIDENTIFIERLOOSE]})*))`),m("BUILDIDENTIFIER",`${p}+`),m("BUILD",`(?:\\+(${l[c.BUILDIDENTIFIER]}(?:\\.${l[c.BUILDIDENTIFIER]})*))`),m("FULLPLAIN",`v?${l[c.MAINVERSION]}${l[c.PRERELEASE]}?${l[c.BUILD]}?`),m("FULL",`^${l[c.FULLPLAIN]}$`),m("LOOSEPLAIN",`[v=\\s]*${l[c.MAINVERSIONLOOSE]}${l[c.PRERELEASELOOSE]}?${l[c.BUILD]}?`),m("LOOSE",`^${l[c.LOOSEPLAIN]}$`),m("GTLT","((?:<|>)?=?)"),m("XRANGEIDENTIFIERLOOSE",`${l[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),m("XRANGEIDENTIFIER",`${l[c.NUMERICIDENTIFIER]}|x|X|\\*`),m("XRANGEPLAIN",`[v=\\s]*(${l[c.XRANGEIDENTIFIER]})(?:\\.(${l[c.XRANGEIDENTIFIER]})(?:\\.(${l[c.XRANGEIDENTIFIER]})(?:${l[c.PRERELEASE]})?${l[c.BUILD]}?)?)?`),m("XRANGEPLAINLOOSE",`[v=\\s]*(${l[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})(?:${l[c.PRERELEASELOOSE]})?${l[c.BUILD]}?)?)?`),m("XRANGE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAIN]}$`),m("XRANGELOOSE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAINLOOSE]}$`),m("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),m("COERCERTL",l[c.COERCE],!0),m("LONETILDE","(?:~>?)"),m("TILDETRIM",`(\\s*)${l[c.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",m("TILDE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAIN]}$`),m("TILDELOOSE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAINLOOSE]}$`),m("LONECARET","(?:\\^)"),m("CARETTRIM",`(\\s*)${l[c.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",m("CARET",`^${l[c.LONECARET]}${l[c.XRANGEPLAIN]}$`),m("CARETLOOSE",`^${l[c.LONECARET]}${l[c.XRANGEPLAINLOOSE]}$`),m("COMPARATORLOOSE",`^${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]})$|^$`),m("COMPARATOR",`^${l[c.GTLT]}\\s*(${l[c.FULLPLAIN]})$|^$`),m("COMPARATORTRIM",`(\\s*)${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]}|${l[c.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",m("HYPHENRANGE",`^\\s*(${l[c.XRANGEPLAIN]})\\s+-\\s+(${l[c.XRANGEPLAIN]})\\s*$`),m("HYPHENRANGELOOSE",`^\\s*(${l[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[c.XRANGEPLAINLOOSE]})\\s*$`),m("STAR","(<|>)?=?\\s*\\*"),m("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),m("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},293:(e,t,n)=>{"use strict";let r=n(8006),i=Symbol("max"),o=Symbol("length"),a=Symbol("lengthCalculator"),s=Symbol("allowStale"),u=Symbol("maxAge"),l=Symbol("dispose"),c=Symbol("noDisposeOnSet"),_=Symbol("lruList"),p=Symbol("cache"),d=Symbol("updateAgeOnGet"),f=()=>1,m=(e,t,n)=>{let r=e[p].get(t);if(r){let t=r.value;if(h(e,t)){if(g(e,r),!e[s])return}else n&&(e[d]&&(r.value.now=Date.now()),e[_].unshiftNode(r));return t.value}},h=(e,t)=>{if(!t||!t.maxAge&&!e[u])return!1;let n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[u]&&n>e[u]},y=e=>{if(e[o]>e[i])for(let t=e[_].tail;e[o]>e[i]&&null!==t;){let n=t.prev;g(e,t),t=n}},g=(e,t)=>{if(t){let n=t.value;e[l]&&e[l](n.key,n.value),e[o]-=n.length,e[p].delete(n.key),e[_].removeNode(t)}};class b{constructor(e,t,n,r,i){this.key=e,this.value=t,this.length=n,this.now=r,this.maxAge=i||0}}let v=(e,t,n,r)=>{let i=n.value;h(e,i)&&(g(e,n),e[s]||(i=void 0)),i&&t.call(r,i.value,i.key,e)};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw TypeError("max must be a non-negative number");this[i]=e.max||1/0;let t=e.length||f;if(this[a]="function"!=typeof t?f:t,this[s]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw TypeError("maxAge must be a number");this[u]=e.maxAge||0,this[l]=e.dispose,this[c]=e.noDisposeOnSet||!1,this[d]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw TypeError("max must be a non-negative number");this[i]=e||1/0,y(this)}get max(){return this[i]}set allowStale(e){this[s]=!!e}get allowStale(){return this[s]}set maxAge(e){if("number"!=typeof e)throw TypeError("maxAge must be a non-negative number");this[u]=e,y(this)}get maxAge(){return this[u]}set lengthCalculator(e){"function"!=typeof e&&(e=f),e!==this[a]&&(this[a]=e,this[o]=0,this[_].forEach(e=>{e.length=this[a](e.value,e.key),this[o]+=e.length})),y(this)}get lengthCalculator(){return this[a]}get length(){return this[o]}get itemCount(){return this[_].length}rforEach(e,t){t=t||this;for(let n=this[_].tail;null!==n;){let r=n.prev;v(this,e,n,t),n=r}}forEach(e,t){t=t||this;for(let n=this[_].head;null!==n;){let r=n.next;v(this,e,n,t),n=r}}keys(){return this[_].toArray().map(e=>e.key)}values(){return this[_].toArray().map(e=>e.value)}reset(){this[l]&&this[_]&&this[_].length&&this[_].forEach(e=>this[l](e.key,e.value)),this[p]=new Map,this[_]=new r,this[o]=0}dump(){return this[_].map(e=>!h(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[_]}set(e,t,n){if((n=n||this[u])&&"number"!=typeof n)throw TypeError("maxAge must be a number");let r=n?Date.now():0,s=this[a](t,e);if(this[p].has(e)){if(s>this[i])return g(this,this[p].get(e)),!1;let a=this[p].get(e),u=a.value;return this[l]&&!this[c]&&this[l](e,u.value),u.now=r,u.maxAge=n,u.value=t,this[o]+=s-u.length,u.length=s,this.get(e),y(this),!0}let d=new b(e,t,s,r,n);return d.length>this[i]?(this[l]&&this[l](e,t),!1):(this[o]+=d.length,this[_].unshift(d),this[p].set(e,this[_].head),y(this),!0)}has(e){if(!this[p].has(e))return!1;let t=this[p].get(e).value;return!h(this,t)}get(e){return m(this,e,!0)}peek(e){return m(this,e,!1)}pop(){let e=this[_].tail;return e?(g(this,e),e.value):null}del(e){g(this,this[p].get(e))}load(e){this.reset();let t=Date.now();for(let n=e.length-1;n>=0;n--){let r=e[n],i=r.e||0;if(0===i)this.set(r.k,r.v);else{let e=i-t;e>0&&this.set(r.k,r.v,e)}}}prune(){this[p].forEach((e,t)=>m(this,t,!1))}}},995:(e,t,n)=>{let r=n(9106);e.exports=(e,t,n)=>r(e,t,">",n)},2013:(e,t,n)=>{let r=n(6843);e.exports=(e,t,n)=>(e=new r(e,n),t=new r(t,n),e.intersects(t,n))},7805:(e,t,n)=>{let r=n(9106);e.exports=(e,t,n)=>r(e,t,"<",n)},3727:(e,t,n)=>{let r=n(2435),i=n(6843);e.exports=(e,t,n)=>{let o=null,a=null,s=null;try{s=new i(t,n)}catch(e){return null}return e.forEach(e=>{s.test(e)&&(!o||-1===a.compare(e))&&(o=e,a=new r(o,n))}),o}},4338:(e,t,n)=>{let r=n(2435),i=n(6843);e.exports=(e,t,n)=>{let o=null,a=null,s=null;try{s=new i(t,n)}catch(e){return null}return e.forEach(e=>{s.test(e)&&(!o||1===a.compare(e))&&(o=e,a=new r(o,n))}),o}},1542:(e,t,n)=>{let r=n(2435),i=n(6843),o=n(6379);e.exports=(e,t)=>{e=new i(e,t);let n=new r("0.0.0");if(e.test(n)||(n=new r("0.0.0-0"),e.test(n)))return n;n=null;for(let t=0;t{let t=new r(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!a||o(t,a))&&(a=t);break;case"<":case"<=":break;default:throw Error(`Unexpected operation: ${e.operator}`)}}),a&&(!n||o(n,a))&&(n=a)}return n&&e.test(n)?n:null}},9106:(e,t,n)=>{let r=n(2435),i=n(7847),{ANY:o}=i,a=n(6843),s=n(9844),u=n(6379),l=n(1897),c=n(506),_=n(8463);e.exports=(e,t,n,p)=>{let d,f,m,h,y;switch(e=new r(e,p),t=new a(t,p),n){case">":d=u,f=c,m=l,h=">",y=">=";break;case"<":d=l,f=_,m=u,h="<",y="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(s(e,t,p))return!1;for(let n=0;n{e.semver===o&&(e=new i(">=0.0.0")),a=a||e,s=s||e,d(e.semver,a.semver,p)?a=e:m(e.semver,s.semver,p)&&(s=e)}),a.operator===h||a.operator===y||(!s.operator||s.operator===h)&&f(e,s.semver)||s.operator===y&&m(e,s.semver))return!1}return!0}},1338:(e,t,n)=>{let r=n(9844),i=n(2271);e.exports=(e,t,n)=>{let o=[],a=null,s=null,u=e.sort((e,t)=>i(e,t,n));for(let e of u){let i=r(e,t,n);i?(s=e,a||(a=e)):(s&&o.push([a,s]),s=null,a=null)}a&&o.push([a,null]);let l=[];for(let[e,t]of o)e===t?l.push(e):t||e!==u[0]?t?e===u[0]?l.push(`<=${t}`):l.push(`${e} - ${t}`):l.push(`>=${e}`):l.push("*");let c=l.join(" || "),_="string"==typeof t.raw?t.raw:String(t);return c.length<_.length?c:t}},3122:(e,t,n)=>{let r=n(6843),i=n(7847),{ANY:o}=i,a=n(9844),s=n(2271),u=[new i(">=0.0.0-0")],l=[new i(">=0.0.0")],c=(e,t,n)=>{let r,i,c,d,f,m,h;if(e===t)return!0;if(1===e.length&&e[0].semver===o){if(1===t.length&&t[0].semver===o)return!0;e=n.includePrerelease?u:l}if(1===t.length&&t[0].semver===o){if(n.includePrerelease)return!0;t=l}let y=new Set;for(let t of e)">"===t.operator||">="===t.operator?r=_(r,t,n):"<"===t.operator||"<="===t.operator?i=p(i,t,n):y.add(t.semver);if(y.size>1||r&&i&&((c=s(r.semver,i.semver,n))>0||0===c&&(">="!==r.operator||"<="!==i.operator)))return null;for(let e of y){if(r&&!a(e,String(r),n)||i&&!a(e,String(i),n))return null;for(let r of t)if(!a(e,String(r),n))return!1;return!0}let g=!!i&&!n.includePrerelease&&!!i.semver.prerelease.length&&i.semver,b=!!r&&!n.includePrerelease&&!!r.semver.prerelease.length&&r.semver;for(let e of(g&&1===g.prerelease.length&&"<"===i.operator&&0===g.prerelease[0]&&(g=!1),t)){if(h=h||">"===e.operator||">="===e.operator,m=m||"<"===e.operator||"<="===e.operator,r){if(b&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===b.major&&e.semver.minor===b.minor&&e.semver.patch===b.patch&&(b=!1),">"===e.operator||">="===e.operator){if((d=_(r,e,n))===e&&d!==r)return!1}else if(">="===r.operator&&!a(r.semver,String(e),n))return!1}if(i){if(g&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===g.major&&e.semver.minor===g.minor&&e.semver.patch===g.patch&&(g=!1),"<"===e.operator||"<="===e.operator){if((f=p(i,e,n))===e&&f!==i)return!1}else if("<="===i.operator&&!a(i.semver,String(e),n))return!1}if(!e.operator&&(i||r)&&0!==c)return!1}return(!r||!m||!!i||0===c)&&(!i||!h||!!r||0===c)&&!b&&!g},_=(e,t,n)=>{if(!e)return t;let r=s(e.semver,t.semver,n);return r>0?e:r<0?t:">"===t.operator&&">="===e.operator?t:e},p=(e,t,n)=>{if(!e)return t;let r=s(e.semver,t.semver,n);return r<0?e:r>0?t:"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,n={})=>{if(e===t)return!0;e=new r(e,n),t=new r(t,n);let i=!1;r:for(let r of e.set){for(let e of t.set){let t=c(r,e,n);if(i=i||null!==t,t)continue r}if(i)return!1}return!0}},8865:(e,t,n)=>{let r=n(6843);e.exports=(e,t)=>new r(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "))},6240:(e,t,n)=>{let r=n(6843);e.exports=(e,t)=>{try{return new r(e,t).range||"*"}catch(e){return null}}},4851:(e,t,n)=>{e.exports=i;var r=n(2699).EventEmitter;function i(){r.call(this)}n(1285)(i,r),i.Readable=n(8051),i.Writable=n(2557),i.Duplex=n(7073),i.Transform=n(7640),i.PassThrough=n(5163),i.finished=n(9885),i.pipeline=n(3495),i.Stream=i,i.prototype.pipe=function(e,t){var n=this;function i(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function o(){n.readable&&n.resume&&n.resume()}n.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",u));var a=!1;function s(){a||(a=!0,e.end())}function u(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function l(e){if(c(),0===r.listenerCount(this,"error"))throw e}function c(){n.removeListener("data",i),e.removeListener("drain",o),n.removeListener("end",s),n.removeListener("close",u),n.removeListener("error",l),e.removeListener("error",l),n.removeListener("end",c),n.removeListener("close",c),e.removeListener("close",c)}return n.on("error",l),e.on("error",l),n.on("end",c),n.on("close",c),e.on("close",c),e.emit("pipe",n),e}},6871:(e,t,n)=>{let{EventEmitter:r}=n(2699),i=Error("Stream was destroyed"),o=Error("Premature close"),a=n(281),s=n(2865),u=16809999,l=17423,c=16527,_=1167,p=12431,d=82975,f=32879,m=71303183,h=3276815,y=1179663,g=72482831,b=17563663,v=Symbol.asyncIterator||Symbol("asyncIterator");class x{constructor(e,{highWaterMark:t=16384,map:n=null,mapWritable:r,byteLength:i,byteLengthWritable:o}={}){this.stream=e,this.queue=new s,this.highWaterMark=t,this.buffered=0,this.error=null,this.pipeline=null,this.drains=null,this.byteLength=o||i||J,this.map=r||n,this.afterWrite=C.bind(this),this.afterUpdateNextTick=k.bind(this)}get ended(){return(4194304&this.stream._duplexState)!=0}push(e){return(null!==this.map&&(e=this.map(e)),this.buffered+=this.byteLength(e),this.queue.push(e),this.buffered0;)t.push(this.shift());for(let e=0;e0;)r.drains.shift().resolve(!1);null!==r.pipeline&&r.pipeline.done(t,e)}}function C(e){let t=this.stream;e&&t.destroy(e),t._duplexState&=100532223,null!==this.drains&&function(e){for(let t=0;t=e._readableState.highWaterMark}static isPaused(e){return(256&e._duplexState)==0}[v](){let e=this,t=null,n=null,r=null;return this.on("error",e=>{t=e}),this.on("readable",function(){null!==n&&o(e.read())}),this.on("close",function(){null!==n&&o(null)}),{[v](){return this},next:()=>new Promise(function(t,i){n=t,r=i;let a=e.read();null!==a?o(a):(8&e._duplexState)!=0&&o(null)}),return:()=>a(null),throw:e=>a(e)};function o(o){null!==r&&(t?r(t):null===o&&(16384&e._duplexState)==0?r(i):n({value:o,done:null===o}),r=n=null)}function a(t){return e.destroy(t),new Promise((n,r)=>{if(8&e._duplexState)return n({value:void 0,done:!0});e.once("close",function(){t?r(t):n({value:void 0,done:!0})})})}}}class F extends P{constructor(e){super(e),this._duplexState=1,this._writableState=new x(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final))}_writev(e,t){t(null)}_write(e,t){this._writableState.autoBatch(e,t)}_final(e){e(null)}write(e){return this._writableState.updateNextTick(),this._writableState.push(e)}end(e){return this._writableState.updateNextTick(),this._writableState.end(e),this}}class L extends F{constructor(e){super(e),this._transformState=new S(this),e&&(e.transform&&(this._transform=e.transform),e.flush&&(this._flush=e.flush))}_write(e,t){this._readableState.buffered>=this._readableState.highWaterMark?this._transformState.data=e:this._transform(e,this._transformState.afterTransform)}_read(e){if(null!==this._transformState.data){let t=this._transformState.data;this._transformState.data=null,e(null),this._transform(t,this._transformState.afterTransform)}else e(null)}_transform(e,t){t(null,e)}_flush(e){e(null)}_final(e){this._transformState.afterFinal=e,this._flush(z.bind(this))}}function z(e,t){let n=this._transformState.afterFinal;if(e)return n(e);null!=t&&this.push(t),this.push(null),n(null)}function R(e,...t){let n=Array.isArray(e)?[...e,...t]:[e,...t],r=n.length&&"function"==typeof n[n.length-1]?n.pop():null;if(n.length<2)throw Error("Pipeline requires at least 2 streams");let i=n[0],a=null,s=null;for(let e=1;e1,u),i.pipe(a)),i=a;if(r){let e=!1,t=U(a)||!!(a._writableState&&a._writableState.autoDestroy);a.on("error",e=>{null===s&&(s=e)}),a.on("finish",()=>{e=!0,t||r(s)}),t&&a.on("close",()=>r(s||(e?null:o)))}return a;function u(e){if(e&&!s)for(let t of(s=e,n))t.destroy(e)}}function B(e){return!!e._readableState||!!e._writableState}function U(e){return"number"==typeof e._duplexState&&B(e)}function J(e){return"object"==typeof e&&null!==e&&"number"==typeof e.byteLength?e.byteLength:1024}function $(){}function K(){this.destroy(Error("Stream aborted."))}e.exports={pipeline:R,pipelinePromise:function(...e){return new Promise((t,n)=>R(...e,e=>{if(e)return n(e);t()}))},isStream:B,isStreamx:U,getStreamError:function(e){let t=e._readableState&&e._readableState.error||e._writableState&&e._writableState.error;return t===i?null:t},Stream:O,Writable:class extends O{constructor(e){super(e),this._duplexState|=16385,this._writableState=new x(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final),e.eagerOpen&&this._writableState.updateNextTick())}_writev(e,t){t(null)}_write(e,t){this._writableState.autoBatch(e,t)}_final(e){e(null)}static isBackpressured(e){return(73400334&e._duplexState)!=0}static drained(e){if(e.destroyed)return Promise.resolve(!1);let t=e._writableState,n=t.queue.length+(33554432&e._duplexState?1:0);return 0===n?Promise.resolve(!0):(null===t.drains&&(t.drains=[]),new Promise(e=>{t.drains.push({writes:n,resolve:e})}))}write(e){return this._writableState.updateNextTick(),this._writableState.push(e)}end(e){return this._writableState.updateNextTick(),this._writableState.end(e),this}},Readable:P,Duplex:F,Transform:L,PassThrough:class extends L{}}},214:(e,t,n)=>{"use strict";var r=n(7834).Buffer,i=r.isEncoding||function(e){switch((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 o(e){var t;switch(this.encoding=function(e){var t=function(e){var t;if(!e)return"utf8";for(;;)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}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=l,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=c,this.end=_,t=3;break;default:this.write=p,this.end=d;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}(this,e,0);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function u(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function c(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?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-n))}function _(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function p(e){return e.toString(this.encoding)}function d(e){return e&&e.length?this.write(e):""}t.s=o,o.prototype.write=function(e){var t,n;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0?(i>0&&(e.lastNeed=i-1),i):--r=0?(i>0&&(e.lastNeed=i-2),i):--r=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},o.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}},5580:e=>{let t=/^[-+]?0x[a-fA-F0-9]+$/,n=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);let r={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};e.exports=function(e,i={}){if(i=Object.assign({},r,i),!e||"string"!=typeof e)return e;let o=e.trim();if(void 0!==i.skipLike&&i.skipLike.test(o))return e;if(i.hex&&t.test(o))return Number.parseInt(o,16);{let t=n.exec(o);if(!t)return e;{var a;let n=t[1],r=t[2],s=((a=t[3])&&-1!==a.indexOf(".")&&("."===(a=a.replace(/0+$/,""))?a="0":"."===a[0]?a="0"+a:"."===a[a.length-1]&&(a=a.substr(0,a.length-1))),a),u=t[4]||t[6];if(!i.leadingZeros&&r.length>0&&n&&"."!==o[2])return e;{if(!i.leadingZeros&&r.length>0&&!n&&"."!==o[1])return e;let t=Number(o),a=""+t;return -1!==a.search(/[eE]/)||u?i.eNotation?t:e:-1!==o.indexOf(".")?"0"===a&&""===s?t:a===s?t:n&&a==="-"+s?t:e:r?s===a?t:n+s===a?t:e:o===a?t:o===n+a?t:e}}}}},7715:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Struct:()=>l,StructError:()=>r,any:()=>T,array:()=>E,assert:()=>c,assign:()=>m,bigint:()=>w,boolean:()=>A,coerce:()=>Q,create:()=>_,date:()=>C,defaulted:()=>H,define:()=>h,deprecated:()=>y,dynamic:()=>g,empty:()=>Z,enums:()=>N,func:()=>M,instance:()=>k,integer:()=>I,intersection:()=>j,is:()=>d,lazy:()=>b,literal:()=>O,map:()=>P,mask:()=>p,max:()=>ee,min:()=>et,never:()=>F,nonempty:()=>en,nullable:()=>L,number:()=>z,object:()=>R,omit:()=>v,optional:()=>B,partial:()=>x,pattern:()=>er,pick:()=>D,record:()=>U,refine:()=>eo,regexp:()=>J,set:()=>$,size:()=>ei,string:()=>K,struct:()=>S,trimmed:()=>G,tuple:()=>V,type:()=>Y,union:()=>W,unknown:()=>q,validate:()=>f});class r extends TypeError{constructor(e,t){let n;let{message:r,explanation:i,...o}=e,{path:a}=e,s=0===a.length?r:`At path: ${a.join(".")} -- ${r}`;super(i??s),null!=i&&(this.cause=s),Object.assign(this,o),this.name=this.constructor.name,this.failures=()=>n??(n=[e,...t()])}}function i(e){return"object"==typeof e&&null!=e}function o(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function a(e){return"symbol"==typeof e?e.toString():"string"==typeof e?JSON.stringify(e):`${e}`}function*s(e,t,n,r){var o;for(let s of(i(o=e)&&"function"==typeof o[Symbol.iterator]||(e=[e]),e)){let e=function(e,t,n,r){if(!0===e)return;!1===e?e={}:"string"==typeof e&&(e={message:e});let{path:i,branch:o}=t,{type:s}=n,{refinement:u,message:l=`Expected a value of type \`${s}\`${u?` with refinement \`${u}\``:""}, but received: \`${a(r)}\``}=e;return{value:r,type:s,refinement:u,key:i[i.length-1],path:i,branch:o,...e,message:l}}(s,t,n,r);e&&(yield e)}}function*u(e,t,n={}){let{path:r=[],branch:o=[e],coerce:a=!1,mask:s=!1}=n,l={path:r,branch:o};if(a&&(e=t.coercer(e,l),s&&"type"!==t.type&&i(t.schema)&&i(e)&&!Array.isArray(e)))for(let n in e)void 0===t.schema[n]&&delete e[n];let c="valid";for(let r of t.validator(e,l))r.explanation=n.message,c="not_valid",yield[r,void 0];for(let[_,p,d]of t.entries(e,l)){let t=u(p,d,{path:void 0===_?r:[...r,_],branch:void 0===_?o:[...o,p],coerce:a,mask:s,message:n.message});for(let n of t)n[0]?(c=null!=n[0].refinement?"not_refined":"not_valid",yield[n[0],void 0]):a&&(p=n[1],void 0===_?e=p:e instanceof Map?e.set(_,p):e instanceof Set?e.add(p):i(e)&&(void 0!==p||_ in e)&&(e[_]=p))}if("not_valid"!==c)for(let r of t.refiner(e,l))r.explanation=n.message,c="not_refined",yield[r,void 0];"valid"===c&&(yield[void 0,e])}class l{constructor(e){let{type:t,schema:n,validator:r,refiner:i,coercer:o=e=>e,entries:a=function*(){}}=e;this.type=t,this.schema=n,this.entries=a,this.coercer=o,r?this.validator=(e,t)=>{let n=r(e,t);return s(n,t,this,e)}:this.validator=()=>[],i?this.refiner=(e,t)=>{let n=i(e,t);return s(n,t,this,e)}:this.refiner=()=>[]}assert(e,t){return c(e,this,t)}create(e,t){return _(e,this,t)}is(e){return d(e,this)}mask(e,t){return p(e,this,t)}validate(e,t={}){return f(e,this,t)}}function c(e,t,n){let r=f(e,t,{message:n});if(r[0])throw r[0]}function _(e,t,n){let r=f(e,t,{coerce:!0,message:n});if(!r[0])return r[1];throw r[0]}function p(e,t,n){let r=f(e,t,{coerce:!0,mask:!0,message:n});if(!r[0])return r[1];throw r[0]}function d(e,t){let n=f(e,t);return!n[0]}function f(e,t,n={}){let i=u(e,t,n),o=function(e){let{done:t,value:n}=e.next();return t?void 0:n}(i);if(o[0]){let e=new r(o[0],function*(){for(let e of i)e[0]&&(yield e[0])});return[e,void 0]}{let e=o[1];return[void 0,e]}}function m(...e){let t="type"===e[0].type,n=e.map(e=>e.schema),r=Object.assign({},...n);return t?Y(r):R(r)}function h(e,t){return new l({type:e,schema:null,validator:t})}function y(e,t){return new l({...e,refiner:(t,n)=>void 0===t||e.refiner(t,n),validator:(n,r)=>void 0===n||(t(n,r),e.validator(n,r))})}function g(e){return new l({type:"dynamic",schema:null,*entries(t,n){let r=e(t,n);yield*r.entries(t,n)},validator(t,n){let r=e(t,n);return r.validator(t,n)},coercer(t,n){let r=e(t,n);return r.coercer(t,n)},refiner(t,n){let r=e(t,n);return r.refiner(t,n)}})}function b(e){let t;return new l({type:"lazy",schema:null,*entries(n,r){t??(t=e()),yield*t.entries(n,r)},validator:(n,r)=>(t??(t=e()),t.validator(n,r)),coercer:(n,r)=>(t??(t=e()),t.coercer(n,r)),refiner:(n,r)=>(t??(t=e()),t.refiner(n,r))})}function v(e,t){let{schema:n}=e,r={...n};for(let e of t)delete r[e];return"type"===e.type?Y(r):R(r)}function x(e){let t=e instanceof l?{...e.schema}:{...e};for(let e in t)t[e]=B(t[e]);return R(t)}function D(e,t){let{schema:n}=e,r={};for(let e of t)r[e]=n[e];return R(r)}function S(e,t){return console.warn("superstruct@0.11 - The `struct` helper has been renamed to `define`."),h(e,t)}function T(){return h("any",()=>!0)}function E(e){return new l({type:"array",schema:e,*entries(t){if(e&&Array.isArray(t))for(let[n,r]of t.entries())yield[n,r,e]},coercer:e=>Array.isArray(e)?e.slice():e,validator:e=>Array.isArray(e)||`Expected an array value, but received: ${a(e)}`})}function w(){return h("bigint",e=>"bigint"==typeof e)}function A(){return h("boolean",e=>"boolean"==typeof e)}function C(){return h("date",e=>e instanceof Date&&!isNaN(e.getTime())||`Expected a valid \`Date\` object, but received: ${a(e)}`)}function N(e){let t={},n=e.map(e=>a(e)).join();for(let n of e)t[n]=n;return new l({type:"enums",schema:t,validator:t=>e.includes(t)||`Expected one of \`${n}\`, but received: ${a(t)}`})}function M(){return h("func",e=>"function"==typeof e||`Expected a function, but received: ${a(e)}`)}function k(e){return h("instance",t=>t instanceof e||`Expected a \`${e.name}\` instance, but received: ${a(t)}`)}function I(){return h("integer",e=>"number"==typeof e&&!isNaN(e)&&Number.isInteger(e)||`Expected an integer, but received: ${a(e)}`)}function j(e){return new l({type:"intersection",schema:null,*entries(t,n){for(let r of e)yield*r.entries(t,n)},*validator(t,n){for(let r of e)yield*r.validator(t,n)},*refiner(t,n){for(let r of e)yield*r.refiner(t,n)}})}function O(e){let t=a(e),n=typeof e;return new l({type:"literal",schema:"string"===n||"number"===n||"boolean"===n?e:null,validator:n=>n===e||`Expected the literal \`${t}\`, but received: ${a(n)}`})}function P(e,t){return new l({type:"map",schema:null,*entries(n){if(e&&t&&n instanceof Map)for(let[r,i]of n.entries())yield[r,r,e],yield[r,i,t]},coercer:e=>e instanceof Map?new Map(e):e,validator:e=>e instanceof Map||`Expected a \`Map\` object, but received: ${a(e)}`})}function F(){return h("never",()=>!1)}function L(e){return new l({...e,validator:(t,n)=>null===t||e.validator(t,n),refiner:(t,n)=>null===t||e.refiner(t,n)})}function z(){return h("number",e=>"number"==typeof e&&!isNaN(e)||`Expected a number, but received: ${a(e)}`)}function R(e){let t=e?Object.keys(e):[],n=F();return new l({type:"object",schema:e||null,*entries(r){if(e&&i(r)){let i=new Set(Object.keys(r));for(let n of t)i.delete(n),yield[n,r[n],e[n]];for(let e of i)yield[e,r[e],n]}},validator:e=>i(e)||`Expected an object, but received: ${a(e)}`,coercer:e=>i(e)?{...e}:e})}function B(e){return new l({...e,validator:(t,n)=>void 0===t||e.validator(t,n),refiner:(t,n)=>void 0===t||e.refiner(t,n)})}function U(e,t){return new l({type:"record",schema:null,*entries(n){if(i(n))for(let r in n){let i=n[r];yield[r,r,e],yield[r,i,t]}},validator:e=>i(e)||`Expected an object, but received: ${a(e)}`})}function J(){return h("regexp",e=>e instanceof RegExp)}function $(e){return new l({type:"set",schema:null,*entries(t){if(e&&t instanceof Set)for(let n of t)yield[n,n,e]},coercer:e=>e instanceof Set?new Set(e):e,validator:e=>e instanceof Set||`Expected a \`Set\` object, but received: ${a(e)}`})}function K(){return h("string",e=>"string"==typeof e||`Expected a string, but received: ${a(e)}`)}function V(e){let t=F();return new l({type:"tuple",schema:null,*entries(n){if(Array.isArray(n)){let r=Math.max(e.length,n.length);for(let i=0;iArray.isArray(e)||`Expected an array, but received: ${a(e)}`})}function Y(e){let t=Object.keys(e);return new l({type:"type",schema:e,*entries(n){if(i(n))for(let r of t)yield[r,n[r],e[r]]},validator:e=>i(e)||`Expected an object, but received: ${a(e)}`,coercer:e=>i(e)?{...e}:e})}function W(e){let t=e.map(e=>e.type).join(" | ");return new l({type:"union",schema:null,coercer(t){for(let n of e){let[e,r]=n.validate(t,{coerce:!0});if(!e)return r}return t},validator(n,r){let i=[];for(let t of e){let[...e]=u(n,t,r),[o]=e;if(!o[0])return[];for(let[t]of e)t&&i.push(t)}return[`Expected the value to satisfy a union of \`${t}\`, but received: ${a(n)}`,...i]}})}function q(){return h("unknown",()=>!0)}function Q(e,t,n){return new l({...e,coercer:(r,i)=>d(r,t)?e.coercer(n(r,i),i):e.coercer(r,i)})}function H(e,t,n={}){return Q(e,q(),e=>{let r="function"==typeof t?t():t;if(void 0===e)return r;if(!n.strict&&o(e)&&o(r)){let t={...e},n=!1;for(let e in r)void 0===t[e]&&(t[e]=r[e],n=!0);if(n)return t}return e})}function G(e){return Q(e,K(),e=>e.trim())}function Z(e){return eo(e,"empty",t=>{let n=X(t);return 0===n||`Expected an empty ${e.type} but received one with a size of \`${n}\``})}function X(e){return e instanceof Map||e instanceof Set?e.size:e.length}function ee(e,t,n={}){let{exclusive:r}=n;return eo(e,"max",n=>r?nr?n>t:n>=t||`Expected a ${e.type} greater than ${r?"":"or equal to "}${t} but received \`${n}\``)}function en(e){return eo(e,"nonempty",t=>{let n=X(t);return n>0||`Expected a nonempty ${e.type} but received an empty one`})}function er(e,t){return eo(e,"pattern",n=>t.test(n)||`Expected a ${e.type} matching \`/${t.source}/\` but received "${n}"`)}function ei(e,t,n=t){let r=`Expected a ${e.type}`,i=t===n?`of \`${t}\``:`between \`${t}\` and \`${n}\``;return eo(e,"size",e=>{if("number"==typeof e||e instanceof Date)return t<=e&&e<=n||`${r} ${i} but received \`${e}\``;if(e instanceof Map||e instanceof Set){let{size:o}=e;return t<=o&&o<=n||`${r} with a size ${i} but received one with a size of \`${o}\``}{let{length:o}=e;return t<=o&&o<=n||`${r} with a length ${i} but received one with a length of \`${o}\``}})}function eo(e,t,n){return new l({...e,*refiner(r,i){yield*e.refiner(r,i);let o=n(r,i),a=s(o,i,e,r);for(let e of a)yield{...e,refinement:t}}})}},6853:(e,t,n)=>{let r={S_IFMT:61440,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960};try{e.exports=n(4374).constants||r}catch{e.exports=r}},9254:(e,t,n)=>{let{Writable:r,Readable:i,getStreamError:o}=n(6871),a=n(2865),s=n(2871),u=n(8066),l=s.alloc(0);class c{constructor(){this.buffered=0,this.shifted=0,this.queue=new a,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return 0===this._buffered?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(0===e)return l;let t=this._next(e);if(e===t.byteLength)return t;let n=[t];for(;(e-=t.byteLength)>0;)t=this._next(e),n.push(t);return s.concat(n)}_next(e){let t=this.queue.peek(),n=t.byteLength-this._offset;if(e>=n){let e=this._offset?t.subarray(this._offset,t.byteLength):t;return this.queue.shift(),this._offset=0,this.buffered-=n,this.shifted+=n,e}return this.buffered-=e,this.shifted+=e,t.subarray(this._offset,this._offset+=e)}}class _ extends i{constructor(e,t,n){super(),this.header=t,this.offset=n,this._parent=e}_read(e){0===this.header.size&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(o(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=f(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}}class p extends r{constructor(e){super(e),e||(e={}),this._buffer=new c,this._offset=0,this._header=null,this._stream=null,this._missing=0,this._longHeader=!1,this._callback=d,this._locked=!1,this._finished=!1,this._pax=null,this._paxGlobal=null,this._gnuLongPath=null,this._gnuLongLinkPath=null,this._filenameEncoding=e.filenameEncoding||"utf-8",this._allowUnknownFormat=!!e.allowUnknownFormat,this._unlockBound=this._unlock.bind(this)}_unlock(e){if(this._locked=!1,e){this.destroy(e),this._continueWrite(e);return}this._update()}_consumeHeader(){if(this._locked)return!1;this._offset=this._buffer.shifted;try{this._header=u.decode(this._buffer.shift(512),this._filenameEncoding,this._allowUnknownFormat)}catch(e){return this._continueWrite(e),!1}if(!this._header)return!0;switch(this._header.type){case"gnu-long-path":case"gnu-long-link-path":case"pax-global-header":case"pax-header":return this._longHeader=!0,this._missing=this._header.size,!0}return(this._locked=!0,this._applyLongHeaders(),0===this._header.size||"directory"===this._header.type)?this.emit("entry",this._header,this._createStream(),this._unlockBound):(this._stream=this._createStream(),this._missing=this._header.size,this.emit("entry",this._header,this._stream,this._unlockBound)),!0}_applyLongHeaders(){this._gnuLongPath&&(this._header.name=this._gnuLongPath,this._gnuLongPath=null),this._gnuLongLinkPath&&(this._header.linkname=this._gnuLongLinkPath,this._gnuLongLinkPath=null),this._pax&&(this._pax.path&&(this._header.name=this._pax.path),this._pax.linkpath&&(this._header.linkname=this._pax.linkpath),this._pax.size&&(this._header.size=parseInt(this._pax.size,10)),this._header.pax=this._pax,this._pax=null)}_decodeLongHeader(e){switch(this._header.type){case"gnu-long-path":this._gnuLongPath=u.decodeLongPath(e,this._filenameEncoding);break;case"gnu-long-link-path":this._gnuLongLinkPath=u.decodeLongPath(e,this._filenameEncoding);break;case"pax-global-header":this._paxGlobal=u.decodePax(e);break;case"pax-header":this._pax=null===this._paxGlobal?u.decodePax(e):Object.assign({},this._paxGlobal,u.decodePax(e))}}_consumeLongHeader(){this._longHeader=!1,this._missing=f(this._header.size);let e=this._buffer.shift(this._header.size);try{this._decodeLongHeader(e)}catch(e){return this._continueWrite(e),!1}return!0}_consumeStream(){let e=this._buffer.shiftFirst(this._missing);if(null===e)return!1;this._missing-=e.byteLength;let t=this._stream.push(e);return 0===this._missing?(this._stream.push(null),t&&this._stream._detach(),t&&!1===this._locked):t}_createStream(){return new _(this,this._header,this._offset)}_update(){for(;this._buffer.buffered>0&&!this.destroying;){if(this._missing>0){if(null!==this._stream){if(!1===this._consumeStream())return;continue}if(!0===this._longHeader){if(this._missing>this._buffer.buffered)break;if(!1===this._consumeLongHeader())return!1;continue}let e=this._buffer.shiftFirst(this._missing);null!==e&&(this._missing-=e.byteLength);continue}if(this._buffer.buffered<512)break;if(null!==this._stream||!1===this._consumeHeader())return}this._continueWrite(null)}_continueWrite(e){let t=this._callback;this._callback=d,t(e)}_write(e,t){this._callback=t,this._buffer.push(e),this._update()}_final(e){this._finished=0===this._missing&&0===this._buffer.buffered,e(this._finished?null:Error("Unexpected end of data"))}_predestroy(){this._continueWrite(null)}_destroy(e){this._stream&&this._stream.destroy(o(this)),e(null)}[Symbol.asyncIterator](){let e=null,t=null,n=null,r=null,i=null,o=this;return this.on("entry",function(e,o,a){i=a,o.on("error",d),t?(t({value:o,done:!1}),t=n=null):r=o}),this.on("error",t=>{e=t}),this.on("close",function(){a(e),t&&(e?n(e):t({value:void 0,done:!0}),t=n=null)}),{[Symbol.asyncIterator](){return this},next:()=>new Promise(s),return:()=>u(null),throw:e=>u(e)};function a(e){if(!i)return;let t=i;i=null,t(e)}function s(i,s){if(e)return s(e);if(r){i({value:r,done:!1}),r=null;return}t=i,n=s,a(null),o._finished&&t&&(t({value:void 0,done:!0}),t=n=null)}function u(e){return o.destroy(e),a(e),new Promise((t,n)=>{if(o.destroyed)return t({value:void 0,done:!0});o.once("close",function(){e?n(e):t({value:void 0,done:!0})})})}}}function d(){}function f(e){return(e&=511)&&512-e}e.exports=function(e){return new p(e)}},8066:(e,t,n)=>{let r=n(2871),i=r.from([117,115,116,97,114,0]),o=r.from([48,48]),a=r.from([117,115,116,97,114,32]),s=r.from([32,0]);function u(e,t,n,r){for(;nt?"7777777777777777777".slice(0,t)+" ":"0000000000000000000".slice(0,t-e.length)+e+" "}function _(e,t,n){if(128&(e=e.subarray(t,t+n))[t=0])return function(e){let t,n;if(128===e[0])t=!0;else{if(255!==e[0])return null;t=!1}let r=[];for(n=e.length-1;n>0;n--){let i=e[n];t?r.push(i):r.push(255-i)}let i=0,o=r.length;for(n=0;n=i?i:r>=0||(r+=i)>=0?r:0);for(;t=Math.pow(10,n)&&n++,t+n+e}t.decodeLongPath=function(e,t){return p(e,0,e.length,t)},t.encodePax=function(e){let t="";e.name&&(t+=d(" path="+e.name+"\n")),e.linkname&&(t+=d(" linkpath="+e.linkname+"\n"));let n=e.pax;if(n)for(let e in n)t+=d(" "+e+"="+n[e]+"\n");return r.from(t)},t.decodePax=function(e){let t={};for(;e.length;){let n=0;for(;n100;){let e=a.indexOf("/");if(-1===e)return null;s+=s?"/"+a.slice(0,e):a.slice(0,e),a=a.slice(e+1)}return r.byteLength(a)>100||r.byteLength(s)>155||e.linkname&&r.byteLength(e.linkname)>100?null:(r.write(n,a),r.write(n,c(4095&e.mode,6),100),r.write(n,c(e.uid,6),108),r.write(n,c(e.gid,6),116),(t=e.size).toString(8).length>11?function(e,t,n){t[n]=128;for(let r=11;r>0;r--)t[n+r]=255&e,e=Math.floor(e/256)}(t,n,124):r.write(n,c(t,11),124),r.write(n,c(e.mtime.getTime()/1e3|0,11),136),n[156]=48+function(e){switch(e){case"file":break;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}(e.type),e.linkname&&r.write(n,e.linkname,157),r.copy(i,n,257),r.copy(o,n,263),e.uname&&r.write(n,e.uname,265),e.gname&&r.write(n,e.gname,297),r.write(n,c(e.devmajor||0,6),329),r.write(n,c(e.devminor||0,6),337),s&&r.write(n,s,345),r.write(n,c(l(n),6),148),n)},t.decode=function(e,t,n){let o=0===e[156]?0:e[156]-48,u=p(e,0,100,t),c=_(e,100,8),d=_(e,108,8),f=_(e,116,8),m=_(e,124,12),h=_(e,136,12),y=function(e){switch(e){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}(o),g=0===e[157]?null:p(e,157,100,t),b=p(e,265,32),v=p(e,297,32),x=_(e,329,8),D=_(e,337,8),S=l(e);if(256===S)return null;if(S!==_(e,148,8))throw Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(r.equals(i,e.subarray(257,263)))e[345]&&(u=p(e,345,155,t)+"/"+u);else if(r.equals(a,e.subarray(257,263))&&r.equals(s,e.subarray(263,265)));else if(!n)throw Error("Invalid tar header: unknown format.");return 0===o&&u&&"/"===u[u.length-1]&&(o=5),{name:u,mode:c,uid:d,gid:f,size:m,mtime:new Date(1e3*h),type:y,linkname:g,uname:b,gname:v,devmajor:x,devminor:D,pax:null}}},2623:(e,t,n)=>{t.extract=n(9254),n(4132)},4132:(e,t,n)=>{let{Readable:r,Writable:i,getStreamError:o}=n(6871),a=n(2871),s=n(6853),u=n(8066),l=a.alloc(1024);class c extends i{constructor(e,t,n){super({mapWritable:f,eagerOpen:!0}),this.written=0,this.header=t,this._callback=n,this._linkname=null,this._isLinkname="symlink"===t.type&&!t.linkname,this._isVoid="file"!==t.type&&"contiguous-file"!==t.type,this._finished=!1,this._pack=e,this._openCallback=null,null===this._pack._stream?this._pack._stream=this:this._pack._pending.push(this)}_open(e){this._openCallback=e,this._pack._stream===this&&this._continueOpen()}_continuePack(e){if(null===this._callback)return;let t=this._callback;this._callback=null,t(e)}_continueOpen(){null===this._pack._stream&&(this._pack._stream=this);let e=this._openCallback;if(this._openCallback=null,null!==e){if(this._pack.destroying)return e(Error("pack stream destroyed"));if(this._pack._finalized)return e(Error("pack stream is already finalized"));this._pack._stream=this,this._isLinkname||this._pack._encode(this.header),this._isVoid&&(this._finish(),this._continuePack(null)),e(null)}}_write(e,t){return this._isLinkname?(this._linkname=this._linkname?a.concat([this._linkname,e]):e,t(null)):this._isVoid?e.byteLength>0?t(Error("No body allowed for this entry")):t():(this.written+=e.byteLength,this._pack.push(e))?t():void(this._pack._drain=t)}_finish(){this._finished||(this._finished=!0,this._isLinkname&&(this.header.linkname=this._linkname?a.toString(this._linkname,"utf-8"):"",this._pack._encode(this.header)),d(this._pack,this.header.size),this._pack._done(this))}_final(e){if(this.written!==this.header.size)return e(Error("Size mismatch"));this._finish(),e(null)}_getError(){return o(this)||Error("tar entry destroyed")}_predestroy(){this._pack.destroy(this._getError())}_destroy(e){this._pack._done(this),this._continuePack(this._finished?null:this._getError()),e()}}class _ extends r{constructor(e){super(e),this._drain=p,this._finalized=!1,this._finalizing=!1,this._pending=[],this._stream=null}entry(e,t,n){if(this._finalized||this.destroying)throw Error("already finalized or destroyed");"function"==typeof t&&(n=t,t=null),n||(n=p),e.size&&"symlink"!==e.type||(e.size=0),e.type||(e.type=function(e){switch(e&s.S_IFMT){case s.S_IFBLK:return"block-device";case s.S_IFCHR:return"character-device";case s.S_IFDIR:return"directory";case s.S_IFIFO:return"fifo";case s.S_IFLNK:return"symlink"}return"file"}(e.mode)),e.mode||(e.mode="directory"===e.type?493:420),e.uid||(e.uid=0),e.gid||(e.gid=0),e.mtime||(e.mtime=new Date),"string"==typeof t&&(t=a.from(t));let r=new c(this,e,n);return a.isBuffer(t)?(e.size=t.byteLength,r.write(t),r.end()):r._isVoid,r}finalize(){if(this._stream||this._pending.length>0){this._finalizing=!0;return}this._finalized||(this._finalized=!0,this.push(l),this.push(null))}_done(e){e===this._stream&&(this._stream=null,this._finalizing&&this.finalize(),this._pending.length&&this._pending.shift()._continueOpen())}_encode(e){if(!e.pax){let t=u.encode(e);if(t){this.push(t);return}}this._encodePax(e)}_encodePax(e){let t=u.encodePax({name:e.name,linkname:e.linkname,pax:e.pax}),n={name:"PaxHeader",mode:e.mode,uid:e.uid,gid:e.gid,size:t.byteLength,mtime:e.mtime,type:"pax-header",linkname:e.linkname&&"PaxHeader",uname:e.uname,gname:e.gname,devmajor:e.devmajor,devminor:e.devminor};this.push(u.encode(n)),this.push(t),d(this,t.byteLength),n.size=e.size,n.type=e.type,this.push(u.encode(n))}_doDrain(){let e=this._drain;this._drain=p,e()}_predestroy(){let e=o(this);for(this._stream&&this._stream.destroy(e);this._pending.length;){let t=this._pending.shift();t.destroy(e),t._continueOpen()}this._doDrain()}_read(e){this._doDrain(),e()}}function p(){}function d(e,t){(t&=511)&&e.push(l.subarray(0,512-t))}function f(e){return a.isBuffer(e)?e:a.from(e)}e.exports=function(e){return new _(e)}},9085:(e,t)=>{var n,r=function(){var e=Object.prototype.toString,t=Object.prototype.hasOwnProperty;return{Class:function(t){return e.call(t).replace(/^\[object *|\]$/g,"")},HasProperty:function(e,t){return t in e},HasOwnProperty:function(e,n){return t.call(e,n)},IsCallable:function(e){return"function"==typeof e},ToInt32:function(e){return e>>0},ToUint32:function(e){return e>>>0}}}(),i=Math.LN2,o=Math.abs,a=Math.floor,s=Math.log,u=Math.min,l=Math.pow,c=Math.round;function _(e){if(p&&n){var t,r=p(e);for(t=0;t>n}function f(e,t){var n=32-t;return e<>>n}function m(e){return[255&e]}function h(e){return d(e[0],8)}function y(e){return[255&e]}function g(e){return f(e[0],8)}function b(e){return[(e=c(Number(e)))<0?0:e>255?255:255&e]}function v(e){return[e>>8&255,255&e]}function x(e){return d(e[0]<<8|e[1],16)}function D(e){return[e>>8&255,255&e]}function S(e){return f(e[0]<<8|e[1],16)}function T(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]}function E(e){return d(e[0]<<24|e[1]<<16|e[2]<<8|e[3],32)}function w(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]}function A(e){return f(e[0]<<24|e[1]<<16|e[2]<<8|e[3],32)}function C(e,t,n){var r,c,_,p,d,f,m,h=(1<.5?t+1:t%2?t+1:t}for(e!=e?(c=(1<=l(2,1-h)?(c=u(a(s(e)/i),1023),(_=y(e/l(2,c)*l(2,n)))/l(2,n)>=2&&(c+=1,_=1),c>h?(c=(1<>=1;return(p.reverse(),a=p.join(""),s=(1<0?u*l(2,c-s)*(1+_/l(2,n)):0!==_?u*l(2,-(s-1))*(_/l(2,n)):u<0?-0:0}function M(e){return N(e,11,52)}function k(e){return C(e,11,52)}function I(e){return N(e,8,23)}function j(e){return C(e,8,23)}!function(){var e=function(e){var t;if((e=r.ToInt32(e))<0)throw RangeError("ArrayBuffer size is not a small enough positive integer");for(t=0,this.byteLength=e,this._bytes=[],this._bytes.length=e;tthis.buffer.byteLength)throw RangeError("byteOffset out of range");if(this.byteOffset%this.BYTES_PER_ELEMENT)throw RangeError("ArrayBuffer length minus the byteOffset is not a multiple of the element size.");if(arguments.length<3){if(this.byteLength=this.buffer.byteLength-this.byteOffset,this.byteLength%this.BYTES_PER_ELEMENT)throw RangeError("length of buffer minus byteOffset not a multiple of the element size");this.length=this.byteLength/this.BYTES_PER_ELEMENT}else this.length=r.ToUint32(o),this.byteLength=this.length*this.BYTES_PER_ELEMENT;if(this.byteOffset+this.byteLength>this.buffer.byteLength)throw RangeError("byteOffset and length reference an area beyond the end of the buffer")}else throw TypeError("Unexpected argument type(s)")}else for(l=0,u=arguments[0],this.length=r.ToUint32(u.length),this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new e(this.byteLength),this.byteOffset=0;l1e5)throw RangeError("Array too large for polyfill");for(t=0;t=this.length)){var t,n,i=[];for(t=0,n=this.byteOffset+e*this.BYTES_PER_ELEMENT;t=this.length)){var n,i,o=this._pack(t);for(n=0,i=this.byteOffset+e*this.BYTES_PER_ELEMENT;nthis.length)throw RangeError("Offset plus length of array is out of range");if(c=this.byteOffset+o*this.BYTES_PER_ELEMENT,_=n.length*this.BYTES_PER_ELEMENT,n.buffer===this.buffer){for(s=0,p=[],u=n.byteOffset;s<_;s+=1,u+=1)p[s]=n.buffer._bytes[u];for(s=0,l=c;s<_;s+=1,l+=1)this.buffer._bytes[l]=p[s]}else for(s=0,u=n.byteOffset,l=c;s<_;s+=1,u+=1,l+=1)this.buffer._bytes[l]=n.buffer._bytes[u]}else if("object"==typeof arguments[0]&&void 0!==arguments[0].length){if(i=arguments[0],a=r.ToUint32(i.length),o=r.ToUint32(arguments[1]),o+a>this.length)throw RangeError("Offset plus length of array is out of range");for(s=0;si?i:n,o=t,a=this.length;var n,i,o,a,s=(t=o<0?0:o>a?a:o)-e;return s<0&&(s=0),new this.constructor(this.buffer,this.byteOffset+e*this.BYTES_PER_ELEMENT,s)},s}var a=o(1,m,h),s=o(1,y,g),u=o(1,b,g),l=o(2,v,x),c=o(2,D,S),p=o(4,T,E),d=o(4,w,A),f=o(4,j,I),C=o(8,k,M);t.iq=t.iq||a,t.U2=t.U2||s,t.we=t.we||u,t.M2=t.M2||l,t.HA=t.HA||c,t.ZV=t.ZV||p,t._R=t._R||d,t.$L=t.$L||f,t.I=t.I||C}(),function(){function e(e,t){return r.IsCallable(e.get)?e.get(t):e[t]}var n,i=(n=new t.HA([4660]),18===e(new t.U2(n.buffer),0)),o=function(e,n,i){if(0==arguments.length)e=new t.eT(0);else if(!(e instanceof t.eT||"ArrayBuffer"===r.Class(e)))throw TypeError("TypeError");if(this.buffer=e||new t.eT(0),this.byteOffset=r.ToUint32(n),this.byteOffset>this.buffer.byteLength)throw RangeError("byteOffset out of range");if(arguments.length<3?this.byteLength=this.buffer.byteLength-this.byteOffset:this.byteLength=r.ToUint32(i),this.byteOffset+this.byteLength>this.buffer.byteLength)throw RangeError("byteOffset and length reference an area beyond the end of the buffer");_(this)};function a(n){return function(o,a){if((o=r.ToUint32(o))+n.BYTES_PER_ELEMENT>this.byteLength)throw RangeError("Array index out of range");o+=this.byteOffset;var s,u=new t.U2(this.buffer,o,n.BYTES_PER_ELEMENT),l=[];for(s=0;sthis.byteLength)throw RangeError("Array index out of range");var u,l=new n([a]),c=new t.U2(l.buffer),_=[];for(u=0;u{e.exports=function(e,t){if(r("noDeprecation"))return e;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}};function r(e){try{if(!n.g.localStorage)return!1}catch(e){return!1}var t=n.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}},82:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},4895:(e,t,n)=>{"use strict";var r=n(2635),i=n(3138),o=n(2094),a=n(198);function s(e){return e.call.bind(e)}var u="undefined"!=typeof BigInt,l="undefined"!=typeof Symbol,c=s(Object.prototype.toString),_=s(Number.prototype.valueOf),p=s(String.prototype.valueOf),d=s(Boolean.prototype.valueOf);if(u)var f=s(BigInt.prototype.valueOf);if(l)var m=s(Symbol.prototype.valueOf);function h(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function y(e){return"[object Map]"===c(e)}function g(e){return"[object Set]"===c(e)}function b(e){return"[object WeakMap]"===c(e)}function v(e){return"[object WeakSet]"===c(e)}function x(e){return"[object ArrayBuffer]"===c(e)}function D(e){return"undefined"!=typeof ArrayBuffer&&(x.working?x(e):e instanceof ArrayBuffer)}function S(e){return"[object DataView]"===c(e)}function T(e){return"undefined"!=typeof DataView&&(S.working?S(e):e instanceof DataView)}t.isArgumentsObject=r,t.isGeneratorFunction=i,t.isTypedArray=a,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||T(e)},t.isUint8Array=function(e){return"Uint8Array"===o(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===o(e)},t.isUint16Array=function(e){return"Uint16Array"===o(e)},t.isUint32Array=function(e){return"Uint32Array"===o(e)},t.isInt8Array=function(e){return"Int8Array"===o(e)},t.isInt16Array=function(e){return"Int16Array"===o(e)},t.isInt32Array=function(e){return"Int32Array"===o(e)},t.isFloat32Array=function(e){return"Float32Array"===o(e)},t.isFloat64Array=function(e){return"Float64Array"===o(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===o(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===o(e)},y.working="undefined"!=typeof Map&&y(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(y.working?y(e):e instanceof Map)},g.working="undefined"!=typeof Set&&g(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(g.working?g(e):e instanceof Set)},b.working="undefined"!=typeof WeakMap&&b(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(b.working?b(e):e instanceof WeakMap)},v.working="undefined"!=typeof WeakSet&&v(new WeakSet),t.isWeakSet=function(e){return v(e)},x.working="undefined"!=typeof ArrayBuffer&&x(new ArrayBuffer),t.isArrayBuffer=D,S.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&S(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=T;var E="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function w(e){return"[object SharedArrayBuffer]"===c(e)}function A(e){return void 0!==E&&(void 0===w.working&&(w.working=w(new E)),w.working?w(e):e instanceof E)}function C(e){return h(e,_)}function N(e){return h(e,p)}function M(e){return h(e,d)}function k(e){return u&&h(e,f)}function I(e){return l&&h(e,m)}t.isSharedArrayBuffer=A,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===c(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===c(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===c(e)},t.isGeneratorObject=function(e){return"[object Generator]"===c(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===c(e)},t.isNumberObject=C,t.isStringObject=N,t.isBooleanObject=M,t.isBigIntObject=k,t.isSymbolObject=I,t.isBoxedPrimitive=function(e){return C(e)||N(e)||M(e)||k(e)||I(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(D(e)||A(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw Error(e+" is not supported in userland")}})})},3335:(e,t,n)=>{var r=n(4406),i=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}}),s=r[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),h(n)?r.showHidden=n:n&&t._extend(r,n),v(r.showHidden)&&(r.showHidden=!1),v(r.depth)&&(r.depth=2),v(r.colors)&&(r.colors=!1),v(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=c),p(r,e,r.depth)}function c(e,t){var n=l.styles[t];return n?"\x1b["+l.colors[n][0]+"m"+e+"\x1b["+l.colors[n][1]+"m":e}function _(e,t){return e}function p(e,n,r){if(e.customInspect&&n&&E(n.inspect)&&n.inspect!==t.inspect&&!(n.constructor&&n.constructor.prototype===n)){var i,o,a,s,u,l=n.inspect(r,e);return b(l)||(l=p(e,l,r)),l}var c=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(b(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return g(t)?e.stylize(""+t,"number"):h(t)?e.stylize(""+t,"boolean"):y(t)?e.stylize("null","null"):void 0}(e,n);if(c)return c;var _=Object.keys(n),D=(s={},_.forEach(function(e,t){s[e]=!0}),s);if(e.showHidden&&(_=Object.getOwnPropertyNames(n)),T(n)&&(_.indexOf("message")>=0||_.indexOf("description")>=0))return d(n);if(0===_.length){if(E(n)){var w=n.name?": "+n.name:"";return e.stylize("[Function"+w+"]","special")}if(x(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(S(n))return e.stylize(Date.prototype.toString.call(n),"date");if(T(n))return d(n)}var A="",C=!1,M=["{","}"];return(m(n)&&(C=!0,M=["[","]"]),E(n)&&(A=" [Function"+(n.name?": "+n.name:"")+"]"),x(n)&&(A=" "+RegExp.prototype.toString.call(n)),S(n)&&(A=" "+Date.prototype.toUTCString.call(n)),T(n)&&(A=" "+d(n)),0!==_.length||C&&0!=n.length)?r<0?x(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),u=C?function(e,t,n,r,i){for(var o=[],a=0,s=t.length;a=0&&a++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?o[0]+(""===i?"":i+"\n ")+" "+u.join(",\n ")+" "+o[1]:o[0]+i+" "+u.join(", ")+" "+o[1]):M[0]+A+M[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function f(e,t,n,r,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),N(r,i)||(a="["+i+"]"),!s&&(0>e.seen.indexOf(u.value)?(s=y(n)?p(e,u.value,null):p(e,u.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").slice(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),v(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function m(e){return Array.isArray(e)}function h(e){return"boolean"==typeof e}function y(e){return null===e}function g(e){return"number"==typeof e}function b(e){return"string"==typeof e}function v(e){return void 0===e}function x(e){return D(e)&&"[object RegExp]"===w(e)}function D(e){return"object"==typeof e&&null!==e}function S(e){return D(e)&&"[object Date]"===w(e)}function T(e){return D(e)&&("[object Error]"===w(e)||e instanceof Error)}function E(e){return"function"==typeof e}function w(e){return Object.prototype.toString.call(e)}function A(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(!a[e=e.toUpperCase()]){if(s.test(e)){var n=r.pid;a[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,r)}}else a[e]=function(){}}return a[e]},t.inspect=l,l.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]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=n(4895),t.isArray=m,t.isBoolean=h,t.isNull=y,t.isNullOrUndefined=function(e){return null==e},t.isNumber=g,t.isString=b,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=v,t.isRegExp=x,t.types.isRegExp=x,t.isObject=D,t.isDate=S,t.types.isDate=S,t.isError=T,t.types.isNativeError=T,t.isFunction=E,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(82);var C=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function N(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,n;console.log("%s - %s",(n=[A((e=new Date).getHours()),A(e.getMinutes()),A(e.getSeconds())].join(":"),[e.getDate(),C[e.getMonth()],n].join(" ")),t.format.apply(t,arguments))},t.inherits=n(1285),t._extend=function(e,t){if(!t||!D(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var M="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function k(e,t){if(!e){var n=Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');if(M&&e[M]){var t=e[M];if("function"!=typeof t)throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,M,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise(function(e,r){t=e,n=r}),i=[],o=0;o{"use strict";var r=RegExp("^(?:@([^/]+?)[/])?([^/]+?)$"),i=n(5890),o=["node_modules","favicon.ico"],a=function(e,t){var n={validForNewPackages:0===t.length&&0===e.length,validForOldPackages:0===t.length,warnings:e,errors:t};return n.warnings.length||delete n.warnings,n.errors.length||delete n.errors,n};e.exports=function(e){var t=[],n=[];if(null===e)return n.push("name cannot be null"),a(t,n);if(void 0===e)return n.push("name cannot be undefined"),a(t,n);if("string"!=typeof e)return n.push("name must be a string"),a(t,n);if(e.length||n.push("name length must be greater than zero"),e.match(/^\./)&&n.push("name cannot start with a period"),e.match(/^_/)&&n.push("name cannot start with an underscore"),e.trim()!==e&&n.push("name cannot contain leading or trailing spaces"),o.forEach(function(t){e.toLowerCase()===t&&n.push(t+" is a blacklisted name")}),i({version:"*"}).forEach(function(n){e.toLowerCase()===n&&t.push(n+" is a core module name")}),e.length>214&&t.push("name can no longer contain more than 214 characters"),e.toLowerCase()!==e&&t.push("name can no longer contain capital letters"),/[~'!()*]/.test(e.split("/").slice(-1)[0])&&t.push('name can no longer contain special characters ("~\'!()*")'),encodeURIComponent(e)!==e){var s=e.match(r);if(s){var u=s[1],l=s[2];if(encodeURIComponent(u)===u&&encodeURIComponent(l)===l)return a(t,n)}n.push("name can only contain URL-friendly characters")}return a(t,n)}},2094:(e,t,n)=>{"use strict";var r=n(3243),i=n(711),o=n(2680),a=n(326),s=o("Object.prototype.toString"),u=n(7226)(),l="undefined"==typeof globalThis?n.g:globalThis,c=i(),_=o("String.prototype.slice"),p={},d=Object.getPrototypeOf;u&&a&&d&&r(c,function(e){if("function"==typeof l[e]){var t=new l[e];if(Symbol.toStringTag in t){var n=d(t),r=a(n,Symbol.toStringTag);r||(r=a(d(n),Symbol.toStringTag)),p[e]=r.get}}});var f=function(e){var t=!1;return r(p,function(n,r){if(!t)try{var i=n.call(e);i===r&&(t=i)}catch(e){}}),t},m=n(198);e.exports=function(e){return!!m(e)&&(u&&Symbol.toStringTag in e?f(e):_(s(e),8,-1))}},8892:e=>{e.exports=function e(t,n){if(t&&n)return e(t)(n);if("function"!=typeof t)throw TypeError("need wrapper function");return Object.keys(t).forEach(function(e){r[e]=t[e]}),r;function r(){for(var e=Array(arguments.length),n=0;n{"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},8006:(e,t,n)=>{"use strict";function r(e){var t=this;if(t instanceof r||(t=new r),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach(function(e){t.push(e)});else if(arguments.length>0)for(var n=0,i=arguments.length;n1)n=t;else if(this.head)r=this.head.next,n=this.head.value;else throw TypeError("Reduce of empty list with no initial value");for(var i=0;null!==r;i++)n=e(n,r.value,i),r=r.next;return n},r.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else if(this.tail)r=this.tail.prev,n=this.tail.value;else throw TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;null!==r;i--)n=e(n,r.value,i),r=r.prev;return n},r.prototype.toArray=function(){for(var e=Array(this.length),t=0,n=this.head;null!==n;t++)e[t]=n.value,n=n.next;return e},r.prototype.toArrayReverse=function(){for(var e=Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},r.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r;if(tthis.length&&(t=this.length);for(var i=0,o=this.head;null!==o&&ithis.length&&(t=this.length);for(var i=this.length,o=this.tail;null!==o&&i>t;i--)o=o.prev;for(;null!==o&&i>e;i--,o=o.prev)n.push(o.value);return n},r.prototype.splice=function(e,t,...n){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var r=0,o=this.head;null!==o&&r{e.exports=n(6794)(22194)},2241:(e,t,n)=>{e.exports=n(6794)(2784)},7973:(e,t,n)=>{e.exports=n(6794)(28316)},4416:(e,t,n)=>{e.exports=n(6794)(29033)},5487:(e,t,n)=>{e.exports=n(6794)(29501)},940:(e,t,n)=>{e.exports=n(6794)(41014)},8100:(e,t,n)=>{e.exports=n(6794)(41023)},2501:(e,t,n)=>{e.exports=n(6794)(44714)},4623:(e,t,n)=>{e.exports=n(6794)(45056)},6075:(e,t,n)=>{e.exports=n(6794)(51501)},2264:(e,t,n)=>{e.exports=n(6794)(57879)},682:(e,t,n)=>{e.exports=n(6794)(5895)},2116:(e,t,n)=>{e.exports=n(6794)(61199)},5040:(e,t,n)=>{e.exports=n(6794)(63163)},1625:(e,t,n)=>{e.exports=n(6794)(69234)},1469:(e,t,n)=>{e.exports=n(6794)(71384)},6363:(e,t,n)=>{e.exports=n(6794)(73323)},7306:(e,t,n)=>{e.exports=n(6794)(76034)},6885:(e,t,n)=>{e.exports=n(6794)(7850)},6205:(e,t,n)=>{e.exports=n(6794)(82323)},148:(e,t,n)=>{e.exports=n(6794)(83620)},3035:(e,t,n)=>{e.exports=n(6794)(88100)},17:(e,t,n)=>{e.exports=n(6794)(94762)},6794:e=>{"use strict";e.exports=vendor_3aa856362d22bb2cb8f2},6831:()=>{},4854:()=>{},6602:()=>{},4374:()=>{}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{n.g.importScripts&&(e=n.g.location+"");var e,t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var i=r.length-1;i>-1&&!e;)e=r[i--].src}if(!e)throw Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})(),(()=>{"use strict";var e,t,r,i,o,a,s,u,l,c,_,p,d,f,m,h,y,g,b,v,x,D,S,T,E,w,A,C,N,M,k,I=n(2322),j=n(17),O=n(7029),P=n(2241),F=n(7306),L=n(6363),z=(0,L.createSlice)({name:"configuration",initialState:{open:!1,snapId:"local:http://localhost:8080",snapVersion:void 0,srp:"test test test test test test test test test test test ball",sesEnabled:!0},reducers:{openConfigurationModal:function(e){e.open=!0},setOpen:function(e,t){e.open=t.payload},setSnapId:function(e,t){e.snapId=t.payload},setSnapVersion:function(e,t){e.snapVersion=t.payload},setSrp:function(e,t){e.srp=t.payload},setSesEnabled:function(e,t){e.sesEnabled=t.payload}}}),R=z.actions,B=R.openConfigurationModal,U=R.setOpen,J=R.setSnapId,$=R.setSnapVersion;R.setSrp,R.setSesEnabled;var K=z.reducer,V=(0,L.createSelector)(function(e){return e.configuration},function(e){return e.open}),Y=(0,L.createSelector)(function(e){return e.configuration},function(e){return e.snapId}),W=(0,L.createSelector)(function(e){return e.configuration},function(e){return e.snapVersion}),q=(0,L.createSelector)(function(e){return e.configuration},function(e){return e.srp}),Q=(0,L.createSelector)(function(e){return e.configuration},function(e){return e.sesEnabled}),H=n(2501),G=H.useDispatch;(function(e){e.OnRpcRequest="onRpcRequest",e.OnSignature="onSignature",e.OnTransaction="onTransaction",e.OnCronjob="onCronjob",e.OnInstall="onInstall",e.OnUpdate="onUpdate",e.OnNameLookup="onNameLookup",e.OnKeyringRequest="onKeyringRequest",e.OnHomePage="onHomePage"})(e||(e={})),Object.values(e);var Z=n(6205),X={alert:{alt:"Alert",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCA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DlaIiBmaWxsPSIjQkJDMEM1Ii8+Cjwvc3ZnPgo="}},ee=(0,P.forwardRef)(function(e,t){var n=e.icon,r=e.alt,i=void 0===r?X[n].alt:r,o=e.width,a=void 0===o?"32px":o,s=e.height,u=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["icon","alt","width","height"]),l=(0,Z.useColorMode)().colorMode,c=X[n],_=c.src,p=(0,j.hasProperty)(c,"srcDark")?c.srcDark:c.src;return(0,I.jsx)(Z.Image,function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);nn=>e(t(n)),n=Array.from(e).reverse().reduce((e,n)=>e?t(e,n.encode):n.encode,void 0),r=e.reduce((e,n)=>e?t(e,n.decode):n.decode,void 0);return{encode:n,decode:r}}function ey(e){return{encode:t=>{if(!Array.isArray(t)||t.length&&"number"!=typeof t[0])throw Error("alphabet.encode input should be an array of numbers");return t.map(t=>{if(t<0||t>=e.length)throw Error(`Digit index outside alphabet: ${t} (alphabet: ${e.length})`);return e[t]})},decode:t=>{if(!Array.isArray(t)||t.length&&"string"!=typeof t[0])throw Error("alphabet.decode input should be array of strings");return t.map(t=>{if("string"!=typeof t)throw Error(`alphabet.decode: not string element=${t}`);let n=e.indexOf(t);if(-1===n)throw Error(`Unknown letter: "${t}". Allowed: ${e}`);return n})}}}function eg(e=""){if("string"!=typeof e)throw Error("join separator should be string");return{encode:t=>{if(!Array.isArray(t)||t.length&&"string"!=typeof t[0])throw Error("join.encode input should be array of strings");for(let e of t)if("string"!=typeof e)throw Error(`join.encode: non-string input=${e}`);return t.join(e)},decode:t=>{if("string"!=typeof t)throw Error("join.decode input should be string");return t.split(e)}}}let eb=(e,t)=>t?eb(t,e%t):e,ev=(e,t)=>e+(t-eb(e,t));function ex(e,t,n,r){if(!Array.isArray(e))throw Error("convertRadix2: data should be array");if(t<=0||t>32)throw Error(`convertRadix2: wrong from=${t}`);if(n<=0||n>32)throw Error(`convertRadix2: wrong to=${n}`);if(ev(t,n)>32)throw Error(`convertRadix2: carry overflow from=${t} to=${n} carryBits=${ev(t,n)}`);let i=0,o=0,a=2**n-1,s=[];for(let r of e){if(r>=2**t)throw Error(`convertRadix2: invalid data word=${r} from=${t}`);if(i=i<32)throw Error(`convertRadix2: carry overflow pos=${o} from=${t}`);for(o+=t;o>=n;o-=n)s.push((i>>o-n&a)>>>0);i&=2**o-1}if(i=i<=t)throw Error("Excess padding");if(!r&&i)throw Error(`Non-zero padding: ${i}`);return r&&o>0&&s.push(i>>>0),s}let eD=eh(function(e,t=!1){if(e<=0||e>32)throw Error("radix2: bits should be in (0..32]");if(ev(8,e)>32||ev(e,8)>32)throw Error("radix2: carry overflow");return{encode:n=>{if(!(n instanceof Uint8Array))throw Error("radix2.encode input should be Uint8Array");return ex(Array.from(n),8,e,!t)},decode:n=>{if(!Array.isArray(n)||n.length&&"number"!=typeof n[0])throw Error("radix2.decode input should be array of strings");return Uint8Array.from(ex(n,e,8,t))}}}(6),ey("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),function(e,t="="){if("string"!=typeof t)throw Error("padding chr should be string");return{encode(n){if(!Array.isArray(n)||n.length&&"string"!=typeof n[0])throw Error("padding.encode input should be array of strings");for(let e of n)if("string"!=typeof e)throw Error(`padding.encode: non-string input=${e}`);for(;n.length*e%8;)n.push(t);return n},decode(n){if(!Array.isArray(n)||n.length&&"string"!=typeof n[0])throw Error("padding.encode input should be array of strings");for(let e of n)if("string"!=typeof e)throw Error(`padding.decode: non-string input=${e}`);let r=n.length;if(r*e%8)throw Error("Invalid padding: string should have whole number of bytes");for(;r>0&&n[r-1]===t;r--)if(!((r-1)*e%8))throw Error("Invalid padding: string has too much padding");return n.slice(0,r)}}}(6),eg(""));var eS=n(5695),eT=n.n(eS),eE=n(7715),ew=n(9189),eA=n.n(ew);function eC(e){if(!Number.isSafeInteger(e)||e<0)throw Error(`Wrong positive integer: ${e}`)}function eN(e,...t){if(!(e instanceof Uint8Array))throw Error("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function eM(e,t=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")}function ek(e,t){eN(e);let n=t.outputLen;if(e.lengthe instanceof Uint8Array,ej=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),eO=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),eP=(e,t)=>e<<32-t|e>>>t,eF=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0];if(!eF)throw Error("Non little-endian hardware is not supported");function eL(e){if("string"==typeof e&&(e=function(e){if("string"!=typeof e)throw Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}(e)),!eI(e))throw Error(`expected Uint8Array, got ${typeof e}`);return e}class ez{clone(){return this._cloneInto()}}function eR(e){let t=t=>e().update(eL(t)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}class eB extends ez{constructor(e,t,n,r){super(),this.blockLen=e,this.outputLen=t,this.padOffset=n,this.isLE=r,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=eO(this.buffer)}update(e){eM(this);let{view:t,buffer:n,blockLen:r}=this;e=eL(e);let i=e.length;for(let o=0;or-o&&(this.process(n,0),o=0);for(let e=o;e>i&o),s=Number(n&o),u=r?4:0,l=r?0:4;e.setUint32(t+u,a,r),e.setUint32(t+l,s,r)})(n,r-8,BigInt(8*this.length),i),this.process(n,0);let a=eO(e),s=this.outputLen;if(s%4)throw Error("_sha2: outputLen should be aligned to 32bit");let u=s/4,l=this.get();if(u>l.length)throw Error("_sha2: outputLen bigger than state");for(let e=0;ee&t^~e&n,eJ=(e,t,n)=>e&t^e&n^t&n,e$=new Uint32Array([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]),eK=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),eV=new Uint32Array(64);class eY extends eB{constructor(){super(64,32,8,!1),this.A=0|eK[0],this.B=0|eK[1],this.C=0|eK[2],this.D=0|eK[3],this.E=0|eK[4],this.F=0|eK[5],this.G=0|eK[6],this.H=0|eK[7]}get(){let{A:e,B:t,C:n,D:r,E:i,F:o,G:a,H:s}=this;return[e,t,n,r,i,o,a,s]}set(e,t,n,r,i,o,a,s){this.A=0|e,this.B=0|t,this.C=0|n,this.D=0|r,this.E=0|i,this.F=0|o,this.G=0|a,this.H=0|s}process(e,t){for(let n=0;n<16;n++,t+=4)eV[n]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=eV[e-15],n=eV[e-2],r=eP(t,7)^eP(t,18)^t>>>3,i=eP(n,17)^eP(n,19)^n>>>10;eV[e]=i+eV[e-7]+r+eV[e-16]|0}let{A:n,B:r,C:i,D:o,E:a,F:s,G:u,H:l}=this;for(let e=0;e<64;e++){let t=eP(a,6)^eP(a,11)^eP(a,25),c=l+t+eU(a,s,u)+e$[e]+eV[e]|0,_=eP(n,2)^eP(n,13)^eP(n,22),p=_+eJ(n,r,i)|0;l=u,u=s,s=a,a=o+c|0,o=i,i=r,r=n,n=c+p|0}n=n+this.A|0,r=r+this.B|0,i=i+this.C|0,o=o+this.D|0,a=a+this.E|0,s=s+this.F|0,u=u+this.G|0,l=l+this.H|0,this.set(n,r,i,o,a,s,u,l)}roundClean(){eV.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}let eW=eR(()=>new eY);var eq=n(7152),eQ=n.n(eq)()({proto:!1,circles:!1});function eH(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&void 0!==arguments[0]?arguments[0]:{};return(0,eE.refine)((0,eE.union)([(0,eE.string)(),(0,eE.instance)(URL)]),"uri",function(t){try{var n=new URL(t),r=(0,eE.type)(e);return(0,eE.assert)(n,r),!0}catch(e){return'Expected URL, got "'.concat(t.toString(),'".')}})};function e9(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}RegExp("^(?:[A-Za-z0-9-_]+( [A-Za-z0-9-_]+)*)|(?:(?:@[A-Za-z0-9-*~][A-Za-z0-9-*._~]*\\/)?[A-Za-z0-9-~][A-Za-z0-9-._~]*)$","u"),function(e){e.Installing="installing",e.Updating="updating",e.Running="running",e.Stopped="stopped",e.Crashed="crashed"}(u||(u={})),function(e){e.Start="START",e.Stop="STOP",e.Crash="CRASH",e.Update="UPDATE"}(l||(l={})),tu(Error);function tp(){var e;return(e=function(e){var t,n,r,i,o,a,s;return tc(this,function(u){switch(u.label){case 0:var l;return t=e.manifest,n=e.sourceCode,r=e.svgIcon,i=e.auxiliaryFiles,o=e.localizationFiles,a=[(l=t.clone(),delete l.result.source.shasum,l.value=eT()(l.result),l),n,r].concat(ta(i),ta(o)).filter(function(e){return void 0!==e}),s=eD.encode,[4,function(e){return e5.apply(this,arguments)}(a)];case 1:return[2,s.apply(eD,[u.sent()])]}})},tp=function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){tt(o,r,i,a,s,"next",e)}function s(e){tt(o,r,i,a,s,"throw",e)}a(void 0)})}).apply(this,arguments)}var td=(0,eE.pattern)((0,eE.string)(),RegExp("^[\\x21-\\x7E]*$","u")),tf=e7({protocol:(0,eE.enums)(["http:","https:"]),hostname:(0,eE.enums)(["localhost","127.0.0.1","[::1]"]),hash:(0,eE.empty)((0,eE.string)()),search:(0,eE.empty)((0,eE.string)())}),tm=(0,eE.refine)(td,"local Snap Id",function(e){if(!e.startsWith(o.local))return'Expected local snap ID, got "'.concat(e,'".');var t=to((0,eE.validate)(e.slice(o.local.length),tf),1)[0];return null==t||t}),th=(0,eE.intersection)([td,e7({protocol:(0,eE.literal)(o.npm),pathname:(0,eE.refine)((0,eE.string)(),"package name",function(e){var t,n,r,i,o;return tc(this,function(a){switch(a.label){case 0:if(t=e.startsWith("/")?e.slice(1):e,r=(n=eA()(t)).errors,i=n.validForNewPackages,o=n.warnings,i)return[3,4];if(void 0!==r)return[3,2];return(0,j.assert)(void 0!==o),[5,t_(o)];case 1:return a.sent(),[3,4];case 2:return[5,t_(r)];case 3:a.sent(),a.label=4;case 4:return[2,!0]}})}),search:(0,eE.empty)((0,eE.string)()),hash:(0,eE.empty)((0,eE.string)())})]),ty=(0,eE.intersection)([td,e7({protocol:(0,eE.enums)(["http:","https:"]),search:(0,eE.empty)((0,eE.string)()),hash:(0,eE.empty)((0,eE.string)())})]),tg=(0,eE.union)([th,tm]);function tb(e){var t=Object.values(o).find(function(t){return e.startsWith(t)});if(void 0!==t)return t;throw Error('Invalid or no prefix found for "'.concat(e,'"'))}function tv(e){return e.replace(tb(e),"")}function tx(e){return(0,j.getSafeJson)(JSON.parse(e))}var tD=n(8100);function tS(e,t){return e.length===t.length&&e.every(function(e,n){return e===t[n]})}var tT=n(3601),tE=(0,eE.object)({jsonrpc:(0,eE.optional)(j.JsonRpcVersionStruct),id:(0,eE.optional)(j.JsonRpcIdStruct),method:(0,eE.string)(),params:(0,eE.optional)(j.JsonRpcParamsStruct)}),tw=(0,eE.refine)((0,eE.string)(),"CronExpression",function(e){try{return(0,tT.parseExpression)(e),!0}catch(e){return!1}}),tA=(0,eE.object)({expression:tw,request:tE}),tC=(0,eE.array)(tA),tN="1399742832'",tM="572232532'",tk=n(4416),tI=(0,eE.refine)((0,eE.object)({dapps:(0,eE.optional)((0,eE.boolean)()),snaps:(0,eE.optional)((0,eE.boolean)()),allowedOrigins:(0,eE.optional)((0,eE.array)((0,eE.string)()))}),"RPC origins",function(e){return!0===e.snaps||!0===e.dapps||!!e.allowedOrigins&&e.allowedOrigins.length>0||"Must specify at least one JSON-RPC origin."}),tj=(0,eE.object)({allowedOrigins:(0,eE.optional)((0,eE.array)((0,eE.string)()))}),tO=RegExp("^(?[-a-z0-9]{3,8}):(?[-a-zA-Z0-9]{1,32})$","u"),tP=RegExp("^(?(?[-a-z0-9]{3,8}):(?[-a-zA-Z0-9]{1,32})):(?[a-zA-Z0-9]{1,64})$","u"),tF=RegExp("^(?[a-zA-Z0-9]{1,64})$","u"),tL=(0,eE.size)((0,eE.string)(),1,40),tz=(0,eE.define)("Chain ID",(0,eE.string)().validator),tR=(0,eE.pattern)(tz,tO),tB=(0,eE.pattern)((0,eE.string)(),tP);(0,eE.array)(tB),(0,eE.pattern)((0,eE.string)(),tF);var tU=(0,eE.object)({id:tR,name:tL}),tJ=((0,eE.object)({chains:(0,eE.array)(tU),methods:(0,eE.optional)((0,eE.array)(tL)),events:(0,eE.optional)((0,eE.array)(tL))}),(0,eE.pattern)((0,eE.string)(),RegExp("^[-a-z0-9]{3,8}$","u")),[tN,tM]),t$=[60],tK=t$.map(function(e){return["m","44'","".concat(e,"'")]}),tV=(0,eE.refine)((0,eE.array)((0,eE.string)()),"BIP-32 path",function(e){return 0===e.length?"Path must be a non-empty BIP-32 derivation path array":"m"!==e[0]?'Path must start with "m".':e.length<3?"Paths must have a length of at least three.":e.slice(1).some(function(e){return!(0,tD.isValidBIP32PathSegment)(e)})?"Path must be a valid BIP-32 derivation path array.":tJ.includes(e[1])?'The purpose "'.concat(e[1],'" is not allowed for entropy derivation.'):!tK.some(function(t){return tS(e.slice(0,t.length),t)})||'The path "'.concat(e.join("/"),'" is not allowed for entropy derivation.')}),tY=function(e){return(0,eE.refine)(e,"BIP-32 entropy",function(e){return!("ed25519"===e.curve&&e.path.slice(1).some(function(e){return!e.endsWith("'")}))||"Ed25519 does not support unhardened paths."})},tW=tY((0,eE.type)({path:tV,curve:(0,eE.enums)(["ed25519","secp256k1"])})),tq=(0,eE.size)((0,eE.array)(tW),1,1/0),tQ=(0,eE.refine)((0,eE.string)(),"SemVer range",function(e){return!!(0,j.isValidSemVerRange)(e)||"Expected a valid SemVer range."}),tH=(0,eE.refine)((0,eE.record)(tg,(0,eE.object)({version:(0,eE.optional)(tQ)})),"SnapIds",function(e){return 0!==Object.keys(e).length}),tG=(0,eE.array)(tR),tZ=(0,eE.type)({"endowment:network-access":(0,eE.optional)((0,eE.object)({})),"endowment:webassembly":(0,eE.optional)((0,eE.object)({})),"endowment:signature-insight":(0,eE.optional)((0,eE.object)({allowSignatureOrigin:(0,eE.optional)((0,eE.boolean)())})),"endowment:transaction-insight":(0,eE.optional)((0,eE.object)({allowTransactionOrigin:(0,eE.optional)((0,eE.boolean)())})),"endowment:cronjob":(0,eE.optional)((0,eE.object)({jobs:tC})),"endowment:rpc":(0,eE.optional)(tI),"endowment:name-lookup":(0,eE.optional)(tG),"endowment:keyring":(0,eE.optional)(tj),snap_dialog:(0,eE.optional)((0,eE.object)({})),snap_confirm:(0,eE.optional)((0,eE.object)({})),snap_manageState:(0,eE.optional)((0,eE.object)({})),snap_manageAccounts:(0,eE.optional)((0,eE.object)({})),snap_notify:(0,eE.optional)((0,eE.object)({})),snap_getBip32Entropy:(0,eE.optional)(tq),snap_getBip32PublicKey:(0,eE.optional)(tq),snap_getBip44Entropy:(0,eE.optional)((0,eE.size)((0,eE.array)((0,eE.object)({coinType:(0,eE.size)((0,eE.integer)(),0,4294967295)})),1,1/0)),snap_getEntropy:(0,eE.optional)((0,eE.object)({})),wallet_snap:(0,eE.optional)(tH)}),tX=(0,eE.array)((0,eE.string)()),t0=(0,eE.record)((0,eE.intersection)([(0,eE.string)(),e7()]),(0,eE.object)({})),t1=(0,eE.object)({version:j.VersionStruct,description:(0,eE.size)((0,eE.string)(),1,280),proposedName:(0,eE.size)((0,eE.string)(),1,214),repository:(0,eE.optional)((0,eE.object)({type:(0,eE.size)((0,eE.string)(),1,1/0),url:(0,eE.size)((0,eE.string)(),1,1/0)})),source:(0,eE.object)({shasum:j.ChecksumStruct,location:(0,eE.object)({npm:(0,eE.object)({filePath:(0,eE.size)((0,eE.string)(),1,1/0),iconPath:(0,eE.optional)((0,eE.size)((0,eE.string)(),1,1/0)),packageName:e8,registry:(0,eE.union)([(0,eE.literal)("https://registry.npmjs.org"),(0,eE.literal)("https://registry.npmjs.org/")])})}),files:(0,eE.optional)(tX),locales:(0,eE.optional)(tX)}),initialConnections:(0,eE.optional)(t0),initialPermissions:tZ,manifestVersion:(0,eE.literal)("0.1"),$schema:(0,eE.optional)((0,eE.string)())});function t2(e){return(0,eE.create)(e,t1)}function t3(e){return((0,j.assert)(!e.startsWith("/")),(0,j.assert)(-1===e.search(RegExp(":|\\/\\/","u")),'Path "'.concat(e,'" potentially an URI instead of local relative')),e.startsWith("./"))?e.slice(2):e}var t4=n(4325),t6=n(101),t5=n.n(t6),t8=n(6692),t7=n(7525),t9=n(8146),ne=n(2623);function nt(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){n(e);return}s.done?t(u):Promise.resolve(u).then(r,i)}function nn(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){nt(o,r,i,a,s,"next",e)}function s(e){nt(o,r,i,a,s,"throw",e)}a(void 0)})}}function nr(e,t){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}function ni(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function no(e,t,n){if(!t.has(e))throw TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function na(e,t){var n=no(e,t,"get");return n.get?n.get.call(e):n.value}function ns(e,t,n){nr(e,t),t.set(e,n)}function nu(e,t,n){var r=no(e,t,"set");return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw TypeError("attempted to set read only private field");t.value=n}}(e,r,n),n}function nl(e,t){for(var n=0;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]1&&void 0!==arguments[1]?arguments[1]:{};return(0,eE.is)(e,e7(t))}(n)||!n.toString().endsWith(".tgz"))throw Error('Failed to find valid tarball URL in NPM metadata for package "'.concat(this.meta.packageName,'".'));return(i=new URL(n)).hostname=this.meta.registry.hostname,i.protocol=this.meta.registry.protocol,[4,this.fetchNpmTarball(i)];case 3:return nu(this,nh,o.sent()),this.meta.version=r,[2]}})})).apply(this,arguments)}var nv=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&np(e,t)}(r,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n,i=n_(r);if(t){var o=n_(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return(e=n)&&("object"==(e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)||"function"==typeof e)?e:function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this)});function r(){return ni(this,r),n.apply(this,arguments)}return nc(r,[{key:"fetchNpmTarball",value:function(e){var t=this;return nn(function(){var n,r,i;return nd(this,function(o){switch(o.label){case 0:return[4,t.meta.fetch(e.toString())];case 1:if(!(n=o.sent()).ok||!n.body)throw Error('Failed to fetch tarball for package "'.concat(t.meta.packageName,'".'));return r=n.headers.get("content-length"),(0,j.assert)(r,"Snap tarball has invalid content-length"),i=parseInt(r,10),(0,j.assert)(i<=262144e3,"Snap tarball exceeds size limit"),[2,new Promise(function(e,r){var i,o,a,s,u,l,c,_=new Map;(0,t7.pipeline)("function"!=typeof(i=n.body).getReader?i:new t9.F(i),(0,t4.createGunzip)(),(o=t.meta.registry,a=t.meta.packageName,s="npm://",""!==o.username&&(s+=o.username,""!==o.password&&(s+=":".concat(o.password)),s+="@"),u="".concat(s).concat(o.host,"/").concat(a,"/"),(0,j.assert)(u.endsWith("/"),"Base needs to end with '/' for relative paths to be added as children instead of siblings."),(0,j.assert)(u.startsWith("npm:"),'Protocol mismatch, expected "npm:".'),l=(0,ne.extract)(),c=0,l.on("entry",function(e,t,n){var r=e.name;if("file"===e.type){var i=r.replace(nE,"");return t.pipe(t5()({encoding:"uint8array"},function(e){try{c+=e.byteLength,(0,j.assert)(c<262144e3,"Snap tarball exceeds limit of ".concat(262144e3," bytes."));var t=new eX({value:e,path:i,data:{canonicalPath:new URL(i,u).toString()}});return(0,j.assert)(!_.has(i),"Malformed tarball, multiple files with the same path."),_.set(i,t),n()}catch(e){return l.destroy(e)}}))}return t.on("end",function(){return n()}),t.resume()}),l),function(t){t?r(t):e(_)})})]}})})()}}]),r}(function(){function e(t){var n,r,i,o,a,s,u,l,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ni(this,e),nr(this,ny),ny.add(this),r=void 0,(n="meta")in this?Object.defineProperty(this,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):this[n]=r,ns(this,nm,{writable:!0,value:void 0}),ns(this,nh,{writable:!0,value:void 0});var _=null!==(o=c.allowCustomRegistries)&&void 0!==o&&o,p=null!==(a=c.fetch)&&void 0!==a?a:globalThis.fetch.bind(globalThis),d=null!==(s=c.versionRange)&&void 0!==s?s:"*",f=(i=nn(function(e){return nd(this,function(t){return[2,e]})}),function(e){return i.apply(this,arguments)}),m=null!==(u=c.resolveVersion)&&void 0!==u?u:f;(0,j.assertStruct)(t.toString(),th,"Invalid Snap Id: "),""===t.host&&""===t.port&&""===t.username&&""===t.password?l=nf:(l="https://",t.username&&(l+=t.username,t.password&&(l+=":".concat(t.password)),l+="@"),l+=t.host,l=new URL(l),(0,j.assert)(_,TypeError('Custom NPM registries are disabled, tried to use "'.concat(l.toString(),'".')))),(0,j.assert)("/"===l.pathname&&""===l.search&&""===l.hash),(0,j.assert)(""!==t.pathname&&"/"!==t.pathname,TypeError("The package name in NPM location is empty."));var h=t.pathname;h.startsWith("/")&&(h=h.slice(1)),this.meta={requestedRange:d,registry:l,packageName:h,fetch:p,resolveVersion:m}}return nc(e,[{key:"manifest",value:function(){var e=this;return nn(function(){var t,n;return nd(this,function(r){switch(r.label){case 0:if(na(e,nm))return[2,na(e,nm).clone()];return[4,e.fetch("snap.manifest.json")];case 1:return n=tx((t=r.sent()).toString()),t.result=t2(n),nu(e,nm,t),[2,e.manifest()]}})})()}},{key:"fetch",value:function(e){var t=this;return nn(function(){var n,r;return nd(this,function(i){switch(i.label){case 0:if(n=t3(e),na(t,nh))return[3,2];return[4,(function(e,t,n){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return n})(t,ny,ng).call(t)];case 1:i.sent(),(0,j.assert)(void 0!==na(t,nh)),i.label=2;case 2:return r=na(t,nh).get(n),(0,j.assert)(void 0!==r,TypeError('File "'.concat(e,'" not found in package.'))),[2,r.clone()]}})})()}},{key:"packageName",get:function(){return this.meta.packageName}},{key:"version",get:function(){return(0,j.assert)(void 0!==this.meta.version,"Tried to access version without first fetching NPM package."),this.meta.version}},{key:"registry",get:function(){return this.meta.registry}},{key:"versionRange",get:function(){return this.meta.requestedRange}}]),e}());function nx(e,t,n){return nD.apply(this,arguments)}function nD(){return(nD=nn(function(e,t,n){var r,i;return nd(this,function(o){switch(o.label){case 0:return[4,n(new URL(e,t).toString(),{headers:{accept:nS(t)?"application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*":"application/json"}})];case 1:if(!(r=o.sent()).ok)throw Error("Failed to fetch NPM registry entry. Status code: ".concat(r.status,"."));return[4,r.json()];case 2:if(i=o.sent(),!(0,j.isObject)(i))throw Error('Failed to fetch package "'.concat(e,'" metadata from npm.'));return[2,i]}})})).apply(this,arguments)}function nS(e){return e.toString()===nf.toString()}function nT(){return(nT=nn(function(e,t,n,r){var i,o,a,s,u,l,c,_;return nd(this,function(p){switch(p.label){case 0:if(nS(n)&&(0,j.isValidSemVerVersion)(t))return[2,{tarballURL:(0,t8.Z)(e,t),targetVersion:t}];return[4,nx(e,n,r)];case 1:var d,f;if(d=Object.keys(null!==(c=null===(i=l=p.sent())||void 0===i?void 0:i.versions)&&void 0!==c?c:{}).map(function(e){return(0,j.assertIsSemVerVersion)(e),e}),null===(_=(f=(0,em.maxSatisfying)(d,t))?f:(0,em.maxSatisfying)(d,t,{includePrerelease:!0})))throw Error('Failed to find a matching version in npm metadata for package "'.concat(e,'" and requested semver range "').concat(t,'".'));return[2,{tarballURL:null===(u=l)||void 0===u?void 0:null===(s=u.versions)||void 0===s?void 0:null===(a=s[_])||void 0===a?void 0:null===(o=a.dist)||void 0===o?void 0:o.tarball,targetVersion:_}]}})})).apply(this,arguments)}var nE=RegExp("^package\\/","u");function nw(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&(0,I.jsx)(Z.InputRightAddon,{px:"0",bg:"chakra-body-bg",borderColor:"border.default",children:(0,I.jsx)(Z.Select,{border:"none",onChange:function(e){x(e.currentTarget.value)},value:v,children:y.map(function(e){return(0,I.jsx)("option",{value:e,children:e},"version-".concat(e))})})})]}),(0,I.jsx)(Z.FormLabel,{children:"Environment SRP"}),(0,I.jsx)(Z.Textarea,{value:r,readOnly:!0,color:"text.muted",fontSize:"sm"}),(0,I.jsxs)(Z.HStack,{alignItems:"center",justifyContent:"space-between",mb:"4",children:[(0,I.jsx)(Z.FormLabel,{mb:"0",htmlFor:"ses-switch",children:"Secure EcmaScript (SES)"}),(0,I.jsx)(Z.Switch,{id:"ses-switch",size:"lg",isChecked:i,readOnly:!0,colorScheme:"gray"})]}),(0,I.jsxs)(Z.HStack,{alignItems:"center",justifyContent:"space-between",children:[(0,I.jsx)(Z.FormLabel,{mb:"0",htmlFor:"darkmode-switch",children:"Dark Mode"}),(0,I.jsx)(Z.Switch,{id:"darkmode-switch",size:"lg",isChecked:"dark"===u,onChange:function(){l()},colorScheme:"gray"})]})]})}),(0,I.jsx)(Z.Divider,{my:"4"}),(0,I.jsx)(Z.ModalFooter,{pb:"6",pt:"2",children:(0,I.jsx)(Z.Button,{variant:"primary",fontFamily:"default",fontWeight:"semibold",fontSize:"sm",width:"100%",onClick:S,children:"Apply config"})})]})]})};function nM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["to","isExternal","children"]);return void 0!==n&&n?(0,I.jsx)(Z.Link,ru(rs({isExternal:!0,href:t},i),{children:r})):(0,I.jsx)(Z.Link,ru(rs({as:F.Link,to:t},i),{children:r}))},rc=function(e){var t=e.path,n=e.tag,r=e.isExternal,i=e.onClick,o=e.children,a=(0,F.useMatch)(t);return(0,I.jsx)(Z.ListItem,{children:(0,I.jsx)(rl,{padding:"2",variant:a?"navigation-active":"navigation-default",to:t,display:"block",isExternal:void 0!==r&&r,onClick:i,"data-testid":"navigation-".concat(n),_hover:{textDecoration:"none",opacity:1,background:"background.hover"},children:(0,I.jsx)(Z.Stack,{direction:"row",align:"center",children:o})})})};!function(e){e.Valid="valid",e.Invalid="invalid",e.Unknown="unknown"}(p||(p={}));var r_={valid:p.Unknown,results:[]},rp=(0,L.createSlice)({name:"manifest",initialState:r_,reducers:{setValid:function(e,t){e.valid=t.payload},setResults:function(e,t){e.results=t.payload}}}),rd=(0,L.createAction)("".concat(rp.name,"/validateManifest")),rf=rp.actions,rm=rf.setValid,rh=rf.setResults,ry=rp.reducer,rg=(0,L.createSelector)(function(e){return e.manifest},function(e){return e.valid}),rb=(0,L.createSelector)(function(e){return e.manifest},function(e){return e.results});function rv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rx=(rv(d={},p.Valid,"success.default"),rv(d,p.Invalid,"error.default"),d),rD=function(){var e=et(rg);return e===p.Unknown?null:(0,I.jsx)(Z.Box,{position:"absolute",bottom:"0",right:"0",width:"10px",height:"10px",background:rx[e],borderRadius:"5px"})},rS=function(e){var t=e.children,n=e.path,r=!!(0,F.useMatch)(n);return(0,I.jsx)(Z.Tag,{borderRadius:"base",variant:"code",color:r?"#0376C9":"info.default",backgroundColor:r?"rgba(3, 118, 201, 0.1)":"info.muted",children:t})},rT=[{label:"JSON-RPC",tag:"onRpcRequest",description:"Send a JSON-RPC request to the snap",icon:"jsonRpc",path:"/handler/".concat(e.OnRpcRequest)},{label:"Cronjobs",tag:"onCronjob",description:"Schedule and run periodic actions",icon:"cronjob",path:"/handler/".concat(e.OnCronjob)},{label:"Transaction",tag:"onTransaction",description:"Send a transaction to the snap",icon:"insights",path:"/handler/".concat(e.OnTransaction)},{label:"UI Builder",tag:"ui",description:"Build a user interface for the snap",icon:"ui",path:"/builder"}],rE=function(){var e=et(function(e){return e});return(0,I.jsx)(Z.Container,{as:"nav",size:"fullWidth",display:"flex",flexDirection:"column",padding:"2",flex:"1",children:(0,I.jsxs)(Z.Stack,{as:Z.List,spacing:"2",flex:"1",children:[rT.map(function(t){var n=t.condition,r=t.icon,i=t.label,o=t.tag,a=t.description,s=t.path;return n&&!n(e)?null:(0,I.jsxs)(rc,{path:s,tag:o,children:[(0,I.jsx)(ee,{icon:r}),(0,I.jsxs)(Z.Box,{children:[(0,I.jsxs)(Z.Text,{children:[(0,I.jsx)(Z.Box,{as:"span",fontWeight:"600",children:i})," ",(0,I.jsx)(rS,{path:s,children:o})]}),(0,I.jsx)(Z.Text,{fontSize:"sm",marginTop:"1",children:a})]})]},s)}),(0,I.jsxs)(rc,{tag:"manifest",path:"/manifest",children:[(0,I.jsxs)(Z.Box,{position:"relative",children:[(0,I.jsx)(ee,{icon:"manifest"}),(0,I.jsx)(rD,{})]}),(0,I.jsxs)(Z.Box,{children:[(0,I.jsxs)(Z.Text,{children:[(0,I.jsx)(Z.Box,{as:"span",fontWeight:"600",children:"Manifest"})," ",(0,I.jsx)(rS,{path:"/manifest",children:"snap.manifest.json"})]}),(0,I.jsx)(Z.Text,{fontSize:"sm",marginTop:"1",children:"Validate the snap manifest"})]})]},"manifest")]})})},rw=function(){var e=G();return(0,I.jsxs)(Z.List,{borderTop:"1px solid",borderTopColor:"border.default",padding:"2",children:[(0,I.jsxs)(rc,{path:"https://github.com/MetaMask/snaps/tree/main/packages/snaps-simulator",isExternal:!0,tag:"github",children:[(0,I.jsx)(ee,{icon:"gitHub",width:"24px"}),(0,I.jsxs)(Z.Box,{children:[(0,I.jsx)(Z.Text,{children:(0,I.jsx)(Z.Box,{as:"span",fontWeight:"600",children:"GitHub"})}),(0,I.jsx)(Z.Text,{fontSize:"sm",marginTop:"1",children:"Report an issue or contribute to the project"})]})]}),(0,I.jsxs)(rc,{path:"#",onClick:function(){e(B())},tag:"configuration",children:[(0,I.jsx)(ee,{icon:"configuration",width:"24px"}),(0,I.jsxs)(Z.Box,{children:[(0,I.jsx)(Z.Text,{children:(0,I.jsx)(Z.Box,{as:"span",fontWeight:"600",children:"Settings"})}),(0,I.jsx)(Z.Text,{fontSize:"sm",marginTop:"1",children:"Configure the simulation environment"})]})]})]})},rA=function(){return(0,I.jsxs)(Z.Flex,{width:"375px",borderRight:"muted",flexShrink:"0",flexDirection:"column",children:[(0,I.jsx)(rE,{}),(0,I.jsx)(rw,{})]})};!function(e){e.Copyable="copyable",e.Divider="divider",e.Heading="heading",e.Panel="panel",e.Spinner="spinner",e.Text="text",e.Image="image",e.Row="row",e.Address="address"}(f||(f={}));var rC=(0,eE.object)({type:(0,eE.string)()}),rN=(0,eE.assign)(rC,(0,eE.object)({value:(0,eE.unknown)()})),rM=n(682),rk={$schema:"http://json-schema.org/draft-04/schema#",type:"object",properties:{jsonrpc:{const:"2.0"},id:{oneOf:[{type:"string"},{type:"number"},{type:"null"}]},method:{type:"string"},params:{type:["number","string","boolean","object","array","null"]}},required:["jsonrpc","id","method"],additionalProperties:!1},rI=JSON.stringify({jsonrpc:"2.0",id:1,method:"subtract",params:[42,23]},null,2);function rj(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["border"]),o=(0,Z.useColorMode)().colorMode;return(0,I.jsx)(Z.Box,{width:"100%",padding:"4",border:void 0===r?"1px solid":r,borderColor:"gray.muted",borderRadius:"md",flex:"1",children:(0,I.jsx)(rM.default,(t=rj({language:"json",editorWillMount:function(e){var t;e.editor.defineTheme("vs-dark-custom",{base:"vs-dark",inherit:!0,rules:[],colors:{"editor.background":"#24272A"}}),null===(t=e.languages.json)||void 0===t||t.jsonDefaults.setDiagnosticsOptions({validate:!0,schemas:[{uri:"http://json-schema.org/draft-04/schema#",fileMatch:["*"],schema:rk}]})},value:rI,theme:"light"===o?"vs-light":"vs-dark-custom"},i),n=n={options:rj({tabSize:2,scrollBeyondLastLine:!1,renderLineHighlight:"none",hideCursorInOverviewRuler:!0,scrollbar:{vertical:"visible",verticalScrollbarSize:5},minimap:{enabled:!1},lineNumbers:"off",automaticLayout:!0,glyphMargin:!1,folding:!1,lineDecorationsWidth:0,lineNumbersMinChars:0},i.options)},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t))})};function rP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rF(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:[];return function(){for(var r=arguments.length,i=Array(r),o=0;o=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["children","icon","iconLocation"]);return(0,I.jsxs)(Z.Tag,(n=function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n\n\n\n\n\n\n'),droppable:!1}],it=function(e){var t=e.nextId,n=e.incrementId;return(0,I.jsxs)(Z.Box,{marginBottom:"4",children:[(0,I.jsx)(Z.Text,{fontSize:"xs",fontWeight:"600",lineHeight:"133%",marginBottom:"1",children:"Components"}),(0,I.jsx)(Z.Flex,{as:Z.List,gap:"2",children:ie.map(function(e){return(0,I.jsx)(Z.ListItem,{children:(0,I.jsx)(r9,{incrementId:n,icon:e.icon,node:{id:t,parent:0,droppable:e.droppable,text:e.text,data:e.data}})},"component-".concat(e.text))})})]})},ir=n(940),ii=function(e){var t,n=e.node,r=e.isDragging,i=e.children,o=e.onClose;return(0,j.assert)(null===(t=n.data)||void 0===t?void 0:t.type,"Node must have a type."),(0,I.jsxs)(Z.Flex,{paddingY:"2",paddingLeft:"4",paddingRight:"2",background:"background.alternative",borderRadius:"lg",gap:"4",alignItems:"center",border:"1px solid",borderColor:"border.default",display:r?"none":"flex",marginX:"4",cursor:n.id>1?"move":"default",children:[(0,I.jsx)(ee,{icon:n.data.type,width:"16px"}),(0,I.jsx)(Z.Text,{fontWeight:"500",fontSize:"sm",textTransform:"capitalize",color:"text.muted",display:"inline-block",minWidth:"65px",children:n.data.type}),i,n.id>=2&&(0,I.jsx)(ee,{icon:"cross",width:"11px",marginX:"0.5",marginLeft:"auto",cursor:"pointer",onClick:function(){null==o||o(n)}})]})},io=n(8261),ia=n.n(io),is=n(9691),iu=n.n(is);function il(e){var t=eQ(e),n=!0,r=!1,i=void 0;try{for(var o,a,s=t[Symbol.iterator]();!(n=(a=s.next()).done);n=!0)!function(){var e,n=a.value;(0,j.assert)(n.data,"Node model must have data.");var r=t.find(function(e){return e.id===n.parent});r&&((0,j.assert)((null===(e=r.data)||void 0===e?void 0:e.type)==="panel","Parent must be a panel."),r.data.children.push(n.data))}()}catch(e){r=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(r)throw i}}var u=t.find(function(e){return 0===e.parent});return(0,j.assert)((null==u?void 0:null===(o=u.data)||void 0===o?void 0:o.type)==="panel","Root must be a panel."),u.data}function ic(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n ul":{display:"flex",flexDirection:"column",flex:1,marginY:"4","& > li":{display:"flex",flexDirection:"column",flex:1,marginTop:"0"}},ul:{listStyleType:"none"},li:{marginTop:"2"}},children:(0,I.jsx)(ir.Tree,{ref:r,tree:t,rootId:0,render:function(e,n){var r=n.depth,a=n.isDragging;return t.length<=1?(0,I.jsx)(im,{}):(0,I.jsx)(id,{node:e,depth:r,onChange:i,onClose:o,isDragging:a})},insertDroppableFirst:!1,canDrag:function(e){return!!e&&e.id>=2},canDrop:function(e,t){var n=t.dropTarget,r=t.dropTargetId;return!!r&&(null==n?void 0:n.droppable)&&r>0},onDrop:function(e){n(e)},initialOpen:!0,sort:!1,extraAcceptTypes:["template"],placeholderRender:function(){return(0,I.jsx)(Z.Box,{width:"100%",height:"20px"})}})})},iy=function(e){var t=e.snapName,n=et(n6),r=n&&new Blob([n.value],{type:"image/svg+xml"}),i=r&&URL.createObjectURL(r);return(0,I.jsxs)(Z.Box,{position:"relative",children:[(0,I.jsx)(Z.Avatar,{src:i,name:t.slice(0,1).toUpperCase(),fontSize:"md",background:"background.alternative",color:"text.alternative",size:"sm",margin:"1"}),(0,I.jsx)(ee,{icon:"snap",width:"16px",height:"16px",position:"absolute",bottom:"0px",right:"0px"})]})},ig=function(e){var t=e.snapName,n=e.snapId;return(0,I.jsxs)(Z.Flex,{gap:"2",marginX:"4",marginY:"4",border:"1px solid",borderColor:"border.default",borderRadius:"32px",padding:"1",alignItems:"center",children:[(0,I.jsx)(iy,{snapName:t}),(0,I.jsxs)(Z.Flex,{direction:"column",justify:"center",children:[(0,I.jsx)(Z.Text,{fontSize:"sm",lineHeight:"157%",fontFamily:"custom",children:t}),(0,I.jsx)(Z.Text,{fontSize:"xs",lineHeight:"167%",fontFamily:"custom",color:"text.alternative",children:n})]})]})},ib=function(e){var t=e.snapName,n=e.snapId,r=e.children,i=e.showAuthorship;return(0,I.jsxs)(Z.Flex,{direction:"column",boxShadow:"lg",maxWidth:"360px",height:"600px",paddingY:"4",overflowY:"scroll",children:[(void 0===i||i)&&(0,I.jsx)(ig,{snapName:t,snapId:n}),r]})};!function(e){e.Content="content",e.Error="error",e.Insights="insights"}(h||(h={}));var iv=function(e,t){switch(e){case h.Insights:return"Insights from ".concat(t);case h.Error:return"Error from ".concat(t);default:return"Content from ".concat(t)}},ix=function(e){var t=e.type,n=e.snapName,r=e.children,i=t===h.Error;return(0,I.jsxs)(Z.Box,{border:"1px solid",borderColor:"border.default",borderRadius:"md",backgroundColor:i?"error.muted":void 0,children:[(0,I.jsxs)(Z.Flex,{direction:"row",alignItems:"center",padding:"1.5",borderBottom:"1px solid",borderColor:"border.default",children:[(0,I.jsx)(ee,{icon:i?"snapError":"snap",width:"16px",marginRight:"1"}),(0,I.jsx)(Z.Text,{fontFamily:"custom",fontSize:"xs",color:i?"text.error":void 0,children:iv(t,n)})]}),(0,I.jsx)(Z.Box,{padding:"3",children:r})]})};function iD(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["name","onClick"]);return(0,I.jsx)(r8,{cursor:"pointer",onClick:function(){n(r)},children:t})},oy=function(e){var t=e.onClick;return(0,I.jsxs)(Z.Box,{marginBottom:"4",children:[(0,I.jsx)(Z.Text,{fontWeight:"500",fontSize:"xs",marginBottom:"1",children:"Transaction presets"}),(0,I.jsx)(Z.Flex,{gap:"2",children:om.map(function(e,n){var r,i,o=e.name,a=e.transaction;return(0,P.createElement)(oh,(r=function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var ov={chainId:"eip155:1",origin:"metamask.io",from:"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",to:"0x9f2817015caF6607C1198fB943A8241652EE8906",value:"0.01",gas:"21000",nonce:"5",maxFeePerGas:"10",maxPriorityFeePerGas:"1",data:"0x"},ox=function(){var t,n,r,i,o,a,s,u,l,c,_,p=et(o_).request,d=null!==(_=null==p?void 0:p.params)&&void 0!==_?_:{},f=d.chainId,m=d.transactionOrigin,h=d.transaction;ov.chainId,ov.origin;var y=ob(ov,["chainId","origin"]),g=(0,i0.useForm)({defaultValues:og({chainId:null!=f?f:ov.chainId,transactionOrigin:null!=m?m:ov.origin},null!=h?h:y)}),b=g.handleSubmit,v=g.register,x=g.setValue,D=g.formState.errors,S=G();return(0,I.jsxs)(Z.Flex,{as:"form",flexDirection:"column",flex:"1",onSubmit:b(function(t){var n=t.chainId,r=t.transactionOrigin,i=ob(t,["chainId","transactionOrigin"]);S(nZ({origin:"",handler:e.OnTransaction,request:{jsonrpc:"2.0",method:"onTransaction",params:{chainId:n,transaction:of(i),transactionOrigin:r}}}))}),id:"request-form",children:[(0,I.jsx)(oy,{onClick:function(e){x("chainId",e.chainId),x("transactionOrigin",e.transactionOrigin),x("from",e.from),x("to",e.to),x("value",e.value),x("data",e.data),x("gas",e.gas),x("maxFeePerGas",e.maxFeePerGas),x("maxPriorityFeePerGas",e.maxPriorityFeePerGas),x("nonce",e.nonce)}}),(0,I.jsxs)(Z.Flex,{gap:"2",children:[(0,I.jsxs)(Z.FormControl,{isInvalid:!!D.chainId,children:[(0,I.jsx)(Z.FormLabel,{htmlFor:"chainId",children:"Chain ID"}),(0,I.jsx)(Z.Input,og({id:"chainId",placeholder:ov.chainId,fontFamily:"code"},v("chainId"))),(0,I.jsx)(Z.FormErrorMessage,{children:null===(t=D.chainId)||void 0===t?void 0:t.message})]}),(0,I.jsxs)(Z.FormControl,{isInvalid:!!D.transactionOrigin,children:[(0,I.jsx)(Z.FormLabel,{htmlFor:"origin",children:"Transaction Origin"}),(0,I.jsx)(Z.Input,og({id:"origin",placeholder:ov.origin,fontFamily:"code"},v("transactionOrigin"))),(0,I.jsx)(Z.FormErrorMessage,{children:null===(n=D.transactionOrigin)||void 0===n?void 0:n.message})]})]}),(0,I.jsxs)(Z.FormControl,{isInvalid:!!D.from,children:[(0,I.jsx)(Z.FormLabel,{htmlFor:"from",children:"From Address"}),(0,I.jsx)(Z.Input,og({id:"from",placeholder:ov.from,fontFamily:"code"},v("from"))),(0,I.jsx)(Z.FormErrorMessage,{children:null===(r=D.from)||void 0===r?void 0:r.message})]}),(0,I.jsxs)(Z.FormControl,{isInvalid:!!D.to,children:[(0,I.jsx)(Z.FormLabel,{htmlFor:"to",children:"To Address"}),(0,I.jsx)(Z.Input,og({id:"to",placeholder:ov.to,fontFamily:"code"},v("to"))),(0,I.jsx)(Z.FormErrorMessage,{children:null===(i=D.to)||void 0===i?void 0:i.message})]}),(0,I.jsxs)(Z.FormControl,{isInvalid:!!D.value,children:[(0,I.jsx)(Z.FormLabel,{htmlFor:"value",children:"Value"}),(0,I.jsxs)(Z.InputGroup,{children:[(0,I.jsx)(Z.Input,og({id:"value",placeholder:ov.value,fontFamily:"code"},v("value"))),(0,I.jsx)(Z.InputRightAddon,{children:"ETH",fontSize:"sm"})]}),(0,I.jsx)(Z.FormErrorMessage,{children:null===(o=D.value)||void 0===o?void 0:o.message})]}),(0,I.jsxs)(Z.Flex,{gap:"2",children:[(0,I.jsxs)(Z.FormControl,{isInvalid:!!D.gas,children:[(0,I.jsx)(Z.FormLabel,{htmlFor:"gas",children:"Gas Limit"}),(0,I.jsx)(Z.Input,og({id:"gas",placeholder:ov.gas,fontFamily:"code"},v("gas"))),(0,I.jsx)(Z.FormErrorMessage,{children:null===(a=D.gas)||void 0===a?void 0:a.message})]}),(0,I.jsxs)(Z.FormControl,{isInvalid:!!D.nonce,children:[(0,I.jsx)(Z.FormLabel,{htmlFor:"nonce",children:"Nonce"}),(0,I.jsx)(Z.Input,og({id:"nonce",placeholder:ov.nonce,fontFamily:"code"},v("nonce"))),(0,I.jsx)(Z.FormErrorMessage,{children:null===(s=D.nonce)||void 0===s?void 0:s.message})]})]}),(0,I.jsxs)(Z.Flex,{gap:"2",children:[(0,I.jsxs)(Z.FormControl,{isInvalid:!!D.maxFeePerGas,children:[(0,I.jsx)(Z.FormLabel,{htmlFor:"maxFeePerGas",children:"Max Fee Per Gas"}),(0,I.jsxs)(Z.InputGroup,{children:[(0,I.jsx)(Z.Input,og({id:"maxFeePerGas",placeholder:ov.maxFeePerGas,fontFamily:"code"},v("maxFeePerGas"))),(0,I.jsx)(Z.InputRightAddon,{children:"GWEI",fontSize:"sm"})]}),(0,I.jsx)(Z.FormErrorMessage,{children:null===(u=D.maxFeePerGas)||void 0===u?void 0:u.message})]}),(0,I.jsxs)(Z.FormControl,{isInvalid:!!D.maxPriorityFeePerGas,children:[(0,I.jsx)(Z.FormLabel,{htmlFor:"maxPriorityFeePerGas",children:"Max Priority Fee Per Gas"}),(0,I.jsxs)(Z.InputGroup,{children:[(0,I.jsx)(Z.Input,og({id:"maxPriorityFeePerGas",placeholder:ov.maxPriorityFeePerGas,fontFamily:"code"},v("maxPriorityFeePerGas"))),(0,I.jsx)(Z.InputRightAddon,{children:"GWEI",fontSize:"sm"})]}),(0,I.jsx)(Z.FormErrorMessage,{children:null===(l=D.maxPriorityFeePerGas)||void 0===l?void 0:l.message})]})]}),(0,I.jsxs)(Z.FormControl,{isInvalid:!!D.data,children:[(0,I.jsx)(Z.FormLabel,{htmlFor:"data",children:"Data"}),(0,I.jsx)(Z.Textarea,og({id:"data",placeholder:ov.data,fontFamily:"code"},v("data"))),(0,I.jsx)(Z.FormErrorMessage,{children:null===(c=D.data)||void 0===c?void 0:c.message})]})]})},oD=(0,F.createHashRouter)((0,F.createRoutesFromElements)((0,I.jsxs)(F.Route,{element:(0,I.jsx)(function(){return(0,I.jsxs)(Z.Flex,{direction:"column",height:"100vh",children:[(0,I.jsx)(ra,{}),(0,I.jsxs)(Z.Flex,{direction:"row",flex:"1",overflow:"hidden",children:[(0,I.jsx)(rA,{}),(0,I.jsxs)(Z.Flex,{direction:"column",width:"full",children:[(0,I.jsx)(Z.Flex,{flex:"1",overflow:"hidden",children:(0,I.jsx)(F.Outlet,{})}),(0,I.jsx)(e_,{})]})]})]})},{}),children:[(0,I.jsx)(F.Route,{path:"/",element:(0,I.jsx)(F.Navigate,{to:"/handler/".concat(e.OnRpcRequest),replace:!0})}),(0,I.jsx)(F.Route,{path:"/builder",element:(0,I.jsx)(function(){var e,t,n=iF((0,P.useState)(2),2),r=n[0],i=n[1],o=iF((0,P.useState)([{id:1,parent:0,text:"Panel",droppable:!0,data:{type:f.Panel,children:[]}}]),2),a=o[0],s=o[1];return(0,I.jsx)(Z.Flex,{width:"100%",direction:"column",overflow:"hidden",children:(0,I.jsxs)(Z.Flex,{direction:"row",flex:"1",overflow:"hidden",children:[(0,I.jsx)(Z.Flex,{direction:"column",flex:"1",width:"50%",overflow:"hidden",children:(0,I.jsxs)(Z.Tabs,{display:"flex",flexDirection:"column",flex:"1",overflow:"hidden",children:[(0,I.jsx)(Z.TabList,{children:(0,I.jsx)(Z.Tab,{children:"Builder"})}),(0,I.jsx)(Z.TabPanels,{display:"flex",flexDirection:"column",flex:"1",overflow:"hidden",children:(0,I.jsxs)(Z.TabPanel,{display:"flex",flexDirection:"column",flex:"1",overflowY:"auto",children:[(0,I.jsx)(it,{nextId:r,incrementId:function(){i(function(e){return e+1})}}),(0,I.jsx)(ih,{items:a,setItems:s})]})})]})}),(0,I.jsx)(Z.Box,{display:"flex",flexDirection:"column",flex:"1",width:"50%",borderLeft:"1px solid",borderColor:"border.default",children:(0,I.jsxs)(Z.Tabs,{display:"flex",flexDirection:"column",flex:"1",overflow:"hidden",children:[(0,I.jsxs)(Z.TabList,{children:[(0,I.jsx)(Z.Tab,{children:"Result"}),(0,I.jsx)(Z.Tab,{children:"Code"})]}),(0,I.jsxs)(Z.TabPanels,{display:"flex",flexDirection:"column",flex:"1",overflow:"hidden",children:[(0,I.jsx)(Z.TabPanel,{display:"flex",flexDirection:"column",flex:"1",padding:"4",children:(0,I.jsx)(iO,{items:a})}),(0,I.jsx)(Z.TabPanel,{display:"flex",flexDirection:"column",flex:"1",padding:"0",children:(0,I.jsx)(rO,{border:"none",value:(t=(function e(t){var n=new Set;n.add(t.type);var r=!0,i=!1,o=void 0;try{for(var a,s=t.children[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var u=a.value;if(n.add(u.type),"panel"===u.type){var l=e(u),c=!0,_=!1,p=void 0;try{for(var d,f=l[Symbol.iterator]();!(c=(d=f.next()).done);c=!0){var m=d.value;n.add(m)}}catch(e){_=!0,p=e}finally{try{c||null==f.return||f.return()}finally{if(_)throw p}}}}}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return Array.from(n).sort(function(e,t){return e.localeCompare(t)})})(e=il(a)).join(", "),iu().format("\n import { ".concat(t," } from '@metamask/snaps-sdk';\n\n const component = ").concat(function e(t){if(t.type===f.Panel)return"panel([\n".concat(t.children.map(e).join(",\n"),"\n])");var n=function e(t){switch(t.type){case f.Panel:return t.children.map(e).join(",\n");case f.Text:case f.Heading:case f.Copyable:case f.Image:return JSON.stringify(t.value);case f.Spinner:case f.Divider:default:return""}}(t);return"".concat(t.type,"(").concat(n,")")}(e),";\n"),{parser:"typescript",plugins:[ia()],printWidth:80,tabWidth:2,singleQuote:!0,trailingComma:"all"})),language:"typescript",options:{readOnly:!0}})})]})]})})]})})},{})}),(0,I.jsx)(F.Route,{path:"/manifest",element:(0,I.jsx)(function(){var e=et(re);return(0,I.jsx)(Z.Flex,{width:"100%",direction:"column",overflow:"hidden",children:(0,I.jsxs)(Z.Flex,{direction:"row",flex:"1",overflow:"hidden",children:[(0,I.jsx)(Z.Flex,{direction:"column",flex:"1",width:"50%",overflow:"hidden",children:(0,I.jsxs)(Z.Tabs,{display:"flex",flexDirection:"column",flex:"1",overflow:"hidden",children:[(0,I.jsx)(Z.TabList,{children:(0,I.jsx)(Z.Tab,{children:"Validation"})}),(0,I.jsx)(Z.TabPanels,{display:"flex",flexDirection:"column",flex:"1",overflow:"hidden",children:(0,I.jsx)(Z.TabPanel,{display:"flex",flexDirection:"column",flex:"1",padding:"0",children:(0,I.jsx)(iR,{})})})]})}),(0,I.jsx)(Z.Box,{display:"flex",flexDirection:"column",flex:"1",width:"50%",borderLeft:"1px solid",borderColor:"border.default",children:(0,I.jsxs)(Z.Tabs,{display:"flex",flexDirection:"column",flex:"1",overflow:"hidden",children:[(0,I.jsx)(Z.TabList,{children:(0,I.jsx)(Z.Tab,{children:"Manifest"})}),(0,I.jsx)(Z.TabPanels,{display:"flex",flexDirection:"column",flex:"1",overflow:"hidden",children:(0,I.jsx)(Z.TabPanel,{display:"flex",flexDirection:"column",flex:"1",padding:"0",children:(0,I.jsx)(rO,{border:"none",value:JSON.stringify(e,null,2),options:{readOnly:!0,wordWrap:"on"}})})})]})})]})})},{})}),(0,I.jsxs)(F.Route,{path:"/handler",element:(0,I.jsx)(function(){var e,t=function(e){if(Array.isArray(e))return e}(e=(0,P.useState)(0))||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,s=!1;try{for(i=i.call(e);!(a=(n=i.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==i.return||i.return()}finally{if(s)throw r}}return o}}(e,2)||function(e,t){if(e){if("string"==typeof e)return i3(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i3(e,t)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=t[0],r=t[1],i=et(n5);return(0,I.jsx)(Z.Flex,{width:"100%",direction:"column",overflow:"hidden",children:(0,I.jsxs)(Z.Flex,{direction:"row",flex:"1",overflow:"hidden",children:[(0,I.jsx)(iB,{isTest:!1,children:(0,I.jsx)(Z.Flex,{direction:"column",flex:"1",width:"50%",overflow:"hidden",children:(0,I.jsxs)(Z.Tabs,{display:"flex",flexDirection:"column",flex:"1",overflow:"hidden",isLazy:!0,onChange:r,children:[(0,I.jsx)(iQ,{}),(0,I.jsxs)(Z.TabList,{alignItems:"center",children:[(0,I.jsx)(Z.Tab,{children:"Request"}),(0,I.jsx)(Z.Tab,{children:"History"}),0===n&&(0,I.jsx)(Z.Box,{marginLeft:"auto",children:(0,I.jsx)(iq,{})})]}),(0,I.jsxs)(Z.TabPanels,{display:"flex",flexDirection:"column",flex:"1",overflow:"hidden",children:[(0,I.jsx)(Z.TabPanel,{display:"flex",flexDirection:"column",flex:"1",overflowY:"auto","data-testid":"tab-request",children:(0,I.jsx)(F.Outlet,{})}),(0,I.jsx)(Z.TabPanel,{padding:"0",display:"flex",flexDirection:"column",flex:"1",overflowY:"auto",children:(0,I.jsx)(iV,{})})]})]})})}),(0,I.jsx)(Z.Box,{display:"flex",flexDirection:"column",flex:"1",width:"50%",borderLeft:"1px solid",borderColor:"border.default",children:(0,I.jsxs)(Z.Tabs,{display:"flex",flexDirection:"column",flex:"1",overflow:"hidden",children:[(0,I.jsx)(iQ,{}),(0,I.jsx)(iH,{}),(0,I.jsxs)(Z.TabList,{children:[(0,I.jsx)(Z.Tab,{children:"Response"}),i&&(0,I.jsx)(Z.Tab,{children:"UI"})]}),(0,I.jsxs)(Z.TabPanels,{display:"flex",flexDirection:"column",flex:"1",overflow:"hidden",children:[(0,I.jsx)(Z.TabPanel,{display:"flex",flexDirection:"column",flex:"1",padding:"0","data-testid":"tab-response",children:(0,I.jsx)(iG,{})}),i&&(0,I.jsx)(Z.TabPanel,{overflowY:"auto","data-testid":"tab-ui",children:(0,I.jsx)(i2,{})})]})]})})]})})},{}),children:[(0,I.jsx)(F.Route,{path:"/handler/".concat(e.OnRpcRequest),element:(0,I.jsx)(function(){return(0,I.jsx)(i9,{})},{})}),(0,I.jsx)(F.Route,{path:"/handler/".concat(e.OnCronjob),element:(0,I.jsx)(function(){return(0,I.jsx)(os,{})},{})}),(0,I.jsx)(F.Route,{path:"/handler/".concat(e.OnTransaction),element:(0,I.jsx)(function(){return(0,I.jsx)(ox,{})},{})})]})]})));function oS(e){for(var t=1;t1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r2?o-2:0),s=2;s2?n-2:0),i=2;ie<>>32-n,aN=(e,t,n)=>t<>>32-n,aM=(e,t,n)=>t<>>64-n,ak=(e,t,n)=>e<>>64-n,[aI,aj,aO]=[[],[],[]],aP=BigInt(0),aF=BigInt(1),aL=BigInt(2),az=BigInt(7),aR=BigInt(256),aB=BigInt(113);for(let e=0,t=aF,n=1,r=0;e<24;e++){[n,r]=[r,(2*n+3*r)%5],aI.push(2*(5*r+n)),aj.push((e+1)*(e+2)/2%64);let i=aP;for(let e=0;e<7;e++)(t=(t<>az)*aB)%aR)&aL&&(i^=aF<<(aF<>aA&aw)}:{h:0|Number(e>>aA&aw),l:0|Number(e&aw)}}(e[i],t);[n[i],r[i]]=[o,a]}return[n,r]}(aO,!0),a$=(e,t,n)=>n>32?aM(e,t,n):aC(e,t,n),aK=(e,t,n)=>n>32?ak(e,t,n):aN(e,t,n);class aV extends ez{constructor(e,t,n,r=!1,i=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=n,this.enableXOF=r,this.rounds=i,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,eC(n),0>=this.blockLen||this.blockLen>=200)throw Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=ej(this.state)}keccak(){(function(e,t=24){let n=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let t=0;t<10;t++)n[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let r=(t+8)%10,i=(t+2)%10,o=n[i],a=n[i+1],s=a$(o,a,1)^n[r],u=aK(o,a,1)^n[r+1];for(let n=0;n<50;n+=10)e[t+n]^=s,e[t+n+1]^=u}let t=e[2],i=e[3];for(let n=0;n<24;n++){let r=aj[n],o=a$(t,i,r),a=aK(t,i,r),s=aI[n];t=e[s],i=e[s+1],e[s]=o,e[s+1]=a}for(let t=0;t<50;t+=10){for(let r=0;r<10;r++)n[r]=e[t+r];for(let r=0;r<10;r++)e[t+r]^=~n[(r+2)%10]&n[(r+4)%10]}e[0]^=aU[r],e[1]^=aJ[r]}n.fill(0)})(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){eM(this);let{blockLen:t,state:n}=this;e=eL(e);let r=e.length;for(let i=0;i=n&&this.keccak();let o=Math.min(n-this.posOut,i-r);e.set(t.subarray(this.posOut,this.posOut+o),r),this.posOut+=o,r+=o}return e}xofInto(e){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return eC(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(ek(e,this),this.finished)throw Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){let{blockLen:t,suffix:n,outputLen:r,rounds:i,enableXOF:o}=this;return e||(e=new aV(t,n,r,o,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=n,e.outputLen=r,e.enableXOF=o,e.destroyed=this.destroyed,e}}let aY=eR(()=>new aV(136,1,32));function aW(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]>>0;t.push("bip32:".concat(i-2147483648,"'"))}return t}(aY((0,j.concatBytes)([a,aY(s)]))),[4,tD.SLIP10Node.fromDerivationPath({derivationPath:[i,"bip32:".concat(o)].concat(aH(u)),curve:"secp256k1"})];case 1:return l=c.sent().privateKey,(0,j.assert)(l,"Failed to derive the entropy."),[2,(0,j.add0x)(l)]}})})).apply(this,arguments)}function a1(e){return a2.apply(this,arguments)}function a2(){return(a2=aQ(function(e){var t,n,r,i;return aG(this,function(o){switch(o.label){case 0:return t=e.curve,n=e.secretRecoveryPhrase,r=e.path,i="secp256k1"===t?"bip32":"slip10",[4,tD.SLIP10Node.fromDerivationPath({curve:t,derivationPath:[n].concat(aH(r.slice(1).map(function(e){return"".concat(i,":").concat(e)})))})];case 1:return[2,o.sent()]}})})).apply(this,arguments)}function a3(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){n(e);return}s.done?t(u):Promise.resolve(u).then(r,i)}var a4="snap_getBip32Entropy",a6=Object.freeze({targetName:a4,specificationBuilder:function(e){var t,n,i,o,a=e.methodHooks;return{permissionType:tk.PermissionType.RestrictedMethod,targetName:a4,allowedCaveats:[r.PermittedDerivationPaths],methodImplementation:(i=a.getMnemonic,o=a.getUnlockPromise,t=function(e){var t,n;return function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]2147483647)throw aE.PY.invalidParams({message:'Invalid "coinType" parameter. Coin type must be a non-negative integer.'});if(t$.includes(e.coinType))throw aE.PY.invalidParams({message:"Coin type ".concat(e.coinType," is forbidden.")})}var s_=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},r.PermittedCoinTypes,Object.freeze({type:r.PermittedCoinTypes,decorator:function(e,t){var n,r;return n=function(n){var r;return function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1][^\\]]*)\\]\\((?[^)]+)\\)","giu"),sb=["https:","mailto:"];function sv(e,t){var n=String.prototype.matchAll.call(e,sg),r=!0,i=!1,o=void 0;try{for(var a,s=n[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var u,l=a.value.groups,c=null==l?void 0:l.url;if(c)try{var _=new URL(c);(0,j.assert)(sb.includes(_.protocol),"Protocol must be one of: ".concat(sb.join(", "),"."));var p="mailto:"===_.protocol?_.pathname.split("@")[1]:_.hostname;(0,j.assert)(!t(p),"The specified URL is not allowed.")}catch(e){throw Error("Invalid URL: ".concat((u=j.AssertionError,null!=u&&"undefined"!=typeof Symbol&&u[Symbol.hasInstance]?!!u[Symbol.hasInstance](e):e instanceof u)?e.message:"Unable to parse URL."))}}}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}}function sx(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){n(e);return}s.done?t(u):Promise.resolve(u).then(r,i)}function sD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sS="snap_dialog",sT=(0,eE.optional)((0,eE.size)((0,eE.string)(),1,40)),sE=Object.freeze({targetName:sS,specificationBuilder:function(e){var t,n,r,i,o,a=e.allowedCaveats,s=e.methodHooks;return{permissionType:tk.PermissionType.RestrictedMethod,targetName:sS,allowedCaveats:void 0===a?null:a,methodImplementation:(r=s.showDialog,i=s.isOnPhishingList,o=s.maybeUpdatePhishingList,t=function(e){var t,n,a,s,u,l;return function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function sV(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]2&&void 0!==arguments[2]?arguments[2]:104857600;if(!(0,j.isObject)(e))throw aE.PY.invalidParams({message:"Expected params to be a single object."});var i=e.operation,o=e.newState,a=e.encrypted;if(!i||"string"!=typeof i||!Object.values(E).includes(i))throw aE.PY.invalidParams({message:'Must specify a valid manage state "operation".'});if(void 0!==a&&"boolean"!=typeof a)throw aE.PY.invalidParams({message:'"encrypted" parameter must be a boolean if specified.'});if(i===E.UpdateState){if(!(0,j.isObject)(o))throw aE.PY.invalidParams({message:"Invalid ".concat(t,' "updateState" parameter: The new state must be a plain object.'),data:{receivedNewState:void 0===o?"undefined":o}});try{n=(0,j.getJsonSize)(o)}catch(e){throw aE.PY.invalidParams({message:"Invalid ".concat(t,' "updateState" parameter: The new state must be JSON serializable.'),data:{receivedNewState:void 0===o?"undefined":o}})}if(n>r)throw aE.PY.invalidParams({message:"Invalid ".concat(t,' "updateState" parameter: The new state must not exceed ').concat(r," bytes in size."),data:{receivedNewState:void 0===o?"undefined":o}})}return e}(l,c)).encrypted)||void 0===d||d)&&p.operation!==E.ClearState))return[3,2];return[4,r(!0)];case 1:v.sent(),v.label=2;case 2:switch(p.operation){case E.ClearState:return[3,3];case E.GetState:return[3,4];case E.UpdateState:return[3,9]}return[3,14];case 3:return i(_,f),[2,null];case 4:if(null===(m=o(_,f)))return[2,m];if(!f)return[3,7];return y={state:m,decryptFunction:u},[4,n()];case 5:return[4,sZ.apply(void 0,[(y.mnemonicPhrase=v.sent(),y.snapId=_,y)])];case 6:return h=v.sent(),[3,8];case 7:h=tx(m),v.label=8;case 8:return[2,h];case 9:if(!f)return[3,12];return b={state:p.newState,encryptFunction:s},[4,n()];case 10:return[4,sH.apply(void 0,[(b.mnemonicPhrase=v.sent(),b.snapId=_,b)])];case 11:return g=v.sent(),[3,13];case 12:g=JSON.stringify(p.newState),v.label=13;case 13:return a(_,g,f),[2,null];case 14:throw aE.PY.invalidParams("Invalid ".concat(c,' operation: "').concat(p.operation,'"'));case 15:return[2]}})}),function(e){return t.apply(this,arguments)}),subjectTypes:[tk.SubjectType.Snap]}},methodHooks:{getMnemonic:!0,getUnlockPromise:!0,clearSnapState:!0,getSnapState:!0,updateSnapState:!0,encrypt:!0,decrypt:!0}});function sq(e){return sQ.apply(this,arguments)}function sQ(){return(sQ=s$(function(e){return sV(this,function(t){switch(t.label){case 0:return[4,aX({mnemonicPhrase:e.mnemonicPhrase,input:e.snapId,salt:"snap_manageState encryption",magic:tM})];case 1:return[2,t.sent()]}})})).apply(this,arguments)}function sH(e){return sG.apply(this,arguments)}function sG(){return(sG=s$(function(e){var t,n,r;return sV(this,function(i){switch(i.label){case 0:return t=e.state,n=e.encryptFunction,[4,sq(sK(e,["state","encryptFunction"]))];case 1:return r=i.sent(),[4,n(r,t)];case 2:return[2,i.sent()]}})})).apply(this,arguments)}function sZ(e){return sX.apply(this,arguments)}function sX(){return(sX=s$(function(e){var t,n,r,i,o;return sV(this,function(a){switch(a.label){case 0:t=e.state,n=e.decryptFunction,r=sK(e,["state","decryptFunction"]),a.label=1;case 1:return a.trys.push([1,4,,5]),[4,sq(r)];case 2:return i=a.sent(),[4,n(i,t)];case 3:return o=a.sent(),(0,j.assert)((0,j.isValidJson)(o)),[2,o];case 4:throw a.sent(),aE.PY.internal({message:"Failed to decrypt snap state, the state must be corrupted."});case 5:return[2]}})})).apply(this,arguments)}function s0(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){n(e);return}s.done?t(u):Promise.resolve(u).then(r,i)}var s1="snap_notify",s2=Object.freeze({targetName:s1,specificationBuilder:function(e){var t,n,r,i,o,a,s=e.allowedCaveats,u=e.methodHooks;return{permissionType:tk.PermissionType.RestrictedMethod,targetName:s1,allowedCaveats:void 0===s?null:s,methodImplementation:(r=u.showNativeNotification,i=u.showInAppNotification,o=u.isOnPhishingList,a=u.maybeUpdatePhishingList,t=function(e){var t,n,s;return function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=50)throw aE.PY.invalidParams({message:'Must specify a non-empty string "message" less than 50 characters long.'});return e}(t),[4,a()];case 1:switch(u.sent(),sv(s.message,o),s.type){case v.Native:return[3,2];case v.InApp:return[3,4]}return[3,6];case 2:return[4,r(n,s)];case 3:case 5:return[2,u.sent()];case 4:return[4,i(n,s)];case 6:throw aE.PY.invalidParams({message:'Must specify a valid notification "type".'});case 7:return[2]}})},n=function(){var e=this,n=arguments;return new Promise(function(r,i){var o=t.apply(e,n);function a(e){s0(o,r,i,a,s,"next",e)}function s(e){s0(o,r,i,a,s,"throw",e)}a(void 0)})},function(e){return n.apply(this,arguments)}),subjectTypes:[tk.SubjectType.Snap]}},methodHooks:{showNativeNotification:!0,showInAppNotification:!0,isOnPhishingList:!0,maybeUpdatePhishingList:!0}});function s3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s4=(s3(w={},sE.targetName,sE),s3(w,a6.targetName,a6),s3(w,a9.targetName,a9),s3(w,sn.targetName,sn),s3(w,sO.targetName,sO),s3(w,su.targetName,su),s3(w,sW.targetName,sW),s3(w,s2.targetName,s2),s3(w,sU.targetName,sU),s3(w,sL.targetName,sL),w);!function(e){e.NetworkAccess="endowment:network-access",e.SignatureInsight="endowment:signature-insight",e.TransactionInsight="endowment:transaction-insight",e.Cronjob="endowment:cronjob",e.EthereumProvider="endowment:ethereum-provider",e.Rpc="endowment:rpc",e.WebAssemblyAccess="endowment:webassembly",e.NameLookup="endowment:name-lookup",e.LifecycleHooks="endowment:lifecycle-hooks",e.Keyring="endowment:keyring",e.HomePage="endowment:page-home"}(A||(A={}));var s6=A.Cronjob,s5=Object.freeze({targetName:s6,specificationBuilder:function(e){return{permissionType:tk.PermissionType.Endowment,targetName:s6,allowedCaveats:[r.SnapCronjob],endowmentGetter:function(e){},subjectTypes:[tk.SubjectType.Snap]}}}),s8=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},r.SnapCronjob,Object.freeze({type:r.SnapCronjob,validator:function(e){return function(e){if(!(0,j.hasProperty)(e,"value")||!(0,j.isPlainObject)(e.value))throw aE.PY.invalidParams({message:"Expected a plain object."});var t=e.value;if(!(0,j.hasProperty)(t,"jobs")||!(0,j.isPlainObject)(t))throw aE.PY.invalidParams({message:"Expected a plain object."});if(!function(e){try{return(0,eE.create)(e,tC),!0}catch(e){return!1}}(t.jobs))throw aE.PY.invalidParams({message:"Expected a valid cronjob specification array."})}(e)}})),s7=A.EthereumProvider,s9=Object.freeze({targetName:s7,specificationBuilder:function(e){return{permissionType:tk.PermissionType.Endowment,targetName:s7,allowedCaveats:null,endowmentGetter:function(e){return["ethereum"]},subjectTypes:[tk.SubjectType.Snap]}}}),ue=A.HomePage,ut=Object.freeze({targetName:ue,specificationBuilder:function(e){return{permissionType:tk.PermissionType.Endowment,targetName:ue,allowedCaveats:null,endowmentGetter:function(e){},subjectTypes:[tk.SubjectType.Snap]}}}),un=A.Keyring,ur=Object.freeze({targetName:un,specificationBuilder:function(e){return{permissionType:tk.PermissionType.Endowment,targetName:un,allowedCaveats:[r.KeyringOrigin],endowmentGetter:function(e){},validator:function(e){var t=e.caveats;if((null==t?void 0:t.length)!==1||t[0].type!==r.KeyringOrigin)throw aE.PY.invalidParams({message:'Expected a single "'.concat(r.KeyringOrigin,'" caveat.')})},subjectTypes:[tk.SubjectType.Snap]}}}),ui=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},r.KeyringOrigin,Object.freeze({type:r.KeyringOrigin,validator:function(e){return function(e){var t,n;if(!(0,j.hasProperty)(e,"value")||!(0,j.isPlainObject)(e.value))throw aE.PY.invalidParams({message:"Invalid keyring origins: Expected a plain object."});t=e.value,n=aE.PY.invalidParams,(0,j.assertStruct)(t,tj,"Invalid keyring origins",n)}(e)}})),uo=A.LifecycleHooks,ua=Object.freeze({targetName:uo,specificationBuilder:function(e){return{permissionType:tk.PermissionType.Endowment,targetName:uo,allowedCaveats:null,endowmentGetter:function(e){},subjectTypes:[tk.SubjectType.Snap]}}}),us=A.NameLookup,uu=Object.freeze({targetName:us,specificationBuilder:function(e){return{permissionType:tk.PermissionType.Endowment,targetName:us,allowedCaveats:[r.ChainIds],endowmentGetter:function(e){},validator:function(e){var t=e.caveats;if(!t||null!==t&&(null==t?void 0:t.length)>1||(null==t?void 0:t.length)===1&&t[0].type!==r.ChainIds)throw aE.PY.invalidParams({message:'Expected a single "'.concat(r.ChainIds,'" caveat.')})},subjectTypes:[tk.SubjectType.Snap]}}}),ul=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},r.ChainIds,Object.freeze({type:r.ChainIds,validator:function(e){return function(e){if(!(0,j.hasProperty)(e,"value")||!(0,j.isPlainObject)(e))throw aE.PY.invalidParams({message:"Expected a plain object."});var t=e.value;(0,j.assert)(Array.isArray(t)&&t.every(function(e){return(0,eE.is)(e,tR)}),'Expected caveat value to have type "string array"')}(e)}})),uc=A.NetworkAccess,u_=Object.freeze({targetName:uc,specificationBuilder:function(e){return{permissionType:tk.PermissionType.Endowment,targetName:uc,allowedCaveats:null,endowmentGetter:function(e){return["fetch","Request","Headers","Response"]},subjectTypes:[tk.SubjectType.Snap]}}}),up=A.Rpc,ud=Object.freeze({targetName:up,specificationBuilder:function(e){return{permissionType:tk.PermissionType.Endowment,targetName:up,allowedCaveats:[r.RpcOrigin],endowmentGetter:function(e){},validator:function(e){var t=e.caveats;if((null==t?void 0:t.length)!==1||t[0].type!==r.RpcOrigin)throw aE.PY.invalidParams({message:'Expected a single "'.concat(r.RpcOrigin,'" caveat.')})},subjectTypes:[tk.SubjectType.Snap]}}}),uf=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},r.RpcOrigin,Object.freeze({type:r.RpcOrigin,validator:function(e){return function(e){var t,n;if(!(0,j.hasProperty)(e,"value")||!(0,j.isPlainObject)(e.value))throw aE.PY.invalidParams({message:"Invalid JSON-RPC origins: Expected a plain object."});t=e.value,n=aE.PY.invalidParams,(0,j.assertStruct)(t,tI,"Invalid JSON-RPC origins",n)}(e)}})),um=A.SignatureInsight,uh=Object.freeze({targetName:um,specificationBuilder:function(e){return{permissionType:tk.PermissionType.Endowment,targetName:um,allowedCaveats:[r.SignatureOrigin],endowmentGetter:function(e){},validator:function(e){var t=e.caveats;if(null!==t&&(null==t?void 0:t.length)>1||(null==t?void 0:t.length)===1&&t[0].type!==r.SignatureOrigin)throw aE.PY.invalidParams({message:'Expected a single "'.concat(r.SignatureOrigin,'" caveat.')})},subjectTypes:[tk.SubjectType.Snap]}}}),uy=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},r.SignatureOrigin,Object.freeze({type:r.SignatureOrigin,validator:function(e){return function(e){if(!(0,j.hasProperty)(e,"value")||!(0,j.isPlainObject)(e))throw aE.PY.invalidParams({message:"Expected a plain object."});var t=e.value;(0,j.assert)("boolean"==typeof t,'Expected caveat value to have type "boolean"')}(e)}})),ug=A.TransactionInsight,ub=Object.freeze({targetName:ug,specificationBuilder:function(e){return{permissionType:tk.PermissionType.Endowment,targetName:ug,allowedCaveats:[r.TransactionOrigin],endowmentGetter:function(e){},validator:function(e){var t=e.caveats;if(null!==t&&(null==t?void 0:t.length)>1||(null==t?void 0:t.length)===1&&t[0].type!==r.TransactionOrigin)throw aE.PY.invalidParams({message:'Expected a single "'.concat(r.TransactionOrigin,'" caveat.')})},subjectTypes:[tk.SubjectType.Snap]}}}),uv=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},r.TransactionOrigin,Object.freeze({type:r.TransactionOrigin,validator:function(e){return function(e){if(!(0,j.hasProperty)(e,"value")||!(0,j.isPlainObject)(e))throw aE.PY.invalidParams({message:"Expected a plain object."});var t=e.value;(0,j.assert)("boolean"==typeof t,'Expected caveat value to have type "boolean"')}(e)}})),ux=A.WebAssemblyAccess,uD=Object.freeze({targetName:ux,specificationBuilder:function(e){return{permissionType:tk.PermissionType.Endowment,targetName:ux,allowedCaveats:null,endowmentGetter:function(e){return["WebAssembly"]},subjectTypes:[tk.SubjectType.Snap]}}});function uS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var uT=(uS(C={},u_.targetName,u_),uS(C,ub.targetName,ub),uS(C,s5.targetName,s5),uS(C,s9.targetName,s9),uS(C,ud.targetName,ud),uS(C,uD.targetName,uD),uS(C,uu.targetName,uu),uS(C,ua.targetName,ua),uS(C,ur.targetName,ur),uS(C,ut.targetName,ut),uS(C,uh.targetName,uh),C),uE=function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]2)||void 0===r[2]||r[2],[4,new Promise(function(r,i){var o=document.createElement("iframe");o.setAttribute("id",t),o.setAttribute("data-testid","snaps-iframe"),n&&o.setAttribute("sandbox","allow-scripts"),o.setAttribute("src",e),document.body.appendChild(o),o.addEventListener("load",function(){o.contentWindow?r(o.contentWindow):i(Error('iframe.contentWindow not present on load for job "'.concat(t,'".')))})})];case 1:return[2,i.sent()]}})},(uM=function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){uN(o,r,i,a,s,"next",e)}function s(e){uN(o,r,i,a,s,"throw",e)}a(void 0)})}).apply(this,arguments)}var uk=n(9952),uI=n.n(uk);function uj(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n1?n-1:0),i=1;icrypto.getRandomValues(new Uint8Array(e)).reduce((e,t)=>((t&=63)<36?e+=t.toString(36):t<62?e+=(t-26).toString(36).toUpperCase():t>62?e+="-":e+="_",e),"");var uz=(0,j.createModuleLogger)(uO,"snaps-controllers");function uR(e,t){for(var n=0;n=0,TypeError("Can't start a timer with negative time")),this.state={value:"stopped",remaining:e}}return e=[{key:"status",get:function(){return this.state.value}},{key:"cancel",value:function(){(0,j.assert)("paused"===this.status||"running"===this.status,Error("Tried to cancel a not running Timer")),this.onFinish(!1)}},{key:"pause",value:function(){(0,j.assert)("running"===this.state.value,Error("Tried to pause a not running Timer"));var e=this.state,t=e.callback,n=e.start,r=e.timeout,i=e.remaining;void 0!==r&&clearTimeout(r),this.state={value:"paused",callback:t,remaining:i-(Date.now()-n)}}},{key:"start",value:function(e){(0,j.assert)("stopped"===this.state.value,Error("Tried to start an already running Timer"));var t=this.state.remaining;this.state={value:"paused",remaining:t,callback:e},this.resume()}},{key:"resume",value:function(){var e,t=this;(0,j.assert)("paused"===this.state.value,Error("Tried to resume not paused Timer"));var n=this.state,r=n.remaining,i=n.callback,o=Date.now();r!==Number.POSITIVE_INFINITY&&(e=setTimeout(function(){return t.onFinish(!0)},r)),this.state={value:"running",callback:i,remaining:r,start:o,timeout:e}}},{key:"onFinish",value:function(e){(0,j.assert)("running"===this.state.value||"paused"===this.state.value),"running"===this.state.value&&void 0!==this.state.timeout&&clearTimeout(this.state.timeout);var t=this.state.callback;this.state={value:"finished"},e&&t()}}],uR(n.prototype,e),t&&uR(n,t),n}();function uU(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){n(e);return}s.done?t(u):Promise.resolve(u).then(r,i)}var uJ=Symbol("Used to check if the requested promise has timeout (see withTimeout)");function u$(){var e;return(e=function(e,t){var n;return function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]1&&void 0!==a[1]?a[1]:k.Base64,[4,a_(rn)];case 1:if(r=s.sent(),i=t3(e),!(o=null===(n=r.find(function(e){return e.path===i}))||void 0===n?void 0:n.toString("base64")))return[2,null];return[4,au(lK,o,t)];case 2:return[2,s.sent()]}})}function lX(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){n(e);return}s.done?t(u):Promise.resolve(u).then(r,i)}function l0(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){lX(o,r,i,a,s,"next",e)}function s(e){lX(o,r,i,a,s,"throw",e)}a(void 0)})}}function l1(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]1&&void 0!==arguments[1]?arguments[1]:{};(function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")})(this,n),cb(this,"cache",new Map),cb(this,"validatedManifest",void 0),cb(this,"url",void 0),cb(this,"fetchFn",void 0),cb(this,"fetchOptions",void 0),(0,j.assertStruct)(e.toString(),ty,"Invalid Snap Id: "),this.fetchFn=null!==(t=r.fetch)&&void 0!==t?t:globalThis.fetch.bind(globalThis),this.fetchOptions=r.fetchOptions,this.url=e}return e=[{key:"manifest",value:function(){var e=this;return cy(function(){var t,n,r,o,a;return cv(this,function(s){switch(s.label){case 0:if(e.validatedManifest)return[2,e.validatedManifest.clone()];return t=new URL(i.Manifest,e.url).toString(),[4,e.fetchFn(t,e.fetchOptions)];case 1:if(!(n=s.sent()).ok)throw Error('Failed to fetch "'.concat(t,'". Status code: ').concat(n.status,"."));return[4,n.text()];case 2:return o=tx(r=s.sent()),a=new eX({value:r,result:t2(o),path:i.Manifest,data:{canonicalPath:t}}),e.validatedManifest=a,[2,e.manifest()]}})})()}},{key:"fetch",value:function(e){var t=this;return cy(function(){var n,r,i,o,a,s,u,l,c,_,p;return cv(this,function(d){switch(d.label){case 0:if(n=t3(e),!(void 0!==(r=t.cache.get(n))))return[3,2];return i=r.file,o=r.contents,s=Uint8Array.bind,[4,o.arrayBuffer()];case 1:return a=new(s.apply(Uint8Array,[void 0,d.sent()])),(u=i.clone()).value=a,[2,u];case 2:return l=t.toCanonical(n).toString(),[4,t.fetchFn(l,t.fetchOptions)];case 3:if(!(c=d.sent()).ok)throw Error('Failed to fetch "'.concat(l,'". Status code: ').concat(c.status,"."));return _=new eX({value:"",path:n,data:{canonicalPath:l}}),[4,c.blob()];case 4:return p=d.sent(),(0,j.assert)(!t.cache.has(n),"Corrupted cache, multiple files with same path."),t.cache.set(n,{file:_,contents:p}),[2,t.fetch(n)]}})})()}},{key:"root",get:function(){return new URL(this.url)}},{key:"toCanonical",value:function(e){return(0,j.assert)(!e.startsWith("/"),"Tried to parse absolute path."),new URL(e,this.url)}}],cg(n.prototype,e),t&&cg(n,t),n}();function cD(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){n(e);return}s.done?t(u):Promise.resolve(u).then(r,i)}function cS(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){cD(o,r,i,a,s,"next",e)}function s(e){cD(o,r,i,a,s,"throw",e)}a(void 0)})}}function cT(e,t,n){if(!t.has(e))throw TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function cE(e,t){var n=cT(e,t,"get");return n.get?n.get.call(e):n.value}function cw(e,t){for(var n=0;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]1&&void 0!==arguments[1]?arguments[1]:{};(function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")})(this,n),function(e,t){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}(this,cC),cC.set(this,{writable:!0,value:void 0}),(0,j.assertStruct)(e.toString(),tm,"Invalid Snap Id"),(0,j.assert)(void 0===a.fetchOptions,"Currently adding fetch options to local: is unsupported."),i=new cx(new URL(e.toString().slice(o.local.length)),(t=function(e){for(var t=1;t0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0?[2,n.join("\n")]:[2,!0]})});return function(t,n){return e.apply(this,arguments)}}()},{name:"Checksum",manifestName:"source.shasum",validator:function(){var e=cV(function(e,t){var n,r,i,o,a,s,u;return cW(this,function(l){switch(l.label){case 0:if(n=t.sourceCode,r=t.icon,i=t.auxiliaryFiles,o=t.localizationFiles,!e)return[3,2];return s=null===(a=e.result)||void 0===a?void 0:a.source.shasum,[4,function(e){return tp.apply(this,arguments)}({manifest:e,sourceCode:n,svgIcon:r,auxiliaryFiles:i,localizationFiles:o})];case 1:if(u=l.sent(),s!==u)return[2,'Checksum mismatch - expected "'.concat(u,'" got "').concat(s,'"')];l.label=2;case 2:return[2,!0]}})});return function(t,n){return e.apply(this,arguments)}}()},{name:"Bundle",manifestName:"filePath",validator:function(){var e=cV(function(e,t){var n,r,i,o,a,s,u;return cW(this,function(l){return(n=t.sourceCode,u=cY(t1.schema.source.schema.location.schema.npm.schema.filePath.validate(null===(s=e)||void 0===s?void 0:null===(a=s.result)||void 0===a?void 0:null===(o=a.source)||void 0===o?void 0:null===(i=o.location)||void 0===i?void 0:null===(r=i.npm)||void 0===r?void 0:r.filePath),1)[0])?[2,u.message]:n?[2,!0]:[2,"Unable to load bundle."]})});return function(t,n){return e.apply(this,arguments)}}()}];function cQ(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]{var e={51119:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(3408);function r(e,t,i){return(t=(0,n.Z)(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}},7560:(e,t,i)=>{"use strict";function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;tn})},98283:(e,t,i)=>{"use strict";function n(e,t){if(null==e)return{};var i,n,r={},o=Object.keys(e);for(n=0;n=0||(r[i]=e[i]);return r}i.d(t,{Z:()=>n})},74938:(e,t,i)=>{"use strict";function n(e,t){return(n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}i.d(t,{Z:()=>n})},3408:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(90929);function r(e){var t=function(e,t){if("object"!==(0,n.Z)(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var r=i.call(e,t||"default");if("object"!==(0,n.Z)(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===(0,n.Z)(t)?t:String(t)}},90929:(e,t,i)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}i.d(t,{Z:()=>n})},25191:(e,t,i)=>{"use strict";i.d(t,{$5:()=>s,AB:()=>a,Eb:()=>C,Ji:()=>w,OP:()=>d,SG:()=>A,SM:()=>_,TB:()=>u,TJ:()=>f,V1:()=>y,VM:()=>D,X:()=>g,aP:()=>o,aj:()=>E,ao:()=>p,bN:()=>l,f2:()=>S,iU:()=>c,ke:()=>L,l1:()=>M,lN:()=>h,nY:()=>x,nw:()=>N,q0:()=>k,rk:()=>v,sA:()=>r,vE:()=>m,wl:()=>b});var n=i(94859),r=(0,n.O)("accordion").parts("root","container","button","panel").extend("icon"),o=(0,n.O)("alert").parts("title","description","container").extend("icon","spinner"),s=(0,n.O)("avatar").parts("label","badge","container").extend("excessLabel","group"),a=(0,n.O)("breadcrumb").parts("link","item","container").extend("separator"),l=(0,n.O)("button").parts(),u=(0,n.O)("checkbox").parts("control","icon","container").extend("label"),d=(0,n.O)("progress").parts("track","filledTrack").extend("label"),c=(0,n.O)("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),h=(0,n.O)("editable").parts("preview","input","textarea"),f=(0,n.O)("form").parts("container","requiredIndicator","helperText"),p=(0,n.O)("formError").parts("text","icon"),g=(0,n.O)("input").parts("addon","field","element"),m=(0,n.O)("list").parts("container","item","icon"),v=(0,n.O)("menu").parts("button","list","item").extend("groupTitle","command","divider"),b=(0,n.O)("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),y=(0,n.O)("numberinput").parts("root","field","stepperGroup","stepper"),_=(0,n.O)("pininput").parts("field"),w=(0,n.O)("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),C=(0,n.O)("progress").parts("label","filledTrack","track"),S=(0,n.O)("radio").parts("container","control","label"),x=(0,n.O)("select").parts("field","icon"),k=(0,n.O)("slider").parts("container","track","thumb","filledTrack","mark"),E=(0,n.O)("stat").parts("container","label","helpText","number","icon"),L=(0,n.O)("switch").parts("container","track","thumb"),M=(0,n.O)("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),N=(0,n.O)("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),D=(0,n.O)("tag").parts("container","label","closeButton"),A=(0,n.O)("card").parts("container","header","body","footer")},94859:(e,t,i)=>{"use strict";i.d(t,{O:()=>function e(t,i={}){let n=!1;function r(e){let i=`chakra-${(["container","root"].includes(null!=e?e:"")?[t]:[t,e]).filter(Boolean).join("__")}`;return{className:i,selector:`.${i}`,toString:()=>e}}return{parts:function(...o){for(let e of(!function(){if(!n){n=!0;return}throw Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}(),o))i[e]=r(e);return e(t,i)},toPart:r,extend:function(...n){for(let e of n)e in i||(i[e]=r(e));return e(t,i)},selectors:function(){return Object.fromEntries(Object.entries(i).map(([e,t])=>[e,t.selector]))},classnames:function(){return Object.fromEntries(Object.entries(i).map(([e,t])=>[e,t.className]))},get keys(){return Object.keys(i)},__type:{}}}})},57879:(e,t,i)=>{"use strict";i.r(t),i.d(t,{accordionAnatomy:()=>n.sA,alertAnatomy:()=>n.aP,anatomy:()=>r.O,avatarAnatomy:()=>n.$5,breadcrumbAnatomy:()=>n.AB,buttonAnatomy:()=>n.bN,cardAnatomy:()=>n.SG,checkboxAnatomy:()=>n.TB,circularProgressAnatomy:()=>n.OP,drawerAnatomy:()=>n.iU,editableAnatomy:()=>n.lN,formAnatomy:()=>n.TJ,formErrorAnatomy:()=>n.ao,inputAnatomy:()=>n.X,listAnatomy:()=>n.vE,menuAnatomy:()=>n.rk,modalAnatomy:()=>n.wl,numberInputAnatomy:()=>n.V1,pinInputAnatomy:()=>n.SM,popoverAnatomy:()=>n.Ji,progressAnatomy:()=>n.Eb,radioAnatomy:()=>n.f2,selectAnatomy:()=>n.nY,sliderAnatomy:()=>n.q0,statAnatomy:()=>n.aj,switchAnatomy:()=>n.ke,tableAnatomy:()=>n.l1,tabsAnatomy:()=>n.nw,tagAnatomy:()=>n.VM});var n=i(25191),r=i(94859)},82323:(e,t,i)=>{"use strict";i.r(t),i.d(t,{AbsoluteCenter:()=>fI,Accordion:()=>a8,AccordionButton:()=>aV,AccordionIcon:()=>aq,AccordionItem:()=>aG,AccordionPanel:()=>a3,AccordionProvider:()=>aU,Alert:()=>s6,AlertDescription:()=>s5,AlertDialog:()=>mD,AlertDialogBody:()=>mq,AlertDialogCloseButton:()=>mG,AlertDialogContent:()=>mA,AlertDialogFooter:()=>mV,AlertDialogHeader:()=>mj,AlertDialogOverlay:()=>mK,AlertIcon:()=>s3,AlertTitle:()=>s8,AspectRatio:()=>fN,Avatar:()=>ll,AvatarBadge:()=>le,AvatarGroup:()=>ld,Badge:()=>fD,Box:()=>fb,Breadcrumb:()=>lm,BreadcrumbItem:()=>lg,BreadcrumbLink:()=>lf,BreadcrumbSeparator:()=>lp,Button:()=>lx,ButtonGroup:()=>lw,ButtonSpinner:()=>lS,CSSPolyfill:()=>O,CSSReset:()=>P,CSSVars:()=>tV,Card:()=>lT,CardBody:()=>lN,CardFooter:()=>lD,CardHeader:()=>lA,Center:()=>fA,ChakraBaseProvider:()=>ab,ChakraProvider:()=>av,Checkbox:()=>ua,CheckboxGroup:()=>lF,CheckboxIcon:()=>lz,Circle:()=>f_,CircularProgress:()=>vj,CircularProgressLabel:()=>vO,CloseButton:()=>s9,Code:()=>fO,Collapse:()=>a6,ColorModeContext:()=>V,ColorModeProvider:()=>t6,ColorModeScript:()=>yp,Container:()=>fP,ControlBox:()=>ul,DarkMode:()=>t3,Divider:()=>fR,Drawer:()=>mP,DrawerBody:()=>mq,DrawerCloseButton:()=>mG,DrawerContent:()=>mz,DrawerFooter:()=>mV,DrawerHeader:()=>mj,DrawerOverlay:()=>mK,EASINGS:()=>aZ,Editable:()=>uP,EditableInput:()=>uS,EditablePreview:()=>ux,EditableTextarea:()=>uk,EnvironmentProvider:()=>t9,Fade:()=>mU,Flex:()=>fF,FocusLock:()=>ca,FormControl:()=>l$,FormErrorIcon:()=>cc,FormErrorMessage:()=>cd,FormHelperText:()=>lK,FormLabel:()=>ch,GenericAvatarIcon:()=>ln,GlobalStyle:()=>t$,Grid:()=>fe,GridItem:()=>fm,HStack:()=>ff,Heading:()=>fv,Hide:()=>fj,Highlight:()=>fx,Icon:()=>sG,IconButton:()=>lE,Image:()=>hV,Img:()=>hj,Input:()=>h2,InputAddon:()=>hZ,InputGroup:()=>hK,InputLeftAddon:()=>hY,InputLeftElement:()=>h0,InputRightAddon:()=>hJ,InputRightElement:()=>h1,Kbd:()=>fk,LightMode:()=>t8,Link:()=>fM,LinkBox:()=>fL,LinkOverlay:()=>fE,List:()=>h8,ListIcon:()=>h7,ListItem:()=>h9,Mark:()=>fS,Menu:()=>g_,MenuButton:()=>gA,MenuCommand:()=>gw,MenuDescendantsProvider:()=>gt,MenuDivider:()=>gT,MenuGroup:()=>gM,MenuIcon:()=>gS,MenuItem:()=>gx,MenuItemOption:()=>gO,MenuList:()=>gL,MenuOptionGroup:()=>gN,MenuProvider:()=>go,Modal:()=>g5,ModalBody:()=>mq,ModalCloseButton:()=>mG,ModalContent:()=>mN,ModalContextProvider:()=>g3,ModalFocusScope:()=>mM,ModalFooter:()=>mV,ModalHeader:()=>mj,ModalOverlay:()=>mK,NumberDecrementStepper:()=>m7,NumberIncrementStepper:()=>ve,NumberInput:()=>m8,NumberInputField:()=>m4,NumberInputStepper:()=>m5,OrderedList:()=>h5,PinInput:()=>vc,PinInputDescendantsProvider:()=>vt,PinInputField:()=>vh,PinInputProvider:()=>vo,Popover:()=>vS,PopoverAnchor:()=>vx,PopoverArrow:()=>vE,PopoverBody:()=>vL,PopoverCloseButton:()=>vM,PopoverContent:()=>vT,PopoverFooter:()=>vI,PopoverHeader:()=>vv,PopoverTrigger:()=>vb,Portal:()=>ah,PortalManager:()=>z,Progress:()=>vK,ProgressLabel:()=>vq,Radio:()=>v1,RadioGroup:()=>vJ,RangeSlider:()=>bO,RangeSliderFilledTrack:()=>bF,RangeSliderMark:()=>bB,RangeSliderProvider:()=>bD,RangeSliderThumb:()=>bP,RangeSliderTrack:()=>bR,RequiredIndicator:()=>cf,ScaleFade:()=>gB,Select:()=>v6,SelectField:()=>v2,Show:()=>f$,SimpleGrid:()=>fn,Skeleton:()=>bi,SkeletonCircle:()=>bn,SkeletonText:()=>br,Slide:()=>mB,SlideFade:()=>gR,Slider:()=>bU,SliderFilledTrack:()=>bq,SliderMark:()=>bG,SliderProvider:()=>bz,SliderThumb:()=>b$,SliderTrack:()=>bK,Spacer:()=>fr,Spinner:()=>sJ,Square:()=>fy,Stack:()=>fc,StackDivider:()=>fp,StackItem:()=>fu,Stat:()=>bJ,StatArrow:()=>b0,StatDownArrow:()=>bQ,StatGroup:()=>b1,StatHelpText:()=>b2,StatLabel:()=>b6,StatNumber:()=>b3,StatUpArrow:()=>bX,Step:()=>ye,StepDescription:()=>yn,StepIcon:()=>ys,StepIndicator:()=>yl,StepIndicatorContent:()=>yu,StepNumber:()=>ya,StepSeparator:()=>yd,StepStatus:()=>yr,StepTitle:()=>b7,Stepper:()=>yt,StylesProvider:()=>tj,Switch:()=>yc,Tab:()=>yZ,TabIndicator:()=>y$,TabList:()=>yK,TabPanel:()=>yq,TabPanels:()=>yG,Table:()=>yv,TableCaption:()=>y_,TableContainer:()=>yw,Tabs:()=>yU,TabsDescendantsProvider:()=>yE,TabsProvider:()=>yA,Tag:()=>yQ,TagCloseButton:()=>y6,TagLabel:()=>yX,TagLeftIcon:()=>y0,TagRightIcon:()=>y1,Tbody:()=>yC,Td:()=>yS,Text:()=>fo,Textarea:()=>y8,Tfoot:()=>yx,Th:()=>yk,Thead:()=>yb,ThemeProvider:()=>tz,Toast:()=>at,ToastOptionProvider:()=>af,ToastProvider:()=>ag,Tooltip:()=>_u,Tr:()=>yy,UnorderedList:()=>h4,VStack:()=>fh,VisuallyHidden:()=>_d,VisuallyHiddenInput:()=>_c,Wrap:()=>fa,WrapItem:()=>fl,addPrefix:()=>eX,assignRef:()=>cM,background:()=>eC,baseTheme:()=>sc,border:()=>eS,calc:()=>eQ,chakra:()=>sE,color:()=>ex,cookieStorageManager:()=>tQ,cookieStorageManagerSSR:()=>tX,createCookieStorageManager:()=>tJ,createIcon:()=>hH,createLocalStorageManager:()=>tG,createMultiStyleConfigHelpers:()=>tx,createRenderToast:()=>ai,createStandaloneToast:()=>_i,createStylesContext:()=>tU,createToastFn:()=>an,css:()=>tw,cssVar:()=>e2,defineCssVars:()=>e6,defineStyle:()=>tC,defineStyleConfig:()=>tS,effect:()=>ek,extendBaseTheme:()=>sB,extendTheme:()=>sF,fadeConfig:()=>mW,filter:()=>eE,flattenTokens:()=>td,flexbox:()=>eL,forwardRef:()=>sD,getCSSVar:()=>tE,getCss:()=>t_,getScriptSrc:()=>yf,getSlideTransition:()=>aJ,getToastPlacement:()=>sN,getToken:()=>sO,grid:()=>eM,interactivity:()=>eN,isChakraTheme:()=>it,isStyleProp:()=>tm,keyframes:()=>D.keyframes,layout:()=>eD,layoutPropNames:()=>tf,list:()=>eA,localStorageManager:()=>tZ,mergeThemeOverride:()=>sH,omitThemingProps:()=>tL,others:()=>eR,popperCSSVars:()=>fX,position:()=>eF,propNames:()=>tp,pseudoPropNames:()=>to,pseudoSelectors:()=>tr,requiredChakraThemeKeys:()=>ie,resolveStyleConfig:()=>tk,ring:()=>eB,scaleFadeConfig:()=>gF,scroll:()=>eU,shouldForwardProp:()=>sw,slideFadeConfig:()=>gP,space:()=>eH,styled:()=>sk,systemProps:()=>th,textDecoration:()=>ez,theme:()=>sd,toCSSObject:()=>sx,toCSSVar:()=>tc,toVarDefinition:()=>e1,toVarReference:()=>e0,tokenToCSSVar:()=>er,transform:()=>eV,transition:()=>ej,typography:()=>eW,useAccordion:()=>aW,useAccordionContext:()=>a$,useAccordionItem:()=>aK,useAccordionItemState:()=>a5,useAccordionStyles:()=>aO,useAlertStyles:()=>s1,useAnimationState:()=>hE,useAvatarStyles:()=>a9,useBoolean:()=>hL,useBreadcrumbStyles:()=>lh,useBreakpoint:()=>fK,useBreakpointValue:()=>fq,useButtonGroup:()=>lb,useCallbackRef:()=>cS,useCardStyles:()=>lM,useChakra:()=>sT,useCheckbox:()=>ue,useCheckboxGroup:()=>lR,useClipboard:()=>hD,useColorMode:()=>j,useColorModePreference:()=>fU,useColorModeValue:()=>W,useComponentStyles__unstable:()=>sK,useConst:()=>hA,useControllableProp:()=>hl,useControllableState:()=>hu,useCounter:()=>uf,useDimensions:()=>hB,useDisclosure:()=>hd,useDrawerContext:()=>mI,useEditable:()=>uO,useEditableContext:()=>u_,useEditableControls:()=>uR,useEditableState:()=>uw,useEditableStyles:()=>ub,useEnvironment:()=>t4,useEventListener:()=>cD,useEventListenerMap:()=>hc,useFocusEffect:()=>hy,useFocusOnHide:()=>h_,useFocusOnPointerDown:()=>hw,useFocusOnShow:()=>hx,useForceUpdate:()=>hk,useFormControl:()=>lq,useFormControlContext:()=>lU,useFormControlProps:()=>lG,useFormControlStyles:()=>lj,useFormErrorStyles:()=>cu,useHighlight:()=>fC,useId:()=>ho,useIds:()=>hs,useImage:()=>lr,useInputGroupStyles:()=>h$,useInterval:()=>cE,useLatestRef:()=>cL,useListStyles:()=>h3,useMediaQuery:()=>fB,useMenu:()=>gu,useMenuButton:()=>gd,useMenuContext:()=>gs,useMenuDescendant:()=>gr,useMenuDescendants:()=>gn,useMenuDescendantsContext:()=>gi,useMenuItem:()=>gp,useMenuList:()=>gh,useMenuOption:()=>gg,useMenuOptionGroup:()=>gm,useMenuPositioner:()=>gf,useMenuState:()=>gv,useMenuStyles:()=>gy,useMergeRefs:()=>cN,useModal:()=>g1,useModalContext:()=>g8,useModalStyles:()=>g6,useMouseDownRef:()=>cA,useMultiStyleConfig:()=>s$,useNumberInput:()=>m0,useNumberInputStyles:()=>m2,useOptionalPart:()=>ha,useOutsideClick:()=>cT,usePanGesture:()=>hr,usePinInput:()=>vu,usePinInputContext:()=>vs,usePinInputField:()=>vd,usePointerEvent:()=>cU,usePopover:()=>v_,usePopoverContext:()=>vp,usePopoverStyles:()=>vm,usePopper:()=>p8,usePortalManager:()=>H,usePrefersReducedMotion:()=>fW,usePrevious:()=>cp,useProgressStyles:()=>vU,useQuery:()=>fV,useRadio:()=>vX,useRadioGroup:()=>vG,useRadioGroupContext:()=>vY,useRangeSlider:()=>bN,useRangeSliderContext:()=>bA,useRangeSliderStyles:()=>bI,useSafeLayoutEffect:()=>cC,useShortcut:()=>cg,useSlider:()=>bH,useSliderContext:()=>bV,useSliderStyles:()=>bW,useStatStyles:()=>bY,useStepContext:()=>b5,useStepperStyles:()=>b9,useSteps:()=>yi,useStyleConfig:()=>sU,useStyles:()=>tW,useTab:()=>yO,useTabIndicator:()=>yH,useTabList:()=>yI,useTabPanel:()=>yB,useTabPanels:()=>yF,useTableStyles:()=>ym,useTabs:()=>yD,useTabsContext:()=>yT,useTabsDescendant:()=>yN,useTabsDescendants:()=>yM,useTabsDescendantsContext:()=>yL,useTabsStyles:()=>yW,useTagStyles:()=>yJ,useTheme:()=>sA,useTimeout:()=>cx,useToast:()=>_e,useToken:()=>sI,useTooltip:()=>_s,useUnmountEffect:()=>c$,useUpdateEffect:()=>hh,useWhyDidYouUpdate:()=>ck,visuallyHiddenStyle:()=>lZ,withDefaultColorScheme:()=>y5,withDefaultProps:()=>y7,withDefaultSize:()=>y4,withDefaultVariant:()=>y9,withDelay:()=>aX});var n,r,o,s,a,l,u,d,c,h,f,p,g,m,v,b,y,_,w,C,S,x,k,E,L,M,N,D=i(28165),A=i(52322),T=String.raw,I=T` +var vendor_3aa856362d22bb2cb8f2;(()=>{var e={51119:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(3408);function r(e,t,i){return(t=(0,n.Z)(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}},7560:(e,t,i)=>{"use strict";function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;tn})},98283:(e,t,i)=>{"use strict";function n(e,t){if(null==e)return{};var i,n,r={},o=Object.keys(e);for(n=0;n=0||(r[i]=e[i]);return r}i.d(t,{Z:()=>n})},74938:(e,t,i)=>{"use strict";function n(e,t){return(n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}i.d(t,{Z:()=>n})},3408:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(90929);function r(e){var t=function(e,t){if("object"!==(0,n.Z)(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var r=i.call(e,t||"default");if("object"!==(0,n.Z)(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===(0,n.Z)(t)?t:String(t)}},90929:(e,t,i)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}i.d(t,{Z:()=>n})},25191:(e,t,i)=>{"use strict";i.d(t,{$5:()=>s,AB:()=>a,Eb:()=>C,Ji:()=>w,OP:()=>d,SG:()=>A,SM:()=>_,TB:()=>u,TJ:()=>f,V1:()=>y,VM:()=>D,X:()=>g,aP:()=>o,aj:()=>E,ao:()=>p,bN:()=>l,f2:()=>S,iU:()=>c,ke:()=>L,l1:()=>M,lN:()=>h,nY:()=>x,nw:()=>N,q0:()=>k,rk:()=>v,sA:()=>r,vE:()=>m,wl:()=>b});var n=i(94859),r=(0,n.O)("accordion").parts("root","container","button","panel").extend("icon"),o=(0,n.O)("alert").parts("title","description","container").extend("icon","spinner"),s=(0,n.O)("avatar").parts("label","badge","container").extend("excessLabel","group"),a=(0,n.O)("breadcrumb").parts("link","item","container").extend("separator"),l=(0,n.O)("button").parts(),u=(0,n.O)("checkbox").parts("control","icon","container").extend("label"),d=(0,n.O)("progress").parts("track","filledTrack").extend("label"),c=(0,n.O)("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),h=(0,n.O)("editable").parts("preview","input","textarea"),f=(0,n.O)("form").parts("container","requiredIndicator","helperText"),p=(0,n.O)("formError").parts("text","icon"),g=(0,n.O)("input").parts("addon","field","element"),m=(0,n.O)("list").parts("container","item","icon"),v=(0,n.O)("menu").parts("button","list","item").extend("groupTitle","command","divider"),b=(0,n.O)("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),y=(0,n.O)("numberinput").parts("root","field","stepperGroup","stepper"),_=(0,n.O)("pininput").parts("field"),w=(0,n.O)("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),C=(0,n.O)("progress").parts("label","filledTrack","track"),S=(0,n.O)("radio").parts("container","control","label"),x=(0,n.O)("select").parts("field","icon"),k=(0,n.O)("slider").parts("container","track","thumb","filledTrack","mark"),E=(0,n.O)("stat").parts("container","label","helpText","number","icon"),L=(0,n.O)("switch").parts("container","track","thumb"),M=(0,n.O)("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),N=(0,n.O)("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),D=(0,n.O)("tag").parts("container","label","closeButton"),A=(0,n.O)("card").parts("container","header","body","footer")},94859:(e,t,i)=>{"use strict";i.d(t,{O:()=>function e(t,i={}){let n=!1;function r(e){let i=`chakra-${(["container","root"].includes(null!=e?e:"")?[t]:[t,e]).filter(Boolean).join("__")}`;return{className:i,selector:`.${i}`,toString:()=>e}}return{parts:function(...o){for(let e of(!function(){if(!n){n=!0;return}throw Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}(),o))i[e]=r(e);return e(t,i)},toPart:r,extend:function(...n){for(let e of n)e in i||(i[e]=r(e));return e(t,i)},selectors:function(){return Object.fromEntries(Object.entries(i).map(([e,t])=>[e,t.selector]))},classnames:function(){return Object.fromEntries(Object.entries(i).map(([e,t])=>[e,t.className]))},get keys(){return Object.keys(i)},__type:{}}}})},57879:(e,t,i)=>{"use strict";i.r(t),i.d(t,{accordionAnatomy:()=>n.sA,alertAnatomy:()=>n.aP,anatomy:()=>r.O,avatarAnatomy:()=>n.$5,breadcrumbAnatomy:()=>n.AB,buttonAnatomy:()=>n.bN,cardAnatomy:()=>n.SG,checkboxAnatomy:()=>n.TB,circularProgressAnatomy:()=>n.OP,drawerAnatomy:()=>n.iU,editableAnatomy:()=>n.lN,formAnatomy:()=>n.TJ,formErrorAnatomy:()=>n.ao,inputAnatomy:()=>n.X,listAnatomy:()=>n.vE,menuAnatomy:()=>n.rk,modalAnatomy:()=>n.wl,numberInputAnatomy:()=>n.V1,pinInputAnatomy:()=>n.SM,popoverAnatomy:()=>n.Ji,progressAnatomy:()=>n.Eb,radioAnatomy:()=>n.f2,selectAnatomy:()=>n.nY,sliderAnatomy:()=>n.q0,statAnatomy:()=>n.aj,switchAnatomy:()=>n.ke,tableAnatomy:()=>n.l1,tabsAnatomy:()=>n.nw,tagAnatomy:()=>n.VM});var n=i(25191),r=i(94859)},82323:(e,t,i)=>{"use strict";i.r(t),i.d(t,{AbsoluteCenter:()=>fI,Accordion:()=>a8,AccordionButton:()=>aV,AccordionIcon:()=>aq,AccordionItem:()=>aG,AccordionPanel:()=>a3,AccordionProvider:()=>aU,Alert:()=>s6,AlertDescription:()=>s5,AlertDialog:()=>mD,AlertDialogBody:()=>mq,AlertDialogCloseButton:()=>mG,AlertDialogContent:()=>mA,AlertDialogFooter:()=>mV,AlertDialogHeader:()=>mj,AlertDialogOverlay:()=>mK,AlertIcon:()=>s3,AlertTitle:()=>s8,AspectRatio:()=>fN,Avatar:()=>ll,AvatarBadge:()=>le,AvatarGroup:()=>ld,Badge:()=>fD,Box:()=>fb,Breadcrumb:()=>lm,BreadcrumbItem:()=>lg,BreadcrumbLink:()=>lf,BreadcrumbSeparator:()=>lp,Button:()=>lx,ButtonGroup:()=>lw,ButtonSpinner:()=>lS,CSSPolyfill:()=>O,CSSReset:()=>P,CSSVars:()=>tV,Card:()=>lT,CardBody:()=>lN,CardFooter:()=>lD,CardHeader:()=>lA,Center:()=>fA,ChakraBaseProvider:()=>ab,ChakraProvider:()=>av,Checkbox:()=>ua,CheckboxGroup:()=>lF,CheckboxIcon:()=>lz,Circle:()=>f_,CircularProgress:()=>vj,CircularProgressLabel:()=>vO,CloseButton:()=>s9,Code:()=>fO,Collapse:()=>a6,ColorModeContext:()=>V,ColorModeProvider:()=>t6,ColorModeScript:()=>yp,Container:()=>fP,ControlBox:()=>ul,DarkMode:()=>t3,Divider:()=>fR,Drawer:()=>mP,DrawerBody:()=>mq,DrawerCloseButton:()=>mG,DrawerContent:()=>mz,DrawerFooter:()=>mV,DrawerHeader:()=>mj,DrawerOverlay:()=>mK,EASINGS:()=>aZ,Editable:()=>uP,EditableInput:()=>uS,EditablePreview:()=>ux,EditableTextarea:()=>uk,EnvironmentProvider:()=>t9,Fade:()=>mU,Flex:()=>fF,FocusLock:()=>ca,FormControl:()=>l$,FormErrorIcon:()=>cc,FormErrorMessage:()=>cd,FormHelperText:()=>lK,FormLabel:()=>ch,GenericAvatarIcon:()=>ln,GlobalStyle:()=>t$,Grid:()=>fe,GridItem:()=>fm,HStack:()=>ff,Heading:()=>fv,Hide:()=>fj,Highlight:()=>fx,Icon:()=>sG,IconButton:()=>lE,Image:()=>hV,Img:()=>hj,Input:()=>h2,InputAddon:()=>hZ,InputGroup:()=>hK,InputLeftAddon:()=>hY,InputLeftElement:()=>h0,InputRightAddon:()=>hJ,InputRightElement:()=>h1,Kbd:()=>fk,LightMode:()=>t8,Link:()=>fM,LinkBox:()=>fL,LinkOverlay:()=>fE,List:()=>h8,ListIcon:()=>h7,ListItem:()=>h9,Mark:()=>fS,Menu:()=>g_,MenuButton:()=>gA,MenuCommand:()=>gw,MenuDescendantsProvider:()=>gt,MenuDivider:()=>gT,MenuGroup:()=>gM,MenuIcon:()=>gS,MenuItem:()=>gx,MenuItemOption:()=>gO,MenuList:()=>gL,MenuOptionGroup:()=>gN,MenuProvider:()=>go,Modal:()=>g5,ModalBody:()=>mq,ModalCloseButton:()=>mG,ModalContent:()=>mN,ModalContextProvider:()=>g3,ModalFocusScope:()=>mM,ModalFooter:()=>mV,ModalHeader:()=>mj,ModalOverlay:()=>mK,NumberDecrementStepper:()=>m7,NumberIncrementStepper:()=>ve,NumberInput:()=>m8,NumberInputField:()=>m4,NumberInputStepper:()=>m5,OrderedList:()=>h5,PinInput:()=>vc,PinInputDescendantsProvider:()=>vt,PinInputField:()=>vh,PinInputProvider:()=>vo,Popover:()=>vS,PopoverAnchor:()=>vx,PopoverArrow:()=>vE,PopoverBody:()=>vL,PopoverCloseButton:()=>vM,PopoverContent:()=>vT,PopoverFooter:()=>vI,PopoverHeader:()=>vv,PopoverTrigger:()=>vb,Portal:()=>ah,PortalManager:()=>z,Progress:()=>vK,ProgressLabel:()=>vq,Radio:()=>v1,RadioGroup:()=>vJ,RangeSlider:()=>bO,RangeSliderFilledTrack:()=>bF,RangeSliderMark:()=>bB,RangeSliderProvider:()=>bD,RangeSliderThumb:()=>bP,RangeSliderTrack:()=>bR,RequiredIndicator:()=>cf,ScaleFade:()=>gB,Select:()=>v6,SelectField:()=>v2,Show:()=>f$,SimpleGrid:()=>fn,Skeleton:()=>bi,SkeletonCircle:()=>bn,SkeletonText:()=>br,Slide:()=>mB,SlideFade:()=>gR,Slider:()=>bU,SliderFilledTrack:()=>bq,SliderMark:()=>bG,SliderProvider:()=>bz,SliderThumb:()=>b$,SliderTrack:()=>bK,Spacer:()=>fr,Spinner:()=>sJ,Square:()=>fy,Stack:()=>fc,StackDivider:()=>fp,StackItem:()=>fu,Stat:()=>bJ,StatArrow:()=>b0,StatDownArrow:()=>bQ,StatGroup:()=>b1,StatHelpText:()=>b2,StatLabel:()=>b6,StatNumber:()=>b3,StatUpArrow:()=>bX,Step:()=>ye,StepDescription:()=>yn,StepIcon:()=>ys,StepIndicator:()=>yl,StepIndicatorContent:()=>yu,StepNumber:()=>ya,StepSeparator:()=>yd,StepStatus:()=>yr,StepTitle:()=>b7,Stepper:()=>yt,StylesProvider:()=>tj,Switch:()=>yc,Tab:()=>yZ,TabIndicator:()=>y$,TabList:()=>yK,TabPanel:()=>yq,TabPanels:()=>yG,Table:()=>yv,TableCaption:()=>y_,TableContainer:()=>yw,Tabs:()=>yU,TabsDescendantsProvider:()=>yE,TabsProvider:()=>yA,Tag:()=>yQ,TagCloseButton:()=>y6,TagLabel:()=>yX,TagLeftIcon:()=>y0,TagRightIcon:()=>y1,Tbody:()=>yC,Td:()=>yS,Text:()=>fo,Textarea:()=>y8,Tfoot:()=>yx,Th:()=>yk,Thead:()=>yb,ThemeProvider:()=>tz,Toast:()=>at,ToastOptionProvider:()=>af,ToastProvider:()=>ag,Tooltip:()=>_u,Tr:()=>yy,UnorderedList:()=>h4,VStack:()=>fh,VisuallyHidden:()=>_d,VisuallyHiddenInput:()=>_c,Wrap:()=>fa,WrapItem:()=>fl,addPrefix:()=>eX,assignRef:()=>cM,background:()=>eC,baseTheme:()=>sc,border:()=>eS,calc:()=>eQ,chakra:()=>sE,color:()=>ex,cookieStorageManager:()=>tQ,cookieStorageManagerSSR:()=>tX,createCookieStorageManager:()=>tJ,createIcon:()=>hH,createLocalStorageManager:()=>tG,createMultiStyleConfigHelpers:()=>tx,createRenderToast:()=>ai,createStandaloneToast:()=>_i,createStylesContext:()=>tU,createToastFn:()=>an,css:()=>tw,cssVar:()=>e2,defineCssVars:()=>e6,defineStyle:()=>tC,defineStyleConfig:()=>tS,effect:()=>ek,extendBaseTheme:()=>sB,extendTheme:()=>sF,fadeConfig:()=>mW,filter:()=>eE,flattenTokens:()=>td,flexbox:()=>eL,forwardRef:()=>sD,getCSSVar:()=>tE,getCss:()=>t_,getScriptSrc:()=>yf,getSlideTransition:()=>aJ,getToastPlacement:()=>sN,getToken:()=>sO,grid:()=>eM,interactivity:()=>eN,isChakraTheme:()=>it,isStyleProp:()=>tm,keyframes:()=>D.keyframes,layout:()=>eD,layoutPropNames:()=>tf,list:()=>eA,localStorageManager:()=>tZ,mergeThemeOverride:()=>sH,omitThemingProps:()=>tL,others:()=>eR,popperCSSVars:()=>fX,position:()=>eF,propNames:()=>tp,pseudoPropNames:()=>to,pseudoSelectors:()=>tr,requiredChakraThemeKeys:()=>ie,resolveStyleConfig:()=>tk,ring:()=>eB,scaleFadeConfig:()=>gF,scroll:()=>eU,shouldForwardProp:()=>sw,slideFadeConfig:()=>gP,space:()=>eH,styled:()=>sk,systemProps:()=>th,textDecoration:()=>ez,theme:()=>sd,toCSSObject:()=>sx,toCSSVar:()=>tc,toVarDefinition:()=>e1,toVarReference:()=>e0,tokenToCSSVar:()=>er,transform:()=>eV,transition:()=>ej,typography:()=>eW,useAccordion:()=>aW,useAccordionContext:()=>a$,useAccordionItem:()=>aK,useAccordionItemState:()=>a5,useAccordionStyles:()=>aO,useAlertStyles:()=>s1,useAnimationState:()=>hE,useAvatarStyles:()=>a9,useBoolean:()=>hL,useBreadcrumbStyles:()=>lh,useBreakpoint:()=>fK,useBreakpointValue:()=>fq,useButtonGroup:()=>lb,useCallbackRef:()=>cS,useCardStyles:()=>lM,useChakra:()=>sT,useCheckbox:()=>ue,useCheckboxGroup:()=>lR,useClipboard:()=>hD,useColorMode:()=>j,useColorModePreference:()=>fU,useColorModeValue:()=>W,useComponentStyles__unstable:()=>sK,useConst:()=>hA,useControllableProp:()=>hl,useControllableState:()=>hu,useCounter:()=>uf,useDimensions:()=>hB,useDisclosure:()=>hd,useDrawerContext:()=>mI,useEditable:()=>uO,useEditableContext:()=>u_,useEditableControls:()=>uR,useEditableState:()=>uw,useEditableStyles:()=>ub,useEnvironment:()=>t4,useEventListener:()=>cD,useEventListenerMap:()=>hc,useFocusEffect:()=>hy,useFocusOnHide:()=>h_,useFocusOnPointerDown:()=>hw,useFocusOnShow:()=>hx,useForceUpdate:()=>hk,useFormControl:()=>lq,useFormControlContext:()=>lU,useFormControlProps:()=>lG,useFormControlStyles:()=>lj,useFormErrorStyles:()=>cu,useHighlight:()=>fC,useId:()=>ho,useIds:()=>hs,useImage:()=>lr,useInputGroupStyles:()=>h$,useInterval:()=>cE,useLatestRef:()=>cL,useListStyles:()=>h3,useMediaQuery:()=>fB,useMenu:()=>gu,useMenuButton:()=>gd,useMenuContext:()=>gs,useMenuDescendant:()=>gr,useMenuDescendants:()=>gn,useMenuDescendantsContext:()=>gi,useMenuItem:()=>gp,useMenuList:()=>gh,useMenuOption:()=>gg,useMenuOptionGroup:()=>gm,useMenuPositioner:()=>gf,useMenuState:()=>gv,useMenuStyles:()=>gy,useMergeRefs:()=>cN,useModal:()=>g1,useModalContext:()=>g8,useModalStyles:()=>g6,useMouseDownRef:()=>cA,useMultiStyleConfig:()=>s$,useNumberInput:()=>m0,useNumberInputStyles:()=>m2,useOptionalPart:()=>ha,useOutsideClick:()=>cT,usePanGesture:()=>hr,usePinInput:()=>vu,usePinInputContext:()=>vs,usePinInputField:()=>vd,usePointerEvent:()=>cU,usePopover:()=>v_,usePopoverContext:()=>vp,usePopoverStyles:()=>vm,usePopper:()=>p8,usePortalManager:()=>H,usePrefersReducedMotion:()=>fW,usePrevious:()=>cp,useProgressStyles:()=>vU,useQuery:()=>fV,useRadio:()=>vX,useRadioGroup:()=>vG,useRadioGroupContext:()=>vY,useRangeSlider:()=>bN,useRangeSliderContext:()=>bA,useRangeSliderStyles:()=>bI,useSafeLayoutEffect:()=>cC,useShortcut:()=>cg,useSlider:()=>bH,useSliderContext:()=>bV,useSliderStyles:()=>bW,useStatStyles:()=>bY,useStepContext:()=>b5,useStepperStyles:()=>b9,useSteps:()=>yi,useStyleConfig:()=>sU,useStyles:()=>tW,useTab:()=>yO,useTabIndicator:()=>yH,useTabList:()=>yI,useTabPanel:()=>yB,useTabPanels:()=>yF,useTableStyles:()=>ym,useTabs:()=>yD,useTabsContext:()=>yT,useTabsDescendant:()=>yN,useTabsDescendants:()=>yM,useTabsDescendantsContext:()=>yL,useTabsStyles:()=>yW,useTagStyles:()=>yJ,useTheme:()=>sA,useTimeout:()=>cx,useToast:()=>_e,useToken:()=>sI,useTooltip:()=>_s,useUnmountEffect:()=>c$,useUpdateEffect:()=>hh,useWhyDidYouUpdate:()=>ck,visuallyHiddenStyle:()=>lZ,withDefaultColorScheme:()=>y5,withDefaultProps:()=>y7,withDefaultSize:()=>y4,withDefaultVariant:()=>y9,withDelay:()=>aX});var n,r,o,s,a,l,u,d,c,h,f,p,g,m,v,b,y,_,w,C,S,x,k,E,L,M,N,D=i(28165),A=i(52322),T=String.raw,I=T` :root, :host { --chakra-vh: 100vh; @@ -295,7 +295,7 @@ var vendor_27d9d1c678a3dda7b616;(()=>{var e={51119:(e,t,i)=>{"use strict";i.d(t, `});let{register:f,index:p,descendants:g}=az({disabled:i&&!n}),{isOpen:m,onChange:v}=s(-1===p?null:p);q({condition:(t={isOpen:m,isDisabled:i}).isOpen&&!!t.isDisabled,message:"Cannot open a disabled accordion item"});let b=(0,R.useCallback)(()=>{null==v||v(!m),a(p)},[p,a,m,v]),y=(0,R.useCallback)(e=>{let t={ArrowDown:()=>{let e=g.nextEnabled(p);null==e||e.node.focus()},ArrowUp:()=>{let e=g.prevEnabled(p);null==e||e.node.focus()},Home:()=>{let e=g.firstEnabled();null==e||e.node.focus()},End:()=>{let e=g.lastEnabled();null==e||e.node.focus()}}[e.key];t&&(e.preventDefault(),t(e))},[g,p]),_=(0,R.useCallback)(()=>{a(p)},[a,p]),w=(0,R.useCallback)(function(e={},t=null){return{...e,type:"button",ref:aN(f,l,t),id:c,disabled:!!i,"aria-expanded":!!m,"aria-controls":h,onClick:Q(e.onClick,b),onFocus:Q(e.onFocus,_),onKeyDown:Q(e.onKeyDown,y)}},[c,i,m,b,_,y,h,f]),C=(0,R.useCallback)(function(e={},t=null){return{...e,ref:t,role:"region",id:h,"aria-labelledby":c,hidden:!m}},[c,m,h]);return{isOpen:m,isDisabled:i,isFocusable:n,onOpen:()=>{null==v||v(!0)},onClose:()=>{null==v||v(!1)},getButtonProps:w,getPanelProps:C,htmlProps:o}}function aq(e){let{isOpen:t,isDisabled:i}=aR(),{reduceMotion:n}=a$(),r=$("chakra-accordion__icon",e.className),o={opacity:i?.4:1,transform:t?"rotate(-180deg)":void 0,transition:n?void 0:"transform 0.2s",transformOrigin:"center",...aO().icon};return(0,A.jsx)(sG,{viewBox:"0 0 24 24","aria-hidden":!0,className:r,__css:o,...e,children:(0,A.jsx)("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})})}aq.displayName="AccordionIcon";var aG=sD(function(e,t){let{children:i,className:n}=e,{htmlProps:r,...o}=aK(e),s={...aO().container,overflowAnchor:"none"},a=(0,R.useMemo)(()=>o,[o]);return(0,A.jsx)(aP,{value:a,children:(0,A.jsx)(sE.div,{ref:t,...r,className:$("chakra-accordion__item",n),__css:s,children:"function"==typeof i?i({isExpanded:!!o.isOpen,isDisabled:!!o.isDisabled}):i})})});aG.displayName="AccordionItem";var aZ={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},aY={slideLeft:{position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},slideRight:{position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},slideUp:{position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},slideDown:{position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}}};function aJ(e){var t;switch(null!=(t=null==e?void 0:e.direction)?t:"right"){case"right":default:return aY.slideRight;case"left":return aY.slideLeft;case"bottom":return aY.slideDown;case"top":return aY.slideUp}}var aQ={enter:{duration:.2,ease:aZ.easeOut},exit:{duration:.1,ease:aZ.easeIn}},aX={enter:(e,t)=>({...e,delay:"number"==typeof t?t:null==t?void 0:t.enter}),exit:(e,t)=>({...e,delay:"number"==typeof t?t:null==t?void 0:t.exit})},a0=e=>null!=e&&parseInt(e.toString(),10)>0,a1={exit:{height:{duration:.2,ease:aZ.ease},opacity:{duration:.3,ease:aZ.ease}},enter:{height:{duration:.3,ease:aZ.ease},opacity:{duration:.4,ease:aZ.ease}}},a2={exit:({animateOpacity:e,startingHeight:t,transition:i,transitionEnd:n,delay:r})=>{var o;return{...e&&{opacity:a0(t)?1:0},height:t,transitionEnd:null==n?void 0:n.exit,transition:null!=(o=null==i?void 0:i.exit)?o:aX.exit(a1.exit,r)}},enter:({animateOpacity:e,endingHeight:t,transition:i,transitionEnd:n,delay:r})=>{var o;return{...e&&{opacity:1},height:t,transitionEnd:null==n?void 0:n.enter,transition:null!=(o=null==i?void 0:i.enter)?o:aX.enter(a1.enter,r)}}},a6=(0,R.forwardRef)((e,t)=>{let{in:i,unmountOnExit:n,animateOpacity:r=!0,startingHeight:o=0,endingHeight:s="auto",style:a,className:l,transition:u,transitionEnd:d,...c}=e,[h,f]=(0,R.useState)(!1);(0,R.useEffect)(()=>{let e=setTimeout(()=>{f(!0)});return()=>clearTimeout(e)},[]),q({condition:Number(o)>0&&!!n,message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});let p=parseFloat(o.toString())>0,g={startingHeight:o,endingHeight:s,animateOpacity:r,transition:h?u:{enter:{duration:0}},transitionEnd:{enter:null==d?void 0:d.enter,exit:n?null==d?void 0:d.exit:{...null==d?void 0:d.exit,display:p?"block":"none"}}};return(0,A.jsx)(ar.M,{initial:!1,custom:g,children:(!n||i)&&(0,A.jsx)(sb.E.div,{ref:t,...c,className:$("chakra-collapse",l),style:{overflow:"hidden",display:"block",...a},custom:g,variants:a2,initial:!!n&&"exit",animate:i||n?"enter":"exit",exit:"exit"})})});a6.displayName="Collapse";var a3=sD(function(e,t){let{className:i,motionProps:n,...r}=e,{reduceMotion:o}=a$(),{getPanelProps:s,isOpen:a}=aR(),l=s(r,t),u=$("chakra-accordion__panel",i),d=aO();o||delete l.hidden;let c=(0,A.jsx)(sE.div,{...l,__css:d.panel,className:u});return o?c:(0,A.jsx)(a6,{in:a,...n,children:c})});a3.displayName="AccordionPanel";var a8=sD(function({children:e,reduceMotion:t,...i},n){let r=s$("Accordion",i),{htmlProps:o,descendants:s,...a}=aW(tL(i)),l=(0,R.useMemo)(()=>({...a,reduceMotion:!!t}),[a,t]);return(0,A.jsx)(aF,{value:s,children:(0,A.jsx)(aU,{value:l,children:(0,A.jsx)(aI,{value:r,children:(0,A.jsx)(sE.div,{ref:n,...o,className:$("chakra-accordion",i.className),__css:r.root,children:e})})})})});function a5(){let{isOpen:e,isDisabled:t,onClose:i,onOpen:n}=aR();return{isOpen:e,onClose:i,isDisabled:t,onOpen:n}}a8.displayName="Accordion";var[a4,a9]=F({name:"AvatarStylesContext",hookName:"useAvatarStyles",providerName:""}),a7={"top-start":{top:"0",insetStart:"0",transform:"translate(-25%, -25%)"},"top-end":{top:"0",insetEnd:"0",transform:"translate(25%, -25%)"},"bottom-start":{bottom:"0",insetStart:"0",transform:"translate(-25%, 25%)"},"bottom-end":{bottom:"0",insetEnd:"0",transform:"translate(25%, 25%)"}},le=sD(function(e,t){let{placement:i="bottom-end",className:n,...r}=e,o=a9(),s={position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",...a7[i],...o.badge};return(0,A.jsx)(sE.div,{ref:t,...r,className:$("chakra-avatar__badge",n),__css:s})});function lt(e){var t;let i=e.split(" "),n=null!=(t=i.at(0))?t:"",r=i.length>1?i.at(-1):"";return n&&r?`${n.charAt(0)}${r.charAt(0)}`:n.charAt(0)}function li(e){let{name:t,getInitials:i,...n}=e,r=a9();return(0,A.jsx)(sE.div,{role:"img","aria-label":t,...n,__css:r.label,children:t?null==i?void 0:i(t):null})}le.displayName="AvatarBadge",li.displayName="AvatarName";var ln=e=>(0,A.jsxs)(sE.svg,{viewBox:"0 0 128 128",color:"#fff",width:"100%",height:"100%",className:"chakra-avatar__svg",...e,children:[(0,A.jsx)("path",{fill:"currentColor",d:"M103,102.1388 C93.094,111.92 79.3504,118 64.1638,118 C48.8056,118 34.9294,111.768 25,101.7892 L25,95.2 C25,86.8096 31.981,80 40.6,80 L87.4,80 C96.019,80 103,86.8096 103,95.2 L103,102.1388 Z"}),(0,A.jsx)("path",{fill:"currentColor",d:"M63.9961647,24 C51.2938136,24 41,34.2938136 41,46.9961647 C41,59.7061864 51.2938136,70 63.9961647,70 C76.6985159,70 87,59.7061864 87,46.9961647 C87,34.2938136 76.6985159,24 63.9961647,24"})]});function lr(e){let{loading:t,src:i,srcSet:n,onLoad:r,onError:o,crossOrigin:s,sizes:a,ignoreFallback:l}=e,[u,d]=(0,R.useState)("pending");(0,R.useEffect)(()=>{d(i?"loading":"pending")},[i]);let c=(0,R.useRef)(),h=(0,R.useCallback)(()=>{if(!i)return;f();let e=new Image;e.src=i,s&&(e.crossOrigin=s),n&&(e.srcset=n),a&&(e.sizes=a),t&&(e.loading=t),e.onload=e=>{f(),d("loaded"),null==r||r(e)},e.onerror=e=>{f(),d("failed"),null==o||o(e)},c.current=e},[i,s,n,a,r,o,t]),f=()=>{c.current&&(c.current.onload=null,c.current.onerror=null,c.current=null)};return t0(()=>{if(!l)return"loading"===u&&h(),()=>{f()}},[u,h,l]),l?"loaded":u}var lo=(e,t)=>"loaded"!==e&&"beforeLoadOrError"===t||"failed"===e&&"onError"===t;function ls(e){let{src:t,srcSet:i,onError:n,onLoad:r,getInitials:o,name:s,borderRadius:a,loading:l,iconLabel:u,icon:d=(0,A.jsx)(ln,{}),ignoreFallback:c,referrerPolicy:h,crossOrigin:f}=e,p=lr({src:t,onError:n,crossOrigin:f,ignoreFallback:c});return t&&"loaded"===p?(0,A.jsx)(sE.img,{src:t,srcSet:i,alt:s,onLoad:r,referrerPolicy:h,crossOrigin:null!=f?f:void 0,className:"chakra-avatar__img",loading:l,__css:{width:"100%",height:"100%",objectFit:"cover",borderRadius:a}}):s?(0,A.jsx)(li,{className:"chakra-avatar__initials",getInitials:o,name:s}):(0,R.cloneElement)(d,{role:"img","aria-label":u})}ls.displayName="AvatarImage";var la={display:"inline-flex",alignItems:"center",justifyContent:"center",textAlign:"center",textTransform:"uppercase",fontWeight:"medium",position:"relative",flexShrink:0},ll=sD((e,t)=>{let i=s$("Avatar",e),[n,r]=(0,R.useState)(!1),{src:o,srcSet:s,name:a,showBorder:l,borderRadius:u="full",onError:d,onLoad:c,getInitials:h=lt,icon:f=(0,A.jsx)(ln,{}),iconLabel:p=" avatar",loading:g,children:m,borderColor:v,ignoreFallback:b,crossOrigin:y,..._}=tL(e),w={borderRadius:u,borderWidth:l?"2px":void 0,...la,...i.container};return v&&(w.borderColor=v),(0,A.jsx)(sE.span,{ref:t,..._,className:$("chakra-avatar",e.className),"data-loaded":Y(n),__css:w,children:(0,A.jsxs)(a4,{value:i,children:[(0,A.jsx)(ls,{src:o,srcSet:s,loading:g,onLoad:Q(c,()=>{r(!0)}),onError:d,getInitials:h,name:a,borderRadius:u,icon:f,iconLabel:p,ignoreFallback:b,crossOrigin:y}),m]})})});function lu(e){return R.Children.toArray(e).filter(e=>(0,R.isValidElement)(e))}ll.displayName="Avatar";var ld=sD(function(e,t){let i=s$("Avatar",e),{children:n,borderColor:r,max:o,spacing:s="-0.75rem",borderRadius:a="full",...l}=tL(e),u=lu(n),d=null!=o?u.slice(0,o):u,c=null!=o?u.length-o:0,h=d.reverse().map((t,i)=>{var n;let o={marginEnd:0===i?0:s,size:e.size,borderColor:null!=(n=t.props.borderColor)?n:r,showBorder:!0};return(0,R.cloneElement)(t,function(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}(o))}),f={display:"flex",alignItems:"center",justifyContent:"flex-end",flexDirection:"row-reverse",...i.group},p={borderRadius:a,marginStart:s,...la,...i.excessLabel};return(0,A.jsxs)(sE.div,{ref:t,role:"group",__css:f,...l,className:$("chakra-avatar__group",e.className),children:[c>0&&(0,A.jsx)(sE.span,{className:"chakra-avatar__excess",__css:p,children:`+${c}`}),h]})});ld.displayName="AvatarGroup";var[lc,lh]=F({name:"BreadcrumbStylesContext",errorMessage:"useBreadcrumbStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),lf=sD(function(e,t){let{isCurrentPage:i,as:n,className:r,href:o,...s}=e,a=lh(),l={ref:t,as:n,className:$("chakra-breadcrumb__link",r),...s};return i?(0,A.jsx)(sE.span,{"aria-current":"page",__css:a.link,...l}):(0,A.jsx)(sE.a,{__css:a.link,href:o,...l})});lf.displayName="BreadcrumbLink";var lp=sD(function(e,t){let{spacing:i,...n}=e,r={mx:i,...lh().separator};return(0,A.jsx)(sE.span,{ref:t,role:"presentation",...n,__css:r})});lp.displayName="BreadcrumbSeparator";var lg=sD(function(e,t){let{isCurrentPage:i,separator:n,isLastChild:r,spacing:o,children:s,className:a,...l}=e,u=lu(s).map(e=>e.type===lf?(0,R.cloneElement)(e,{isCurrentPage:i}):e.type===lp?(0,R.cloneElement)(e,{spacing:o,children:e.props.children||n}):e),d={display:"inline-flex",alignItems:"center",...lh().item},c=$("chakra-breadcrumb__list-item",a);return(0,A.jsxs)(sE.li,{ref:t,className:c,...l,__css:d,children:[u,!r&&(0,A.jsx)(lp,{spacing:o,children:n})]})});lg.displayName="BreadcrumbItem";var lm=sD(function(e,t){let i=s$("Breadcrumb",e),{children:n,spacing:r="0.5rem",separator:o="/",className:s,listProps:a,...l}=tL(e),u=lu(n),d=u.length,c=u.map((e,t)=>(0,R.cloneElement)(e,{separator:o,spacing:r,isLastChild:d===t+1})),h=$("chakra-breadcrumb",s);return(0,A.jsx)(sE.nav,{ref:t,"aria-label":"breadcrumb",className:h,__css:i.container,...l,children:(0,A.jsx)(lc,{value:i,children:(0,A.jsx)(sE.ol,{className:"chakra-breadcrumb__list",...a,__css:{display:"flex",alignItems:"center",...i.list},children:c})})})});lm.displayName="Breadcrumb";var[lv,lb]=F({strict:!1,name:"ButtonGroupContext"}),ly={horizontal:{"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}},vertical:{"> *:first-of-type:not(:last-of-type)":{borderBottomRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderTopRadius:0}}},l_={horizontal:e=>({"& > *:not(style) ~ *:not(style)":{marginStart:e}}),vertical:e=>({"& > *:not(style) ~ *:not(style)":{marginTop:e}})},lw=sD(function(e,t){let{size:i,colorScheme:n,variant:r,className:o,spacing:s="0.5rem",isAttached:a,isDisabled:l,orientation:u="horizontal",...d}=e,c=$("chakra-button__group",o),h=(0,R.useMemo)(()=>({size:i,colorScheme:n,variant:r,isDisabled:l}),[i,n,r,l]),f={display:"inline-flex",...a?ly[u]:l_[u](s)};return(0,A.jsx)(lv,{value:h,children:(0,A.jsx)(sE.div,{ref:t,role:"group",__css:f,className:c,"data-attached":a?"":void 0,"data-orientation":u,flexDir:"vertical"===u?"column":void 0,...d})})});function lC(e){let{children:t,className:i,...n}=e,r=(0,R.isValidElement)(t)?(0,R.cloneElement)(t,{"aria-hidden":!0,focusable:!1}):t,o=$("chakra-button__icon",i);return(0,A.jsx)(sE.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...n,className:o,children:r})}function lS(e){let{label:t,placement:i,spacing:n="0.5rem",children:r=(0,A.jsx)(sJ,{color:"currentColor",width:"1em",height:"1em"}),className:o,__css:s,...a}=e,l=$("chakra-button__spinner",o),u="start"===i?"marginEnd":"marginStart",d=(0,R.useMemo)(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[u]:t?n:0,fontSize:"1em",lineHeight:"normal",...s}),[s,t,u,n]);return(0,A.jsx)(sE.div,{className:l,...a,__css:d,children:r})}lw.displayName="ButtonGroup",lC.displayName="ButtonIcon",lS.displayName="ButtonSpinner";var lx=sD((e,t)=>{let i=lb(),n=sU("Button",{...i,...e}),{isDisabled:r=null==i?void 0:i.isDisabled,isLoading:o,isActive:s,children:a,leftIcon:l,rightIcon:u,loadingText:d,iconSpacing:c="0.5rem",type:h,spinner:f,spinnerPlacement:p="start",className:g,as:m,...v}=tL(e),b=(0,R.useMemo)(()=>{let e={...null==n?void 0:n._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...n,...!!i&&{_focus:e}}},[n,i]),{ref:y,type:_}=function(e){let[t,i]=(0,R.useState)(!e);return{ref:(0,R.useCallback)(e=>{e&&i("BUTTON"===e.tagName)},[]),type:t?"button":void 0}}(m),w={rightIcon:u,leftIcon:l,iconSpacing:c,children:a};return(0,A.jsxs)(sE.button,{ref:function(...e){return(0,R.useMemo)(()=>aN(...e),e)}(t,y),as:m,type:null!=h?h:_,"data-active":Y(s),"data-loading":Y(o),__css:b,className:$("chakra-button",g),...v,disabled:r||o,children:[o&&"start"===p&&(0,A.jsx)(lS,{className:"chakra-button__spinner--start",label:d,placement:"start",spacing:c,children:f}),o?d||(0,A.jsx)(sE.span,{opacity:0,children:(0,A.jsx)(lk,{...w})}):(0,A.jsx)(lk,{...w}),o&&"end"===p&&(0,A.jsx)(lS,{className:"chakra-button__spinner--end",label:d,placement:"end",spacing:c,children:f})]})});function lk(e){let{leftIcon:t,rightIcon:i,children:n,iconSpacing:r}=e;return(0,A.jsxs)(A.Fragment,{children:[t&&(0,A.jsx)(lC,{marginEnd:r,children:t}),n,i&&(0,A.jsx)(lC,{marginStart:r,children:i})]})}lx.displayName="Button";var lE=sD((e,t)=>{let{icon:i,children:n,isRound:r,"aria-label":o,...s}=e,a=i||n,l=(0,R.isValidElement)(a)?(0,R.cloneElement)(a,{"aria-hidden":!0,focusable:!1}):null;return(0,A.jsx)(lx,{padding:"0",borderRadius:r?"full":void 0,ref:t,"aria-label":o,...s,children:l})});lE.displayName="IconButton";var[lL,lM]=tU("Card"),lN=sD(function(e,t){let{className:i,...n}=e,r=lM();return(0,A.jsx)(sE.div,{ref:t,className:$("chakra-card__body",i),__css:r.body,...n})}),lD=sD(function(e,t){let{className:i,justify:n,...r}=e,o=lM();return(0,A.jsx)(sE.div,{ref:t,className:$("chakra-card__footer",i),__css:{display:"flex",justifyContent:n,...o.footer},...r})}),lA=sD(function(e,t){let{className:i,...n}=e,r=lM();return(0,A.jsx)(sE.div,{ref:t,className:$("chakra-card__header",i),__css:r.header,...n})}),lT=sD(function(e,t){let{className:i,children:n,direction:r="column",justify:o,align:s,...a}=tL(e),l=s$("Card",e);return(0,A.jsx)(sE.div,{ref:t,className:$("chakra-card",i),__css:{display:"flex",flexDirection:r,justifyContent:o,alignItems:s,position:"relative",minWidth:0,wordWrap:"break-word",...l.container},...a,children:(0,A.jsx)(lL,{value:l,children:n})})}),[lI,lO]=F({name:"CheckboxGroupContext",strict:!1});function lP(e){return e&&K(e)&&K(e.target)}function lR(e={}){let{defaultValue:t,value:i,onChange:n,isDisabled:r,isNative:o}=e,[s,a]=aj({value:i,defaultValue:t||[],onChange:sg(n)}),l=(0,R.useCallback)(e=>{if(!s)return;let t=lP(e)?e.target.checked:!s.includes(e),i=lP(e)?e.target.value:e;a(t?[...s,i]:s.filter(e=>String(e)!==String(i)))},[a,s]),u=(0,R.useCallback)((e={})=>{let t=o?"checked":"isChecked";return{...e,[t]:s.some(t=>String(e.value)===String(t)),onChange:l}},[l,o,s]);return{value:s,isDisabled:r,onChange:l,setValue:a,getCheckboxProps:u}}function lF(e){let{colorScheme:t,size:i,variant:n,children:r,isDisabled:o}=e,{value:s,onChange:a}=lR(e),l=(0,R.useMemo)(()=>({size:i,onChange:a,colorScheme:t,value:s,variant:n,isDisabled:o}),[i,a,t,s,n,o]);return(0,A.jsx)(lI,{value:l,children:r})}function lB(e){return(0,A.jsx)(sE.svg,{width:"1.2em",viewBox:"0 0 12 10",style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...e,children:(0,A.jsx)("polyline",{points:"1.5 6 4.5 9 10.5 1"})})}function lH(e){return(0,A.jsx)(sE.svg,{width:"1.2em",viewBox:"0 0 24 24",style:{stroke:"currentColor",strokeWidth:4},...e,children:(0,A.jsx)("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function lz(e){let{isIndeterminate:t,isChecked:i,...n}=e,r=t?lH:lB;return i||t?(0,A.jsx)(sE.div,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:(0,A.jsx)(r,{...n})}):null}lF.displayName="CheckboxGroup";var[lV,lj]=F({name:"FormControlStylesContext",errorMessage:"useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),[lW,lU]=F({strict:!1,name:"FormControlContext"}),l$=sD(function(e,t){let i=s$("Form",e),{getRootProps:n,htmlProps:r,...o}=function(e){let{id:t,isRequired:i,isInvalid:n,isDisabled:r,isReadOnly:o,...s}=e,a=(0,R.useId)(),l=t||`field-${a}`,u=`${l}-label`,d=`${l}-feedback`,c=`${l}-helptext`,[h,f]=(0,R.useState)(!1),[p,g]=(0,R.useState)(!1),[m,v]=(0,R.useState)(!1),b=(0,R.useCallback)((e={},t=null)=>({id:c,...e,ref:aN(t,e=>{e&&g(!0)})}),[c]),y=(0,R.useCallback)((e={},t=null)=>({...e,ref:t,"data-focus":Y(m),"data-disabled":Y(r),"data-invalid":Y(n),"data-readonly":Y(o),id:void 0!==e.id?e.id:u,htmlFor:void 0!==e.htmlFor?e.htmlFor:l}),[l,r,m,n,o,u]),_=(0,R.useCallback)((e={},t=null)=>({id:d,...e,ref:aN(t,e=>{e&&f(!0)}),"aria-live":"polite"}),[d]),w=(0,R.useCallback)((e={},t=null)=>({...e,...s,ref:t,role:"group"}),[s]);return{isRequired:!!i,isInvalid:!!n,isReadOnly:!!o,isDisabled:!!r,isFocused:!!m,onFocus:()=>v(!0),onBlur:()=>v(!1),hasFeedbackText:h,setHasFeedbackText:f,hasHelpText:p,setHasHelpText:g,id:l,labelId:u,feedbackId:d,helpTextId:c,htmlProps:s,getHelpTextProps:b,getErrorMessageProps:_,getRootProps:w,getLabelProps:y,getRequiredIndicatorProps:(0,R.useCallback)((e={},t=null)=>({...e,ref:t,role:"presentation","aria-hidden":!0,children:e.children||"*"}),[])}}(tL(e)),s=$("chakra-form-control",e.className);return(0,A.jsx)(lW,{value:o,children:(0,A.jsx)(lV,{value:i,children:(0,A.jsx)(sE.div,{...n({},t),className:s,__css:i.container})})})});l$.displayName="FormControl";var lK=sD(function(e,t){let i=lU(),n=lj(),r=$("chakra-form__helper-text",e.className);return(0,A.jsx)(sE.div,{...null==i?void 0:i.getHelpTextProps(e,t),__css:n.helperText,className:r})});function lq(e){let{isDisabled:t,isInvalid:i,isReadOnly:n,isRequired:r,...o}=lG(e);return{...o,disabled:t,readOnly:n,required:r,"aria-invalid":J(i),"aria-required":J(r),"aria-readonly":J(n)}}function lG(e){var t,i,n;let r=lU(),{id:o,disabled:s,readOnly:a,required:l,isRequired:u,isInvalid:d,isReadOnly:c,isDisabled:h,onFocus:f,onBlur:p,...g}=e,m=e["aria-describedby"]?[e["aria-describedby"]]:[];return(null==r?void 0:r.hasFeedbackText)&&(null==r?void 0:r.isInvalid)&&m.push(r.feedbackId),(null==r?void 0:r.hasHelpText)&&m.push(r.helpTextId),{...g,"aria-describedby":m.join(" ")||void 0,id:null!=o?o:null==r?void 0:r.id,isDisabled:null!=(t=null!=s?s:h)?t:null==r?void 0:r.isDisabled,isReadOnly:null!=(i=null!=a?a:c)?i:null==r?void 0:r.isReadOnly,isRequired:null!=(n=null!=l?l:u)?n:null==r?void 0:r.isRequired,isInvalid:null!=d?d:null==r?void 0:r.isInvalid,onFocus:Q(null==r?void 0:r.onFocus,f),onBlur:Q(null==r?void 0:r.onBlur,p)}}lK.displayName="FormHelperText";var lZ={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},lY=!1,lJ=null,lQ=!1,lX=!1,l0=new Set;function l1(e,t){l0.forEach(i=>i(e,t))}var l2="undefined"!=typeof window&&null!=window.navigator&&/^Mac/.test(window.navigator.platform);function l6(e){lQ=!0,e.metaKey||!l2&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(lJ="keyboard",l1("keyboard",e))}function l3(e){if(lJ="pointer","mousedown"===e.type||"pointerdown"===e.type){lQ=!0;let t=e.composedPath?e.composedPath()[0]:e.target,i=!1;try{i=t.matches(":focus-visible")}catch{}i||l1("pointer",e)}}function l8(e){(0===e.mozInputSource&&e.isTrusted||0===e.detail&&!e.pointerType)&&(lQ=!0,lJ="virtual")}function l5(e){e.target!==window&&e.target!==document&&(lQ||lX||(lJ="virtual",l1("virtual",e)),lQ=!1,lX=!1)}function l4(){lQ=!1,lX=!0}function l9(){return"pointer"!==lJ}function l7(e){(function(){if("undefined"==typeof window||lY)return;let{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...t){lQ=!0,e.apply(this,t)},document.addEventListener("keydown",l6,!0),document.addEventListener("keyup",l6,!0),document.addEventListener("click",l8,!0),window.addEventListener("focus",l5,!0),window.addEventListener("blur",l4,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",l3,!0),document.addEventListener("pointermove",l3,!0),document.addEventListener("pointerup",l3,!0)):(document.addEventListener("mousedown",l3,!0),document.addEventListener("mousemove",l3,!0),document.addEventListener("mouseup",l3,!0)),lY=!0})(),e(l9());let t=()=>e(l9());return l0.add(t),()=>{l0.delete(t)}}function ue(e={}){let{isDisabled:t,isReadOnly:i,isRequired:n,isInvalid:r,id:o,onBlur:s,onFocus:a,"aria-describedby":l}=lG(e),{defaultChecked:u,isChecked:d,isFocusable:c,onChange:h,isIndeterminate:f,name:p,value:g,tabIndex:m,"aria-label":v,"aria-labelledby":b,"aria-invalid":y,..._}=e,w=function(e,t=[]){let i=Object.assign({},e);for(let e of t)e in i&&delete i[e];return i}(_,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),C=sg(h),S=sg(s),x=sg(a),[k,E]=(0,R.useState)(!1),[L,M]=(0,R.useState)(!1),[N,D]=(0,R.useState)(!1),[A,T]=(0,R.useState)(!1);(0,R.useEffect)(()=>l7(E),[]);let I=(0,R.useRef)(null),[O,P]=(0,R.useState)(!0),[F,B]=(0,R.useState)(!!u),H=void 0!==d,z=H?d:F,V=(0,R.useCallback)(e=>{if(i||t){e.preventDefault();return}H||(z?B(e.target.checked):B(!!f||e.target.checked)),null==C||C(e)},[i,t,z,H,f,C]);t0(()=>{I.current&&(I.current.indeterminate=!!f)},[f]),sm(()=>{t&&M(!1)},[t,M]),t0(()=>{let e=I.current;(null==e?void 0:e.form)&&(e.form.onreset=()=>{B(!!u)})},[]);let j=t&&!c,W=(0,R.useCallback)(e=>{" "===e.key&&T(!0)},[T]),U=(0,R.useCallback)(e=>{" "===e.key&&T(!1)},[T]);t0(()=>{I.current&&I.current.checked!==z&&B(I.current.checked)},[I.current]);let $=(0,R.useCallback)((e={},n=null)=>({...e,ref:n,"data-active":Y(A),"data-hover":Y(N),"data-checked":Y(z),"data-focus":Y(L),"data-focus-visible":Y(L&&k),"data-indeterminate":Y(f),"data-disabled":Y(t),"data-invalid":Y(r),"data-readonly":Y(i),"aria-hidden":!0,onMouseDown:Q(e.onMouseDown,e=>{L&&e.preventDefault(),T(!0)}),onMouseUp:Q(e.onMouseUp,()=>T(!1)),onMouseEnter:Q(e.onMouseEnter,()=>D(!0)),onMouseLeave:Q(e.onMouseLeave,()=>D(!1))}),[A,z,t,L,k,N,f,r,i]),K=(0,R.useCallback)((e={},i=null)=>({...w,...e,ref:aN(i,e=>{e&&P("LABEL"===e.tagName)}),onClick:Q(e.onClick,()=>{var e;O||(null==(e=I.current)||e.click(),requestAnimationFrame(()=>{var e;null==(e=I.current)||e.focus({preventScroll:!0})}))}),"data-disabled":Y(t),"data-checked":Y(z),"data-invalid":Y(r)}),[w,t,z,r,O]),q=(0,R.useCallback)((e={},s=null)=>({...e,ref:aN(I,s),type:"checkbox",name:p,value:g,id:o,tabIndex:m,onChange:Q(e.onChange,V),onBlur:Q(e.onBlur,S,()=>M(!1)),onFocus:Q(e.onFocus,x,()=>M(!0)),onKeyDown:Q(e.onKeyDown,W),onKeyUp:Q(e.onKeyUp,U),required:n,checked:z,disabled:j,readOnly:i,"aria-label":v,"aria-labelledby":b,"aria-invalid":y?!!y:r,"aria-describedby":l,"aria-disabled":t,style:lZ}),[p,g,o,V,S,x,W,U,n,z,j,i,v,b,y,r,l,t,m]),G=(0,R.useCallback)((e={},i=null)=>({...e,ref:i,onMouseDown:Q(e.onMouseDown,ut),"data-disabled":Y(t),"data-checked":Y(z),"data-invalid":Y(r)}),[z,t,r]);return{state:{isInvalid:r,isFocused:L,isChecked:z,isActive:A,isHovered:N,isIndeterminate:f,isDisabled:t,isReadOnly:i,isRequired:n},getRootProps:K,getCheckboxProps:$,getInputProps:q,getLabelProps:G,htmlProps:w}}function ut(e){e.preventDefault(),e.stopPropagation()}var ui={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},un={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},ur=(0,D.keyframes)({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),uo=(0,D.keyframes)({from:{opacity:0},to:{opacity:1}}),us=(0,D.keyframes)({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),ua=sD(function(e,t){let i=lO(),n=s$("Checkbox",{...i,...e}),r=tL(e),{spacing:o="0.5rem",className:s,children:a,iconColor:l,iconSize:u,icon:d=(0,A.jsx)(lz,{}),isChecked:c,isDisabled:h=null==i?void 0:i.isDisabled,onChange:f,inputProps:p,...g}=r,m=c;(null==i?void 0:i.value)&&r.value&&(m=i.value.includes(r.value));let v=f;(null==i?void 0:i.onChange)&&r.value&&(v=X(i.onChange,f));let{state:b,getInputProps:y,getCheckboxProps:_,getLabelProps:w,getRootProps:C}=ue({...g,isDisabled:h,isChecked:m,onChange:v}),S=function(e){let[t,i]=(0,R.useState)(e),[n,r]=(0,R.useState)(!1);return e!==t&&(r(!0),i(e)),n}(b.isChecked),x=(0,R.useMemo)(()=>({animation:S?b.isIndeterminate?`${uo} 20ms linear, ${us} 200ms linear`:`${ur} 200ms linear`:void 0,fontSize:u,color:l,...n.icon}),[l,u,S,b.isIndeterminate,n.icon]),k=(0,R.cloneElement)(d,{__css:x,isIndeterminate:b.isIndeterminate,isChecked:b.isChecked});return(0,A.jsxs)(sE.label,{__css:{...un,...n.container},className:$("chakra-checkbox",s),...C(),children:[(0,A.jsx)("input",{className:"chakra-checkbox__input",...y(p,t)}),(0,A.jsx)(sE.span,{__css:{...ui,...n.control},className:"chakra-checkbox__control",..._(),children:k}),a&&(0,A.jsx)(sE.span,{className:"chakra-checkbox__label",...w(),__css:{marginStart:o,...n.label},children:a})]})});ua.displayName="Checkbox";var ul=e=>{let{type:t="checkbox",_hover:i,_invalid:n,_disabled:r,_focus:o,_checked:s,_child:a={opacity:0},_checkedAndChild:l={opacity:1},_checkedAndDisabled:u,_checkedAndFocus:d,_checkedAndHover:c,children:h,...f}=e,p=`input[type=${t}]:checked:disabled + &`,g=`input[type=${t}]:checked:hover:not(:disabled) + &`,m=`input[type=${t}]:checked:focus + &`,v=`input[type=${t}]:disabled + &`,b=`input[type=${t}]:focus + &`,y=`input[type=${t}]:hover:not(:disabled):not(:checked) + &`,_=`input[type=${t}]:checked + &, input[type=${t}][aria-checked=mixed] + &`,w=`input[type=${t}][aria-invalid=true] + &`,C="& > *";return(0,A.jsx)(sE.div,{...f,"aria-hidden":!0,__css:{display:"inline-flex",alignItems:"center",justifyContent:"center",transitionProperty:"common",transitionDuration:"fast",flexShrink:0,[b]:o,[y]:i,[v]:r,[w]:n,[p]:u,[m]:d,[g]:c,[C]:a,[_]:{...s,[C]:l}},children:h})};function uu(e,t){let i;let n="number"!=typeof(i=parseFloat(e))||Number.isNaN(i)?0:i,r=10**(null!=t?t:10);return n=Math.round(n*r)/r,t?n.toFixed(t):n.toString()}function ud(e){if(!Number.isFinite(e))return 0;let t=1,i=0;for(;Math.round(e*t)/t!==e;)t*=10,i+=1;return i}function uc(e,t,i){return uu(Math.round((e-t)/i)*i+t,ud(i))}function uh(e,t,i){return null==e?e:(i{var e;return null==n?"":null!=(e=um(n,o,i))?e:""}),h=void 0!==r,f=h?r:d,p=ug(up(f),o),g=null!=i?i:p,m=(0,R.useCallback)(e=>{e!==f&&(h||c(e.toString()),null==u||u(e.toString(),up(e)))},[u,h,f]),v=(0,R.useCallback)(e=>{let t=e;return l&&(t=uh(t,s,a)),uu(t,g)},[g,l,a,s]),b=(0,R.useCallback)((e=o)=>{m(v(""===f?up(e):up(f)+e))},[v,o,m,f]),y=(0,R.useCallback)((e=o)=>{m(v(""===f?up(-e):up(f)-e))},[v,o,m,f]),_=(0,R.useCallback)(()=>{var e;m(null==n?"":null!=(e=um(n,o,i))?e:s)},[n,i,o,m,s]),w=(0,R.useCallback)(e=>{var t;m(null!=(t=um(e,o,g))?t:s)},[g,o,m,s]),C=up(f);return{isOutOfRange:C>a||C\" "}),[uy,u_]=F({name:"EditableContext",errorMessage:"useEditableContext: context is undefined. Seems you forgot to wrap the editable components in ``"});function uw(){let{isEditing:e,onSubmit:t,onCancel:i,onEdit:n,isDisabled:r}=u_();return{isEditing:e,onSubmit:t,onCancel:i,onEdit:n,isDisabled:r}}var uC={fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent"},uS=sD(function(e,t){let{getInputProps:i}=u_(),n=ub(),r=i(e,t),o=$("chakra-editable__input",e.className);return(0,A.jsx)(sE.input,{...r,__css:{outline:0,...uC,...n.input},className:o})});uS.displayName="EditableInput";var ux=sD(function(e,t){let{getPreviewProps:i}=u_(),n=ub(),r=i(e,t),o=$("chakra-editable__preview",e.className);return(0,A.jsx)(sE.span,{...r,__css:{cursor:"text",display:"inline-block",...uC,...n.preview},className:o})});ux.displayName="EditablePreview";var uk=sD(function(e,t){let{getTextareaProps:i}=u_(),n=ub(),r=i(e,t),o=$("chakra-editable__textarea",e.className);return(0,A.jsx)(sE.textarea,{...r,__css:{outline:0,...uC,...n.textarea},className:o})});function uE(e,t,i,n){let r=sg(i);return(0,R.useEffect)(()=>{let o="function"==typeof e?e():null!=e?e:document;if(i&&o)return o.addEventListener(t,r,n),()=>{o.removeEventListener(t,r,n)}},[t,e,n,r,i]),()=>{let i="function"==typeof e?e():null!=e?e:document;null==i||i.removeEventListener(t,r,n)}}uk.displayName="EditableTextarea";var uL=()=>"undefined"!=typeof window,uM=e=>uL()&&e.test(navigator.vendor),uN=e=>uL()&&e.test(function(){var e;let t=navigator.userAgentData;return null!=(e=null==t?void 0:t.platform)?e:navigator.platform}()),uD=()=>uN(/mac|iphone|ipad|ipod/i),uA=()=>uD()&&uM(/apple/i);function uT(e){let{ref:t,elements:i,enabled:n}=e,r=()=>{var e,i;return null!=(i=null==(e=t.current)?void 0:e.ownerDocument)?i:document};uE(r,"pointerdown",e=>{if(!uA()||!n)return;let o=e.target,s=(null!=i?i:[t]).some(e=>{let t="current"in e?e.current:e;return(null==t?void 0:t.contains(o))||t===o});r().activeElement!==o&&s&&(e.preventDefault(),o.focus())})}function uI(e,t){return!!e&&(e===t||e.contains(t))}function uO(e={}){let{onChange:t,onCancel:i,onSubmit:n,onBlur:r,value:o,isDisabled:s,defaultValue:a,startWithEditView:l,isPreviewFocusable:u=!0,submitOnBlur:d=!0,selectAllOnFocus:c=!0,placeholder:h,onEdit:f,finalFocusRef:p,...g}=e,m=sg(f),v=!!(l&&!s),[b,y]=(0,R.useState)(v),[_,w]=aj({defaultValue:a||"",value:o,onChange:t}),[C,S]=(0,R.useState)(_),x=(0,R.useRef)(null),k=(0,R.useRef)(null),E=(0,R.useRef)(null),L=(0,R.useRef)(null),M=(0,R.useRef)(null);uT({ref:x,enabled:b,elements:[L,M]});let N=!b&&!s;t0(()=>{var e,t;b&&(null==(e=x.current)||e.focus(),c&&(null==(t=x.current)||t.select()))},[]),sm(()=>{var e,t,i,n;if(!b){p?null==(e=p.current)||e.focus():null==(t=E.current)||t.focus();return}null==(i=x.current)||i.focus(),c&&(null==(n=x.current)||n.select()),null==m||m()},[b,m,c]);let D=(0,R.useCallback)(()=>{N&&y(!0)},[N]),A=(0,R.useCallback)(()=>{S(_)},[_]),T=(0,R.useCallback)(()=>{y(!1),w(C),null==i||i(C),null==r||r(C)},[i,r,w,C]),I=(0,R.useCallback)(()=>{y(!1),S(_),null==n||n(_),null==r||r(C)},[_,n,r,C]);(0,R.useEffect)(()=>{if(b)return;let e=x.current;(null==e?void 0:e.ownerDocument.activeElement)===e&&(null==e||e.blur())},[b]);let O=(0,R.useCallback)(e=>{w(e.currentTarget.value)},[w]),P=(0,R.useCallback)(e=>{let t={Escape:T,Enter:e=>{e.shiftKey||e.metaKey||I()}}[e.key];t&&(e.preventDefault(),t(e))},[T,I]),F=(0,R.useCallback)(e=>{let t={Escape:T}[e.key];t&&(e.preventDefault(),t(e))},[T]),B=0===_.length,H=(0,R.useCallback)(e=>{var t;if(!b)return;let i=e.currentTarget.ownerDocument,n=null!=(t=e.relatedTarget)?t:i.activeElement,r=uI(L.current,n),o=uI(M.current,n);r||o||(d?I():T())},[d,I,T,b]),z=(0,R.useCallback)((e={},t=null)=>{let i=N&&u?0:void 0;return{...e,ref:aN(t,k),children:B?h:_,hidden:b,"aria-disabled":J(s),tabIndex:i,onFocus:Q(e.onFocus,D,A)}},[s,b,N,u,B,D,A,h,_]),V=(0,R.useCallback)((e={},t=null)=>({...e,hidden:!b,placeholder:h,ref:aN(t,x),disabled:s,"aria-disabled":J(s),value:_,onBlur:Q(e.onBlur,H),onChange:Q(e.onChange,O),onKeyDown:Q(e.onKeyDown,P),onFocus:Q(e.onFocus,A)}),[s,b,H,O,P,A,h,_]),j=(0,R.useCallback)((e={},t=null)=>({...e,hidden:!b,placeholder:h,ref:aN(t,x),disabled:s,"aria-disabled":J(s),value:_,onBlur:Q(e.onBlur,H),onChange:Q(e.onChange,O),onKeyDown:Q(e.onKeyDown,F),onFocus:Q(e.onFocus,A)}),[s,b,H,O,F,A,h,_]),W=(0,R.useCallback)((e={},t=null)=>({"aria-label":"Edit",...e,type:"button",onClick:Q(e.onClick,D),ref:aN(t,E),disabled:s}),[D,s]),U=(0,R.useCallback)((e={},t=null)=>({...e,"aria-label":"Submit",ref:aN(M,t),type:"button",onClick:Q(e.onClick,I),disabled:s}),[I,s]),$=(0,R.useCallback)((e={},t=null)=>({"aria-label":"Cancel",id:"cancel",...e,ref:aN(L,t),type:"button",onClick:Q(e.onClick,T),disabled:s}),[T,s]);return{isEditing:b,isDisabled:s,isValueEmpty:B,value:_,onEdit:D,onCancel:T,onSubmit:I,getPreviewProps:z,getInputProps:V,getTextareaProps:j,getEditButtonProps:W,getSubmitButtonProps:U,getCancelButtonProps:$,htmlProps:g}}var uP=sD(function(e,t){let i=s$("Editable",e),{htmlProps:n,...r}=uO(tL(e)),{isEditing:o,onSubmit:s,onCancel:a,onEdit:l}=r,u=$("chakra-editable",e.className),d=G(e.children,{isEditing:o,onSubmit:s,onCancel:a,onEdit:l});return(0,A.jsx)(uy,{value:r,children:(0,A.jsx)(uv,{value:i,children:(0,A.jsx)(sE.div,{ref:t,...n,className:u,children:d})})})});function uR(){let{isEditing:e,getEditButtonProps:t,getCancelButtonProps:i,getSubmitButtonProps:n}=u_();return{isEditing:e,getEditButtonProps:t,getCancelButtonProps:i,getSubmitButtonProps:n}}uP.displayName="Editable";var uF=i(98283),uB=i(7560),uH="data-focus-lock",uz="data-focus-lock-disabled";function uV(e,t){var i,n,r;return i=t||null,n=function(t){return e.forEach(function(e){return"function"==typeof e?e(t):e&&(e.current=t),e})},(r=(0,R.useState)(function(){return{value:i,callback:n,facade:{get current(){return r.value},set current(value){var e=r.value;e!==value&&(r.value=value,r.callback(value,e))}}}})[0]).callback=n,r.facade}var uj={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},uW=function(e){var t=e.children;return R.createElement(R.Fragment,null,R.createElement("div",{key:"guard-first","data-focus-guard":!0,"data-focus-auto-guard":!0,style:uj}),t,t&&R.createElement("div",{key:"guard-last","data-focus-guard":!0,"data-focus-auto-guard":!0,style:uj}))};uW.propTypes={},uW.defaultProps={children:null};var uU=i(5163);function u$(e){return e}function uK(e,t){void 0===t&&(t=u$);var i=[],n=!1;return{read:function(){if(n)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:e},useMedium:function(e){var r=t(e,n);return i.push(r),function(){i=i.filter(function(e){return e!==r})}},assignSyncMedium:function(e){for(n=!0;i.length;){var t=i;i=[],t.forEach(e)}i={push:function(t){return e(t)},filter:function(){return i}}},assignMedium:function(e){n=!0;var t=[];if(i.length){var r=i;i=[],r.forEach(e),t=i}var o=function(){var i=t;t=[],i.forEach(e)},s=function(){return Promise.resolve().then(o)};s(),i={push:function(e){t.push(e),s()},filter:function(e){return t=t.filter(e),i}}}}}function uq(e,t){return void 0===t&&(t=u$),uK(e,t)}function uG(e){void 0===e&&(e={});var t=uK(null);return t.options=(0,uU.pi)({async:!0,ssr:!1},e),t}var uZ=uq({},function(e){return{target:e.target,currentTarget:e.currentTarget}}),uY=uq(),uJ=uq(),uQ=uG({async:!0}),uX=[],u0=R.forwardRef(function(e,t){var i,n=R.useState(),r=n[0],o=n[1],s=R.useRef(),a=R.useRef(!1),l=R.useRef(null),u=e.children,d=e.disabled,c=e.noFocusGuards,h=e.persistentFocus,f=e.crossFrame,p=e.autoFocus,g=(e.allowTextSelection,e.group),m=e.className,v=e.whiteList,b=e.hasPositiveIndices,y=e.shards,_=void 0===y?uX:y,w=e.as,C=void 0===w?"div":w,S=e.lockProps,x=void 0===S?{}:S,k=e.sideCar,E=e.returnFocus,L=e.focusOptions,M=e.onActivation,N=e.onDeactivation,D=R.useState({})[0],A=R.useCallback(function(){l.current=l.current||document&&document.activeElement,s.current&&M&&M(s.current),a.current=!0},[M]),T=R.useCallback(function(){a.current=!1,N&&N(s.current)},[N]);(0,R.useEffect)(function(){d||(l.current=null)},[]);var I=R.useCallback(function(e){var t=l.current;if(t&&t.focus){var i="function"==typeof E?E(t):E;if(i){var n="object"==typeof i?i:void 0;l.current=null,e?Promise.resolve().then(function(){return t.focus(n)}):t.focus(n)}}},[E]),O=R.useCallback(function(e){a.current&&uZ.useMedium(e)},[]),P=uY.useMedium,F=R.useCallback(function(e){s.current!==e&&(s.current=e,o(e))},[]),B=(0,uB.Z)(((i={})[uz]=d&&"disabled",i[uH]=g,i),x),H=!0!==c,z=H&&"tail"!==c,V=uV([t,F]);return R.createElement(R.Fragment,null,H&&[R.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:d?-1:0,style:uj}),b?R.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:d?-1:1,style:uj}):null],!d&&R.createElement(k,{id:D,sideCar:uQ,observed:r,disabled:d,persistentFocus:h,crossFrame:f,autoFocus:p,whiteList:v,shards:_,onActivation:A,onDeactivation:T,returnFocus:I,focusOptions:L}),R.createElement(C,(0,uB.Z)({ref:V},B,{className:m,onBlur:P,onFocus:O}),u),z&&R.createElement("div",{"data-focus-guard":!0,tabIndex:d?-1:0,style:uj}))});u0.propTypes={},u0.defaultProps={children:void 0,disabled:!1,returnFocus:!1,focusOptions:void 0,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,crossFrame:!0,hasPositiveIndices:void 0,allowTextSelection:void 0,group:void 0,className:void 0,whiteList:void 0,shards:void 0,as:"div",lockProps:{},onActivation:void 0,onDeactivation:void 0};var u1=i(74938),u2=i(51119),u6=function(e){for(var t=Array(e.length),i=0;i=0}).sort(du)},dc="button:enabled,select:enabled,textarea:enabled,input:enabled,a[href],area[href],summary,iframe,object,embed,audio[controls],video[controls],[tabindex],[contenteditable],[autofocus]",dh="".concat(dc,", [data-focus-guard]"),df=function(e,t){return u6((e.shadowRoot||e).children).reduce(function(e,i){return e.concat(i.matches(t?dh:dc)?[i]:[],df(i))},[])},dp=function(e,t){var i;return e instanceof HTMLIFrameElement&&(null===(i=e.contentDocument)||void 0===i?void 0:i.body)?dg([e.contentDocument.body],t):[e]},dg=function(e,t){return e.reduce(function(e,i){var n,r=df(i,t),o=(n=[]).concat.apply(n,r.map(function(e){return dp(e,t)}));return e.concat(o,i.parentNode?u6(i.parentNode.querySelectorAll(dc)).filter(function(e){return e===i}):[])},[])},dm=function(e,t){return u6(e).filter(function(e){return u7(t,e)}).filter(function(e){return!((di(e)||"BUTTON"===e.tagName)&&("hidden"===e.type||e.disabled))})},dv=function(e,t){return void 0===t&&(t=new Map),u6(e).filter(function(e){return de(t,e)})},db=function(e,t,i){return dd(dm(dg(e,i),t),!0,i)},dy=function(e,t){return dd(dm(dg(e),t),!1)},d_=function(e,t){return e.shadowRoot?d_(e.shadowRoot,t):!!(void 0!==Object.getPrototypeOf(e).contains&&Object.getPrototypeOf(e).contains.call(e,t))||u6(e.children).some(function(e){var i;if(e instanceof HTMLIFrameElement){var n=null===(i=e.contentDocument)||void 0===i?void 0:i.body;return!!n&&d_(n,t)}return d_(e,t)})},dw=function(e){try{return e()}catch(e){return}},dC=function(e){if(void 0===e&&(e=document),e&&e.activeElement){var t=e.activeElement;return t.shadowRoot?dC(t.shadowRoot):t instanceof HTMLIFrameElement&&dw(function(){return t.contentWindow.document})?dC(t.contentWindow.document):t}},dS=function(e){void 0===e&&(e=document);var t=dC(e);return!!t&&u6(e.querySelectorAll("[".concat("data-no-focus-lock","]"))).some(function(e){return d_(e,t)})},dx=function(e){for(var t=new Set,i=e.length,n=0;n0&&t.add(r),(o&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(n)}return e.filter(function(e,i){return!t.has(i)})},dk=function(e){return e.parentNode?dk(e.parentNode):e},dE=function(e){return u3(e).filter(Boolean).reduce(function(e,t){var i=t.getAttribute(uH);return e.push.apply(e,i?dx(u6(dk(t).querySelectorAll("[".concat(uH,'="').concat(i,'"]:not([').concat(uz,'="disabled"])')))):[t]),e},[])},dL=function(e,t){return void 0===t&&(t=dC(u8(e).ownerDocument)),!!t&&(!t.dataset||!t.dataset.focusGuard)&&dE(e).some(function(e){var i;return d_(e,t)||(i=t,!!u6(e.querySelectorAll("iframe")).some(function(e){return e===i}))})},dM=function(e,t){return dn(e)&&e.name&&t.filter(dn).filter(function(t){return t.name===e.name}).filter(function(e){return e.checked})[0]||e},dN=function(e){var t=new Set;return e.forEach(function(i){return t.add(dM(i,e))}),e.filter(function(e){return t.has(e)})},dD=function(e){return e[0]&&e.length>1?dM(e[0],e):e[0]},dA=function(e,t){return e.length>1?e.indexOf(dM(e[t],e)):t},dT="NEW_FOCUS",dI=function(e,t,i,n){var r=e.length,o=e[0],s=e[r-1],a=ds(i);if(!(i&&e.indexOf(i)>=0)){var l=void 0!==i?t.indexOf(i):-1,u=n?t.indexOf(n):l,d=n?e.indexOf(n):-1,c=l-u,h=t.indexOf(o),f=t.indexOf(s),p=dN(t),g=(void 0!==i?p.indexOf(i):-1)-(n?p.indexOf(n):l),m=dA(e,0),v=dA(e,r-1);if(-1===l||-1===d)return dT;if(!c&&d>=0)return d;if(l<=h&&a&&Math.abs(c)>1)return v;if(l>=f&&a&&Math.abs(c)>1)return m;if(c&&Math.abs(g)>1)return d;if(l<=h)return v;if(l>f)return m;if(c)return Math.abs(c)>1?d:(r+d+c)%r}},dO=function(e,t,i){var n=dv(e.map(function(e){return e.node}).filter(function(e){var t,n=null===(t=dt(e))||void 0===t?void 0:t.autofocus;return e.autofocus||void 0!==n&&"false"!==n||i.indexOf(e)>=0}));return n&&n.length?dD(n):dD(dv(t))},dP=function(e,t){return void 0===t&&(t=[]),t.push(e),e.parentNode&&dP(e.parentNode.host||e.parentNode,t),t},dR=function(e,t){for(var i=dP(e),n=dP(t),r=0;r=0)return o}return!1},dF=function(e,t,i){var n=u3(e),r=u3(t),o=n[0],s=!1;return r.filter(Boolean).forEach(function(e){s=dR(s||e,e)||s,i.filter(Boolean).forEach(function(e){var t=dR(o,e);t&&(s=!s||d_(t,s)?t:dR(t,s))})}),s},dB=function(e,t){var i=new Map;return t.forEach(function(e){return i.set(e.node,e)}),e.map(function(e){return i.get(e)}).filter(dl)},dH=function(e,t){var i=dC(u3(e).length>0?document:u8(e).ownerDocument),n=dE(e).filter(da),r=dF(i||e,e,n),o=new Map,s=dy(n,o),a=db(n,o).filter(function(e){return da(e.node)});if(a[0]||(a=s)[0]){var l=dy([r],o).map(function(e){return e.node}),u=dB(l,a),d=u.map(function(e){return e.node}),c=dI(d,l,i,t);if(c===dT){var h=dO(s,d,n.reduce(function(e,t){return e.concat(dm(u6(t.querySelectorAll("[".concat("data-autofocus-inside","]"))).map(function(e){return dg([e])}).reduce(function(e,t){return e.concat(t)},[]),o))},[]));return h?{node:h}:void console.warn("focus-lock: cannot find any node to move focus into")}return void 0===c?c:u[c]}},dz=function(e,t){"focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus()},dV=0,dj=!1;let dW=function(e,t,i){void 0===i&&(i={});var n=dH(e,t);if(!dj&&n){if(dV>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),dj=!0,setTimeout(function(){dj=!1},1);return}dV++,dz(n.node,i.focusOptions),dV--}};var dU=function(e){var t=dE(e).filter(da),i=dF(e,e,t),n=new Map,r=db([i],n,!0),o=db(t,n).filter(function(e){return da(e.node)}).map(function(e){return e.node});return r.map(function(e){var t=e.node;return{node:t,index:e.index,lockItem:o.indexOf(t)>=0,guard:ds(t)}})};function d$(e){var t=window.setImmediate;void 0!==t?t(e):setTimeout(e,1)}var dK=null,dq=null,dG=null,dZ=!1,dY=function(e,t){dG={observerNode:e,portaledElement:t}};function dJ(e,t,i,n){var r=null,o=e;do{var s=n[o];if(s.guard)s.node.dataset.focusAutoGuard&&(r=s);else if(s.lockItem){if(o!==e)return;r=null}else break}while((o+=i)!==t)r&&(r.node.tabIndex=0)}var dQ=function(e){return e&&"current"in e?e.current:e},dX=function(){var e=!1;if(dK){var t=dK,i=t.observed,n=t.persistentFocus,r=t.autoFocus,o=t.shards,s=t.crossFrame,a=t.focusOptions,l=i||dG&&dG.portaledElement,u=document&&document.activeElement;if(l){var d=[l].concat(o.map(dQ).filter(Boolean));if((!u||(dK.whiteList||function(){return!0})(u))&&(n||(s?!!dZ:"meanwhile"===dZ)||!(document&&document.activeElement===document.body||dS())||!dq&&r)&&(l&&!(dL(d)||u&&d.some(function(e){return function e(t,i,n){return i&&(i.host===t&&(!i.activeElement||n.contains(i.activeElement))||i.parentNode&&e(t,i.parentNode,n))}(u,e,e)})||dG&&dG.portaledElement===u)&&(document&&!dq&&u&&!r?(u.blur&&u.blur(),document.body.focus()):(e=dW(d,dq,{focusOptions:a}),dG={})),dZ=!1,dq=document&&document.activeElement),document){var c=document&&document.activeElement,h=dU(d),f=h.map(function(e){return e.node}).indexOf(c);f>-1&&(h.filter(function(e){var t=e.guard,i=e.node;return t&&i.dataset.focusAutoGuard}).forEach(function(e){return e.node.removeAttribute("tabIndex")}),dJ(f,h.length,1,h),dJ(f,-1,-1,h))}}}return e},d0=function(e){dX()&&e&&(e.stopPropagation(),e.preventDefault())},d1=function(){return d$(dX)},d2=function(){dZ="just",setTimeout(function(){dZ="meanwhile"},0)},d6=function(){document.addEventListener("focusin",d0),document.addEventListener("focusout",d1),window.addEventListener("blur",d2)},d3=function(){document.removeEventListener("focusin",d0),document.removeEventListener("focusout",d1),window.removeEventListener("blur",d2)};uZ.assignSyncMedium(function(e){var t=e.target,i=e.currentTarget;i.contains(t)||dY(i,t)}),uY.assignMedium(d1),uJ.assignMedium(function(e){return e({moveFocusInside:dW,focusInside:dL})});let d8=(n=function(e){var t=e.slice(-1)[0];t&&!dK&&d6();var i=dK,n=i&&t&&t.id===i.id;dK=t,!i||n||(i.onDeactivation(),e.filter(function(e){return e.id===i.id}).length||i.returnFocus(!t)),t?(dq=null,n&&i.observed===t.observed||t.onActivation(),dX(!0),d$(dX)):(d3(),dq=null)},function(e){var t,i=[];function r(){n(t=i.map(function(e){return e.props}).filter(function(e){return!e.disabled}))}var o=function(n){function o(){return n.apply(this,arguments)||this}o.prototype=Object.create(n.prototype),o.prototype.constructor=o,u1.Z(o,n),o.peek=function(){return t};var s=o.prototype;return s.componentDidMount=function(){i.push(this),r()},s.componentDidUpdate=function(){r()},s.componentWillUnmount=function(){var e=i.indexOf(this);i.splice(e,1),r()},s.render=function(){return R.createElement(e,this.props)},o}(R.PureComponent);return u2.Z(o,"displayName","SideEffect("+(e.displayName||e.name||"Component")+")"),o})(function(){return null});var d5=R.forwardRef(function(e,t){return R.createElement(u0,(0,uB.Z)({sideCar:d8,ref:t},e))}),d4=u0.propTypes||{};function d9(e){return null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function d7(e){var t;if(!d9(e))return!1;let i=null!=(t=e.ownerDocument.defaultView)?t:window;return e instanceof i.HTMLElement}function ce(e){return d9(e)?e.ownerDocument:document}d4.sideCar,(0,uF.Z)(d4,["sideCar"]),d5.propTypes={};var ct=e=>e.hasAttribute("tabindex"),ci=e=>ct(e)&&-1===e.tabIndex;function cn(e){var t;let i;if(!d7(e)||function e(t){return!!(t.parentElement&&e(t.parentElement))||t.hidden}(e)||!0==!!(t=e).getAttribute("disabled")||!0==!!t.getAttribute("aria-disabled"))return!1;let{localName:n}=e;if(["input","select","textarea","button"].indexOf(n)>=0)return!0;let r={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return n in r?r[n]():!!("false"!==(i=e.getAttribute("contenteditable"))&&null!=i)||ct(e)}var cr=e=>e.offsetWidth>0&&e.offsetHeight>0;function co(e){let t=Array.from(e.querySelectorAll("input:not(:disabled):not([disabled]),select:not(:disabled):not([disabled]),textarea:not(:disabled):not([disabled]),embed,iframe,object,a[href],area[href],button:not(:disabled):not([disabled]),[tabindex],audio[controls],video[controls],*[tabindex]:not([aria-disabled]),*[contenteditable]"));return t.unshift(e),t.filter(e=>cn(e)&&cr(e))}var cs=null!=(M=d5.default)?M:d5,ca=e=>{let{initialFocusRef:t,finalFocusRef:i,contentRef:n,restoreFocus:r,children:o,isDisabled:s,autoFocus:a,persistentFocus:l,lockFocusAcrossFrames:u}=e,d=(0,R.useCallback)(()=>{(null==t?void 0:t.current)?t.current.focus():(null==n?void 0:n.current)&&0===co(n.current).length&&requestAnimationFrame(()=>{var e;null==(e=n.current)||e.focus()})},[t,n]),c=(0,R.useCallback)(()=>{var e;null==(e=null==i?void 0:i.current)||e.focus()},[i]),h=r&&!i;return(0,A.jsx)(cs,{crossFrame:u,persistentFocus:l,autoFocus:a,disabled:s,onActivation:d,onDeactivation:c,returnFocus:h,children:o})};ca.displayName="FocusLock";var[cl,cu]=F({name:"FormErrorStylesContext",errorMessage:"useFormErrorStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),cd=sD((e,t)=>{let i=s$("FormError",e),n=tL(e),r=lU();return(null==r?void 0:r.isInvalid)?(0,A.jsx)(cl,{value:i,children:(0,A.jsx)(sE.div,{...null==r?void 0:r.getErrorMessageProps(n,t),className:$("chakra-form__error-message",e.className),__css:{display:"flex",alignItems:"center",...i.text}})}):null});cd.displayName="FormErrorMessage";var cc=sD((e,t)=>{let i=cu(),n=lU();if(!(null==n?void 0:n.isInvalid))return null;let r=$("chakra-form__error-icon",e.className);return(0,A.jsx)(sG,{ref:t,"aria-hidden":!0,...e,__css:i.icon,className:r,children:(0,A.jsx)("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})});cc.displayName="FormErrorIcon";var ch=sD(function(e,t){var i;let n=sU("FormLabel",e),r=tL(e),{className:o,children:s,requiredIndicator:a=(0,A.jsx)(cf,{}),optionalIndicator:l=null,...u}=r,d=lU(),c=null!=(i=null==d?void 0:d.getLabelProps(u,t))?i:{ref:t,...u};return(0,A.jsxs)(sE.label,{...c,className:$("chakra-form__label",r.className),__css:{display:"block",textAlign:"start",...n},children:[s,(null==d?void 0:d.isRequired)?a:l]})});ch.displayName="FormLabel";var cf=sD(function(e,t){let i=lU(),n=lj();if(!(null==i?void 0:i.isRequired))return null;let r=$("chakra-form__required-indicator",e.className);return(0,A.jsx)(sE.span,{...null==i?void 0:i.getRequiredIndicatorProps(e,t),__css:n.requiredIndicator,className:r})});function cp(e){let t=(0,R.useRef)();return(0,R.useEffect)(()=>{t.current=e},[e]),t.current}function cg(e={}){let{timeout:t=300,preventDefault:i=()=>!0}=e,[n,r]=(0,R.useState)([]),o=(0,R.useRef)(),s=()=>{o.current&&(clearTimeout(o.current),o.current=null)},a=()=>{s(),o.current=setTimeout(()=>{r([]),o.current=null},t)};return(0,R.useEffect)(()=>s,[]),function(e){return t=>{if("Backspace"===t.key){let e=[...n];e.pop(),r(e);return}if(function(e){let{key:t}=e;return 1===t.length||t.length>1&&/[^a-zA-Z0-9]/.test(t)}(t)){let o=n.concat(t.key);i(t)&&(t.preventDefault(),t.stopPropagation()),r(o),e(o.join("")),a()}}}}function cm(e){return null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function cv(e){var t;if(!cm(e))return!1;let i=null!=(t=e.ownerDocument.defaultView)?t:window;return e instanceof i.HTMLElement}function cb(e){var t;return cm(e)&&null!=(t=e.ownerDocument)?t:document}function cy(e){var t;return null!=(t=e.view)?t:window}cf.displayName="RequiredIndicator";var c_=!!("undefined"!=typeof window&&window.document&&window.document.createElement);function cw(e,t){return!!e&&(e===t||e.contains(t))}var cC=c_?R.useLayoutEffect:R.useEffect;function cS(e,t=[]){let i=(0,R.useRef)(e);return cC(()=>{i.current=e}),(0,R.useCallback)((...e)=>{var t;return null==(t=i.current)?void 0:t.call(i,...e)},t)}function cx(e,t){let i=cS(e);(0,R.useEffect)(()=>{if(null==t)return;let e=null;return e=window.setTimeout(()=>{i()},t),()=>{e&&window.clearTimeout(e)}},[t,i])}function ck(e,t){let i=(0,R.useRef)();(0,R.useEffect)(()=>{if(i.current){let n=Object.keys({...i.current,...t}),r={};n.forEach(e=>{i.current[e]!==t[e]&&(r[e]={from:i.current[e],to:t[e]})}),Object.keys(r).length&&console.log("[why-did-you-update]",e,r)}i.current=t})}function cE(e,t){let i=cS(e);(0,R.useEffect)(()=>{let e=null;return null!==t&&(e=window.setInterval(()=>i(),t)),()=>{e&&window.clearInterval(e)}},[t,i])}function cL(e){let t=(0,R.useRef)(null);return t.current=e,t}function cM(e,t){if(null!=e){if("function"==typeof e){e(t);return}try{e.current=t}catch(i){throw Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function cN(...e){return(0,R.useMemo)(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{e&&cM(e,t)})},e)}function cD(e,t,i,n){let r=cS(t);return(0,R.useEffect)(()=>{var o;let s=null!=(o=tI(i))?o:document;if(t)return s.addEventListener(e,r,n),()=>{s.removeEventListener(e,r,n)}},[e,i,n,r,t]),()=>{var t;(null!=(t=tI(i))?t:document).removeEventListener(e,r,n)}}function cA(e=!0){let t=(0,R.useRef)();return cD("mousedown",i=>{e&&(t.current=i.target)}),t}function cT(e){let{ref:t,handler:i,enabled:n=!0}=e,r=cS(i),o=(0,R.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;(0,R.useEffect)(()=>{if(!n)return;let e=e=>{cI(e,t)&&(o.isPointerDown=!0)},s=e=>{if(o.ignoreEmulatedMouseEvents){o.ignoreEmulatedMouseEvents=!1;return}o.isPointerDown&&i&&cI(e,t)&&(o.isPointerDown=!1,r(e))},a=e=>{o.ignoreEmulatedMouseEvents=!0,i&&o.isPointerDown&&cI(e,t)&&(o.isPointerDown=!1,r(e))},l=cb(t.current);return l.addEventListener("mousedown",e,!0),l.addEventListener("mouseup",s,!0),l.addEventListener("touchstart",e,!0),l.addEventListener("touchend",a,!0),()=>{l.removeEventListener("mousedown",e,!0),l.removeEventListener("mouseup",s,!0),l.removeEventListener("touchstart",e,!0),l.removeEventListener("touchend",a,!0)}},[i,t,r,o,n])}function cI(e,t){var i;let n=e.target;return(!n||!!cb(n).contains(n))&&!(null==(i=t.current)?void 0:i.contains(n))}var cO={pageX:0,pageY:0};function cP(e,t="page"){return{point:e.touches?function(e,t="page"){let i=e.touches[0]||e.changedTouches[0]||cO;return{x:i[`${t}X`],y:i[`${t}Y`]}}(e,t):function(e,t="page"){return{x:e[`${t}X`],y:e[`${t}Y`]}}(e,t)}}var cR=(e,t=!1)=>{let i=t=>e(t,cP(t));return t?e=>{let t=cy(e),n=e instanceof t.MouseEvent;(!n||n&&0===e.button)&&i(e)}:i},cF=()=>c_&&null===window.onpointerdown,cB=()=>c_&&null===window.ontouchstart,cH=()=>c_&&null===window.onmousedown,cz={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},cV={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function cj(e){return cF()?e:cB()?cV[e]:cH()?cz[e]:e}function cW(e,t,i,n){var r,o;return r=cj(t),o=cR(i,"pointerdown"===t),e.addEventListener(r,o,n),()=>{e.removeEventListener(r,o,n)}}function cU(e,t,i,n){return cD(cj(t),cR(i,"pointerdown"===t),e,n)}function c$(e,t=[]){return(0,R.useEffect)(()=>()=>e(),t)}var cK=Object.defineProperty,cq=(e,t,i)=>t in e?cK(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,cG=(e,t,i)=>(cq(e,"symbol"!=typeof t?t+"":t,i),i);let cZ=1/60*1e3,cY="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),cJ="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(cY()),cZ),cQ=!0,cX=!1,c0=!1,c1={delta:0,timestamp:0},c2=["read","update","preRender","render","postRender"],c6=c2.reduce((e,t)=>(e[t]=function(e){let t=[],i=[],n=0,r=!1,o=!1,s=new WeakSet,a={schedule:(e,o=!1,a=!1)=>{let l=a&&r,u=l?t:i;return o&&s.add(e),-1===u.indexOf(e)&&(u.push(e),l&&r&&(n=t.length)),e},cancel:e=>{let t=i.indexOf(e);-1!==t&&i.splice(t,1),s.delete(e)},process:l=>{if(r){o=!0;return}if(r=!0,[t,i]=[i,t],i.length=0,n=t.length)for(let i=0;icX=!0),e),{}),c3=c2.reduce((e,t)=>{let i=c6[t];return e[t]=(e,t=!1,n=!1)=>(cX||c9(),i.schedule(e,t,n)),e},{}),c8=c2.reduce((e,t)=>(e[t]=c6[t].cancel,e),{});c2.reduce((e,t)=>(e[t]=()=>c6[t].process(c1),e),{});let c5=e=>c6[e].process(c1),c4=e=>{cX=!1,c1.delta=cQ?cZ:Math.max(Math.min(e-c1.timestamp,40),1),c1.timestamp=e,c0=!0,c2.forEach(c5),c0=!1,cX&&(cQ=!1,cJ(c4))},c9=()=>{cX=!0,cQ=!0,c0||cJ(c4)},c7=()=>c1;var he=class{constructor(e,t,i){if(cG(this,"history",[]),cG(this,"startEvent",null),cG(this,"lastEvent",null),cG(this,"lastEventInfo",null),cG(this,"handlers",{}),cG(this,"removeListeners",tO),cG(this,"threshold",3),cG(this,"win"),cG(this,"updatePoint",()=>{if(!(this.lastEvent&&this.lastEventInfo))return;let e=hi(this.lastEventInfo,this.history),t=null!==this.startEvent,i=function(e,t){return tA(e)&&tA(t)?tF(e,t):tB(e)&&tB(t)?Math.sqrt(tF(e.x,t.x)**2+tF(e.y,t.y)**2):0}(e.offset,{x:0,y:0})>=this.threshold;if(!t&&!i)return;let{timestamp:n}=c7();this.history.push({...e.point,timestamp:n});let{onStart:r,onMove:o}=this.handlers;t||(null==r||r(this.lastEvent,e),this.startEvent=this.lastEvent),null==o||o(this.lastEvent,e)}),cG(this,"onPointerMove",(e,t)=>{if(this.lastEvent=e,this.lastEventInfo=t,function(e){let t=cy(e);return void 0!==t.PointerEvent&&e instanceof t.PointerEvent?!("mouse"!==e.pointerType):e instanceof t.MouseEvent}(e)&&0===e.buttons){this.onPointerUp(e,t);return}c3.update(this.updatePoint,!0)}),cG(this,"onPointerUp",(e,t)=>{let i=hi(t,this.history),{onEnd:n,onSessionEnd:r}=this.handlers;null==r||r(e,i),this.end(),n&&this.startEvent&&(null==n||n(e,i))}),this.win=cy(e),function(e){return!!e.touches&&e.touches.length>1}(e))return;this.handlers=t,i&&(this.threshold=i),e.stopPropagation(),e.preventDefault();let n=cP(e),{timestamp:r}=c7();this.history=[{...n.point,timestamp:r}];let{onSessionStart:o}=t;null==o||o(e,hi(n,this.history)),this.removeListeners=tR(cW(this.win,"pointermove",this.onPointerMove),cW(this.win,"pointerup",this.onPointerUp),cW(this.win,"pointercancel",this.onPointerUp))}updateHandlers(e){this.handlers=e}end(){var e;null==(e=this.removeListeners)||e.call(this),c8.update(this.updatePoint)}};function ht(e,t){return{x:e.x-t.x,y:e.y-t.y}}function hi(e,t){return{point:e.point,delta:ht(e.point,t[t.length-1]),offset:ht(e.point,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let i=e.length-1,n=null,r=e[e.length-1];for(;i>=0&&(n=e[i],!(r.timestamp-n.timestamp>hn(.1)));)i--;if(!n)return{x:0,y:0};let o=(r.timestamp-n.timestamp)/1e3;if(0===o)return{x:0,y:0};let s={x:(r.x-n.x)/o,y:(r.y-n.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(t,0)}}var hn=e=>1e3*e;function hr(e,t){let{onPan:i,onPanStart:n,onPanEnd:r,onPanSessionStart:o,onPanSessionEnd:s,threshold:a}=t,l=!!(i||n||r||o||s),u=(0,R.useRef)(null),d={onSessionStart:o,onSessionEnd:s,onStart:n,onMove:i,onEnd(e,t){u.current=null,null==r||r(e,t)}};(0,R.useEffect)(()=>{var e;null==(e=u.current)||e.updateHandlers(d)}),cU(()=>e.current,"pointerdown",l?function(e){u.current=new he(e,d,a)}:tO),c$(()=>{var e;null==(e=u.current)||e.end(),u.current=null})}function ho(e,t){let i=(0,R.useId)();return(0,R.useMemo)(()=>e||[t,i].filter(Boolean).join("-"),[e,t,i])}function hs(e,...t){let i=ho(e);return(0,R.useMemo)(()=>t.map(e=>`${e}-${i}`),[i,t])}function ha(e){let[t,i]=(0,R.useState)(null);return{ref:(0,R.useCallback)(t=>{i(t?e:null)},[e]),id:t,isRendered:!!t}}function hl(e,t){let i=void 0!==e;return[i,i&&void 0!==e?e:t]}function hu(e){let{value:t,defaultValue:i,onChange:n,shouldUpdate:r=(e,t)=>e!==t}=e,o=cS(n),s=cS(r),[a,l]=(0,R.useState)(i),u=void 0!==t,d=u?t:a,c=(0,R.useCallback)(e=>{let t=tI(e,d);s(d,t)&&(u||l(t),o(t))},[u,o,d,s]);return[d,c]}function hd(e={}){let{onClose:t,onOpen:i,isOpen:n,id:r}=e,o=cS(i),s=cS(t),[a,l]=(0,R.useState)(e.defaultIsOpen||!1),[u,d]=hl(n,a),c=ho(r,"disclosure"),h=(0,R.useCallback)(()=>{u||l(!1),null==s||s()},[u,s]),f=(0,R.useCallback)(()=>{u||l(!0),null==o||o()},[u,o]),p=(0,R.useCallback)(()=>{(d?h:f)()},[d,f,h]);return{isOpen:!!d,onOpen:f,onClose:h,onToggle:p,isControlled:u,getButtonProps:(e={})=>({...e,"aria-expanded":d,"aria-controls":c,onClick:function(...e){return function(t){e.some(e=>(null==e||e(t),null==t?void 0:t.defaultPrevented))}}(e.onClick,p)}),getDisclosureProps:(e={})=>({...e,hidden:!d,id:c})}}function hc(){let e=(0,R.useRef)(new Map),t=e.current,i=(0,R.useCallback)((t,i,n,r)=>{let o=cR(n,"pointerdown"===i);e.current.set(n,{__listener:o,type:cj(i),el:t,options:r}),t.addEventListener(i,o,r)},[]),n=(0,R.useCallback)((t,i,n,r)=>{let{__listener:o}=e.current.get(n);t.removeEventListener(i,o,r),e.current.delete(o)},[]);return(0,R.useEffect)(()=>()=>{t.forEach((e,t)=>{n(e.el,e.type,t,e.options)})},[n,t]),{add:i,remove:n}}var hh=(e,t)=>{let i=(0,R.useRef)(!1),n=(0,R.useRef)(!1);(0,R.useEffect)(()=>{if(i.current&&n.current)return e();n.current=!0},t),(0,R.useEffect)(()=>(i.current=!0,()=>{i.current=!1}),[])},hf=e=>e.hasAttribute("tabindex"),hp=e=>hf(e)&&-1===e.tabIndex;function hg(e){return(cv(e)?cb(e):document).activeElement===e}function hm(e){var t;let i;if(!cv(e)||function e(t){return!!(t.parentElement&&e(t.parentElement))||t.hidden}(e)||!0==!!(t=e).getAttribute("disabled")||!0==!!t.getAttribute("aria-disabled"))return!1;let{localName:n}=e;if(["input","select","textarea","button"].indexOf(n)>=0)return!0;let r={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return n in r?r[n]():!!("false"!==(i=e.getAttribute("contenteditable"))&&null!=i)||hf(e)}function hv(e,t={}){let{isActive:i=hg,nextTick:n,preventScroll:r=!0,selectTextIfInput:o=!0}=t;if(!e||i(e))return -1;function s(){if(!e){tP({condition:!0,message:"[chakra-ui]: can't call focus() on `null` or `undefined` element"});return}!function(){if(null==hb){hb=!1;try{document.createElement("div").focus({get preventScroll(){return hb=!0,!0}})}catch(e){}}return hb}()?(e.focus(),r&&function(e){for(let{element:t,scrollTop:i,scrollLeft:n}of e)t.scrollTop=i,t.scrollLeft=n}(function(e){var t;let i=cb(e),n=null!=(t=i.defaultView)?t:window,r=e.parentNode,o=[],s=i.scrollingElement||i.documentElement;for(;r instanceof n.HTMLElement&&r!==s;)(r.offsetHeight{let t=e.current;t&&i&&(document.activeElement&&t.contains(document.activeElement)||hv(t,{preventScroll:n,nextTick:!0}))},[i,e,n])}function h_(e,t){let{shouldFocus:i,visible:n,focusRef:r}=t,o=i&&!n;hh(()=>{if(!o||function(e){let t,i=e.current;if(!i)return!1;let n=null==(t=cb(i))?void 0:t.activeElement;return!(!n||cw(i,n))&&!!(n&&cv(n)&&hm(n)&&!hp(n))}(e))return;let t=(null==r?void 0:r.current)||e.current;t&&hv(t,{nextTick:!0})},[o,e,r])}function hw(e){let{ref:t,elements:i,enabled:n}=e,r=!!c_&&"Safari"===function(e){let{userAgent:t,vendor:i}=e,n=/(android)/i.test(t);switch(!0){case/CriOS/.test(t):return"Chrome for iOS";case/Edg\//.test(t):return"Edge";case n&&/Silk\//.test(t):return"Silk";case/Chrome/.test(t)&&/Google Inc/.test(i):return"Chrome";case/Firefox\/\d+\.\d+$/.test(t):return"Firefox";case n:return"AOSP";case/MSIE|Trident/.test(t):return"IE";case/Safari/.test(e.userAgent)&&/Apple Computer/.test(t):return"Safari";case/AppleWebKit/.test(t):return"WebKit";default:return null}}(window.navigator);cU(()=>cb(t.current),"pointerdown",e=>{if(!r||!n)return;let o=e.target,s=(null!=i?i:[t]).some(e=>cw(tT(e)?e.current:e,o));!hg(o)&&s&&(e.preventDefault(),hv(o))})}var hC=e=>e.offsetWidth>0&&e.offsetHeight>0,hS={preventScroll:!0,shouldFocus:!1};function hx(e,t=hS){let{focusRef:i,preventScroll:n,shouldFocus:r,visible:o}=t,s=tT(e)?e.current:e,a=r&&o,l=(0,R.useRef)(a),u=(0,R.useRef)(o);cC(()=>{!u.current&&o&&(l.current=a),u.current=o},[o,a]);let d=(0,R.useCallback)(()=>{if(o&&s&&l.current&&(l.current=!1,!cw(s,document.activeElement))){if(null==i?void 0:i.current)hv(i.current,{preventScroll:n,nextTick:!0});else{let e;let t=((e=Array.from(s.querySelectorAll("input:not(:disabled):not([disabled]),select:not(:disabled):not([disabled]),textarea:not(:disabled):not([disabled]),embed,iframe,object,a[href],area[href],button:not(:disabled):not([disabled]),[tabindex],audio[controls],video[controls],*[tabindex]:not([aria-disabled]),*[contenteditable]"))).unshift(s),e.filter(e=>hm(e)&&hC(e)));t.length>0&&hv(t[0],{preventScroll:n,nextTick:!0})}}},[o,n,s,i]);hh(()=>{d()},[d]),cD("transitionend",d,s)}function hk(){let e=(0,R.useRef)(!1),[t,i]=(0,R.useState)(0);return c$(()=>{e.current=!0}),(0,R.useCallback)(()=>{e.current||i(t+1)},[t])}function hE(e){let{isOpen:t,ref:i}=e,[n,r]=(0,R.useState)(t),[o,s]=(0,R.useState)(!1);return(0,R.useEffect)(()=>{o||(r(t),s(!0))},[t,o,n]),cD("animationend",()=>{r(t)},()=>i.current),{present:!(!t&&!n),onComplete(){var e,t,n,r;let o=new(cm(t=i.current)&&null!=(r=null==(n=cb(t))?void 0:n.defaultView)?r:window).CustomEvent("animationend",{bubbles:!0});null==(e=i.current)||e.dispatchEvent(o)}}}function hL(e=!1){let[t,i]=(0,R.useState)(e);return[t,(0,R.useMemo)(()=>({on:()=>i(!0),off:()=>i(!1),toggle:()=>i(e=>!e)}),[])]}var hM=i(50381),hN=i.n(hM);function hD(e,t={}){let[i,n]=(0,R.useState)(!1),[r,o]=(0,R.useState)(e);(0,R.useEffect)(()=>o(e),[e]);let{timeout:s=1500,...a}="number"==typeof t?{timeout:t}:t,l=(0,R.useCallback)(()=>{n(hN()(r,a))},[r,a]);return(0,R.useEffect)(()=>{let e=null;return i&&(e=window.setTimeout(()=>{n(!1)},s)),()=>{e&&window.clearTimeout(e)}},[s,i]),{value:r,setValue:o,onCopy:l,hasCopied:i}}function hA(e){let t=(0,R.useRef)(null);return null===t.current&&(t.current="function"==typeof e?e():e),t.current}var hT=function(e){var t=e.top,i=e.right,n=e.bottom,r=e.left;return{top:t,right:i,bottom:n,left:r,width:i-r,height:n-t,x:r,y:t,center:{x:(i+r)/2,y:(n+t)/2}}},hI=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},hO={top:0,right:0,bottom:0,left:0},hP=function(e){var t=e.borderBox,i=e.margin,n=void 0===i?hO:i,r=e.border,o=void 0===r?hO:r,s=e.padding,a=void 0===s?hO:s,l=hT({top:t.top-n.top,left:t.left-n.left,bottom:t.bottom+n.bottom,right:t.right+n.right}),u=hT(hI(t,o)),d=hT(hI(u,a));return{marginBox:l,borderBox:hT(t),paddingBox:u,contentBox:d,margin:n,border:o,padding:a}},hR=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var i=Number(t);return isNaN(i)&&function(e,t){if(!e)throw Error("Invariant failed")}(!1),i},hF=function(e){var t;return hP({borderBox:e.getBoundingClientRect(),margin:{top:hR((t=window.getComputedStyle(e)).marginTop),right:hR(t.marginRight),bottom:hR(t.marginBottom),left:hR(t.marginLeft)},padding:{top:hR(t.paddingTop),right:hR(t.paddingRight),bottom:hR(t.paddingBottom),left:hR(t.paddingLeft)},border:{top:hR(t.borderTopWidth),right:hR(t.borderRightWidth),bottom:hR(t.borderBottomWidth),left:hR(t.borderLeftWidth)}})};function hB(e,t){let[i,n]=(0,R.useState)(null),r=(0,R.useRef)();return cC(()=>{function i(){let t=e.current;t&&(r.current=requestAnimationFrame(()=>{n(hF(t))}))}return i(),t&&(window.addEventListener("resize",i),window.addEventListener("scroll",i)),()=>{t&&(window.removeEventListener("resize",i),window.removeEventListener("scroll",i)),r.current&&cancelAnimationFrame(r.current)}},[t]),i}function hH(e){let{viewBox:t="0 0 24 24",d:i,displayName:n,defaultProps:r={}}=e,o=R.Children.toArray(e.path),s=sD((e,n)=>(0,A.jsx)(sG,{ref:n,viewBox:t,...r,...e,children:o.length?o:(0,A.jsx)("path",{fill:"currentColor",d:i})}));return s.displayName=n,s}var hz=sD(function(e,t){let{htmlWidth:i,htmlHeight:n,alt:r,...o}=e;return(0,A.jsx)("img",{width:i,height:n,ref:t,alt:r,...o})});hz.displayName="NativeImage";var hV=sD(function(e,t){let{fallbackSrc:i,fallback:n,src:r,srcSet:o,align:s,fit:a,loading:l,ignoreFallback:u,crossOrigin:d,fallbackStrategy:c="beforeLoadOrError",referrerPolicy:h,...f}=e,p=null!=l||u||!(void 0!==i||void 0!==n),g=lo(lr({...e,crossOrigin:d,ignoreFallback:p}),c),m={ref:t,objectFit:a,objectPosition:s,...p?f:function(e,t=[]){let i=Object.assign({},e);for(let e of t)e in i&&delete i[e];return i}(f,["onError","onLoad"])};return g?n||(0,A.jsx)(sE.img,{as:hz,className:"chakra-image__placeholder",src:i,...m}):(0,A.jsx)(sE.img,{as:hz,src:r,srcSet:o,crossOrigin:d,loading:l,referrerPolicy:h,className:"chakra-image",...m})});hV.displayName="Image";var hj=sD((e,t)=>(0,A.jsx)(sE.img,{ref:t,as:hz,className:"chakra-image",...e}));function hW(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}var[hU,h$]=F({name:"InputGroupStylesContext",errorMessage:"useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),hK=sD(function(e,t){let i=s$("Input",e),{children:n,className:r,...o}=tL(e),s=$("chakra-input__group",r),a={},l=lu(n),u=i.field;l.forEach(e=>{var t,n;i&&(u&&"InputLeftElement"===e.type.id&&(a.paddingStart=null!=(t=u.height)?t:u.h),u&&"InputRightElement"===e.type.id&&(a.paddingEnd=null!=(n=u.height)?n:u.h),"InputRightAddon"===e.type.id&&(a.borderEndRadius=0),"InputLeftAddon"===e.type.id&&(a.borderStartRadius=0))});let d=l.map(t=>{var i,n;let r=hW({size:(null==(i=t.props)?void 0:i.size)||e.size,variant:(null==(n=t.props)?void 0:n.variant)||e.variant});return"Input"!==t.type.id?(0,R.cloneElement)(t,r):(0,R.cloneElement)(t,Object.assign(r,a,t.props))});return(0,A.jsx)(sE.div,{className:s,ref:t,__css:{width:"100%",display:"flex",position:"relative",isolation:"isolate"},"data-group":!0,...o,children:(0,A.jsx)(hU,{value:i,children:d})})});hK.displayName="InputGroup";var hq={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},hG=sE("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),hZ=sD(function(e,t){var i;let{placement:n="left",...r}=e,o=null!=(i=hq[n])?i:{},s=h$();return(0,A.jsx)(hG,{ref:t,...r,__css:{...s.addon,...o}})});hZ.displayName="InputAddon";var hY=sD(function(e,t){return(0,A.jsx)(hZ,{ref:t,placement:"left",...e,className:$("chakra-input__left-addon",e.className)})});hY.displayName="InputLeftAddon",hY.id="InputLeftAddon";var hJ=sD(function(e,t){return(0,A.jsx)(hZ,{ref:t,placement:"right",...e,className:$("chakra-input__right-addon",e.className)})});hJ.displayName="InputRightAddon",hJ.id="InputRightAddon";var hQ=sE("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),hX=sD(function(e,t){var i,n;let{placement:r="left",...o}=e,s=h$(),a=s.field,l={["left"===r?"insetStart":"insetEnd"]:"0",width:null!=(i=null==a?void 0:a.height)?i:null==a?void 0:a.h,height:null!=(n=null==a?void 0:a.height)?n:null==a?void 0:a.h,fontSize:null==a?void 0:a.fontSize,...s.element};return(0,A.jsx)(hQ,{ref:t,__css:l,...o})});hX.id="InputElement",hX.displayName="InputElement";var h0=sD(function(e,t){let{className:i,...n}=e,r=$("chakra-input__left-element",i);return(0,A.jsx)(hX,{ref:t,placement:"left",className:r,...n})});h0.id="InputLeftElement",h0.displayName="InputLeftElement";var h1=sD(function(e,t){let{className:i,...n}=e,r=$("chakra-input__right-element",i);return(0,A.jsx)(hX,{ref:t,placement:"right",className:r,...n})});h1.id="InputRightElement",h1.displayName="InputRightElement";var h2=sD(function(e,t){let{htmlSize:i,...n}=e,r=s$("Input",n),o=lq(tL(n)),s=$("chakra-input",e.className);return(0,A.jsx)(sE.input,{size:i,...o,__css:r.field,ref:t,className:s})});h2.displayName="Input",h2.id="Input";var[h6,h3]=F({name:"ListStylesContext",errorMessage:"useListStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),h8=sD(function(e,t){let i=s$("List",e),{children:n,styleType:r="none",stylePosition:o,spacing:s,...a}=tL(e),l=lu(n);return(0,A.jsx)(h6,{value:i,children:(0,A.jsx)(sE.ul,{ref:t,listStyleType:r,listStylePosition:o,role:"list",__css:{...i.container,...s?{"& > *:not(style) ~ *:not(style)":{mt:s}}:{}},...a,children:l})})});h8.displayName="List";var h5=sD((e,t)=>{let{as:i,...n}=e;return(0,A.jsx)(h8,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...n})});h5.displayName="OrderedList";var h4=sD(function(e,t){let{as:i,...n}=e;return(0,A.jsx)(h8,{ref:t,as:"ul",styleType:"initial",marginStart:"1em",...n})});h4.displayName="UnorderedList";var h9=sD(function(e,t){let i=h3();return(0,A.jsx)(sE.li,{ref:t,...e,__css:i.item})});h9.displayName="ListItem";var h7=sD(function(e,t){let i=h3();return(0,A.jsx)(sG,{ref:t,role:"presentation",...e,__css:i.icon})});h7.displayName="ListIcon";var fe=sD(function(e,t){let{templateAreas:i,gap:n,rowGap:r,columnGap:o,column:s,row:a,autoFlow:l,autoRows:u,templateRows:d,autoColumns:c,templateColumns:h,...f}=e;return(0,A.jsx)(sE.div,{ref:t,__css:{display:"grid",gridTemplateAreas:i,gridGap:n,gridRowGap:r,gridColumnGap:o,gridAutoColumns:c,gridColumn:s,gridRow:a,gridAutoFlow:l,gridAutoRows:u,gridTemplateRows:d,gridTemplateColumns:h},...f})});fe.displayName="Grid";var ft=Object.freeze(["base","sm","md","lg","xl","2xl"]);function fi(e,t){return Array.isArray(e)?e.map(e=>null===e?null:t(e)):K(e)?Object.keys(e).reduce((i,n)=>(i[n]=t(e[n]),i),{}):null!=e?t(e):null}var fn=sD(function(e,t){let{columns:i,spacingX:n,spacingY:r,spacing:o,minChildWidth:s,...a}=e,l=sA(),u=s?fi(s,e=>{let t=sO("sizes",e,"number"==typeof e?`${e}px`:e)(l);return null===e?null:`repeat(auto-fit, minmax(${t}, 1fr))`}):fi(i,e=>null===e?null:`repeat(${e}, minmax(0, 1fr))`);return(0,A.jsx)(fe,{ref:t,gap:o,columnGap:n,rowGap:r,templateColumns:u,...a})});fn.displayName="SimpleGrid";var fr=sE("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});fr.displayName="Spacer";var fo=sD(function(e,t){let i=sU("Text",e),{className:n,align:r,decoration:o,casing:s,...a}=tL(e),l=hW({textAlign:e.align,textDecoration:e.decoration,textTransform:e.casing});return(0,A.jsx)(sE.p,{ref:t,className:$("chakra-text",e.className),...l,...a,__css:i})});function fs(e){return"number"==typeof e?`${e}px`:e}fo.displayName="Text";var fa=sD(function(e,t){let{spacing:i="0.5rem",spacingX:n,spacingY:r,children:o,justify:s,direction:a,align:l,className:u,shouldWrapChildren:d,...c}=e,h=(0,R.useMemo)(()=>{let{spacingX:e=i,spacingY:t=i}={spacingX:n,spacingY:r};return{"--chakra-wrap-x-spacing":t=>fi(e,e=>fs(er("space",e)(t))),"--chakra-wrap-y-spacing":e=>fi(t,t=>fs(er("space",t)(e))),"--wrap-x-spacing":"calc(var(--chakra-wrap-x-spacing) / 2)","--wrap-y-spacing":"calc(var(--chakra-wrap-y-spacing) / 2)",display:"flex",flexWrap:"wrap",justifyContent:s,alignItems:l,flexDirection:a,listStyleType:"none",padding:"0",margin:"calc(var(--wrap-y-spacing) * -1) calc(var(--wrap-x-spacing) * -1)","& > *:not(style)":{margin:"var(--wrap-y-spacing) var(--wrap-x-spacing)"}}},[i,n,r,s,l,a]),f=(0,R.useMemo)(()=>d?R.Children.map(o,(e,t)=>(0,A.jsx)(fl,{children:e},t)):o,[o,d]);return(0,A.jsx)(sE.div,{ref:t,className:$("chakra-wrap",u),overflow:"hidden",...c,children:(0,A.jsx)(sE.ul,{className:"chakra-wrap__list",__css:h,children:f})})});fa.displayName="Wrap";var fl=sD(function(e,t){let{className:i,...n}=e;return(0,A.jsx)(sE.li,{ref:t,__css:{display:"flex",alignItems:"flex-start"},className:$("chakra-wrap__listitem",i),...n})});fl.displayName="WrapItem";var fu=e=>(0,A.jsx)(sE.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});fu.displayName="StackItem";var fd="& > *:not(style) ~ *:not(style)",fc=sD((e,t)=>{let{isInline:i,direction:n,align:r,justify:o,spacing:s="0.5rem",wrap:a,children:l,divider:u,className:d,shouldWrapChildren:c,...h}=e,f=i?"row":null!=n?n:"column",p=(0,R.useMemo)(()=>(function(e){let{spacing:t,direction:i}=e,n={column:{marginTop:t,marginEnd:0,marginBottom:0,marginStart:0},row:{marginTop:0,marginEnd:0,marginBottom:0,marginStart:t},"column-reverse":{marginTop:0,marginEnd:0,marginBottom:t,marginStart:0},"row-reverse":{marginTop:0,marginEnd:t,marginBottom:0,marginStart:0}};return{flexDirection:i,[fd]:fi(i,e=>n[e])}})({direction:f,spacing:s}),[f,s]),g=(0,R.useMemo)(()=>(function(e){let{spacing:t,direction:i}=e,n={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":fi(i,e=>n[e])}})({spacing:s,direction:f}),[s,f]),m=!!u,v=!c&&!m,b=(0,R.useMemo)(()=>{let e=lu(l);return v?e:e.map((t,i)=>{let n=void 0!==t.key?t.key:i,r=i+1===e.length,o=(0,A.jsx)(fu,{children:t},n),s=c?o:t;if(!m)return s;let a=(0,R.cloneElement)(u,{__css:g});return(0,A.jsxs)(R.Fragment,{children:[s,r?null:a]},n)})},[u,g,m,v,c,l]),y=$("chakra-stack",d);return(0,A.jsx)(sE.div,{ref:t,display:"flex",alignItems:r,justifyContent:o,flexDirection:p.flexDirection,flexWrap:a,className:y,__css:m?{}:{[fd]:p[fd]},...h,children:b})});fc.displayName="Stack";var fh=sD((e,t)=>(0,A.jsx)(fc,{align:"center",...e,direction:"column",ref:t}));fh.displayName="VStack";var ff=sD((e,t)=>(0,A.jsx)(fc,{align:"center",...e,direction:"row",ref:t}));ff.displayName="HStack";var fp=e=>(0,A.jsx)(sE.div,{className:"chakra-stack__divider",...e,__css:{...e.__css,borderWidth:0,alignSelf:"stretch",borderColor:"inherit",width:"auto",height:"auto"}});function fg(e){return fi(e,e=>"auto"===e?"auto":`span ${e}/span ${e}`)}fp.displayName="StackDivider";var fm=sD(function(e,t){let{area:i,colSpan:n,colStart:r,colEnd:o,rowEnd:s,rowSpan:a,rowStart:l,...u}=e,d=hW({gridArea:i,gridColumn:fg(n),gridRow:fg(a),gridColumnStart:r,gridColumnEnd:o,gridRowStart:l,gridRowEnd:s});return(0,A.jsx)(sE.div,{ref:t,__css:d,...u})});fm.displayName="GridItem";var fv=sD(function(e,t){let i=sU("Heading",e),{className:n,...r}=tL(e);return(0,A.jsx)(sE.h2,{ref:t,className:$("chakra-heading",e.className),...r,__css:i})});fv.displayName="Heading";var fb=sE("div");fb.displayName="Box";var fy=sD(function(e,t){let{size:i,centerContent:n=!0,...r}=e;return(0,A.jsx)(fb,{ref:t,boxSize:i,__css:{...n?{display:"flex",alignItems:"center",justifyContent:"center"}:{},flexShrink:0,flexGrow:0},...r})});fy.displayName="Square";var f_=sD(function(e,t){let{size:i,...n}=e;return(0,A.jsx)(fy,{size:i,ref:t,borderRadius:"9999px",...n})});f_.displayName="Circle";var fw=e=>e.replace(/[|\\{}()[\]^$+*?.-]/g,e=>`\\${e}`);function fC(e){let{text:t,query:i}=e;return(0,R.useMemo)(()=>(function({text:e,query:t}){let i;let n=(i=(Array.isArray(t)?t:[t]).filter(e=>0!==e.length).map(e=>fw(e.trim()))).length?RegExp(`(${i.join("|")})`,"ig"):null;return n?e.split(n).filter(Boolean).map(e=>({text:e,match:n.test(e)})):[{text:e,match:!1}]})({text:t,query:i}),[t,i])}var fS=sD(function(e,t){let i=sU("Mark",e),n=tL(e);return(0,A.jsx)(fb,{ref:t,...n,as:"mark",__css:{bg:"transparent",whiteSpace:"nowrap",...i}})});function fx(e){let{children:t,query:i,styles:n}=e;if("string"!=typeof t)throw Error("The children prop of Highlight must be a string");let r=fC({query:i,text:t});return(0,A.jsx)(A.Fragment,{children:r.map((e,t)=>e.match?(0,A.jsx)(fS,{sx:n,children:e.text},t):(0,A.jsx)(R.Fragment,{children:e.text},t))})}var fk=sD(function(e,t){let i=sU("Kbd",e),{className:n,...r}=tL(e);return(0,A.jsx)(sE.kbd,{ref:t,className:$("chakra-kbd",n),...r,__css:{fontFamily:"mono",...i}})});fk.displayName="Kbd";var fE=sD(function(e,t){let{isExternal:i,target:n,rel:r,className:o,...s}=e;return(0,A.jsx)(sE.a,{...s,ref:t,className:$("chakra-linkbox__overlay",o),rel:i?"noopener noreferrer":r,target:i?"_blank":n,__css:{position:"static","&::before":{content:"''",cursor:"inherit",display:"block",position:"absolute",top:0,left:0,zIndex:0,width:"100%",height:"100%"}}})}),fL=sD(function(e,t){let{className:i,...n}=e;return(0,A.jsx)(sE.div,{ref:t,position:"relative",...n,className:$("chakra-linkbox",i),__css:{"a[href]:not(.chakra-linkbox__overlay), abbr[title]":{position:"relative",zIndex:1}}})}),fM=sD(function(e,t){let i=sU("Link",e),{className:n,isExternal:r,...o}=tL(e);return(0,A.jsx)(sE.a,{target:r?"_blank":void 0,rel:r?"noopener":void 0,ref:t,className:$("chakra-link",n),...o,__css:i})});fM.displayName="Link";var fN=sD(function(e,t){let{ratio:i=4/3,children:n,className:r,...o}=e,s=R.Children.only(n),a=$("chakra-aspect-ratio",r);return(0,A.jsx)(sE.div,{ref:t,position:"relative",className:a,_before:{height:0,content:'""',display:"block",paddingBottom:fi(i,e=>`${1/e*100}%`)},__css:{"& > *:not(style)":{overflow:"hidden",position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},"& > img, & > video":{objectFit:"cover"}},...o,children:s})});fN.displayName="AspectRatio";var fD=sD(function(e,t){let i=sU("Badge",e),{className:n,...r}=tL(e);return(0,A.jsx)(sE.span,{ref:t,className:$("chakra-badge",e.className),...r,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...i}})});fD.displayName="Badge";var fA=sE("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});fA.displayName="Center";var fT={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}},fI=sD(function(e,t){let{axis:i="both",...n}=e;return(0,A.jsx)(sE.div,{ref:t,__css:fT[i],...n,position:"absolute"})}),fO=sD(function(e,t){let i=sU("Code",e),{className:n,...r}=tL(e);return(0,A.jsx)(sE.code,{ref:t,className:$("chakra-code",e.className),...r,__css:{display:"inline-block",...i}})});fO.displayName="Code";var fP=sD(function(e,t){let{className:i,centerContent:n,...r}=tL(e),o=sU("Container",e);return(0,A.jsx)(sE.div,{ref:t,className:$("chakra-container",i),...r,__css:{...o,...n&&{display:"flex",flexDirection:"column",alignItems:"center"}}})});fP.displayName="Container";var fR=sD(function(e,t){let{borderLeftWidth:i,borderBottomWidth:n,borderTopWidth:r,borderRightWidth:o,borderWidth:s,borderStyle:a,borderColor:l,...u}=sU("Divider",e),{className:d,orientation:c="horizontal",__css:h,...f}=tL(e);return(0,A.jsx)(sE.hr,{ref:t,"aria-orientation":c,...f,__css:{...u,border:"0",borderColor:l,borderStyle:a,...{vertical:{borderLeftWidth:i||o||s||"1px",height:"100%"},horizontal:{borderBottomWidth:n||r||s||"1px",width:"100%"}}[c],...h},className:$("chakra-divider",d)})});fR.displayName="Divider";var fF=sD(function(e,t){let{direction:i,align:n,justify:r,wrap:o,basis:s,grow:a,shrink:l,...u}=e;return(0,A.jsx)(sE.div,{ref:t,__css:{display:"flex",flexDirection:i,alignItems:n,justifyContent:r,flexWrap:o,flexBasis:s,flexGrow:a,flexShrink:l},...u})});function fB(e,t={}){let{ssr:i=!0,fallback:n}=t,{getWindow:r}=t4(),o=Array.isArray(e)?e:[e],s=Array.isArray(n)?n:[n];s=s.filter(e=>null!=e);let[a,l]=(0,R.useState)(()=>o.map((e,t)=>({media:e,matches:i?!!s[t]:r().matchMedia(e).matches})));return(0,R.useEffect)(()=>{let e=r();l(o.map(t=>({media:t,matches:e.matchMedia(t).matches})));let t=o.map(t=>e.matchMedia(t)),i=e=>{l(t=>t.slice().map(t=>t.media===e.media?{...t,matches:e.matches}:t))};return t.forEach(e=>{"function"==typeof e.addListener?e.addListener(i):e.addEventListener("change",i)}),()=>{t.forEach(e=>{"function"==typeof e.removeListener?e.removeListener(i):e.removeEventListener("change",i)})}},[r]),a.map(e=>e.matches)}function fH(e){let{breakpoint:t,hide:i,children:n,ssr:r}=e,[o]=fB(t,{ssr:r});return(i?!o:o)?n:null}fF.displayName="Flex";var fz=(e,t)=>{var i,n;return null!=(n=null==(i=null==e?void 0:e.breakpoints)?void 0:i[t])?n:t};function fV(e){let{breakpoint:t="",below:i,above:n}=e,r=sA(),o=fz(r,i),s=fz(r,n),a=t;return o?a=`(max-width: ${o})`:s&&(a=`(min-width: ${s})`),a}function fj(e){let{children:t,ssr:i}=e,n=fV(e);return(0,A.jsx)(fH,{breakpoint:n,hide:!0,ssr:i,children:t})}function fW(e){let[t]=fB("(prefers-reduced-motion: reduce)",e);return t}function fU(e){let[t,i]=fB(["(prefers-color-scheme: light)","(prefers-color-scheme: dark)"],e);return t?"light":i?"dark":void 0}function f$(e){let{children:t,ssr:i}=e,n=fV(e);return(0,A.jsx)(fH,{breakpoint:n,ssr:i,children:t})}function fK(e){var t,i;let n=K(e)?e:{fallback:null!=e?e:"base"},r=sA().__breakpoints.details.map(({minMaxQuery:e,breakpoint:t})=>({breakpoint:t,query:e.replace("@media screen and ","")})),o=r.map(e=>e.breakpoint===n.fallback),s=fB(r.map(e=>e.query),{fallback:o,ssr:n.ssr}).findIndex(e=>!0==e);return null!=(i=null==(t=r[s])?void 0:t.breakpoint)?i:n.fallback}function fq(e,t){var i;let n=fK(K(t)?t:{fallback:null!=t?t:"base"}),r=sA();if(!n)return;let o=Array.from((null==(i=r.__breakpoints)?void 0:i.keys)||[]);return function(e,t,i=ft){let n=Object.keys(e).indexOf(t);if(-1!==n)return e[t];let r=i.indexOf(t);for(;r>=0;){let t=i[r];if(e.hasOwnProperty(t)){n=r;break}r-=1}if(-1!==n)return e[i[n]]}(Array.isArray(e)?Object.fromEntries(Object.entries(function(e,t=ft){let i={};return e.forEach((e,n)=>{let r=t[n];null!=e&&(i[r]=e)}),i}(e,o)).map(([e,t])=>[e,t])):e,n,o)}function fG(e){let{tagName:t,isContentEditable:i}=e.target;return"INPUT"!==t&&"TEXTAREA"!==t&&!0!==i}function fZ(e={}){let t,i,n,r;let{ref:o,isDisabled:s,isFocusable:a,clickOnEnter:l=!0,clickOnSpace:u=!0,onMouseDown:d,onMouseUp:c,onClick:h,onKeyDown:f,onKeyUp:p,tabIndex:g,onMouseOver:m,onMouseLeave:v,...b}=e,[y,_]=(0,R.useState)(!0),[w,C]=(0,R.useState)(!1),S=(i=(t=(0,R.useRef)(new Map)).current,n=(0,R.useCallback)((e,i,n,r)=>{t.current.set(n,{type:i,el:e,options:r}),e.addEventListener(i,n,r)},[]),r=(0,R.useCallback)((e,i,n,r)=>{e.removeEventListener(i,n,r),t.current.delete(n)},[]),(0,R.useEffect)(()=>()=>{i.forEach((e,t)=>{r(e.el,e.type,t,e.options)})},[r,i]),{add:n,remove:r}),x=y?g:g||0,k=s&&!a,E=(0,R.useCallback)(e=>{if(s){e.stopPropagation(),e.preventDefault();return}e.currentTarget.focus(),null==h||h(e)},[s,h]),L=(0,R.useCallback)(e=>{w&&fG(e)&&(e.preventDefault(),e.stopPropagation(),C(!1),S.remove(document,"keyup",L,!1))},[w,S]),M=(0,R.useCallback)(e=>{if(null==f||f(e),s||e.defaultPrevented||e.metaKey||!fG(e.nativeEvent)||y)return;let t=l&&"Enter"===e.key;u&&" "===e.key&&(e.preventDefault(),C(!0)),t&&(e.preventDefault(),e.currentTarget.click()),S.add(document,"keyup",L,!1)},[s,y,f,l,u,S,L]),N=(0,R.useCallback)(e=>{null==p||p(e),!s&&!e.defaultPrevented&&!e.metaKey&&fG(e.nativeEvent)&&!y&&u&&" "===e.key&&(e.preventDefault(),C(!1),e.currentTarget.click())},[u,y,s,p]),D=(0,R.useCallback)(e=>{0===e.button&&(C(!1),S.remove(document,"mouseup",D,!1))},[S]),A=(0,R.useCallback)(e=>{if(0===e.button){if(s){e.stopPropagation(),e.preventDefault();return}y||C(!0),e.currentTarget.focus({preventScroll:!0}),S.add(document,"mouseup",D,!1),null==d||d(e)}},[s,y,d,S,D]),T=(0,R.useCallback)(e=>{0===e.button&&(y||C(!1),null==c||c(e))},[c,y]),I=(0,R.useCallback)(e=>{if(s){e.preventDefault();return}null==m||m(e)},[s,m]),O=(0,R.useCallback)(e=>{w&&(e.preventDefault(),C(!1)),null==v||v(e)},[w,v]),P=aN(o,e=>{e&&"BUTTON"!==e.tagName&&_(!1)});return y?{...b,ref:P,type:"button","aria-disabled":k?void 0:s,disabled:k,onClick:E,onMouseDown:d,onMouseUp:c,onKeyUp:p,onKeyDown:f,onMouseOver:m,onMouseLeave:v}:{...b,ref:P,role:"button","data-active":Y(w),"aria-disabled":s?"true":void 0,tabIndex:k?void 0:x,onClick:E,onMouseDown:A,onMouseUp:T,onKeyUp:N,onKeyDown:M,onMouseOver:I,onMouseLeave:O}}function fY(e,t){let{shouldFocus:i,visible:n,focusRef:r}=t,o=i&&!n;sm(()=>{let t;if(!o||function(e){let t=e.current;if(!t)return!1;let i=ce(t).activeElement;return!(!i||t.contains(i))&&!!(i&&d7(i)&&cn(i)&&!ci(i))}(e))return;let i=(null==r?void 0:r.current)||e.current;if(i)return t=requestAnimationFrame(()=>{i.focus({preventScroll:!0})}),()=>{cancelAnimationFrame(t)}},[o,e,r])}fj.displayName="Hide",f$.displayName="Show";var fJ={preventScroll:!0,shouldFocus:!1},fQ=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),fX={arrowShadowColor:fQ("--popper-arrow-shadow-color"),arrowSize:fQ("--popper-arrow-size","8px"),arrowSizeHalf:fQ("--popper-arrow-size-half"),arrowBg:fQ("--popper-arrow-bg"),transformOrigin:fQ("--popper-transform-origin"),arrowOffset:fQ("--popper-arrow-offset")},f0={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},f1=e=>f0[e],f2={scroll:!0,resize:!0},f6={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{let t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},f3={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{f8(e)},effect:({state:e})=>()=>{f8(e)}},f8=e=>{e.elements.popper.style.setProperty(fX.transformOrigin.var,f1(e.placement))},f5={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{f4(e)}},f4=e=>{var t;if(!e.placement)return;let i=f9(e.placement);if((null==(t=e.elements)?void 0:t.arrow)&&i){Object.assign(e.elements.arrow.style,{[i.property]:i.value,width:fX.arrowSize.varRef,height:fX.arrowSize.varRef,zIndex:-1});let t={[fX.arrowSizeHalf.var]:`calc(${fX.arrowSize.varRef} / 2 - 1px)`,[fX.arrowOffset.var]:`calc(${fX.arrowSizeHalf.varRef} * -1)`};for(let i in t)e.elements.arrow.style.setProperty(i,t[i])}},f9=e=>e.startsWith("top")?{property:"bottom",value:fX.arrowOffset.varRef}:e.startsWith("bottom")?{property:"top",value:fX.arrowOffset.varRef}:e.startsWith("left")?{property:"right",value:fX.arrowOffset.varRef}:e.startsWith("right")?{property:"left",value:fX.arrowOffset.varRef}:void 0,f7={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{pe(e)},effect:({state:e})=>()=>{pe(e)}},pe=e=>{if(!e.elements.arrow)return;let t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;let i=function(e){return e.includes("top")?"1px 1px 0px 0 var(--popper-arrow-shadow-color)":e.includes("bottom")?"-1px -1px 0px 0 var(--popper-arrow-shadow-color)":e.includes("right")?"-1px 1px 0px 0 var(--popper-arrow-shadow-color)":e.includes("left")?"1px -1px 0px 0 var(--popper-arrow-shadow-color)":void 0}(e.placement);i&&t.style.setProperty("--popper-arrow-default-shadow",i),Object.assign(t.style,{transform:"rotate(45deg)",background:fX.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},pt={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},pi={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function pn(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function pr(e){var t=pn(e).Element;return e instanceof t||e instanceof Element}function po(e){var t=pn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function ps(e){if("undefined"==typeof ShadowRoot)return!1;var t=pn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var pa=Math.max,pl=Math.min,pu=Math.round;function pd(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function pc(){return!/^((?!chrome|android).)*safari/i.test(pd())}function ph(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var n=e.getBoundingClientRect(),r=1,o=1;t&&po(e)&&(r=e.offsetWidth>0&&pu(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&pu(n.height)/e.offsetHeight||1);var s=(pr(e)?pn(e):window).visualViewport,a=!pc()&&i,l=(n.left+(a&&s?s.offsetLeft:0))/r,u=(n.top+(a&&s?s.offsetTop:0))/o,d=n.width/r,c=n.height/o;return{width:d,height:c,top:u,right:l+d,bottom:u+c,left:l,x:l,y:u}}function pf(e){var t=pn(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function pp(e){return e?(e.nodeName||"").toLowerCase():null}function pg(e){return((pr(e)?e.ownerDocument:e.document)||window.document).documentElement}function pm(e){return ph(pg(e)).left+pf(e).scrollLeft}function pv(e){return pn(e).getComputedStyle(e)}function pb(e){var t=pv(e),i=t.overflow,n=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+r+n)}function py(e){var t=ph(e),i=e.offsetWidth,n=e.offsetHeight;return 1>=Math.abs(t.width-i)&&(i=t.width),1>=Math.abs(t.height-n)&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:n}}function p_(e){return"html"===pp(e)?e:e.assignedSlot||e.parentNode||(ps(e)?e.host:null)||pg(e)}function pw(e,t){void 0===t&&(t=[]);var i,n=function e(t){return["html","body","#document"].indexOf(pp(t))>=0?t.ownerDocument.body:po(t)&&pb(t)?t:e(p_(t))}(e),r=n===(null==(i=e.ownerDocument)?void 0:i.body),o=pn(n),s=r?[o].concat(o.visualViewport||[],pb(n)?n:[]):n,a=t.concat(s);return r?a:a.concat(pw(p_(s)))}function pC(e){return po(e)&&"fixed"!==pv(e).position?e.offsetParent:null}function pS(e){for(var t=pn(e),i=pC(e);i&&["table","td","th"].indexOf(pp(i))>=0&&"static"===pv(i).position;)i=pC(i);return i&&("html"===pp(i)||"body"===pp(i)&&"static"===pv(i).position)?t:i||function(e){var t=/firefox/i.test(pd());if(/Trident/i.test(pd())&&po(e)&&"fixed"===pv(e).position)return null;var i=p_(e);for(ps(i)&&(i=i.host);po(i)&&0>["html","body"].indexOf(pp(i));){var n=pv(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(e)||t}var px="bottom",pk="right",pE="left",pL="auto",pM=["top",px,pk,pE],pN="start",pD="viewport",pA="popper",pT=pM.reduce(function(e,t){return e.concat([t+"-"+pN,t+"-end"])},[]),pI=[].concat(pM,[pL]).reduce(function(e,t){return e.concat([t,t+"-"+pN,t+"-end"])},[]),pO=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],pP={placement:"bottom",modifiers:[],strategy:"absolute"};function pR(){for(var e=arguments.length,t=Array(e),i=0;i=0?"x":"y"}function pV(e){var t,i=e.reference,n=e.element,r=e.placement,o=r?pB(r):null,s=r?pH(r):null,a=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(o){case"top":t={x:a,y:i.y-n.height};break;case px:t={x:a,y:i.y+i.height};break;case pk:t={x:i.x+i.width,y:l};break;case pE:t={x:i.x-n.width,y:l};break;default:t={x:i.x,y:i.y}}var u=o?pz(o):null;if(null!=u){var d="y"===u?"height":"width";switch(s){case pN:t[u]=t[u]-(i[d]/2-n[d]/2);break;case"end":t[u]=t[u]+(i[d]/2-n[d]/2)}}return t}var pj={top:"auto",right:"auto",bottom:"auto",left:"auto"};function pW(e){var t,i,n,r,o,s,a,l=e.popper,u=e.popperRect,d=e.placement,c=e.variation,h=e.offsets,f=e.position,p=e.gpuAcceleration,g=e.adaptive,m=e.roundOffsets,v=e.isFixed,b=h.x,y=void 0===b?0:b,_=h.y,w=void 0===_?0:_,C="function"==typeof m?m({x:y,y:w}):{x:y,y:w};y=C.x,w=C.y;var S=h.hasOwnProperty("x"),x=h.hasOwnProperty("y"),k=pE,E="top",L=window;if(g){var M=pS(l),N="clientHeight",D="clientWidth";M===pn(l)&&"static"!==pv(M=pg(l)).position&&"absolute"===f&&(N="scrollHeight",D="scrollWidth"),("top"===d||(d===pE||d===pk)&&"end"===c)&&(E=px,w-=(v&&M===L&&L.visualViewport?L.visualViewport.height:M[N])-u.height,w*=p?1:-1),(d===pE||("top"===d||d===px)&&"end"===c)&&(k=pk,y-=(v&&M===L&&L.visualViewport?L.visualViewport.width:M[D])-u.width,y*=p?1:-1)}var A=Object.assign({position:f},g&&pj),T=!0===m?(t={x:y,y:w},i=pn(l),n=t.x,r=t.y,{x:pu(n*(o=i.devicePixelRatio||1))/o||0,y:pu(r*o)/o||0}):{x:y,y:w};return(y=T.x,w=T.y,p)?Object.assign({},A,((a={})[E]=x?"0":"",a[k]=S?"0":"",a.transform=1>=(L.devicePixelRatio||1)?"translate("+y+"px, "+w+"px)":"translate3d("+y+"px, "+w+"px, 0)",a)):Object.assign({},A,((s={})[E]=x?w+"px":"",s[k]=S?y+"px":"",s.transform="",s))}var pU={left:"right",right:"left",bottom:"top",top:"bottom"};function p$(e){return e.replace(/left|right|bottom|top/g,function(e){return pU[e]})}var pK={start:"end",end:"start"};function pq(e){return e.replace(/start|end/g,function(e){return pK[e]})}function pG(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&ps(i)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function pZ(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function pY(e,t,i){var n,r,o,s,a,l,u,d,c,h;return t===pD?pZ(function(e,t){var i=pn(e),n=pg(e),r=i.visualViewport,o=n.clientWidth,s=n.clientHeight,a=0,l=0;if(r){o=r.width,s=r.height;var u=pc();(u||!u&&"fixed"===t)&&(a=r.offsetLeft,l=r.offsetTop)}return{width:o,height:s,x:a+pm(e),y:l}}(e,i)):pr(t)?((n=ph(t,!1,"fixed"===i)).top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n):pZ((r=pg(e),s=pg(r),a=pf(r),l=null==(o=r.ownerDocument)?void 0:o.body,u=pa(s.scrollWidth,s.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),d=pa(s.scrollHeight,s.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),c=-a.scrollLeft+pm(r),h=-a.scrollTop,"rtl"===pv(l||s).direction&&(c+=pa(s.clientWidth,l?l.clientWidth:0)-u),{width:u,height:d,x:c,y:h}))}function pJ(){return{top:0,right:0,bottom:0,left:0}}function pQ(e){return Object.assign({},pJ(),e)}function pX(e,t){return t.reduce(function(t,i){return t[i]=e,t},{})}function p0(e,t){void 0===t&&(t={});var i,n,r,o,s,a,l,u=t,d=u.placement,c=void 0===d?e.placement:d,h=u.strategy,f=void 0===h?e.strategy:h,p=u.boundary,g=u.rootBoundary,m=u.elementContext,v=void 0===m?pA:m,b=u.altBoundary,y=u.padding,_=void 0===y?0:y,w=pQ("number"!=typeof _?_:pX(_,pM)),C=e.rects.popper,S=e.elements[void 0!==b&&b?v===pA?"reference":pA:v],x=(i=pr(S)?S:S.contextElement||pg(e.elements.popper),a=(s=[].concat("clippingParents"===(n=void 0===p?"clippingParents":p)?(r=pw(p_(i)),pr(o=["absolute","fixed"].indexOf(pv(i).position)>=0&&po(i)?pS(i):i)?r.filter(function(e){return pr(e)&&pG(e,o)&&"body"!==pp(e)}):[]):[].concat(n),[void 0===g?pD:g]))[0],(l=s.reduce(function(e,t){var n=pY(i,t,f);return e.top=pa(n.top,e.top),e.right=pl(n.right,e.right),e.bottom=pl(n.bottom,e.bottom),e.left=pa(n.left,e.left),e},pY(i,a,f))).width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l),k=ph(e.elements.reference),E=pV({reference:k,element:C,strategy:"absolute",placement:c}),L=pZ(Object.assign({},C,E)),M=v===pA?L:k,N={top:x.top-M.top+w.top,bottom:M.bottom-x.bottom+w.bottom,left:x.left-M.left+w.left,right:M.right-x.right+w.right},D=e.modifiersData.offset;if(v===pA&&D){var A=D[c];Object.keys(N).forEach(function(e){var t=[pk,px].indexOf(e)>=0?1:-1,i=["top",px].indexOf(e)>=0?"y":"x";N[e]+=A[i]*t})}return N}function p1(e,t,i){return pa(e,pl(t,i))}function p2(e,t,i){return void 0===i&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function p6(e){return["top",pk,px,pE].some(function(t){return e[t]>=0})}var p3=function(e){void 0===e&&(e={});var t=e,i=t.defaultModifiers,n=void 0===i?[]:i,r=t.defaultOptions,o=void 0===r?pP:r;return function(e,t,i){void 0===i&&(i=o);var r,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},pP,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],l=!1,u={state:s,setOptions:function(i){var r,l,c,h,f,p="function"==typeof i?i(s.options):i;d(),s.options=Object.assign({},o,s.options,p),s.scrollParents={reference:pr(e)?pw(e):e.contextElement?pw(e.contextElement):[],popper:pw(t)};var g=(l=Object.keys(r=[].concat(n,s.options.modifiers).reduce(function(e,t){var i=e[t.name];return e[t.name]=i?Object.assign({},i,t,{options:Object.assign({},i.options,t.options),data:Object.assign({},i.data,t.data)}):t,e},{})).map(function(e){return r[e]}),c=new Map,h=new Set,f=[],l.forEach(function(e){c.set(e.name,e)}),l.forEach(function(e){h.has(e.name)||function e(t){h.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!h.has(t)){var i=c.get(t);i&&e(i)}}),f.push(t)}(e)}),pO.reduce(function(e,t){return e.concat(f.filter(function(e){return e.phase===t}))},[]));return s.orderedModifiers=g.filter(function(e){return e.enabled}),s.orderedModifiers.forEach(function(e){var t=e.name,i=e.options,n=e.effect;if("function"==typeof n){var r=n({state:s,name:t,instance:u,options:void 0===i?{}:i});a.push(r||function(){})}}),u.update()},forceUpdate:function(){if(!l){var e,t,i,n,r,o,a,d,c,h,f,p=s.elements,g=p.reference,m=p.popper;if(pR(g,m)){s.rects={reference:(e=pS(m),t="fixed"===s.options.strategy,i=po(e),a=po(e)&&(r=pu((n=e.getBoundingClientRect()).width)/e.offsetWidth||1,o=pu(n.height)/e.offsetHeight||1,1!==r||1!==o),d=pg(e),c=ph(g,a,t),h={scrollLeft:0,scrollTop:0},f={x:0,y:0},(i||!i&&!t)&&(("body"!==pp(e)||pb(d))&&(h=e!==pn(e)&&po(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:pf(e)),po(e)?(f=ph(e,!0),f.x+=e.clientLeft,f.y+=e.clientTop):d&&(f.x=pm(d))),{x:c.left+h.scrollLeft-f.x,y:c.top+h.scrollTop-f.y,width:c.width,height:c.height}),popper:py(m)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(function(e){return s.modifiersData[e.name]=Object.assign({},e.data)});for(var v=0;v=0?-1:1,l=(a="function"==typeof o?o(Object.assign({},n,{placement:i})):o)[0],u=a[1],l=l||0,u=(u||0)*s,[pE,pk].indexOf(r)>=0?{x:u,y:l}:{x:l,y:u}),e},{}),a=s[t.placement],l=a.x,u=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=s}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var r=i.mainAxis,o=void 0===r||r,s=i.altAxis,a=void 0===s||s,l=i.fallbackPlacements,u=i.padding,d=i.boundary,c=i.rootBoundary,h=i.altBoundary,f=i.flipVariations,p=void 0===f||f,g=i.allowedAutoPlacements,m=t.options.placement,v=pB(m)===m,b=l||(v||!p?[p$(m)]:function(e){if(pB(e)===pL)return[];var t=p$(e);return[pq(e),t,pq(t)]}(m)),y=[m].concat(b).reduce(function(e,i){var n,r,o,s,a,l,h,f,m,v,b,y;return e.concat(pB(i)===pL?(r=(n={placement:i,boundary:d,rootBoundary:c,padding:u,flipVariations:p,allowedAutoPlacements:g}).placement,o=n.boundary,s=n.rootBoundary,a=n.padding,l=n.flipVariations,f=void 0===(h=n.allowedAutoPlacements)?pI:h,0===(b=(v=(m=pH(r))?l?pT:pT.filter(function(e){return pH(e)===m}):pM).filter(function(e){return f.indexOf(e)>=0})).length&&(b=v),Object.keys(y=b.reduce(function(e,i){return e[i]=p0(t,{placement:i,boundary:o,rootBoundary:s,padding:a})[pB(i)],e},{})).sort(function(e,t){return y[e]-y[t]})):i)},[]),_=t.rects.reference,w=t.rects.popper,C=new Map,S=!0,x=y[0],k=0;k=0,D=N?"width":"height",A=p0(t,{placement:E,boundary:d,rootBoundary:c,altBoundary:h,padding:u}),T=N?M?pk:pE:M?px:"top";_[D]>w[D]&&(T=p$(T));var I=p$(T),O=[];if(o&&O.push(A[L]<=0),a&&O.push(A[T]<=0,A[I]<=0),O.every(function(e){return e})){x=E,S=!1;break}C.set(E,O)}if(S)for(var P=p?3:1,R=function(e){var t=y.find(function(t){var i=C.get(t);if(i)return i.slice(0,e).every(function(e){return e})});if(t)return x=t,"break"},F=P;F>0&&"break"!==R(F);F--);t.placement!==x&&(t.modifiersData[n]._skip=!0,t.placement=x,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name,r=i.mainAxis,o=i.altAxis,s=i.boundary,a=i.rootBoundary,l=i.altBoundary,u=i.padding,d=i.tether,c=void 0===d||d,h=i.tetherOffset,f=void 0===h?0:h,p=p0(t,{boundary:s,rootBoundary:a,padding:u,altBoundary:l}),g=pB(t.placement),m=pH(t.placement),v=!m,b=pz(g),y="x"===b?"y":"x",_=t.modifiersData.popperOffsets,w=t.rects.reference,C=t.rects.popper,S="function"==typeof f?f(Object.assign({},t.rects,{placement:t.placement})):f,x="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(_){if(void 0===r||r){var L,M="y"===b?"top":pE,N="y"===b?px:pk,D="y"===b?"height":"width",A=_[b],T=A+p[M],I=A-p[N],O=c?-C[D]/2:0,P=m===pN?w[D]:C[D],R=m===pN?-C[D]:-w[D],F=t.elements.arrow,B=c&&F?py(F):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:pJ(),z=H[M],V=H[N],j=p1(0,w[D],B[D]),W=v?w[D]/2-O-j-z-x.mainAxis:P-j-z-x.mainAxis,U=v?-w[D]/2+O+j+V+x.mainAxis:R+j+V+x.mainAxis,$=t.elements.arrow&&pS(t.elements.arrow),K=$?"y"===b?$.clientTop||0:$.clientLeft||0:0,q=null!=(L=null==k?void 0:k[b])?L:0,G=A+W-q-K,Z=A+U-q,Y=p1(c?pl(T,G):T,A,c?pa(I,Z):I);_[b]=Y,E[b]=Y-A}if(void 0!==o&&o){var J,Q,X="x"===b?"top":pE,ee="x"===b?px:pk,et=_[y],ei="y"===y?"height":"width",en=et+p[X],er=et-p[ee],eo=-1!==["top",pE].indexOf(g),es=null!=(Q=null==k?void 0:k[y])?Q:0,ea=eo?en:et-w[ei]-C[ei]-es+x.altAxis,el=eo?et+w[ei]+C[ei]-es-x.altAxis:er,eu=c&&eo?(J=p1(ea,et,el))>el?el:J:p1(c?ea:en,et,c?el:er);_[y]=eu,E[y]=eu-et}t.modifiersData[n]=E}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i,n=e.state,r=e.name,o=e.options,s=n.elements.arrow,a=n.modifiersData.popperOffsets,l=pB(n.placement),u=pz(l),d=[pE,pk].indexOf(l)>=0?"height":"width";if(s&&a){var c=pQ("number"!=typeof(t="function"==typeof(t=o.padding)?t(Object.assign({},n.rects,{placement:n.placement})):t)?t:pX(t,pM)),h=py(s),f="y"===u?"top":pE,p="y"===u?px:pk,g=n.rects.reference[d]+n.rects.reference[u]-a[u]-n.rects.popper[d],m=a[u]-n.rects.reference[u],v=pS(s),b=v?"y"===u?v.clientHeight||0:v.clientWidth||0:0,y=c[f],_=b-h[d]-c[p],w=b/2-h[d]/2+(g/2-m/2),C=p1(y,w,_);n.modifiersData[r]=((i={})[u]=C,i.centerOffset=C-w,i)}},effect:function(e){var t=e.state,i=e.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&pG(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,i=e.name,n=t.rects.reference,r=t.rects.popper,o=t.modifiersData.preventOverflow,s=p0(t,{elementContext:"reference"}),a=p0(t,{altBoundary:!0}),l=p2(s,n),u=p2(a,r,o),d=p6(l),c=p6(u);t.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:c},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":c})}}]});function p8(e={}){let{enabled:t=!0,modifiers:i,placement:n="bottom",strategy:r="absolute",arrowPadding:o=8,eventListeners:s=!0,offset:a,gutter:l=8,flip:u=!0,boundary:d="clippingParents",preventOverflow:c=!0,matchWidth:h,direction:f="ltr"}=e,p=(0,R.useRef)(null),g=(0,R.useRef)(null),m=(0,R.useRef)(null),v=function(e,t="ltr"){var i,n;let r=(null==(i=pt[e])?void 0:i[t])||e;return"ltr"===t?r:null!=(n=pi[e])?n:r}(n,f),b=(0,R.useRef)(()=>{}),y=(0,R.useCallback)(()=>{var e;t&&p.current&&g.current&&(null==(e=b.current)||e.call(b),m.current=p3(p.current,g.current,{placement:v,modifiers:[f7,f5,f3,{...f6,enabled:!!h},{name:"eventListeners",..."object"==typeof s?{enabled:!0,options:{...f2,...s}}:{enabled:s,options:f2}},{name:"arrow",options:{padding:o}},{name:"offset",options:{offset:null!=a?a:[0,l]}},{name:"flip",enabled:!!u,options:{padding:8}},{name:"preventOverflow",enabled:!!c,options:{boundary:d}},...null!=i?i:[]],strategy:r}),m.current.forceUpdate(),b.current=m.current.destroy)},[v,t,i,h,s,o,a,l,u,c,d,r]);(0,R.useEffect)(()=>()=>{var e;p.current||g.current||(null==(e=m.current)||e.destroy(),m.current=null)},[]);let _=(0,R.useCallback)(e=>{p.current=e,y()},[y]),w=(0,R.useCallback)((e={},t=null)=>({...e,ref:aN(_,t)}),[_]),C=(0,R.useCallback)(e=>{g.current=e,y()},[y]),S=(0,R.useCallback)((e={},t=null)=>({...e,ref:aN(C,t),style:{...e.style,position:r,minWidth:h?void 0:"max-content",inset:"0 auto auto 0"}}),[r,C,h]),x=(0,R.useCallback)((e={},t=null)=>{let{size:i,shadowColor:n,bg:r,style:o,...s}=e;return{...s,ref:t,"data-popper-arrow":"",style:function(e){let{size:t,shadowColor:i,bg:n,style:r}=e,o={...r,position:"absolute"};return t&&(o["--popper-arrow-size"]=t),i&&(o["--popper-arrow-shadow-color"]=i),n&&(o["--popper-arrow-bg"]=n),o}(e)}},[]),k=(0,R.useCallback)((e={},t=null)=>({...e,ref:t,"data-popper-arrow-inner":""}),[]);return{update(){var e;null==(e=m.current)||e.update()},forceUpdate(){var e;null==(e=m.current)||e.forceUpdate()},transformOrigin:fX.transformOrigin.varRef,referenceRef:_,popperRef:C,getPopperProps:S,getArrowProps:x,getArrowInnerProps:k,getReferenceProps:w}}function p5(e={}){let{onClose:t,onOpen:i,isOpen:n,id:r}=e,o=sg(i),s=sg(t),[a,l]=(0,R.useState)(e.defaultIsOpen||!1),u=void 0!==n?n:a,d=void 0!==n,c=(0,R.useId)(),h=null!=r?r:`disclosure-${c}`,f=(0,R.useCallback)(()=>{d||l(!1),null==s||s()},[d,s]),p=(0,R.useCallback)(()=>{d||l(!0),null==o||o()},[d,o]),g=(0,R.useCallback)(()=>{u?f():p()},[u,p,f]);return{isOpen:u,onOpen:p,onClose:f,onToggle:g,isControlled:d,getButtonProps:function(e={}){return{...e,"aria-expanded":u,"aria-controls":h,onClick(t){var i;null==(i=e.onClick)||i.call(e,t),g()}}},getDisclosureProps:function(e={}){return{...e,hidden:!u,id:h}}}}function p4(e,t){var i;let n=e.target;return(!n||!!p9(n).contains(n))&&!(null==(i=t.current)?void 0:i.contains(n))}function p9(e){var t;return null!=(t=null==e?void 0:e.ownerDocument)?t:document}function p7(e){let{isOpen:t,ref:i}=e,[n,r]=(0,R.useState)(t),[o,s]=(0,R.useState)(!1);return(0,R.useEffect)(()=>{o||(r(t),s(!0))},[t,o,n]),uE(()=>i.current,"animationend",()=>{r(t)}),{present:!(!t&&!n),onComplete(){var e,t,n;let r=new(null!=(n=null==(t=ce(i.current))?void 0:t.defaultView)?n:window).CustomEvent("animationend",{bubbles:!0});null==(e=i.current)||e.dispatchEvent(r)}}}function ge(e){let{wasSelected:t,enabled:i,isSelected:n,mode:r="unmount"}=e;return!i||!!n||"keepMounted"===r&&!!t}var[gt,gi,gn,gr]=aT(),[go,gs]=F({strict:!1,name:"MenuContext"});function ga(e){var t;return null!=(t=null==e?void 0:e.ownerDocument)?t:document}function gl(e){return ga(e).activeElement===e}function gu(e={}){let{id:t,closeOnSelect:i=!0,closeOnBlur:n=!0,initialFocusRef:r,autoSelect:o=!0,isLazy:s,isOpen:a,defaultIsOpen:l,onClose:u,onOpen:d,placement:c="bottom-start",lazyBehavior:h="unmount",direction:f,computePositionOnMount:p=!1,...g}=e,m=(0,R.useRef)(null),v=(0,R.useRef)(null),b=gn(),y=(0,R.useCallback)(()=>{requestAnimationFrame(()=>{var e;null==(e=m.current)||e.focus({preventScroll:!1})})},[]),_=(0,R.useCallback)(()=>{let e=setTimeout(()=>{var e;if(r)null==(e=r.current)||e.focus();else{let e=b.firstEnabled();e&&M(e.index)}});I.current.add(e)},[b,r]),w=(0,R.useCallback)(()=>{let e=setTimeout(()=>{let e=b.lastEnabled();e&&M(e.index)});I.current.add(e)},[b]),{isOpen:C,onOpen:S,onClose:x,onToggle:k}=p5({isOpen:a,defaultIsOpen:l,onClose:u,onOpen:(0,R.useCallback)(()=>{null==d||d(),o?_():y()},[o,_,y,d])});!function(e){let{ref:t,handler:i,enabled:n=!0}=e,r=sg(i),o=(0,R.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;(0,R.useEffect)(()=>{if(!n)return;let e=e=>{p4(e,t)&&(o.isPointerDown=!0)},s=e=>{if(o.ignoreEmulatedMouseEvents){o.ignoreEmulatedMouseEvents=!1;return}o.isPointerDown&&i&&p4(e,t)&&(o.isPointerDown=!1,r(e))},a=e=>{o.ignoreEmulatedMouseEvents=!0,i&&o.isPointerDown&&p4(e,t)&&(o.isPointerDown=!1,r(e))},l=p9(t.current);return l.addEventListener("mousedown",e,!0),l.addEventListener("mouseup",s,!0),l.addEventListener("touchstart",e,!0),l.addEventListener("touchend",a,!0),()=>{l.removeEventListener("mousedown",e,!0),l.removeEventListener("mouseup",s,!0),l.removeEventListener("touchstart",e,!0),l.removeEventListener("touchend",a,!0)}},[i,t,r,o,n])}({enabled:C&&n,ref:m,handler:e=>{var t;(null==(t=v.current)?void 0:t.contains(e.target))||x()}});let E=p8({...g,enabled:C||p,placement:c,direction:f}),[L,M]=(0,R.useState)(-1);sm(()=>{C||M(-1)},[C]),fY(m,{focusRef:v,visible:C,shouldFocus:!0});let N=p7({isOpen:C,ref:m}),[D,A]=function(e,...t){let i=(0,R.useId)(),n=e||i;return(0,R.useMemo)(()=>t.map(e=>`${e}-${n}`),[n,t])}(t,"menu-button","menu-list"),T=(0,R.useCallback)(()=>{S(),y()},[S,y]),I=(0,R.useRef)(new Set([]));!function(e,t=[]){(0,R.useEffect)(()=>()=>e(),t)}(()=>{I.current.forEach(e=>clearTimeout(e)),I.current.clear()});let O=(0,R.useCallback)(()=>{S(),_()},[_,S]),P=(0,R.useCallback)(()=>{S(),w()},[S,w]),F=(0,R.useCallback)(()=>{var e,t;let i=ga(m.current),n=null==(e=m.current)?void 0:e.contains(i.activeElement);if(!(C&&!n))return;let r=null==(t=b.item(L))?void 0:t.node;null==r||r.focus()},[C,L,b]),B=(0,R.useRef)(null);return{openAndFocusMenu:T,openAndFocusFirstItem:O,openAndFocusLastItem:P,onTransitionEnd:F,unstable__animationState:N,descendants:b,popper:E,buttonId:D,menuId:A,forceUpdate:E.forceUpdate,orientation:"vertical",isOpen:C,onToggle:k,onOpen:S,onClose:x,menuRef:m,buttonRef:v,focusedIndex:L,closeOnSelect:i,closeOnBlur:n,autoSelect:o,setFocusedIndex:M,isLazy:s,lazyBehavior:h,initialFocusRef:r,rafId:B}}function gd(e={},t=null){let i=gs(),{onToggle:n,popper:r,openAndFocusFirstItem:o,openAndFocusLastItem:s}=i,a=(0,R.useCallback)(e=>{let t={Enter:o,ArrowDown:o,ArrowUp:s}[e.key];t&&(e.preventDefault(),e.stopPropagation(),t(e))},[o,s]);return{...e,ref:aN(i.buttonRef,t,r.referenceRef),id:i.buttonId,"data-active":Y(i.isOpen),"aria-expanded":i.isOpen,"aria-haspopup":"menu","aria-controls":i.menuId,onClick:Q(e.onClick,n),onKeyDown:Q(e.onKeyDown,a)}}function gc(e){var t;return function(e){var t;if(!(null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE))return!1;let i=null!=(t=e.ownerDocument.defaultView)?t:window;return e instanceof i.HTMLElement}(e)&&!!(null==(t=null==e?void 0:e.getAttribute("role"))?void 0:t.startsWith("menuitem"))}function gh(e={},t=null){let i=gs();if(!i)throw Error("useMenuContext: context is undefined. Seems you forgot to wrap component within ");let{focusedIndex:n,setFocusedIndex:r,menuRef:o,isOpen:s,onClose:a,menuId:l,isLazy:u,lazyBehavior:d,unstable__animationState:c}=i,h=gi(),f=function(e={}){let{timeout:t=300,preventDefault:i=()=>!0}=e,[n,r]=(0,R.useState)([]),o=(0,R.useRef)(),s=()=>{o.current&&(clearTimeout(o.current),o.current=null)},a=()=>{s(),o.current=setTimeout(()=>{r([]),o.current=null},t)};return(0,R.useEffect)(()=>s,[]),function(e){return t=>{if("Backspace"===t.key){let e=[...n];e.pop(),r(e);return}if(function(e){let{key:t}=e;return 1===t.length||t.length>1&&/[^a-zA-Z0-9]/.test(t)}(t)){let o=n.concat(t.key);i(t)&&(t.preventDefault(),t.stopPropagation()),r(o),e(o.join("")),a()}}}}({preventDefault:e=>" "!==e.key&&gc(e.target)}),p=(0,R.useCallback)(e=>{let t={Tab:e=>e.preventDefault(),Escape:a,ArrowDown:()=>{let e=h.nextEnabled(n);e&&r(e.index)},ArrowUp:()=>{let e=h.prevEnabled(n);e&&r(e.index)}}[e.key];if(t){e.preventDefault(),t(e);return}let i=f(e=>{let t=function(e,t,i,n){if(null==t)return n;if(!n)return e.find(e=>i(e).toLowerCase().startsWith(t.toLowerCase()));let r=e.filter(e=>i(e).toLowerCase().startsWith(t.toLowerCase()));if(r.length>0){let t;return r.includes(n)?((t=r.indexOf(n)+1)===r.length&&(t=0),r[t]):(t=e.indexOf(r[0]),e[t])}return n}(h.values(),e,e=>{var t,i;return null!=(i=null==(t=null==e?void 0:e.node)?void 0:t.textContent)?i:""},h.item(n));t&&r(h.indexOf(t.node))});gc(e.target)&&i(e)},[h,n,f,a,r]),g=(0,R.useRef)(!1);s&&(g.current=!0);let m=ge({wasSelected:g.current,enabled:u,mode:d,isSelected:c.present});return{...e,ref:aN(o,t),children:m?e.children:null,tabIndex:-1,role:"menu",id:l,style:{...e.style,transformOrigin:"var(--popper-transform-origin)"},"aria-orientation":"vertical",onKeyDown:Q(e.onKeyDown,p)}}function gf(e={}){let{popper:t,isOpen:i}=gs();return t.getPopperProps({...e,style:{visibility:i?"visible":"hidden",...e.style}})}function gp(e={},t=null){let{onMouseEnter:i,onMouseMove:n,onMouseLeave:r,onClick:o,onFocus:s,isDisabled:a,isFocusable:l,closeOnSelect:u,type:d,...c}=e,{setFocusedIndex:h,focusedIndex:f,closeOnSelect:p,onClose:g,menuRef:m,isOpen:v,menuId:b,rafId:y}=gs(),_=(0,R.useRef)(null),w=`${b}-menuitem-${(0,R.useId)()}`,{index:C,register:S}=gr({disabled:a&&!l}),x=(0,R.useCallback)(e=>{null==i||i(e),a||h(C)},[h,C,a,i]),k=(0,R.useCallback)(e=>{null==n||n(e),_.current&&!gl(_.current)&&x(e)},[x,n]),E=(0,R.useCallback)(e=>{null==r||r(e),a||h(-1)},[h,a,r]),L=(0,R.useCallback)(e=>{null==o||o(e),gc(e.currentTarget)&&(null!=u?u:p)&&g()},[g,o,p,u]),M=(0,R.useCallback)(e=>{null==s||s(e),h(C)},[h,s,C]),N=C===f,D=a&&!l;sm(()=>{v&&(N&&!D&&_.current?(y.current&&cancelAnimationFrame(y.current),y.current=requestAnimationFrame(()=>{var e;null==(e=_.current)||e.focus(),y.current=null})):m.current&&!gl(m.current)&&m.current.focus({preventScroll:!0}))},[N,D,m,v]);let A=fZ({onClick:L,onFocus:M,onMouseEnter:x,onMouseMove:k,onMouseLeave:E,ref:aN(S,_,t),isDisabled:a,isFocusable:l});return{...c,...A,type:null!=d?d:A.type,id:w,role:"menuitem",tabIndex:N?0:-1}}function gg(e={},t=null){let{type:i="radio",isChecked:n,...r}=e;return{...gp(r,t),role:`menuitem${i}`,"aria-checked":n}}function gm(e={}){let{children:t,type:i="radio",value:n,defaultValue:r,onChange:o,...s}=e,a="radio"===i,[l,u]=aj({defaultValue:null!=r?r:a?"":[],value:n,onChange:o}),d=(0,R.useCallback)(e=>{"radio"===i&&"string"==typeof l&&u(e),"checkbox"===i&&Array.isArray(l)&&u(l.includes(e)?l.filter(t=>t!==e):l.concat(e))},[l,u,i]),c=lu(t).map(e=>{if("MenuItemOption"!==e.type.id)return e;let t="radio"===i?e.props.value===l:l.includes(e.props.value);return(0,R.cloneElement)(e,{type:i,onClick:t=>{var i,n;d(e.props.value),null==(n=(i=e.props).onClick)||n.call(i,t)},isChecked:t})});return{...s,children:c}}function gv(){let{isOpen:e,onClose:t}=gs();return{isOpen:e,onClose:t}}var[gb,gy]=F({name:"MenuStylesContext",errorMessage:"useMenuStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),g_=e=>{let{children:t}=e,i=s$("Menu",e),n=tL(e),{direction:r}=sA(),{descendants:o,...s}=gu({...n,direction:r}),a=(0,R.useMemo)(()=>s,[s]),{isOpen:l,onClose:u,forceUpdate:d}=a;return(0,A.jsx)(gt,{value:o,children:(0,A.jsx)(go,{value:a,children:(0,A.jsx)(gb,{value:i,children:G(t,{isOpen:l,onClose:u,forceUpdate:d})})})})};g_.displayName="Menu";var gw=sD((e,t)=>{let i=gy();return(0,A.jsx)(sE.span,{ref:t,...e,__css:i.command,className:"chakra-menu__command"})});gw.displayName="MenuCommand";var gC=sD((e,t)=>{let{type:i,...n}=e,r=gy(),o=n.as||i?null!=i?i:void 0:"button",s=(0,R.useMemo)(()=>({textDecoration:"none",color:"inherit",userSelect:"none",display:"flex",width:"100%",alignItems:"center",textAlign:"start",flex:"0 0 auto",outline:0,...r.item}),[r.item]);return(0,A.jsx)(sE.button,{ref:t,type:o,...n,__css:s})}),gS=e=>{let{className:t,children:i,...n}=e,r=R.Children.only(i),o=(0,R.isValidElement)(r)?(0,R.cloneElement)(r,{focusable:"false","aria-hidden":!0,className:$("chakra-menu__icon",r.props.className)}):null,s=$("chakra-menu__icon-wrapper",t);return(0,A.jsx)(sE.span,{className:s,...n,__css:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:o})};gS.displayName="MenuIcon";var gx=sD((e,t)=>{let{icon:i,iconSpacing:n="0.75rem",command:r,commandSpacing:o="0.75rem",children:s,...a}=e,l=gp(a,t),u=i||r?(0,A.jsx)("span",{style:{pointerEvents:"none",flex:1},children:s}):s;return(0,A.jsxs)(gC,{...l,className:$("chakra-menu__menuitem",l.className),children:[i&&(0,A.jsx)(gS,{fontSize:"0.8em",marginEnd:n,children:i}),u,r&&(0,A.jsx)(gw,{marginStart:o,children:r})]})});gx.displayName="MenuItem";var gk={enter:{visibility:"visible",opacity:1,scale:1,transition:{duration:.2,ease:[.4,0,.2,1]}},exit:{transitionEnd:{visibility:"hidden"},opacity:0,scale:.8,transition:{duration:.1,easings:"easeOut"}}},gE=sE(sb.E.div),gL=sD(function(e,t){var i,n;let{rootProps:r,motionProps:o,...s}=e,{isOpen:a,onTransitionEnd:l,unstable__animationState:u}=gs(),d=gh(s,t),c=gf(r),h=gy();return(0,A.jsx)(sE.div,{...c,__css:{zIndex:null!=(n=e.zIndex)?n:null==(i=h.list)?void 0:i.zIndex},children:(0,A.jsx)(gE,{variants:gk,initial:!1,animate:a?"enter":"exit",__css:{outline:0,...h.list},...o,className:$("chakra-menu__menu-list",d.className),...d,onUpdate:l,onAnimationComplete:X(u.onComplete,d.onAnimationComplete)})})});gL.displayName="MenuList";var gM=sD((e,t)=>{let{title:i,children:n,className:r,...o}=e,s=$("chakra-menu__group__title",r),a=gy();return(0,A.jsxs)("div",{ref:t,className:"chakra-menu__group",role:"group",children:[i&&(0,A.jsx)(sE.p,{className:s,...o,__css:a.groupTitle,children:i}),n]})});gM.displayName="MenuGroup";var gN=e=>{let{className:t,title:i,...n}=e,r=gm(n);return(0,A.jsx)(gM,{title:i,className:$("chakra-menu__option-group",t),...r})};gN.displayName="MenuOptionGroup";var gD=sD((e,t)=>{let i=gy();return(0,A.jsx)(sE.button,{ref:t,...e,__css:{display:"inline-flex",appearance:"none",alignItems:"center",outline:0,...i.button}})}),gA=sD((e,t)=>{let{children:i,as:n,...r}=e,o=gd(r,t),s=n||gD;return(0,A.jsx)(s,{...o,className:$("chakra-menu__menu-button",e.className),children:(0,A.jsx)(sE.span,{__css:{pointerEvents:"none",flex:"1 1 auto",minW:0},children:e.children})})});gA.displayName="MenuButton";var gT=e=>{let{className:t,...i}=e,n=gy();return(0,A.jsx)(sE.hr,{"aria-orientation":"horizontal",className:$("chakra-menu__divider",t),...i,__css:n.divider})};gT.displayName="MenuDivider";var gI=e=>(0,A.jsx)("svg",{viewBox:"0 0 14 14",width:"1em",height:"1em",...e,children:(0,A.jsx)("polygon",{fill:"currentColor",points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"})}),gO=sD((e,t)=>{let{icon:i,iconSpacing:n="0.75rem",...r}=e,o=gg(r,t);return(0,A.jsxs)(gC,{...o,className:$("chakra-menu__menuitem-option",r.className),children:[null!==i&&(0,A.jsx)(gS,{fontSize:"0.8em",marginEnd:n,opacity:e.isChecked?1:0,children:i||(0,A.jsx)(gI,{})}),(0,A.jsx)("span",{style:{flex:1},children:o.children})]})});gO.id="MenuItemOption",gO.displayName="MenuItemOption";var gP={initial:"initial",animate:"enter",exit:"exit",variants:{initial:({offsetX:e,offsetY:t,transition:i,transitionEnd:n,delay:r})=>{var o;return{opacity:0,x:e,y:t,transition:null!=(o=null==i?void 0:i.exit)?o:aX.exit(aQ.exit,r),transitionEnd:null==n?void 0:n.exit}},enter:({transition:e,transitionEnd:t,delay:i})=>{var n;return{opacity:1,x:0,y:0,transition:null!=(n=null==e?void 0:e.enter)?n:aX.enter(aQ.enter,i),transitionEnd:null==t?void 0:t.enter}},exit:({offsetY:e,offsetX:t,transition:i,transitionEnd:n,reverse:r,delay:o})=>{var s;let a={x:t,y:e};return{opacity:0,transition:null!=(s=null==i?void 0:i.exit)?s:aX.exit(aQ.exit,o),...r?{...a,transitionEnd:null==n?void 0:n.exit}:{transitionEnd:{...a,...null==n?void 0:n.exit}}}}}},gR=(0,R.forwardRef)(function(e,t){let{unmountOnExit:i,in:n,reverse:r=!0,className:o,offsetX:s=0,offsetY:a=8,transition:l,transitionEnd:u,delay:d,...c}=e,h={offsetX:s,offsetY:a,reverse:r,transition:l,transitionEnd:u,delay:d};return(0,A.jsx)(ar.M,{custom:h,children:(!i||n&&i)&&(0,A.jsx)(sb.E.div,{ref:t,className:$("chakra-offset-slide",o),custom:h,...gP,animate:n||i?"enter":"exit",...c})})});gR.displayName="SlideFade";var gF={initial:"exit",animate:"enter",exit:"exit",variants:{exit:({reverse:e,initialScale:t,transition:i,transitionEnd:n,delay:r})=>{var o;return{opacity:0,...e?{scale:t,transitionEnd:null==n?void 0:n.exit}:{transitionEnd:{scale:t,...null==n?void 0:n.exit}},transition:null!=(o=null==i?void 0:i.exit)?o:aX.exit(aQ.exit,r)}},enter:({transitionEnd:e,transition:t,delay:i})=>{var n;return{opacity:1,scale:1,transition:null!=(n=null==t?void 0:t.enter)?n:aX.enter(aQ.enter,i),transitionEnd:null==e?void 0:e.enter}}}},gB=(0,R.forwardRef)(function(e,t){let{unmountOnExit:i,in:n,reverse:r=!0,initialScale:o=.95,className:s,transition:a,transitionEnd:l,delay:u,...d}=e,c={initialScale:o,reverse:r,transition:a,transitionEnd:l,delay:u};return(0,A.jsx)(ar.M,{custom:c,children:(!i||n&&i)&&(0,A.jsx)(sb.E.div,{ref:t,className:$("chakra-offset-slide",s),...gF,animate:n||i?"enter":"exit",custom:c,...d})})});gB.displayName="ScaleFade";var gH={slideInBottom:{...gP,custom:{offsetY:16,reverse:!0}},slideInRight:{...gP,custom:{offsetX:16,reverse:!0}},scale:{...gF,custom:{initialScale:.95,reverse:!0}},none:{}},gz=sE(sb.E.section),gV=e=>gH[e||"none"],gj=(0,R.forwardRef)((e,t)=>{let{preset:i,motionProps:n=gV(i),...r}=e;return(0,A.jsx)(gz,{ref:t,...n,...r})});gj.displayName="ModalTransition";var gW=Object.defineProperty,gU=(e,t,i)=>t in e?gW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,g$=(e,t,i)=>(gU(e,"symbol"!=typeof t?t+"":t,i),i),gK=new class{constructor(){g$(this,"modals"),this.modals=new Map}add(e){return this.modals.set(e,this.modals.size+1),this.modals.size}remove(e){this.modals.delete(e)}isTopModal(e){return!!e&&this.modals.get(e)===this.modals.size}};function gq(e,t){let[i,n]=(0,R.useState)(0);return(0,R.useEffect)(()=>{let i=e.current;if(i)return t&&n(gK.add(i)),()=>{gK.remove(i),n(0)}},[t,e]),i}var gG=new WeakMap,gZ=new WeakMap,gY={},gJ=0,gQ=function(e){return e&&(e.host||gQ(e.parentNode))},gX=function(e,t,i,n){var r=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var i=gQ(e);return i&&t.contains(i)?i:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});gY[i]||(gY[i]=new WeakMap);var o=gY[i],s=[],a=new Set,l=new Set(r),u=function(e){!e||a.has(e)||(a.add(e),u(e.parentNode))};r.forEach(u);var d=function(e){!e||l.has(e)||Array.prototype.forEach.call(e.children,function(e){if(a.has(e))d(e);else{var t=e.getAttribute(n),r=null!==t&&"false"!==t,l=(gG.get(e)||0)+1,u=(o.get(e)||0)+1;gG.set(e,l),o.set(e,u),s.push(e),1===l&&r&&gZ.set(e,!0),1===u&&e.setAttribute(i,"true"),r||e.setAttribute(n,"true")}})};return d(t),a.clear(),gJ++,function(){s.forEach(function(e){var t=gG.get(e)-1,r=o.get(e)-1;gG.set(e,t),o.set(e,r),t||(gZ.has(e)||e.removeAttribute(n),gZ.delete(e)),r||e.removeAttribute(i)}),--gJ||(gG=new WeakMap,gG=new WeakMap,gZ=new WeakMap,gY={})}},g0=function(e,t,i){void 0===i&&(i="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),r=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return r?(n.push.apply(n,Array.from(r.querySelectorAll("[aria-live]"))),gX(n,r,i,"aria-hidden")):function(){return null}};function g1(e){var t;let i,{isOpen:n,onClose:r,id:o,closeOnOverlayClick:s=!0,closeOnEsc:a=!0,useInert:l=!0,onOverlayClick:u,onEsc:d}=e,c=(0,R.useRef)(null),h=(0,R.useRef)(null),[f,p,g]=function(e,...t){let i=(0,R.useId)(),n=e||i;return(0,R.useMemo)(()=>t.map(e=>`${e}-${n}`),[n,t])}(o,"chakra-modal","chakra-modal--header","chakra-modal--body");t=n&&l,i=c.current,(0,R.useEffect)(()=>{if(c.current&&t)return g0(c.current)},[t,c,i]),gq(c,n);let m=(0,R.useRef)(null),v=(0,R.useCallback)(e=>{m.current=e.target},[]),b=(0,R.useCallback)(e=>{"Escape"===e.key&&(e.stopPropagation(),a&&(null==r||r()),null==d||d())},[a,r,d]),[y,_]=(0,R.useState)(!1),[w,C]=(0,R.useState)(!1),S=(0,R.useCallback)((e={},t=null)=>({role:"dialog",...e,ref:aN(t,c),id:f,tabIndex:-1,"aria-modal":!0,"aria-labelledby":y?p:void 0,"aria-describedby":w?g:void 0,onClick:Q(e.onClick,e=>e.stopPropagation())}),[g,w,f,p,y]),x=(0,R.useCallback)(e=>{e.stopPropagation(),m.current===e.target&&gK.isTopModal(c.current)&&(s&&(null==r||r()),null==u||u())},[r,s,u]),k=(0,R.useCallback)((e={},t=null)=>({...e,ref:aN(t,h),onClick:Q(e.onClick,x),onKeyDown:Q(e.onKeyDown,b),onMouseDown:Q(e.onMouseDown,v)}),[b,v,x]);return{isOpen:n,onClose:r,headerId:p,bodyId:g,setBodyMounted:C,setHeaderMounted:_,dialogRef:c,overlayRef:h,getDialogProps:S,getDialogContainerProps:k}}var[g2,g6]=F({name:"ModalStylesContext",errorMessage:"useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),[g3,g8]=F({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in ``"}),g5=e=>{let t={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale",lockFocusAcrossFrames:!0,...e},{portalProps:i,children:n,autoFocus:r,trapFocus:o,initialFocusRef:s,finalFocusRef:a,returnFocusOnClose:l,blockScrollOnMount:u,allowPinchZoom:d,preserveScrollBarGap:c,motionPreset:h,lockFocusAcrossFrames:f,onCloseComplete:p}=t,g=s$("Modal",t),m={...g1(t),autoFocus:r,trapFocus:o,initialFocusRef:s,finalFocusRef:a,returnFocusOnClose:l,blockScrollOnMount:u,allowPinchZoom:d,preserveScrollBarGap:c,motionPreset:h,lockFocusAcrossFrames:f};return(0,A.jsx)(g3,{value:m,children:(0,A.jsx)(g2,{value:g,children:(0,A.jsx)(ar.M,{onExitComplete:p,children:m.isOpen&&(0,A.jsx)(ah,{...i,children:n})})})})};g5.displayName="Modal";var g4="right-scroll-bar-position",g9="width-before-scroll-bar",g7=uG(),me=function(){},mt=R.forwardRef(function(e,t){var i=R.useRef(null),n=R.useState({onScrollCapture:me,onWheelCapture:me,onTouchMoveCapture:me}),r=n[0],o=n[1],s=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,c=e.shards,h=e.sideCar,f=e.noIsolation,p=e.inert,g=e.allowPinchZoom,m=e.as,v=void 0===m?"div":m,b=e.gapMode,y=(0,uU._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=uV([i,t]),w=(0,uU.pi)((0,uU.pi)({},y),r);return R.createElement(R.Fragment,null,d&&R.createElement(h,{sideCar:g7,removeScrollBar:u,shards:c,noIsolation:f,inert:p,setCallbacks:o,allowPinchZoom:!!g,lockRef:i,gapMode:b}),s?R.cloneElement(R.Children.only(a),(0,uU.pi)((0,uU.pi)({},w),{ref:_})):R.createElement(v,(0,uU.pi)({},w,{className:l,ref:_}),a))});mt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},mt.classNames={fullWidth:g9,zeroRight:g4};var mi=function(e){var t=e.sideCar,i=(0,uU._T)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw Error("Sidecar medium not found");return R.createElement(n,(0,uU.pi)({},i))};mi.isSideCarExport=!0;var mn=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=N||i.nc;return t&&e.setAttribute("nonce",t),e}())){var r,o;(r=t).styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},mr=function(){var e=mn();return function(t,i){R.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&i])}},mo=function(){var e=mr();return function(t){return e(t.styles,t.dynamic),null}},ms={left:0,top:0,right:0,gap:0},ma=function(e){return parseInt(e||"",10)||0},ml=function(e){var t=window.getComputedStyle(document.body),i=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],r=t["padding"===e?"paddingRight":"marginRight"];return[ma(i),ma(n),ma(r)]},mu=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return ms;var t=ml(e),i=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-i+t[2]-t[0])}},md=mo(),mc=function(e,t,i,n){var r=e.left,o=e.top,s=e.right,a=e.gap;return void 0===i&&(i="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(a,"px ").concat(n,";\n }\n body {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(n,";"),"margin"===i&&"\n padding-left: ".concat(r,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(s,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(a,"px ").concat(n,";\n "),"padding"===i&&"padding-right: ".concat(a,"px ").concat(n,";")].filter(Boolean).join(""),"\n }\n \n .").concat(g4," {\n right: ").concat(a,"px ").concat(n,";\n }\n \n .").concat(g9," {\n margin-right: ").concat(a,"px ").concat(n,";\n }\n \n .").concat(g4," .").concat(g4," {\n right: 0 ").concat(n,";\n }\n \n .").concat(g9," .").concat(g9," {\n margin-right: 0 ").concat(n,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n }\n")},mh=function(e){var t=e.noRelative,i=e.noImportant,n=e.gapMode,r=void 0===n?"margin":n,o=R.useMemo(function(){return mu(r)},[r]);return R.createElement(md,{styles:mc(o,!t,r,i?"":"!important")})},mf=!1;if("undefined"!=typeof window)try{var mp=Object.defineProperty({},"passive",{get:function(){return mf=!0,!0}});window.addEventListener("test",mp,mp),window.removeEventListener("test",mp,mp)}catch(e){mf=!1}var mg=!!mf&&{passive:!1},mm=function(e,t){var i=window.getComputedStyle(e);return"hidden"!==i[t]&&!(i.overflowY===i.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===i[t])},mv=function(e,t){var i=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),mb(e,n)){var r=my(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==i.body)return!1},mb=function(e,t){return"v"===e?mm(t,"overflowY"):mm(t,"overflowX")},my=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},m_=function(e,t,i,n,r){var o,s=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),a=s*n,l=i.target,u=t.contains(l),d=!1,c=a>0,h=0,f=0;do{var p=my(e,l),g=p[0],m=p[1]-p[2]-s*g;(g||m)&&mb(e,l)&&(h+=m,f+=g),l=l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l))return c&&(r&&0===h||!r&&a>h)?d=!0:!c&&(r&&0===f||!r&&-a>f)&&(d=!0),d},mw=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},mC=function(e){return[e.deltaX,e.deltaY]},mS=function(e){return e&&"current"in e?e.current:e},mx=0,mk=[];let mE=(g7.useMedium(function(e){var t=R.useRef([]),i=R.useRef([0,0]),n=R.useRef(),r=R.useState(mx++)[0],o=R.useState(mo)[0],s=R.useRef(e);R.useEffect(function(){s.current=e},[e]),R.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var t=(0,uU.ev)([e.lockRef.current],(e.shards||[]).map(mS),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var a=R.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!s.current.allowPinchZoom;var r,o=mw(e),a=i.current,l="deltaX"in e?e.deltaX:a[0]-o[0],u="deltaY"in e?e.deltaY:a[1]-o[1],d=e.target,c=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===c&&"range"===d.type)return!1;var h=mv(c,d);if(!h)return!0;if(h?r=c:(r="v"===c?"h":"v",h=mv(c,d)),!h)return!1;if(!n.current&&"changedTouches"in e&&(l||u)&&(n.current=r),!r)return!0;var f=n.current||r;return m_(f,t,e,"h"===f?l:u,!0)},[]),l=R.useCallback(function(e){if(mk.length&&mk[mk.length-1]===o){var i="deltaY"in e?mC(e):mw(e),n=t.current.filter(function(t){var n;return t.name===e.type&&t.target===e.target&&(n=t.delta)[0]===i[0]&&n[1]===i[1]})[0];if(n&&n.should){e.cancelable&&e.preventDefault();return}if(!n){var r=(s.current.shards||[]).map(mS).filter(Boolean).filter(function(t){return t.contains(e.target)});(r.length>0?a(e,r[0]):!s.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),u=R.useCallback(function(e,i,n,r){var o={name:e,delta:i,target:n,should:r};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),d=R.useCallback(function(e){i.current=mw(e),n.current=void 0},[]),c=R.useCallback(function(t){u(t.type,mC(t),t.target,a(t,e.lockRef.current))},[]),h=R.useCallback(function(t){u(t.type,mw(t),t.target,a(t,e.lockRef.current))},[]);R.useEffect(function(){return mk.push(o),e.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:h}),document.addEventListener("wheel",l,mg),document.addEventListener("touchmove",l,mg),document.addEventListener("touchstart",d,mg),function(){mk=mk.filter(function(e){return e!==o}),document.removeEventListener("wheel",l,mg),document.removeEventListener("touchmove",l,mg),document.removeEventListener("touchstart",d,mg)}},[]);var f=e.removeScrollBar,p=e.inert;return R.createElement(R.Fragment,null,p?R.createElement(o,{styles:"\n .block-interactivity-".concat(r," {pointer-events: none;}\n .allow-interactivity-").concat(r," {pointer-events: all;}\n")}):null,f?R.createElement(mh,{gapMode:e.gapMode}):null)}),mi);var mL=R.forwardRef(function(e,t){return R.createElement(mt,(0,uU.pi)({},e,{ref:t,sideCar:mE}))});function mM(e){let{autoFocus:t,trapFocus:i,dialogRef:n,initialFocusRef:r,blockScrollOnMount:o,allowPinchZoom:s,finalFocusRef:a,returnFocusOnClose:l,preserveScrollBarGap:u,lockFocusAcrossFrames:d,isOpen:c}=g8(),[h,f]=(0,sv.oO)();(0,R.useEffect)(()=>{!h&&f&&setTimeout(f)},[h,f]);let p=gq(n,c);return(0,A.jsx)(ca,{autoFocus:t,isDisabled:!i,initialFocusRef:r,finalFocusRef:a,restoreFocus:l,contentRef:n,lockFocusAcrossFrames:d,children:(0,A.jsx)(mL,{removeScrollBar:!u,allowPinchZoom:s,enabled:1===p&&o,forwardProps:!0,children:e.children})})}mL.classNames=mt.classNames;var mN=sD((e,t)=>{let{className:i,children:n,containerProps:r,motionProps:o,...s}=e,{getDialogProps:a,getDialogContainerProps:l}=g8(),u=a(s,t),d=l(r),c=$("chakra-modal__content",i),h=g6(),f={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...h.dialog},p={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...h.dialogContainer},{motionPreset:g}=g8();return(0,A.jsx)(mM,{children:(0,A.jsx)(sE.div,{...d,className:"chakra-modal__content-container",tabIndex:-1,__css:p,children:(0,A.jsx)(gj,{preset:g,motionProps:o,className:c,...u,__css:f,children:n})})})});function mD(e){let{leastDestructiveRef:t,...i}=e;return(0,A.jsx)(g5,{...i,initialFocusRef:t})}mN.displayName="ModalContent";var mA=sD((e,t)=>(0,A.jsx)(mN,{ref:t,role:"alertdialog",...e})),[mT,mI]=F(),mO={start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}};function mP(e){var t;let{isOpen:i,onClose:n,placement:r="right",children:o,...s}=e,a=sA(),l=null==(t=a.components)?void 0:t.Drawer,u=function(e,t){var i,n;if(e)return null!=(n=null==(i=mO[e])?void 0:i[t])?n:e}(r,a.direction);return(0,A.jsx)(mT,{value:{placement:u},children:(0,A.jsx)(g5,{isOpen:i,onClose:n,styleConfig:l,...s,children:o})})}var mR={exit:{duration:.15,ease:aZ.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},mF={exit:({direction:e,transition:t,transitionEnd:i,delay:n})=>{var r;let{exit:o}=aJ({direction:e});return{...o,transition:null!=(r=null==t?void 0:t.exit)?r:aX.exit(mR.exit,n),transitionEnd:null==i?void 0:i.exit}},enter:({direction:e,transitionEnd:t,transition:i,delay:n})=>{var r;let{enter:o}=aJ({direction:e});return{...o,transition:null!=(r=null==i?void 0:i.enter)?r:aX.enter(mR.enter,n),transitionEnd:null==t?void 0:t.enter}}},mB=(0,R.forwardRef)(function(e,t){let{direction:i="right",style:n,unmountOnExit:r,in:o,className:s,transition:a,transitionEnd:l,delay:u,motionProps:d,...c}=e,h=Object.assign({position:"fixed"},aJ({direction:i}).position,n),f={transitionEnd:l,transition:a,direction:i,delay:u};return(0,A.jsx)(ar.M,{custom:f,children:(!r||o&&r)&&(0,A.jsx)(sb.E.div,{...c,ref:t,initial:"exit",className:$("chakra-slide",s),animate:o||r?"enter":"exit",exit:"exit",custom:f,variants:mF,style:h,...d})})});mB.displayName="Slide";var mH=sE(mB),mz=sD((e,t)=>{let{className:i,children:n,motionProps:r,containerProps:o,...s}=e,{getDialogProps:a,getDialogContainerProps:l,isOpen:u}=g8(),d=a(s,t),c=l(o),h=$("chakra-modal__content",i),f=g6(),p={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...f.dialog},g={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...f.dialogContainer},{placement:m}=mI();return(0,A.jsx)(mM,{children:(0,A.jsx)(sE.div,{...c,className:"chakra-modal__content-container",__css:g,children:(0,A.jsx)(mH,{motionProps:r,direction:m,in:u,className:h,...d,__css:p,children:n})})})});mz.displayName="DrawerContent";var mV=sD((e,t)=>{let{className:i,...n}=e,r=$("chakra-modal__footer",i),o={display:"flex",alignItems:"center",justifyContent:"flex-end",...g6().footer};return(0,A.jsx)(sE.footer,{ref:t,...n,__css:o,className:r})});mV.displayName="ModalFooter";var mj=sD((e,t)=>{let{className:i,...n}=e,{headerId:r,setHeaderMounted:o}=g8();(0,R.useEffect)(()=>(o(!0),()=>o(!1)),[o]);let s=$("chakra-modal__header",i),a={flex:0,...g6().header};return(0,A.jsx)(sE.header,{ref:t,className:s,id:r,...n,__css:a})});mj.displayName="ModalHeader";var mW={initial:"exit",animate:"enter",exit:"exit",variants:{enter:({transition:e,transitionEnd:t,delay:i}={})=>{var n;return{opacity:1,transition:null!=(n=null==e?void 0:e.enter)?n:aX.enter(aQ.enter,i),transitionEnd:null==t?void 0:t.enter}},exit:({transition:e,transitionEnd:t,delay:i}={})=>{var n;return{opacity:0,transition:null!=(n=null==e?void 0:e.exit)?n:aX.exit(aQ.exit,i),transitionEnd:null==t?void 0:t.exit}}}},mU=(0,R.forwardRef)(function(e,t){let{unmountOnExit:i,in:n,className:r,transition:o,transitionEnd:s,delay:a,...l}=e,u={transition:o,transitionEnd:s,delay:a};return(0,A.jsx)(ar.M,{custom:u,children:(!i||n&&i)&&(0,A.jsx)(sb.E.div,{ref:t,className:$("chakra-fade",r),custom:u,...mW,animate:n||i?"enter":"exit",...l})})});mU.displayName="Fade";var m$=sE(sb.E.div),mK=sD((e,t)=>{let{className:i,transition:n,motionProps:r,...o}=e,s=$("chakra-modal__overlay",i),a={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...g6().overlay},{motionPreset:l}=g8(),u="none"===l?{}:mW,d=r||u;return(0,A.jsx)(m$,{...d,__css:a,ref:t,className:s,...o})});mK.displayName="ModalOverlay";var mq=sD((e,t)=>{let{className:i,...n}=e,{bodyId:r,setBodyMounted:o}=g8();(0,R.useEffect)(()=>(o(!0),()=>o(!1)),[o]);let s=$("chakra-modal__body",i),a=g6();return(0,A.jsx)(sE.div,{ref:t,className:s,id:r,...n,__css:a.body})});mq.displayName="ModalBody";var mG=sD((e,t)=>{let{onClick:i,className:n,...r}=e,{onClose:o}=g8(),s=$("chakra-modal__close-btn",n),a=g6();return(0,A.jsx)(s9,{ref:t,__css:a.closeButton,className:s,onClick:Q(i,e=>{e.stopPropagation(),o()}),...r})});mG.displayName="ModalCloseButton";var mZ=e=>(0,A.jsx)(sG,{viewBox:"0 0 24 24",...e,children:(0,A.jsx)("path",{fill:"currentColor",d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z"})}),mY=e=>(0,A.jsx)(sG,{viewBox:"0 0 24 24",...e,children:(0,A.jsx)("path",{fill:"currentColor",d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z"})});function mJ(e,t,i,n){(0,R.useEffect)(()=>{var r;if(!e.current||!n)return;let o=null!=(r=e.current.ownerDocument.defaultView)?r:window,s=Array.isArray(t)?t:[t],a=new o.MutationObserver(e=>{for(let t of e)"attributes"===t.type&&t.attributeName&&s.includes(t.attributeName)&&i(t)});return a.observe(e.current,{attributes:!0,attributeFilter:s}),()=>a.disconnect()})}var mQ=/^[Ee0-9+\-.]$/;function mX(e){return mQ.test(e)}function m0(e={}){let{focusInputOnChange:t=!0,clampValueOnBlur:i=!0,keepWithinRange:n=!0,min:r=Number.MIN_SAFE_INTEGER,max:o=Number.MAX_SAFE_INTEGER,step:s=1,isReadOnly:a,isDisabled:l,isRequired:u,isInvalid:d,pattern:c="[0-9]*(.[0-9]+)?",inputMode:h="decimal",allowMouseWheel:f,id:p,onChange:g,precision:m,name:v,"aria-describedby":b,"aria-label":y,"aria-labelledby":_,onFocus:w,onBlur:C,onInvalid:S,getAriaValueText:x,isValidCharacter:k,format:E,parse:L,...M}=e,N=sg(w),D=sg(C),A=sg(S),T=sg(null!=k?k:mX),I=sg(x),O=uf(e),{update:P,increment:F,decrement:B}=O,[H,z]=(0,R.useState)(!1),V=!(a||l),j=(0,R.useRef)(null),W=(0,R.useRef)(null),U=(0,R.useRef)(null),$=(0,R.useRef)(null),K=(0,R.useCallback)(e=>e.split("").filter(T).join(""),[T]),q=(0,R.useCallback)(e=>{var t;return null!=(t=null==L?void 0:L(e))?t:e},[L]),G=(0,R.useCallback)(e=>{var t;return(null!=(t=null==E?void 0:E(e))?t:e).toString()},[E]);sm(()=>{O.valueAsNumber>o?null==A||A("rangeOverflow",G(O.value),O.valueAsNumber):O.valueAsNumber{if(j.current&&j.current.value!=O.value){let e=q(j.current.value);O.setValue(K(e))}},[q,K]);let Z=(0,R.useCallback)((e=s)=>{V&&F(e)},[F,V,s]),Y=(0,R.useCallback)((e=s)=>{V&&B(e)},[B,V,s]),X=function(e,t){var i;let n,[r,o]=(0,R.useState)(!1),[s,a]=(0,R.useState)(null),[l,u]=(0,R.useState)(!0),d=(0,R.useRef)(null),c=()=>clearTimeout(d.current);i=r?50:null,n=sg(()=>{"increment"===s&&e(),"decrement"===s&&t()}),(0,R.useEffect)(()=>{let e=null;return null!==i&&(e=window.setInterval(()=>n(),i)),()=>{e&&window.clearInterval(e)}},[i,n]);let h=(0,R.useCallback)(()=>{l&&e(),d.current=setTimeout(()=>{u(!1),o(!0),a("increment")},300)},[e,l]),f=(0,R.useCallback)(()=>{l&&t(),d.current=setTimeout(()=>{u(!1),o(!0),a("decrement")},300)},[t,l]),p=(0,R.useCallback)(()=>{u(!0),o(!1),c()},[]);return(0,R.useEffect)(()=>()=>c(),[]),{up:h,down:f,stop:p,isSpinning:r}}(Z,Y);mJ(U,"disabled",X.stop,X.isSpinning),mJ($,"disabled",X.stop,X.isSpinning);let ee=(0,R.useCallback)(e=>{e.nativeEvent.isComposing||(P(K(q(e.currentTarget.value))),W.current={start:e.currentTarget.selectionStart,end:e.currentTarget.selectionEnd})},[P,K,q]),et=(0,R.useCallback)(e=>{var t,i,n;null==N||N(e),W.current&&(e.target.selectionStart=null!=(i=W.current.start)?i:null==(t=e.currentTarget.value)?void 0:t.length,e.currentTarget.selectionEnd=null!=(n=W.current.end)?n:e.currentTarget.selectionStart)},[N]),ei=(0,R.useCallback)(e=>{if(e.nativeEvent.isComposing)return;!function(e,t){if(null==e.key)return!0;let i=e.ctrlKey||e.altKey||e.metaKey;return 1!==e.key.length||!!i||t(e.key)}(e,T)&&e.preventDefault();let t=en(e)*s,i={ArrowUp:()=>Z(t),ArrowDown:()=>Y(t),Home:()=>P(r),End:()=>P(o)}[e.key];i&&(e.preventDefault(),i(e))},[T,s,Z,Y,P,r,o]),en=e=>{let t=1;return(e.metaKey||e.ctrlKey)&&(t=.1),e.shiftKey&&(t=10),t},er=(0,R.useMemo)(()=>{let e=null==I?void 0:I(O.value);return null!=e?e:O.value.toString()||void 0},[O.value,I]),eo=(0,R.useCallback)(()=>{let e=O.value;""!==O.value&&(/^[eE]/.test(O.value.toString())?O.setValue(""):(O.valueAsNumbero&&(e=o),O.cast(e)))},[O,o,r]),es=(0,R.useCallback)(()=>{z(!1),i&&eo()},[i,z,eo]),ea=(0,R.useCallback)(()=>{t&&requestAnimationFrame(()=>{var e;null==(e=j.current)||e.focus()})},[t]),el=(0,R.useCallback)(e=>{e.preventDefault(),X.up(),ea()},[ea,X]),eu=(0,R.useCallback)(e=>{e.preventDefault(),X.down(),ea()},[ea,X]);uE(()=>j.current,"wheel",e=>{var t,i;let n=(null!=(i=null==(t=j.current)?void 0:t.ownerDocument)?i:document).activeElement===j.current;if(!f||!n)return;e.preventDefault();let r=en(e)*s,o=Math.sign(e.deltaY);-1===o?Z(r):1===o&&Y(r)},{passive:!1});let ed=(0,R.useCallback)((e={},t=null)=>{let i=l||n&&O.isAtMax;return{...e,ref:aN(t,U),role:"button",tabIndex:-1,onPointerDown:Q(e.onPointerDown,e=>{0!==e.button||i||el(e)}),onPointerLeave:Q(e.onPointerLeave,X.stop),onPointerUp:Q(e.onPointerUp,X.stop),disabled:i,"aria-disabled":J(i)}},[O.isAtMax,n,el,X.stop,l]),ec=(0,R.useCallback)((e={},t=null)=>{let i=l||n&&O.isAtMin;return{...e,ref:aN(t,$),role:"button",tabIndex:-1,onPointerDown:Q(e.onPointerDown,e=>{0!==e.button||i||eu(e)}),onPointerLeave:Q(e.onPointerLeave,X.stop),onPointerUp:Q(e.onPointerUp,X.stop),disabled:i,"aria-disabled":J(i)}},[O.isAtMin,n,eu,X.stop,l]),eh=(0,R.useCallback)((e={},t=null)=>{var i,n,s,f;return{name:v,inputMode:h,type:"text",pattern:c,"aria-labelledby":_,"aria-label":y,"aria-describedby":b,id:p,disabled:l,...e,readOnly:null!=(i=e.readOnly)?i:a,"aria-readonly":null!=(n=e.readOnly)?n:a,"aria-required":null!=(s=e.required)?s:u,required:null!=(f=e.required)?f:u,ref:aN(j,t),value:G(O.value),role:"spinbutton","aria-valuemin":r,"aria-valuemax":o,"aria-valuenow":Number.isNaN(O.valueAsNumber)?void 0:O.valueAsNumber,"aria-invalid":J(null!=d?d:O.isOutOfRange),"aria-valuetext":er,autoComplete:"off",autoCorrect:"off",onChange:Q(e.onChange,ee),onKeyDown:Q(e.onKeyDown,ei),onFocus:Q(e.onFocus,et,()=>z(!0)),onBlur:Q(e.onBlur,D,es)}},[v,h,c,_,y,G,b,p,l,u,a,d,O.value,O.valueAsNumber,O.isOutOfRange,r,o,er,ee,ei,et,D,es]);return{value:G(O.value),valueAsNumber:O.valueAsNumber,isFocused:H,isDisabled:l,isReadOnly:a,getIncrementButtonProps:ed,getDecrementButtonProps:ec,getInputProps:eh,htmlProps:M}}var[m1,m2]=F({name:"NumberInputStylesContext",errorMessage:"useNumberInputStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),[m6,m3]=F({name:"NumberInputContext",errorMessage:"useNumberInputContext: `context` is undefined. Seems you forgot to wrap number-input's components within "}),m8=sD(function(e,t){let i=s$("NumberInput",e),{htmlProps:n,...r}=m0(lG(tL(e))),o=(0,R.useMemo)(()=>r,[r]);return(0,A.jsx)(m6,{value:o,children:(0,A.jsx)(m1,{value:i,children:(0,A.jsx)(sE.div,{...n,ref:t,className:$("chakra-numberinput",e.className),__css:{position:"relative",zIndex:0,...i.root}})})})});m8.displayName="NumberInput";var m5=sD(function(e,t){let i=m2();return(0,A.jsx)(sE.div,{"aria-hidden":!0,ref:t,...e,__css:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",height:"calc(100% - 2px)",zIndex:1,...i.stepperGroup}})});m5.displayName="NumberInputStepper";var m4=sD(function(e,t){let{getInputProps:i}=m3(),n=i(e,t),r=m2();return(0,A.jsx)(sE.input,{...n,className:$("chakra-numberinput__field",e.className),__css:{width:"100%",...r.field}})});m4.displayName="NumberInputField";var m9=sE("div",{baseStyle:{display:"flex",justifyContent:"center",alignItems:"center",flex:1,transitionProperty:"common",transitionDuration:"normal",userSelect:"none",cursor:"pointer",lineHeight:"normal"}}),m7=sD(function(e,t){var i;let n=m2(),{getDecrementButtonProps:r}=m3(),o=r(e,t);return(0,A.jsx)(m9,{...o,__css:n.stepper,children:null!=(i=e.children)?i:(0,A.jsx)(mZ,{})})});m7.displayName="NumberDecrementStepper";var ve=sD(function(e,t){var i;let{getIncrementButtonProps:n}=m3(),r=n(e,t),o=m2();return(0,A.jsx)(m9,{...r,__css:o.stepper,children:null!=(i=e.children)?i:(0,A.jsx)(mY,{})})});ve.displayName="NumberIncrementStepper";var[vt,vi,vn,vr]=aT(),[vo,vs]=F({name:"PinInputContext",errorMessage:"usePinInputContext: `context` is undefined. Seems you forgot to all pin input fields within ``"}),va=e=>null==e?void 0:e.split("");function vl(e,t){return("alphanumeric"===t?/^[a-zA-Z0-9]+$/i:/^[0-9]+$/).test(e)}function vu(e={}){let{autoFocus:t,value:i,defaultValue:n,onChange:r,onComplete:o,placeholder:s="○",manageFocus:a=!0,otp:l=!1,id:u,isDisabled:d,isInvalid:c,type:h="number",mask:f}=e,p=(0,R.useId)(),g=null!=u?u:`pin-input-${p}`,m=vn(),[v,b]=(0,R.useState)(!0),[y,_]=(0,R.useState)(-1),[w,C]=aj({defaultValue:va(n)||[],value:va(i),onChange:e=>null==r?void 0:r(e.join(""))});(0,R.useEffect)(()=>{if(t){let e=m.first();e&&requestAnimationFrame(()=>{e.node.focus()})}},[m]);let S=(0,R.useCallback)(e=>{if(!v||!a)return;let t=m.next(e,!1);t&&requestAnimationFrame(()=>{t.node.focus()})},[m,v,a]),x=(0,R.useCallback)((e,t,i=!0)=>{let n=[...w];n[t]=e,C(n),""!==e&&n.length===m.count()&&n.every(e=>null!=e&&""!==e)?null==o||o(n.join("")):i&&S(t)},[w,C,S,o,m]),k=(0,R.useCallback)(()=>{var e;C(Array(m.count()).fill(""));let t=m.first();null==(e=null==t?void 0:t.node)||e.focus()},[m,C]),E=(0,R.useCallback)((e,t)=>{let i=t;return(null==e?void 0:e.length)>0&&(e[0]===t.charAt(0)?i=t.charAt(1):e[0]===t.charAt(1)&&(i=t.charAt(0))),i},[]);return{getInputProps:(0,R.useCallback)(e=>{let{index:t,...i}=e,n=y===t,r="number"===h?"tel":"text";return{"aria-label":"Please enter your pin code",inputMode:"number"===h?"numeric":"text",type:f?"password":r,...i,id:`${g}-${t}`,disabled:d,"aria-invalid":J(c),onChange:Q(i.onChange,e=>{let i=e.target.value,n=E(w[t],i);if(""===n){x("",t);return}if(i.length>2){if(vl(i,h)){let e=i.split("").filter((e,t)=>t{var i;if("Backspace"===e.key&&a){if(""===e.target.value){let e=m.prev(t,!1);e&&(x("",t-1,!1),null==(i=e.node)||i.focus(),b(!0))}else b(!1)}}),onFocus:Q(i.onFocus,()=>{_(t)}),onBlur:Q(i.onBlur,()=>{_(-1)}),value:w[t]||"",autoComplete:l?"one-time-code":"off",placeholder:n?"":s}},[m,y,E,g,d,f,c,a,o,l,s,x,C,h,w]),id:g,descendants:m,values:w,setValue:x,setValues:C,clear:k}}function vd(e={},t=null){let{getInputProps:i}=vs(),{index:n,register:r}=vr();return i({...e,ref:aN(r,t),index:n})}function vc(e){let t=sU("PinInput",e),{children:i,...n}=tL(e),{descendants:r,...o}=vu(n),s=lu(i).map(e=>(0,R.cloneElement)(e,{__css:t}));return(0,A.jsx)(vt,{value:r,children:(0,A.jsx)(vo,{value:o,children:s})})}vc.displayName="PinInput";var vh=sD(function(e,t){let i=vd(e,t);return(0,A.jsx)(sE.input,{...i,className:$("chakra-pin-input",e.className)})});vh.displayName="PinInputField";var[vf,vp]=F({name:"PopoverContext",errorMessage:"usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within ``"}),[vg,vm]=F({name:"PopoverStylesContext",errorMessage:"usePopoverStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),vv=sD(function(e,t){let{getHeaderProps:i}=vp(),n=vm();return(0,A.jsx)(sE.header,{...i(e,t),className:$("chakra-popover__header",e.className),__css:n.header})});function vb(e){let t=R.Children.only(e.children),{getTriggerProps:i}=vp();return(0,R.cloneElement)(t,i(t.props,t.ref))}vv.displayName="PopoverHeader",vb.displayName="PopoverTrigger";var vy={click:"click",hover:"hover"};function v_(e={}){let{closeOnBlur:t=!0,closeOnEsc:i=!0,initialFocusRef:n,id:r,returnFocusOnClose:o=!0,autoFocus:s=!0,arrowSize:a,arrowShadowColor:l,trigger:u=vy.click,openDelay:d=200,closeDelay:c=200,isLazy:h,lazyBehavior:f="unmount",computePositionOnMount:p,...g}=e,{isOpen:m,onClose:v,onOpen:b,onToggle:y}=p5(e),_=(0,R.useRef)(null),w=(0,R.useRef)(null),C=(0,R.useRef)(null),S=(0,R.useRef)(!1),x=(0,R.useRef)(!1);m&&(x.current=!0);let[k,E]=(0,R.useState)(!1),[L,M]=(0,R.useState)(!1),N=(0,R.useId)(),D=null!=r?r:N,[A,T,I,O]=["popover-trigger","popover-content","popover-header","popover-body"].map(e=>`${e}-${D}`),{referenceRef:P,getArrowProps:F,getPopperProps:B,getArrowInnerProps:H,forceUpdate:z}=p8({...g,enabled:m||!!p}),V=p7({isOpen:m,ref:C});uT({enabled:m,ref:w}),fY(C,{focusRef:w,visible:m,shouldFocus:o&&u===vy.click}),function(e,t=fJ){let{focusRef:i,preventScroll:n,shouldFocus:r,visible:o}=t,s="current"in e?e.current:e,a=r&&o,l=(0,R.useRef)(a),u=(0,R.useRef)(o);t0(()=>{!u.current&&o&&(l.current=a),u.current=o},[o,a]);let d=(0,R.useCallback)(()=>{if(o&&s&&l.current&&(l.current=!1,!s.contains(document.activeElement))){if(null==i?void 0:i.current)requestAnimationFrame(()=>{var e;null==(e=i.current)||e.focus({preventScroll:n})});else{let e=co(s);e.length>0&&requestAnimationFrame(()=>{e[0].focus({preventScroll:n})})}}},[o,n,s,i]);sm(()=>{d()},[d]),uE(s,"transitionend",d)}(C,{focusRef:n,visible:m,shouldFocus:s&&u===vy.click});let j=ge({wasSelected:x.current,enabled:h,mode:f,isSelected:V.present}),W=(0,R.useCallback)((e={},n=null)=>{let r={...e,style:{...e.style,transformOrigin:fX.transformOrigin.varRef,[fX.arrowSize.var]:a?`${a}px`:void 0,[fX.arrowShadowColor.var]:l},ref:aN(C,n),children:j?e.children:null,id:T,tabIndex:-1,role:"dialog",onKeyDown:Q(e.onKeyDown,e=>{i&&"Escape"===e.key&&v()}),onBlur:Q(e.onBlur,e=>{let i=vC(e),n=vw(C.current,i),r=vw(w.current,i);m&&t&&!n&&!r&&v()}),"aria-labelledby":k?I:void 0,"aria-describedby":L?O:void 0};return u===vy.hover&&(r.role="tooltip",r.onMouseEnter=Q(e.onMouseEnter,()=>{S.current=!0}),r.onMouseLeave=Q(e.onMouseLeave,e=>{null!==e.nativeEvent.relatedTarget&&(S.current=!1,setTimeout(()=>v(),c))})),r},[j,T,k,I,L,O,u,i,v,m,t,c,l,a]),U=(0,R.useCallback)((e={},t=null)=>B({...e,style:{visibility:m?"visible":"hidden",...e.style}},t),[m,B]),$=(0,R.useCallback)((e,t=null)=>({...e,ref:aN(t,_,P)}),[_,P]),K=(0,R.useRef)(),q=(0,R.useRef)(),G=(0,R.useCallback)(e=>{null==_.current&&P(e)},[P]),Z=(0,R.useCallback)((e={},i=null)=>{let n={...e,ref:aN(w,i,G),id:A,"aria-haspopup":"dialog","aria-expanded":m,"aria-controls":T};return u===vy.click&&(n.onClick=Q(e.onClick,y)),u===vy.hover&&(n.onFocus=Q(e.onFocus,()=>{void 0===K.current&&b()}),n.onBlur=Q(e.onBlur,e=>{let i=vC(e),n=!vw(C.current,i);m&&t&&n&&v()}),n.onKeyDown=Q(e.onKeyDown,e=>{"Escape"===e.key&&v()}),n.onMouseEnter=Q(e.onMouseEnter,()=>{S.current=!0,K.current=window.setTimeout(()=>b(),d)}),n.onMouseLeave=Q(e.onMouseLeave,()=>{S.current=!1,K.current&&(clearTimeout(K.current),K.current=void 0),q.current=window.setTimeout(()=>{!1===S.current&&v()},c)})),n},[A,m,T,u,G,y,b,t,v,d,c]);(0,R.useEffect)(()=>()=>{K.current&&clearTimeout(K.current),q.current&&clearTimeout(q.current)},[]);let Y=(0,R.useCallback)((e={},t=null)=>({...e,id:I,ref:aN(t,e=>{E(!!e)})}),[I]),J=(0,R.useCallback)((e={},t=null)=>({...e,id:O,ref:aN(t,e=>{M(!!e)})}),[O]);return{forceUpdate:z,isOpen:m,onAnimationComplete:V.onComplete,onClose:v,getAnchorProps:$,getArrowProps:F,getArrowInnerProps:H,getPopoverPositionerProps:U,getPopoverProps:W,getTriggerProps:Z,getHeaderProps:Y,getBodyProps:J}}function vw(e,t){return e===t||(null==e?void 0:e.contains(t))}function vC(e){var t;let i=e.currentTarget.ownerDocument.activeElement;return null!=(t=e.relatedTarget)?t:i}function vS(e){let t=s$("Popover",e),{children:i,...n}=tL(e),r=sA(),o=v_({...n,direction:r.direction});return(0,A.jsx)(vf,{value:o,children:(0,A.jsx)(vg,{value:t,children:G(i,{isOpen:o.isOpen,onClose:o.onClose,forceUpdate:o.forceUpdate})})})}function vx(e){let t=R.Children.only(e.children),{getAnchorProps:i}=vp();return(0,R.cloneElement)(t,i(t.props,t.ref))}vS.displayName="Popover",vx.displayName="PopoverAnchor";var vk=(e,t)=>t?`${e}.${t}, ${t}`:void 0;function vE(e){var t;let{bg:i,bgColor:n,backgroundColor:r,shadow:o,boxShadow:s,shadowColor:a}=e,{getArrowProps:l,getArrowInnerProps:u}=vp(),d=vm(),c=null!=(t=null!=i?i:n)?t:r,h=null!=o?o:s;return(0,A.jsx)(sE.div,{...l(),className:"chakra-popover__arrow-positioner",children:(0,A.jsx)(sE.div,{className:$("chakra-popover__arrow",e.className),...u(e),__css:{"--popper-arrow-shadow-color":vk("colors",a),"--popper-arrow-bg":vk("colors",c),"--popper-arrow-shadow":vk("shadows",h),...d.arrow}})})}vE.displayName="PopoverArrow";var vL=sD(function(e,t){let{getBodyProps:i}=vp(),n=vm();return(0,A.jsx)(sE.div,{...i(e,t),className:$("chakra-popover__body",e.className),__css:n.body})});vL.displayName="PopoverBody";var vM=sD(function(e,t){let{onClose:i}=vp(),n=vm();return(0,A.jsx)(s9,{size:"sm",onClick:i,className:$("chakra-popover__close-btn",e.className),__css:n.closeButton,ref:t,...e})});vM.displayName="PopoverCloseButton";var vN={exit:{opacity:0,scale:.95,transition:{duration:.1,ease:[.4,0,1,1]}},enter:{scale:1,opacity:1,transition:{duration:.15,ease:[0,0,.2,1]}}},vD=sE(sb.E.section),vA=sD(function(e,t){let{variants:i=vN,...n}=e,{isOpen:r}=vp();return(0,A.jsx)(vD,{ref:t,variants:function(e){if(e)return{enter:{...e.enter,visibility:"visible"},exit:{...e.exit,transitionEnd:{visibility:"hidden"}}}}(i),initial:!1,animate:r?"enter":"exit",...n})});vA.displayName="PopoverTransition";var vT=sD(function(e,t){let{rootProps:i,motionProps:n,...r}=e,{getPopoverProps:o,getPopoverPositionerProps:s,onAnimationComplete:a}=vp(),l=vm(),u={position:"relative",display:"flex",flexDirection:"column",...l.content};return(0,A.jsx)(sE.div,{...s(i),__css:l.popper,className:"chakra-popover__popper",children:(0,A.jsx)(vA,{...n,...o(r,t),onAnimationComplete:X(a,r.onAnimationComplete),className:$("chakra-popover__content",e.className),__css:u})})});function vI(e){let t=vm();return(0,A.jsx)(sE.footer,{...e,className:$("chakra-popover__footer",e.className),__css:t.footer})}vT.displayName="PopoverContent",vI.displayName="PopoverFooter";var vO=sE("div",{baseStyle:{fontSize:"0.24em",top:"50%",left:"50%",width:"100%",textAlign:"center",position:"absolute",transform:"translate(-50%, -50%)"}});vO.displayName="CircularProgressLabel";var vP=e=>(0,A.jsx)(sE.circle,{cx:50,cy:50,r:42,fill:"transparent",...e});vP.displayName="Circle";var vR=(0,D.keyframes)({"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260"}}),vF=(0,D.keyframes)({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),vB=(0,D.keyframes)({"0%":{left:"-40%"},"100%":{left:"100%"}}),vH=(0,D.keyframes)({from:{backgroundPosition:"1rem 0"},to:{backgroundPosition:"0 0"}});function vz(e){let{value:t=0,min:i,max:n,valueText:r,getValueText:o,isIndeterminate:s,role:a="progressbar"}=e,l=(t-i)*100/(n-i);return{bind:{"data-indeterminate":s?"":void 0,"aria-valuemax":n,"aria-valuemin":i,"aria-valuenow":s?void 0:t,"aria-valuetext":(()=>{if(null!=t)return"function"==typeof o?o(t,l):r})(),role:a},percent:l,value:t}}var vV=e=>{let{size:t,isIndeterminate:i,...n}=e;return(0,A.jsx)(sE.svg,{viewBox:"0 0 100 100",__css:{width:t,height:t,animation:i?`${vF} 2s linear infinite`:void 0},...n})};vV.displayName="Shape";var vj=sD((e,t)=>{var i;let{size:n="48px",max:r=100,min:o=0,valueText:s,getValueText:a,value:l,capIsRound:u,children:d,thickness:c="10px",color:h="#0078d4",trackColor:f="#edebe9",isIndeterminate:p,...g}=e,m=vz({min:o,max:r,value:l,valueText:s,getValueText:a,isIndeterminate:p}),v=p?void 0:(null!=(i=m.percent)?i:0)*2.64,b=null==v?void 0:`${v} ${264-v}`,y=p?{css:{animation:`${vR} 1.5s linear infinite`}}:{strokeDashoffset:66,strokeDasharray:b,transitionProperty:"stroke-dasharray, stroke",transitionDuration:"0.6s",transitionTimingFunction:"ease"};return(0,A.jsxs)(sE.div,{ref:t,className:"chakra-progress",...m.bind,...g,__css:{display:"inline-block",position:"relative",verticalAlign:"middle",fontSize:n},children:[(0,A.jsxs)(vV,{size:n,isIndeterminate:p,children:[(0,A.jsx)(vP,{stroke:f,strokeWidth:c,className:"chakra-progress__track"}),(0,A.jsx)(vP,{stroke:h,strokeWidth:c,className:"chakra-progress__indicator",strokeLinecap:u?"round":void 0,opacity:0!==m.value||p?void 0:0,...y})]}),d]})});vj.displayName="CircularProgress";var[vW,vU]=F({name:"ProgressStylesContext",errorMessage:"useProgressStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),v$=sD((e,t)=>{let{min:i,max:n,value:r,isIndeterminate:o,role:s,...a}=e,l=vz({value:r,min:i,max:n,isIndeterminate:o,role:s}),u={height:"100%",...vU().filledTrack};return(0,A.jsx)(sE.div,{ref:t,style:{width:`${l.percent}%`,...a.style},...l.bind,...a,__css:u})}),vK=sD((e,t)=>{var i;let{value:n,min:r=0,max:o=100,hasStripe:s,isAnimated:a,children:l,borderRadius:u,isIndeterminate:d,"aria-label":c,"aria-labelledby":h,"aria-valuetext":f,title:p,role:g,...m}=tL(e),v=s$("Progress",e),b=null!=u?u:null==(i=v.track)?void 0:i.borderRadius,y={animation:`${vH} 1s linear infinite`},_={...!d&&s&&a&&y,...d&&{position:"absolute",willChange:"left",minWidth:"50%",animation:`${vB} 1s ease infinite normal none running`}},w={overflow:"hidden",position:"relative",...v.track};return(0,A.jsx)(sE.div,{ref:t,borderRadius:b,__css:w,...m,children:(0,A.jsxs)(vW,{value:v,children:[(0,A.jsx)(v$,{"aria-label":c,"aria-labelledby":h,"aria-valuetext":f,min:r,max:o,value:n,isIndeterminate:d,css:_,borderRadius:b,title:p,role:g}),l]})})});vK.displayName="Progress";var vq=e=>{let t={top:"50%",left:"50%",width:"100%",textAlign:"center",position:"absolute",transform:"translate(-50%, -50%)",...vU().label};return(0,A.jsx)(sE.div,{...e,__css:t})};function vG(e={}){let{onChange:t,value:i,defaultValue:n,name:r,isDisabled:o,isFocusable:s,isNative:a,...l}=e,[u,d]=(0,R.useState)(n||""),c=void 0!==i,h=c?i:u,f=(0,R.useRef)(null),p=(0,R.useCallback)(()=>{let e=f.current;if(!e)return;let t="input:not(:disabled):checked",i=e.querySelector(t);if(i){i.focus();return}t="input:not(:disabled)";let n=e.querySelector(t);null==n||n.focus()},[]),g=`radio-${(0,R.useId)()}`,m=r||g,v=(0,R.useCallback)(e=>{let i=e&&K(e)&&K(e.target)?e.target.value:e;c||d(i),null==t||t(String(i))},[t,c]);return{getRootProps:(0,R.useCallback)((e={},t=null)=>({...e,ref:aN(t,f),role:"radiogroup"}),[]),getRadioProps:(0,R.useCallback)((e={},t=null)=>{let i=a?"checked":"isChecked";return{...e,ref:t,name:m,[i]:null!=h?e.value===h:void 0,onChange(e){v(e)},"data-radiogroup":!0}},[a,m,v,h]),name:m,ref:f,focus:p,setValue:d,value:h,onChange:v,isDisabled:o,isFocusable:s,htmlProps:l}}vq.displayName="ProgressLabel";var[vZ,vY]=F({name:"RadioGroupContext",strict:!1}),vJ=sD((e,t)=>{let{colorScheme:i,size:n,variant:r,children:o,className:s,isDisabled:a,isFocusable:l,...u}=e,{value:d,onChange:c,getRootProps:h,name:f,htmlProps:p}=vG(u),g=(0,R.useMemo)(()=>({name:f,size:n,onChange:c,colorScheme:i,value:d,variant:r,isDisabled:a,isFocusable:l}),[f,n,c,i,d,r,a,l]);return(0,A.jsx)(vZ,{value:g,children:(0,A.jsx)(sE.div,{...h(p,t),className:$("chakra-radio-group",s),children:o})})});vJ.displayName="RadioGroup";var vQ={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};function vX(e={}){let{defaultChecked:t,isChecked:i,isFocusable:n,isDisabled:r,isReadOnly:o,isRequired:s,onChange:a,isInvalid:l,name:u,value:d,id:c,"data-radiogroup":h,"aria-describedby":f,...p}=e,g=`radio-${(0,R.useId)()}`,m=lU(),v=vY(),b=m&&!(v||h)?m.id:g;b=null!=c?c:b;let y=null!=r?r:null==m?void 0:m.isDisabled,_=null!=o?o:null==m?void 0:m.isReadOnly,w=null!=s?s:null==m?void 0:m.isRequired,C=null!=l?l:null==m?void 0:m.isInvalid,[S,x]=(0,R.useState)(!1),[k,E]=(0,R.useState)(!1),[L,M]=(0,R.useState)(!1),[N,D]=(0,R.useState)(!1),[A,T]=(0,R.useState)(!!t),I=void 0!==i,O=I?i:A;(0,R.useEffect)(()=>l7(x),[]);let P=(0,R.useCallback)(e=>{if(_||y){e.preventDefault();return}I||T(e.target.checked),null==a||a(e)},[I,y,_,a]),F=(0,R.useCallback)(e=>{" "===e.key&&D(!0)},[D]),B=(0,R.useCallback)(e=>{" "===e.key&&D(!1)},[D]),H=(0,R.useCallback)((e={},t=null)=>({...e,ref:t,"data-active":Y(N),"data-hover":Y(L),"data-disabled":Y(y),"data-invalid":Y(C),"data-checked":Y(O),"data-focus":Y(k),"data-focus-visible":Y(k&&S),"data-readonly":Y(_),"aria-hidden":!0,onMouseDown:Q(e.onMouseDown,()=>D(!0)),onMouseUp:Q(e.onMouseUp,()=>D(!1)),onMouseEnter:Q(e.onMouseEnter,()=>M(!0)),onMouseLeave:Q(e.onMouseLeave,()=>M(!1))}),[N,L,y,C,O,k,_,S]),{onFocus:z,onBlur:V}=null!=m?m:{},j=(0,R.useCallback)((e={},t=null)=>{let i=y&&!n;return{...e,id:b,ref:t,type:"radio",name:u,value:d,onChange:Q(e.onChange,P),onBlur:Q(V,e.onBlur,()=>E(!1)),onFocus:Q(z,e.onFocus,()=>E(!0)),onKeyDown:Q(e.onKeyDown,F),onKeyUp:Q(e.onKeyUp,B),checked:O,disabled:i,readOnly:_,required:w,"aria-invalid":J(C),"aria-disabled":J(i),"aria-required":J(w),"data-readonly":Y(_),"aria-describedby":f,style:vQ}},[y,n,b,u,d,P,V,z,F,B,O,_,w,C,f]);return{state:{isInvalid:C,isFocused:k,isChecked:O,isActive:N,isHovered:L,isDisabled:y,isReadOnly:_,isRequired:w},getCheckboxProps:H,getRadioProps:H,getInputProps:j,getLabelProps:(e={},t=null)=>({...e,ref:t,onMouseDown:Q(e.onMouseDown,v0),"data-disabled":Y(y),"data-checked":Y(O),"data-invalid":Y(C)}),getRootProps:(e,t=null)=>({...e,ref:t,"data-disabled":Y(y),"data-checked":Y(O),"data-invalid":Y(C)}),htmlProps:p}}function v0(e){e.preventDefault(),e.stopPropagation()}var v1=sD((e,t)=>{var i;let n=vY(),{onChange:r,value:o}=e,s=s$("Radio",{...n,...e}),{spacing:a="0.5rem",children:l,isDisabled:u=null==n?void 0:n.isDisabled,isFocusable:d=null==n?void 0:n.isFocusable,inputProps:c,...h}=tL(e),f=e.isChecked;(null==n?void 0:n.value)!=null&&null!=o&&(f=n.value===o);let p=r;(null==n?void 0:n.onChange)&&null!=o&&(p=X(n.onChange,r));let g=null!=(i=null==e?void 0:e.name)?i:null==n?void 0:n.name,{getInputProps:m,getCheckboxProps:v,getLabelProps:b,getRootProps:y,htmlProps:_}=vX({...h,isChecked:f,isFocusable:d,isDisabled:u,onChange:p,name:g}),[w,C]=function(e,t){let i={},n={};for(let[r,o]of Object.entries(e))t.includes(r)?i[r]=o:n[r]=o;return[i,n]}(_,tf),S=v(C),x=m(c,t),k=b(),E=Object.assign({},w,y()),L={display:"inline-flex",alignItems:"center",verticalAlign:"top",cursor:"pointer",position:"relative",...s.container},M={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,...s.control},N={userSelect:"none",marginStart:a,...s.label};return(0,A.jsxs)(sE.label,{className:"chakra-radio",...E,__css:L,children:[(0,A.jsx)("input",{className:"chakra-radio__input",...x}),(0,A.jsx)(sE.span,{className:"chakra-radio__control",...S,__css:M}),l&&(0,A.jsx)(sE.span,{className:"chakra-radio__label",...k,__css:N,children:l})]})});v1.displayName="Radio";var v2=sD(function(e,t){let{children:i,placeholder:n,className:r,...o}=e;return(0,A.jsxs)(sE.select,{...o,ref:t,className:$("chakra-select",r),children:[n&&(0,A.jsx)("option",{value:"",children:n}),i]})});v2.displayName="SelectField";var v6=sD((e,t)=>{var i;let n=s$("Select",e),{rootProps:r,placeholder:o,icon:s,color:a,height:l,h:u,minH:d,minHeight:c,iconColor:h,iconSize:f,...p}=tL(e),[g,m]=function(e,t){let i={},n={};for(let[r,o]of Object.entries(e))t.includes(r)?i[r]=o:n[r]=o;return[i,n]}(p,tf),v=lq(m),b={paddingEnd:"2rem",...n.field,_focus:{zIndex:"unset",...null==(i=n.field)?void 0:i._focus}};return(0,A.jsxs)(sE.div,{className:"chakra-select__wrapper",__css:{width:"100%",height:"fit-content",position:"relative",color:a},...g,...r,children:[(0,A.jsx)(v2,{ref:t,height:null!=u?u:l,minH:null!=d?d:c,placeholder:o,...v,__css:b,children:e.children}),(0,A.jsx)(v5,{"data-disabled":Y(v.disabled),...(h||a)&&{color:h||a},__css:n.icon,...f&&{fontSize:f},children:s})]})});v6.displayName="Select";var v3=e=>(0,A.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,A.jsx)("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),v8=sE("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),v5=e=>{let{children:t=(0,A.jsx)(v3,{}),...i}=e,n=(0,R.cloneElement)(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return(0,A.jsx)(v8,{...i,className:"chakra-select__icon-wrapper",children:(0,R.isValidElement)(t)?n:null})};v5.displayName="SelectIcon";var v4=sE("div",{baseStyle:{boxShadow:"none",backgroundClip:"padding-box",cursor:"default",color:"transparent",pointerEvents:"none",userSelect:"none","&::before, &::after, *":{visibility:"hidden"}}}),v9=e2("skeleton-start-color"),v7=e2("skeleton-end-color"),be=(0,D.keyframes)({from:{opacity:0},to:{opacity:1}}),bt=(0,D.keyframes)({from:{borderColor:v9.reference,background:v9.reference},to:{borderColor:v7.reference,background:v7.reference}}),bi=sD((e,t)=>{let i={...e,fadeDuration:"number"==typeof e.fadeDuration?e.fadeDuration:.4,speed:"number"==typeof e.speed?e.speed:.8},n=sU("Skeleton",i),r=function(){let e=(0,R.useRef)(!0);return(0,R.useEffect)(()=>{e.current=!1},[]),e.current}(),{startColor:o="",endColor:s="",isLoaded:a,fadeDuration:l,speed:u,className:d,fitContent:c,...h}=tL(i),[f,p]=sI("colors",[o,s]),g=function(e){let t=(0,R.useRef)();return(0,R.useEffect)(()=>{t.current=e},[e]),t.current}(a),m=$("chakra-skeleton",d),v={...f&&{[v9.variable]:f},...p&&{[v7.variable]:p}};if(a){let e=r||g?"none":`${be} ${l}s`;return(0,A.jsx)(sE.div,{ref:t,className:m,__css:{animation:e},...h})}return(0,A.jsx)(v4,{ref:t,className:m,...h,__css:{width:c?"fit-content":void 0,...n,...v,_dark:{...n._dark,...v},animation:`${u}s linear infinite alternate ${bt}`}})});bi.displayName="Skeleton";var bn=({size:e="2rem",...t})=>(0,A.jsx)(bi,{borderRadius:"full",boxSize:e,...t});bn.displayName="SkeletonCircle";var br=e=>{let{noOfLines:t=3,spacing:i="0.5rem",skeletonHeight:n="0.5rem",className:r,startColor:o,endColor:s,isLoaded:a,fadeDuration:l,speed:u,variant:d,size:c,colorScheme:h,children:f,...p}=e,g=fq("number"==typeof t?[t]:t)||3,m=Array(g).fill(1).map((e,t)=>t+1),v=e=>g>1&&e===m.length?"80%":"100%",b=$("chakra-skeleton__group",r);return(0,A.jsx)(sE.div,{className:b,...p,children:m.map((e,t)=>{if(a&&t>0)return null;let r=a?null:{mb:e===m.length?"0":i,width:v(e),height:n};return(0,A.jsx)(bi,{startColor:o,endColor:s,isLoaded:a,fadeDuration:l,speed:u,variant:d,size:c,colorScheme:h,...r,children:0===t?f:void 0},m.length.toString()+e)})})};br.displayName="SkeletonText";var bo=e=>e?"":void 0,bs=e=>!!e||void 0,ba=(...e)=>e.filter(Boolean).join(" ");function bl(...e){return function(t){e.some(e=>(null==e||e(t),null==t?void 0:t.defaultPrevented))}}function bu(e){let{orientation:t,vertical:i,horizontal:n}=e;return"vertical"===t?i:n}var bd={width:0,height:0},bc=e=>e||bd;function bh(e){let{orientation:t,thumbPercents:i,thumbRects:n,isReversed:r}=e,o="vertical"===t?n.reduce((e,t)=>bc(e).height>bc(t).height?e:t,bd):n.reduce((e,t)=>bc(e).width>bc(t).width?e:t,bd),s={position:"relative",touchAction:"none",WebkitTapHighlightColor:"rgba(0,0,0,0)",userSelect:"none",outline:0,...bu({orientation:t,vertical:o?{paddingLeft:o.width/2,paddingRight:o.width/2}:{},horizontal:o?{paddingTop:o.height/2,paddingBottom:o.height/2}:{}})},a={position:"absolute",...bu({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",height:"100%"},horizontal:{top:"50%",transform:"translateY(-50%)",width:"100%"}})},l=1===i.length,u=[0,r?100-i[0]:i[0]],d=l?u:i,c=d[0];!l&&r&&(c=100-c);let h=Math.abs(d[d.length-1]-d[0]),f={...a,...bu({orientation:t,vertical:r?{height:`${h}%`,top:`${c}%`}:{height:`${h}%`,bottom:`${c}%`},horizontal:r?{width:`${h}%`,right:`${c}%`}:{width:`${h}%`,left:`${c}%`}})};return{trackStyle:a,innerTrackStyle:f,rootStyle:s,getThumbStyle:e=>{var r;let o=null!=(r=n[e])?r:bd;return{position:"absolute",userSelect:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",touchAction:"none",...bu({orientation:t,vertical:{bottom:`calc(${i[e]}% - ${o.height/2}px)`},horizontal:{left:`calc(${i[e]}% - ${o.width/2}px)`}})}}}}function bf(e){let{isReversed:t,direction:i,orientation:n}=e;return"ltr"===i||"vertical"===n?t:!t}function bp(e,t="page"){return e.touches?function(e,t="page"){let i=e.touches[0]||e.changedTouches[0];return{x:i[`${t}X`],y:i[`${t}Y`]}}(e,t):function(e,t="page"){return{x:e[`${t}X`],y:e[`${t}Y`]}}(e,t)}function bg(e,t,i,n){var r;return r=function(e,t=!1){function i(t){e(t,{point:bp(t)})}return t?e=>{var t;let n;let r=void 0!==(n=null!=(t=e.view)?t:window).PointerEvent&&e instanceof n.PointerEvent?!("mouse"!==e.pointerType):e instanceof n.MouseEvent;(!r||r&&0===e.button)&&i(e)}:i}(i,"pointerdown"===t),e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}var bm=Object.defineProperty,bv=(e,t,i)=>t in e?bm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,bb=(e,t,i)=>(bv(e,"symbol"!=typeof t?t+"":t,i),i),by=class{constructor(e,t,i){var n;if(bb(this,"history",[]),bb(this,"startEvent",null),bb(this,"lastEvent",null),bb(this,"lastEventInfo",null),bb(this,"handlers",{}),bb(this,"removeListeners",()=>{}),bb(this,"threshold",3),bb(this,"win"),bb(this,"updatePoint",()=>{if(!(this.lastEvent&&this.lastEventInfo))return;let e=bw(this.lastEventInfo,this.history),t=null!==this.startEvent,i=function(e,t){return"number"==typeof e&&"number"==typeof t?bS(e,t):bx(e)&&bx(t)?Math.sqrt(bS(e.x,t.x)**2+bS(e.y,t.y)**2):0}(e.offset,{x:0,y:0})>=this.threshold;if(!t&&!i)return;let{timestamp:n}=c7();this.history.push({...e.point,timestamp:n});let{onStart:r,onMove:o}=this.handlers;t||(null==r||r(this.lastEvent,e),this.startEvent=this.lastEvent),null==o||o(this.lastEvent,e)}),bb(this,"onPointerMove",(e,t)=>{this.lastEvent=e,this.lastEventInfo=t,c3.update(this.updatePoint,!0)}),bb(this,"onPointerUp",(e,t)=>{let i=bw(t,this.history),{onEnd:n,onSessionEnd:r}=this.handlers;null==r||r(e,i),this.end(),n&&this.startEvent&&(null==n||n(e,i))}),this.win=null!=(n=e.view)?n:window,function(e){return!!e.touches&&e.touches.length>1}(e))return;this.handlers=t,i&&(this.threshold=i),e.stopPropagation(),e.preventDefault();let r={point:bp(e)},{timestamp:o}=c7();this.history=[{...r.point,timestamp:o}];let{onSessionStart:s}=t;null==s||s(e,bw(r,this.history)),this.removeListeners=function(...e){return t=>e.reduce((e,t)=>t(e),t)}(bg(this.win,"pointermove",this.onPointerMove),bg(this.win,"pointerup",this.onPointerUp),bg(this.win,"pointercancel",this.onPointerUp))}updateHandlers(e){this.handlers=e}end(){var e;null==(e=this.removeListeners)||e.call(this),c8.update(this.updatePoint)}};function b_(e,t){return{x:e.x-t.x,y:e.y-t.y}}function bw(e,t){return{point:e.point,delta:b_(e.point,t[t.length-1]),offset:b_(e.point,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let i=e.length-1,n=null,r=e[e.length-1];for(;i>=0&&(n=e[i],!(r.timestamp-n.timestamp>bC(.1)));)i--;if(!n)return{x:0,y:0};let o=(r.timestamp-n.timestamp)/1e3;if(0===o)return{x:0,y:0};let s={x:(r.x-n.x)/o,y:(r.y-n.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(t,0)}}var bC=e=>1e3*e;function bS(e,t){return Math.abs(e-t)}function bx(e){return"x"in e&&"y"in e}function bk(e){let t=(0,R.useRef)(null);return t.current=e,t}function bE(e,t){let{onPan:i,onPanStart:n,onPanEnd:r,onPanSessionStart:o,onPanSessionEnd:s,threshold:a}=t,l=!!(i||n||r||o||s),u=(0,R.useRef)(null),d=bk({onSessionStart:o,onSessionEnd:s,onStart:n,onMove:i,onEnd(e,t){u.current=null,null==r||r(e,t)}});(0,R.useEffect)(()=>{var e;null==(e=u.current)||e.updateHandlers(d.current)}),(0,R.useEffect)(()=>{let t=e.current;if(t&&l)return bg(t,"pointerdown",function(e){u.current=new by(e,d.current,a)})},[e,l,d,a]),(0,R.useEffect)(()=>()=>{var e;null==(e=u.current)||e.end(),u.current=null},[])}var bL=(null==globalThis?void 0:globalThis.document)?R.useLayoutEffect:R.useEffect;function bM({getNodes:e,observeMutation:t=!0}){let[i,n]=(0,R.useState)([]),[r,o]=(0,R.useState)(0);return bL(()=>{let i=e(),r=i.map((e,t)=>(function(e,t){if(!e){t(void 0);return}t({width:e.offsetWidth,height:e.offsetHeight});let i=new(e.ownerDocument.defaultView??window).ResizeObserver(i=>{let n,r;if(!Array.isArray(i)||!i.length)return;let[o]=i;if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,r=t.blockSize}else n=e.offsetWidth,r=e.offsetHeight;t({width:n,height:r})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)})(e,e=>{n(i=>[...i.slice(0,t),e,...i.slice(t+1)])}));if(t){let e=i[0];r.push(function(e,t){var i,n;if(!e||!e.parentElement)return;let r=new(null!=(n=null==(i=e.ownerDocument)?void 0:i.defaultView)?n:window).MutationObserver(()=>{t()});return r.observe(e.parentElement,{childList:!0}),()=>{r.disconnect()}}(e,()=>{o(e=>e+1)}))}return()=>{r.forEach(e=>{null==e||e()})}},[r]),i}function bN(e){var t,i;let{min:n=0,max:r=100,onChange:o,value:s,defaultValue:a,isReversed:l,direction:u="ltr",orientation:d="horizontal",id:c,isDisabled:h,isReadOnly:f,onChangeStart:p,onChangeEnd:g,step:m=1,getAriaValueText:v,"aria-valuetext":b,"aria-label":y,"aria-labelledby":_,name:w,focusThumbOnChange:C=!0,minStepsBetweenThumbs:S=0,...x}=e,k=sg(p),E=sg(g),L=sg(v),M=bf({isReversed:l,direction:u,orientation:d}),[N,D]=aj({value:s,defaultValue:null!=a?a:[25,75],onChange:o});if(!Array.isArray(N))throw TypeError(`[range-slider] You passed an invalid value for \`value\` or \`defaultValue\`, expected \`Array\` but got \`${typeof N}\``);let[A,T]=(0,R.useState)(!1),[I,O]=(0,R.useState)(!1),[P,F]=(0,R.useState)(-1),B=!(h||f),H=(0,R.useRef)(N),z=N.map(e=>uh(e,n,r)),V=(i=S*m,z.map((e,t)=>({min:0===t?n:z[t-1]+i,max:t===z.length-1?r:z[t+1]-i}))),j=(0,R.useRef)({eventSource:null,value:[],valueBounds:[]});j.current.value=z,j.current.valueBounds=V;let W=z.map(e=>r-e+n),U=(M?W:z).map(e=>(e-n)*100/(r-n)),$="vertical"===d,K=(0,R.useRef)(null),q=(0,R.useRef)(null),G=bM({getNodes(){let e=q.current,t=null==e?void 0:e.querySelectorAll("[role=slider]");return t?Array.from(t):[]}}),Z={root:`slider-root-${t=null!=c?c:(0,R.useId)()}`,getThumb:e=>`slider-thumb-${t}-${e}`,getInput:e=>`slider-input-${t}-${e}`,track:`slider-track-${t}`,innerTrack:`slider-filled-track-${t}`,getMarker:e=>`slider-marker-${t}-${e}`,output:`slider-output-${t}`},Y=(0,R.useCallback)(e=>{var t,i;if(!K.current)return;j.current.eventSource="pointer";let o=K.current.getBoundingClientRect(),{clientX:s,clientY:a}=null!=(i=null==(t=e.touches)?void 0:t[0])?i:e,l=($?o.bottom-a:s-o.left)/($?o.height:o.width);return M&&(l=1-l),(r-n)*l+n},[$,M,r,n]),J=(r-n)/10,Q=m||(r-n)/100,X=(0,R.useMemo)(()=>({setValueAtIndex(e,t){if(!B)return;let i=j.current.valueBounds[e];t=uh(t=parseFloat(uc(t,i.min,Q)),i.min,i.max);let n=[...j.current.value];n[e]=t,D(n)},setActiveIndex:F,stepUp(e,t=Q){let i=j.current.value[e],n=M?i-t:i+t;X.setValueAtIndex(e,n)},stepDown(e,t=Q){let i=j.current.value[e],n=M?i+t:i-t;X.setValueAtIndex(e,n)},reset(){D(H.current)}}),[Q,M,D,B]),ee=(0,R.useCallback)(e=>{let t={ArrowRight:()=>X.stepUp(P),ArrowUp:()=>X.stepUp(P),ArrowLeft:()=>X.stepDown(P),ArrowDown:()=>X.stepDown(P),PageUp:()=>X.stepUp(P,J),PageDown:()=>X.stepDown(P,J),Home:()=>{let{min:e}=V[P];X.setValueAtIndex(P,e)},End:()=>{let{max:e}=V[P];X.setValueAtIndex(P,e)}}[e.key];t&&(e.preventDefault(),e.stopPropagation(),t(e),j.current.eventSource="keyboard")},[X,P,J,V]),{getThumbStyle:et,rootStyle:ei,trackStyle:en,innerTrackStyle:er}=(0,R.useMemo)(()=>bh({isReversed:M,orientation:d,thumbRects:G,thumbPercents:U}),[M,d,U,G]),eo=(0,R.useCallback)(e=>{var t;let i=null!=e?e:P;if(-1!==i&&C){let e=Z.getThumb(i),n=null==(t=q.current)?void 0:t.ownerDocument.getElementById(e);n&&setTimeout(()=>n.focus())}},[C,P,Z]);sm(()=>{"keyboard"===j.current.eventSource&&(null==E||E(j.current.value))},[z,E]);let es=e=>{let t=Y(e)||0,i=j.current.value.map(e=>Math.abs(e-t)),n=Math.min(...i),r=i.indexOf(n),o=i.filter(e=>e===n);o.length>1&&t>j.current.value[r]&&(r=r+o.length-1),F(r),X.setValueAtIndex(r,t),eo(r)},ea=e=>{if(-1==P)return;let t=Y(e)||0;F(P),X.setValueAtIndex(P,t),eo(P)};bE(q,{onPanSessionStart(e){B&&(T(!0),es(e),null==k||k(j.current.value))},onPanSessionEnd(){B&&(T(!1),null==E||E(j.current.value))},onPan(e){B&&ea(e)}});let el=(0,R.useCallback)((e={},t=null)=>({...e,...x,id:Z.root,ref:aN(t,q),tabIndex:-1,"aria-disabled":bs(h),"data-focused":bo(I),style:{...e.style,...ei}}),[x,h,I,ei,Z]),eu=(0,R.useCallback)((e={},t=null)=>({...e,ref:aN(t,K),id:Z.track,"data-disabled":bo(h),style:{...e.style,...en}}),[h,en,Z]),ed=(0,R.useCallback)((e={},t=null)=>({...e,ref:t,id:Z.innerTrack,style:{...e.style,...er}}),[er,Z]),ec=(0,R.useCallback)((e,t=null)=>{var i;let{index:n,...r}=e,o=z[n];if(null==o)throw TypeError(`[range-slider > thumb] Cannot find value at index \`${n}\`. The \`value\` or \`defaultValue\` length is : ${z.length}`);let s=V[n];return{...r,ref:t,role:"slider",tabIndex:B?0:void 0,id:Z.getThumb(n),"data-active":bo(A&&P===n),"aria-valuetext":null!=(i=null==L?void 0:L(o))?i:null==b?void 0:b[n],"aria-valuemin":s.min,"aria-valuemax":s.max,"aria-valuenow":o,"aria-orientation":d,"aria-disabled":bs(h),"aria-readonly":bs(f),"aria-label":null==y?void 0:y[n],"aria-labelledby":(null==y?void 0:y[n])?void 0:null==_?void 0:_[n],style:{...e.style,...et(n)},onKeyDown:bl(e.onKeyDown,ee),onFocus:bl(e.onFocus,()=>{O(!0),F(n)}),onBlur:bl(e.onBlur,()=>{O(!1),F(-1)})}},[Z,z,V,B,A,P,L,b,d,h,f,y,_,et,ee,O]),eh=(0,R.useCallback)((e={},t=null)=>({...e,ref:t,id:Z.output,htmlFor:z.map((e,t)=>Z.getThumb(t)).join(" "),"aria-live":"off"}),[Z,z]),ef=(0,R.useCallback)((e,t=null)=>{let{value:i,...o}=e,s=!(ir),a=i>=z[0]&&i<=z[z.length-1],l=(i-n)*100/(r-n),u={position:"absolute",pointerEvents:"none",...bu({orientation:d,vertical:{bottom:`${l=M?100-l:l}%`},horizontal:{left:`${l}%`}})};return{...o,ref:t,id:Z.getMarker(e.value),role:"presentation","aria-hidden":!0,"data-disabled":bo(h),"data-invalid":bo(!s),"data-highlighted":bo(a),style:{...e.style,...u}}},[h,M,r,n,d,z,Z]),ep=(0,R.useCallback)((e,t=null)=>{let{index:i,...n}=e;return{...n,ref:t,id:Z.getInput(i),type:"hidden",value:z[i],name:Array.isArray(w)?w[i]:`${w}-${i}`}},[w,z,Z]);return{state:{value:z,isFocused:I,isDragging:A,getThumbPercent:e=>U[e],getThumbMinValue:e=>V[e].min,getThumbMaxValue:e=>V[e].max},actions:X,getRootProps:el,getTrackProps:eu,getInnerTrackProps:ed,getThumbProps:ec,getMarkerProps:ef,getInputProps:ep,getOutputProps:eh}}var[bD,bA]=F({name:"SliderContext",errorMessage:"useSliderContext: `context` is undefined. Seems you forgot to wrap all slider components within "}),[bT,bI]=F({name:"RangeSliderStylesContext",errorMessage:"useRangeSliderStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),bO=sD(function(e,t){let i={orientation:"horizontal",...e},n=s$("Slider",i),r=tL(i),{direction:o}=sA();r.direction=o;let{getRootProps:s,...a}=bN(r),l=(0,R.useMemo)(()=>({...a,name:i.name}),[a,i.name]);return(0,A.jsx)(bD,{value:l,children:(0,A.jsx)(bT,{value:n,children:(0,A.jsx)(sE.div,{...s({},t),className:"chakra-slider",__css:n.container,children:i.children})})})});bO.displayName="RangeSlider";var bP=sD(function(e,t){let{getThumbProps:i,getInputProps:n,name:r}=bA(),o=bI(),s=i(e,t);return(0,A.jsxs)(sE.div,{...s,className:ba("chakra-slider__thumb",e.className),__css:o.thumb,children:[s.children,r&&(0,A.jsx)("input",{...n({index:e.index})})]})});bP.displayName="RangeSliderThumb";var bR=sD(function(e,t){let{getTrackProps:i}=bA(),n=bI(),r=i(e,t);return(0,A.jsx)(sE.div,{...r,className:ba("chakra-slider__track",e.className),__css:n.track,"data-testid":"chakra-range-slider-track"})});bR.displayName="RangeSliderTrack";var bF=sD(function(e,t){let{getInnerTrackProps:i}=bA(),n=bI(),r=i(e,t);return(0,A.jsx)(sE.div,{...r,className:"chakra-slider__filled-track",__css:n.filledTrack})});bF.displayName="RangeSliderFilledTrack";var bB=sD(function(e,t){let{getMarkerProps:i}=bA(),n=i(e,t);return(0,A.jsx)(sE.div,{...n,className:ba("chakra-slider__marker",e.className)})});function bH(e){var t;let{min:i=0,max:n=100,onChange:r,value:o,defaultValue:s,isReversed:a,direction:l="ltr",orientation:u="horizontal",id:d,isDisabled:c,isReadOnly:h,onChangeStart:f,onChangeEnd:p,step:g=1,getAriaValueText:m,"aria-valuetext":v,"aria-label":b,"aria-labelledby":y,name:_,focusThumbOnChange:w=!0,...C}=e,S=sg(f),x=sg(p),k=sg(m),E=bf({isReversed:a,direction:l,orientation:u}),[L,M]=aj({value:o,defaultValue:null!=s?s:n{var t,i,n,r;if(!j.current)return;let o=V.current;o.eventSource="pointer";let s=j.current.getBoundingClientRect(),{clientX:a,clientY:l}=null!=(i=null==(t=e.touches)?void 0:t[0])?i:e,u=(z?s.bottom-l:a-s.left)/(z?s.height:s.width);E&&(u=1-u);let d=(n=u,r=o.min,(o.max-r)*n+r);return o.step&&(d=parseFloat(uc(d,o.min,o.step))),d=uh(d,o.min,o.max)},[z,E,V]),Y=(0,R.useCallback)(e=>{let t=V.current;t.isInteractive&&M(e=uh(e=parseFloat(uc(e,t.min,P)),t.min,t.max))},[P,M,V]),J=(0,R.useMemo)(()=>({stepUp(e=P){Y(E?F-e:F+e)},stepDown(e=P){Y(E?F+e:F-e)},reset(){Y(s||0)},stepTo(e){Y(e)}}),[Y,E,F,P,s]),Q=(0,R.useCallback)(e=>{let t=V.current,i={ArrowRight:()=>J.stepUp(),ArrowUp:()=>J.stepUp(),ArrowLeft:()=>J.stepDown(),ArrowDown:()=>J.stepDown(),PageUp:()=>J.stepUp(O),PageDown:()=>J.stepDown(O),Home:()=>Y(t.min),End:()=>Y(t.max)}[e.key];i&&(e.preventDefault(),e.stopPropagation(),i(e),t.eventSource="keyboard")},[J,Y,O,V]),X=null!=(t=null==k?void 0:k(F))?t:v,ee=function(e){let[t]=bM({observeMutation:!1,getNodes:()=>["object"==typeof e&&null!==e&&"current"in e?e.current:e]});return t}(W),{getThumbStyle:et,rootStyle:ei,trackStyle:en,innerTrackStyle:er}=(0,R.useMemo)(()=>{let e=V.current,t=null!=ee?ee:{width:0,height:0};return bh({isReversed:E,orientation:e.orientation,thumbRects:[t],thumbPercents:[H]})},[E,ee,H,V]),eo=(0,R.useCallback)(()=>{V.current.focusThumbOnChange&&setTimeout(()=>{var e;return null==(e=W.current)?void 0:e.focus()})},[V]);function es(e){let t=Z(e);null!=t&&t!==V.current.value&&M(t)}sm(()=>{let e=V.current;eo(),"keyboard"===e.eventSource&&(null==x||x(e.value))},[F,x]),bE(U,{onPanSessionStart(e){let t=V.current;t.isInteractive&&(D(!0),eo(),es(e),null==S||S(t.value))},onPanSessionEnd(){let e=V.current;e.isInteractive&&(D(!1),null==x||x(e.value))},onPan(e){V.current.isInteractive&&es(e)}});let ea=(0,R.useCallback)((e={},t=null)=>({...e,...C,ref:aN(t,U),tabIndex:-1,"aria-disabled":bs(c),"data-focused":bo(A),style:{...e.style,...ei}}),[C,c,A,ei]),el=(0,R.useCallback)((e={},t=null)=>({...e,ref:aN(t,j),id:G,"data-disabled":bo(c),style:{...e.style,...en}}),[c,G,en]),eu=(0,R.useCallback)((e={},t=null)=>({...e,ref:t,style:{...e.style,...er}}),[er]),ed=(0,R.useCallback)((e={},t=null)=>({...e,ref:aN(t,W),role:"slider",tabIndex:I?0:void 0,id:q,"data-active":bo(N),"aria-valuetext":X,"aria-valuemin":i,"aria-valuemax":n,"aria-valuenow":F,"aria-orientation":u,"aria-disabled":bs(c),"aria-readonly":bs(h),"aria-label":b,"aria-labelledby":b?void 0:y,style:{...e.style,...et(0)},onKeyDown:bl(e.onKeyDown,Q),onFocus:bl(e.onFocus,()=>T(!0)),onBlur:bl(e.onBlur,()=>T(!1))}),[I,q,N,X,i,n,F,u,c,h,b,y,et,Q]),ec=(0,R.useCallback)((e,t=null)=>{let r=!(e.valuen),o=F>=e.value,s=(e.value-i)*100/(n-i),a={position:"absolute",pointerEvents:"none",...function(e){let{orientation:t,vertical:i,horizontal:n}=e;return"vertical"===t?i:n}({orientation:u,vertical:{bottom:E?`${100-s}%`:`${s}%`},horizontal:{left:E?`${100-s}%`:`${s}%`}})};return{...e,ref:t,role:"presentation","aria-hidden":!0,"data-disabled":bo(c),"data-invalid":bo(!r),"data-highlighted":bo(o),style:{...e.style,...a}}},[c,E,n,i,u,F]),eh=(0,R.useCallback)((e={},t=null)=>({...e,ref:t,type:"hidden",value:F,name:_}),[_,F]);return{state:{value:F,isFocused:A,isDragging:N},actions:J,getRootProps:ea,getTrackProps:el,getInnerTrackProps:eu,getThumbProps:ed,getMarkerProps:ec,getInputProps:eh}}bB.displayName="RangeSliderMark";var[bz,bV]=F({name:"SliderContext",hookName:"useSliderContext",providerName:""}),[bj,bW]=F({name:"SliderStylesContext",hookName:"useSliderStyles",providerName:""}),bU=sD((e,t)=>{var i;let n={...e,orientation:null!=(i=null==e?void 0:e.orientation)?i:"horizontal"},r=s$("Slider",n),o=tL(n),{direction:s}=sA();o.direction=s;let{getInputProps:a,getRootProps:l,...u}=bH(o),d=l(),c=a({},t);return(0,A.jsx)(bz,{value:u,children:(0,A.jsx)(bj,{value:r,children:(0,A.jsxs)(sE.div,{...d,className:ba("chakra-slider",n.className),__css:r.container,children:[n.children,(0,A.jsx)("input",{...c})]})})})});bU.displayName="Slider";var b$=sD((e,t)=>{let{getThumbProps:i}=bV(),n=bW(),r=i(e,t);return(0,A.jsx)(sE.div,{...r,className:ba("chakra-slider__thumb",e.className),__css:n.thumb})});b$.displayName="SliderThumb";var bK=sD((e,t)=>{let{getTrackProps:i}=bV(),n=bW(),r=i(e,t);return(0,A.jsx)(sE.div,{...r,className:ba("chakra-slider__track",e.className),__css:n.track})});bK.displayName="SliderTrack";var bq=sD((e,t)=>{let{getInnerTrackProps:i}=bV(),n=bW(),r=i(e,t);return(0,A.jsx)(sE.div,{...r,className:ba("chakra-slider__filled-track",e.className),__css:n.filledTrack})});bq.displayName="SliderFilledTrack";var bG=sD((e,t)=>{let{getMarkerProps:i}=bV(),n=bW(),r=i(e,t);return(0,A.jsx)(sE.div,{...r,className:ba("chakra-slider__marker",e.className),__css:n.mark})});bG.displayName="SliderMark";var[bZ,bY]=F({name:"StatStylesContext",errorMessage:"useStatStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),bJ=sD(function(e,t){let i=s$("Stat",e),n={position:"relative",flex:"1 1 0%",...i.container},{className:r,children:o,...s}=tL(e);return(0,A.jsx)(bZ,{value:i,children:(0,A.jsx)(sE.div,{ref:t,...s,className:$("chakra-stat",r),__css:n,children:(0,A.jsx)("dl",{children:o})})})});bJ.displayName="Stat";var bQ=e=>(0,A.jsx)(sG,{color:"red.400",...e,children:(0,A.jsx)("path",{fill:"currentColor",d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z"})});function bX(e){return(0,A.jsx)(sG,{color:"green.400",...e,children:(0,A.jsx)("path",{fill:"currentColor",d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z"})})}function b0(e){let{type:t,"aria-label":i,...n}=e,r=bY(),o="increase"===t?bX:bQ;return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(sE.span,{srOnly:!0,children:i||("increase"===t?"increased by":"decreased by")}),(0,A.jsx)(o,{"aria-hidden":!0,...n,__css:r.icon})]})}bQ.displayName="StatDownArrow",bX.displayName="StatUpArrow",b0.displayName="StatArrow";var b1=sD(function(e,t){return(0,A.jsx)(sE.div,{...e,ref:t,role:"group",className:$("chakra-stat__group",e.className),__css:{display:"flex",flexWrap:"wrap",justifyContent:"space-around",alignItems:"flex-start"}})});b1.displayName="StatGroup";var b2=sD(function(e,t){let i=bY();return(0,A.jsx)(sE.dd,{ref:t,...e,className:$("chakra-stat__help-text",e.className),__css:i.helpText})});b2.displayName="StatHelpText";var b6=sD(function(e,t){let i=bY();return(0,A.jsx)(sE.dt,{ref:t,...e,className:$("chakra-stat__label",e.className),__css:i.label})});b6.displayName="StatLabel";var b3=sD(function(e,t){let i=bY();return(0,A.jsx)(sE.dd,{ref:t,...e,className:$("chakra-stat__number",e.className),__css:{...i.number,fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums"}})});b3.displayName="StatNumber";var[b8,b5]=F({name:"StepContext"}),[b4,b9]=tU("Stepper"),b7=sD(function(e,t){let{status:i}=b5(),n=b9();return(0,A.jsx)(sE.h3,{ref:t,"data-status":i,...e,__css:n.title,className:$("chakra-step__title",e.className)})}),ye=sD(function(e,t){let{orientation:i,status:n,showLastSeparator:r}=b5(),o=b9();return(0,A.jsx)(sE.div,{ref:t,"data-status":n,"data-orientation":i,"data-stretch":Y(r),__css:o.step,...e,className:$("chakra-step",e.className)})}),yt=sD(function(e,t){let i=s$("Stepper",e),{children:n,index:r,orientation:o="horizontal",showLastSeparator:s=!1,...a}=tL(e),l=R.Children.toArray(n),u=l.length;return(0,A.jsx)(sE.div,{ref:t,"aria-label":"Progress","data-orientation":o,...a,__css:i.stepper,className:$("chakra-stepper",e.className),children:(0,A.jsx)(b4,{value:i,children:l.map((e,t)=>(0,A.jsx)(b8,{value:{index:t,status:tr?"incomplete":"active",orientation:o,showLastSeparator:s,count:u,isFirst:0===t,isLast:t===u-1},children:e},t))})})});function yi(e={}){let{index:t=0,count:i}=e,[n,r]=(0,R.useState)(t);return{activeStep:n,setActiveStep:r,activeStepPercent:n/("number"==typeof i?i-1:0),isActiveStep:e=>e===n,isCompleteStep:e=>ee>n,getStatus:e=>en?"incomplete":"active",goToNext(){r(e=>"number"==typeof i?Math.min(i,e+1):e+1)},goToPrevious(){r(e=>Math.max(0,e-1))}}}var yn=sD(function(e,t){let{status:i}=b5(),n=b9();return(0,A.jsx)(sE.p,{ref:t,"data-status":i,...e,className:$("chakra-step__description",e.className),__css:n.description})});function yr(e){let{complete:t,incomplete:i,active:n}=e,r=b5(),o=null;switch(r.status){case"complete":o=G(t,r);break;case"incomplete":o=G(i,r);break;case"active":o=G(n,r)}return o?(0,A.jsx)(A.Fragment,{children:o}):null}function yo(e){return(0,A.jsx)("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 20 20","aria-hidden":"true",height:"1em",width:"1em",...e,children:(0,A.jsx)("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})}function ys(e){let{status:t}=b5(),i=b9();return(0,A.jsx)(sG,{as:"complete"===t?yo:void 0,__css:i.icon,...e,className:$("chakra-step__icon",e.className)})}var ya=sD(function(e,t){let{children:i,...n}=e,{status:r,index:o}=b5(),s=b9();return(0,A.jsx)(sE.div,{ref:t,"data-status":r,__css:s.number,...n,className:$("chakra-step__number",e.className),children:i||o+1})});function yl(e){let{status:t}=b5(),i=b9();return(0,A.jsx)(sE.div,{"data-status":t,...e,__css:i.indicator,className:$("chakra-step__indicator",e.className)})}function yu(){return(0,A.jsx)(yr,{complete:(0,A.jsx)(ys,{}),incomplete:(0,A.jsx)(ya,{}),active:(0,A.jsx)(ya,{})})}var yd=sD(function(e,t){let{orientation:i,status:n,isLast:r,showLastSeparator:o}=b5(),s=b9();return r&&!o?null:(0,A.jsx)(sE.div,{ref:t,role:"separator","data-orientation":i,"data-status":n,__css:s.separator,...e,className:$("chakra-step__separator",e.className)})}),yc=sD(function(e,t){let i=s$("Switch",e),{spacing:n="0.5rem",children:r,...o}=tL(e),{state:s,getInputProps:a,getCheckboxProps:l,getRootProps:u,getLabelProps:d}=ue(o),c=(0,R.useMemo)(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...i.container}),[i.container]),h=(0,R.useMemo)(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...i.track}),[i.track]),f=(0,R.useMemo)(()=>({userSelect:"none",marginStart:n,...i.label}),[n,i.label]);return(0,A.jsxs)(sE.label,{...u(),className:$("chakra-switch",e.className),__css:c,children:[(0,A.jsx)("input",{className:"chakra-switch__input",...a({},t)}),(0,A.jsx)(sE.span,{...l(),className:"chakra-switch__track",__css:h,children:(0,A.jsx)(sE.span,{__css:i.thumb,className:"chakra-switch__thumb","data-checked":Y(s.isChecked),"data-hover":Y(s.isHovered)})}),r&&(0,A.jsx)(sE.span,{className:"chakra-switch__label",...d(),__css:f,children:r})]})});yc.displayName="Switch";var yh=new Set(["dark","light","system"]);function yf(e={}){let t;let{initialColorMode:i="light",type:n="localStorage",storageKey:r="chakra-ui-color-mode"}=e,o=(t=i,yh.has(t)||(t="light"),t);return`!${"cookie"===n?`(function(){try{var a=function(o){var l="(prefers-color-scheme: dark)",v=window.matchMedia(l).matches?"dark":"light",e=o==="system"?v:o,d=document.documentElement,m=document.body,i="chakra-ui-light",n="chakra-ui-dark",s=e==="dark";return m.classList.add(s?n:i),m.classList.remove(s?i:n),d.style.colorScheme=e,d.dataset.theme=e,e},u=a,h="${o}",r="${r}",t=document.cookie.match(new RegExp("(^| )".concat(r,"=([^;]+)"))),c=t?t[2]:null;c?a(c):document.cookie="".concat(r,"=").concat(a(h),"; max-age=31536000; path=/")}catch(a){}})(); `:`(function(){try{var a=function(c){var v="(prefers-color-scheme: dark)",h=window.matchMedia(v).matches?"dark":"light",r=c==="system"?h:c,o=document.documentElement,s=document.body,l="chakra-ui-light",d="chakra-ui-dark",i=r==="dark";return s.classList.add(i?d:l),s.classList.remove(i?l:d),o.style.colorScheme=r,o.dataset.theme=r,r},n=a,m="${o}",e="${r}",t=localStorage.getItem(e);t?a(t):localStorage.setItem(e,a(m))}catch(a){}})(); `}`.trim()}function yp(e={}){let{nonce:t}=e;return(0,A.jsx)("script",{id:"chakra-script",nonce:t,dangerouslySetInnerHTML:{__html:yf(e)}})}var[yg,ym]=F({name:"TableStylesContext",errorMessage:"useTableStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),yv=sD((e,t)=>{let i=s$("Table",e),{className:n,layout:r,...o}=tL(e);return(0,A.jsx)(yg,{value:i,children:(0,A.jsx)(sE.table,{ref:t,__css:{tableLayout:r,...i.table},className:$("chakra-table",n),...o})})});yv.displayName="Table";var yb=sD((e,t)=>{let i=ym();return(0,A.jsx)(sE.thead,{...e,ref:t,__css:i.thead})}),yy=sD((e,t)=>{let i=ym();return(0,A.jsx)(sE.tr,{...e,ref:t,__css:i.tr})}),y_=sD((e,t)=>{let{placement:i="bottom",...n}=e,r=ym();return(0,A.jsx)(sE.caption,{...n,ref:t,__css:{...r.caption,captionSide:i}})});y_.displayName="TableCaption";var yw=sD((e,t)=>{var i;let{overflow:n,overflowX:r,className:o,...s}=e;return(0,A.jsx)(sE.div,{ref:t,className:$("chakra-table__container",o),...s,__css:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflowX:null!=(i=null!=n?n:r)?i:"auto",overflowY:"hidden",maxWidth:"100%"}})}),yC=sD((e,t)=>{let i=ym();return(0,A.jsx)(sE.tbody,{...e,ref:t,__css:i.tbody})}),yS=sD(({isNumeric:e,...t},i)=>{let n=ym();return(0,A.jsx)(sE.td,{...t,ref:i,__css:n.td,"data-is-numeric":e})}),yx=sD((e,t)=>{let i=ym();return(0,A.jsx)(sE.tfoot,{...e,ref:t,__css:i.tfoot})}),yk=sD(({isNumeric:e,...t},i)=>{let n=ym();return(0,A.jsx)(sE.th,{...t,ref:i,__css:n.th,"data-is-numeric":e})}),[yE,yL,yM,yN]=aT();function yD(e){var t;let{defaultIndex:i,onChange:n,index:r,isManual:o,isLazy:s,lazyBehavior:a="unmount",orientation:l="horizontal",direction:u="ltr",...d}=e,[c,h]=(0,R.useState)(null!=i?i:0),[f,p]=aj({defaultValue:null!=i?i:0,value:r,onChange:n});(0,R.useEffect)(()=>{null!=r&&h(r)},[r]);let g=yM();return{id:`tabs-${null!=(t=e.id)?t:(0,R.useId)()}`,selectedIndex:f,focusedIndex:c,setSelectedIndex:p,setFocusedIndex:h,isManual:o,isLazy:s,lazyBehavior:a,orientation:l,descendants:g,direction:u,htmlProps:d}}var[yA,yT]=F({name:"TabsContext",errorMessage:"useTabsContext: `context` is undefined. Seems you forgot to wrap all tabs components within "});function yI(e){let{focusedIndex:t,orientation:i,direction:n}=yT(),r=yL(),o=(0,R.useCallback)(e=>{let o=()=>{var e;let i=r.nextEnabled(t);i&&(null==(e=i.node)||e.focus())},s=()=>{var e;let i=r.prevEnabled(t);i&&(null==(e=i.node)||e.focus())},a="horizontal"===i,l="vertical"===i,u={["ltr"===n?"ArrowLeft":"ArrowRight"]:()=>a&&s(),["ltr"===n?"ArrowRight":"ArrowLeft"]:()=>a&&o(),ArrowDown:()=>l&&o(),ArrowUp:()=>l&&s(),Home:()=>{var e;let t=r.firstEnabled();t&&(null==(e=t.node)||e.focus())},End:()=>{var e;let t=r.lastEnabled();t&&(null==(e=t.node)||e.focus())}}[e.key];u&&(e.preventDefault(),u(e))},[r,t,i,n]);return{...e,role:"tablist","aria-orientation":i,onKeyDown:Q(e.onKeyDown,o)}}function yO(e){let{isDisabled:t,isFocusable:i,...n}=e,{setSelectedIndex:r,isManual:o,id:s,setFocusedIndex:a,selectedIndex:l}=yT(),{index:u,register:d}=yN({disabled:t&&!i}),c=u===l;return{...fZ({...n,ref:aN(d,e.ref),isDisabled:t,isFocusable:i,onClick:Q(e.onClick,()=>{r(u)})}),id:yz(s,u),role:"tab",tabIndex:c?0:-1,type:"button","aria-selected":c,"aria-controls":yV(s,u),onFocus:t?void 0:Q(e.onFocus,()=>{a(u),o||t&&i||r(u)})}}var[yP,yR]=F({});function yF(e){let{id:t,selectedIndex:i}=yT(),n=lu(e.children).map((e,n)=>(0,R.createElement)(yP,{key:n,value:{isSelected:n===i,id:yV(t,n),tabId:yz(t,n),selectedIndex:i}},e));return{...e,children:n}}function yB(e){let{children:t,...i}=e,{isLazy:n,lazyBehavior:r}=yT(),{isSelected:o,id:s,tabId:a}=yR(),l=(0,R.useRef)(!1);o&&(l.current=!0);let u=ge({wasSelected:l.current,isSelected:o,enabled:n,mode:r});return{tabIndex:0,...i,children:u?t:null,role:"tabpanel","aria-labelledby":a,hidden:!o,id:s}}function yH(){let e=yT(),t=yL(),{selectedIndex:i,orientation:n}=e,r="horizontal"===n,o="vertical"===n,[s,a]=(0,R.useState)(()=>r?{left:0,width:0}:o?{top:0,height:0}:void 0),[l,u]=(0,R.useState)(!1);return t0(()=>{if(null==i)return;let e=t.item(i);if(null==e)return;r&&a({left:e.node.offsetLeft,width:e.node.offsetWidth}),o&&a({top:e.node.offsetTop,height:e.node.offsetHeight});let n=requestAnimationFrame(()=>{u(!0)});return()=>{n&&cancelAnimationFrame(n)}},[i,r,o,t]),{position:"absolute",transitionProperty:"left, right, top, bottom, height, width",transitionDuration:l?"200ms":"0ms",transitionTimingFunction:"cubic-bezier(0, 0, 0.2, 1)",...s}}function yz(e,t){return`${e}--tab-${t}`}function yV(e,t){return`${e}--tabpanel-${t}`}var[yj,yW]=F({name:"TabsStylesContext",errorMessage:"useTabsStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),yU=sD(function(e,t){let i=s$("Tabs",e),{children:n,className:r,...o}=tL(e),{htmlProps:s,descendants:a,...l}=yD(o),u=(0,R.useMemo)(()=>l,[l]),{isFitted:d,...c}=s;return(0,A.jsx)(yE,{value:a,children:(0,A.jsx)(yA,{value:u,children:(0,A.jsx)(yj,{value:i,children:(0,A.jsx)(sE.div,{className:$("chakra-tabs",r),ref:t,...c,__css:i.root,children:n})})})})});yU.displayName="Tabs";var y$=sD(function(e,t){let i=yH(),n={...e.style,...i},r=yW();return(0,A.jsx)(sE.div,{ref:t,...e,className:$("chakra-tabs__tab-indicator",e.className),style:n,__css:r.indicator})});y$.displayName="TabIndicator";var yK=sD(function(e,t){let i=yI({...e,ref:t}),n={display:"flex",...yW().tablist};return(0,A.jsx)(sE.div,{...i,className:$("chakra-tabs__tablist",e.className),__css:n})});yK.displayName="TabList";var yq=sD(function(e,t){let i=yB({...e,ref:t}),n=yW();return(0,A.jsx)(sE.div,{outline:"0",...i,className:$("chakra-tabs__tab-panel",e.className),__css:n.tabpanel})});yq.displayName="TabPanel";var yG=sD(function(e,t){let i=yF(e),n=yW();return(0,A.jsx)(sE.div,{...i,width:"100%",ref:t,className:$("chakra-tabs__tab-panels",e.className),__css:n.tabpanels})});yG.displayName="TabPanels";var yZ=sD(function(e,t){let i=yW(),n=yO({...e,ref:t}),r={outline:"0",display:"flex",alignItems:"center",justifyContent:"center",...i.tab};return(0,A.jsx)(sE.button,{...n,className:$("chakra-tabs__tab",e.className),__css:r})});yZ.displayName="Tab";var[yY,yJ]=F({name:"TagStylesContext",errorMessage:"useTagStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),yQ=sD((e,t)=>{let i=s$("Tag",e),n=tL(e),r={display:"inline-flex",verticalAlign:"top",alignItems:"center",maxWidth:"100%",...i.container};return(0,A.jsx)(yY,{value:i,children:(0,A.jsx)(sE.span,{ref:t,...n,__css:r})})});yQ.displayName="Tag";var yX=sD((e,t)=>{let i=yJ();return(0,A.jsx)(sE.span,{ref:t,noOfLines:1,...e,__css:i.label})});yX.displayName="TagLabel";var y0=sD((e,t)=>(0,A.jsx)(sG,{ref:t,verticalAlign:"top",marginEnd:"0.5rem",...e}));y0.displayName="TagLeftIcon";var y1=sD((e,t)=>(0,A.jsx)(sG,{ref:t,verticalAlign:"top",marginStart:"0.5rem",...e}));y1.displayName="TagRightIcon";var y2=e=>(0,A.jsx)(sG,{verticalAlign:"inherit",viewBox:"0 0 512 512",...e,children:(0,A.jsx)("path",{fill:"currentColor",d:"M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z"})});y2.displayName="TagCloseIcon";var y6=sD((e,t)=>{let{isDisabled:i,children:n,...r}=e,o={display:"flex",alignItems:"center",justifyContent:"center",outline:"0",...yJ().closeButton};return(0,A.jsx)(sE.button,{ref:t,"aria-label":"close",...r,type:"button",disabled:i,__css:o,children:n||(0,A.jsx)(y2,{})})});y6.displayName="TagCloseButton";var y3=["h","minH","height","minHeight"],y8=sD((e,t)=>{let i=sU("Textarea",e),{className:n,rows:r,...o}=tL(e),s=lq(o),a=r?function(e,t=[]){let i=Object.assign({},e);for(let e of t)e in i&&delete i[e];return i}(i,y3):i;return(0,A.jsx)(sE.textarea,{ref:t,rows:r,...s,className:$("chakra-textarea",n),__css:a})});function y5({colorScheme:e,components:t}){return i=>{let n=Object.keys(i.components||{});return Array.isArray(t)?n=t:K(t)&&(n=Object.keys(t)),sH(i,{components:Object.fromEntries(n.map(t=>[t,{defaultProps:{colorScheme:e}}]))})}}function y4({size:e,components:t}){return i=>{let n=Object.keys(i.components||{});return Array.isArray(t)?n=t:K(t)&&(n=Object.keys(t)),sH(i,{components:Object.fromEntries(n.map(t=>[t,{defaultProps:{size:e}}]))})}}function y9({variant:e,components:t}){return i=>{let n=Object.keys(i.components||{});return Array.isArray(t)?n=t:K(t)&&(n=Object.keys(t)),sH(i,{components:Object.fromEntries(n.map(t=>[t,{defaultProps:{variant:e}}]))})}}function y7({defaultProps:{colorScheme:e,variant:t,size:i},components:n}){let r=e=>e,o=[e?y5({colorScheme:e,components:n}):r,i?y4({size:i,components:n}):r,t?y9({variant:t,components:n}):r];return e=>sH((function(...e){return t=>e.reduce((e,t)=>t(e),t)})(...o)(e))}function _e(e){let{theme:t}=sT(),i=ap();return(0,R.useMemo)(()=>an(t.direction,{...i,...e}),[e,t.direction,i])}y8.displayName="Textarea";var _t={theme:sd,colorMode:"light",toggleColorMode:()=>{},setColorMode:()=>{},defaultOptions:{duration:5e3,variant:"solid"},forced:!1};function _i({theme:e=_t.theme,colorMode:t=_t.colorMode,toggleColorMode:i=_t.toggleColorMode,setColorMode:n=_t.setColorMode,defaultOptions:r=_t.defaultOptions,motionVariants:o,toastSpacing:s,component:a,forced:l}=_t){let u={colorMode:t,setColorMode:n,toggleColorMode:i,forced:l};return{ToastContainer:()=>(0,A.jsx)(tz,{theme:e,children:(0,A.jsx)(V.Provider,{value:u,children:(0,A.jsx)(ag,{defaultOptions:r,motionVariants:o,toastSpacing:s,component:a})})}),toast:an(e.direction,r)}}var _n={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}},_r=e=>{var t;return(null==(t=e.current)?void 0:t.ownerDocument)||document},_o=e=>{var t,i;return(null==(i=null==(t=e.current)?void 0:t.ownerDocument)?void 0:i.defaultView)||window};function _s(e={}){let{openDelay:t=0,closeDelay:i=0,closeOnClick:n=!0,closeOnMouseDown:r,closeOnScroll:o,closeOnPointerDown:s=r,closeOnEsc:a=!0,onOpen:l,onClose:u,placement:d,id:c,isOpen:h,defaultIsOpen:f,arrowSize:p=10,arrowShadowColor:g,arrowPadding:m,modifiers:v,isDisabled:b,gutter:y,offset:_,direction:w,...C}=e,{isOpen:S,onOpen:x,onClose:k}=p5({isOpen:h,defaultIsOpen:f,onOpen:l,onClose:u}),{referenceRef:E,getPopperProps:L,getArrowInnerProps:M,getArrowProps:N}=p8({enabled:S,placement:d,arrowPadding:m,modifiers:v,gutter:y,offset:_,direction:w}),D=`tooltip-${null!=c?c:(0,R.useId)()}`,A=(0,R.useRef)(null),T=(0,R.useRef)(),I=(0,R.useCallback)(()=>{T.current&&(clearTimeout(T.current),T.current=void 0)},[]),O=(0,R.useRef)(),P=(0,R.useCallback)(()=>{O.current&&(clearTimeout(O.current),O.current=void 0)},[]),F=(0,R.useCallback)(()=>{P(),k()},[k,P]),B=((0,R.useEffect)(()=>{let e=_r(A);return e.addEventListener(_a,F),()=>e.removeEventListener(_a,F)},[F,A]),()=>{let e=_r(A),t=_o(A);e.dispatchEvent(new t.CustomEvent(_a))}),H=(0,R.useCallback)(()=>{if(!b&&!T.current){B();let e=_o(A);T.current=e.setTimeout(x,t)}},[B,b,x,t]),z=(0,R.useCallback)(()=>{I();let e=_o(A);O.current=e.setTimeout(F,i)},[i,F,I]),V=(0,R.useCallback)(()=>{S&&n&&z()},[n,z,S]),j=(0,R.useCallback)(()=>{S&&s&&z()},[s,z,S]),W=(0,R.useCallback)(e=>{S&&"Escape"===e.key&&z()},[S,z]);uE(()=>_r(A),"keydown",a?W:void 0),uE(()=>_r(A),"scroll",()=>{S&&o&&F()}),(0,R.useEffect)(()=>{b&&(I(),S&&k())},[b,S,k,I]),(0,R.useEffect)(()=>()=>{I(),P()},[I,P]),uE(()=>A.current,"pointerleave",z);let U=(0,R.useCallback)((e={},t=null)=>({...e,ref:aN(A,t,E),onPointerEnter:Q(e.onPointerEnter,e=>{"touch"!==e.pointerType&&H()}),onClick:Q(e.onClick,V),onPointerDown:Q(e.onPointerDown,j),onFocus:Q(e.onFocus,H),onBlur:Q(e.onBlur,z),"aria-describedby":S?D:void 0}),[H,z,j,S,D,V,E]),$=(0,R.useCallback)((e={},t=null)=>L({...e,style:{...e.style,[fX.arrowSize.var]:p?`${p}px`:void 0,[fX.arrowShadowColor.var]:g}},t),[L,p,g]);return{isOpen:S,show:H,hide:z,getTriggerProps:U,getTooltipProps:(0,R.useCallback)((e={},t=null)=>{let i={...e.style,position:"relative",transformOrigin:fX.transformOrigin.varRef};return{ref:t,...C,...e,id:D,role:"tooltip",style:i}},[C,D]),getTooltipPositionerProps:$,getArrowProps:N,getArrowInnerProps:M}}var _a="chakra-ui:close-tooltip",_l=sE(sb.E.div),_u=sD((e,t)=>{var i,n;let r;let o=sU("Tooltip",e),s=tL(e),a=sA(),{children:l,label:u,shouldWrapChildren:d,"aria-label":c,hasArrow:h,bg:f,portalProps:p,background:g,backgroundColor:m,bgColor:v,motionProps:b,...y}=s,_=null!=(n=null!=(i=null!=g?g:m)?i:f)?n:v;if(_){o.bg=_;let e=tE(a,"colors",_);o[fX.arrowBg.var]=e}let w=_s({...y,direction:a.direction});if("string"==typeof l||d)r=(0,A.jsx)(sE.span,{display:"inline-block",tabIndex:0,...w.getTriggerProps(),children:l});else{let e=R.Children.only(l);r=(0,R.cloneElement)(e,w.getTriggerProps(e.props,e.ref))}let C=!!c,S=w.getTooltipProps({},t),x=C?function(e,t=[]){let i=Object.assign({},e);for(let e of t)e in i&&delete i[e];return i}(S,["role","id"]):S,k=function(e,t){let i={};for(let n of t)n in e&&(i[n]=e[n]);return i}(S,["role","id"]);return u?(0,A.jsxs)(A.Fragment,{children:[r,(0,A.jsx)(ar.M,{children:w.isOpen&&(0,A.jsx)(ah,{...p,children:(0,A.jsx)(sE.div,{...w.getTooltipPositionerProps(),__css:{zIndex:o.zIndex,pointerEvents:"none"},children:(0,A.jsxs)(_l,{variants:_n,initial:"exit",animate:"enter",exit:"exit",...b,...x,__css:o,children:[u,C&&(0,A.jsx)(sE.span,{srOnly:!0,...k,children:c}),h&&(0,A.jsx)(sE.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper",children:(0,A.jsx)(sE.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:o.bg}})})]})})})})]}):(0,A.jsx)(A.Fragment,{children:l})});_u.displayName="Tooltip";var _d=sE("span",{baseStyle:lZ});_d.displayName="VisuallyHidden";var _c=sE("input",{baseStyle:lZ});_c.displayName="VisuallyHiddenInput"},39185:(e,t,i)=>{"use strict";i.d(t,{Z:()=>U});var n=function(){function e(e){var t=this;this._insertTag=function(e){var i;i=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,i),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t;this._insertTag(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t))}var i=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?g[w]+" "+C:a(C,/&\f/g,g[w])).trim())&&(c[_++]=S);return y(e,t,i,0===o?D:u,c,h,f)}function R(e,t,i,n){return y(e,t,i,A,d(e,0,n),d(e,n+1,-1),n)}var F=function(e,t,i){for(var n=0,r=0;n=r,r=C(),38===n&&12===r&&(t[i]=1),!S(r);)w();return d(b,e,m)},B=function(e,t){var i=-1,n=44;do switch(S(n)){case 0:38===n&&12===C()&&(t[i]=1),e[i]+=F(m-1,t,i);break;case 2:e[i]+=k(n);break;case 4:if(44===n){e[++i]=58===C()?"&\f":"",t[i]=e[i].length;break}default:e[i]+=o(n)}while(n=w())return e},H=function(e,t){var i;return i=B(x(e),t),b="",i},z=new WeakMap,V=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,i=e.parent,n=e.column===i.column&&e.line===i.line;"rule"!==i.type;)if(!(i=i.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||z.get(i))&&!n){z.set(e,!0);for(var r=[],o=H(t,r),s=i.props,a=0,l=0;a-1&&!e.return)switch(e.type){case A:e.return=function e(t,i){switch(45^u(t,0)?(((i<<2^u(t,0))<<2^u(t,1))<<2^u(t,2))<<2^u(t,3):0){case 5103:return M+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return M+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return M+t+L+t+E+t+t;case 6828:case 4268:return M+t+E+t+t;case 6165:return M+t+E+"flex-"+t+t;case 5187:return M+t+a(t,/(\w+).+(:[^]+)/,M+"box-$1$2"+E+"flex-$1$2")+t;case 5443:return M+t+E+"flex-item-"+a(t,/flex-|-self/,"")+t;case 4675:return M+t+E+"flex-line-pack"+a(t,/align-content|flex-|-self/,"")+t;case 5548:return M+t+E+a(t,"shrink","negative")+t;case 5292:return M+t+E+a(t,"basis","preferred-size")+t;case 6060:return M+"box-"+a(t,"-grow","")+M+t+E+a(t,"grow","positive")+t;case 4554:return M+a(t,/([^-])(transform)/g,"$1"+M+"$2")+t;case 6187:return a(a(a(t,/(zoom-|grab)/,M+"$1"),/(image-set)/,M+"$1"),t,"")+t;case 5495:case 3959:return a(t,/(image-set\([^]*)/,M+"$1$`$1");case 4968:return a(a(t,/(.+:)(flex-)?(.*)/,M+"box-pack:$3"+E+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+M+t+t;case 4095:case 3583:case 4068:case 2532:return a(t,/(.+)-inline(.+)/,M+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(c(t)-1-i>6)switch(u(t,i+1)){case 109:if(45!==u(t,i+4))break;case 102:return a(t,/(.+:)(.+)-([^]+)/,"$1"+M+"$2-$3$1"+L+(108==u(t,i+3)?"$3":"$2-$3"))+t;case 115:return~l(t,"stretch")?e(a(t,"stretch","fill-available"),i)+t:t}break;case 4949:if(115!==u(t,i+1))break;case 6444:switch(u(t,c(t)-3-(~l(t,"!important")&&10))){case 107:return a(t,":",":"+M)+t;case 101:return a(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+M+(45===u(t,14)?"inline-":"")+"box$3$1"+M+"$2$3$1"+E+"$2box$3")+t}break;case 5936:switch(u(t,i+11)){case 114:return M+t+E+a(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return M+t+E+a(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return M+t+E+a(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return M+t+E+t+t}return t}(e.value,e.length);break;case T:return I([_(e,{value:a(e.value,"@","@"+M)})],n);case D:if(e.length)return e.props.map(function(t){var i;switch(i=t,(i=/(::plac\w+|:read-\w+)/.exec(i))?i[0]:i){case":read-only":case":read-write":return I([_(e,{props:[a(t,/:(read-\w+)/,":"+L+"$1")]})],n);case"::placeholder":return I([_(e,{props:[a(t,/:(plac\w+)/,":"+M+"input-$1")]}),_(e,{props:[a(t,/:(plac\w+)/,":"+L+"$1")]}),_(e,{props:[a(t,/:(plac\w+)/,E+"input-$1")]})],n)}return""}).join("")}}],U=function(e){var t,i,r,s,g,_=e.key;if("css"===_){var E=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(E,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var L=e.stylisPlugins||W,M={},D=[];s=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+_+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),i=1;i2||S(v)>3?"":" "}(O);break;case 92:$+=function(e,t){for(var i;--t&&w()&&!(v<48)&&!(v>102)&&(!(v>57)||!(v<65))&&(!(v>70)||!(v<97)););return i=m+(t<6&&32==C()&&32==w()),d(b,e,i)}(m-1,7);continue;case 47:switch(C()){case 42:case 47:h(y(L=function(e,t){for(;w();)if(e+v===57)break;else if(e+v===84&&47===C())break;return"/*"+d(b,t,m-1)+"*"+o(47===e?e:w())}(w(),m),i,n,N,o(v),d(L,2,-2),0),E);break;default:$+="/"}break;case 123*F:x[M++]=c($)*H;case 125*F:case 59:case 0:switch(z){case 0:case 125:B=0;case 59+D:-1==H&&($=a($,/\f/g,"")),I>0&&c($)-A&&h(I>32?R($+";",r,n,A-1):R(a($," ","")+";",r,n,A-2),E);break;case 59:$+=";";default:if(h(U=P($,i,n,M,D,s,x,V,j=[],W=[],A),g),123===z){if(0===D)e($,i,U,U,j,g,A,x,W);else switch(99===T&&110===u($,3)?100:T){case 100:case 108:case 109:case 115:e(t,U,U,r&&h(P(t,U,U,0,0,s,x,V,s,j=[],A),W),s,W,A,x,r?j:W);break;default:e($,U,U,U,[""],W,0,x,W)}}}M=D=I=0,F=H=1,V=$="",A=_;break;case 58:A=1+c($),I=O;default:if(F<1){if(123==z)--F;else if(125==z&&0==F++&&125==(v=m>0?u(b,--m):0,p--,10===v&&(p=1,f--),v))continue}switch($+=o(z),z*F){case 38:H=D>0?1:($+="\f",-1);break;case 44:x[M++]=(c($)-1)*H,H=1;break;case 64:45===C()&&($+=k(w())),T=C(),D=A=c(V=$+=function(e){for(;!S(C());)w();return d(b,e,m)}(m)),z++;break;case 45:45===O&&2==c($)&&(F=0)}}return g}("",null,null,null,[""],t=x(t=e),0,[0],t),b="",i),A)},F={key:_,sheet:new n({key:_,container:s,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:M,registered:{},insert:function(e,t,i,n){g=i,T(e?e+"{"+t.styles+"}":t.styles),n&&(F.inserted[t.name]=!0)}};return F.sheet.hydrate(D),F}},47229:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;let r=function(e){var t={};return function(i){return void 0===t[i]&&(t[i]=e(i)),t[i]}}(function(e){return n.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)})},86894:(e,t,i)=>{"use strict";function n(e){var t=Object.create(null);return function(i){return void 0===t[i]&&(t[i]=e(i)),t[i]}}i.d(t,{Z:()=>n})},33895:(e,t,i)=>{"use strict";i.d(t,{C:()=>g,E:()=>E,T:()=>b,_:()=>m,a:()=>w,b:()=>C,c:()=>x,h:()=>f,i:()=>h,u:()=>y,w:()=>v});var n=i(2784),r=i(39185),o=i(7560),s=function(e){var t=new WeakMap;return function(i){if(t.has(i))return t.get(i);var n=e(i);return t.set(i,n),n}},a=i(73463),l=i.n(a),u=i(82792),d=i(1245),c=i(82668),h=!0,f={}.hasOwnProperty,p=n.createContext("undefined"!=typeof HTMLElement?(0,r.Z)({key:"css"}):null),g=p.Provider,m=function(){return(0,n.useContext)(p)},v=function(e){return(0,n.forwardRef)(function(t,i){return e(t,(0,n.useContext)(p),i)})};h||(v=function(e){return function(t){var i=(0,n.useContext)(p);return null===i?(i=(0,r.Z)({key:"css"}),n.createElement(p.Provider,{value:i},e(t,i))):e(t,i)}});var b=n.createContext({}),y=function(){return n.useContext(b)},_=s(function(e){return s(function(t){return"function"==typeof t?t(e):(0,o.Z)({},e,t)})}),w=function(e){var t=n.useContext(b);return e.theme!==t&&(t=_(t)(e.theme)),n.createElement(b.Provider,{value:t},e.children)};function C(e){var t=e.displayName||e.name||"Component",i=n.forwardRef(function(t,i){var r=n.useContext(b);return n.createElement(e,(0,o.Z)({theme:r,ref:i},t))});return i.displayName="WithTheme("+t+")",l()(i,e)}var S="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",x=function(e,t){var i={};for(var n in t)f.call(t,n)&&(i[n]=t[n]);return i[S]=e,i},k=function(e){var t=e.cache,i=e.serialized,n=e.isStringTag;return(0,u.hC)(t,i,n),(0,c.L)(function(){return(0,u.My)(t,i,n)}),null},E=v(function(e,t,i){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[S],s=[r],a="";"string"==typeof e.className?a=(0,u.fp)(t.registered,s,e.className):null!=e.className&&(a=e.className+" ");var l=(0,d.O)(s,void 0,n.useContext(b));a+=t.key+"-"+l.name;var c={};for(var h in e)f.call(e,h)&&"css"!==h&&h!==S&&(c[h]=e[h]);return c.ref=i,c.className=a,n.createElement(n.Fragment,null,n.createElement(k,{cache:t,serialized:l,isStringTag:"string"==typeof o}),n.createElement(o,c))})},28165:(e,t,i)=>{"use strict";i.r(t),i.d(t,{CacheProvider:()=>n.C,ClassNames:()=>p,Global:()=>u,ThemeContext:()=>n.T,ThemeProvider:()=>n.a,__unsafe_useEmotionCache:()=>n._,createElement:()=>l,css:()=>d,jsx:()=>l,keyframes:()=>c,useTheme:()=>n.u,withEmotionCache:()=>n.w,withTheme:()=>n.b});var n=i(33895),r=i(2784),o=i(82792),s=i(82668),a=i(1245);i(39185),i(73463);var l=function(e,t){var i=arguments;if(null==t||!n.h.call(t,"css"))return r.createElement.apply(void 0,i);var o=i.length,s=Array(o);s[0]=n.E,s[1]=(0,n.c)(e,t);for(var a=2;a{"use strict";i.d(t,{O:()=>p});var n,r={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},o=i(86894),s=/[A-Z]|^ms/g,a=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},u=function(e){return null!=e&&"boolean"!=typeof e},d=(0,o.Z)(function(e){return l(e)?e:e.replace(s,"-$&").toLowerCase()}),c=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(a,function(e,t,i){return n={name:t,styles:i,next:n},t})}return 1===r[e]||l(e)||"number"!=typeof t||0===t?t:t+"px"};function h(e,t,i){if(null==i)return"";if(void 0!==i.__emotion_styles)return i;switch(typeof i){case"boolean":return"";case"object":if(1===i.anim)return n={name:i.name,styles:i.styles,next:n},i.name;if(void 0!==i.styles){var r=i.next;if(void 0!==r)for(;void 0!==r;)n={name:r.name,styles:r.styles,next:n},r=r.next;return i.styles+";"}return function(e,t,i){var n="";if(Array.isArray(i))for(var r=0;r=4;++n,r-=4)t=(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,i=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&i)*1540483477+((i>>>16)*59797<<16);switch(r){case 3:i^=(255&e.charCodeAt(n+2))<<16;case 2:i^=(255&e.charCodeAt(n+1))<<8;case 1:i^=255&e.charCodeAt(n),i=(65535&i)*1540483477+((i>>>16)*59797<<16)}return i^=i>>>13,(((i=(65535&i)*1540483477+((i>>>16)*59797<<16))^i>>>15)>>>0).toString(36)}(s)+u,styles:s,next:n}}},74126:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>m});var n=i(7560),r=i(2784),o=i(86894),s=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,a=(0,o.Z)(function(e){return s.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)}),l=i(33895),u=i(82792),d=i(1245),c=i(82668),h=function(e){return"theme"!==e},f=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?a:h},p=function(e,t,i){var n;if(t){var r=t.shouldForwardProp;n=e.__emotion_forwardProp&&r?function(t){return e.__emotion_forwardProp(t)&&r(t)}:r}return"function"!=typeof n&&i&&(n=e.__emotion_forwardProp),n},g=function(e){var t=e.cache,i=e.serialized,n=e.isStringTag;return(0,u.hC)(t,i,n),(0,c.L)(function(){return(0,u.My)(t,i,n)}),null},m=(function e(t,i){var o,s,a=t.__emotion_real===t,c=a&&t.__emotion_base||t;void 0!==i&&(o=i.label,s=i.target);var h=p(t,i,a),m=h||f(c),v=!m("as");return function(){var b=arguments,y=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==o&&y.push("label:"+o+";"),null==b[0]||void 0===b[0].raw)y.push.apply(y,b);else{y.push(b[0][0]);for(var _=b.length,w=1;w<_;w++)y.push(b[w],b[0][w])}var C=(0,l.w)(function(e,t,i){var n=v&&e.as||c,o="",a=[],p=e;if(null==e.theme){for(var b in p={},e)p[b]=e[b];p.theme=r.useContext(l.T)}"string"==typeof e.className?o=(0,u.fp)(t.registered,a,e.className):null!=e.className&&(o=e.className+" ");var _=(0,d.O)(y.concat(a),t.registered,p);o+=t.key+"-"+_.name,void 0!==s&&(o+=" "+s);var w=v&&void 0===h?f(n):m,C={};for(var S in e)(!v||"as"!==S)&&w(S)&&(C[S]=e[S]);return C.className=o,C.ref=i,r.createElement(r.Fragment,null,r.createElement(g,{cache:t,serialized:_,isStringTag:"string"==typeof n}),r.createElement(n,C))});return C.displayName=void 0!==o?o:"Styled("+("string"==typeof c?c:c.displayName||c.name||"Component")+")",C.defaultProps=t.defaultProps,C.__emotion_real=C,C.__emotion_base=c,C.__emotion_styles=y,C.__emotion_forwardProp=h,Object.defineProperty(C,"toString",{value:function(){return"."+s}}),C.withComponent=function(t,r){return e(t,(0,n.Z)({},i,r,{shouldForwardProp:p(C,r,!0)})).apply(void 0,y)},C}}).bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){m[e]=m(e)})},82668:(e,t,i)=>{"use strict";i.d(t,{L:()=>s,j:()=>a});var n,r=i(2784),o=!!(n||(n=i.t(r,2))).useInsertionEffect&&(n||(n=i.t(r,2))).useInsertionEffect,s=o||function(e){return e()},a=o||r.useLayoutEffect},82792:(e,t,i)=>{"use strict";function n(e,t,i){var n="";return i.split(" ").forEach(function(i){void 0!==e[i]?t.push(e[i]+";"):n+=i+" "}),n}i.d(t,{My:()=>o,fp:()=>n,hC:()=>r});var r=function(e,t,i){var n=e.key+"-"+t.name;!1===i&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},o=function(e,t,i){r(e,t,i);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do e.insert(t===o?"."+n:"",o,e.sheet,!0),o=o.next;while(void 0!==o)}}},57256:(e,t)=>{"use strict";function i(e){if(Array.isArray(e)){let t=[],n=0;for(let r=0;re.length)throw Error("invalid RLP (safeSlice): end slice of Uint8Array out-of-bounds");return e.slice(t,i)}function r(e){if(0===e[0])throw Error("invalid RLP: extra zeros");return u(l(e))}function o(e,t){if(e<56)return Uint8Array.from([e+t]);let i=f(e),n=f(t+55+i.length/2);return Uint8Array.from(d(n+i))}function s(e,t=!1){if(null==e||0===e.length)return Uint8Array.from([]);let i=function e(t){let i,o,s,a,l;let u=[],d=t[0];if(d<=127)return{data:t.slice(0,1),remainder:t.slice(1)};if(d<=183){if(i=d-127,s=128===d?Uint8Array.from([]):n(t,1,i),2===i&&s[0]<128)throw Error("invalid RLP encoding: invalid prefix, single byte < 0x80 are not prefixed");return{data:s,remainder:t.slice(i)}}if(d<=191){if(o=d-182,t.length-1t.length)throw Error("invalid RLP: total length is larger than the data");for(a=n(t,o,s);a.length;)l=e(a),u.push(l.data),a=l.remainder;return{data:u,remainder:t.slice(s)}}}(g(e));if(t)return i;if(0!==i.remainder.length)throw Error("invalid RLP: remainder must be zero");return i.data}Object.defineProperty(t,"__esModule",{value:!0}),t.RLP=t.utils=t.decode=t.encode=void 0,t.encode=i,t.decode=s;let a=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function l(e){let t="";for(let i=0;ie+t.length,0),i=new Uint8Array(t);for(let t=0,n=0;t=2&&"0"===e[0]&&"x"===e[1]}function g(e){if(e instanceof Uint8Array)return e;if("string"==typeof e){if(p(e)){var t;return d((t="string"!=typeof e?e:p(e)?e.slice(2):e).length%2?`0${t}`:t)}return h(e)}if("number"==typeof e||"bigint"==typeof e)return e?d(f(e)):Uint8Array.from([]);if(null==e)return Uint8Array.from([]);throw Error("toBytes: received unsupported type "+typeof e)}t.utils={bytesToHex:l,concatBytes:c,hexToBytes:d,utf8ToBytes:h},t.RLP={encode:i,decode:s}},54706:(e,t,i)=>{"use strict";var n=i(48834).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.accountBodyToRLP=t.accountBodyToSlim=t.accountBodyFromSlim=t.isZeroAddress=t.zeroAddress=t.importPublic=t.privateToAddress=t.privateToPublic=t.publicToAddress=t.pubToAddress=t.isValidPublic=t.isValidPrivate=t.generateAddress2=t.generateAddress=t.isValidChecksumAddress=t.toChecksumAddress=t.isValidAddress=t.Account=void 0;let r=i(57256),o=i(1115),s=i(80101),a=i(10144),l=i(85766),u=i(38127),d=i(38707),c=i(34243),h=BigInt(0);class f{constructor(e=h,t=h,i=u.KECCAK256_RLP,n=u.KECCAK256_NULL){this.nonce=e,this.balance=t,this.storageRoot=i,this.codeHash=n,this._validate()}static fromAccountData(e){let{nonce:t,balance:i,storageRoot:n,codeHash:r}=e;return new f(void 0!==t?(0,l.bufferToBigInt)((0,l.toBuffer)(t)):void 0,void 0!==i?(0,l.bufferToBigInt)((0,l.toBuffer)(i)):void 0,void 0!==n?(0,l.toBuffer)(n):void 0,void 0!==r?(0,l.toBuffer)(r):void 0)}static fromRlpSerializedAccount(e){let t=(0,l.arrToBufArr)(r.RLP.decode(Uint8Array.from(e)));if(!Array.isArray(t))throw Error("Invalid serialized account input. Must be array");return this.fromValuesArray(t)}static fromValuesArray(e){let[t,i,n,r]=e;return new f((0,l.bufferToBigInt)(t),(0,l.bufferToBigInt)(i),n,r)}_validate(){if(this.nonce=8?h+=i[e].toUpperCase():h+=i[e];return h},t.isValidChecksumAddress=function(e,i){return(0,t.isValidAddress)(e)&&(0,t.toChecksumAddress)(e,i)===e},t.generateAddress=function(e,t){return((0,d.assertIsBuffer)(e),(0,d.assertIsBuffer)(t),(0,l.bufferToBigInt)(t)===BigInt(0))?n.from((0,o.keccak256)(r.RLP.encode((0,l.bufArrToArr)([e,null])))).slice(-20):n.from((0,o.keccak256)(r.RLP.encode((0,l.bufArrToArr)([e,t])))).slice(-20)},t.generateAddress2=function(e,t,i){if((0,d.assertIsBuffer)(e),(0,d.assertIsBuffer)(t),(0,d.assertIsBuffer)(i),20!==e.length)throw Error("Expected from to be of length 20");if(32!==t.length)throw Error("Expected salt to be of length 32");let r=(0,o.keccak256)(n.concat([n.from("ff","hex"),e,t,(0,o.keccak256)(i)]));return(0,l.toBuffer)(r).slice(-20)},t.isValidPrivate=function(e){return s.secp256k1.utils.isValidPrivateKey(e)},t.isValidPublic=function(e,t=!1){if((0,d.assertIsBuffer)(e),64===e.length)try{return s.secp256k1.ProjectivePoint.fromHex(n.concat([n.from([4]),e])),!0}catch(e){return!1}if(!t)return!1;try{return s.secp256k1.ProjectivePoint.fromHex(e),!0}catch(e){return!1}},t.pubToAddress=function(e,t=!1){if((0,d.assertIsBuffer)(e),t&&64!==e.length&&(e=n.from(s.secp256k1.ProjectivePoint.fromHex(e).toRawBytes(!1).slice(1))),64!==e.length)throw Error("Expected pubKey to be of length 64");return n.from((0,o.keccak256)(e)).slice(-20)},t.publicToAddress=t.pubToAddress,t.privateToPublic=function(e){return(0,d.assertIsBuffer)(e),n.from(s.secp256k1.ProjectivePoint.fromPrivateKey(e).toRawBytes(!1).slice(1))},t.privateToAddress=function(e){return(0,t.publicToAddress)((0,t.privateToPublic)(e))},t.importPublic=function(e){return(0,d.assertIsBuffer)(e),64!==e.length&&(e=n.from(s.secp256k1.ProjectivePoint.fromHex(e).toRawBytes(!1).slice(1))),e},t.zeroAddress=function(){let e=(0,l.zeros)(20);return(0,l.bufferToHex)(e)},t.isZeroAddress=function(e){try{(0,d.assertIsString)(e)}catch(e){return!1}return(0,t.zeroAddress)()===e},t.accountBodyFromSlim=p;let g=new Uint8Array(0);t.accountBodyToSlim=function(e){let[t,i,n,r]=e;return[t,i,(0,l.arrToBufArr)(n).equals(u.KECCAK256_RLP)?g:n,(0,l.arrToBufArr)(r).equals(u.KECCAK256_NULL)?g:r]},t.accountBodyToRLP=function(e,t=!0){let i=t?p(e):e;return(0,l.arrToBufArr)(r.RLP.encode(i))}},38515:(e,t,i)=>{"use strict";var n=i(48834).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.Address=void 0;let r=i(54706),o=i(85766);class s{constructor(e){if(20!==e.length)throw Error("Invalid address length");this.buf=e}static zero(){return new s((0,o.zeros)(20))}static fromString(e){if(!(0,r.isValidAddress)(e))throw Error("Invalid address");return new s((0,o.toBuffer)(e))}static fromPublicKey(e){if(!n.isBuffer(e))throw Error("Public key should be Buffer");let t=(0,r.pubToAddress)(e);return new s(t)}static fromPrivateKey(e){if(!n.isBuffer(e))throw Error("Private key should be Buffer");let t=(0,r.privateToAddress)(e);return new s(t)}static generate(e,t){if("bigint"!=typeof t)throw Error("Expected nonce to be a bigint");return new s((0,r.generateAddress)(e.buf,(0,o.bigIntToBuffer)(t)))}static generate2(e,t,i){if(!n.isBuffer(t))throw Error("Expected salt to be a Buffer");if(!n.isBuffer(i))throw Error("Expected initCode to be a Buffer");return new s((0,r.generateAddress2)(e.buf,t,i))}equals(e){return this.buf.equals(e.buf)}isZero(){return this.equals(s.zero())}isPrecompileOrSystemAddress(){let e=(0,o.bufferToBigInt)(this.buf),t=BigInt(0),i=BigInt("0xffff");return e>=t&&e<=i}toString(){return"0x"+this.buf.toString("hex")}toBuffer(){return n.from(this.buf)}}t.Address=s},68263:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncEventEmitter=void 0;let n=i(22699);async function r(e,t,i){let n;for await(let r of t)try{r.length<2?r.call(e,i):await new Promise((t,n)=>{r.call(e,i,e=>{e?n(e):t()})})}catch(e){n=e}if(n)throw n}class o extends n.EventEmitter{emit(e,...t){let[i,n]=t,o=this._events[e]??[];return void 0===n&&"function"==typeof i&&(n=i,i=void 0),("newListener"===e||"removeListener"===e)&&(i={event:i,fn:n},n=void 0),r(this,(o=Array.isArray(o)?o:[o]).slice(),i).then(n).catch(n),this.listenerCount(e)>0}once(e,t){let i;let n=this;if("function"!=typeof t)throw TypeError("listener must be a function");return i=t.length>=2?function(r,o){n.removeListener(e,i),t(r,o)}:function(r){n.removeListener(e,i),t(r,i)},n.on(e,i),n}first(e,t){let i=this._events[e]??[];if("function"!=typeof t)throw TypeError("listener must be a function");return Array.isArray(i)||(this._events[e]=i=[i]),i.unshift(t),this}before(e,t,i){return this.beforeOrAfter(e,t,i)}after(e,t,i){return this.beforeOrAfter(e,t,i,"after")}beforeOrAfter(e,t,i,n){let r,o,s=this._events[e]??[],a="after"===n?1:0;if("function"!=typeof i)throw TypeError("listener must be a function");if("function"!=typeof t)throw TypeError("target must be a function");for(Array.isArray(s)||(this._events[e]=s=[s]),o=s.length,r=s.length;r--;)if(s[r]===t){o=r+a;break}return s.splice(o,0,i),this}on(e,t){return super.on(e,t)}addListener(e,t){return super.addListener(e,t)}prependListener(e,t){return super.prependListener(e,t)}prependOnceListener(e,t){return super.prependOnceListener(e,t)}removeAllListeners(e){return super.removeAllListeners(e)}removeListener(e,t){return super.removeListener(e,t)}eventNames(){return super.eventNames()}listeners(e){return super.listeners(e)}listenerCount(e){return super.listenerCount(e)}getMaxListeners(){return super.getMaxListeners()}setMaxListeners(e){return super.setMaxListeners(e)}}t.AsyncEventEmitter=o},85766:(e,t,i)=>{"use strict";var n=i(48834).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.intToUnpaddedBuffer=t.bigIntToUnpaddedBuffer=t.bigIntToHex=t.bufArrToArr=t.arrToBufArr=t.validateNoLeadingZeroes=t.baToJSON=t.toUtf8=t.short=t.addHexPrefix=t.toUnsigned=t.fromSigned=t.bufferToInt=t.bigIntToBuffer=t.bufferToBigInt=t.bufferToHex=t.toBuffer=t.unpadHexString=t.unpadArray=t.unpadBuffer=t.setLengthRight=t.setLengthLeft=t.zeros=t.intToBuffer=t.intToHex=void 0;let r=i(38707),o=i(34243);t.intToHex=function(e){if(!Number.isSafeInteger(e)||e<0)throw Error(`Received an invalid integer type: ${e}`);return`0x${e.toString(16)}`},t.intToBuffer=function(e){let i=(0,t.intToHex)(e);return n.from((0,o.padToEven)(i.slice(2)),"hex")},t.zeros=function(e){return n.allocUnsafe(e).fill(0)};let s=function(e,i,n){let r=(0,t.zeros)(i);return n?e.length0&&"0"===t.toString();)t=(e=e.slice(1))[0];return e};function l(e){let i=(0,t.bufferToHex)(e);return"0x"===i?BigInt(0):BigInt(i)}function u(e){return(0,t.toBuffer)("0x"+e.toString(16))}t.unpadBuffer=function(e){return(0,r.assertIsBuffer)(e),a(e)},t.unpadArray=function(e){return(0,r.assertIsArray)(e),a(e)},t.unpadHexString=function(e){return(0,r.assertIsHexString)(e),"0x"+a(e=(0,o.stripHexPrefix)(e))},t.toBuffer=function(e){if(null==e)return n.allocUnsafe(0);if(n.isBuffer(e)||Array.isArray(e)||e instanceof Uint8Array)return n.from(e);if("string"==typeof e){if(!(0,o.isHexString)(e))throw Error(`Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: ${e}`);return n.from((0,o.padToEven)((0,o.stripHexPrefix)(e)),"hex")}if("number"==typeof e)return(0,t.intToBuffer)(e);if("bigint"==typeof e){if(e0&&0===i[0])throw Error(`${t} cannot have leading zeroes, received: ${i.toString("hex")}`)},t.arrToBufArr=function e(t){return Array.isArray(t)?t.map(t=>e(t)):n.from(t)},t.bufArrToArr=function e(t){return Array.isArray(t)?t.map(t=>e(t)):Uint8Array.from(t??[])},t.bigIntToHex=e=>"0x"+e.toString(16),t.bigIntToUnpaddedBuffer=function(e){return(0,t.unpadBuffer)(u(e))},t.intToUnpaddedBuffer=function(e){return(0,t.unpadBuffer)((0,t.intToBuffer)(e))}},38127:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MAX_WITHDRAWALS_PER_PAYLOAD=t.RLP_EMPTY_STRING=t.KECCAK256_RLP=t.KECCAK256_RLP_S=t.KECCAK256_RLP_ARRAY=t.KECCAK256_RLP_ARRAY_S=t.KECCAK256_NULL=t.KECCAK256_NULL_S=t.TWO_POW256=t.SECP256K1_ORDER_DIV_2=t.SECP256K1_ORDER=t.MAX_INTEGER_BIGINT=t.MAX_INTEGER=t.MAX_UINT64=void 0;let n=i(48834),r=i(80101);t.MAX_UINT64=BigInt("0xffffffffffffffff"),t.MAX_INTEGER=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),t.MAX_INTEGER_BIGINT=BigInt("115792089237316195423570985008687907853269984665640564039457584007913129639935"),t.SECP256K1_ORDER=r.secp256k1.CURVE.n,t.SECP256K1_ORDER_DIV_2=r.secp256k1.CURVE.n/BigInt(2),t.TWO_POW256=BigInt("0x10000000000000000000000000000000000000000000000000000000000000000"),t.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",t.KECCAK256_NULL=n.Buffer.from(t.KECCAK256_NULL_S,"hex"),t.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",t.KECCAK256_RLP_ARRAY=n.Buffer.from(t.KECCAK256_RLP_ARRAY_S,"hex"),t.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",t.KECCAK256_RLP=n.Buffer.from(t.KECCAK256_RLP_S,"hex"),t.RLP_EMPTY_STRING=n.Buffer.from([128]),t.MAX_WITHDRAWALS_PER_PAYLOAD=16},73244:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compactBytesToNibbles=t.bytesToNibbles=t.nibblesToCompactBytes=t.nibblesToBytes=t.hasTerminator=void 0,t.hasTerminator=e=>e.length>0&&16===e[e.length-1],t.nibblesToBytes=(e,t)=>{for(let i=0,n=0;n{let i=0;(0,t.hasTerminator)(e)&&(i=1,e=e.subarray(0,e.length-1));let n=new Uint8Array(e.length/2+1);return n[0]=i<<5,(1&e.length)==1&&(n[0]|=16,n[0]|=e[0],e=e.subarray(1)),(0,t.nibblesToBytes)(e,n.subarray(1)),n},t.bytesToNibbles=e=>{let t=2*e.length+1,i=new Uint8Array(t);for(let t=0;t{if(0===e.length)return e;let i=(0,t.bytesToNibbles)(e);i[0]<2&&(i=i.subarray(0,i.length-1));let n=2-(1&i[0]);return i.subarray(n)}},38707:(e,t,i)=>{"use strict";var n=i(48834).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.assertIsString=t.assertIsArray=t.assertIsBuffer=t.assertIsHexString=void 0;let r=i(34243);t.assertIsHexString=function(e){if(!(0,r.isHexString)(e))throw Error(`This method only supports 0x-prefixed hex strings but input was: ${e}`)},t.assertIsBuffer=function(e){if(!n.isBuffer(e))throw Error(`This method only supports Buffer but input was: ${e}`)},t.assertIsArray=function(e){if(!Array.isArray(e))throw Error(`This method only supports number arrays but input was: ${e}`)},t.assertIsString=function(e){if("string"!=typeof e)throw Error(`This method only supports strings but input was: ${e}`)}},45372:function(e,t,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i);var r=Object.getOwnPropertyDescriptor(t,i);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,n,r)}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),r=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||n(t,e,i)};Object.defineProperty(t,"__esModule",{value:!0}),t.toAscii=t.stripHexPrefix=t.padToEven=t.isHexString=t.isHexPrefixed=t.getKeys=t.getBinarySize=t.fromUtf8=t.fromAscii=t.arrayContainsArray=void 0,r(i(38127),t),r(i(53895),t),r(i(54706),t),r(i(38515),t),r(i(72868),t),r(i(2074),t),r(i(85766),t),r(i(82103),t),r(i(73244),t),r(i(68263),t);var o=i(34243);Object.defineProperty(t,"arrayContainsArray",{enumerable:!0,get:function(){return o.arrayContainsArray}}),Object.defineProperty(t,"fromAscii",{enumerable:!0,get:function(){return o.fromAscii}}),Object.defineProperty(t,"fromUtf8",{enumerable:!0,get:function(){return o.fromUtf8}}),Object.defineProperty(t,"getBinarySize",{enumerable:!0,get:function(){return o.getBinarySize}}),Object.defineProperty(t,"getKeys",{enumerable:!0,get:function(){return o.getKeys}}),Object.defineProperty(t,"isHexPrefixed",{enumerable:!0,get:function(){return o.isHexPrefixed}}),Object.defineProperty(t,"isHexString",{enumerable:!0,get:function(){return o.isHexString}}),Object.defineProperty(t,"padToEven",{enumerable:!0,get:function(){return o.padToEven}}),Object.defineProperty(t,"stripHexPrefix",{enumerable:!0,get:function(){return o.stripHexPrefix}}),Object.defineProperty(t,"toAscii",{enumerable:!0,get:function(){return o.toAscii}}),r(i(66065),t),r(i(46831),t)},34243:(e,t,i)=>{"use strict";var n=i(48834).Buffer;function r(e){if("string"!=typeof e)throw Error(`[isHexPrefixed] input must be type 'string', received type ${typeof e}`);return"0"===e[0]&&"x"===e[1]}function o(e){let t=e;if("string"!=typeof t)throw Error(`[padToEven] value must be type 'string', received ${typeof t}`);return t.length%2&&(t=`0${t}`),t}Object.defineProperty(t,"__esModule",{value:!0}),t.isHexString=t.getKeys=t.fromAscii=t.fromUtf8=t.toAscii=t.arrayContainsArray=t.getBinarySize=t.padToEven=t.stripHexPrefix=t.isHexPrefixed=void 0,t.isHexPrefixed=r,t.stripHexPrefix=e=>{if("string"!=typeof e)throw Error(`[stripHexPrefix] input must be type 'string', received ${typeof e}`);return r(e)?e.slice(2):e},t.padToEven=o,t.getBinarySize=function(e){if("string"!=typeof e)throw Error(`[getBinarySize] method requires input type 'string', received ${typeof e}`);return n.byteLength(e,"utf8")},t.arrayContainsArray=function(e,t,i){if(!0!==Array.isArray(e))throw Error(`[arrayContainsArray] method requires input 'superset' to be an array, got type '${typeof e}'`);if(!0!==Array.isArray(t))throw Error(`[arrayContainsArray] method requires input 'subset' to be an array, got type '${typeof t}'`);return t[!0===i?"some":"every"](t=>e.indexOf(t)>=0)},t.toAscii=function(e){let t="",i=0,n=e.length;for("0x"===e.substring(0,2)&&(i=2);i0)||e.length===2+2*t)}},66065:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Lock=void 0,t.Lock=class{constructor(){this.permits=1,this.promiseResolverQueue=[]}async acquire(){return this.permits>0?(this.permits-=1,Promise.resolve(!0)):new Promise(e=>this.promiseResolverQueue.push(e))}release(){if(this.permits+=1,this.permits>1&&this.promiseResolverQueue.length>0)console.warn("Lock.permits should never be > 0 when there is someone waiting.");else if(1===this.permits&&this.promiseResolverQueue.length>0){this.permits-=1;let e=this.promiseResolverQueue.shift();e&&e(!0)}}}},46831:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getProvider=t.fetchFromProvider=void 0;let n=i(42973),r=async(e,t)=>(await (0,n.default)(e,{headers:{"content-type":"application/json"},type:"json",data:{method:t.method,params:t.params,jsonrpc:"2.0",id:1}})).result;t.fetchFromProvider=r,t.getProvider=e=>{if("string"==typeof e)return e;if(e?.connection?.url!==void 0)return e.connection.url;throw Error("Must provide valid provider URL or Web3Provider")}},2074:(e,t,i)=>{"use strict";var n=i(48834).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.hashPersonalMessage=t.isValidSignature=t.fromRpcSig=t.toCompactSig=t.toRpcSig=t.ecrecover=t.ecsign=void 0;let r=i(1115),o=i(80101),s=i(85766),a=i(38127),l=i(38707);function u(e,t){return e===BigInt(0)||e===BigInt(1)?e:void 0===t?e-BigInt(27):e-(t*BigInt(2)+BigInt(35))}function d(e){return e===BigInt(0)||e===BigInt(1)}t.ecsign=function(e,t,i){let r=o.secp256k1.sign(e,t),s=r.toCompactRawBytes();return{r:n.from(s.slice(0,32)),s:n.from(s.slice(32,64)),v:void 0===i?BigInt(r.recovery+27):BigInt(r.recovery+35)+BigInt(i)*BigInt(2)}},t.ecrecover=function(e,t,i,r,a){let l=n.concat([(0,s.setLengthLeft)(i,32),(0,s.setLengthLeft)(r,32)],64),c=u(t,a);if(!d(c))throw Error("Invalid signature v value");let h=o.secp256k1.Signature.fromCompact(l).addRecoveryBit(Number(c)).recoverPublicKey(e);return n.from(h.toRawBytes(!1).slice(1))},t.toRpcSig=function(e,t,i,r){if(!d(u(e,r)))throw Error("Invalid signature v value");return(0,s.bufferToHex)(n.concat([(0,s.setLengthLeft)(t,32),(0,s.setLengthLeft)(i,32),(0,s.toBuffer)(e)]))},t.toCompactSig=function(e,t,i,r){if(!d(u(e,r)))throw Error("Invalid signature v value");let o=i;return(e>BigInt(28)&&e%BigInt(2)===BigInt(1)||e===BigInt(1)||e===BigInt(28))&&(o=n.from(i),o[0]|=128),(0,s.bufferToHex)(n.concat([(0,s.setLengthLeft)(t,32),(0,s.setLengthLeft)(o,32)]))},t.fromRpcSig=function(e){let t,i,n;let r=(0,s.toBuffer)(e);if(r.length>=65)t=r.slice(0,32),i=r.slice(32,64),n=(0,s.bufferToBigInt)(r.slice(64));else if(64===r.length)t=r.slice(0,32),i=r.slice(32,64),n=BigInt((0,s.bufferToInt)(r.slice(32,33))>>7),i[0]&=127;else throw Error("Invalid signature length");return n<27&&(n+=BigInt(27)),{v:n,r:t,s:i}},t.isValidSignature=function(e,t,i,n=!0,r){if(32!==t.length||32!==i.length||!d(u(e,r)))return!1;let o=(0,s.bufferToBigInt)(t),l=(0,s.bufferToBigInt)(i);return o!==BigInt(0)&&!(o>=a.SECP256K1_ORDER)&&l!==BigInt(0)&&!(l>=a.SECP256K1_ORDER)&&(!n||!(l>=a.SECP256K1_ORDER_DIV_2))},t.hashPersonalMessage=function(e){(0,l.assertIsBuffer)(e);let t=n.from(`\u0019Ethereum Signed Message: -${e.length}`,"utf-8");return n.from((0,r.keccak256)(n.concat([t,e])))}},82103:(e,t,i)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.toType=t.TypeOutput=void 0;let r=i(85766),o=i(34243);!function(e){e[e.Number=0]="Number",e[e.BigInt=1]="BigInt",e[e.Buffer=2]="Buffer",e[e.PrefixedHexString=3]="PrefixedHexString"}(n=t.TypeOutput||(t.TypeOutput={})),t.toType=function(e,t){if(null===e)return null;if(void 0===e)return;if("string"!=typeof e||(0,o.isHexString)(e)){if("number"==typeof e&&!Number.isSafeInteger(e))throw Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)")}else throw Error(`A string must be provided with a 0x-prefix, given: ${e}`);let i=(0,r.toBuffer)(e);switch(t){case n.Buffer:return i;case n.BigInt:return(0,r.bufferToBigInt)(i);case n.Number:{let e=(0,r.bufferToBigInt)(i);if(e>BigInt(Number.MAX_SAFE_INTEGER))throw Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative output type)");return Number(e)}case n.PrefixedHexString:return(0,r.bufferToHex)(i);default:throw Error("unknown outputType")}}},53895:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GWEI_TO_WEI=void 0,t.GWEI_TO_WEI=BigInt(1e9)},72868:(e,t,i)=>{"use strict";var n=i(48834).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.Withdrawal=void 0;let r=i(38515),o=i(85766),s=i(82103);class a{constructor(e,t,i,n){this.index=e,this.validatorIndex=t,this.address=i,this.amount=n}static fromWithdrawalData(e){let{index:t,validatorIndex:i,address:n,amount:o}=e,l=(0,s.toType)(t,s.TypeOutput.BigInt),u=(0,s.toType)(i,s.TypeOutput.BigInt),d=new r.Address((0,s.toType)(n,s.TypeOutput.Buffer)),c=(0,s.toType)(o,s.TypeOutput.BigInt);return new a(l,u,d,c)}static fromValuesArray(e){if(4!==e.length)throw Error(`Invalid withdrawalArray length expected=4 actual=${e.length}`);let[t,i,n,r]=e;return a.fromWithdrawalData({index:t,validatorIndex:i,address:n,amount:r})}static toBufferArray(e){let{index:t,validatorIndex:i,address:o,amount:a}=e;return[(0,s.toType)(t,s.TypeOutput.BigInt)===BigInt(0)?n.alloc(0):(0,s.toType)(t,s.TypeOutput.Buffer),(0,s.toType)(i,s.TypeOutput.BigInt)===BigInt(0)?n.alloc(0):(0,s.toType)(i,s.TypeOutput.Buffer),o instanceof r.Address?o.buf:(0,s.toType)(o,s.TypeOutput.Buffer),(0,s.toType)(a,s.TypeOutput.BigInt)===BigInt(0)?n.alloc(0):(0,s.toType)(a,s.TypeOutput.Buffer)]}raw(){return a.toBufferArray(this)}toValue(){return{index:this.index,validatorIndex:this.validatorIndex,address:this.address.buf,amount:this.amount}}toJSON(){return{index:(0,o.bigIntToHex)(this.index),validatorIndex:(0,o.bigIntToHex)(this.validatorIndex),address:"0x"+this.address.buf.toString("hex"),amount:(0,o.bigIntToHex)(this.amount)}}}t.Withdrawal=a},54269:function(e,t,i){!function(e,t){"use strict";function n(e,t){if(!e)throw Error(t||"Assertion failed")}function r(e,t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}function o(e,t,i){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&(("le"===t||"be"===t)&&(i=t,t=10),this._init(e||0,t||10,i||"be"))}"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{c="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:i(29005).Buffer}catch(e){}function s(e,t){var i=e.charCodeAt(t);return i>=48&&i<=57?i-48:i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:void n(!1,"Invalid character in "+e)}function a(e,t,i){var n=s(e,i);return i-1>=t&&(n|=s(e,i-1)<<4),n}function l(e,t,i,r){for(var o=0,s=0,a=Math.min(e.length,i),l=t;l=49?u-49+10:u>=17?u-17+10:u,n(u>=0&&s0?e:t},o.min=function(e,t){return 0>e.cmp(t)?e:t},o.prototype._init=function(e,t,i){if("number"==typeof e)return this._initNumber(e,t,i);if("object"==typeof e)return this._initArray(e,t,i);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var r=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(r++,this.negative=1),r=0;s-=3)o=e[s]|e[s-1]<<8|e[s-2]<<16,this.words[r]|=o<>>26-a&67108863,(a+=24)>=26&&(a-=26,r++);else if("le"===i)for(s=0,r=0;s>>26-a&67108863,(a+=24)>=26&&(a-=26,r++);return this._strip()},o.prototype._parseHex=function(e,t,i){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var n,r=0;r=t;r-=2)n=a(e,t,r)<=18?(o-=18,s+=1,this.words[s]|=n>>>26):o+=8;else for(r=(e.length-t)%2==0?t+1:t;r=18?(o-=18,s+=1,this.words[s]|=n>>>26):o+=8;this._strip()},o.prototype._parseBase=function(e,t,i){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=t)n++;n--,r=r/t|0;for(var o=e.length-i,s=o%n,a=Math.min(o,o-s)+i,u=0,d=i;d1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=d}catch(e){o.prototype.inspect=d}else o.prototype.inspect=d;function d(){return(this.red?""}var c,h=["","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"],f=[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],p=[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];function g(e,t,i){i.negative=t.negative^e.negative;var n=e.length+t.length|0;i.length=n,n=n-1|0;var r=0|e.words[0],o=0|t.words[0],s=r*o,a=67108863&s,l=s/67108864|0;i.words[0]=a;for(var u=1;u>>26,c=67108863&l,h=Math.min(u,t.length-1),f=Math.max(0,u-e.length+1);f<=h;f++){var p=u-f|0;d+=(s=(r=0|e.words[p])*(o=0|t.words[f])+c)/67108864|0,c=67108863&s}i.words[u]=0|c,l=0|d}return 0!==l?i.words[u]=0|l:i.length--,i._strip()}o.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){i="";for(var i,r=0,o=0,s=0;s>>24-r&16777215,(r+=2)>=26&&(r-=26,s--),i=0!==o||s!==this.length-1?h[6-l.length]+l+i:l+i}for(0!==o&&(i=o.toString(16)+i);i.length%t!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(e===(0|e)&&e>=2&&e<=36){var u=f[e],d=p[e];i="";var c=this.clone();for(c.negative=0;!c.isZero();){var g=c.modrn(d).toString(e);i=(c=c.idivn(d)).isZero()?g+i:h[u-g.length]+g+i}for(this.isZero()&&(i="0"+i);i.length%t!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},c&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(c,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,i){this._strip();var r=this.byteLength(),o=i||Math.max(1,r);n(r<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var s=e.allocUnsafe?e.allocUnsafe(o):new e(o);return this["_toArrayLike"+("le"===t?"LE":"BE")](s,r),s},o.prototype._toArrayLikeLE=function(e,t){for(var i=0,n=0,r=0,o=0;r>8&255),i>16&255),6===o?(i>24&255),n=0,o=0):(n=s>>>24,o+=2)}if(i=0&&(e[i--]=s>>8&255),i>=0&&(e[i--]=s>>16&255),6===o?(i>=0&&(e[i--]=s>>24&255),n=0,o=0):(n=s>>>24,o+=2)}if(i>=0)for(e[i--]=n;i>=0;)e[i--]=0},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,i=0;return t>=4096&&(i+=13,t>>>=13),t>=64&&(i+=7,t>>>=7),t>=8&&(i+=4,t>>>=4),t>=2&&(i+=2,t>>>=2),i+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,i=0;return(8191&t)==0&&(i+=13,t>>>=13),(127&t)==0&&(i+=7,t>>>=7),(15&t)==0&&(i+=4,t>>>=4),(3&t)==0&&(i+=2,t>>>=2),(1&t)==0&&i++,i},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var i=0;ie.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){this.length>e.length?(t=this,i=e):(t=e,i=this);for(var t,i,n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),i=e%26;this._expand(t),i>0&&t--;for(var r=0;r0&&(this.words[r]=~this.words[r]&67108863>>26-i),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var i=e/26|0,r=e%26;return this._expand(i+1),t?this.words[i]=this.words[i]|1<e.length?(i=this,n=e):(i=e,n=this);for(var t,i,n,r=0,o=0;o>>26;for(;0!==r&&o>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,i,n=this.iadd(e);return e.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r=this.cmp(e);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(t=this,i=e):(t=e,i=this);for(var o=0,s=0;s>26,this.words[s]=67108863&n;for(;0!==o&&s>26,this.words[s]=67108863&n;if(0===o&&s>>13,f=0|s[1],p=8191&f,g=f>>>13,m=0|s[2],v=8191&m,b=m>>>13,y=0|s[3],_=8191&y,w=y>>>13,C=0|s[4],S=8191&C,x=C>>>13,k=0|s[5],E=8191&k,L=k>>>13,M=0|s[6],N=8191&M,D=M>>>13,A=0|s[7],T=8191&A,I=A>>>13,O=0|s[8],P=8191&O,R=O>>>13,F=0|s[9],B=8191&F,H=F>>>13,z=0|a[0],V=8191&z,j=z>>>13,W=0|a[1],U=8191&W,$=W>>>13,K=0|a[2],q=8191&K,G=K>>>13,Z=0|a[3],Y=8191&Z,J=Z>>>13,Q=0|a[4],X=8191&Q,ee=Q>>>13,et=0|a[5],ei=8191&et,en=et>>>13,er=0|a[6],eo=8191&er,es=er>>>13,ea=0|a[7],el=8191&ea,eu=ea>>>13,ed=0|a[8],ec=8191&ed,eh=ed>>>13,ef=0|a[9],ep=8191&ef,eg=ef>>>13;i.negative=e.negative^t.negative,i.length=19;var em=(u+(n=Math.imul(c,V))|0)+((8191&(r=(r=Math.imul(c,j))+Math.imul(h,V)|0))<<13)|0;u=((o=Math.imul(h,j))+(r>>>13)|0)+(em>>>26)|0,em&=67108863,n=Math.imul(p,V),r=(r=Math.imul(p,j))+Math.imul(g,V)|0,o=Math.imul(g,j);var ev=(u+(n=n+Math.imul(c,U)|0)|0)+((8191&(r=(r=r+Math.imul(c,$)|0)+Math.imul(h,U)|0))<<13)|0;u=((o=o+Math.imul(h,$)|0)+(r>>>13)|0)+(ev>>>26)|0,ev&=67108863,n=Math.imul(v,V),r=(r=Math.imul(v,j))+Math.imul(b,V)|0,o=Math.imul(b,j),n=n+Math.imul(p,U)|0,r=(r=r+Math.imul(p,$)|0)+Math.imul(g,U)|0,o=o+Math.imul(g,$)|0;var eb=(u+(n=n+Math.imul(c,q)|0)|0)+((8191&(r=(r=r+Math.imul(c,G)|0)+Math.imul(h,q)|0))<<13)|0;u=((o=o+Math.imul(h,G)|0)+(r>>>13)|0)+(eb>>>26)|0,eb&=67108863,n=Math.imul(_,V),r=(r=Math.imul(_,j))+Math.imul(w,V)|0,o=Math.imul(w,j),n=n+Math.imul(v,U)|0,r=(r=r+Math.imul(v,$)|0)+Math.imul(b,U)|0,o=o+Math.imul(b,$)|0,n=n+Math.imul(p,q)|0,r=(r=r+Math.imul(p,G)|0)+Math.imul(g,q)|0,o=o+Math.imul(g,G)|0;var ey=(u+(n=n+Math.imul(c,Y)|0)|0)+((8191&(r=(r=r+Math.imul(c,J)|0)+Math.imul(h,Y)|0))<<13)|0;u=((o=o+Math.imul(h,J)|0)+(r>>>13)|0)+(ey>>>26)|0,ey&=67108863,n=Math.imul(S,V),r=(r=Math.imul(S,j))+Math.imul(x,V)|0,o=Math.imul(x,j),n=n+Math.imul(_,U)|0,r=(r=r+Math.imul(_,$)|0)+Math.imul(w,U)|0,o=o+Math.imul(w,$)|0,n=n+Math.imul(v,q)|0,r=(r=r+Math.imul(v,G)|0)+Math.imul(b,q)|0,o=o+Math.imul(b,G)|0,n=n+Math.imul(p,Y)|0,r=(r=r+Math.imul(p,J)|0)+Math.imul(g,Y)|0,o=o+Math.imul(g,J)|0;var e_=(u+(n=n+Math.imul(c,X)|0)|0)+((8191&(r=(r=r+Math.imul(c,ee)|0)+Math.imul(h,X)|0))<<13)|0;u=((o=o+Math.imul(h,ee)|0)+(r>>>13)|0)+(e_>>>26)|0,e_&=67108863,n=Math.imul(E,V),r=(r=Math.imul(E,j))+Math.imul(L,V)|0,o=Math.imul(L,j),n=n+Math.imul(S,U)|0,r=(r=r+Math.imul(S,$)|0)+Math.imul(x,U)|0,o=o+Math.imul(x,$)|0,n=n+Math.imul(_,q)|0,r=(r=r+Math.imul(_,G)|0)+Math.imul(w,q)|0,o=o+Math.imul(w,G)|0,n=n+Math.imul(v,Y)|0,r=(r=r+Math.imul(v,J)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,J)|0,n=n+Math.imul(p,X)|0,r=(r=r+Math.imul(p,ee)|0)+Math.imul(g,X)|0,o=o+Math.imul(g,ee)|0;var ew=(u+(n=n+Math.imul(c,ei)|0)|0)+((8191&(r=(r=r+Math.imul(c,en)|0)+Math.imul(h,ei)|0))<<13)|0;u=((o=o+Math.imul(h,en)|0)+(r>>>13)|0)+(ew>>>26)|0,ew&=67108863,n=Math.imul(N,V),r=(r=Math.imul(N,j))+Math.imul(D,V)|0,o=Math.imul(D,j),n=n+Math.imul(E,U)|0,r=(r=r+Math.imul(E,$)|0)+Math.imul(L,U)|0,o=o+Math.imul(L,$)|0,n=n+Math.imul(S,q)|0,r=(r=r+Math.imul(S,G)|0)+Math.imul(x,q)|0,o=o+Math.imul(x,G)|0,n=n+Math.imul(_,Y)|0,r=(r=r+Math.imul(_,J)|0)+Math.imul(w,Y)|0,o=o+Math.imul(w,J)|0,n=n+Math.imul(v,X)|0,r=(r=r+Math.imul(v,ee)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,ee)|0,n=n+Math.imul(p,ei)|0,r=(r=r+Math.imul(p,en)|0)+Math.imul(g,ei)|0,o=o+Math.imul(g,en)|0;var eC=(u+(n=n+Math.imul(c,eo)|0)|0)+((8191&(r=(r=r+Math.imul(c,es)|0)+Math.imul(h,eo)|0))<<13)|0;u=((o=o+Math.imul(h,es)|0)+(r>>>13)|0)+(eC>>>26)|0,eC&=67108863,n=Math.imul(T,V),r=(r=Math.imul(T,j))+Math.imul(I,V)|0,o=Math.imul(I,j),n=n+Math.imul(N,U)|0,r=(r=r+Math.imul(N,$)|0)+Math.imul(D,U)|0,o=o+Math.imul(D,$)|0,n=n+Math.imul(E,q)|0,r=(r=r+Math.imul(E,G)|0)+Math.imul(L,q)|0,o=o+Math.imul(L,G)|0,n=n+Math.imul(S,Y)|0,r=(r=r+Math.imul(S,J)|0)+Math.imul(x,Y)|0,o=o+Math.imul(x,J)|0,n=n+Math.imul(_,X)|0,r=(r=r+Math.imul(_,ee)|0)+Math.imul(w,X)|0,o=o+Math.imul(w,ee)|0,n=n+Math.imul(v,ei)|0,r=(r=r+Math.imul(v,en)|0)+Math.imul(b,ei)|0,o=o+Math.imul(b,en)|0,n=n+Math.imul(p,eo)|0,r=(r=r+Math.imul(p,es)|0)+Math.imul(g,eo)|0,o=o+Math.imul(g,es)|0;var eS=(u+(n=n+Math.imul(c,el)|0)|0)+((8191&(r=(r=r+Math.imul(c,eu)|0)+Math.imul(h,el)|0))<<13)|0;u=((o=o+Math.imul(h,eu)|0)+(r>>>13)|0)+(eS>>>26)|0,eS&=67108863,n=Math.imul(P,V),r=(r=Math.imul(P,j))+Math.imul(R,V)|0,o=Math.imul(R,j),n=n+Math.imul(T,U)|0,r=(r=r+Math.imul(T,$)|0)+Math.imul(I,U)|0,o=o+Math.imul(I,$)|0,n=n+Math.imul(N,q)|0,r=(r=r+Math.imul(N,G)|0)+Math.imul(D,q)|0,o=o+Math.imul(D,G)|0,n=n+Math.imul(E,Y)|0,r=(r=r+Math.imul(E,J)|0)+Math.imul(L,Y)|0,o=o+Math.imul(L,J)|0,n=n+Math.imul(S,X)|0,r=(r=r+Math.imul(S,ee)|0)+Math.imul(x,X)|0,o=o+Math.imul(x,ee)|0,n=n+Math.imul(_,ei)|0,r=(r=r+Math.imul(_,en)|0)+Math.imul(w,ei)|0,o=o+Math.imul(w,en)|0,n=n+Math.imul(v,eo)|0,r=(r=r+Math.imul(v,es)|0)+Math.imul(b,eo)|0,o=o+Math.imul(b,es)|0,n=n+Math.imul(p,el)|0,r=(r=r+Math.imul(p,eu)|0)+Math.imul(g,el)|0,o=o+Math.imul(g,eu)|0;var ex=(u+(n=n+Math.imul(c,ec)|0)|0)+((8191&(r=(r=r+Math.imul(c,eh)|0)+Math.imul(h,ec)|0))<<13)|0;u=((o=o+Math.imul(h,eh)|0)+(r>>>13)|0)+(ex>>>26)|0,ex&=67108863,n=Math.imul(B,V),r=(r=Math.imul(B,j))+Math.imul(H,V)|0,o=Math.imul(H,j),n=n+Math.imul(P,U)|0,r=(r=r+Math.imul(P,$)|0)+Math.imul(R,U)|0,o=o+Math.imul(R,$)|0,n=n+Math.imul(T,q)|0,r=(r=r+Math.imul(T,G)|0)+Math.imul(I,q)|0,o=o+Math.imul(I,G)|0,n=n+Math.imul(N,Y)|0,r=(r=r+Math.imul(N,J)|0)+Math.imul(D,Y)|0,o=o+Math.imul(D,J)|0,n=n+Math.imul(E,X)|0,r=(r=r+Math.imul(E,ee)|0)+Math.imul(L,X)|0,o=o+Math.imul(L,ee)|0,n=n+Math.imul(S,ei)|0,r=(r=r+Math.imul(S,en)|0)+Math.imul(x,ei)|0,o=o+Math.imul(x,en)|0,n=n+Math.imul(_,eo)|0,r=(r=r+Math.imul(_,es)|0)+Math.imul(w,eo)|0,o=o+Math.imul(w,es)|0,n=n+Math.imul(v,el)|0,r=(r=r+Math.imul(v,eu)|0)+Math.imul(b,el)|0,o=o+Math.imul(b,eu)|0,n=n+Math.imul(p,ec)|0,r=(r=r+Math.imul(p,eh)|0)+Math.imul(g,ec)|0,o=o+Math.imul(g,eh)|0;var ek=(u+(n=n+Math.imul(c,ep)|0)|0)+((8191&(r=(r=r+Math.imul(c,eg)|0)+Math.imul(h,ep)|0))<<13)|0;u=((o=o+Math.imul(h,eg)|0)+(r>>>13)|0)+(ek>>>26)|0,ek&=67108863,n=Math.imul(B,U),r=(r=Math.imul(B,$))+Math.imul(H,U)|0,o=Math.imul(H,$),n=n+Math.imul(P,q)|0,r=(r=r+Math.imul(P,G)|0)+Math.imul(R,q)|0,o=o+Math.imul(R,G)|0,n=n+Math.imul(T,Y)|0,r=(r=r+Math.imul(T,J)|0)+Math.imul(I,Y)|0,o=o+Math.imul(I,J)|0,n=n+Math.imul(N,X)|0,r=(r=r+Math.imul(N,ee)|0)+Math.imul(D,X)|0,o=o+Math.imul(D,ee)|0,n=n+Math.imul(E,ei)|0,r=(r=r+Math.imul(E,en)|0)+Math.imul(L,ei)|0,o=o+Math.imul(L,en)|0,n=n+Math.imul(S,eo)|0,r=(r=r+Math.imul(S,es)|0)+Math.imul(x,eo)|0,o=o+Math.imul(x,es)|0,n=n+Math.imul(_,el)|0,r=(r=r+Math.imul(_,eu)|0)+Math.imul(w,el)|0,o=o+Math.imul(w,eu)|0,n=n+Math.imul(v,ec)|0,r=(r=r+Math.imul(v,eh)|0)+Math.imul(b,ec)|0,o=o+Math.imul(b,eh)|0;var eE=(u+(n=n+Math.imul(p,ep)|0)|0)+((8191&(r=(r=r+Math.imul(p,eg)|0)+Math.imul(g,ep)|0))<<13)|0;u=((o=o+Math.imul(g,eg)|0)+(r>>>13)|0)+(eE>>>26)|0,eE&=67108863,n=Math.imul(B,q),r=(r=Math.imul(B,G))+Math.imul(H,q)|0,o=Math.imul(H,G),n=n+Math.imul(P,Y)|0,r=(r=r+Math.imul(P,J)|0)+Math.imul(R,Y)|0,o=o+Math.imul(R,J)|0,n=n+Math.imul(T,X)|0,r=(r=r+Math.imul(T,ee)|0)+Math.imul(I,X)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(N,ei)|0,r=(r=r+Math.imul(N,en)|0)+Math.imul(D,ei)|0,o=o+Math.imul(D,en)|0,n=n+Math.imul(E,eo)|0,r=(r=r+Math.imul(E,es)|0)+Math.imul(L,eo)|0,o=o+Math.imul(L,es)|0,n=n+Math.imul(S,el)|0,r=(r=r+Math.imul(S,eu)|0)+Math.imul(x,el)|0,o=o+Math.imul(x,eu)|0,n=n+Math.imul(_,ec)|0,r=(r=r+Math.imul(_,eh)|0)+Math.imul(w,ec)|0,o=o+Math.imul(w,eh)|0;var eL=(u+(n=n+Math.imul(v,ep)|0)|0)+((8191&(r=(r=r+Math.imul(v,eg)|0)+Math.imul(b,ep)|0))<<13)|0;u=((o=o+Math.imul(b,eg)|0)+(r>>>13)|0)+(eL>>>26)|0,eL&=67108863,n=Math.imul(B,Y),r=(r=Math.imul(B,J))+Math.imul(H,Y)|0,o=Math.imul(H,J),n=n+Math.imul(P,X)|0,r=(r=r+Math.imul(P,ee)|0)+Math.imul(R,X)|0,o=o+Math.imul(R,ee)|0,n=n+Math.imul(T,ei)|0,r=(r=r+Math.imul(T,en)|0)+Math.imul(I,ei)|0,o=o+Math.imul(I,en)|0,n=n+Math.imul(N,eo)|0,r=(r=r+Math.imul(N,es)|0)+Math.imul(D,eo)|0,o=o+Math.imul(D,es)|0,n=n+Math.imul(E,el)|0,r=(r=r+Math.imul(E,eu)|0)+Math.imul(L,el)|0,o=o+Math.imul(L,eu)|0,n=n+Math.imul(S,ec)|0,r=(r=r+Math.imul(S,eh)|0)+Math.imul(x,ec)|0,o=o+Math.imul(x,eh)|0;var eM=(u+(n=n+Math.imul(_,ep)|0)|0)+((8191&(r=(r=r+Math.imul(_,eg)|0)+Math.imul(w,ep)|0))<<13)|0;u=((o=o+Math.imul(w,eg)|0)+(r>>>13)|0)+(eM>>>26)|0,eM&=67108863,n=Math.imul(B,X),r=(r=Math.imul(B,ee))+Math.imul(H,X)|0,o=Math.imul(H,ee),n=n+Math.imul(P,ei)|0,r=(r=r+Math.imul(P,en)|0)+Math.imul(R,ei)|0,o=o+Math.imul(R,en)|0,n=n+Math.imul(T,eo)|0,r=(r=r+Math.imul(T,es)|0)+Math.imul(I,eo)|0,o=o+Math.imul(I,es)|0,n=n+Math.imul(N,el)|0,r=(r=r+Math.imul(N,eu)|0)+Math.imul(D,el)|0,o=o+Math.imul(D,eu)|0,n=n+Math.imul(E,ec)|0,r=(r=r+Math.imul(E,eh)|0)+Math.imul(L,ec)|0,o=o+Math.imul(L,eh)|0;var eN=(u+(n=n+Math.imul(S,ep)|0)|0)+((8191&(r=(r=r+Math.imul(S,eg)|0)+Math.imul(x,ep)|0))<<13)|0;u=((o=o+Math.imul(x,eg)|0)+(r>>>13)|0)+(eN>>>26)|0,eN&=67108863,n=Math.imul(B,ei),r=(r=Math.imul(B,en))+Math.imul(H,ei)|0,o=Math.imul(H,en),n=n+Math.imul(P,eo)|0,r=(r=r+Math.imul(P,es)|0)+Math.imul(R,eo)|0,o=o+Math.imul(R,es)|0,n=n+Math.imul(T,el)|0,r=(r=r+Math.imul(T,eu)|0)+Math.imul(I,el)|0,o=o+Math.imul(I,eu)|0,n=n+Math.imul(N,ec)|0,r=(r=r+Math.imul(N,eh)|0)+Math.imul(D,ec)|0,o=o+Math.imul(D,eh)|0;var eD=(u+(n=n+Math.imul(E,ep)|0)|0)+((8191&(r=(r=r+Math.imul(E,eg)|0)+Math.imul(L,ep)|0))<<13)|0;u=((o=o+Math.imul(L,eg)|0)+(r>>>13)|0)+(eD>>>26)|0,eD&=67108863,n=Math.imul(B,eo),r=(r=Math.imul(B,es))+Math.imul(H,eo)|0,o=Math.imul(H,es),n=n+Math.imul(P,el)|0,r=(r=r+Math.imul(P,eu)|0)+Math.imul(R,el)|0,o=o+Math.imul(R,eu)|0,n=n+Math.imul(T,ec)|0,r=(r=r+Math.imul(T,eh)|0)+Math.imul(I,ec)|0,o=o+Math.imul(I,eh)|0;var eA=(u+(n=n+Math.imul(N,ep)|0)|0)+((8191&(r=(r=r+Math.imul(N,eg)|0)+Math.imul(D,ep)|0))<<13)|0;u=((o=o+Math.imul(D,eg)|0)+(r>>>13)|0)+(eA>>>26)|0,eA&=67108863,n=Math.imul(B,el),r=(r=Math.imul(B,eu))+Math.imul(H,el)|0,o=Math.imul(H,eu),n=n+Math.imul(P,ec)|0,r=(r=r+Math.imul(P,eh)|0)+Math.imul(R,ec)|0,o=o+Math.imul(R,eh)|0;var eT=(u+(n=n+Math.imul(T,ep)|0)|0)+((8191&(r=(r=r+Math.imul(T,eg)|0)+Math.imul(I,ep)|0))<<13)|0;u=((o=o+Math.imul(I,eg)|0)+(r>>>13)|0)+(eT>>>26)|0,eT&=67108863,n=Math.imul(B,ec),r=(r=Math.imul(B,eh))+Math.imul(H,ec)|0,o=Math.imul(H,eh);var eI=(u+(n=n+Math.imul(P,ep)|0)|0)+((8191&(r=(r=r+Math.imul(P,eg)|0)+Math.imul(R,ep)|0))<<13)|0;u=((o=o+Math.imul(R,eg)|0)+(r>>>13)|0)+(eI>>>26)|0,eI&=67108863;var eO=(u+(n=Math.imul(B,ep))|0)+((8191&(r=(r=Math.imul(B,eg))+Math.imul(H,ep)|0))<<13)|0;return u=((o=Math.imul(H,eg))+(r>>>13)|0)+(eO>>>26)|0,eO&=67108863,l[0]=em,l[1]=ev,l[2]=eb,l[3]=ey,l[4]=e_,l[5]=ew,l[6]=eC,l[7]=eS,l[8]=ex,l[9]=ek,l[10]=eE,l[11]=eL,l[12]=eM,l[13]=eN,l[14]=eD,l[15]=eA,l[16]=eT,l[17]=eI,l[18]=eO,0!==u&&(l[19]=u,i.length++),i};function v(e,t,i){i.negative=t.negative^e.negative,i.length=e.length+t.length;for(var n=0,r=0,o=0;o>>26)|0)>>>26,s&=67108863}i.words[o]=a,n=s,s=r}return 0!==n?i.words[o]=n:i.length--,i._strip()}function b(e,t){this.x=e,this.y=t}Math.imul||(m=g),o.prototype.mulTo=function(e,t){var i=this.length+e.length;return 10===this.length&&10===e.length?m(this,e,t):i<63?g(this,e,t):v(this,e,t)},b.prototype.makeRBT=function(e){for(var t=Array(e),i=o.prototype._countBits(e)-1,n=0;n>=1;return n},b.prototype.permute=function(e,t,i,n,r,o){for(var s=0;s>>=1)r++;return 1<>>=13,i[2*s+1]=8191&o,o>>>=13;for(s=2*t;s>=26,i+=(o/67108864|0)+(s>>>26),this.words[r]=67108863&s}return 0!==i&&(this.words[r]=i,this.length++),t?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),i=0;i>>r&1}return t}(e);if(0===t.length)return new o(1);for(var i=this,n=0;n=0);var t,i=e%26,r=(e-i)/26,o=67108863>>>26-i<<26-i;if(0!==i){var s=0;for(t=0;t>>26-i}s&&(this.words[t]=s,this.length++)}if(0!==r){for(t=this.length-1;t>=0;t--)this.words[t+r]=this.words[t];for(t=0;t=0),r=t?(t-t%26)/26:0;var r,o=e%26,s=Math.min((e-o)/26,this.length),a=67108863^67108863>>>o<s)for(this.length-=s,l=0;l=0&&(0!==u||l>=r);l--){var d=0|this.words[l];this.words[l]=u<<26-o|d>>>o,u=d&a}return i&&0!==u&&(i.words[i.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,t,i){return n(0===this.negative),this.iushrn(e,t,i)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,i=(e-t)/26;return!(this.length<=i)&&!!(this.words[i]&1<=0);var t=e%26,i=(e-t)/26;return(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=i)?this:(0!==t&&i++,this.length=Math.min(i,this.length),0!==t&&(this.words[this.length-1]&=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(l/67108864|0),this.words[r+i]=67108863&o}for(;r>26,this.words[r+i]=67108863&o;if(0===a)return this._strip();for(n(-1===a),a=0,r=0;r>26,this.words[r]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,t){var i,n=this.length-e.length,r=this.clone(),s=e,a=0|s.words[s.length-1];0!=(n=26-this._countBits(a))&&(s=s.ushln(n),r.iushln(n),a=0|s.words[s.length-1]);var l=r.length-s.length;if("mod"!==t){(i=new o(null)).length=l+1,i.words=Array(i.length);for(var u=0;u=0;c--){var h=(0|r.words[s.length+c])*67108864+(0|r.words[s.length+c-1]);for(h=Math.min(h/a|0,67108863),r._ishlnsubmul(s,h,c);0!==r.negative;)h--,r.negative=0,r._ishlnsubmul(s,1,c),r.isZero()||(r.negative^=1);i&&(i.words[c]=h)}return i&&i._strip(),r._strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:i||null,mod:r}},o.prototype.divmod=function(e,t,i){var r,s,a;return(n(!e.isZero()),this.isZero())?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),"mod"!==t&&(r=a.div.neg()),"div"!==t&&(s=a.mod.neg(),i&&0!==s.negative&&s.iadd(e)),{div:r,mod:s}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),"mod"!==t&&(r=a.div.neg()),{div:r,mod:a.mod}):(this.negative&e.negative)!=0?(a=this.neg().divmod(e.neg(),t),"div"!==t&&(s=a.mod.neg(),i&&0!==s.negative&&s.isub(e)),{div:a.div,mod:s}):e.length>this.length||0>this.cmp(e)?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,t)},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var i=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),r=e.andln(1),o=i.cmp(n);return o<0||1===r&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var i=67108864%e,r=0,o=this.length-1;o>=0;o--)r=(i*r+(0|this.words[o]))%e;return t?-r:r},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var i=0,r=this.length-1;r>=0;r--){var o=(0|this.words[r])+67108864*i;this.words[r]=o/e|0,i=o%e}return this._strip(),t?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,i=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var r=new o(1),s=new o(0),a=new o(0),l=new o(1),u=0;t.isEven()&&i.isEven();)t.iushrn(1),i.iushrn(1),++u;for(var d=i.clone(),c=t.clone();!t.isZero();){for(var h=0,f=1;(t.words[0]&f)==0&&h<26;++h,f<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(r.isOdd()||s.isOdd())&&(r.iadd(d),s.isub(c)),r.iushrn(1),s.iushrn(1);for(var p=0,g=1;(i.words[0]&g)==0&&p<26;++p,g<<=1);if(p>0)for(i.iushrn(p);p-- >0;)(a.isOdd()||l.isOdd())&&(a.iadd(d),l.isub(c)),a.iushrn(1),l.iushrn(1);t.cmp(i)>=0?(t.isub(i),r.isub(a),s.isub(l)):(i.isub(t),a.isub(r),l.isub(s))}return{a:a,b:l,gcd:i.iushln(u)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t,i=this,r=e.clone();i=0!==i.negative?i.umod(e):i.clone();for(var s=new o(1),a=new o(0),l=r.clone();i.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,d=1;(i.words[0]&d)==0&&u<26;++u,d<<=1);if(u>0)for(i.iushrn(u);u-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);for(var c=0,h=1;(r.words[0]&h)==0&&c<26;++c,h<<=1);if(c>0)for(r.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);i.cmp(r)>=0?(i.isub(r),s.isub(a)):(r.isub(i),a.isub(s))}return 0>(t=0===i.cmpn(1)?s:a).cmpn(0)&&t.iadd(e),t},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),i=e.clone();t.negative=0,i.negative=0;for(var n=0;t.isEven()&&i.isEven();n++)t.iushrn(1),i.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;i.isEven();)i.iushrn(1);var r=t.cmp(i);if(r<0){var o=t;t=i,i=o}else if(0===r||0===i.cmpn(1))break;t.isub(i)}return i.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return(1&this.words[0])==0},o.prototype.isOdd=function(){return(1&this.words[0])==1},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,i=(e-t)/26,r=1<>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,i=e<0;if(0!==this.negative&&!i)return -1;if(0===this.negative&&i)return 1;if(this._strip(),this.length>1)t=1;else{i&&(e=-e),n(e<=67108863,"Number is too big");var r=0|this.words[0];t=r===e?0:re.length)return 1;if(this.length=0;i--){var n=0|this.words[i],r=0|e.words[i];if(n!==r){nr&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return -1===this.cmpn(e)},o.prototype.lt=function(e){return -1===this.cmp(e)},o.prototype.lten=function(e){return 0>=this.cmpn(e)},o.prototype.lte=function(e){return 0>=this.cmp(e)},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new k(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var y={k256:null,p224:null,p192:null,p25519:null};function _(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){_.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function C(){_.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function S(){_.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){_.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function E(e){k.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}_.prototype._tmp=function(){var e=new o(null);return e.words=Array(Math.ceil(this.n/13)),e},_.prototype.ireduce=function(e){var t,i=e;do this.split(i,this.tmp),t=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength();while(t>this.n)var n=t0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},_.prototype.split=function(e,t){e.iushrn(this.n,0,t)},_.prototype.imulK=function(e){return e.imul(this.k)},r(w,_),w.prototype.split=function(e,t){for(var i=Math.min(e.length,9),n=0;n>>22,r=o}r>>>=22,e.words[n-10]=r,0===r&&e.length>10?e.length-=10:e.length-=9},w.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,i=0;i>>=26,e.words[i]=r,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){var t;if(y[e])return y[e];if("k256"===e)t=new w;else if("p224"===e)t=new C;else if("p192"===e)t=new S;else if("p25519"===e)t=new x;else throw Error("Unknown prime "+e);return y[e]=t,t},k.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},k.prototype._verify2=function(e,t){n((e.negative|t.negative)==0,"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},k.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(u(e,e.umod(this.m)._forceRed(this)),e)},k.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},k.prototype.add=function(e,t){this._verify2(e,t);var i=e.add(t);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},k.prototype.iadd=function(e,t){this._verify2(e,t);var i=e.iadd(t);return i.cmp(this.m)>=0&&i.isub(this.m),i},k.prototype.sub=function(e,t){this._verify2(e,t);var i=e.sub(t);return 0>i.cmpn(0)&&i.iadd(this.m),i._forceRed(this)},k.prototype.isub=function(e,t){this._verify2(e,t);var i=e.isub(t);return 0>i.cmpn(0)&&i.iadd(this.m),i},k.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},k.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},k.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},k.prototype.isqr=function(e){return this.imul(e,e.clone())},k.prototype.sqr=function(e){return this.mul(e,e)},k.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var i=this.m.add(new o(1)).iushrn(2);return this.pow(e,i)}for(var r=this.m.subn(1),s=0;!r.isZero()&&0===r.andln(1);)s++,r.iushrn(1);n(!r.isZero());var a=new o(1).toRed(this),l=a.redNeg(),u=this.m.subn(1).iushrn(1),d=this.m.bitLength();for(d=new o(2*d*d).toRed(this);0!==this.pow(d,u).cmp(l);)d.redIAdd(l);for(var c=this.pow(d,r),h=this.pow(e,r.addn(1).iushrn(1)),f=this.pow(e,r),p=s;0!==f.cmp(a);){for(var g=f,m=0;0!==g.cmp(a);m++)g=g.redSqr();n(m=0;n--){for(var u=t.words[n],d=l-1;d>=0;d--){var c=u>>d&1;if(r!==i[0]&&(r=this.sqr(r)),0===c&&0===s){a=0;continue}s<<=1,s|=c,(4==++a||0===n&&0===d)&&(r=this.mul(r,i[s]),a=0,s=0)}l=26}return r},k.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},k.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new E(e)},r(E,k),E.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},E.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},E.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):0>r.cmpn(0)&&(o=r.iadd(this.m)),o._forceRed(this)},E.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var i=e.mul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),s=r;return r.cmp(this.m)>=0?s=r.isub(this.m):0>r.cmpn(0)&&(s=r.iadd(this.m)),s._forceRed(this)},E.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=i.nmd(e),this)},83620:(e,t,i)=>{"use strict";i.r(t),i.d(t,{commify:()=>G,formatEther:()=>J,formatUnits:()=>Z,parseEther:()=>Q,parseUnits:()=>Y});let n=!1,r=!1,o={debug:1,default:2,info:2,warning:3,error:4,off:5},s=2,a=null,l=function(){try{let e=[];if(["NFD","NFC","NFKD","NFKC"].forEach(t=>{try{if("test"!=="test".normalize(t))throw Error("bad normalize")}catch(i){e.push(t)}}),e.length)throw Error("missing "+e.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw Error("broken implementation")}catch(e){return e.message}return null}();!function(e){e.DEBUG="DEBUG",e.INFO="INFO",e.WARNING="WARNING",e.ERROR="ERROR",e.OFF="OFF"}(w||(w={})),function(e){e.UNKNOWN_ERROR="UNKNOWN_ERROR",e.NOT_IMPLEMENTED="NOT_IMPLEMENTED",e.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",e.NETWORK_ERROR="NETWORK_ERROR",e.SERVER_ERROR="SERVER_ERROR",e.TIMEOUT="TIMEOUT",e.BUFFER_OVERRUN="BUFFER_OVERRUN",e.NUMERIC_FAULT="NUMERIC_FAULT",e.MISSING_NEW="MISSING_NEW",e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.MISSING_ARGUMENT="MISSING_ARGUMENT",e.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",e.CALL_EXCEPTION="CALL_EXCEPTION",e.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",e.NONCE_EXPIRED="NONCE_EXPIRED",e.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",e.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",e.TRANSACTION_REPLACED="TRANSACTION_REPLACED",e.ACTION_REJECTED="ACTION_REJECTED"}(C||(C={}));let u="0123456789abcdef";class d{constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,t){let i=e.toLowerCase();null==o[i]&&this.throwArgumentError("invalid log level name","logLevel",e),s>o[i]||console.log.apply(console,t)}debug(...e){this._log(d.levels.DEBUG,e)}info(...e){this._log(d.levels.INFO,e)}warn(...e){this._log(d.levels.WARNING,e)}makeError(e,t,i){if(r)return this.makeError("censored error",t,{});t||(t=d.errors.UNKNOWN_ERROR),i||(i={});let n=[];Object.keys(i).forEach(e=>{let t=i[e];try{if(t instanceof Uint8Array){let i="";for(let e=0;e>4]+u[15&t[e]];n.push(e+"=Uint8Array(0x"+i+")")}else n.push(e+"="+JSON.stringify(t))}catch(t){n.push(e+"="+JSON.stringify(i[e].toString()))}}),n.push(`code=${t}`),n.push(`version=${this.version}`);let o=e,s="";switch(t){case C.NUMERIC_FAULT:{s="NUMERIC_FAULT";let t=e;switch(t){case"overflow":case"underflow":case"division-by-zero":s+="-"+t;break;case"negative-power":case"negative-width":s+="-unsupported";break;case"unbound-bitwise-result":s+="-unbound-result"}break}case C.CALL_EXCEPTION:case C.INSUFFICIENT_FUNDS:case C.MISSING_NEW:case C.NONCE_EXPIRED:case C.REPLACEMENT_UNDERPRICED:case C.TRANSACTION_REPLACED:case C.UNPREDICTABLE_GAS_LIMIT:s=t}s&&(e+=" [ See: https://links.ethers.org/v5-errors-"+s+" ]"),n.length&&(e+=" ("+n.join(", ")+")");let a=Error(e);return a.reason=o,a.code=t,Object.keys(i).forEach(function(e){a[e]=i[e]}),a}throwError(e,t,i){throw this.makeError(e,t,i)}throwArgumentError(e,t,i){return this.throwError(e,d.errors.INVALID_ARGUMENT,{argument:t,value:i})}assert(e,t,i,n){e||this.throwError(t,i,n)}assertArgument(e,t,i,n){e||this.throwArgumentError(t,i,n)}checkNormalize(e){null==e&&(e="platform missing String.prototype.normalize"),l&&this.throwError("platform missing String.prototype.normalize",d.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:l})}checkSafeUint53(e,t){"number"==typeof e&&(null==t&&(t="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(t,d.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(t,d.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}checkArgumentCount(e,t,i){i=i?": "+i:"",et&&this.throwError("too many arguments"+i,d.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:t})}checkNew(e,t){(e===Object||null==e)&&this.throwError("missing new",d.errors.MISSING_NEW,{name:t.name})}checkAbstract(e,t){e===t?this.throwError("cannot instantiate abstract class "+JSON.stringify(t.name)+" directly; use a sub-class",d.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):(e===Object||null==e)&&this.throwError("missing new",d.errors.MISSING_NEW,{name:t.name})}static globalLogger(){return a||(a=new d("logger/5.7.0")),a}static setCensorship(e,t){if(!e&&t&&this.globalLogger().throwError("cannot permanently disable censorship",d.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),n){if(!e)return;this.globalLogger().throwError("error censorship permanent",d.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}r=!!e,n=!!t}static setLogLevel(e){let t=o[e.toLowerCase()];if(null==t){d.globalLogger().warn("invalid log level - "+e);return}s=t}static from(e){return new d(e)}}d.errors=C,d.levels=w;let c=new d("bytes/5.7.0");function h(e){return!!e.toHexString}function f(e){return e.slice||(e.slice=function(){let t=Array.prototype.slice.call(arguments);return f(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function p(e){return"number"==typeof e&&e==e&&e%1==0}function g(e){if(null==e)return!1;if(e.constructor===Uint8Array)return!0;if("string"==typeof e||!p(e.length)||e.length<0)return!1;for(let t=0;t=256)return!1}return!0}function m(e,t){return"string"==typeof e&&!!e.match(/^0x[0-9A-Fa-f]*$/)&&(!t||e.length===2+2*t)}let v="0123456789abcdef";function b(e,t){if(t||(t={}),"number"==typeof e){c.checkSafeUint53(e,"invalid hexlify value");let t="";for(;e;)t=v[15&e]+t,e=Math.floor(e/16);return t.length?(t.length%2&&(t="0"+t),"0x"+t):"0x00"}if("bigint"==typeof e)return(e=e.toString(16)).length%2?"0x0"+e:"0x"+e;if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),h(e))return e.toHexString();if(m(e))return e.length%2&&("left"===t.hexPad?e="0x0"+e.substring(2):"right"===t.hexPad?e+="0":c.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(g(e)){let t="0x";for(let i=0;i>4]+v[15&n]}return t}return c.throwArgumentError("invalid hexlify value","value",e)}function y(e,t){for("string"!=typeof e?e=b(e):m(e)||c.throwArgumentError("invalid hex string","value",e),e.length>2*t+2&&c.throwArgumentError("value out of range","value",arguments[1]);e.length<2*t+2;)e="0x0"+e.substring(2);return e}let _="bignumber/5.7.0";var w,C,S=i(54269),x=i.n(S)().BN;let k=new d(_),E={},L=!1;class M{constructor(e,t){e!==E&&k.throwError("cannot call constructor directly; use BigNumber.from",d.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=t,this._isBigNumber=!0,Object.freeze(this)}fromTwos(e){return D(A(this).fromTwos(e))}toTwos(e){return D(A(this).toTwos(e))}abs(){return"-"===this._hex[0]?M.from(this._hex.substring(1)):this}add(e){return D(A(this).add(A(e)))}sub(e){return D(A(this).sub(A(e)))}div(e){return M.from(e).isZero()&&T("division-by-zero","div"),D(A(this).div(A(e)))}mul(e){return D(A(this).mul(A(e)))}mod(e){let t=A(e);return t.isNeg()&&T("division-by-zero","mod"),D(A(this).umod(t))}pow(e){let t=A(e);return t.isNeg()&&T("negative-power","pow"),D(A(this).pow(t))}and(e){let t=A(e);return(this.isNegative()||t.isNeg())&&T("unbound-bitwise-result","and"),D(A(this).and(t))}or(e){let t=A(e);return(this.isNegative()||t.isNeg())&&T("unbound-bitwise-result","or"),D(A(this).or(t))}xor(e){let t=A(e);return(this.isNegative()||t.isNeg())&&T("unbound-bitwise-result","xor"),D(A(this).xor(t))}mask(e){return(this.isNegative()||e<0)&&T("negative-width","mask"),D(A(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&T("negative-width","shl"),D(A(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&T("negative-width","shr"),D(A(this).shrn(e))}eq(e){return A(this).eq(A(e))}lt(e){return A(this).lt(A(e))}lte(e){return A(this).lte(A(e))}gt(e){return A(this).gt(A(e))}gte(e){return A(this).gte(A(e))}isNegative(){return"-"===this._hex[0]}isZero(){return A(this).isZero()}toNumber(){try{return A(this).toNumber()}catch(e){T("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(e){}return k.throwError("this platform does not support BigInt",d.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?L||(L=!0,k.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?k.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",d.errors.UNEXPECTED_ARGUMENT,{}):k.throwError("BigNumber.toString does not accept parameters",d.errors.UNEXPECTED_ARGUMENT,{})),A(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:"BigNumber",hex:this.toHexString()}}static from(e){if(e instanceof M)return e;if("string"==typeof e)return e.match(/^-?0x[0-9a-f]+$/i)?new M(E,N(e)):e.match(/^-?[0-9]+$/)?new M(E,N(new x(e))):k.throwArgumentError("invalid BigNumber string","value",e);if("number"==typeof e)return e%1&&T("underflow","BigNumber.from",e),(e>=9007199254740991||e<=-9007199254740991)&&T("overflow","BigNumber.from",e),M.from(String(e));if("bigint"==typeof e)return M.from(e.toString());if(g(e))return M.from(b(e));if(e){if(e.toHexString){let t=e.toHexString();if("string"==typeof t)return M.from(t)}else{let t=e._hex;if(null==t&&"BigNumber"===e.type&&(t=e.hex),"string"==typeof t&&(m(t)||"-"===t[0]&&m(t.substring(1))))return M.from(t)}}return k.throwArgumentError("invalid BigNumber value","value",e)}static isBigNumber(e){return!!(e&&e._isBigNumber)}}function N(e){if("string"!=typeof e)return N(e.toString(16));if("-"===e[0])return("-"===(e=e.substring(1))[0]&&k.throwArgumentError("invalid hex","value",e),"0x00"===(e=N(e)))?e:"-"+e;if("0x"!==e.substring(0,2)&&(e="0x"+e),"0x"===e)return"0x00";for(e.length%2&&(e="0x0"+e.substring(2));e.length>4&&"0x00"===e.substring(0,4);)e="0x"+e.substring(4);return e}function D(e){return M.from(N(e))}function A(e){let t=M.from(e).toHexString();return"-"===t[0]?new x("-"+t.substring(3),16):new x(t.substring(2),16)}function T(e,t,i){let n={fault:e,operation:t};return null!=i&&(n.value=i),k.throwError(e,d.errors.NUMERIC_FAULT,n)}let I=new d(_),O={},P=M.from(0),R=M.from(-1);function F(e,t,i,n){let r={fault:t,operation:i};return void 0!==n&&(r.value=n),I.throwError(e,d.errors.NUMERIC_FAULT,r)}let B="0";for(;B.length<256;)B+=B;function H(e){if("number"!=typeof e)try{e=M.from(e).toNumber()}catch(e){}return"number"==typeof e&&e>=0&&e<=256&&!(e%1)?"1"+B.substring(0,e):I.throwArgumentError("invalid decimal size","decimals",e)}function z(e,t){null==t&&(t=0);let i=H(t),n=(e=M.from(e)).lt(P);n&&(e=e.mul(R));let r=e.mod(i).toString();for(;r.length2&&I.throwArgumentError("too many decimal points","value",e);let o=r[0],s=r[1];for(o||(o="0"),s||(s="0");"0"===s[s.length-1];)s=s.substring(0,s.length-1);for(s.length>i.length-1&&F("fractional component exceeds decimals","underflow","parseFixed"),""===s&&(s="0");s.lengthnull==e[t]?n:(typeof e[t]!==i&&I.throwArgumentError("invalid fixed format ("+t+" not "+i+")","format."+t,e[t]),e[t]);t=r("signed","boolean",t),i=r("width","number",i),n=r("decimals","number",n)}return i%8&&I.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",i),n>80&&I.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",n),new j(O,t,i,n)}}class W{constructor(e,t,i,n){e!==O&&I.throwError("cannot use FixedNumber constructor; use FixedNumber.from",d.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=n,this._hex=t,this._value=i,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(e){this.format.name!==e.format.name&&I.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)}addUnsafe(e){this._checkFormat(e);let t=V(this._value,this.format.decimals),i=V(e._value,e.format.decimals);return W.fromValue(t.add(i),this.format.decimals,this.format)}subUnsafe(e){this._checkFormat(e);let t=V(this._value,this.format.decimals),i=V(e._value,e.format.decimals);return W.fromValue(t.sub(i),this.format.decimals,this.format)}mulUnsafe(e){this._checkFormat(e);let t=V(this._value,this.format.decimals),i=V(e._value,e.format.decimals);return W.fromValue(t.mul(i).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(e){this._checkFormat(e);let t=V(this._value,this.format.decimals),i=V(e._value,e.format.decimals);return W.fromValue(t.mul(this.format._multiplier).div(i),this.format.decimals,this.format)}floor(){let e=this.toString().split(".");1===e.length&&e.push("0");let t=W.from(e[0],this.format),i=!e[1].match(/^(0*)$/);return this.isNegative()&&i&&(t=t.subUnsafe(U.toFormat(t.format))),t}ceiling(){let e=this.toString().split(".");1===e.length&&e.push("0");let t=W.from(e[0],this.format),i=!e[1].match(/^(0*)$/);return!this.isNegative()&&i&&(t=t.addUnsafe(U.toFormat(t.format))),t}round(e){null==e&&(e=0);let t=this.toString().split(".");if(1===t.length&&t.push("0"),(e<0||e>80||e%1)&&I.throwArgumentError("invalid decimal count","decimals",e),t[1].length<=e)return this;let i=W.from("1"+B.substring(0,e),this.format),n=$.toFormat(this.format);return this.mulUnsafe(i).addUnsafe(n).floor().divUnsafe(i)}isZero(){return"0.0"===this._value||"0"===this._value}isNegative(){return"-"===this._value[0]}toString(){return this._value}toHexString(e){return null==e?this._hex:(e%8&&I.throwArgumentError("invalid byte width","width",e),y(M.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString(),e/8))}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(e){return W.fromString(this._value,e)}static fromValue(e,t,i){var n;return null!=i||null==t||null!=(n=t)&&(M.isBigNumber(n)||"number"==typeof n&&n%1==0||"string"==typeof n&&n.match(/^-?[0-9]+$/)||m(n)||"bigint"==typeof n||g(n))||(i=t,t=null),null==t&&(t=0),null==i&&(i="fixed"),W.fromString(z(e,t),j.from(i))}static fromString(e,t){null==t&&(t="fixed");let i=j.from(t),n=V(e,i.decimals);!i.signed&&n.lt(P)&&F("unsigned value cannot be negative","overflow","value",e);let r=null;r=i.signed?n.toTwos(i.width).toHexString():y(r=n.toHexString(),i.width/8);let o=z(n,i.decimals);return new W(O,r,o,i)}static fromBytes(e,t){null==t&&(t="fixed");let i=j.from(t);if(function(e,t){if(t||(t={}),"number"==typeof e){c.checkSafeUint53(e,"invalid arrayify value");let t=[];for(;e;)t.unshift(255&e),e=parseInt(String(e/256));return 0===t.length&&t.push(0),f(new Uint8Array(t))}if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),h(e)&&(e=e.toHexString()),m(e)){let i=e.substring(2);i.length%2&&("left"===t.hexPad?i="0"+i:"right"===t.hexPad?i+="0":c.throwArgumentError("hex data is odd-length","value",e));let n=[];for(let e=0;ei.width/8)throw Error("overflow");let n=M.from(e);i.signed&&(n=n.fromTwos(i.width));let r=n.toTwos((i.signed?0:1)+i.width).toHexString(),o=z(n,i.decimals);return new W(O,r,o,i)}static from(e,t){if("string"==typeof e)return W.fromString(e,t);if(g(e))return W.fromBytes(e,t);try{return W.fromValue(e,0,t)}catch(e){if(e.code!==d.errors.INVALID_ARGUMENT)throw e}return I.throwArgumentError("invalid FixedNumber value","value",e)}static isFixedNumber(e){return!!(e&&e._isFixedNumber)}}let U=W.from(1),$=W.from("0.5"),K=new d("units/5.7.0"),q=["wei","kwei","mwei","gwei","szabo","finney","ether"];function G(e){let t=String(e).split(".");(t.length>2||!t[0].match(/^-?[0-9]*$/)||t[1]&&!t[1].match(/^[0-9]*$/)||"."===e||"-."===e)&&K.throwArgumentError("invalid value","value",e);let i=t[0],n="";for("-"===i.substring(0,1)&&(n="-",i=i.substring(1));"0"===i.substring(0,1);)i=i.substring(1);""===i&&(i="0");let r="";for(2===t.length&&(r="."+(t[1]||"0"));r.length>2&&"0"===r[r.length-1];)r=r.substring(0,r.length-1);let o=[];for(;i.length;){if(i.length<=3){o.unshift(i);break}{let e=i.length-3;o.unshift(i.substring(e)),i=i.substring(0,e)}}return n+o.join(",")+r}function Z(e,t){if("string"==typeof t){let e=q.indexOf(t);-1!==e&&(t=3*e)}return z(e,null!=t?t:18)}function Y(e,t){if("string"!=typeof e&&K.throwArgumentError("value must be a string","value",e),"string"==typeof t){let e=q.indexOf(t);-1!==e&&(t=3*e)}return V(e,null!=t?t:18)}function J(e){return Z(e,18)}function Q(e){return Y(e,18)}},68872:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeSingle=t.decode=t.encodePacked=t.encodeSingle=t.encode=void 0;let n=i(45554),r=i(39777),o=i(69472);t.encode=(e,t,i,n)=>{try{return(0,o.pack)({types:e,values:t,packed:i,tight:n})}catch(e){if(e instanceof r.ParserError)throw new r.ParserError(`Unable to encode value: ${e.message}`,e);throw new r.ParserError(`An unexpected error occurred: ${(0,r.getErrorMessage)(e)}`,e)}},t.encodeSingle=(e,i)=>(0,t.encode)([e],[i]),t.encodePacked=(e,i,n)=>(0,t.encode)(e,i,!0,n),t.decode=(e,t)=>{let i=(0,n.createBytes)(t);try{return(0,o.unpack)(e,i)}catch(e){if(e instanceof r.ParserError)throw new r.ParserError(`Unable to decode value: ${e.message}`,e);throw new r.ParserError(`An unexpected error occurred: ${(0,r.getErrorMessage)(e)}`,e)}},t.decodeSingle=(e,i)=>{let o=(0,t.decode)([e],i);return(0,n.assert)(1===o.length,new r.ParserError("Decoded value array has unexpected length.")),o[0]}},39777:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ParserError=t.getErrorStack=t.getErrorMessage=void 0;let n=i(45554);t.getErrorMessage=e=>"string"==typeof e?e:e instanceof Error||(0,n.isObject)(e)&&(0,n.hasProperty)(e,"message")&&"string"==typeof e.message?e.message:"Unknown error.",t.getErrorStack=e=>{if(e instanceof Error)return e.stack},t.ParserError=class extends Error{constructor(e,i){super(e),this.name="ParserError";let n=(0,t.getErrorStack)(i);n&&(this.stack=n)}}},40260:function(e,t,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i);var r=Object.getOwnPropertyDescriptor(t,i);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,n,r)}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),r=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||n(t,e,i)};Object.defineProperty(t,"__esModule",{value:!0}),r(i(68872),t),r(i(39777),t),r(i(75858),t)},12378:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.iterate=void 0;let n=i(45554),r=function*(e,t=32){for(let i=0;i{(0,n.assert)(e>=0,"Cannot skip a negative number of bytes."),(0,n.assert)(e%t==0,"Length must be a multiple of the size."),i+=e},o=e.subarray(i);yield{skip:r,value:o}}return{skip:()=>void 0,value:new Uint8Array}};t.iterate=r},69472:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unpack=t.pack=t.isDynamicParser=t.getParser=void 0;let n=i(45554),r=i(39777),o=i(12378),s=i(84206),a=i(92313);t.getParser=e=>{let t={address:s.address,array:s.array,bool:s.bool,bytes:s.bytes,fixedBytes:s.fixedBytes,function:s.fn,number:s.number,string:s.string,tuple:s.tuple},i=t[e];if(i)return i;let n=Object.values(t).find(t=>t.isType(e));if(n)return n;throw new r.ParserError(`The type "${e}" is not supported.`)},t.isDynamicParser=(e,t)=>{let{isDynamic:i}=e;return"function"==typeof i?i(t):i},t.pack=({types:e,values:i,packed:o=!1,tight:s=!1,arrayPacked:l=!1,byteArray:u=new Uint8Array})=>{(0,n.assert)(e.length===i.length,new r.ParserError(`The number of types (${e.length}) does not match the number of values (${i.length}).`));let{staticBuffer:d,dynamicBuffer:c,pointers:h}=e.reduce(({staticBuffer:e,dynamicBuffer:r,pointers:a},u,d)=>{let c=(0,t.getParser)(u),h=i[d];return o||l||!(0,t.isDynamicParser)(c,u)?{staticBuffer:c.encode({buffer:e,value:h,type:u,packed:o,tight:s}),dynamicBuffer:r,pointers:a}:{staticBuffer:(0,n.concatBytes)([e,new Uint8Array(32)]),dynamicBuffer:c.encode({buffer:r,value:h,type:u,packed:o,tight:s}),pointers:[...a,{position:e.length,pointer:r.length}]}},{staticBuffer:new Uint8Array,dynamicBuffer:new Uint8Array,pointers:[]});(0,n.assert)(!o&&!l||0===c.length,new r.ParserError("Invalid pack state."));let f=d.length,p=h.reduce((e,{pointer:t,position:i})=>{let r=(0,a.padStart)((0,n.numberToBytes)(f+t));return(0,a.set)(e,r,i)},d);return(0,n.concatBytes)([u,p,c])},t.unpack=(e,i)=>{let s=(0,o.iterate)(i);return e.map(e=>{let{value:{value:o,skip:a},done:l}=s.next();(0,n.assert)(!l,new r.ParserError(`The encoded value is invalid for the provided types. Reached end of buffer while attempting to parse "${e}".`));let u=(0,t.getParser)(e);if((0,t.isDynamicParser)(u,e)){let t=(0,n.bytesToNumber)(o.subarray(0,32)),r=i.subarray(t);return u.decode({type:e,value:r,skip:a})}return u.decode({type:e,value:o,skip:a})})}},27683:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.address=t.getAddress=void 0;let n=i(45554),r=i(39777),o=i(92313);t.getAddress=e=>{let t=(0,n.createBytes)(e);return(0,n.assert)(t.length<=20,new r.ParserError(`Invalid address value. Expected address to be 20 bytes long, but received ${t.length} bytes.`)),(0,o.padStart)(t,20)},t.address={isDynamic:!1,isType:e=>"address"===e,getByteLength:()=>32,encode({buffer:e,value:i,packed:r}){let s=(0,t.getAddress)(i);if(r)return(0,n.concatBytes)([e,s]);let a=(0,o.padStart)(s);return(0,n.concatBytes)([e,a])},decode:({value:e})=>(0,n.add0x)((0,n.bytesToHex)(e.slice(12,32)))}},37759:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.array=t.getTupleType=t.getArrayType=t.isArrayType=void 0;let n=i(45554),r=i(39777),o=i(69472),s=i(92313),a=i(92408),l=i(44409),u=/^(?.*)\[(?\d*?)\]$/u;t.isArrayType=e=>u.test(e),t.getArrayType=e=>{let t=e.match(u);return(0,n.assert)(t?.groups?.type,new r.ParserError(`Invalid array type. Expected an array type, but received "${e}".`)),[t.groups.type,t.groups.length?parseInt(t.groups.length,10):void 0]},t.getTupleType=(e,t)=>`(${Array(t).fill(e).join(",")})`,t.array={isDynamic(e){let[i,n]=(0,t.getArrayType)(e);return void 0===n||(0,o.isDynamicParser)((0,o.getParser)(i),i)},isType:e=>(0,t.isArrayType)(e),getByteLength(e){(0,n.assert)((0,t.isArrayType)(e),new r.ParserError(`Expected an array type, but received "${e}".`));let[i,s]=(0,t.getArrayType)(e);return(0,o.isDynamicParser)(this,e)||void 0===s?32:l.tuple.getByteLength((0,t.getTupleType)(i,s))},encode({type:e,buffer:i,value:u,packed:d,tight:c}){let[h,f]=(0,t.getArrayType)(e);if((0,n.assert)(!d||!(0,t.isArrayType)(h),new r.ParserError("Cannot pack nested arrays.")),d&&(0,o.isDynamicParser)((0,o.getParser)(h),h))return(0,o.pack)({types:Array(u.length).fill(h),values:u,byteArray:i,packed:d,arrayPacked:!0,tight:c});if(f)return(0,n.assert)(f===u.length,new r.ParserError(`Array length does not match type length. Expected a length of ${f}, but received ${u.length}.`)),l.tuple.encode({type:(0,t.getTupleType)(h,f),buffer:i,value:u,packed:a.fixedBytes.isType(h)&&c,tight:c});if(d)return(0,o.pack)({types:Array(u.length).fill(h),values:u,byteArray:i,packed:a.fixedBytes.isType(h)&&c,arrayPacked:!0,tight:c});let p=(0,s.padStart)((0,n.numberToBytes)(u.length));return(0,o.pack)({types:Array(u.length).fill(h),values:u,byteArray:(0,n.concatBytes)([i,p]),packed:d,tight:c})},decode({type:e,value:i,...s}){let[a,u]=(0,t.getArrayType)(e);if(u){let e=l.tuple.decode({type:(0,t.getTupleType)(a,u),value:i,...s});return(0,n.assert)(e.length===u,new r.ParserError(`Array length does not match type length. Expected a length of ${u}, but received ${e.length}.`)),e}let d=(0,n.bytesToNumber)(i.subarray(0,32));return(0,o.unpack)(Array(d).fill(a),i.subarray(32))}}},18457:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bool=t.getBooleanValue=void 0;let n=i(45554),r=i(37715),o=i(39777),s=i(1001),a=(0,r.coerce)((0,r.boolean)(),(0,r.union)([(0,r.literal)("true"),(0,r.literal)("false")]),e=>"true"===e);t.getBooleanValue=e=>{try{if((0,r.create)(e,a))return BigInt(1);return BigInt(0)}catch{throw new o.ParserError(`Invalid boolean value. Expected a boolean literal, or the string "true" or "false", but received "${e}".`)}},t.bool={isDynamic:!1,isType:e=>"bool"===e,getByteLength:()=>32,encode({buffer:e,value:i,packed:r,tight:o}){let a=(0,t.getBooleanValue)(i);return r?(0,n.concatBytes)([e,(0,n.bigIntToBytes)(a)]):s.number.encode({type:"uint256",buffer:e,value:a,packed:r,tight:o})},decode:e=>s.number.decode({...e,type:"uint256"})===BigInt(1)}},37300:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bytes=void 0;let n=i(45554),r=i(92313);t.bytes={isDynamic:!0,isType:e=>"bytes"===e,getByteLength:()=>32,encode({buffer:e,value:t,packed:i}){let o=(0,n.createBytes)(t);if(i)return(0,n.concatBytes)([e,o]);let s=32*Math.ceil(o.byteLength/32);return(0,n.concatBytes)([e,(0,r.padStart)((0,n.numberToBytes)(o.byteLength)),(0,r.padEnd)(o,s)])},decode({value:e}){let t=e.subarray(0,32),i=(0,n.bytesToNumber)(t);return e.slice(32,32+i)}}},92408:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fixedBytes=t.getByteLength=void 0;let n=i(45554),r=i(39777),o=i(92313),s=/^bytes([0-9]{1,2})$/u;t.getByteLength=e=>{let t=e.match(s)?.[1];(0,n.assert)(t,`Invalid byte length. Expected a number between 1 and 32, but received "${e}".`);let i=Number(t);return(0,n.assert)(i>0&&i<=32,new r.ParserError(`Invalid byte length. Expected a number between 1 and 32, but received "${e}".`)),i},t.fixedBytes={isDynamic:!1,isType:e=>s.test(e),getByteLength:()=>32,encode({type:e,buffer:i,value:s,packed:a}){let l=(0,t.getByteLength)(e),u=(0,n.createBytes)(s);return((0,n.assert)(u.length<=l,new r.ParserError(`Expected a value of length ${l}, but received a value of length ${u.length}.`)),a)?(0,n.concatBytes)([i,(0,o.padEnd)(u,l)]):(0,n.concatBytes)([i,(0,o.padEnd)(u)])},decode({type:e,value:i}){let n=(0,t.getByteLength)(e);return i.slice(0,n)}}},42345:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fn=t.getFunction=void 0;let n=i(45554),r=i(37715),o=i(39777),s=i(92408),a=(0,r.coerce)((0,r.object)({address:n.StrictHexStruct,selector:n.StrictHexStruct}),(0,r.union)([n.StrictHexStruct,(0,r.instance)(Uint8Array)]),e=>{let t=(0,n.createBytes)(e);return(0,n.assert)(24===t.length,new o.ParserError(`Invalid Solidity function. Expected function to be 24 bytes long, but received ${t.length} bytes.`)),{address:(0,n.bytesToHex)(t.subarray(0,20)),selector:(0,n.bytesToHex)(t.subarray(20,24))}});t.getFunction=e=>{let t=(0,r.create)(e,a);return(0,n.concatBytes)([(0,n.hexToBytes)(t.address),(0,n.hexToBytes)(t.selector)])},t.fn={isDynamic:!1,isType:e=>"function"===e,getByteLength:()=>32,encode({buffer:e,value:i,packed:n,tight:r}){let o=(0,t.getFunction)(i);return s.fixedBytes.encode({type:"bytes24",buffer:e,value:o,packed:n,tight:r})},decode:({value:e})=>({address:(0,n.bytesToHex)(e.slice(0,20)),selector:(0,n.bytesToHex)(e.slice(20,24))})}},84206:function(e,t,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i);var r=Object.getOwnPropertyDescriptor(t,i);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,n,r)}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),r=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||n(t,e,i)};Object.defineProperty(t,"__esModule",{value:!0}),r(i(27683),t),r(i(37759),t),r(i(18457),t),r(i(37300),t),r(i(92408),t),r(i(42345),t),r(i(1001),t),r(i(10052),t),r(i(85967),t),r(i(44409),t)},1001:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.number=t.getBigInt=t.assertNumberLength=t.getLength=t.isSigned=void 0;let n=i(45554),r=i(39777),o=i(92313),s=/^u?int(?[0-9]*)?$/u;t.isSigned=e=>!e.startsWith("u"),t.getLength=e=>{if("int"===e||"uint"===e)return 256;let t=e.match(s);(0,n.assert)(t?.groups?.length,new r.ParserError(`Invalid number type. Expected a number type, but received "${e}".`));let i=parseInt(t.groups.length,10);return(0,n.assert)(i>=8&&i<=256,new r.ParserError(`Invalid number length. Expected a number between 8 and 256, but received "${e}".`)),(0,n.assert)(i%8==0,new r.ParserError(`Invalid number length. Expected a multiple of 8, but received "${e}".`)),i},t.assertNumberLength=(e,i)=>{let o=(0,t.getLength)(i),s=BigInt(2)**BigInt(o-((0,t.isSigned)(i)?1:0))-BigInt(1);if((0,t.isSigned)(i)){(0,n.assert)(e>=-(s+BigInt(1))&&e<=s,new r.ParserError(`Number "${e}" is out of range for type "${i}".`));return}(0,n.assert)(e<=s,new r.ParserError(`Number "${e}" is out of range for type "${i}".`))},t.getBigInt=e=>{try{return(0,n.createBigInt)(e)}catch{throw new r.ParserError(`Invalid number. Expected a valid number value, but received "${e}".`)}},t.number={isDynamic:!1,isType:e=>s.test(e),getByteLength:()=>32,encode({type:e,buffer:i,value:r,packed:s}){let a=(0,t.getBigInt)(r);if((0,t.assertNumberLength)(a,e),(0,t.isSigned)(e)){if(s){let r=(0,t.getLength)(e)/8;return(0,n.concatBytes)([i,(0,n.signedBigIntToBytes)(a,r)])}return(0,n.concatBytes)([i,(0,o.padStart)((0,n.signedBigIntToBytes)(a,32))])}if(s){let r=(0,t.getLength)(e)/8;return(0,n.concatBytes)([i,(0,o.padStart)((0,n.bigIntToBytes)(a),r)])}return(0,n.concatBytes)([i,(0,o.padStart)((0,n.bigIntToBytes)(a))])},decode({type:e,value:i}){let r=i.subarray(0,32);if((0,t.isSigned)(e)){let i=(0,n.bytesToSignedBigInt)(r);return(0,t.assertNumberLength)(i,e),i}let o=(0,n.bytesToBigInt)(r);return(0,t.assertNumberLength)(o,e),o}}},10052:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},85967:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.string=void 0;let n=i(45554),r=i(37300);t.string={isDynamic:!0,isType:e=>"string"===e,getByteLength:()=>32,encode:({buffer:e,value:t,packed:i,tight:o})=>r.bytes.encode({type:"bytes",buffer:e,value:(0,n.stringToBytes)(t),packed:i,tight:o}),decode:e=>(0,n.bytesToString)(r.bytes.decode(e))}},44409:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tuple=t.getTupleElements=void 0;let n=i(45554),r=i(39777),o=i(69472),s=/^\((.+)\)$/u,a=e=>s.test(e);t.getTupleElements=e=>{(0,n.assert)(e.startsWith("(")&&e.endsWith(")"),new r.ParserError(`Invalid tuple type. Expected tuple type, but received "${e}".`));let t=[],i="",o=0;for(let n=1;n(0,t.getTupleElements)(e).some(e=>{let t=(0,o.getParser)(e);return(0,o.isDynamicParser)(t,e)}),isType:e=>a(e),getByteLength(e){return(0,o.isDynamicParser)(this,e)?32:(0,t.getTupleElements)(e).reduce((e,t)=>e+(0,o.getParser)(t).getByteLength(t),0)},encode({type:e,buffer:i,value:n,packed:r,tight:s}){let a=(0,t.getTupleElements)(e);return(0,o.pack)({types:a,values:n,byteArray:i,packed:r,tight:s})},decode({type:e,value:i,skip:n}){let r=(0,t.getTupleElements)(e);return n(this.getByteLength(e)-32),(0,o.unpack)(r,i)}}},54163:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},75858:function(e,t,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i);var r=Object.getOwnPropertyDescriptor(t,i);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,n,r)}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),r=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||n(t,e,i)};Object.defineProperty(t,"__esModule",{value:!0}),r(i(54163),t)},21348:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.padEnd=t.padStart=t.set=void 0;let n=i(45554),r=32;t.set=(e,t,i)=>(0,n.concatBytes)([e.subarray(0,i),t,e.subarray(i+t.length)]),t.padStart=(e,t=r)=>{let i=new Uint8Array(Math.max(t-e.length,0)).fill(0);return(0,n.concatBytes)([i,e])},t.padEnd=(e,t=r)=>{let i=new Uint8Array(Math.max(t-e.length,0)).fill(0);return(0,n.concatBytes)([e,i])}},92313:function(e,t,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i);var r=Object.getOwnPropertyDescriptor(t,i);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,n,r)}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),r=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||n(t,e,i)};Object.defineProperty(t,"__esModule",{value:!0}),r(i(21348),t)},67882:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseControllerV1=void 0;class i{constructor(e={},t={}){this.defaultConfig={},this.defaultState={},this.disabled=!1,this.name="BaseController",this.internalConfig=this.defaultConfig,this.internalState=this.defaultState,this.internalListeners=[],this.initialState=t,this.initialConfig=e}initialize(){return this.internalState=this.defaultState,this.internalConfig=this.defaultConfig,this.configure(this.initialConfig),this.update(this.initialState),this}get config(){return this.internalConfig}get state(){return this.internalState}configure(e,t=!1,i=!0){if(i)for(let[i,n]of(this.internalConfig=t?e:Object.assign(this.internalConfig,e),Object.entries(this.internalConfig)))void 0!==n&&(this[i]=n);else for(let t of Object.keys(e))void 0!==this.internalConfig[t]&&(this.internalConfig[t]=e[t],this[t]=e[t])}notify(){this.disabled||this.internalListeners.forEach(e=>{e(this.internalState)})}subscribe(e){this.internalListeners.push(e)}unsubscribe(e){let t=this.internalListeners.findIndex(t=>e===t);return t>-1&&this.internalListeners.splice(t,1),t>-1}update(e,t=!1){this.internalState=t?Object.assign({},e):Object.assign({},this.internalState,e),this.notify()}}t.BaseControllerV1=i,t.default=i},49834:function(e,t,i){"use strict";var n,r=this&&this.__classPrivateFieldSet||function(e,t,i,n,r){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!r)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?r.call(e,i):r?r.value=i:t.set(e,i),i},o=this&&this.__classPrivateFieldGet||function(e,t,i,n){if("a"===i&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(e):n?n.value:t.get(e)};Object.defineProperty(t,"__esModule",{value:!0}),t.getPersistentState=t.getAnonymizedState=t.BaseController=void 0;let s=i(30412);function a(e,t,i){return Object.keys(e).reduce((n,r)=>{try{let o=t[r];if(!o)throw Error(`No metadata found for '${String(r)}'`);let s=o[i],a=e[r];return"function"==typeof s?n[r]=s(a):s&&(n[r]=a),n}catch(e){return setTimeout(()=>{throw e}),n}},{})}(0,s.enablePatches)(),t.BaseController=class{constructor({messenger:e,metadata:t,name:i,state:o}){n.set(this,void 0),this.messagingSystem=e,this.name=i,r(this,n,o,"f"),this.metadata=t,this.messagingSystem.registerActionHandler(`${i}:getState`,()=>this.state)}get state(){return o(this,n,"f")}set state(e){throw Error("Controller state cannot be directly mutated; use 'update' method instead.")}update(e){let[t,i,a]=s.produceWithPatches(o(this,n,"f"),e);return r(this,n,t,"f"),this.messagingSystem.publish(`${this.name}:stateChange`,t,i),{nextState:t,patches:i,inversePatches:a}}applyPatches(e){let t=(0,s.applyPatches)(o(this,n,"f"),e);r(this,n,t,"f"),this.messagingSystem.publish(`${this.name}:stateChange`,t,e)}destroy(){this.messagingSystem.clearEventSubscriptions(`${this.name}:stateChange`)}},n=new WeakMap,t.getAnonymizedState=function(e,t){return a(e,t,"anonymous")},t.getPersistentState=function(e,t){return a(e,t,"persist")}},91588:function(e,t,i){"use strict";var n,r,o,s=this&&this.__classPrivateFieldGet||function(e,t,i,n){if("a"===i&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(e):n?n.value:t.get(e)};Object.defineProperty(t,"__esModule",{value:!0}),t.ControllerMessenger=void 0;let a=i(39058);t.ControllerMessenger=class{constructor(){n.set(this,new Map),r.set(this,new Map),o.set(this,new Map)}registerActionHandler(e,t){if(s(this,n,"f").has(e))throw Error(`A handler for ${e} has already been registered`);s(this,n,"f").set(e,t)}unregisterActionHandler(e){s(this,n,"f").delete(e)}clearActions(){s(this,n,"f").clear()}call(e,...t){let i=s(this,n,"f").get(e);if(!i)throw Error(`A handler for ${e} has not been registered`);return i(...t)}publish(e,...t){let i=s(this,r,"f").get(e);if(i)for(let[e,n]of i.entries())try{if(n){let i=s(this,o,"f").get(e),r=n(...t);r!==i&&(s(this,o,"f").set(e,r),e(r,i))}else e(...t)}catch(e){setTimeout(()=>{throw e})}}subscribe(e,t,i){let n=s(this,r,"f").get(e);n||(n=new Map,s(this,r,"f").set(e,n)),n.set(t,i)}unsubscribe(e,t){let i=s(this,r,"f").get(e);if(!i||!i.has(t))throw Error(`Subscription not found for event: ${e}`);i.get(t)&&s(this,o,"f").delete(t),i.delete(t)}clearEventSubscriptions(e){s(this,r,"f").delete(e)}clearSubscriptions(){s(this,r,"f").clear()}getRestricted({name:e,allowedActions:t,allowedEvents:i}){return new a.RestrictedControllerMessenger({controllerMessenger:this,name:e,allowedActions:t,allowedEvents:i})}},n=new WeakMap,r=new WeakMap,o=new WeakMap},39058:function(e,t){"use strict";var i,n,r,o,s,a,l,u,d=this&&this.__classPrivateFieldSet||function(e,t,i,n,r){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!r)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?r.call(e,i):r?r.value=i:t.set(e,i),i},c=this&&this.__classPrivateFieldGet||function(e,t,i,n){if("a"===i&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(e):n?n.value:t.get(e)};Object.defineProperty(t,"__esModule",{value:!0}),t.RestrictedControllerMessenger=void 0,t.RestrictedControllerMessenger=class{constructor({controllerMessenger:e,name:t,allowedActions:a,allowedEvents:l}){i.add(this),n.set(this,void 0),r.set(this,void 0),o.set(this,void 0),s.set(this,void 0),d(this,n,e,"f"),d(this,r,t,"f"),d(this,o,null!=a?a:null,"f"),d(this,s,null!=l?l:null,"f")}registerActionHandler(e,t){if(!c(this,i,"m",u).call(this,e))throw Error(`Only allowed registering action handlers prefixed by '${c(this,r,"f")}:'`);c(this,n,"f").registerActionHandler(e,t)}unregisterActionHandler(e){if(!c(this,i,"m",u).call(this,e))throw Error(`Only allowed unregistering action handlers prefixed by '${c(this,r,"f")}:'`);c(this,n,"f").unregisterActionHandler(e)}call(e,...t){if(!c(this,i,"m",l).call(this,e))throw Error(`Action missing from allow list: ${e}`);return c(this,n,"f").call(e,...t)}publish(e,...t){if(!c(this,i,"m",u).call(this,e))throw Error(`Only allowed publishing events prefixed by '${c(this,r,"f")}:'`);c(this,n,"f").publish(e,...t)}subscribe(e,t,r){if(!c(this,i,"m",a).call(this,e))throw Error(`Event missing from allow list: ${e}`);return r?c(this,n,"f").subscribe(e,t,r):c(this,n,"f").subscribe(e,t)}unsubscribe(e,t){if(!c(this,i,"m",a).call(this,e))throw Error(`Event missing from allow list: ${e}`);c(this,n,"f").unsubscribe(e,t)}clearEventSubscriptions(e){if(!c(this,i,"m",u).call(this,e))throw Error(`Only allowed clearing events prefixed by '${c(this,r,"f")}:'`);c(this,n,"f").clearEventSubscriptions(e)}},n=new WeakMap,r=new WeakMap,o=new WeakMap,s=new WeakMap,i=new WeakSet,a=function(e){let t=c(this,s,"f");return c(this,i,"m",u).call(this,e)||null!==t&&t.includes(e)},l=function(e){let t=c(this,o,"f");return c(this,i,"m",u).call(this,e)||null!==t&&t.includes(e)},u=function(e){return e.startsWith(`${c(this,r,"f")}:`)}},51501:function(e,t,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i);var r=Object.getOwnPropertyDescriptor(t,i);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,n,r)}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),r=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||n(t,e,i)};Object.defineProperty(t,"__esModule",{value:!0}),t.getPersistentState=t.getAnonymizedState=t.BaseController=t.BaseControllerV1=void 0;var o=i(67882);Object.defineProperty(t,"BaseControllerV1",{enumerable:!0,get:function(){return o.BaseControllerV1}});var s=i(49834);Object.defineProperty(t,"BaseController",{enumerable:!0,get:function(){return s.BaseController}}),Object.defineProperty(t,"getAnonymizedState",{enumerable:!0,get:function(){return s.getAnonymizedState}}),Object.defineProperty(t,"getPersistentState",{enumerable:!0,get:function(){return s.getPersistentState}}),r(i(91588),t),r(i(39058),t)},7850:(e,t,i)=>{"use strict";var n=i(48834).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.isVaultUpdated=t.updateVaultWithDetail=t.updateVault=t.generateSalt=t.serializeBufferForStorage=t.serializeBufferFromStorage=t.keyFromPassword=t.exportKey=t.importKey=t.decryptWithKey=t.decryptWithDetail=t.decrypt=t.encryptWithKey=t.encryptWithDetail=t.encrypt=void 0;let r=i(45554),o="AES-GCM",s="utf-8",a={algorithm:"PBKDF2",params:{iterations:1e4}},l={algorithm:"PBKDF2",params:{iterations:9e5}};async function u(e,t,i,n=b(),r=l){let o=i||await v(e,n,!1,r),s=await c(o,t);return s.salt=n,JSON.stringify(s)}async function d(e,t,i=b(),n=l){let r=await v(e,i,!0,n),o=await m(r);return{vault:await u(e,t,r,i),exportedKeyString:o}}async function c(e,t){let r=JSON.stringify(t),a=n.from(r,s),l=i.g.crypto.getRandomValues(new Uint8Array(16)),u=S(e),d=await i.g.crypto.subtle.encrypt({name:o,iv:l},u,a),c=new Uint8Array(d),h=n.from(l).toString("base64"),f={data:n.from(c).toString("base64"),iv:h};return w(e)&&(f.keyMetadata=e.derivationOptions),f}async function h(e,t,i){let n=JSON.parse(t),{salt:r,keyMetadata:o}=n,s=S(i||await v(e,r,!1,o));return await p(s,n)}async function f(e,t){let{salt:i,keyMetadata:n}=JSON.parse(t),r=await v(e,i,!0,n);return{exportedKeyString:await m(r),vault:await h(e,t,r),salt:i}}async function p(e,t){let i;let r=n.from(t.data,"base64"),a=n.from(t.iv,"base64"),l=S(e);try{let e=await crypto.subtle.decrypt({name:o,iv:a},l,r),t=new Uint8Array(e),u=n.from(t).toString(s);i=JSON.parse(u)}catch(e){throw Error("Incorrect password")}return i}async function g(e){let t=JSON.parse(e);return(0,r.isPlainObject)(t)&&(0,r.hasProperty)(t,"key")&&(0,r.hasProperty)(t,"derivationOptions")&&C(t.derivationOptions)?{key:await window.crypto.subtle.importKey("jwk",t.key,o,!0,["encrypt","decrypt"]),derivationOptions:t.derivationOptions}:await window.crypto.subtle.importKey("jwk",t,o,!0,["encrypt","decrypt"])}async function m(e){return w(e)?JSON.stringify({key:await window.crypto.subtle.exportKey("jwk",e.key),derivationOptions:e.derivationOptions}):JSON.stringify(await window.crypto.subtle.exportKey("jwk",e))}async function v(e,t,r=!1,l=a){let u=n.from(e,s),d=n.from(t,"base64"),c=await i.g.crypto.subtle.importKey("raw",u,{name:"PBKDF2"},!1,["deriveBits","deriveKey"]),h=await i.g.crypto.subtle.deriveKey({name:"PBKDF2",salt:d,iterations:l.params.iterations,hash:"SHA-256"},c,{name:o,length:256},r,["encrypt","decrypt"]);return l?{key:h,derivationOptions:l}:h}function b(e=32){let t=new Uint8Array(e);return i.g.crypto.getRandomValues(t),btoa(String.fromCharCode.apply(null,t))}async function y(e,t,i=l){return x(e,i)?e:u(t,await h(t,e),void 0,void 0,i)}async function _(e,t,i=l){return x(e.vault,i)?e:d(t,await h(t,e.vault),void 0,i)}function w(e){return(0,r.isPlainObject)(e)&&(0,r.hasProperty)(e,"key")&&(0,r.hasProperty)(e,"derivationOptions")&&e.key instanceof CryptoKey&&C(e.derivationOptions)}function C(e){return(0,r.isPlainObject)(e)&&(0,r.hasProperty)(e,"algorithm")&&(0,r.hasProperty)(e,"params")}function S(e){return w(e)?e.key:e}function x(e,t=l){let{keyMetadata:i}=JSON.parse(e);return C(i)&&i.algorithm===t.algorithm&&i.params.iterations===t.params.iterations}t.encrypt=u,t.encryptWithDetail=d,t.encryptWithKey=c,t.decrypt=h,t.decryptWithDetail=f,t.decryptWithKey=p,t.importKey=g,t.exportKey=m,t.keyFromPassword=v,t.serializeBufferFromStorage=function(e){let t="0x"===e.slice(0,2)?e.slice(2):e,i=new Uint8Array(t.length/2);for(let e=0;e{t+=function(e){let t=e.toString(16);for(;t.length<2;)t=`0${t}`;return t}(e)}),t},t.generateSalt=b,t.updateVault=y,t.updateVaultWithDetail=_,t.isVaultUpdated=x},93395:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CHAIN_ID_TO_ETHERS_NETWORK_NAME_MAP=t.ApprovalType=t.ORIGIN_METAMASK=t.OPENSEA_PROXY_URL=t.BUILT_IN_NETWORKS=t.TESTNET_TICKER_SYMBOLS=t.ASSET_TYPES=t.GWEI=t.ERC1155_TOKEN_RECEIVER_INTERFACE_ID=t.ERC1155_METADATA_URI_INTERFACE_ID=t.ERC1155_INTERFACE_ID=t.ERC721_ENUMERABLE_INTERFACE_ID=t.ERC721_METADATA_INTERFACE_ID=t.ERC721_INTERFACE_ID=t.ERC20=t.ERC1155=t.ERC721=t.MAX_SAFE_CHAIN_ID=t.GANACHE_CHAIN_ID=t.IPFS_DEFAULT_GATEWAY_URL=t.FALL_BACK_VS_CURRENCY=t.RPC=void 0;let n=i(35170);t.RPC="rpc",t.FALL_BACK_VS_CURRENCY="ETH",t.IPFS_DEFAULT_GATEWAY_URL="https://cloudflare-ipfs.com/ipfs/",t.GANACHE_CHAIN_ID="0x539",t.MAX_SAFE_CHAIN_ID=0xfffffffffffec,t.ERC721="ERC721",t.ERC1155="ERC1155",t.ERC20="ERC20",t.ERC721_INTERFACE_ID="0x80ac58cd",t.ERC721_METADATA_INTERFACE_ID="0x5b5e139f",t.ERC721_ENUMERABLE_INTERFACE_ID="0x780e9d63",t.ERC1155_INTERFACE_ID="0xd9b67a26",t.ERC1155_METADATA_URI_INTERFACE_ID="0x0e89341c",t.ERC1155_TOKEN_RECEIVER_INTERFACE_ID="0x4e2312e0",t.GWEI="gwei",t.ASSET_TYPES={NATIVE:"NATIVE",TOKEN:"TOKEN",NFT:"NFT",UNKNOWN:"UNKNOWN"},t.TESTNET_TICKER_SYMBOLS={GOERLI:"GoerliETH",SEPOLIA:"SepoliaETH",LINEA_GOERLI:"LineaETH"},t.BUILT_IN_NETWORKS={[n.NetworkType.goerli]:{chainId:n.ChainId.goerli,ticker:n.NetworksTicker.goerli,rpcPrefs:{blockExplorerUrl:`https://${n.NetworkType.goerli}.etherscan.io`}},[n.NetworkType.sepolia]:{chainId:n.ChainId.sepolia,ticker:n.NetworksTicker.sepolia,rpcPrefs:{blockExplorerUrl:`https://${n.NetworkType.sepolia}.etherscan.io`}},[n.NetworkType.mainnet]:{chainId:n.ChainId.mainnet,ticker:n.NetworksTicker.mainnet,rpcPrefs:{blockExplorerUrl:"https://etherscan.io"}},[n.NetworkType["linea-goerli"]]:{chainId:n.ChainId["linea-goerli"],ticker:n.NetworksTicker["linea-goerli"],rpcPrefs:{blockExplorerUrl:"https://goerli.lineascan.build"}},[n.NetworkType["linea-mainnet"]]:{chainId:n.ChainId["linea-mainnet"],ticker:n.NetworksTicker["linea-mainnet"],rpcPrefs:{blockExplorerUrl:"https://lineascan.build"}},[n.NetworkType.rpc]:{chainId:void 0,blockExplorerUrl:void 0,ticker:void 0,rpcPrefs:void 0}},t.OPENSEA_PROXY_URL="https://proxy.metafi.codefi.network/opensea/v1/api/v2",t.ORIGIN_METAMASK="metamask",function(e){e.AddEthereumChain="wallet_addEthereumChain",e.ConnectAccounts="connect_accounts",e.EthDecrypt="eth_decrypt",e.EthGetEncryptionPublicKey="eth_getEncryptionPublicKey",e.EthSign="eth_sign",e.EthSignTypedData="eth_signTypedData",e.PersonalSign="personal_sign",e.ResultError="result_error",e.ResultSuccess="result_success",e.SnapDialogAlert="snap_dialog:alert",e.SnapDialogConfirmation="snap_dialog:confirmation",e.SnapDialogPrompt="snap_dialog:prompt",e.SwitchEthereumChain="wallet_switchEthereumChain",e.Transaction="transaction",e.Unlock="unlock",e.WalletConnect="wallet_connect",e.WalletRequestPermissions="wallet_requestPermissions",e.WatchAsset="wallet_watchAsset"}(t.ApprovalType||(t.ApprovalType={})),t.CHAIN_ID_TO_ETHERS_NETWORK_NAME_MAP={[n.ChainId.goerli]:n.BuiltInNetworkName.Goerli,[n.ChainId.sepolia]:n.BuiltInNetworkName.Sepolia,[n.ChainId.mainnet]:n.BuiltInNetworkName.Mainnet,[n.ChainId["linea-goerli"]]:n.BuiltInNetworkName.LineaGoerli,[n.ChainId["linea-mainnet"]]:n.BuiltInNetworkName.LineaMainnet,[n.ChainId.aurora]:n.BuiltInNetworkName.Aurora}},82373:function(e,t,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i);var r=Object.getOwnPropertyDescriptor(t,i);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,n,r)}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),r=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||n(t,e,i)};Object.defineProperty(t,"__esModule",{value:!0}),r(i(93395),t),r(i(67690),t),r(i(35170),t),r(i(80042),t)},46476:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createModuleLogger=t.projectLogger=void 0;let n=i(45554);Object.defineProperty(t,"createModuleLogger",{enumerable:!0,get:function(){return n.createModuleLogger}}),t.projectLogger=(0,n.createProjectLogger)("controller-utils")},80042:(e,t,i)=>{"use strict";var n=i(48834).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.detectSIWE=t.isValidSIWEOrigin=t.parseDomainParts=void 0;let r=i(39755),o=i(47144),s=i(46476),a=(0,s.createModuleLogger)(s.projectLogger,"detect-siwe"),l={"http:":"80","https:":"443"};t.parseDomainParts=(e,t)=>new URL(e.match(/^[^/:]*:\/\//u)?e:`${t}//${e}`),t.isValidSIWEOrigin=e=>{var i;try{let{origin:n,siwe:r}=e;if(!n||!(null===(i=null==r?void 0:r.parsedMessage)||void 0===i?void 0:i.domain))return!1;let o=new URL(n),s=(0,t.parseDomainParts)(r.parsedMessage.domain,o.protocol);if(0!==s.hostname.localeCompare(o.hostname,void 0,{sensitivity:"accent"}))return!1;if(""!==s.port&&s.port!==o.port)return""===o.port&&s.port===l[o.protocol];if(""!==s.username&&s.username!==o.username)return!1;return!0}catch(e){return a(e),!1}},t.detectSIWE=e=>{try{let{data:t}=e,i=function(e){try{let t="string"!=typeof e?e:(0,o.isHexPrefixed)(e)?e.slice(2):e,i=n.from(t,"hex");return 32===i.length?e:i.toString("utf8")}catch(t){return a(t),e}}(t),s=new r.ParsedMessage(i);return{isSIWEMessage:!0,parsedMessage:s}}catch(e){return{isSIWEMessage:!1,parsedMessage:null}}}},35170:(e,t)=>{"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),t.NetworksTicker=t.ChainId=t.BuiltInNetworkName=t.isInfuraNetworkType=t.isNetworkType=t.NetworkType=t.InfuraNetworkType=void 0,t.InfuraNetworkType={mainnet:"mainnet",goerli:"goerli",sepolia:"sepolia","linea-goerli":"linea-goerli","linea-mainnet":"linea-mainnet"},t.NetworkType=Object.assign(Object.assign({},t.InfuraNetworkType),{rpc:"rpc"}),t.isNetworkType=function(e){return Object.values(t.NetworkType).includes(e)},t.isInfuraNetworkType=function(e){return Object.keys(t.InfuraNetworkType).includes(e)},function(e){e.Mainnet="mainnet",e.Goerli="goerli",e.Sepolia="sepolia",e.LineaGoerli="linea-goerli",e.LineaMainnet="linea-mainnet",e.Aurora="aurora"}(i=t.BuiltInNetworkName||(t.BuiltInNetworkName={})),t.ChainId={[i.Mainnet]:"0x1",[i.Goerli]:"0x5",[i.Sepolia]:"0xaa36a7",[i.Aurora]:"0x4e454152",[i.LineaGoerli]:"0xe704",[i.LineaMainnet]:"0xe708"},function(e){e.mainnet="ETH",e.goerli="GoerliETH",e.sepolia="SepoliaETH",e["linea-goerli"]="LineaETH",e["linea-mainnet"]="ETH",e.rpc=""}(t.NetworksTicker||(t.NetworksTicker={}))},67690:function(e,t,i){"use strict";var n=i(48834).Buffer,r=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isValidJson=t.isNonEmptyArray=t.isPlainObject=t.convertHexToDecimal=t.query=t.normalizeEnsName=t.timeoutFetch=t.fetchWithErrorHandling=t.handleFetch=t.successfulFetch=t.isSmartContractCode=t.isValidHexAddress=t.toChecksumHexAddress=t.safelyExecuteWithTimeout=t.safelyExecute=t.toHex=t.fromHex=t.hexToText=t.hexToBN=t.getBuyURL=t.weiHexToGweiDec=t.gweiDecToWEIBN=t.fractionBN=t.BNToHex=t.isSafeChainId=void 0;let s=i(97817),a=i(45554),l=o(i(82775)),u=i(47144),d=o(i(69378)),c=i(93395),h=Error("timeout");function f(e){return e?new u.BN((0,u.stripHexPrefix)(e),16):new u.BN(0)}function p(e,t){return r(this,void 0,void 0,function*(){let i=yield fetch(e,t);if(!i.ok)throw Error(`Fetch failed with status '${i.status}' for request '${String(e)}'`);return i})}function g(e,t){return r(this,void 0,void 0,function*(){let i=yield p(e,t);return yield i.json()})}t.isSafeChainId=function(e){if(!(0,u.isHexString)(e))return!1;let t=Number.parseInt(e);return Number.isSafeInteger(t)&&t>0&&t<=c.MAX_SAFE_CHAIN_ID},t.BNToHex=function(e){return(0,u.addHexPrefix)(e.toString(16))},t.fractionBN=function(e,t,i){let n=new u.BN(t),r=new u.BN(i);return e.mul(n).div(r)},t.gweiDecToWEIBN=function(e){if(Number.isNaN(e))return new u.BN(0);let t=e.toString().split("."),i=t[0]||"0",n=t[1]||"";if(!n)return(0,s.toWei)(i,"gwei");if(n.length<=9)return(0,s.toWei)(`${i}.${n}`,"gwei");let r=n.slice(9)[0];n=n.slice(0,9);let o=(0,s.toWei)(`${i}.${n}`,"gwei");return Number(r)>=5&&(o=o.add(new u.BN(1))),o},t.weiHexToGweiDec=function(e){let t=new u.BN((0,u.stripHexPrefix)(e),16);return(0,s.fromWei)(t,"gwei")},t.getBuyURL=function(e="1",t,i=5){switch(e){case"1":return`https://buy.coinbase.com/?code=9ec56d01-7e81-5017-930c-513daa27bb6a&amount=${i}&address=${t}&crypto_currency=ETH`;case"5":return"https://goerli-faucet.slock.it/";case"11155111":return"https://sepoliafaucet.net/";default:return}},t.hexToBN=f,t.hexToText=function(e){try{let t=(0,u.stripHexPrefix)(e);return n.from(t,"hex").toString("utf8")}catch(t){return e}},t.fromHex=function(e){return u.BN.isBN(e)?e:new u.BN(f(e).toString(10))},t.toHex=function(e){return"string"==typeof e&&(0,a.isStrictHexString)(e)?e:`0x${u.BN.isBN(e)?e.toString(16):new u.BN(e.toString(),10).toString(16)}`},t.safelyExecute=function(e,t=!1){return r(this,void 0,void 0,function*(){try{return yield e()}catch(e){t&&console.error(e);return}})},t.safelyExecuteWithTimeout=function(e,t=!1,i=500){return r(this,void 0,void 0,function*(){try{return yield Promise.race([e(),new Promise((e,t)=>setTimeout(()=>{t(h)},i))])}catch(e){t&&console.error(e);return}})},t.toChecksumHexAddress=function(e){let t=(0,u.addHexPrefix)(e);return(0,u.isHexString)(t)?(0,u.toChecksumAddress)(t):t},t.isValidHexAddress=function(e,{allowNonPrefixed:t=!0}={}){let i=t?(0,u.addHexPrefix)(e):e;return!!(0,u.isHexString)(i)&&(0,u.isValidAddress)(i)},t.isSmartContractCode=function(e){return!!e&&"0x"!==e&&"0x0"!==e},t.successfulFetch=p,t.handleFetch=g,t.fetchWithErrorHandling=function({url:e,options:t,timeout:i,errorCodesToCatch:n}){return r(this,void 0,void 0,function*(){let r;try{r=i?Promise.race([(yield g(e,t)),new Promise((e,t)=>setTimeout(()=>{t(h)},i))]):yield g(e,t)}catch(e){!function(e,t=[]){var i;if(!e)return;let n=t.some(t=>{var i;return null===(i=e.message)||void 0===i?void 0:i.includes(`Fetch failed with status '${t}'`)});if(e instanceof Error&&(n||(null===(i=e.message)||void 0===i?void 0:i.includes("Failed to fetch"))||e===h))console.error(e);else throw e}(e,n)}return r})},t.timeoutFetch=function(e,t,i=500){return r(this,void 0,void 0,function*(){return Promise.race([p(e,t),new Promise((e,t)=>setTimeout(()=>{t(h)},i))])})},t.normalizeEnsName=function(e){if(e&&"string"==typeof e)try{let t=l.default.normalize(e.trim());if(t.match(/^(([\w\d-]+)\.)*[\w\d-]{7,}\.(eth|test)$/u))return t}catch(e){}return null},t.query=function(e,t,i=[]){return new Promise((n,r)=>{let o=(e,t)=>{if(e){r(e);return}n(t)};t in e&&"function"==typeof e[t]?e[t](...i,o):e.sendAsync({method:t,params:i},o)})},t.convertHexToDecimal=(e="0x0")=>(0,u.isHexString)(e)?parseInt(e,16):Number(e)?Number(e):0,t.isPlainObject=function(e){return!!e&&"object"==typeof e&&!Array.isArray(e)},t.isNonEmptyArray=function(e){return Array.isArray(e)&&e.length>0},t.isValidJson=function(e){try{return(0,d.default)(e,JSON.parse(JSON.stringify(e)))}catch(e){return!1}}},7986:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createBlockCacheMiddleware=void 0;let n=i(63163),r=i(47045),o=i(62836),s=(0,r.createModuleLogger)(r.projectLogger,"block-cache"),a=[void 0,null,""];class l{constructor(){this.cache={}}getBlockCache(e){let t=Number.parseInt(e,16),i=this.cache[t];if(!i){let e={};this.cache[t]=e,i=e}return i}async get(e,t){let i=this.getBlockCache(t),n=(0,o.cacheIdentifierForRequest)(e,!0);return n?i[n]:void 0}async set(e,t,i){if(!this.canCacheResult(e,i))return;let n=(0,o.cacheIdentifierForRequest)(e,!0);n&&(this.getBlockCache(t)[n]=i)}canCacheRequest(e){return!!(0,o.canCache)(e.method)&&"pending"!==(0,o.blockTagForRequest)(e)}canCacheResult(e,t){return!(a.includes(t)||e.method&&["eth_getTransactionByHash","eth_getTransactionReceipt"].includes(e.method)&&(!t||!t.blockHash||"0x0000000000000000000000000000000000000000000000000000000000000000"===t.blockHash))}clearBefore(e){let t=Number.parseInt(e,16);Object.keys(this.cache).map(Number).filter(e=>edelete this.cache[e])}}t.createBlockCacheMiddleware=function({blockTracker:e}={}){if(!e)throw Error("createBlockCacheMiddleware - No PollingBlockTracker specified");let t=new l,i={[o.CacheStrategy.Permanent]:t,[o.CacheStrategy.Block]:t,[o.CacheStrategy.Fork]:t,[o.CacheStrategy.Never]:void 0};return(0,n.createAsyncMiddleware)(async(n,r,a)=>{let l;if(n.skipCache)return a();let u=i[(0,o.cacheTypeForMethod)(n.method)];if(!u||!u.canCacheRequest(n))return a();let d=(0,o.blockTagForRequest)(n),c=d&&"string"==typeof d?d:"latest";if(s("blockTag = %o, req = %o",c,n),"earliest"===c)l="0x00";else if("latest"===c){s("Fetching latest block number to determine cache key");let i=await e.getLatestBlock();s("Clearing values stored under block numbers before %o",i),t.clearBefore(i),l=i}else l=c;let h=await u.get(n,l);void 0===h?(s("No cache stored under block number %o, carrying request forward",l),await a(),s("Populating cache with",r),await u.set(n,l,r.result)):(s("Cache hit, reusing cache result stored under block number %o",l),r.result=h)})}},43601:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createBlockRefRewriteMiddleware=void 0;let n=i(63163),r=i(62836);t.createBlockRefRewriteMiddleware=function({blockTracker:e}={}){if(!e)throw Error('BlockRefRewriteMiddleware - mandatory "blockTracker" option is missing.');return(0,n.createAsyncMiddleware)(async(t,i,n)=>{let o=(0,r.blockTagParamIndex)(t.method);if(void 0===o||"latest"!==(Array.isArray(t.params)&&t.params[o]?t.params[o]:"latest"))return n();let s=await e.getLatestBlock();return Array.isArray(t.params)&&(t.params[o]=s),n()})}},5214:function(e,t,i){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.createBlockRefMiddleware=void 0;let r=i(63163),o=i(63951),s=n(i(88023)),a=i(47045),l=i(62836),u=(0,a.createModuleLogger)(a.projectLogger,"block-ref");t.createBlockRefMiddleware=function({provider:e,blockTracker:t}={}){if(!e)throw Error('BlockRefMiddleware - mandatory "provider" option is missing.');if(!t)throw Error('BlockRefMiddleware - mandatory "blockTracker" option is missing.');return(0,r.createAsyncMiddleware)(async(i,n,r)=>{var a;let d=(0,l.blockTagParamIndex)(i.method);if(void 0===d)return r();if("latest"!==(Array.isArray(i.params)&&null!==(a=i.params[d])&&void 0!==a?a:"latest"))return u('blockRef is not "latest", carrying request forward'),r();let c=await t.getLatestBlock();u(`blockRef is "latest", setting param ${d} to latest block ${c}`);let h=(0,o.klona)(i);Array.isArray(h.params)&&(h.params[d]=c),u("Performing another request %o",h);let f=await (0,s.default)(e.sendAsync).call(e,h);n.result=f.result,n.error=f.error})}},54006:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createBlockTrackerInspectorMiddleware=void 0;let n=i(63163),r=i(47045),o=(0,r.createModuleLogger)(r.projectLogger,"block-tracker-inspector"),s=["eth_getTransactionByHash","eth_getTransactionReceipt"];t.createBlockTrackerInspectorMiddleware=function({blockTracker:e}){return(0,n.createAsyncMiddleware)(async(t,i,n)=>{if(!s.includes(t.method))return n();await n();let r=function(e){let{result:t}=e;if(t&&"object"==typeof t&&Object.hasOwnProperty.call(t,"blockNumber")&&"string"==typeof t.blockNumber)return t.blockNumber}(i);r&&(o("res.result.blockNumber exists, proceeding. res = %o",i),Number.parseInt(r,16)>Number.parseInt(e.getCurrentBlock(),16)&&(o("blockNumber from response is greater than current block number, refreshing current block number"),await e.checkForLatestBlock()))})}},36477:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createFetchConfigFromReq=t.createFetchMiddleware=void 0;let n=i(63163),r=i(30774),o=i(50355),s=["Gateway timeout","ETIMEDOUT","failed to parse response body","Failed to fetch"];function a({btoa:e,req:t,rpcUrl:i,originHttpHeaderKey:n}){let r;let o=new URL(i),s=(r=o.protocol+`//${o.hostname}`,o.port&&(r+=`:${o.port}`),r+=`${o.pathname}${o.search}`),a={id:t.id,jsonrpc:t.jsonrpc,method:t.method,params:t.params},l=t.origin,u={method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(a)};if(o.username&&o.password){let t=e(`${o.username}:${o.password}`);u.headers.Authorization=`Basic ${t}`}return n&&l&&(u.headers[n]=l),{fetchUrl:s,fetchParams:u}}t.createFetchMiddleware=function({btoa:e,fetch:t,rpcUrl:i,originHttpHeaderKey:l}){return(0,n.createAsyncMiddleware)(async(n,u,d)=>{let{fetchUrl:c,fetchParams:h}=a({btoa:e,req:n,rpcUrl:i,originHttpHeaderKey:l});for(let e=0;e<5;e++){try{let e;let i=await t(c,h);!function(e){switch(e.status){case 405:throw r.rpcErrors.methodNotFound();case 418:throw r.rpcErrors.internal({message:"Request is being rate limited."});case 503:case 504:throw function(){let e="Gateway timeout. The request took too long to process. ";return e+="This can happen when querying logs over too wide a block range.",r.rpcErrors.internal({message:e})}()}}(i);let n=await i.text();try{e=JSON.parse(n)}catch(e){throw Error(`FetchMiddleware - failed to parse response body: "${n}"`)}let o=function(e,t){if(200!==e.status)throw r.rpcErrors.internal({message:`Non-200 status code: '${e.status}'`,data:t});if(t.error)throw r.rpcErrors.internal({data:t.error});return t.result}(i,e);u.result=o;return}catch(t){let e=t.toString();if(!s.some(t=>e.includes(t)))throw t}await (0,o.timeout)(1e3)}})},t.createFetchConfigFromReq=a},69234:function(e,t,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i);var r=Object.getOwnPropertyDescriptor(t,i);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,n,r)}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),r=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||n(t,e,i)};Object.defineProperty(t,"__esModule",{value:!0}),r(i(7986),t),r(i(43601),t),r(i(5214),t),r(i(54006),t),r(i(36477),t),r(i(65421),t),r(i(60093),t),r(i(56962),t),r(i(41498),t)},65421:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createInflightCacheMiddleware=void 0;let n=i(63163),r=i(63951),o=i(47045),s=i(62836),a=(0,o.createModuleLogger)(o.projectLogger,"inflight-cache");t.createInflightCacheMiddleware=function(){let e={};return(0,n.createAsyncMiddleware)(async(i,n,r)=>{var o;if(i.skipCache)return r();let l=(0,s.cacheIdentifierForRequest)(i);if(!l)return a("Request is not cacheable, proceeding. req = %o",i),r();let u=e[l];if(u){a("Running %i handler(s) for request %o",u.length,i),await t(n,u);return}u=[],e[l]=u,a("Carrying original request forward %o",i),await r(),delete e[l],a("Running %i collected handler(s) for request %o",u.length,i),o=u,setTimeout(()=>{o.forEach(e=>{try{e(n)}catch(e){console.error(e)}})})});async function t(e,t){let i,n;let{resolve:o,promise:s}=(n=new Promise(e=>{i=e}),{resolve:i,promise:n});return t.push(t=>{e.result=(0,r.klona)(t.result),e.error=(0,r.klona)(t.error),o()}),s}}},47045:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createModuleLogger=t.projectLogger=void 0;let n=i(45554);Object.defineProperty(t,"createModuleLogger",{enumerable:!0,get:function(){return n.createModuleLogger}}),t.projectLogger=(0,n.createProjectLogger)("eth-json-rpc-middleware")},60093:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ethersProviderAsMiddleware=t.providerAsMiddleware=void 0,t.providerAsMiddleware=function(e){return(t,i,n,r)=>{e.sendAsync(t,(e,t)=>e instanceof Error?r(e):(Object.assign(i,t),r()))}},t.ethersProviderAsMiddleware=function(e){return(t,i,n,r)=>{e.send(t,(e,t)=>e?r(e):(Object.assign(i,t),r()))}}},56962:function(e,t,i){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.createRetryOnEmptyMiddleware=void 0;let r=i(63163),o=i(63951),s=n(i(88023)),a=i(47045),l=i(62836),u=i(22644),d=i(50355),c=(0,a.createModuleLogger)(a.projectLogger,"retry-on-empty"),h=[void 0,null,""];async function f(e,t){for(let i=0;i{let a=(0,l.blockTagParamIndex)(i.method);if(void 0===a)return r();let u=Array.isArray(i.params)&&i.params[a]?i.params[a]:void 0;if(void 0===u&&(u="latest"),["latest","pending"].includes(u))return r();let d=Number.parseInt(u.slice(2),16);if(Number.isNaN(d))return r();let p=Number.parseInt((await t.getLatestBlock()).slice(2),16);if(d>p)return c("Requested block number %o is higher than latest block number %o, falling through to original request",d,p),r();c("Requested block number %o is not higher than latest block number %o, trying request until non-empty response is received",d,p);let g=(0,o.klona)(i),m=await f(10,async()=>{c("Performing request %o",g);let t=await (0,s.default)(e.sendAsync).call(e,g);if(c("Response is %o",t),h.includes(t.result))throw Error(`RetryOnEmptyMiddleware - empty response "${JSON.stringify(t)}" for request "${JSON.stringify(g)}"`);return t});c("Copying result %o and error %o",m.result,m.error),n.result=m.result,n.error=m.error})}},62836:(e,t,i)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.cacheTypeForMethod=t.blockTagParamIndex=t.blockTagForRequest=t.canCache=t.cacheIdentifierForRequest=t.CacheStrategy=void 0;let r=(0,i(27822).configure)({bigint:!1,circularValue:Error});function o(e){return a(e)!==n.Never}function s(e){switch(e){case"eth_getStorageAt":return 2;case"eth_getBalance":case"eth_getCode":case"eth_getTransactionCount":case"eth_call":return 1;case"eth_getBlockByNumber":return 0;default:return}}function a(e){switch(e){case"web3_clientVersion":case"web3_sha3":case"eth_protocolVersion":case"eth_getBlockTransactionCountByHash":case"eth_getUncleCountByBlockHash":case"eth_getCode":case"eth_getBlockByHash":case"eth_getTransactionByHash":case"eth_getTransactionByBlockHashAndIndex":case"eth_getTransactionReceipt":case"eth_getUncleByBlockHashAndIndex":case"eth_getCompilers":case"eth_compileLLL":case"eth_compileSolidity":case"eth_compileSerpent":case"shh_version":case"test_permaCache":return n.Permanent;case"eth_getBlockByNumber":case"eth_getBlockTransactionCountByNumber":case"eth_getUncleCountByBlockNumber":case"eth_getTransactionByBlockNumberAndIndex":case"eth_getUncleByBlockNumberAndIndex":case"test_forkCache":return n.Fork;case"eth_gasPrice":case"eth_blockNumber":case"eth_getBalance":case"eth_getStorageAt":case"eth_getTransactionCount":case"eth_call":case"eth_estimateGas":case"eth_getFilterLogs":case"eth_getLogs":case"test_blockCache":return n.Block;default:return n.Never}}!function(e){e.Block="block",e.Fork="fork",e.Never="never",e.Permanent="perma"}(n=t.CacheStrategy||(t.CacheStrategy={})),t.cacheIdentifierForRequest=function(e,t){var i;let n=t?function(e){if(!e.params)return[];let t=s(e.method);return void 0===t||!Array.isArray(e.params)||t>=e.params.length?e.params:"eth_getBlockByNumber"===e.method?e.params.slice(1):e.params.slice(0,t)}(e):null!==(i=e.params)&&void 0!==i?i:[];return o(e.method)?`${e.method}:${r(n)}`:null},t.canCache=o,t.blockTagForRequest=function(e){if(!e.params)return;let t=s(e.method);if(void 0!==t&&Array.isArray(e.params)&&!(t>=e.params.length))return e.params[t]},t.blockTagParamIndex=s,t.cacheTypeForMethod=a},22644:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isExecutionRevertedError=void 0;let n=i(30774),r=i(45554);t.isExecutionRevertedError=function(e){return(0,r.isJsonRpcError)(e)&&e.code===n.errorCodes.rpc.invalidInput&&"execution reverted"===e.message}},50355:(e,t)=>{"use strict";async function i(e){return new Promise(t=>setTimeout(t,e))}Object.defineProperty(t,"__esModule",{value:!0}),t.timeout=void 0,t.timeout=i},41498:function(e,t,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i);var r=Object.getOwnPropertyDescriptor(t,i);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,n,r)}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.createWalletMiddleware=void 0;let s=o(i(50539)),a=i(63163),l=i(30774);function u(e){return 42===e.length}t.createWalletMiddleware=function({getAccounts:e,processDecryptMessage:t,processEncryptionPublicKey:i,processEthSignMessage:n,processPersonalMessage:r,processTransaction:o,processSignTransaction:d,processTypedMessage:c,processTypedMessageV3:h,processTypedMessageV4:f}){if(!e)throw Error("opts.getAccounts is required");return(0,a.createScaffoldMiddleware)({eth_accounts:(0,a.createAsyncMiddleware)(p),eth_coinbase:(0,a.createAsyncMiddleware)(g),eth_sendTransaction:(0,a.createAsyncMiddleware)(m),eth_signTransaction:(0,a.createAsyncMiddleware)(v),eth_sign:(0,a.createAsyncMiddleware)(b),eth_signTypedData:(0,a.createAsyncMiddleware)(y),eth_signTypedData_v3:(0,a.createAsyncMiddleware)(_),eth_signTypedData_v4:(0,a.createAsyncMiddleware)(w),personal_sign:(0,a.createAsyncMiddleware)(C),eth_getEncryptionPublicKey:(0,a.createAsyncMiddleware)(x),eth_decrypt:(0,a.createAsyncMiddleware)(k),personal_ecRecover:(0,a.createAsyncMiddleware)(S)});async function p(t,i){i.result=await e(t)}async function g(t,i){let n=await e(t);i.result=n[0]||null}async function m(e,t){if(!o)throw l.rpcErrors.methodNotSupported();if(!e.params||!Array.isArray(e.params)||!(e.params.length>=1))throw l.rpcErrors.invalidInput();let i=e.params[0],n=Object.assign(Object.assign({},i),{from:await E((null==i?void 0:i.from)||"",e)});t.result=await o(n,e)}async function v(e,t){if(!d)throw l.rpcErrors.methodNotSupported();if(!e.params||!Array.isArray(e.params)||!(e.params.length>=1))throw l.rpcErrors.invalidInput();let i=e.params[0],n=Object.assign(Object.assign({},i),{from:await E((null==i?void 0:i.from)||"",e)});t.result=await d(n,e)}async function b(e,t){if(!n)throw l.rpcErrors.methodNotSupported();if(!(null==e?void 0:e.params)||!Array.isArray(e.params)||!(e.params.length>=2))throw l.rpcErrors.invalidInput();let i=e.params,r=await E(i[0],e),o=i[1],s=Object.assign(Object.assign({},i[2]||{}),{from:r,data:o});t.result=await n(s,e)}async function y(e,t){if(!c)throw l.rpcErrors.methodNotSupported();if(!(null==e?void 0:e.params)||!Array.isArray(e.params)||!(e.params.length>=2))throw l.rpcErrors.invalidInput();let i=e.params,n=i[0],r=await E(i[1],e),o=Object.assign(Object.assign({},i[2]||{}),{from:r,data:n});t.result=await c(o,e,"V1")}async function _(e,t){if(!h)throw l.rpcErrors.methodNotSupported();if(!(null==e?void 0:e.params)||!Array.isArray(e.params)||!(e.params.length>=2))throw l.rpcErrors.invalidInput();let i=e.params,n=await E(i[0],e),r=i[1];t.result=await h({data:r,from:n,version:"V3"},e,"V3")}async function w(e,t){if(!f)throw l.rpcErrors.methodNotSupported();if(!(null==e?void 0:e.params)||!Array.isArray(e.params)||!(e.params.length>=2))throw l.rpcErrors.invalidInput();let i=e.params,n=await E(i[0],e),r=i[1];t.result=await f({data:r,from:n,version:"V4"},e,"V4")}async function C(e,t){let i,n;if(!r)throw l.rpcErrors.methodNotSupported();if(!(null==e?void 0:e.params)||!Array.isArray(e.params)||!(e.params.length>=2))throw l.rpcErrors.invalidInput();let o=e.params,s=o[0],a=o[1],d=o[2]||{};if(u(s)&&!u(a)){let e="The eth_personalSign method requires params ordered ";e+="[message, address]. This was previously handled incorrectly, and has been corrected automatically. Please switch this param order for smooth behavior in the future.",t.warning=e,i=s,n=a}else n=s,i=a;i=await E(i,e);let c=Object.assign(Object.assign({},d),{from:i,data:n});t.result=await r(c,e)}async function S(e,t){if(!(null==e?void 0:e.params)||!Array.isArray(e.params)||!(e.params.length>=2))throw l.rpcErrors.invalidInput();let i=e.params,n=i[0],r=i[1],o=s.recoverPersonalSignature({data:n,signature:r});t.result=o}async function x(e,t){if(!i)throw l.rpcErrors.methodNotSupported();if(!(null==e?void 0:e.params)||!Array.isArray(e.params)||!(e.params.length>=1))throw l.rpcErrors.invalidInput();let n=await E(e.params[0],e);t.result=await i(n,e)}async function k(e,i){if(!t)throw l.rpcErrors.methodNotSupported();if(!(null==e?void 0:e.params)||!Array.isArray(e.params)||!(e.params.length>=1))throw l.rpcErrors.invalidInput();let n=e.params,r=n[0],o=await E(n[1],e),s=Object.assign(Object.assign({},n[2]||{}),{from:o,data:r});i.result=await t(s,e)}async function E(t,i){if("string"==typeof t&&t.length>0&&u(t)){let n=(await e(i)).map(e=>e.toLowerCase()),r=t.toLowerCase();if(n.includes(r))return r;throw l.providerErrors.unauthorized()}throw l.rpcErrors.invalidParams({message:"Invalid parameters: must provide an Ethereum address."})}}},88023:e=>{"use strict";let t=(e,t,i,n)=>function(...r){return new t.promiseModule((o,s)=>{t.multiArgs?r.push((...e)=>{t.errorFirst?e[0]?s(e):(e.shift(),o(e)):o(e)}):t.errorFirst?r.push((e,t)=>{e?s(e):o(t)}):r.push(o);let a=this===i?n:this;Reflect.apply(e,a,r)})},i=new WeakMap;e.exports=(e,n)=>{n={exclude:[/.+(?:Sync|Stream)$/],errorFirst:!0,promiseModule:Promise,...n};let r=typeof e;if(!(null!==e&&("object"===r||"function"===r)))throw TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${null===e?"null":r}\``);let o=(e,t)=>{let r=i.get(e);if(r||(r={},i.set(e,r)),t in r)return r[t];let o=e=>"string"==typeof e||"symbol"==typeof t?t===e:e.test(t),s=Reflect.getOwnPropertyDescriptor(e,t),a=void 0===s||s.writable||s.configurable,l=(n.include?n.include.some(o):!n.exclude.some(o))&&a;return r[t]=l,l},s=new WeakMap,a=new Proxy(e,{apply(e,i,r){let o=s.get(e);if(o)return Reflect.apply(o,i,r);let l=n.excludeMain?e:t(e,n,a,e);return s.set(e,l),Reflect.apply(l,i,r)},get(e,i){let r=e[i];if(!o(e,i)||r===Function.prototype[i])return r;let l=s.get(r);if(l)return l;if("function"==typeof r){let i=t(r,n,a,e);return s.set(r,i),i}return r}});return a}},92517:function(e,t,i){"use strict";var n=i(48834).Buffer,r=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i);var r=Object.getOwnPropertyDescriptor(t,i);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,n,r)}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&r(t,e,i);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.getEncryptionPublicKey=t.decryptSafely=t.decrypt=t.encryptSafely=t.encrypt=void 0;let a=s(i(10717)),l=s(i(251)),u=i(65491);function d({publicKey:e,data:t,version:i}){if((0,u.isNullish)(e))throw Error("Missing publicKey parameter");if((0,u.isNullish)(t))throw Error("Missing data parameter");if((0,u.isNullish)(i))throw Error("Missing version parameter");if("x25519-xsalsa20-poly1305"===i){let i;if("string"!=typeof t)throw Error("Message data must be given as a string");let n=a.box.keyPair();try{i=l.decodeBase64(e)}catch(e){throw Error("Bad public key")}let r=l.decodeUTF8(t),o=a.randomBytes(a.box.nonceLength),s=a.box(r,o,i,n.secretKey);return{version:"x25519-xsalsa20-poly1305",nonce:l.encodeBase64(o),ephemPublicKey:l.encodeBase64(n.publicKey),ciphertext:l.encodeBase64(s)}}throw Error("Encryption type/version not supported")}function c({encryptedData:e,privateKey:t}){if((0,u.isNullish)(e))throw Error("Missing encryptedData parameter");if((0,u.isNullish)(t))throw Error("Missing privateKey parameter");if("x25519-xsalsa20-poly1305"===e.version){let i=h(t),n=a.box.keyPair.fromSecretKey(i).secretKey,r=l.decodeBase64(e.nonce),o=l.decodeBase64(e.ciphertext),s=l.decodeBase64(e.ephemPublicKey),u=a.box.open(o,r,s,n);try{if(!u)throw Error();let e=l.encodeUTF8(u);if(!e)throw Error();return e}catch(e){if(e&&"string"==typeof e.message&&e.message.length)throw Error(`Decryption failed: ${e.message}`);throw Error("Decryption failed.")}}throw Error("Encryption type/version not supported.")}function h(e){let t=n.from(e,"hex").toString("base64");return l.decodeBase64(t)}t.encrypt=d,t.encryptSafely=function({publicKey:e,data:t,version:i}){if((0,u.isNullish)(e))throw Error("Missing publicKey parameter");if((0,u.isNullish)(t))throw Error("Missing data parameter");if((0,u.isNullish)(i))throw Error("Missing version parameter");if("object"==typeof t&&t&&"toJSON"in t)throw Error("Cannot encrypt with toJSON property. Please remove toJSON property");let r={data:t,padding:""},o=n.byteLength(JSON.stringify(r),"utf-8")%2048,s=0;return o>0&&(s=2048-o-16),r.padding="0".repeat(s),d({publicKey:e,data:JSON.stringify(r),version:i})},t.decrypt=c,t.decryptSafely=function({encryptedData:e,privateKey:t}){if((0,u.isNullish)(e))throw Error("Missing encryptedData parameter");if((0,u.isNullish)(t))throw Error("Missing privateKey parameter");return JSON.parse(c({encryptedData:e,privateKey:t})).data},t.getEncryptionPublicKey=function(e){let t=h(e),i=a.box.keyPair.fromSecretKey(t).publicKey;return l.encodeBase64(i)}},50539:function(e,t,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i);var r=Object.getOwnPropertyDescriptor(t,i);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,n,r)}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),r=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||n(t,e,i)};Object.defineProperty(t,"__esModule",{value:!0}),t.normalize=t.concatSig=void 0,r(i(91695),t),r(i(5190),t),r(i(92517),t);var o=i(65491);Object.defineProperty(t,"concatSig",{enumerable:!0,get:function(){return o.concatSig}}),Object.defineProperty(t,"normalize",{enumerable:!0,get:function(){return o.normalize}})},91695:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extractPublicKey=t.recoverPersonalSignature=t.personalSign=void 0;let n=i(45372),r=i(65491);function o(e,t){let i=(0,n.hashPersonalMessage)((0,r.legacyToBuffer)(e));return(0,r.recoverPublicKey)(i,t)}t.personalSign=function({privateKey:e,data:t}){if((0,r.isNullish)(t))throw Error("Missing data parameter");if((0,r.isNullish)(e))throw Error("Missing privateKey parameter");let i=(0,r.legacyToBuffer)(t),o=(0,n.hashPersonalMessage)(i),s=(0,n.ecsign)(o,e);return(0,r.concatSig)((0,n.toBuffer)(s.v),s.r,s.s)},t.recoverPersonalSignature=function({data:e,signature:t}){if((0,r.isNullish)(e))throw Error("Missing data parameter");if((0,r.isNullish)(t))throw Error("Missing signature parameter");let i=o(e,t),s=(0,n.publicToAddress)(i);return(0,n.bufferToHex)(s)},t.extractPublicKey=function({data:e,signature:t}){if((0,r.isNullish)(e))throw Error("Missing data parameter");if((0,r.isNullish)(t))throw Error("Missing signature parameter");return`0x${o(e,t).toString("hex")}`}},5190:(e,t,i)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.recoverTypedSignature=t.signTypedData=t.typedSignatureHash=t.TypedDataUtils=t.TYPED_MESSAGE_SCHEMA=t.SignTypedDataVersion=void 0;let r=i(45372),o=i(40260),s=i(84206),a=i(92313),l=i(45554),u=i(1115),d=i(65491);function c(e,t){if(Object.keys(n).includes(e)){if(t&&!t.includes(e))throw Error(`SignTypedDataVersion not allowed: '${e}'. Allowed versions are: ${t.join(", ")}`)}else throw Error(`Invalid version: '${e}'`)}function h(e,t){(0,l.assert)(null!==t,`Unable to encode value: Invalid number. Expected a valid number value, but received "${t}".`);let i=BigInt(t),n=(0,s.getLength)(e),r=BigInt(2)**BigInt(n)-BigInt(1);return(0,l.assert)(i>=-r&&i<=r,`Unable to encode value: Number "${t}" is out of range for type "${e}".`),i}function f(e,t,i,s){c(s,[n.V3,n.V4]);let d=["bytes32"],p=[v(e,i)];for(let g of i[e]){if(s===n.V3&&void 0===t[g.name])continue;let[e,m]=function e(t,i,s,d,p){if(c(p,[n.V3,n.V4]),void 0!==t[s])return["bytes32",p===n.V4&&null==d?"0x0000000000000000000000000000000000000000000000000000000000000000":(0,r.arrToBufArr)((0,u.keccak256)(f(s,d,t,p)))];if("function"===s)throw Error('Unsupported or invalid type: "function"');if(void 0===d)throw Error(`missing value for field ${i} of type ${s}`);if("address"===s){if("number"==typeof d)return["address",(0,a.padStart)((0,l.numberToBytes)(d),20)];if((0,l.isStrictHexString)(d))return["address",(0,l.add0x)(d)];if("string"==typeof d)return["address",(function(e){let t=BigInt(0);for(let i=0;i=49?t+=n-BigInt(49)+BigInt(10):n>=17?t+=n-BigInt(17)+BigInt(10):t+=n}return(0,a.padStart)((0,l.bigIntToBytes)(t),20)})(d).subarray(0,20)]}if("bool"===s)return["bool",!!d];if("bytes"===s)return"number"==typeof d?d=(0,l.numberToBytes)(d):(0,l.isStrictHexString)(d)||"0x"===d?d=(0,l.hexToBytes)(d):"string"==typeof d&&(d=(0,l.stringToBytes)(d)),["bytes32",(0,r.arrToBufArr)((0,u.keccak256)(d))];if(s.startsWith("bytes")&&"bytes"!==s&&!s.includes("["))return"number"==typeof d?d<0?["bytes32",new Uint8Array(32)]:["bytes32",(0,l.bigIntToBytes)(BigInt(d))]:(0,l.isStrictHexString)(d)?["bytes32",(0,l.hexToBytes)(d)]:["bytes32",d];if(s.startsWith("int")&&!s.includes("[")){let e=h(s,d);return e>=BigInt(0)?["uint256",e]:["int256",e]}if("string"===s)return d="number"==typeof d?(0,l.numberToBytes)(d):(0,l.stringToBytes)(null!=d?d:""),["bytes32",(0,r.arrToBufArr)((0,u.keccak256)(d))];if(s.endsWith("]")){if(p===n.V3)throw Error("Arrays are unimplemented in encodeData; use V4 extension");let a=s.slice(0,s.lastIndexOf("[")),l=d.map(n=>e(t,i,a,n,p));return["bytes32",(0,r.arrToBufArr)((0,u.keccak256)((0,o.encode)(l.map(([e])=>e),l.map(([,e])=>e))))]}return[s,d]}(i,g.name,g.type,t[g.name],s);d.push(e),p.push(m)}return(0,r.arrToBufArr)((0,o.encode)(d,p))}function p(e,t){let i="",n=g(e,t);for(let r of(n.delete(e),[e,...Array.from(n).sort()])){if(!t[r])throw Error(`No type definition specified: ${r}`);i+=`${r}(${t[r].map(({name:e,type:t})=>`${t} ${e}`).join(",")})`}return i}function g(e,t,i=new Set){if("string"!=typeof e)throw Error(`Invalid findTypeDependencies input ${JSON.stringify(e)}`);let n=e.match(/^\w*/u);if([e]=n,i.has(e)||void 0===t[e])return i;for(let n of(i.add(e),t[e]))g(n.type,t,i);return i}function m(e,t,i,o){c(o,[n.V3,n.V4]);let s=f(e,t,i,o),a=(0,u.keccak256)(s);return(0,r.arrToBufArr)(a)}function v(e,t){let i=(0,l.stringToBytes)(p(e,t));return(0,r.arrToBufArr)((0,u.keccak256)(i))}function b(e){let i={};for(let n in t.TYPED_MESSAGE_SCHEMA.properties)e[n]&&(i[n]=e[n]);return"types"in i&&(i.types=Object.assign({EIP712Domain:[]},i.types)),i}function y(e,t){c(t,[n.V3,n.V4]);let i=b(e),{domain:r}=i;return m("EIP712Domain",r,{EIP712Domain:i.types.EIP712Domain},t)}function _(e){let t=Error("Expect argument to be non-empty array");if("object"!=typeof e||!("length"in e)||!e.length)throw t;let i=e.map(({name:e,type:t,value:i})=>{if("address[]"===t)return{name:e,type:"bytes32[]",value:i.map(e=>"number"==typeof e?(0,a.padStart)((0,l.numberToBytes)(e),32):(0,l.isStrictHexString)(e)?(0,a.padStart)((0,l.hexToBytes)(e).subarray(0,32),32):e instanceof Uint8Array?(0,a.padStart)(e.subarray(0,32),32):e)};if(t.startsWith("int")&&(0,s.isArrayType)(t)){let[n,r]=(0,s.getArrayType)(t);return{name:e,type:`bytes32[${null!=r?r:""}]`,value:i.map(e=>{if("string"==typeof e||"number"==typeof e||"bigint"==typeof e){let t=h(n,e);if(t>=BigInt(0))return(0,a.padStart)((0,l.bigIntToBytes)(t),32);let i=BigInt.asIntN((0,s.getLength)(n),t);return(0,l.signedBigIntToBytes)(i,32)}return e})}}return{name:e,type:t,value:function e(t,i){if((0,s.isArrayType)(t)&&Array.isArray(i)){let[n]=(0,s.getArrayType)(t);return i.map(t=>e(n,t))}if("address"===t){if("number"==typeof i)return(0,a.padStart)((0,l.numberToBytes)(i),20);if((0,l.isStrictHexString)(i))return(0,a.padStart)((0,l.hexToBytes)(i).subarray(0,20),20);if(i instanceof Uint8Array)return(0,a.padStart)(i.subarray(0,20),20)}if("bool"===t)return!!i;if(t.startsWith("bytes")&&"bytes"!==t){let e=(0,s.getByteLength)(t);if("number"==typeof i)return i<0?new Uint8Array:(0,l.numberToBytes)(i).subarray(0,e);if((0,l.isStrictHexString)(i))return(0,l.hexToBytes)(i).subarray(0,e);if(i instanceof Uint8Array)return i.subarray(0,e)}return t.startsWith("uint")&&"number"==typeof i?Math.abs(i):t.startsWith("int")&&"number"==typeof i?BigInt.asIntN((0,s.getLength)(t),BigInt(i)):i}(t,i)}}),n=i.map(e=>"bytes"!==e.type?e.value:(0,d.legacyToBuffer)(e.value)),c=i.map(e=>{if("function"===e.type)throw Error('Unsupported or invalid type: "function"');return e.type}),f=e.map(e=>{if(!e.name)throw t;return`${e.type} ${e.name}`});return(0,r.arrToBufArr)((0,u.keccak256)((0,o.encodePacked)(["bytes32","bytes32"],[(0,u.keccak256)((0,o.encodePacked)(["string[]"],[f],!0)),(0,u.keccak256)((0,o.encodePacked)(c,n,!0))])))}!function(e){e.V1="V1",e.V3="V3",e.V4="V4"}(n=t.SignTypedDataVersion||(t.SignTypedDataVersion={})),t.TYPED_MESSAGE_SCHEMA={type:"object",properties:{types:{type:"object",additionalProperties:{type:"array",items:{type:"object",properties:{name:{type:"string"},type:{type:"string"}},required:["name","type"]}}},primaryType:{type:"string"},domain:{type:"object"},message:{type:"object"}},required:["types","primaryType","domain","message"]},t.TypedDataUtils={encodeData:f,encodeType:p,findTypeDependencies:g,hashStruct:m,hashType:v,sanitizeData:b,eip712Hash:function(e,t){c(t,[n.V3,n.V4]);let i=b(e),o=[(0,l.hexToBytes)("1901")];return o.push(y(e,t)),"EIP712Domain"!==i.primaryType&&o.push(m(i.primaryType,i.message,i.types,t)),(0,r.arrToBufArr)((0,u.keccak256)((0,l.concatBytes)(o)))},eip712DomainHash:y},t.typedSignatureHash=function(e){let t=_(e);return(0,l.bytesToHex)(t)},t.signTypedData=function({privateKey:e,data:i,version:o}){if(c(o),(0,d.isNullish)(i))throw Error("Missing data parameter");if((0,d.isNullish)(e))throw Error("Missing private key parameter");let s=o===n.V1?_(i):t.TypedDataUtils.eip712Hash(i,o),a=(0,r.ecsign)(s,e);return(0,d.concatSig)((0,r.arrToBufArr)((0,l.bigIntToBytes)(a.v)),a.r,a.s)},t.recoverTypedSignature=function({data:e,signature:i,version:o}){if(c(o),(0,d.isNullish)(e))throw Error("Missing data parameter");if((0,d.isNullish)(i))throw Error("Missing signature parameter");let s=o===n.V1?_(e):t.TypedDataUtils.eip712Hash(e,o),a=(0,d.recoverPublicKey)(s,i),u=(0,r.publicToAddress)(a);return(0,l.bytesToHex)(u)}},65491:(e,t,i)=>{"use strict";var n=i(48834).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.normalize=t.recoverPublicKey=t.concatSig=t.legacyToBuffer=t.isNullish=t.padWithZeroes=void 0;let r=i(45372),o=i(45554);function s(e,t){if(""!==e&&!/^[a-f0-9]+$/iu.test(e))throw Error(`Expected an unprefixed hex string. Received: ${e}`);if(t<0)throw Error(`Expected a non-negative integer target length. Received: ${t}`);return String.prototype.padStart.call(e,t,"0")}function a(e){return null==e}t.padWithZeroes=s,t.isNullish=a,t.legacyToBuffer=function(e){return"string"!=typeof e||(0,r.isHexString)(e)?(0,r.toBuffer)(e):n.from(e)},t.concatSig=function(e,t,i){let n=(0,r.fromSigned)(t),a=(0,r.fromSigned)(i),l=(0,r.bufferToInt)(e),u=s((0,r.toUnsigned)(n).toString("hex"),64),d=s((0,r.toUnsigned)(a).toString("hex"),64),c=(0,o.remove0x)((0,o.numberToHex)(l));return(0,o.add0x)(u.concat(d,c))},t.recoverPublicKey=function(e,t){let i=(0,r.fromRpcSig)(t);return(0,r.ecrecover)(e,i.v,i.r,i.s)},t.normalize=function(e){if(!a(e)){if("number"==typeof e){if(e<0)return"0x";let t=(0,o.numberToBytes)(e);e=(0,o.bytesToHex)(t)}if("string"!=typeof e){let t="eth-sig-util.normalize() requires hex string or integer input.";throw Error(t+=` received ${typeof e}: ${e}`)}return(0,o.add0x)(e.toLowerCase())}}},97817:(e,t,i)=>{"use strict";var n=i(7179),r=i(13367),o=new n(0),s=new n(-1),a={noether:"0",wei:"1",kwei:"1000",Kwei:"1000",babbage:"1000",femtoether:"1000",mwei:"1000000",Mwei:"1000000",lovelace:"1000000",picoether:"1000000",gwei:"1000000000",Gwei:"1000000000",shannon:"1000000000",nanoether:"1000000000",nano:"1000000000",szabo:"1000000000000",microether:"1000000000000",micro:"1000000000000",finney:"1000000000000000",milliether:"1000000000000000",milli:"1000000000000000",ether:"1000000000000000000",kether:"1000000000000000000000",grand:"1000000000000000000000",mether:"1000000000000000000000000",gether:"1000000000000000000000000000",tether:"1000000000000000000000000000000"};function l(e){var t=a[e?e.toLowerCase():"ether"];if("string"!=typeof t)throw Error("[ethjs-unit] the unit provided "+e+" doesn't exists, please use the one of the following units "+JSON.stringify(a,null,2));return new n(t,10)}function u(e){if("string"==typeof e){if(!e.match(/^-?[0-9.]+$/))throw Error("while converting number to string, invalid number value '"+e+"', should be a number matching (^-?[0-9.]+).");return e}if("number"==typeof e)return String(e);if("object"==typeof e&&e.toString&&(e.toTwos||e.dividedToIntegerBy))return e.toPrecision?String(e.toPrecision()):e.toString(10);throw Error("while converting number to string, invalid number value '"+e+"' type "+typeof e+".")}e.exports={unitMap:a,numberToString:u,getValueOfUnit:l,fromWei:function(e,t,i){var n=r(e),u=n.lt(o),d=l(t),c=a[t].length-1||1,h=i||{};u&&(n=n.mul(s));for(var f=n.mod(d).toString(10);f.length2)throw Error("[ethjs-unit] while converting number "+e+" to wei, too many decimal points");var h=c[0],f=c[1];if(h||(h="0"),f||(f="0"),f.length>o)throw Error("[ethjs-unit] while converting number "+e+" to wei, too many decimal places");for(;f.length=49&&s<=54?n|=s-49+10:s>=17&&s<=22?n|=s-17+10:n|=15&s}return n}function a(e,t,i,n){for(var r=0,o=Math.min(e.length,i),s=t;s=49?r+=a-49+10:a>=17?r+=a-17+10:r+=a}return r}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return 0>e.cmp(t)?e:t},o.prototype._init=function(e,t,i){if("number"==typeof e)return this._initNumber(e,t,i);if("object"==typeof e)return this._initArray(e,t,i);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var r=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&r++,16===t?this._parseHex(e,r):this._parseBase(e,t,r),"-"===e[0]&&(this.negative=1),this.strip(),"le"===i&&this._initArray(this.toArray(),t,i)},o.prototype._initNumber=function(e,t,i){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),t,i)},o.prototype._initArray=function(e,t,i){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=Array(this.length);for(var r,o,s=0;s=0;s-=3)o=e[s]|e[s-1]<<8|e[s-2]<<16,this.words[r]|=o<>>26-a&67108863,(a+=24)>=26&&(a-=26,r++);else if("le"===i)for(s=0,r=0;s>>26-a&67108863,(a+=24)>=26&&(a-=26,r++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var i,n,r=0;r=t;r-=6)n=s(e,r,r+6),this.words[i]|=n<>>26-o&4194303,(o+=24)>=26&&(o-=26,i++);r+6!==t&&(n=s(e,t,r+6),this.words[i]|=n<>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,i){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=t)n++;n--,r=r/t|0;for(var o=e.length-i,s=o%n,l=Math.min(o,o-s)+i,u=0,d=i;d1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var l,u=["","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"],d=[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],c=[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];function h(e,t,i){i.negative=t.negative^e.negative;var n=e.length+t.length|0;i.length=n,n=n-1|0;var r=0|e.words[0],o=0|t.words[0],s=r*o,a=67108863&s,l=s/67108864|0;i.words[0]=a;for(var u=1;u>>26,c=67108863&l,h=Math.min(u,t.length-1),f=Math.max(0,u-e.length+1);f<=h;f++){var p=u-f|0;d+=(s=(r=0|e.words[p])*(o=0|t.words[f])+c)/67108864|0,c=67108863&s}i.words[u]=0|c,l=0|d}return 0!==l?i.words[u]=0|l:i.length--,i.strip()}o.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){i="";for(var i,r=0,o=0,s=0;s>>24-r&16777215)||s!==this.length-1?u[6-l.length]+l+i:l+i,(r+=2)>=26&&(r-=26,s--)}for(0!==o&&(i=o.toString(16)+i);i.length%t!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(e===(0|e)&&e>=2&&e<=36){var h=d[e],f=c[e];i="";var p=this.clone();for(p.negative=0;!p.isZero();){var g=p.modn(f).toString(e);i=(p=p.idivn(f)).isZero()?g+i:u[h-g.length]+g+i}for(this.isZero()&&(i="0"+i);i.length%t!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return n(void 0!==l),this.toArrayLike(l,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,i){var r,o,s=this.byteLength(),a=i||Math.max(1,s);n(s<=a,"byte array longer than desired length"),n(a>0,"Requested array length <= 0"),this.strip();var l=new e(a),u=this.clone();if("le"===t){for(o=0;!u.isZero();o++)r=u.andln(255),u.iushrn(8),l[o]=r;for(;o=4096&&(i+=13,t>>>=13),t>=64&&(i+=7,t>>>=7),t>=8&&(i+=4,t>>>=4),t>=2&&(i+=2,t>>>=2),i+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,i=0;return(8191&t)==0&&(i+=13,t>>>=13),(127&t)==0&&(i+=7,t>>>=7),(15&t)==0&&(i+=4,t>>>=4),(3&t)==0&&(i+=2,t>>>=2),(1&t)==0&&i++,i},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var i=0;ie.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){this.length>e.length?(t=this,i=e):(t=e,i=this);for(var t,i,n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),i=e%26;this._expand(t),i>0&&t--;for(var r=0;r0&&(this.words[r]=~this.words[r]&67108863>>26-i),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var i=e/26|0,r=e%26;return this._expand(i+1),t?this.words[i]=this.words[i]|1<e.length?(i=this,n=e):(i=e,n=this);for(var t,i,n,r=0,o=0;o>>26;for(;0!==r&&o>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,i,n=this.iadd(e);return e.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r=this.cmp(e);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(t=this,i=e):(t=e,i=this);for(var o=0,s=0;s>26,this.words[s]=67108863&n;for(;0!==o&&s>26,this.words[s]=67108863&n;if(0===o&&s>>13,f=0|s[1],p=8191&f,g=f>>>13,m=0|s[2],v=8191&m,b=m>>>13,y=0|s[3],_=8191&y,w=y>>>13,C=0|s[4],S=8191&C,x=C>>>13,k=0|s[5],E=8191&k,L=k>>>13,M=0|s[6],N=8191&M,D=M>>>13,A=0|s[7],T=8191&A,I=A>>>13,O=0|s[8],P=8191&O,R=O>>>13,F=0|s[9],B=8191&F,H=F>>>13,z=0|a[0],V=8191&z,j=z>>>13,W=0|a[1],U=8191&W,$=W>>>13,K=0|a[2],q=8191&K,G=K>>>13,Z=0|a[3],Y=8191&Z,J=Z>>>13,Q=0|a[4],X=8191&Q,ee=Q>>>13,et=0|a[5],ei=8191&et,en=et>>>13,er=0|a[6],eo=8191&er,es=er>>>13,ea=0|a[7],el=8191&ea,eu=ea>>>13,ed=0|a[8],ec=8191&ed,eh=ed>>>13,ef=0|a[9],ep=8191&ef,eg=ef>>>13;i.negative=e.negative^t.negative,i.length=19;var em=(u+(n=Math.imul(c,V))|0)+((8191&(r=(r=Math.imul(c,j))+Math.imul(h,V)|0))<<13)|0;u=((o=Math.imul(h,j))+(r>>>13)|0)+(em>>>26)|0,em&=67108863,n=Math.imul(p,V),r=(r=Math.imul(p,j))+Math.imul(g,V)|0,o=Math.imul(g,j);var ev=(u+(n=n+Math.imul(c,U)|0)|0)+((8191&(r=(r=r+Math.imul(c,$)|0)+Math.imul(h,U)|0))<<13)|0;u=((o=o+Math.imul(h,$)|0)+(r>>>13)|0)+(ev>>>26)|0,ev&=67108863,n=Math.imul(v,V),r=(r=Math.imul(v,j))+Math.imul(b,V)|0,o=Math.imul(b,j),n=n+Math.imul(p,U)|0,r=(r=r+Math.imul(p,$)|0)+Math.imul(g,U)|0,o=o+Math.imul(g,$)|0;var eb=(u+(n=n+Math.imul(c,q)|0)|0)+((8191&(r=(r=r+Math.imul(c,G)|0)+Math.imul(h,q)|0))<<13)|0;u=((o=o+Math.imul(h,G)|0)+(r>>>13)|0)+(eb>>>26)|0,eb&=67108863,n=Math.imul(_,V),r=(r=Math.imul(_,j))+Math.imul(w,V)|0,o=Math.imul(w,j),n=n+Math.imul(v,U)|0,r=(r=r+Math.imul(v,$)|0)+Math.imul(b,U)|0,o=o+Math.imul(b,$)|0,n=n+Math.imul(p,q)|0,r=(r=r+Math.imul(p,G)|0)+Math.imul(g,q)|0,o=o+Math.imul(g,G)|0;var ey=(u+(n=n+Math.imul(c,Y)|0)|0)+((8191&(r=(r=r+Math.imul(c,J)|0)+Math.imul(h,Y)|0))<<13)|0;u=((o=o+Math.imul(h,J)|0)+(r>>>13)|0)+(ey>>>26)|0,ey&=67108863,n=Math.imul(S,V),r=(r=Math.imul(S,j))+Math.imul(x,V)|0,o=Math.imul(x,j),n=n+Math.imul(_,U)|0,r=(r=r+Math.imul(_,$)|0)+Math.imul(w,U)|0,o=o+Math.imul(w,$)|0,n=n+Math.imul(v,q)|0,r=(r=r+Math.imul(v,G)|0)+Math.imul(b,q)|0,o=o+Math.imul(b,G)|0,n=n+Math.imul(p,Y)|0,r=(r=r+Math.imul(p,J)|0)+Math.imul(g,Y)|0,o=o+Math.imul(g,J)|0;var e_=(u+(n=n+Math.imul(c,X)|0)|0)+((8191&(r=(r=r+Math.imul(c,ee)|0)+Math.imul(h,X)|0))<<13)|0;u=((o=o+Math.imul(h,ee)|0)+(r>>>13)|0)+(e_>>>26)|0,e_&=67108863,n=Math.imul(E,V),r=(r=Math.imul(E,j))+Math.imul(L,V)|0,o=Math.imul(L,j),n=n+Math.imul(S,U)|0,r=(r=r+Math.imul(S,$)|0)+Math.imul(x,U)|0,o=o+Math.imul(x,$)|0,n=n+Math.imul(_,q)|0,r=(r=r+Math.imul(_,G)|0)+Math.imul(w,q)|0,o=o+Math.imul(w,G)|0,n=n+Math.imul(v,Y)|0,r=(r=r+Math.imul(v,J)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,J)|0,n=n+Math.imul(p,X)|0,r=(r=r+Math.imul(p,ee)|0)+Math.imul(g,X)|0,o=o+Math.imul(g,ee)|0;var ew=(u+(n=n+Math.imul(c,ei)|0)|0)+((8191&(r=(r=r+Math.imul(c,en)|0)+Math.imul(h,ei)|0))<<13)|0;u=((o=o+Math.imul(h,en)|0)+(r>>>13)|0)+(ew>>>26)|0,ew&=67108863,n=Math.imul(N,V),r=(r=Math.imul(N,j))+Math.imul(D,V)|0,o=Math.imul(D,j),n=n+Math.imul(E,U)|0,r=(r=r+Math.imul(E,$)|0)+Math.imul(L,U)|0,o=o+Math.imul(L,$)|0,n=n+Math.imul(S,q)|0,r=(r=r+Math.imul(S,G)|0)+Math.imul(x,q)|0,o=o+Math.imul(x,G)|0,n=n+Math.imul(_,Y)|0,r=(r=r+Math.imul(_,J)|0)+Math.imul(w,Y)|0,o=o+Math.imul(w,J)|0,n=n+Math.imul(v,X)|0,r=(r=r+Math.imul(v,ee)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,ee)|0,n=n+Math.imul(p,ei)|0,r=(r=r+Math.imul(p,en)|0)+Math.imul(g,ei)|0,o=o+Math.imul(g,en)|0;var eC=(u+(n=n+Math.imul(c,eo)|0)|0)+((8191&(r=(r=r+Math.imul(c,es)|0)+Math.imul(h,eo)|0))<<13)|0;u=((o=o+Math.imul(h,es)|0)+(r>>>13)|0)+(eC>>>26)|0,eC&=67108863,n=Math.imul(T,V),r=(r=Math.imul(T,j))+Math.imul(I,V)|0,o=Math.imul(I,j),n=n+Math.imul(N,U)|0,r=(r=r+Math.imul(N,$)|0)+Math.imul(D,U)|0,o=o+Math.imul(D,$)|0,n=n+Math.imul(E,q)|0,r=(r=r+Math.imul(E,G)|0)+Math.imul(L,q)|0,o=o+Math.imul(L,G)|0,n=n+Math.imul(S,Y)|0,r=(r=r+Math.imul(S,J)|0)+Math.imul(x,Y)|0,o=o+Math.imul(x,J)|0,n=n+Math.imul(_,X)|0,r=(r=r+Math.imul(_,ee)|0)+Math.imul(w,X)|0,o=o+Math.imul(w,ee)|0,n=n+Math.imul(v,ei)|0,r=(r=r+Math.imul(v,en)|0)+Math.imul(b,ei)|0,o=o+Math.imul(b,en)|0,n=n+Math.imul(p,eo)|0,r=(r=r+Math.imul(p,es)|0)+Math.imul(g,eo)|0,o=o+Math.imul(g,es)|0;var eS=(u+(n=n+Math.imul(c,el)|0)|0)+((8191&(r=(r=r+Math.imul(c,eu)|0)+Math.imul(h,el)|0))<<13)|0;u=((o=o+Math.imul(h,eu)|0)+(r>>>13)|0)+(eS>>>26)|0,eS&=67108863,n=Math.imul(P,V),r=(r=Math.imul(P,j))+Math.imul(R,V)|0,o=Math.imul(R,j),n=n+Math.imul(T,U)|0,r=(r=r+Math.imul(T,$)|0)+Math.imul(I,U)|0,o=o+Math.imul(I,$)|0,n=n+Math.imul(N,q)|0,r=(r=r+Math.imul(N,G)|0)+Math.imul(D,q)|0,o=o+Math.imul(D,G)|0,n=n+Math.imul(E,Y)|0,r=(r=r+Math.imul(E,J)|0)+Math.imul(L,Y)|0,o=o+Math.imul(L,J)|0,n=n+Math.imul(S,X)|0,r=(r=r+Math.imul(S,ee)|0)+Math.imul(x,X)|0,o=o+Math.imul(x,ee)|0,n=n+Math.imul(_,ei)|0,r=(r=r+Math.imul(_,en)|0)+Math.imul(w,ei)|0,o=o+Math.imul(w,en)|0,n=n+Math.imul(v,eo)|0,r=(r=r+Math.imul(v,es)|0)+Math.imul(b,eo)|0,o=o+Math.imul(b,es)|0,n=n+Math.imul(p,el)|0,r=(r=r+Math.imul(p,eu)|0)+Math.imul(g,el)|0,o=o+Math.imul(g,eu)|0;var ex=(u+(n=n+Math.imul(c,ec)|0)|0)+((8191&(r=(r=r+Math.imul(c,eh)|0)+Math.imul(h,ec)|0))<<13)|0;u=((o=o+Math.imul(h,eh)|0)+(r>>>13)|0)+(ex>>>26)|0,ex&=67108863,n=Math.imul(B,V),r=(r=Math.imul(B,j))+Math.imul(H,V)|0,o=Math.imul(H,j),n=n+Math.imul(P,U)|0,r=(r=r+Math.imul(P,$)|0)+Math.imul(R,U)|0,o=o+Math.imul(R,$)|0,n=n+Math.imul(T,q)|0,r=(r=r+Math.imul(T,G)|0)+Math.imul(I,q)|0,o=o+Math.imul(I,G)|0,n=n+Math.imul(N,Y)|0,r=(r=r+Math.imul(N,J)|0)+Math.imul(D,Y)|0,o=o+Math.imul(D,J)|0,n=n+Math.imul(E,X)|0,r=(r=r+Math.imul(E,ee)|0)+Math.imul(L,X)|0,o=o+Math.imul(L,ee)|0,n=n+Math.imul(S,ei)|0,r=(r=r+Math.imul(S,en)|0)+Math.imul(x,ei)|0,o=o+Math.imul(x,en)|0,n=n+Math.imul(_,eo)|0,r=(r=r+Math.imul(_,es)|0)+Math.imul(w,eo)|0,o=o+Math.imul(w,es)|0,n=n+Math.imul(v,el)|0,r=(r=r+Math.imul(v,eu)|0)+Math.imul(b,el)|0,o=o+Math.imul(b,eu)|0,n=n+Math.imul(p,ec)|0,r=(r=r+Math.imul(p,eh)|0)+Math.imul(g,ec)|0,o=o+Math.imul(g,eh)|0;var ek=(u+(n=n+Math.imul(c,ep)|0)|0)+((8191&(r=(r=r+Math.imul(c,eg)|0)+Math.imul(h,ep)|0))<<13)|0;u=((o=o+Math.imul(h,eg)|0)+(r>>>13)|0)+(ek>>>26)|0,ek&=67108863,n=Math.imul(B,U),r=(r=Math.imul(B,$))+Math.imul(H,U)|0,o=Math.imul(H,$),n=n+Math.imul(P,q)|0,r=(r=r+Math.imul(P,G)|0)+Math.imul(R,q)|0,o=o+Math.imul(R,G)|0,n=n+Math.imul(T,Y)|0,r=(r=r+Math.imul(T,J)|0)+Math.imul(I,Y)|0,o=o+Math.imul(I,J)|0,n=n+Math.imul(N,X)|0,r=(r=r+Math.imul(N,ee)|0)+Math.imul(D,X)|0,o=o+Math.imul(D,ee)|0,n=n+Math.imul(E,ei)|0,r=(r=r+Math.imul(E,en)|0)+Math.imul(L,ei)|0,o=o+Math.imul(L,en)|0,n=n+Math.imul(S,eo)|0,r=(r=r+Math.imul(S,es)|0)+Math.imul(x,eo)|0,o=o+Math.imul(x,es)|0,n=n+Math.imul(_,el)|0,r=(r=r+Math.imul(_,eu)|0)+Math.imul(w,el)|0,o=o+Math.imul(w,eu)|0,n=n+Math.imul(v,ec)|0,r=(r=r+Math.imul(v,eh)|0)+Math.imul(b,ec)|0,o=o+Math.imul(b,eh)|0;var eE=(u+(n=n+Math.imul(p,ep)|0)|0)+((8191&(r=(r=r+Math.imul(p,eg)|0)+Math.imul(g,ep)|0))<<13)|0;u=((o=o+Math.imul(g,eg)|0)+(r>>>13)|0)+(eE>>>26)|0,eE&=67108863,n=Math.imul(B,q),r=(r=Math.imul(B,G))+Math.imul(H,q)|0,o=Math.imul(H,G),n=n+Math.imul(P,Y)|0,r=(r=r+Math.imul(P,J)|0)+Math.imul(R,Y)|0,o=o+Math.imul(R,J)|0,n=n+Math.imul(T,X)|0,r=(r=r+Math.imul(T,ee)|0)+Math.imul(I,X)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(N,ei)|0,r=(r=r+Math.imul(N,en)|0)+Math.imul(D,ei)|0,o=o+Math.imul(D,en)|0,n=n+Math.imul(E,eo)|0,r=(r=r+Math.imul(E,es)|0)+Math.imul(L,eo)|0,o=o+Math.imul(L,es)|0,n=n+Math.imul(S,el)|0,r=(r=r+Math.imul(S,eu)|0)+Math.imul(x,el)|0,o=o+Math.imul(x,eu)|0,n=n+Math.imul(_,ec)|0,r=(r=r+Math.imul(_,eh)|0)+Math.imul(w,ec)|0,o=o+Math.imul(w,eh)|0;var eL=(u+(n=n+Math.imul(v,ep)|0)|0)+((8191&(r=(r=r+Math.imul(v,eg)|0)+Math.imul(b,ep)|0))<<13)|0;u=((o=o+Math.imul(b,eg)|0)+(r>>>13)|0)+(eL>>>26)|0,eL&=67108863,n=Math.imul(B,Y),r=(r=Math.imul(B,J))+Math.imul(H,Y)|0,o=Math.imul(H,J),n=n+Math.imul(P,X)|0,r=(r=r+Math.imul(P,ee)|0)+Math.imul(R,X)|0,o=o+Math.imul(R,ee)|0,n=n+Math.imul(T,ei)|0,r=(r=r+Math.imul(T,en)|0)+Math.imul(I,ei)|0,o=o+Math.imul(I,en)|0,n=n+Math.imul(N,eo)|0,r=(r=r+Math.imul(N,es)|0)+Math.imul(D,eo)|0,o=o+Math.imul(D,es)|0,n=n+Math.imul(E,el)|0,r=(r=r+Math.imul(E,eu)|0)+Math.imul(L,el)|0,o=o+Math.imul(L,eu)|0,n=n+Math.imul(S,ec)|0,r=(r=r+Math.imul(S,eh)|0)+Math.imul(x,ec)|0,o=o+Math.imul(x,eh)|0;var eM=(u+(n=n+Math.imul(_,ep)|0)|0)+((8191&(r=(r=r+Math.imul(_,eg)|0)+Math.imul(w,ep)|0))<<13)|0;u=((o=o+Math.imul(w,eg)|0)+(r>>>13)|0)+(eM>>>26)|0,eM&=67108863,n=Math.imul(B,X),r=(r=Math.imul(B,ee))+Math.imul(H,X)|0,o=Math.imul(H,ee),n=n+Math.imul(P,ei)|0,r=(r=r+Math.imul(P,en)|0)+Math.imul(R,ei)|0,o=o+Math.imul(R,en)|0,n=n+Math.imul(T,eo)|0,r=(r=r+Math.imul(T,es)|0)+Math.imul(I,eo)|0,o=o+Math.imul(I,es)|0,n=n+Math.imul(N,el)|0,r=(r=r+Math.imul(N,eu)|0)+Math.imul(D,el)|0,o=o+Math.imul(D,eu)|0,n=n+Math.imul(E,ec)|0,r=(r=r+Math.imul(E,eh)|0)+Math.imul(L,ec)|0,o=o+Math.imul(L,eh)|0;var eN=(u+(n=n+Math.imul(S,ep)|0)|0)+((8191&(r=(r=r+Math.imul(S,eg)|0)+Math.imul(x,ep)|0))<<13)|0;u=((o=o+Math.imul(x,eg)|0)+(r>>>13)|0)+(eN>>>26)|0,eN&=67108863,n=Math.imul(B,ei),r=(r=Math.imul(B,en))+Math.imul(H,ei)|0,o=Math.imul(H,en),n=n+Math.imul(P,eo)|0,r=(r=r+Math.imul(P,es)|0)+Math.imul(R,eo)|0,o=o+Math.imul(R,es)|0,n=n+Math.imul(T,el)|0,r=(r=r+Math.imul(T,eu)|0)+Math.imul(I,el)|0,o=o+Math.imul(I,eu)|0,n=n+Math.imul(N,ec)|0,r=(r=r+Math.imul(N,eh)|0)+Math.imul(D,ec)|0,o=o+Math.imul(D,eh)|0;var eD=(u+(n=n+Math.imul(E,ep)|0)|0)+((8191&(r=(r=r+Math.imul(E,eg)|0)+Math.imul(L,ep)|0))<<13)|0;u=((o=o+Math.imul(L,eg)|0)+(r>>>13)|0)+(eD>>>26)|0,eD&=67108863,n=Math.imul(B,eo),r=(r=Math.imul(B,es))+Math.imul(H,eo)|0,o=Math.imul(H,es),n=n+Math.imul(P,el)|0,r=(r=r+Math.imul(P,eu)|0)+Math.imul(R,el)|0,o=o+Math.imul(R,eu)|0,n=n+Math.imul(T,ec)|0,r=(r=r+Math.imul(T,eh)|0)+Math.imul(I,ec)|0,o=o+Math.imul(I,eh)|0;var eA=(u+(n=n+Math.imul(N,ep)|0)|0)+((8191&(r=(r=r+Math.imul(N,eg)|0)+Math.imul(D,ep)|0))<<13)|0;u=((o=o+Math.imul(D,eg)|0)+(r>>>13)|0)+(eA>>>26)|0,eA&=67108863,n=Math.imul(B,el),r=(r=Math.imul(B,eu))+Math.imul(H,el)|0,o=Math.imul(H,eu),n=n+Math.imul(P,ec)|0,r=(r=r+Math.imul(P,eh)|0)+Math.imul(R,ec)|0,o=o+Math.imul(R,eh)|0;var eT=(u+(n=n+Math.imul(T,ep)|0)|0)+((8191&(r=(r=r+Math.imul(T,eg)|0)+Math.imul(I,ep)|0))<<13)|0;u=((o=o+Math.imul(I,eg)|0)+(r>>>13)|0)+(eT>>>26)|0,eT&=67108863,n=Math.imul(B,ec),r=(r=Math.imul(B,eh))+Math.imul(H,ec)|0,o=Math.imul(H,eh);var eI=(u+(n=n+Math.imul(P,ep)|0)|0)+((8191&(r=(r=r+Math.imul(P,eg)|0)+Math.imul(R,ep)|0))<<13)|0;u=((o=o+Math.imul(R,eg)|0)+(r>>>13)|0)+(eI>>>26)|0,eI&=67108863;var eO=(u+(n=Math.imul(B,ep))|0)+((8191&(r=(r=Math.imul(B,eg))+Math.imul(H,ep)|0))<<13)|0;return u=((o=Math.imul(H,eg))+(r>>>13)|0)+(eO>>>26)|0,eO&=67108863,l[0]=em,l[1]=ev,l[2]=eb,l[3]=ey,l[4]=e_,l[5]=ew,l[6]=eC,l[7]=eS,l[8]=ex,l[9]=ek,l[10]=eE,l[11]=eL,l[12]=eM,l[13]=eN,l[14]=eD,l[15]=eA,l[16]=eT,l[17]=eI,l[18]=eO,0!==u&&(l[19]=u,i.length++),i};function p(e,t,i){return new g().mulp(e,t,i)}function g(e,t){this.x=e,this.y=t}Math.imul||(f=h),o.prototype.mulTo=function(e,t){var i=this.length+e.length;return 10===this.length&&10===e.length?f(this,e,t):i<63?h(this,e,t):i<1024?function(e,t,i){i.negative=t.negative^e.negative,i.length=e.length+t.length;for(var n=0,r=0,o=0;o>>26)|0)>>>26,s&=67108863}i.words[o]=a,n=s,s=r}return 0!==n?i.words[o]=n:i.length--,i.strip()}(this,e,t):p(this,e,t)},g.prototype.makeRBT=function(e){for(var t=Array(e),i=o.prototype._countBits(e)-1,n=0;n>=1;return n},g.prototype.permute=function(e,t,i,n,r,o){for(var s=0;s>>=1)r++;return 1<>>=13,i[2*s+1]=8191&o,o>>>=13;for(s=2*t;s>=26,t+=(r/67108864|0)+(o>>>26),this.words[i]=67108863&o}return 0!==t&&(this.words[i]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),i=0;i>>r}return t}(e);if(0===t.length)return new o(1);for(var i=this,n=0;n=0);var t,i=e%26,r=(e-i)/26,o=67108863>>>26-i<<26-i;if(0!==i){var s=0;for(t=0;t>>26-i}s&&(this.words[t]=s,this.length++)}if(0!==r){for(t=this.length-1;t>=0;t--)this.words[t+r]=this.words[t];for(t=0;t=0),r=t?(t-t%26)/26:0;var r,o=e%26,s=Math.min((e-o)/26,this.length),a=67108863^67108863>>>o<s)for(this.length-=s,l=0;l=0&&(0!==u||l>=r);l--){var d=0|this.words[l];this.words[l]=u<<26-o|d>>>o,u=d&a}return i&&0!==u&&(i.words[i.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,i){return n(0===this.negative),this.iushrn(e,t,i)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,i=(e-t)/26;return!(this.length<=i)&&!!(this.words[i]&1<=0);var t=e%26,i=(e-t)/26;return(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=i)?this:(0!==t&&i++,this.length=Math.min(i,this.length),0!==t&&(this.words[this.length-1]&=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(l/67108864|0),this.words[r+i]=67108863&o}for(;r>26,this.words[r+i]=67108863&o;if(0===a)return this.strip();for(n(-1===a),a=0,r=0;r>26,this.words[r]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var i,n=this.length-e.length,r=this.clone(),s=e,a=0|s.words[s.length-1];0!=(n=26-this._countBits(a))&&(s=s.ushln(n),r.iushln(n),a=0|s.words[s.length-1]);var l=r.length-s.length;if("mod"!==t){(i=new o(null)).length=l+1,i.words=Array(i.length);for(var u=0;u=0;c--){var h=(0|r.words[s.length+c])*67108864+(0|r.words[s.length+c-1]);for(h=Math.min(h/a|0,67108863),r._ishlnsubmul(s,h,c);0!==r.negative;)h--,r.negative=0,r._ishlnsubmul(s,1,c),r.isZero()||(r.negative^=1);i&&(i.words[c]=h)}return i&&i.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:i||null,mod:r}},o.prototype.divmod=function(e,t,i){var r,s,a;return(n(!e.isZero()),this.isZero())?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),"mod"!==t&&(r=a.div.neg()),"div"!==t&&(s=a.mod.neg(),i&&0!==s.negative&&s.iadd(e)),{div:r,mod:s}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),"mod"!==t&&(r=a.div.neg()),{div:r,mod:a.mod}):(this.negative&e.negative)!=0?(a=this.neg().divmod(e.neg(),t),"div"!==t&&(s=a.mod.neg(),i&&0!==s.negative&&s.isub(e)),{div:a.div,mod:s}):e.length>this.length||0>this.cmp(e)?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t)},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var i=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),r=e.andln(1),o=i.cmp(n);return o<0||1===r&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){n(e<=67108863);for(var t=67108864%e,i=0,r=this.length-1;r>=0;r--)i=(t*i+(0|this.words[r]))%e;return i},o.prototype.idivn=function(e){n(e<=67108863);for(var t=0,i=this.length-1;i>=0;i--){var r=(0|this.words[i])+67108864*t;this.words[i]=r/e|0,t=r%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,i=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var r=new o(1),s=new o(0),a=new o(0),l=new o(1),u=0;t.isEven()&&i.isEven();)t.iushrn(1),i.iushrn(1),++u;for(var d=i.clone(),c=t.clone();!t.isZero();){for(var h=0,f=1;(t.words[0]&f)==0&&h<26;++h,f<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(r.isOdd()||s.isOdd())&&(r.iadd(d),s.isub(c)),r.iushrn(1),s.iushrn(1);for(var p=0,g=1;(i.words[0]&g)==0&&p<26;++p,g<<=1);if(p>0)for(i.iushrn(p);p-- >0;)(a.isOdd()||l.isOdd())&&(a.iadd(d),l.isub(c)),a.iushrn(1),l.iushrn(1);t.cmp(i)>=0?(t.isub(i),r.isub(a),s.isub(l)):(i.isub(t),a.isub(r),l.isub(s))}return{a:a,b:l,gcd:i.iushln(u)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t,i=this,r=e.clone();i=0!==i.negative?i.umod(e):i.clone();for(var s=new o(1),a=new o(0),l=r.clone();i.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,d=1;(i.words[0]&d)==0&&u<26;++u,d<<=1);if(u>0)for(i.iushrn(u);u-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);for(var c=0,h=1;(r.words[0]&h)==0&&c<26;++c,h<<=1);if(c>0)for(r.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);i.cmp(r)>=0?(i.isub(r),s.isub(a)):(r.isub(i),a.isub(s))}return 0>(t=0===i.cmpn(1)?s:a).cmpn(0)&&t.iadd(e),t},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),i=e.clone();t.negative=0,i.negative=0;for(var n=0;t.isEven()&&i.isEven();n++)t.iushrn(1),i.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;i.isEven();)i.iushrn(1);var r=t.cmp(i);if(r<0){var o=t;t=i,i=o}else if(0===r||0===i.cmpn(1))break;t.isub(i)}return i.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return(1&this.words[0])==0},o.prototype.isOdd=function(){return(1&this.words[0])==1},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,i=(e-t)/26,r=1<>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,i=e<0;if(0!==this.negative&&!i)return -1;if(0===this.negative&&i)return 1;if(this.strip(),this.length>1)t=1;else{i&&(e=-e),n(e<=67108863,"Number is too big");var r=0|this.words[0];t=r===e?0:re.length)return 1;if(this.length=0;i--){var n=0|this.words[i],r=0|e.words[i];if(n!==r){nr&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return -1===this.cmpn(e)},o.prototype.lt=function(e){return -1===this.cmp(e)},o.prototype.lten=function(e){return 0>=this.cmpn(e)},o.prototype.lte=function(e){return 0>=this.cmp(e)},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new C(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var m={k256:null,p224:null,p192:null,p25519:null};function v(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function C(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function S(e){C.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}v.prototype._tmp=function(){var e=new o(null);return e.words=Array(Math.ceil(this.n/13)),e},v.prototype.ireduce=function(e){var t,i=e;do this.split(i,this.tmp),t=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength();while(t>this.n)var n=t0?i.isub(this.p):i.strip(),i},v.prototype.split=function(e,t){e.iushrn(this.n,0,t)},v.prototype.imulK=function(e){return e.imul(this.k)},r(b,v),b.prototype.split=function(e,t){for(var i=Math.min(e.length,9),n=0;n>>22,r=o}r>>>=22,e.words[n-10]=r,0===r&&e.length>10?e.length-=10:e.length-=9},b.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,i=0;i>>=26,e.words[i]=r,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){var t;if(m[e])return m[e];if("k256"===e)t=new b;else if("p224"===e)t=new y;else if("p192"===e)t=new _;else if("p25519"===e)t=new w;else throw Error("Unknown prime "+e);return m[e]=t,t},C.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},C.prototype._verify2=function(e,t){n((e.negative|t.negative)==0,"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},C.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},C.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},C.prototype.add=function(e,t){this._verify2(e,t);var i=e.add(t);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},C.prototype.iadd=function(e,t){this._verify2(e,t);var i=e.iadd(t);return i.cmp(this.m)>=0&&i.isub(this.m),i},C.prototype.sub=function(e,t){this._verify2(e,t);var i=e.sub(t);return 0>i.cmpn(0)&&i.iadd(this.m),i._forceRed(this)},C.prototype.isub=function(e,t){this._verify2(e,t);var i=e.isub(t);return 0>i.cmpn(0)&&i.iadd(this.m),i},C.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},C.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},C.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},C.prototype.isqr=function(e){return this.imul(e,e.clone())},C.prototype.sqr=function(e){return this.mul(e,e)},C.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var i=this.m.add(new o(1)).iushrn(2);return this.pow(e,i)}for(var r=this.m.subn(1),s=0;!r.isZero()&&0===r.andln(1);)s++,r.iushrn(1);n(!r.isZero());var a=new o(1).toRed(this),l=a.redNeg(),u=this.m.subn(1).iushrn(1),d=this.m.bitLength();for(d=new o(2*d*d).toRed(this);0!==this.pow(d,u).cmp(l);)d.redIAdd(l);for(var c=this.pow(d,r),h=this.pow(e,r.addn(1).iushrn(1)),f=this.pow(e,r),p=s;0!==f.cmp(a);){for(var g=f,m=0;0!==g.cmp(a);m++)g=g.redSqr();n(m=0;n--){for(var u=t.words[n],d=l-1;d>=0;d--){var c=u>>d&1;if(r!==i[0]&&(r=this.sqr(r)),0===c&&0===s){a=0;continue}s<<=1,s|=c,(4==++a||0===n&&0===d)&&(r=this.mul(r,i[s]),a=0,s=0)}l=26}return r},C.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},C.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new S(e)},r(S,C),S.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},S.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},S.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):0>r.cmpn(0)&&(o=r.iadd(this.m)),o._forceRed(this)},S.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var i=e.mul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),s=r;return r.cmp(this.m)>=0?s=r.isub(this.m):0>r.cmpn(0)&&(s=r.iadd(this.m)),s._forceRed(this)},S.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=i.nmd(e),this)},27720:function(e,t,i){"use strict";var n,r,o,s,a,l,u,d,c,h,f,p,g,m=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})},v=this&&this.__classPrivateFieldSet||function(e,t,i,n,r){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!r)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?r.call(e,i):r?r.value=i:t.set(e,i),i},b=this&&this.__classPrivateFieldGet||function(e,t,i,n){if("a"===i&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(e):n?n.value:t.get(e)},y=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.JsonRpcEngine=void 0;let _=i(30774),w=y(i(63795)),C=i(45554);class S extends w.default{constructor({notificationHandler:e}={}){super(),n.add(this),o.set(this,!1),s.set(this,void 0),a.set(this,void 0),v(this,s,[],"f"),v(this,a,e,"f")}destroy(){b(this,s,"f").forEach(e=>{"destroy"in e&&"function"==typeof e.destroy&&e.destroy()}),v(this,s,[],"f"),v(this,o,!0,"f")}push(e){b(this,n,"m",l).call(this),b(this,s,"f").push(e)}handle(e,t){if(b(this,n,"m",l).call(this),t&&"function"!=typeof t)throw Error('"callback" must be a function if provided.');return Array.isArray(e)?t?b(this,n,"m",u).call(this,e,t):b(this,n,"m",u).call(this,e):t?b(this,n,"m",d).call(this,e,t):this._promiseHandle(e)}asMiddleware(){return b(this,n,"m",l).call(this),(e,t,i,n)=>m(this,void 0,void 0,function*(){try{let[o,a,l]=yield b(S,r,"m",h).call(S,e,t,b(this,s,"f"));if(a)return yield b(S,r,"m",p).call(S,l),n(o);return i(e=>m(this,void 0,void 0,function*(){try{yield b(S,r,"m",p).call(S,l)}catch(t){return e(t)}return e()}))}catch(e){return n(e)}})}_promiseHandle(e){return m(this,void 0,void 0,function*(){return new Promise((t,i)=>{b(this,n,"m",d).call(this,e,(e,n)=>{e&&void 0===n?i(e):t(n)}).catch(i)})})}}function x(e){return JSON.stringify(e,null,2)}t.JsonRpcEngine=S,r=S,o=new WeakMap,s=new WeakMap,a=new WeakMap,n=new WeakSet,l=function(){if(b(this,o,"f"))throw Error("This engine is destroyed and can no longer be used.")},u=function(e,t){return m(this,void 0,void 0,function*(){try{if(0===e.length){let e=[{id:null,jsonrpc:"2.0",error:new _.JsonRpcError(_.errorCodes.rpc.invalidRequest,"Request batch must contain plain objects. Received an empty array")}];if(t)return t(null,e);return e}let i=(yield Promise.all(e.map(this._promiseHandle.bind(this)))).filter(e=>void 0!==e);if(t)return t(null,i);return i}catch(e){if(t)return t(e);throw e}})},d=function(e,t){var i;return m(this,void 0,void 0,function*(){if(!e||Array.isArray(e)||"object"!=typeof e){let i=new _.JsonRpcError(_.errorCodes.rpc.invalidRequest,`Requests must be plain objects. Received: ${typeof e}`,{request:e});return t(i,{id:null,jsonrpc:"2.0",error:i})}if("string"!=typeof e.method){let n=new _.JsonRpcError(_.errorCodes.rpc.invalidRequest,`Must specify a string method. Received: ${typeof e.method}`,{request:e});return b(this,a,"f")&&!(0,C.isJsonRpcRequest)(e)?t(null):t(n,{id:null!==(i=e.id)&&void 0!==i?i:null,jsonrpc:"2.0",error:n})}if(b(this,a,"f")&&!(0,C.isJsonRpcRequest)(e)){try{yield b(this,a,"f").call(this,e)}catch(e){return t(e)}return t(null)}let n=null,o=Object.assign({},e),l={id:o.id,jsonrpc:o.jsonrpc};try{yield b(S,r,"m",c).call(S,o,l,b(this,s,"f"))}catch(e){n=e}return n&&(delete l.result,l.error||(l.error=(0,_.serializeError)(n))),t(n,l)})},c=function(e,t,i){return m(this,void 0,void 0,function*(){let[n,o,s]=yield b(S,r,"m",h).call(S,e,t,i);if(b(S,r,"m",g).call(S,e,t,o),yield b(S,r,"m",p).call(S,s),n)throw n})},h=function(e,t,i){return m(this,void 0,void 0,function*(){let n=[],o=null,s=!1;for(let a of i)if([o,s]=yield b(S,r,"m",f).call(S,e,t,a,n),s)break;return[o,s,n.reverse()]})},f=function(e,t,i,n){return m(this,void 0,void 0,function*(){return new Promise(r=>{let o=e=>{let i=e||t.error;i&&(t.error=(0,_.serializeError)(i)),r([i,!0])};try{i(e,t,i=>{t.error?o(t.error):(i&&("function"!=typeof i&&o(new _.JsonRpcError(_.errorCodes.rpc.internal,`JsonRpcEngine: "next" return handlers must be functions. Received "${typeof i}" for request: +${e.length}`,"utf-8");return n.from((0,r.keccak256)(n.concat([t,e])))}},82103:(e,t,i)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.toType=t.TypeOutput=void 0;let r=i(85766),o=i(34243);!function(e){e[e.Number=0]="Number",e[e.BigInt=1]="BigInt",e[e.Buffer=2]="Buffer",e[e.PrefixedHexString=3]="PrefixedHexString"}(n=t.TypeOutput||(t.TypeOutput={})),t.toType=function(e,t){if(null===e)return null;if(void 0===e)return;if("string"!=typeof e||(0,o.isHexString)(e)){if("number"==typeof e&&!Number.isSafeInteger(e))throw Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)")}else throw Error(`A string must be provided with a 0x-prefix, given: ${e}`);let i=(0,r.toBuffer)(e);switch(t){case n.Buffer:return i;case n.BigInt:return(0,r.bufferToBigInt)(i);case n.Number:{let e=(0,r.bufferToBigInt)(i);if(e>BigInt(Number.MAX_SAFE_INTEGER))throw Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative output type)");return Number(e)}case n.PrefixedHexString:return(0,r.bufferToHex)(i);default:throw Error("unknown outputType")}}},53895:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GWEI_TO_WEI=void 0,t.GWEI_TO_WEI=BigInt(1e9)},72868:(e,t,i)=>{"use strict";var n=i(48834).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.Withdrawal=void 0;let r=i(38515),o=i(85766),s=i(82103);class a{constructor(e,t,i,n){this.index=e,this.validatorIndex=t,this.address=i,this.amount=n}static fromWithdrawalData(e){let{index:t,validatorIndex:i,address:n,amount:o}=e,l=(0,s.toType)(t,s.TypeOutput.BigInt),u=(0,s.toType)(i,s.TypeOutput.BigInt),d=new r.Address((0,s.toType)(n,s.TypeOutput.Buffer)),c=(0,s.toType)(o,s.TypeOutput.BigInt);return new a(l,u,d,c)}static fromValuesArray(e){if(4!==e.length)throw Error(`Invalid withdrawalArray length expected=4 actual=${e.length}`);let[t,i,n,r]=e;return a.fromWithdrawalData({index:t,validatorIndex:i,address:n,amount:r})}static toBufferArray(e){let{index:t,validatorIndex:i,address:o,amount:a}=e;return[(0,s.toType)(t,s.TypeOutput.BigInt)===BigInt(0)?n.alloc(0):(0,s.toType)(t,s.TypeOutput.Buffer),(0,s.toType)(i,s.TypeOutput.BigInt)===BigInt(0)?n.alloc(0):(0,s.toType)(i,s.TypeOutput.Buffer),o instanceof r.Address?o.buf:(0,s.toType)(o,s.TypeOutput.Buffer),(0,s.toType)(a,s.TypeOutput.BigInt)===BigInt(0)?n.alloc(0):(0,s.toType)(a,s.TypeOutput.Buffer)]}raw(){return a.toBufferArray(this)}toValue(){return{index:this.index,validatorIndex:this.validatorIndex,address:this.address.buf,amount:this.amount}}toJSON(){return{index:(0,o.bigIntToHex)(this.index),validatorIndex:(0,o.bigIntToHex)(this.validatorIndex),address:"0x"+this.address.buf.toString("hex"),amount:(0,o.bigIntToHex)(this.amount)}}}t.Withdrawal=a},54269:function(e,t,i){!function(e,t){"use strict";function n(e,t){if(!e)throw Error(t||"Assertion failed")}function r(e,t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}function o(e,t,i){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&(("le"===t||"be"===t)&&(i=t,t=10),this._init(e||0,t||10,i||"be"))}"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{c="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:i(29005).Buffer}catch(e){}function s(e,t){var i=e.charCodeAt(t);return i>=48&&i<=57?i-48:i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:void n(!1,"Invalid character in "+e)}function a(e,t,i){var n=s(e,i);return i-1>=t&&(n|=s(e,i-1)<<4),n}function l(e,t,i,r){for(var o=0,s=0,a=Math.min(e.length,i),l=t;l=49?u-49+10:u>=17?u-17+10:u,n(u>=0&&s0?e:t},o.min=function(e,t){return 0>e.cmp(t)?e:t},o.prototype._init=function(e,t,i){if("number"==typeof e)return this._initNumber(e,t,i);if("object"==typeof e)return this._initArray(e,t,i);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var r=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(r++,this.negative=1),r=0;s-=3)o=e[s]|e[s-1]<<8|e[s-2]<<16,this.words[r]|=o<>>26-a&67108863,(a+=24)>=26&&(a-=26,r++);else if("le"===i)for(s=0,r=0;s>>26-a&67108863,(a+=24)>=26&&(a-=26,r++);return this._strip()},o.prototype._parseHex=function(e,t,i){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var n,r=0;r=t;r-=2)n=a(e,t,r)<=18?(o-=18,s+=1,this.words[s]|=n>>>26):o+=8;else for(r=(e.length-t)%2==0?t+1:t;r=18?(o-=18,s+=1,this.words[s]|=n>>>26):o+=8;this._strip()},o.prototype._parseBase=function(e,t,i){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=t)n++;n--,r=r/t|0;for(var o=e.length-i,s=o%n,a=Math.min(o,o-s)+i,u=0,d=i;d1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=d}catch(e){o.prototype.inspect=d}else o.prototype.inspect=d;function d(){return(this.red?""}var c,h=["","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"],f=[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],p=[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];function g(e,t,i){i.negative=t.negative^e.negative;var n=e.length+t.length|0;i.length=n,n=n-1|0;var r=0|e.words[0],o=0|t.words[0],s=r*o,a=67108863&s,l=s/67108864|0;i.words[0]=a;for(var u=1;u>>26,c=67108863&l,h=Math.min(u,t.length-1),f=Math.max(0,u-e.length+1);f<=h;f++){var p=u-f|0;d+=(s=(r=0|e.words[p])*(o=0|t.words[f])+c)/67108864|0,c=67108863&s}i.words[u]=0|c,l=0|d}return 0!==l?i.words[u]=0|l:i.length--,i._strip()}o.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){i="";for(var i,r=0,o=0,s=0;s>>24-r&16777215,(r+=2)>=26&&(r-=26,s--),i=0!==o||s!==this.length-1?h[6-l.length]+l+i:l+i}for(0!==o&&(i=o.toString(16)+i);i.length%t!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(e===(0|e)&&e>=2&&e<=36){var u=f[e],d=p[e];i="";var c=this.clone();for(c.negative=0;!c.isZero();){var g=c.modrn(d).toString(e);i=(c=c.idivn(d)).isZero()?g+i:h[u-g.length]+g+i}for(this.isZero()&&(i="0"+i);i.length%t!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},c&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(c,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,i){this._strip();var r=this.byteLength(),o=i||Math.max(1,r);n(r<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var s=e.allocUnsafe?e.allocUnsafe(o):new e(o);return this["_toArrayLike"+("le"===t?"LE":"BE")](s,r),s},o.prototype._toArrayLikeLE=function(e,t){for(var i=0,n=0,r=0,o=0;r>8&255),i>16&255),6===o?(i>24&255),n=0,o=0):(n=s>>>24,o+=2)}if(i=0&&(e[i--]=s>>8&255),i>=0&&(e[i--]=s>>16&255),6===o?(i>=0&&(e[i--]=s>>24&255),n=0,o=0):(n=s>>>24,o+=2)}if(i>=0)for(e[i--]=n;i>=0;)e[i--]=0},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,i=0;return t>=4096&&(i+=13,t>>>=13),t>=64&&(i+=7,t>>>=7),t>=8&&(i+=4,t>>>=4),t>=2&&(i+=2,t>>>=2),i+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,i=0;return(8191&t)==0&&(i+=13,t>>>=13),(127&t)==0&&(i+=7,t>>>=7),(15&t)==0&&(i+=4,t>>>=4),(3&t)==0&&(i+=2,t>>>=2),(1&t)==0&&i++,i},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var i=0;ie.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){this.length>e.length?(t=this,i=e):(t=e,i=this);for(var t,i,n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),i=e%26;this._expand(t),i>0&&t--;for(var r=0;r0&&(this.words[r]=~this.words[r]&67108863>>26-i),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var i=e/26|0,r=e%26;return this._expand(i+1),t?this.words[i]=this.words[i]|1<e.length?(i=this,n=e):(i=e,n=this);for(var t,i,n,r=0,o=0;o>>26;for(;0!==r&&o>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,i,n=this.iadd(e);return e.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r=this.cmp(e);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(t=this,i=e):(t=e,i=this);for(var o=0,s=0;s>26,this.words[s]=67108863&n;for(;0!==o&&s>26,this.words[s]=67108863&n;if(0===o&&s>>13,f=0|s[1],p=8191&f,g=f>>>13,m=0|s[2],v=8191&m,b=m>>>13,y=0|s[3],_=8191&y,w=y>>>13,C=0|s[4],S=8191&C,x=C>>>13,k=0|s[5],E=8191&k,L=k>>>13,M=0|s[6],N=8191&M,D=M>>>13,A=0|s[7],T=8191&A,I=A>>>13,O=0|s[8],P=8191&O,R=O>>>13,F=0|s[9],B=8191&F,H=F>>>13,z=0|a[0],V=8191&z,j=z>>>13,W=0|a[1],U=8191&W,$=W>>>13,K=0|a[2],q=8191&K,G=K>>>13,Z=0|a[3],Y=8191&Z,J=Z>>>13,Q=0|a[4],X=8191&Q,ee=Q>>>13,et=0|a[5],ei=8191&et,en=et>>>13,er=0|a[6],eo=8191&er,es=er>>>13,ea=0|a[7],el=8191&ea,eu=ea>>>13,ed=0|a[8],ec=8191&ed,eh=ed>>>13,ef=0|a[9],ep=8191&ef,eg=ef>>>13;i.negative=e.negative^t.negative,i.length=19;var em=(u+(n=Math.imul(c,V))|0)+((8191&(r=(r=Math.imul(c,j))+Math.imul(h,V)|0))<<13)|0;u=((o=Math.imul(h,j))+(r>>>13)|0)+(em>>>26)|0,em&=67108863,n=Math.imul(p,V),r=(r=Math.imul(p,j))+Math.imul(g,V)|0,o=Math.imul(g,j);var ev=(u+(n=n+Math.imul(c,U)|0)|0)+((8191&(r=(r=r+Math.imul(c,$)|0)+Math.imul(h,U)|0))<<13)|0;u=((o=o+Math.imul(h,$)|0)+(r>>>13)|0)+(ev>>>26)|0,ev&=67108863,n=Math.imul(v,V),r=(r=Math.imul(v,j))+Math.imul(b,V)|0,o=Math.imul(b,j),n=n+Math.imul(p,U)|0,r=(r=r+Math.imul(p,$)|0)+Math.imul(g,U)|0,o=o+Math.imul(g,$)|0;var eb=(u+(n=n+Math.imul(c,q)|0)|0)+((8191&(r=(r=r+Math.imul(c,G)|0)+Math.imul(h,q)|0))<<13)|0;u=((o=o+Math.imul(h,G)|0)+(r>>>13)|0)+(eb>>>26)|0,eb&=67108863,n=Math.imul(_,V),r=(r=Math.imul(_,j))+Math.imul(w,V)|0,o=Math.imul(w,j),n=n+Math.imul(v,U)|0,r=(r=r+Math.imul(v,$)|0)+Math.imul(b,U)|0,o=o+Math.imul(b,$)|0,n=n+Math.imul(p,q)|0,r=(r=r+Math.imul(p,G)|0)+Math.imul(g,q)|0,o=o+Math.imul(g,G)|0;var ey=(u+(n=n+Math.imul(c,Y)|0)|0)+((8191&(r=(r=r+Math.imul(c,J)|0)+Math.imul(h,Y)|0))<<13)|0;u=((o=o+Math.imul(h,J)|0)+(r>>>13)|0)+(ey>>>26)|0,ey&=67108863,n=Math.imul(S,V),r=(r=Math.imul(S,j))+Math.imul(x,V)|0,o=Math.imul(x,j),n=n+Math.imul(_,U)|0,r=(r=r+Math.imul(_,$)|0)+Math.imul(w,U)|0,o=o+Math.imul(w,$)|0,n=n+Math.imul(v,q)|0,r=(r=r+Math.imul(v,G)|0)+Math.imul(b,q)|0,o=o+Math.imul(b,G)|0,n=n+Math.imul(p,Y)|0,r=(r=r+Math.imul(p,J)|0)+Math.imul(g,Y)|0,o=o+Math.imul(g,J)|0;var e_=(u+(n=n+Math.imul(c,X)|0)|0)+((8191&(r=(r=r+Math.imul(c,ee)|0)+Math.imul(h,X)|0))<<13)|0;u=((o=o+Math.imul(h,ee)|0)+(r>>>13)|0)+(e_>>>26)|0,e_&=67108863,n=Math.imul(E,V),r=(r=Math.imul(E,j))+Math.imul(L,V)|0,o=Math.imul(L,j),n=n+Math.imul(S,U)|0,r=(r=r+Math.imul(S,$)|0)+Math.imul(x,U)|0,o=o+Math.imul(x,$)|0,n=n+Math.imul(_,q)|0,r=(r=r+Math.imul(_,G)|0)+Math.imul(w,q)|0,o=o+Math.imul(w,G)|0,n=n+Math.imul(v,Y)|0,r=(r=r+Math.imul(v,J)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,J)|0,n=n+Math.imul(p,X)|0,r=(r=r+Math.imul(p,ee)|0)+Math.imul(g,X)|0,o=o+Math.imul(g,ee)|0;var ew=(u+(n=n+Math.imul(c,ei)|0)|0)+((8191&(r=(r=r+Math.imul(c,en)|0)+Math.imul(h,ei)|0))<<13)|0;u=((o=o+Math.imul(h,en)|0)+(r>>>13)|0)+(ew>>>26)|0,ew&=67108863,n=Math.imul(N,V),r=(r=Math.imul(N,j))+Math.imul(D,V)|0,o=Math.imul(D,j),n=n+Math.imul(E,U)|0,r=(r=r+Math.imul(E,$)|0)+Math.imul(L,U)|0,o=o+Math.imul(L,$)|0,n=n+Math.imul(S,q)|0,r=(r=r+Math.imul(S,G)|0)+Math.imul(x,q)|0,o=o+Math.imul(x,G)|0,n=n+Math.imul(_,Y)|0,r=(r=r+Math.imul(_,J)|0)+Math.imul(w,Y)|0,o=o+Math.imul(w,J)|0,n=n+Math.imul(v,X)|0,r=(r=r+Math.imul(v,ee)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,ee)|0,n=n+Math.imul(p,ei)|0,r=(r=r+Math.imul(p,en)|0)+Math.imul(g,ei)|0,o=o+Math.imul(g,en)|0;var eC=(u+(n=n+Math.imul(c,eo)|0)|0)+((8191&(r=(r=r+Math.imul(c,es)|0)+Math.imul(h,eo)|0))<<13)|0;u=((o=o+Math.imul(h,es)|0)+(r>>>13)|0)+(eC>>>26)|0,eC&=67108863,n=Math.imul(T,V),r=(r=Math.imul(T,j))+Math.imul(I,V)|0,o=Math.imul(I,j),n=n+Math.imul(N,U)|0,r=(r=r+Math.imul(N,$)|0)+Math.imul(D,U)|0,o=o+Math.imul(D,$)|0,n=n+Math.imul(E,q)|0,r=(r=r+Math.imul(E,G)|0)+Math.imul(L,q)|0,o=o+Math.imul(L,G)|0,n=n+Math.imul(S,Y)|0,r=(r=r+Math.imul(S,J)|0)+Math.imul(x,Y)|0,o=o+Math.imul(x,J)|0,n=n+Math.imul(_,X)|0,r=(r=r+Math.imul(_,ee)|0)+Math.imul(w,X)|0,o=o+Math.imul(w,ee)|0,n=n+Math.imul(v,ei)|0,r=(r=r+Math.imul(v,en)|0)+Math.imul(b,ei)|0,o=o+Math.imul(b,en)|0,n=n+Math.imul(p,eo)|0,r=(r=r+Math.imul(p,es)|0)+Math.imul(g,eo)|0,o=o+Math.imul(g,es)|0;var eS=(u+(n=n+Math.imul(c,el)|0)|0)+((8191&(r=(r=r+Math.imul(c,eu)|0)+Math.imul(h,el)|0))<<13)|0;u=((o=o+Math.imul(h,eu)|0)+(r>>>13)|0)+(eS>>>26)|0,eS&=67108863,n=Math.imul(P,V),r=(r=Math.imul(P,j))+Math.imul(R,V)|0,o=Math.imul(R,j),n=n+Math.imul(T,U)|0,r=(r=r+Math.imul(T,$)|0)+Math.imul(I,U)|0,o=o+Math.imul(I,$)|0,n=n+Math.imul(N,q)|0,r=(r=r+Math.imul(N,G)|0)+Math.imul(D,q)|0,o=o+Math.imul(D,G)|0,n=n+Math.imul(E,Y)|0,r=(r=r+Math.imul(E,J)|0)+Math.imul(L,Y)|0,o=o+Math.imul(L,J)|0,n=n+Math.imul(S,X)|0,r=(r=r+Math.imul(S,ee)|0)+Math.imul(x,X)|0,o=o+Math.imul(x,ee)|0,n=n+Math.imul(_,ei)|0,r=(r=r+Math.imul(_,en)|0)+Math.imul(w,ei)|0,o=o+Math.imul(w,en)|0,n=n+Math.imul(v,eo)|0,r=(r=r+Math.imul(v,es)|0)+Math.imul(b,eo)|0,o=o+Math.imul(b,es)|0,n=n+Math.imul(p,el)|0,r=(r=r+Math.imul(p,eu)|0)+Math.imul(g,el)|0,o=o+Math.imul(g,eu)|0;var ex=(u+(n=n+Math.imul(c,ec)|0)|0)+((8191&(r=(r=r+Math.imul(c,eh)|0)+Math.imul(h,ec)|0))<<13)|0;u=((o=o+Math.imul(h,eh)|0)+(r>>>13)|0)+(ex>>>26)|0,ex&=67108863,n=Math.imul(B,V),r=(r=Math.imul(B,j))+Math.imul(H,V)|0,o=Math.imul(H,j),n=n+Math.imul(P,U)|0,r=(r=r+Math.imul(P,$)|0)+Math.imul(R,U)|0,o=o+Math.imul(R,$)|0,n=n+Math.imul(T,q)|0,r=(r=r+Math.imul(T,G)|0)+Math.imul(I,q)|0,o=o+Math.imul(I,G)|0,n=n+Math.imul(N,Y)|0,r=(r=r+Math.imul(N,J)|0)+Math.imul(D,Y)|0,o=o+Math.imul(D,J)|0,n=n+Math.imul(E,X)|0,r=(r=r+Math.imul(E,ee)|0)+Math.imul(L,X)|0,o=o+Math.imul(L,ee)|0,n=n+Math.imul(S,ei)|0,r=(r=r+Math.imul(S,en)|0)+Math.imul(x,ei)|0,o=o+Math.imul(x,en)|0,n=n+Math.imul(_,eo)|0,r=(r=r+Math.imul(_,es)|0)+Math.imul(w,eo)|0,o=o+Math.imul(w,es)|0,n=n+Math.imul(v,el)|0,r=(r=r+Math.imul(v,eu)|0)+Math.imul(b,el)|0,o=o+Math.imul(b,eu)|0,n=n+Math.imul(p,ec)|0,r=(r=r+Math.imul(p,eh)|0)+Math.imul(g,ec)|0,o=o+Math.imul(g,eh)|0;var ek=(u+(n=n+Math.imul(c,ep)|0)|0)+((8191&(r=(r=r+Math.imul(c,eg)|0)+Math.imul(h,ep)|0))<<13)|0;u=((o=o+Math.imul(h,eg)|0)+(r>>>13)|0)+(ek>>>26)|0,ek&=67108863,n=Math.imul(B,U),r=(r=Math.imul(B,$))+Math.imul(H,U)|0,o=Math.imul(H,$),n=n+Math.imul(P,q)|0,r=(r=r+Math.imul(P,G)|0)+Math.imul(R,q)|0,o=o+Math.imul(R,G)|0,n=n+Math.imul(T,Y)|0,r=(r=r+Math.imul(T,J)|0)+Math.imul(I,Y)|0,o=o+Math.imul(I,J)|0,n=n+Math.imul(N,X)|0,r=(r=r+Math.imul(N,ee)|0)+Math.imul(D,X)|0,o=o+Math.imul(D,ee)|0,n=n+Math.imul(E,ei)|0,r=(r=r+Math.imul(E,en)|0)+Math.imul(L,ei)|0,o=o+Math.imul(L,en)|0,n=n+Math.imul(S,eo)|0,r=(r=r+Math.imul(S,es)|0)+Math.imul(x,eo)|0,o=o+Math.imul(x,es)|0,n=n+Math.imul(_,el)|0,r=(r=r+Math.imul(_,eu)|0)+Math.imul(w,el)|0,o=o+Math.imul(w,eu)|0,n=n+Math.imul(v,ec)|0,r=(r=r+Math.imul(v,eh)|0)+Math.imul(b,ec)|0,o=o+Math.imul(b,eh)|0;var eE=(u+(n=n+Math.imul(p,ep)|0)|0)+((8191&(r=(r=r+Math.imul(p,eg)|0)+Math.imul(g,ep)|0))<<13)|0;u=((o=o+Math.imul(g,eg)|0)+(r>>>13)|0)+(eE>>>26)|0,eE&=67108863,n=Math.imul(B,q),r=(r=Math.imul(B,G))+Math.imul(H,q)|0,o=Math.imul(H,G),n=n+Math.imul(P,Y)|0,r=(r=r+Math.imul(P,J)|0)+Math.imul(R,Y)|0,o=o+Math.imul(R,J)|0,n=n+Math.imul(T,X)|0,r=(r=r+Math.imul(T,ee)|0)+Math.imul(I,X)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(N,ei)|0,r=(r=r+Math.imul(N,en)|0)+Math.imul(D,ei)|0,o=o+Math.imul(D,en)|0,n=n+Math.imul(E,eo)|0,r=(r=r+Math.imul(E,es)|0)+Math.imul(L,eo)|0,o=o+Math.imul(L,es)|0,n=n+Math.imul(S,el)|0,r=(r=r+Math.imul(S,eu)|0)+Math.imul(x,el)|0,o=o+Math.imul(x,eu)|0,n=n+Math.imul(_,ec)|0,r=(r=r+Math.imul(_,eh)|0)+Math.imul(w,ec)|0,o=o+Math.imul(w,eh)|0;var eL=(u+(n=n+Math.imul(v,ep)|0)|0)+((8191&(r=(r=r+Math.imul(v,eg)|0)+Math.imul(b,ep)|0))<<13)|0;u=((o=o+Math.imul(b,eg)|0)+(r>>>13)|0)+(eL>>>26)|0,eL&=67108863,n=Math.imul(B,Y),r=(r=Math.imul(B,J))+Math.imul(H,Y)|0,o=Math.imul(H,J),n=n+Math.imul(P,X)|0,r=(r=r+Math.imul(P,ee)|0)+Math.imul(R,X)|0,o=o+Math.imul(R,ee)|0,n=n+Math.imul(T,ei)|0,r=(r=r+Math.imul(T,en)|0)+Math.imul(I,ei)|0,o=o+Math.imul(I,en)|0,n=n+Math.imul(N,eo)|0,r=(r=r+Math.imul(N,es)|0)+Math.imul(D,eo)|0,o=o+Math.imul(D,es)|0,n=n+Math.imul(E,el)|0,r=(r=r+Math.imul(E,eu)|0)+Math.imul(L,el)|0,o=o+Math.imul(L,eu)|0,n=n+Math.imul(S,ec)|0,r=(r=r+Math.imul(S,eh)|0)+Math.imul(x,ec)|0,o=o+Math.imul(x,eh)|0;var eM=(u+(n=n+Math.imul(_,ep)|0)|0)+((8191&(r=(r=r+Math.imul(_,eg)|0)+Math.imul(w,ep)|0))<<13)|0;u=((o=o+Math.imul(w,eg)|0)+(r>>>13)|0)+(eM>>>26)|0,eM&=67108863,n=Math.imul(B,X),r=(r=Math.imul(B,ee))+Math.imul(H,X)|0,o=Math.imul(H,ee),n=n+Math.imul(P,ei)|0,r=(r=r+Math.imul(P,en)|0)+Math.imul(R,ei)|0,o=o+Math.imul(R,en)|0,n=n+Math.imul(T,eo)|0,r=(r=r+Math.imul(T,es)|0)+Math.imul(I,eo)|0,o=o+Math.imul(I,es)|0,n=n+Math.imul(N,el)|0,r=(r=r+Math.imul(N,eu)|0)+Math.imul(D,el)|0,o=o+Math.imul(D,eu)|0,n=n+Math.imul(E,ec)|0,r=(r=r+Math.imul(E,eh)|0)+Math.imul(L,ec)|0,o=o+Math.imul(L,eh)|0;var eN=(u+(n=n+Math.imul(S,ep)|0)|0)+((8191&(r=(r=r+Math.imul(S,eg)|0)+Math.imul(x,ep)|0))<<13)|0;u=((o=o+Math.imul(x,eg)|0)+(r>>>13)|0)+(eN>>>26)|0,eN&=67108863,n=Math.imul(B,ei),r=(r=Math.imul(B,en))+Math.imul(H,ei)|0,o=Math.imul(H,en),n=n+Math.imul(P,eo)|0,r=(r=r+Math.imul(P,es)|0)+Math.imul(R,eo)|0,o=o+Math.imul(R,es)|0,n=n+Math.imul(T,el)|0,r=(r=r+Math.imul(T,eu)|0)+Math.imul(I,el)|0,o=o+Math.imul(I,eu)|0,n=n+Math.imul(N,ec)|0,r=(r=r+Math.imul(N,eh)|0)+Math.imul(D,ec)|0,o=o+Math.imul(D,eh)|0;var eD=(u+(n=n+Math.imul(E,ep)|0)|0)+((8191&(r=(r=r+Math.imul(E,eg)|0)+Math.imul(L,ep)|0))<<13)|0;u=((o=o+Math.imul(L,eg)|0)+(r>>>13)|0)+(eD>>>26)|0,eD&=67108863,n=Math.imul(B,eo),r=(r=Math.imul(B,es))+Math.imul(H,eo)|0,o=Math.imul(H,es),n=n+Math.imul(P,el)|0,r=(r=r+Math.imul(P,eu)|0)+Math.imul(R,el)|0,o=o+Math.imul(R,eu)|0,n=n+Math.imul(T,ec)|0,r=(r=r+Math.imul(T,eh)|0)+Math.imul(I,ec)|0,o=o+Math.imul(I,eh)|0;var eA=(u+(n=n+Math.imul(N,ep)|0)|0)+((8191&(r=(r=r+Math.imul(N,eg)|0)+Math.imul(D,ep)|0))<<13)|0;u=((o=o+Math.imul(D,eg)|0)+(r>>>13)|0)+(eA>>>26)|0,eA&=67108863,n=Math.imul(B,el),r=(r=Math.imul(B,eu))+Math.imul(H,el)|0,o=Math.imul(H,eu),n=n+Math.imul(P,ec)|0,r=(r=r+Math.imul(P,eh)|0)+Math.imul(R,ec)|0,o=o+Math.imul(R,eh)|0;var eT=(u+(n=n+Math.imul(T,ep)|0)|0)+((8191&(r=(r=r+Math.imul(T,eg)|0)+Math.imul(I,ep)|0))<<13)|0;u=((o=o+Math.imul(I,eg)|0)+(r>>>13)|0)+(eT>>>26)|0,eT&=67108863,n=Math.imul(B,ec),r=(r=Math.imul(B,eh))+Math.imul(H,ec)|0,o=Math.imul(H,eh);var eI=(u+(n=n+Math.imul(P,ep)|0)|0)+((8191&(r=(r=r+Math.imul(P,eg)|0)+Math.imul(R,ep)|0))<<13)|0;u=((o=o+Math.imul(R,eg)|0)+(r>>>13)|0)+(eI>>>26)|0,eI&=67108863;var eO=(u+(n=Math.imul(B,ep))|0)+((8191&(r=(r=Math.imul(B,eg))+Math.imul(H,ep)|0))<<13)|0;return u=((o=Math.imul(H,eg))+(r>>>13)|0)+(eO>>>26)|0,eO&=67108863,l[0]=em,l[1]=ev,l[2]=eb,l[3]=ey,l[4]=e_,l[5]=ew,l[6]=eC,l[7]=eS,l[8]=ex,l[9]=ek,l[10]=eE,l[11]=eL,l[12]=eM,l[13]=eN,l[14]=eD,l[15]=eA,l[16]=eT,l[17]=eI,l[18]=eO,0!==u&&(l[19]=u,i.length++),i};function v(e,t,i){i.negative=t.negative^e.negative,i.length=e.length+t.length;for(var n=0,r=0,o=0;o>>26)|0)>>>26,s&=67108863}i.words[o]=a,n=s,s=r}return 0!==n?i.words[o]=n:i.length--,i._strip()}function b(e,t){this.x=e,this.y=t}Math.imul||(m=g),o.prototype.mulTo=function(e,t){var i=this.length+e.length;return 10===this.length&&10===e.length?m(this,e,t):i<63?g(this,e,t):v(this,e,t)},b.prototype.makeRBT=function(e){for(var t=Array(e),i=o.prototype._countBits(e)-1,n=0;n>=1;return n},b.prototype.permute=function(e,t,i,n,r,o){for(var s=0;s>>=1)r++;return 1<>>=13,i[2*s+1]=8191&o,o>>>=13;for(s=2*t;s>=26,i+=(o/67108864|0)+(s>>>26),this.words[r]=67108863&s}return 0!==i&&(this.words[r]=i,this.length++),t?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),i=0;i>>r&1}return t}(e);if(0===t.length)return new o(1);for(var i=this,n=0;n=0);var t,i=e%26,r=(e-i)/26,o=67108863>>>26-i<<26-i;if(0!==i){var s=0;for(t=0;t>>26-i}s&&(this.words[t]=s,this.length++)}if(0!==r){for(t=this.length-1;t>=0;t--)this.words[t+r]=this.words[t];for(t=0;t=0),r=t?(t-t%26)/26:0;var r,o=e%26,s=Math.min((e-o)/26,this.length),a=67108863^67108863>>>o<s)for(this.length-=s,l=0;l=0&&(0!==u||l>=r);l--){var d=0|this.words[l];this.words[l]=u<<26-o|d>>>o,u=d&a}return i&&0!==u&&(i.words[i.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,t,i){return n(0===this.negative),this.iushrn(e,t,i)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,i=(e-t)/26;return!(this.length<=i)&&!!(this.words[i]&1<=0);var t=e%26,i=(e-t)/26;return(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=i)?this:(0!==t&&i++,this.length=Math.min(i,this.length),0!==t&&(this.words[this.length-1]&=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(l/67108864|0),this.words[r+i]=67108863&o}for(;r>26,this.words[r+i]=67108863&o;if(0===a)return this._strip();for(n(-1===a),a=0,r=0;r>26,this.words[r]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,t){var i,n=this.length-e.length,r=this.clone(),s=e,a=0|s.words[s.length-1];0!=(n=26-this._countBits(a))&&(s=s.ushln(n),r.iushln(n),a=0|s.words[s.length-1]);var l=r.length-s.length;if("mod"!==t){(i=new o(null)).length=l+1,i.words=Array(i.length);for(var u=0;u=0;c--){var h=(0|r.words[s.length+c])*67108864+(0|r.words[s.length+c-1]);for(h=Math.min(h/a|0,67108863),r._ishlnsubmul(s,h,c);0!==r.negative;)h--,r.negative=0,r._ishlnsubmul(s,1,c),r.isZero()||(r.negative^=1);i&&(i.words[c]=h)}return i&&i._strip(),r._strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:i||null,mod:r}},o.prototype.divmod=function(e,t,i){var r,s,a;return(n(!e.isZero()),this.isZero())?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),"mod"!==t&&(r=a.div.neg()),"div"!==t&&(s=a.mod.neg(),i&&0!==s.negative&&s.iadd(e)),{div:r,mod:s}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),"mod"!==t&&(r=a.div.neg()),{div:r,mod:a.mod}):(this.negative&e.negative)!=0?(a=this.neg().divmod(e.neg(),t),"div"!==t&&(s=a.mod.neg(),i&&0!==s.negative&&s.isub(e)),{div:a.div,mod:s}):e.length>this.length||0>this.cmp(e)?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,t)},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var i=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),r=e.andln(1),o=i.cmp(n);return o<0||1===r&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var i=67108864%e,r=0,o=this.length-1;o>=0;o--)r=(i*r+(0|this.words[o]))%e;return t?-r:r},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var i=0,r=this.length-1;r>=0;r--){var o=(0|this.words[r])+67108864*i;this.words[r]=o/e|0,i=o%e}return this._strip(),t?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,i=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var r=new o(1),s=new o(0),a=new o(0),l=new o(1),u=0;t.isEven()&&i.isEven();)t.iushrn(1),i.iushrn(1),++u;for(var d=i.clone(),c=t.clone();!t.isZero();){for(var h=0,f=1;(t.words[0]&f)==0&&h<26;++h,f<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(r.isOdd()||s.isOdd())&&(r.iadd(d),s.isub(c)),r.iushrn(1),s.iushrn(1);for(var p=0,g=1;(i.words[0]&g)==0&&p<26;++p,g<<=1);if(p>0)for(i.iushrn(p);p-- >0;)(a.isOdd()||l.isOdd())&&(a.iadd(d),l.isub(c)),a.iushrn(1),l.iushrn(1);t.cmp(i)>=0?(t.isub(i),r.isub(a),s.isub(l)):(i.isub(t),a.isub(r),l.isub(s))}return{a:a,b:l,gcd:i.iushln(u)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t,i=this,r=e.clone();i=0!==i.negative?i.umod(e):i.clone();for(var s=new o(1),a=new o(0),l=r.clone();i.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,d=1;(i.words[0]&d)==0&&u<26;++u,d<<=1);if(u>0)for(i.iushrn(u);u-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);for(var c=0,h=1;(r.words[0]&h)==0&&c<26;++c,h<<=1);if(c>0)for(r.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);i.cmp(r)>=0?(i.isub(r),s.isub(a)):(r.isub(i),a.isub(s))}return 0>(t=0===i.cmpn(1)?s:a).cmpn(0)&&t.iadd(e),t},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),i=e.clone();t.negative=0,i.negative=0;for(var n=0;t.isEven()&&i.isEven();n++)t.iushrn(1),i.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;i.isEven();)i.iushrn(1);var r=t.cmp(i);if(r<0){var o=t;t=i,i=o}else if(0===r||0===i.cmpn(1))break;t.isub(i)}return i.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return(1&this.words[0])==0},o.prototype.isOdd=function(){return(1&this.words[0])==1},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,i=(e-t)/26,r=1<>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,i=e<0;if(0!==this.negative&&!i)return -1;if(0===this.negative&&i)return 1;if(this._strip(),this.length>1)t=1;else{i&&(e=-e),n(e<=67108863,"Number is too big");var r=0|this.words[0];t=r===e?0:re.length)return 1;if(this.length=0;i--){var n=0|this.words[i],r=0|e.words[i];if(n!==r){nr&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return -1===this.cmpn(e)},o.prototype.lt=function(e){return -1===this.cmp(e)},o.prototype.lten=function(e){return 0>=this.cmpn(e)},o.prototype.lte=function(e){return 0>=this.cmp(e)},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new k(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var y={k256:null,p224:null,p192:null,p25519:null};function _(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){_.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function C(){_.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function S(){_.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){_.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function E(e){k.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}_.prototype._tmp=function(){var e=new o(null);return e.words=Array(Math.ceil(this.n/13)),e},_.prototype.ireduce=function(e){var t,i=e;do this.split(i,this.tmp),t=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength();while(t>this.n)var n=t0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},_.prototype.split=function(e,t){e.iushrn(this.n,0,t)},_.prototype.imulK=function(e){return e.imul(this.k)},r(w,_),w.prototype.split=function(e,t){for(var i=Math.min(e.length,9),n=0;n>>22,r=o}r>>>=22,e.words[n-10]=r,0===r&&e.length>10?e.length-=10:e.length-=9},w.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,i=0;i>>=26,e.words[i]=r,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){var t;if(y[e])return y[e];if("k256"===e)t=new w;else if("p224"===e)t=new C;else if("p192"===e)t=new S;else if("p25519"===e)t=new x;else throw Error("Unknown prime "+e);return y[e]=t,t},k.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},k.prototype._verify2=function(e,t){n((e.negative|t.negative)==0,"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},k.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(u(e,e.umod(this.m)._forceRed(this)),e)},k.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},k.prototype.add=function(e,t){this._verify2(e,t);var i=e.add(t);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},k.prototype.iadd=function(e,t){this._verify2(e,t);var i=e.iadd(t);return i.cmp(this.m)>=0&&i.isub(this.m),i},k.prototype.sub=function(e,t){this._verify2(e,t);var i=e.sub(t);return 0>i.cmpn(0)&&i.iadd(this.m),i._forceRed(this)},k.prototype.isub=function(e,t){this._verify2(e,t);var i=e.isub(t);return 0>i.cmpn(0)&&i.iadd(this.m),i},k.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},k.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},k.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},k.prototype.isqr=function(e){return this.imul(e,e.clone())},k.prototype.sqr=function(e){return this.mul(e,e)},k.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var i=this.m.add(new o(1)).iushrn(2);return this.pow(e,i)}for(var r=this.m.subn(1),s=0;!r.isZero()&&0===r.andln(1);)s++,r.iushrn(1);n(!r.isZero());var a=new o(1).toRed(this),l=a.redNeg(),u=this.m.subn(1).iushrn(1),d=this.m.bitLength();for(d=new o(2*d*d).toRed(this);0!==this.pow(d,u).cmp(l);)d.redIAdd(l);for(var c=this.pow(d,r),h=this.pow(e,r.addn(1).iushrn(1)),f=this.pow(e,r),p=s;0!==f.cmp(a);){for(var g=f,m=0;0!==g.cmp(a);m++)g=g.redSqr();n(m=0;n--){for(var u=t.words[n],d=l-1;d>=0;d--){var c=u>>d&1;if(r!==i[0]&&(r=this.sqr(r)),0===c&&0===s){a=0;continue}s<<=1,s|=c,(4==++a||0===n&&0===d)&&(r=this.mul(r,i[s]),a=0,s=0)}l=26}return r},k.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},k.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new E(e)},r(E,k),E.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},E.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},E.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):0>r.cmpn(0)&&(o=r.iadd(this.m)),o._forceRed(this)},E.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var i=e.mul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),s=r;return r.cmp(this.m)>=0?s=r.isub(this.m):0>r.cmpn(0)&&(s=r.iadd(this.m)),s._forceRed(this)},E.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=i.nmd(e),this)},83620:(e,t,i)=>{"use strict";i.r(t),i.d(t,{commify:()=>G,formatEther:()=>J,formatUnits:()=>Z,parseEther:()=>Q,parseUnits:()=>Y});let n=!1,r=!1,o={debug:1,default:2,info:2,warning:3,error:4,off:5},s=2,a=null,l=function(){try{let e=[];if(["NFD","NFC","NFKD","NFKC"].forEach(t=>{try{if("test"!=="test".normalize(t))throw Error("bad normalize")}catch(i){e.push(t)}}),e.length)throw Error("missing "+e.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw Error("broken implementation")}catch(e){return e.message}return null}();!function(e){e.DEBUG="DEBUG",e.INFO="INFO",e.WARNING="WARNING",e.ERROR="ERROR",e.OFF="OFF"}(w||(w={})),function(e){e.UNKNOWN_ERROR="UNKNOWN_ERROR",e.NOT_IMPLEMENTED="NOT_IMPLEMENTED",e.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",e.NETWORK_ERROR="NETWORK_ERROR",e.SERVER_ERROR="SERVER_ERROR",e.TIMEOUT="TIMEOUT",e.BUFFER_OVERRUN="BUFFER_OVERRUN",e.NUMERIC_FAULT="NUMERIC_FAULT",e.MISSING_NEW="MISSING_NEW",e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.MISSING_ARGUMENT="MISSING_ARGUMENT",e.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",e.CALL_EXCEPTION="CALL_EXCEPTION",e.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",e.NONCE_EXPIRED="NONCE_EXPIRED",e.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",e.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",e.TRANSACTION_REPLACED="TRANSACTION_REPLACED",e.ACTION_REJECTED="ACTION_REJECTED"}(C||(C={}));let u="0123456789abcdef";class d{constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,t){let i=e.toLowerCase();null==o[i]&&this.throwArgumentError("invalid log level name","logLevel",e),s>o[i]||console.log.apply(console,t)}debug(...e){this._log(d.levels.DEBUG,e)}info(...e){this._log(d.levels.INFO,e)}warn(...e){this._log(d.levels.WARNING,e)}makeError(e,t,i){if(r)return this.makeError("censored error",t,{});t||(t=d.errors.UNKNOWN_ERROR),i||(i={});let n=[];Object.keys(i).forEach(e=>{let t=i[e];try{if(t instanceof Uint8Array){let i="";for(let e=0;e>4]+u[15&t[e]];n.push(e+"=Uint8Array(0x"+i+")")}else n.push(e+"="+JSON.stringify(t))}catch(t){n.push(e+"="+JSON.stringify(i[e].toString()))}}),n.push(`code=${t}`),n.push(`version=${this.version}`);let o=e,s="";switch(t){case C.NUMERIC_FAULT:{s="NUMERIC_FAULT";let t=e;switch(t){case"overflow":case"underflow":case"division-by-zero":s+="-"+t;break;case"negative-power":case"negative-width":s+="-unsupported";break;case"unbound-bitwise-result":s+="-unbound-result"}break}case C.CALL_EXCEPTION:case C.INSUFFICIENT_FUNDS:case C.MISSING_NEW:case C.NONCE_EXPIRED:case C.REPLACEMENT_UNDERPRICED:case C.TRANSACTION_REPLACED:case C.UNPREDICTABLE_GAS_LIMIT:s=t}s&&(e+=" [ See: https://links.ethers.org/v5-errors-"+s+" ]"),n.length&&(e+=" ("+n.join(", ")+")");let a=Error(e);return a.reason=o,a.code=t,Object.keys(i).forEach(function(e){a[e]=i[e]}),a}throwError(e,t,i){throw this.makeError(e,t,i)}throwArgumentError(e,t,i){return this.throwError(e,d.errors.INVALID_ARGUMENT,{argument:t,value:i})}assert(e,t,i,n){e||this.throwError(t,i,n)}assertArgument(e,t,i,n){e||this.throwArgumentError(t,i,n)}checkNormalize(e){null==e&&(e="platform missing String.prototype.normalize"),l&&this.throwError("platform missing String.prototype.normalize",d.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:l})}checkSafeUint53(e,t){"number"==typeof e&&(null==t&&(t="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(t,d.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(t,d.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}checkArgumentCount(e,t,i){i=i?": "+i:"",et&&this.throwError("too many arguments"+i,d.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:t})}checkNew(e,t){(e===Object||null==e)&&this.throwError("missing new",d.errors.MISSING_NEW,{name:t.name})}checkAbstract(e,t){e===t?this.throwError("cannot instantiate abstract class "+JSON.stringify(t.name)+" directly; use a sub-class",d.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):(e===Object||null==e)&&this.throwError("missing new",d.errors.MISSING_NEW,{name:t.name})}static globalLogger(){return a||(a=new d("logger/5.7.0")),a}static setCensorship(e,t){if(!e&&t&&this.globalLogger().throwError("cannot permanently disable censorship",d.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),n){if(!e)return;this.globalLogger().throwError("error censorship permanent",d.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}r=!!e,n=!!t}static setLogLevel(e){let t=o[e.toLowerCase()];if(null==t){d.globalLogger().warn("invalid log level - "+e);return}s=t}static from(e){return new d(e)}}d.errors=C,d.levels=w;let c=new d("bytes/5.7.0");function h(e){return!!e.toHexString}function f(e){return e.slice||(e.slice=function(){let t=Array.prototype.slice.call(arguments);return f(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function p(e){return"number"==typeof e&&e==e&&e%1==0}function g(e){if(null==e)return!1;if(e.constructor===Uint8Array)return!0;if("string"==typeof e||!p(e.length)||e.length<0)return!1;for(let t=0;t=256)return!1}return!0}function m(e,t){return"string"==typeof e&&!!e.match(/^0x[0-9A-Fa-f]*$/)&&(!t||e.length===2+2*t)}let v="0123456789abcdef";function b(e,t){if(t||(t={}),"number"==typeof e){c.checkSafeUint53(e,"invalid hexlify value");let t="";for(;e;)t=v[15&e]+t,e=Math.floor(e/16);return t.length?(t.length%2&&(t="0"+t),"0x"+t):"0x00"}if("bigint"==typeof e)return(e=e.toString(16)).length%2?"0x0"+e:"0x"+e;if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),h(e))return e.toHexString();if(m(e))return e.length%2&&("left"===t.hexPad?e="0x0"+e.substring(2):"right"===t.hexPad?e+="0":c.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(g(e)){let t="0x";for(let i=0;i>4]+v[15&n]}return t}return c.throwArgumentError("invalid hexlify value","value",e)}function y(e,t){for("string"!=typeof e?e=b(e):m(e)||c.throwArgumentError("invalid hex string","value",e),e.length>2*t+2&&c.throwArgumentError("value out of range","value",arguments[1]);e.length<2*t+2;)e="0x0"+e.substring(2);return e}let _="bignumber/5.7.0";var w,C,S=i(54269),x=i.n(S)().BN;let k=new d(_),E={},L=!1;class M{constructor(e,t){e!==E&&k.throwError("cannot call constructor directly; use BigNumber.from",d.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=t,this._isBigNumber=!0,Object.freeze(this)}fromTwos(e){return D(A(this).fromTwos(e))}toTwos(e){return D(A(this).toTwos(e))}abs(){return"-"===this._hex[0]?M.from(this._hex.substring(1)):this}add(e){return D(A(this).add(A(e)))}sub(e){return D(A(this).sub(A(e)))}div(e){return M.from(e).isZero()&&T("division-by-zero","div"),D(A(this).div(A(e)))}mul(e){return D(A(this).mul(A(e)))}mod(e){let t=A(e);return t.isNeg()&&T("division-by-zero","mod"),D(A(this).umod(t))}pow(e){let t=A(e);return t.isNeg()&&T("negative-power","pow"),D(A(this).pow(t))}and(e){let t=A(e);return(this.isNegative()||t.isNeg())&&T("unbound-bitwise-result","and"),D(A(this).and(t))}or(e){let t=A(e);return(this.isNegative()||t.isNeg())&&T("unbound-bitwise-result","or"),D(A(this).or(t))}xor(e){let t=A(e);return(this.isNegative()||t.isNeg())&&T("unbound-bitwise-result","xor"),D(A(this).xor(t))}mask(e){return(this.isNegative()||e<0)&&T("negative-width","mask"),D(A(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&T("negative-width","shl"),D(A(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&T("negative-width","shr"),D(A(this).shrn(e))}eq(e){return A(this).eq(A(e))}lt(e){return A(this).lt(A(e))}lte(e){return A(this).lte(A(e))}gt(e){return A(this).gt(A(e))}gte(e){return A(this).gte(A(e))}isNegative(){return"-"===this._hex[0]}isZero(){return A(this).isZero()}toNumber(){try{return A(this).toNumber()}catch(e){T("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(e){}return k.throwError("this platform does not support BigInt",d.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?L||(L=!0,k.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?k.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",d.errors.UNEXPECTED_ARGUMENT,{}):k.throwError("BigNumber.toString does not accept parameters",d.errors.UNEXPECTED_ARGUMENT,{})),A(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:"BigNumber",hex:this.toHexString()}}static from(e){if(e instanceof M)return e;if("string"==typeof e)return e.match(/^-?0x[0-9a-f]+$/i)?new M(E,N(e)):e.match(/^-?[0-9]+$/)?new M(E,N(new x(e))):k.throwArgumentError("invalid BigNumber string","value",e);if("number"==typeof e)return e%1&&T("underflow","BigNumber.from",e),(e>=9007199254740991||e<=-9007199254740991)&&T("overflow","BigNumber.from",e),M.from(String(e));if("bigint"==typeof e)return M.from(e.toString());if(g(e))return M.from(b(e));if(e){if(e.toHexString){let t=e.toHexString();if("string"==typeof t)return M.from(t)}else{let t=e._hex;if(null==t&&"BigNumber"===e.type&&(t=e.hex),"string"==typeof t&&(m(t)||"-"===t[0]&&m(t.substring(1))))return M.from(t)}}return k.throwArgumentError("invalid BigNumber value","value",e)}static isBigNumber(e){return!!(e&&e._isBigNumber)}}function N(e){if("string"!=typeof e)return N(e.toString(16));if("-"===e[0])return("-"===(e=e.substring(1))[0]&&k.throwArgumentError("invalid hex","value",e),"0x00"===(e=N(e)))?e:"-"+e;if("0x"!==e.substring(0,2)&&(e="0x"+e),"0x"===e)return"0x00";for(e.length%2&&(e="0x0"+e.substring(2));e.length>4&&"0x00"===e.substring(0,4);)e="0x"+e.substring(4);return e}function D(e){return M.from(N(e))}function A(e){let t=M.from(e).toHexString();return"-"===t[0]?new x("-"+t.substring(3),16):new x(t.substring(2),16)}function T(e,t,i){let n={fault:e,operation:t};return null!=i&&(n.value=i),k.throwError(e,d.errors.NUMERIC_FAULT,n)}let I=new d(_),O={},P=M.from(0),R=M.from(-1);function F(e,t,i,n){let r={fault:t,operation:i};return void 0!==n&&(r.value=n),I.throwError(e,d.errors.NUMERIC_FAULT,r)}let B="0";for(;B.length<256;)B+=B;function H(e){if("number"!=typeof e)try{e=M.from(e).toNumber()}catch(e){}return"number"==typeof e&&e>=0&&e<=256&&!(e%1)?"1"+B.substring(0,e):I.throwArgumentError("invalid decimal size","decimals",e)}function z(e,t){null==t&&(t=0);let i=H(t),n=(e=M.from(e)).lt(P);n&&(e=e.mul(R));let r=e.mod(i).toString();for(;r.length2&&I.throwArgumentError("too many decimal points","value",e);let o=r[0],s=r[1];for(o||(o="0"),s||(s="0");"0"===s[s.length-1];)s=s.substring(0,s.length-1);for(s.length>i.length-1&&F("fractional component exceeds decimals","underflow","parseFixed"),""===s&&(s="0");s.lengthnull==e[t]?n:(typeof e[t]!==i&&I.throwArgumentError("invalid fixed format ("+t+" not "+i+")","format."+t,e[t]),e[t]);t=r("signed","boolean",t),i=r("width","number",i),n=r("decimals","number",n)}return i%8&&I.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",i),n>80&&I.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",n),new j(O,t,i,n)}}class W{constructor(e,t,i,n){e!==O&&I.throwError("cannot use FixedNumber constructor; use FixedNumber.from",d.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=n,this._hex=t,this._value=i,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(e){this.format.name!==e.format.name&&I.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)}addUnsafe(e){this._checkFormat(e);let t=V(this._value,this.format.decimals),i=V(e._value,e.format.decimals);return W.fromValue(t.add(i),this.format.decimals,this.format)}subUnsafe(e){this._checkFormat(e);let t=V(this._value,this.format.decimals),i=V(e._value,e.format.decimals);return W.fromValue(t.sub(i),this.format.decimals,this.format)}mulUnsafe(e){this._checkFormat(e);let t=V(this._value,this.format.decimals),i=V(e._value,e.format.decimals);return W.fromValue(t.mul(i).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(e){this._checkFormat(e);let t=V(this._value,this.format.decimals),i=V(e._value,e.format.decimals);return W.fromValue(t.mul(this.format._multiplier).div(i),this.format.decimals,this.format)}floor(){let e=this.toString().split(".");1===e.length&&e.push("0");let t=W.from(e[0],this.format),i=!e[1].match(/^(0*)$/);return this.isNegative()&&i&&(t=t.subUnsafe(U.toFormat(t.format))),t}ceiling(){let e=this.toString().split(".");1===e.length&&e.push("0");let t=W.from(e[0],this.format),i=!e[1].match(/^(0*)$/);return!this.isNegative()&&i&&(t=t.addUnsafe(U.toFormat(t.format))),t}round(e){null==e&&(e=0);let t=this.toString().split(".");if(1===t.length&&t.push("0"),(e<0||e>80||e%1)&&I.throwArgumentError("invalid decimal count","decimals",e),t[1].length<=e)return this;let i=W.from("1"+B.substring(0,e),this.format),n=$.toFormat(this.format);return this.mulUnsafe(i).addUnsafe(n).floor().divUnsafe(i)}isZero(){return"0.0"===this._value||"0"===this._value}isNegative(){return"-"===this._value[0]}toString(){return this._value}toHexString(e){return null==e?this._hex:(e%8&&I.throwArgumentError("invalid byte width","width",e),y(M.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString(),e/8))}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(e){return W.fromString(this._value,e)}static fromValue(e,t,i){var n;return null!=i||null==t||null!=(n=t)&&(M.isBigNumber(n)||"number"==typeof n&&n%1==0||"string"==typeof n&&n.match(/^-?[0-9]+$/)||m(n)||"bigint"==typeof n||g(n))||(i=t,t=null),null==t&&(t=0),null==i&&(i="fixed"),W.fromString(z(e,t),j.from(i))}static fromString(e,t){null==t&&(t="fixed");let i=j.from(t),n=V(e,i.decimals);!i.signed&&n.lt(P)&&F("unsigned value cannot be negative","overflow","value",e);let r=null;r=i.signed?n.toTwos(i.width).toHexString():y(r=n.toHexString(),i.width/8);let o=z(n,i.decimals);return new W(O,r,o,i)}static fromBytes(e,t){null==t&&(t="fixed");let i=j.from(t);if(function(e,t){if(t||(t={}),"number"==typeof e){c.checkSafeUint53(e,"invalid arrayify value");let t=[];for(;e;)t.unshift(255&e),e=parseInt(String(e/256));return 0===t.length&&t.push(0),f(new Uint8Array(t))}if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),h(e)&&(e=e.toHexString()),m(e)){let i=e.substring(2);i.length%2&&("left"===t.hexPad?i="0"+i:"right"===t.hexPad?i+="0":c.throwArgumentError("hex data is odd-length","value",e));let n=[];for(let e=0;ei.width/8)throw Error("overflow");let n=M.from(e);i.signed&&(n=n.fromTwos(i.width));let r=n.toTwos((i.signed?0:1)+i.width).toHexString(),o=z(n,i.decimals);return new W(O,r,o,i)}static from(e,t){if("string"==typeof e)return W.fromString(e,t);if(g(e))return W.fromBytes(e,t);try{return W.fromValue(e,0,t)}catch(e){if(e.code!==d.errors.INVALID_ARGUMENT)throw e}return I.throwArgumentError("invalid FixedNumber value","value",e)}static isFixedNumber(e){return!!(e&&e._isFixedNumber)}}let U=W.from(1),$=W.from("0.5"),K=new d("units/5.7.0"),q=["wei","kwei","mwei","gwei","szabo","finney","ether"];function G(e){let t=String(e).split(".");(t.length>2||!t[0].match(/^-?[0-9]*$/)||t[1]&&!t[1].match(/^[0-9]*$/)||"."===e||"-."===e)&&K.throwArgumentError("invalid value","value",e);let i=t[0],n="";for("-"===i.substring(0,1)&&(n="-",i=i.substring(1));"0"===i.substring(0,1);)i=i.substring(1);""===i&&(i="0");let r="";for(2===t.length&&(r="."+(t[1]||"0"));r.length>2&&"0"===r[r.length-1];)r=r.substring(0,r.length-1);let o=[];for(;i.length;){if(i.length<=3){o.unshift(i);break}{let e=i.length-3;o.unshift(i.substring(e)),i=i.substring(0,e)}}return n+o.join(",")+r}function Z(e,t){if("string"==typeof t){let e=q.indexOf(t);-1!==e&&(t=3*e)}return z(e,null!=t?t:18)}function Y(e,t){if("string"!=typeof e&&K.throwArgumentError("value must be a string","value",e),"string"==typeof t){let e=q.indexOf(t);-1!==e&&(t=3*e)}return V(e,null!=t?t:18)}function J(e){return Z(e,18)}function Q(e){return Y(e,18)}},68872:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeSingle=t.decode=t.encodePacked=t.encodeSingle=t.encode=void 0;let n=i(45554),r=i(39777),o=i(69472);t.encode=(e,t,i,n)=>{try{return(0,o.pack)({types:e,values:t,packed:i,tight:n})}catch(e){if(e instanceof r.ParserError)throw new r.ParserError(`Unable to encode value: ${e.message}`,e);throw new r.ParserError(`An unexpected error occurred: ${(0,r.getErrorMessage)(e)}`,e)}},t.encodeSingle=(e,i)=>(0,t.encode)([e],[i]),t.encodePacked=(e,i,n)=>(0,t.encode)(e,i,!0,n),t.decode=(e,t)=>{let i=(0,n.createBytes)(t);try{return(0,o.unpack)(e,i)}catch(e){if(e instanceof r.ParserError)throw new r.ParserError(`Unable to decode value: ${e.message}`,e);throw new r.ParserError(`An unexpected error occurred: ${(0,r.getErrorMessage)(e)}`,e)}},t.decodeSingle=(e,i)=>{let o=(0,t.decode)([e],i);return(0,n.assert)(1===o.length,new r.ParserError("Decoded value array has unexpected length.")),o[0]}},39777:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ParserError=t.getErrorStack=t.getErrorMessage=void 0;let n=i(45554);t.getErrorMessage=e=>"string"==typeof e?e:e instanceof Error||(0,n.isObject)(e)&&(0,n.hasProperty)(e,"message")&&"string"==typeof e.message?e.message:"Unknown error.",t.getErrorStack=e=>{if(e instanceof Error)return e.stack},t.ParserError=class extends Error{constructor(e,i){super(e),this.name="ParserError";let n=(0,t.getErrorStack)(i);n&&(this.stack=n)}}},40260:function(e,t,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i);var r=Object.getOwnPropertyDescriptor(t,i);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,n,r)}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),r=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||n(t,e,i)};Object.defineProperty(t,"__esModule",{value:!0}),r(i(68872),t),r(i(39777),t),r(i(75858),t)},12378:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.iterate=void 0;let n=i(45554),r=function*(e,t=32){for(let i=0;i{(0,n.assert)(e>=0,"Cannot skip a negative number of bytes."),(0,n.assert)(e%t==0,"Length must be a multiple of the size."),i+=e},o=e.subarray(i);yield{skip:r,value:o}}return{skip:()=>void 0,value:new Uint8Array}};t.iterate=r},69472:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unpack=t.pack=t.isDynamicParser=t.getParser=void 0;let n=i(45554),r=i(39777),o=i(12378),s=i(84206),a=i(92313);t.getParser=e=>{let t={address:s.address,array:s.array,bool:s.bool,bytes:s.bytes,fixedBytes:s.fixedBytes,function:s.fn,number:s.number,string:s.string,tuple:s.tuple},i=t[e];if(i)return i;let n=Object.values(t).find(t=>t.isType(e));if(n)return n;throw new r.ParserError(`The type "${e}" is not supported.`)},t.isDynamicParser=(e,t)=>{let{isDynamic:i}=e;return"function"==typeof i?i(t):i},t.pack=({types:e,values:i,packed:o=!1,tight:s=!1,arrayPacked:l=!1,byteArray:u=new Uint8Array})=>{(0,n.assert)(e.length===i.length,new r.ParserError(`The number of types (${e.length}) does not match the number of values (${i.length}).`));let{staticBuffer:d,dynamicBuffer:c,pointers:h}=e.reduce(({staticBuffer:e,dynamicBuffer:r,pointers:a},u,d)=>{let c=(0,t.getParser)(u),h=i[d];return o||l||!(0,t.isDynamicParser)(c,u)?{staticBuffer:c.encode({buffer:e,value:h,type:u,packed:o,tight:s}),dynamicBuffer:r,pointers:a}:{staticBuffer:(0,n.concatBytes)([e,new Uint8Array(32)]),dynamicBuffer:c.encode({buffer:r,value:h,type:u,packed:o,tight:s}),pointers:[...a,{position:e.length,pointer:r.length}]}},{staticBuffer:new Uint8Array,dynamicBuffer:new Uint8Array,pointers:[]});(0,n.assert)(!o&&!l||0===c.length,new r.ParserError("Invalid pack state."));let f=d.length,p=h.reduce((e,{pointer:t,position:i})=>{let r=(0,a.padStart)((0,n.numberToBytes)(f+t));return(0,a.set)(e,r,i)},d);return(0,n.concatBytes)([u,p,c])},t.unpack=(e,i)=>{let s=(0,o.iterate)(i);return e.map(e=>{let{value:{value:o,skip:a},done:l}=s.next();(0,n.assert)(!l,new r.ParserError(`The encoded value is invalid for the provided types. Reached end of buffer while attempting to parse "${e}".`));let u=(0,t.getParser)(e);if((0,t.isDynamicParser)(u,e)){let t=(0,n.bytesToNumber)(o.subarray(0,32)),r=i.subarray(t);return u.decode({type:e,value:r,skip:a})}return u.decode({type:e,value:o,skip:a})})}},27683:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.address=t.getAddress=void 0;let n=i(45554),r=i(39777),o=i(92313);t.getAddress=e=>{let t=(0,n.createBytes)(e);return(0,n.assert)(t.length<=20,new r.ParserError(`Invalid address value. Expected address to be 20 bytes long, but received ${t.length} bytes.`)),(0,o.padStart)(t,20)},t.address={isDynamic:!1,isType:e=>"address"===e,getByteLength:()=>32,encode({buffer:e,value:i,packed:r}){let s=(0,t.getAddress)(i);if(r)return(0,n.concatBytes)([e,s]);let a=(0,o.padStart)(s);return(0,n.concatBytes)([e,a])},decode:({value:e})=>(0,n.add0x)((0,n.bytesToHex)(e.slice(12,32)))}},37759:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.array=t.getTupleType=t.getArrayType=t.isArrayType=void 0;let n=i(45554),r=i(39777),o=i(69472),s=i(92313),a=i(92408),l=i(44409),u=/^(?.*)\[(?\d*?)\]$/u;t.isArrayType=e=>u.test(e),t.getArrayType=e=>{let t=e.match(u);return(0,n.assert)(t?.groups?.type,new r.ParserError(`Invalid array type. Expected an array type, but received "${e}".`)),[t.groups.type,t.groups.length?parseInt(t.groups.length,10):void 0]},t.getTupleType=(e,t)=>`(${Array(t).fill(e).join(",")})`,t.array={isDynamic(e){let[i,n]=(0,t.getArrayType)(e);return void 0===n||(0,o.isDynamicParser)((0,o.getParser)(i),i)},isType:e=>(0,t.isArrayType)(e),getByteLength(e){(0,n.assert)((0,t.isArrayType)(e),new r.ParserError(`Expected an array type, but received "${e}".`));let[i,s]=(0,t.getArrayType)(e);return(0,o.isDynamicParser)(this,e)||void 0===s?32:l.tuple.getByteLength((0,t.getTupleType)(i,s))},encode({type:e,buffer:i,value:u,packed:d,tight:c}){let[h,f]=(0,t.getArrayType)(e);if((0,n.assert)(!d||!(0,t.isArrayType)(h),new r.ParserError("Cannot pack nested arrays.")),d&&(0,o.isDynamicParser)((0,o.getParser)(h),h))return(0,o.pack)({types:Array(u.length).fill(h),values:u,byteArray:i,packed:d,arrayPacked:!0,tight:c});if(f)return(0,n.assert)(f===u.length,new r.ParserError(`Array length does not match type length. Expected a length of ${f}, but received ${u.length}.`)),l.tuple.encode({type:(0,t.getTupleType)(h,f),buffer:i,value:u,packed:a.fixedBytes.isType(h)&&c,tight:c});if(d)return(0,o.pack)({types:Array(u.length).fill(h),values:u,byteArray:i,packed:a.fixedBytes.isType(h)&&c,arrayPacked:!0,tight:c});let p=(0,s.padStart)((0,n.numberToBytes)(u.length));return(0,o.pack)({types:Array(u.length).fill(h),values:u,byteArray:(0,n.concatBytes)([i,p]),packed:d,tight:c})},decode({type:e,value:i,...s}){let[a,u]=(0,t.getArrayType)(e);if(u){let e=l.tuple.decode({type:(0,t.getTupleType)(a,u),value:i,...s});return(0,n.assert)(e.length===u,new r.ParserError(`Array length does not match type length. Expected a length of ${u}, but received ${e.length}.`)),e}let d=(0,n.bytesToNumber)(i.subarray(0,32));return(0,o.unpack)(Array(d).fill(a),i.subarray(32))}}},18457:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bool=t.getBooleanValue=void 0;let n=i(45554),r=i(37715),o=i(39777),s=i(1001),a=(0,r.coerce)((0,r.boolean)(),(0,r.union)([(0,r.literal)("true"),(0,r.literal)("false")]),e=>"true"===e);t.getBooleanValue=e=>{try{if((0,r.create)(e,a))return BigInt(1);return BigInt(0)}catch{throw new o.ParserError(`Invalid boolean value. Expected a boolean literal, or the string "true" or "false", but received "${e}".`)}},t.bool={isDynamic:!1,isType:e=>"bool"===e,getByteLength:()=>32,encode({buffer:e,value:i,packed:r,tight:o}){let a=(0,t.getBooleanValue)(i);return r?(0,n.concatBytes)([e,(0,n.bigIntToBytes)(a)]):s.number.encode({type:"uint256",buffer:e,value:a,packed:r,tight:o})},decode:e=>s.number.decode({...e,type:"uint256"})===BigInt(1)}},37300:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bytes=void 0;let n=i(45554),r=i(92313);t.bytes={isDynamic:!0,isType:e=>"bytes"===e,getByteLength:()=>32,encode({buffer:e,value:t,packed:i}){let o=(0,n.createBytes)(t);if(i)return(0,n.concatBytes)([e,o]);let s=32*Math.ceil(o.byteLength/32);return(0,n.concatBytes)([e,(0,r.padStart)((0,n.numberToBytes)(o.byteLength)),(0,r.padEnd)(o,s)])},decode({value:e}){let t=e.subarray(0,32),i=(0,n.bytesToNumber)(t);return e.slice(32,32+i)}}},92408:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fixedBytes=t.getByteLength=void 0;let n=i(45554),r=i(39777),o=i(92313),s=/^bytes([0-9]{1,2})$/u;t.getByteLength=e=>{let t=e.match(s)?.[1];(0,n.assert)(t,`Invalid byte length. Expected a number between 1 and 32, but received "${e}".`);let i=Number(t);return(0,n.assert)(i>0&&i<=32,new r.ParserError(`Invalid byte length. Expected a number between 1 and 32, but received "${e}".`)),i},t.fixedBytes={isDynamic:!1,isType:e=>s.test(e),getByteLength:()=>32,encode({type:e,buffer:i,value:s,packed:a}){let l=(0,t.getByteLength)(e),u=(0,n.createBytes)(s);return((0,n.assert)(u.length<=l,new r.ParserError(`Expected a value of length ${l}, but received a value of length ${u.length}.`)),a)?(0,n.concatBytes)([i,(0,o.padEnd)(u,l)]):(0,n.concatBytes)([i,(0,o.padEnd)(u)])},decode({type:e,value:i}){let n=(0,t.getByteLength)(e);return i.slice(0,n)}}},42345:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fn=t.getFunction=void 0;let n=i(45554),r=i(37715),o=i(39777),s=i(92408),a=(0,r.coerce)((0,r.object)({address:n.StrictHexStruct,selector:n.StrictHexStruct}),(0,r.union)([n.StrictHexStruct,(0,r.instance)(Uint8Array)]),e=>{let t=(0,n.createBytes)(e);return(0,n.assert)(24===t.length,new o.ParserError(`Invalid Solidity function. Expected function to be 24 bytes long, but received ${t.length} bytes.`)),{address:(0,n.bytesToHex)(t.subarray(0,20)),selector:(0,n.bytesToHex)(t.subarray(20,24))}});t.getFunction=e=>{let t=(0,r.create)(e,a);return(0,n.concatBytes)([(0,n.hexToBytes)(t.address),(0,n.hexToBytes)(t.selector)])},t.fn={isDynamic:!1,isType:e=>"function"===e,getByteLength:()=>32,encode({buffer:e,value:i,packed:n,tight:r}){let o=(0,t.getFunction)(i);return s.fixedBytes.encode({type:"bytes24",buffer:e,value:o,packed:n,tight:r})},decode:({value:e})=>({address:(0,n.bytesToHex)(e.slice(0,20)),selector:(0,n.bytesToHex)(e.slice(20,24))})}},84206:function(e,t,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i);var r=Object.getOwnPropertyDescriptor(t,i);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,n,r)}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),r=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||n(t,e,i)};Object.defineProperty(t,"__esModule",{value:!0}),r(i(27683),t),r(i(37759),t),r(i(18457),t),r(i(37300),t),r(i(92408),t),r(i(42345),t),r(i(1001),t),r(i(10052),t),r(i(85967),t),r(i(44409),t)},1001:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.number=t.getBigInt=t.assertNumberLength=t.getLength=t.isSigned=void 0;let n=i(45554),r=i(39777),o=i(92313),s=/^u?int(?[0-9]*)?$/u;t.isSigned=e=>!e.startsWith("u"),t.getLength=e=>{if("int"===e||"uint"===e)return 256;let t=e.match(s);(0,n.assert)(t?.groups?.length,new r.ParserError(`Invalid number type. Expected a number type, but received "${e}".`));let i=parseInt(t.groups.length,10);return(0,n.assert)(i>=8&&i<=256,new r.ParserError(`Invalid number length. Expected a number between 8 and 256, but received "${e}".`)),(0,n.assert)(i%8==0,new r.ParserError(`Invalid number length. Expected a multiple of 8, but received "${e}".`)),i},t.assertNumberLength=(e,i)=>{let o=(0,t.getLength)(i),s=BigInt(2)**BigInt(o-((0,t.isSigned)(i)?1:0))-BigInt(1);if((0,t.isSigned)(i)){(0,n.assert)(e>=-(s+BigInt(1))&&e<=s,new r.ParserError(`Number "${e}" is out of range for type "${i}".`));return}(0,n.assert)(e<=s,new r.ParserError(`Number "${e}" is out of range for type "${i}".`))},t.getBigInt=e=>{try{return(0,n.createBigInt)(e)}catch{throw new r.ParserError(`Invalid number. Expected a valid number value, but received "${e}".`)}},t.number={isDynamic:!1,isType:e=>s.test(e),getByteLength:()=>32,encode({type:e,buffer:i,value:r,packed:s}){let a=(0,t.getBigInt)(r);if((0,t.assertNumberLength)(a,e),(0,t.isSigned)(e)){if(s){let r=(0,t.getLength)(e)/8;return(0,n.concatBytes)([i,(0,n.signedBigIntToBytes)(a,r)])}return(0,n.concatBytes)([i,(0,o.padStart)((0,n.signedBigIntToBytes)(a,32))])}if(s){let r=(0,t.getLength)(e)/8;return(0,n.concatBytes)([i,(0,o.padStart)((0,n.bigIntToBytes)(a),r)])}return(0,n.concatBytes)([i,(0,o.padStart)((0,n.bigIntToBytes)(a))])},decode({type:e,value:i}){let r=i.subarray(0,32);if((0,t.isSigned)(e)){let i=(0,n.bytesToSignedBigInt)(r);return(0,t.assertNumberLength)(i,e),i}let o=(0,n.bytesToBigInt)(r);return(0,t.assertNumberLength)(o,e),o}}},10052:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},85967:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.string=void 0;let n=i(45554),r=i(37300);t.string={isDynamic:!0,isType:e=>"string"===e,getByteLength:()=>32,encode:({buffer:e,value:t,packed:i,tight:o})=>r.bytes.encode({type:"bytes",buffer:e,value:(0,n.stringToBytes)(t),packed:i,tight:o}),decode:e=>(0,n.bytesToString)(r.bytes.decode(e))}},44409:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tuple=t.getTupleElements=void 0;let n=i(45554),r=i(39777),o=i(69472),s=/^\((.+)\)$/u,a=e=>s.test(e);t.getTupleElements=e=>{(0,n.assert)(e.startsWith("(")&&e.endsWith(")"),new r.ParserError(`Invalid tuple type. Expected tuple type, but received "${e}".`));let t=[],i="",o=0;for(let n=1;n(0,t.getTupleElements)(e).some(e=>{let t=(0,o.getParser)(e);return(0,o.isDynamicParser)(t,e)}),isType:e=>a(e),getByteLength(e){return(0,o.isDynamicParser)(this,e)?32:(0,t.getTupleElements)(e).reduce((e,t)=>e+(0,o.getParser)(t).getByteLength(t),0)},encode({type:e,buffer:i,value:n,packed:r,tight:s}){let a=(0,t.getTupleElements)(e);return(0,o.pack)({types:a,values:n,byteArray:i,packed:r,tight:s})},decode({type:e,value:i,skip:n}){let r=(0,t.getTupleElements)(e);return n(this.getByteLength(e)-32),(0,o.unpack)(r,i)}}},54163:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},75858:function(e,t,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i);var r=Object.getOwnPropertyDescriptor(t,i);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,n,r)}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),r=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||n(t,e,i)};Object.defineProperty(t,"__esModule",{value:!0}),r(i(54163),t)},21348:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.padEnd=t.padStart=t.set=void 0;let n=i(45554),r=32;t.set=(e,t,i)=>(0,n.concatBytes)([e.subarray(0,i),t,e.subarray(i+t.length)]),t.padStart=(e,t=r)=>{let i=new Uint8Array(Math.max(t-e.length,0)).fill(0);return(0,n.concatBytes)([i,e])},t.padEnd=(e,t=r)=>{let i=new Uint8Array(Math.max(t-e.length,0)).fill(0);return(0,n.concatBytes)([e,i])}},92313:function(e,t,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i);var r=Object.getOwnPropertyDescriptor(t,i);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,n,r)}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),r=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||n(t,e,i)};Object.defineProperty(t,"__esModule",{value:!0}),r(i(21348),t)},67882:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseControllerV1=void 0;class i{constructor(e={},t={}){this.defaultConfig={},this.defaultState={},this.disabled=!1,this.name="BaseController",this.internalConfig=this.defaultConfig,this.internalState=this.defaultState,this.internalListeners=[],this.initialState=t,this.initialConfig=e}initialize(){return this.internalState=this.defaultState,this.internalConfig=this.defaultConfig,this.configure(this.initialConfig),this.update(this.initialState),this}get config(){return this.internalConfig}get state(){return this.internalState}configure(e,t=!1,i=!0){if(i)for(let[i,n]of(this.internalConfig=t?e:Object.assign(this.internalConfig,e),Object.entries(this.internalConfig)))void 0!==n&&(this[i]=n);else for(let t of Object.keys(e))void 0!==this.internalConfig[t]&&(this.internalConfig[t]=e[t],this[t]=e[t])}notify(){this.disabled||this.internalListeners.forEach(e=>{e(this.internalState)})}subscribe(e){this.internalListeners.push(e)}unsubscribe(e){let t=this.internalListeners.findIndex(t=>e===t);return t>-1&&this.internalListeners.splice(t,1),t>-1}update(e,t=!1){this.internalState=t?Object.assign({},e):Object.assign({},this.internalState,e),this.notify()}}t.BaseControllerV1=i,t.default=i},49834:function(e,t,i){"use strict";var n,r=this&&this.__classPrivateFieldSet||function(e,t,i,n,r){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!r)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?r.call(e,i):r?r.value=i:t.set(e,i),i},o=this&&this.__classPrivateFieldGet||function(e,t,i,n){if("a"===i&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(e):n?n.value:t.get(e)};Object.defineProperty(t,"__esModule",{value:!0}),t.getPersistentState=t.getAnonymizedState=t.BaseController=void 0;let s=i(30412);function a(e,t,i){return Object.keys(e).reduce((n,r)=>{try{let o=t[r];if(!o)throw Error(`No metadata found for '${String(r)}'`);let s=o[i],a=e[r];return"function"==typeof s?n[r]=s(a):s&&(n[r]=a),n}catch(e){return setTimeout(()=>{throw e}),n}},{})}(0,s.enablePatches)(),t.BaseController=class{constructor({messenger:e,metadata:t,name:i,state:o}){n.set(this,void 0),this.messagingSystem=e,this.name=i,r(this,n,o,"f"),this.metadata=t,this.messagingSystem.registerActionHandler(`${i}:getState`,()=>this.state),this.messagingSystem.registerInitialEventPayload({eventType:`${i}:stateChange`,getPayload:()=>[this.state,[]]})}get state(){return o(this,n,"f")}set state(e){throw Error("Controller state cannot be directly mutated; use 'update' method instead.")}update(e){let[t,i,a]=s.produceWithPatches(o(this,n,"f"),e);return r(this,n,t,"f"),this.messagingSystem.publish(`${this.name}:stateChange`,t,i),{nextState:t,patches:i,inversePatches:a}}applyPatches(e){let t=(0,s.applyPatches)(o(this,n,"f"),e);r(this,n,t,"f"),this.messagingSystem.publish(`${this.name}:stateChange`,t,e)}destroy(){this.messagingSystem.clearEventSubscriptions(`${this.name}:stateChange`)}},n=new WeakMap,t.getAnonymizedState=function(e,t){return a(e,t,"anonymous")},t.getPersistentState=function(e,t){return a(e,t,"persist")}},91588:function(e,t,i){"use strict";var n,r,o,s,a=this&&this.__classPrivateFieldGet||function(e,t,i,n){if("a"===i&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(e):n?n.value:t.get(e)};Object.defineProperty(t,"__esModule",{value:!0}),t.ControllerMessenger=void 0;let l=i(39058);t.ControllerMessenger=class{constructor(){n.set(this,new Map),r.set(this,new Map),o.set(this,new Map),s.set(this,new Map)}registerActionHandler(e,t){if(a(this,n,"f").has(e))throw Error(`A handler for ${e} has already been registered`);a(this,n,"f").set(e,t)}unregisterActionHandler(e){a(this,n,"f").delete(e)}clearActions(){a(this,n,"f").clear()}call(e,...t){let i=a(this,n,"f").get(e);if(!i)throw Error(`A handler for ${e} has not been registered`);return i(...t)}registerInitialEventPayload({eventType:e,getPayload:t}){a(this,o,"f").set(e,t)}publish(e,...t){let i=a(this,r,"f").get(e);if(i)for(let[e,n]of i.entries())try{if(n){let i=a(this,s,"f").get(e),r=n(...t);r!==i&&(a(this,s,"f").set(e,r),e(r,i))}else e(...t)}catch(e){setTimeout(()=>{throw e})}}subscribe(e,t,i){let n=a(this,r,"f").get(e);if(n||(n=new Map,a(this,r,"f").set(e,n)),n.set(t,i),i){let n=a(this,o,"f").get(e);if(n){let e=i(...n());a(this,s,"f").set(t,e)}}}unsubscribe(e,t){let i=a(this,r,"f").get(e);if(!i||!i.has(t))throw Error(`Subscription not found for event: ${e}`);i.get(t)&&a(this,s,"f").delete(t),i.delete(t)}clearEventSubscriptions(e){a(this,r,"f").delete(e)}clearSubscriptions(){a(this,r,"f").clear()}getRestricted({name:e,allowedActions:t,allowedEvents:i}){return new l.RestrictedControllerMessenger({controllerMessenger:this,name:e,allowedActions:t,allowedEvents:i})}},n=new WeakMap,r=new WeakMap,o=new WeakMap,s=new WeakMap},39058:function(e,t){"use strict";var i,n,r,o,s,a,l,u,d=this&&this.__classPrivateFieldSet||function(e,t,i,n,r){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!r)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?r.call(e,i):r?r.value=i:t.set(e,i),i},c=this&&this.__classPrivateFieldGet||function(e,t,i,n){if("a"===i&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(e):n?n.value:t.get(e)};Object.defineProperty(t,"__esModule",{value:!0}),t.RestrictedControllerMessenger=void 0,t.RestrictedControllerMessenger=class{constructor({controllerMessenger:e,name:t,allowedActions:a,allowedEvents:l}){i.add(this),n.set(this,void 0),r.set(this,void 0),o.set(this,void 0),s.set(this,void 0),d(this,n,e,"f"),d(this,r,t,"f"),d(this,o,null!=a?a:null,"f"),d(this,s,null!=l?l:null,"f")}registerActionHandler(e,t){if(!c(this,i,"m",u).call(this,e))throw Error(`Only allowed registering action handlers prefixed by '${c(this,r,"f")}:'`);c(this,n,"f").registerActionHandler(e,t)}unregisterActionHandler(e){if(!c(this,i,"m",u).call(this,e))throw Error(`Only allowed unregistering action handlers prefixed by '${c(this,r,"f")}:'`);c(this,n,"f").unregisterActionHandler(e)}call(e,...t){if(!c(this,i,"m",l).call(this,e))throw Error(`Action missing from allow list: ${e}`);return c(this,n,"f").call(e,...t)}registerInitialEventPayload({eventType:e,getPayload:t}){if(!c(this,i,"m",u).call(this,e))throw Error(`Only allowed publishing events prefixed by '${c(this,r,"f")}:'`);c(this,n,"f").registerInitialEventPayload({eventType:e,getPayload:t})}publish(e,...t){if(!c(this,i,"m",u).call(this,e))throw Error(`Only allowed publishing events prefixed by '${c(this,r,"f")}:'`);c(this,n,"f").publish(e,...t)}subscribe(e,t,r){if(!c(this,i,"m",a).call(this,e))throw Error(`Event missing from allow list: ${e}`);return r?c(this,n,"f").subscribe(e,t,r):c(this,n,"f").subscribe(e,t)}unsubscribe(e,t){if(!c(this,i,"m",a).call(this,e))throw Error(`Event missing from allow list: ${e}`);c(this,n,"f").unsubscribe(e,t)}clearEventSubscriptions(e){if(!c(this,i,"m",u).call(this,e))throw Error(`Only allowed clearing events prefixed by '${c(this,r,"f")}:'`);c(this,n,"f").clearEventSubscriptions(e)}},n=new WeakMap,r=new WeakMap,o=new WeakMap,s=new WeakMap,i=new WeakSet,a=function(e){let t=c(this,s,"f");return c(this,i,"m",u).call(this,e)||null!==t&&t.includes(e)},l=function(e){let t=c(this,o,"f");return c(this,i,"m",u).call(this,e)||null!==t&&t.includes(e)},u=function(e){return e.startsWith(`${c(this,r,"f")}:`)}},51501:function(e,t,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i);var r=Object.getOwnPropertyDescriptor(t,i);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,n,r)}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),r=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||n(t,e,i)};Object.defineProperty(t,"__esModule",{value:!0}),t.getPersistentState=t.getAnonymizedState=t.BaseController=t.BaseControllerV1=void 0;var o=i(67882);Object.defineProperty(t,"BaseControllerV1",{enumerable:!0,get:function(){return o.BaseControllerV1}});var s=i(49834);Object.defineProperty(t,"BaseController",{enumerable:!0,get:function(){return s.BaseController}}),Object.defineProperty(t,"getAnonymizedState",{enumerable:!0,get:function(){return s.getAnonymizedState}}),Object.defineProperty(t,"getPersistentState",{enumerable:!0,get:function(){return s.getPersistentState}}),r(i(91588),t),r(i(39058),t)},7850:(e,t,i)=>{"use strict";var n=i(48834).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.isVaultUpdated=t.updateVaultWithDetail=t.updateVault=t.generateSalt=t.serializeBufferForStorage=t.serializeBufferFromStorage=t.keyFromPassword=t.exportKey=t.importKey=t.decryptWithKey=t.decryptWithDetail=t.decrypt=t.encryptWithKey=t.encryptWithDetail=t.encrypt=void 0;let r=i(45554),o="AES-GCM",s="utf-8",a={algorithm:"PBKDF2",params:{iterations:1e4}},l={algorithm:"PBKDF2",params:{iterations:9e5}};async function u(e,t,i,n=b(),r=l){let o=i||await v(e,n,!1,r),s=await c(o,t);return s.salt=n,JSON.stringify(s)}async function d(e,t,i=b(),n=l){let r=await v(e,i,!0,n),o=await m(r);return{vault:await u(e,t,r,i),exportedKeyString:o}}async function c(e,t){let r=JSON.stringify(t),a=n.from(r,s),l=i.g.crypto.getRandomValues(new Uint8Array(16)),u=S(e),d=await i.g.crypto.subtle.encrypt({name:o,iv:l},u,a),c=new Uint8Array(d),h=n.from(l).toString("base64"),f={data:n.from(c).toString("base64"),iv:h};return w(e)&&(f.keyMetadata=e.derivationOptions),f}async function h(e,t,i){let n=JSON.parse(t),{salt:r,keyMetadata:o}=n,s=S(i||await v(e,r,!1,o));return await p(s,n)}async function f(e,t){let{salt:i,keyMetadata:n}=JSON.parse(t),r=await v(e,i,!0,n);return{exportedKeyString:await m(r),vault:await h(e,t,r),salt:i}}async function p(e,t){let i;let r=n.from(t.data,"base64"),a=n.from(t.iv,"base64"),l=S(e);try{let e=await crypto.subtle.decrypt({name:o,iv:a},l,r),t=new Uint8Array(e),u=n.from(t).toString(s);i=JSON.parse(u)}catch(e){throw Error("Incorrect password")}return i}async function g(e){let t=JSON.parse(e);return(0,r.isPlainObject)(t)&&(0,r.hasProperty)(t,"key")&&(0,r.hasProperty)(t,"derivationOptions")&&C(t.derivationOptions)?{key:await window.crypto.subtle.importKey("jwk",t.key,o,!0,["encrypt","decrypt"]),derivationOptions:t.derivationOptions}:await window.crypto.subtle.importKey("jwk",t,o,!0,["encrypt","decrypt"])}async function m(e){return w(e)?JSON.stringify({key:await window.crypto.subtle.exportKey("jwk",e.key),derivationOptions:e.derivationOptions}):JSON.stringify(await window.crypto.subtle.exportKey("jwk",e))}async function v(e,t,r=!1,l=a){let u=n.from(e,s),d=n.from(t,"base64"),c=await i.g.crypto.subtle.importKey("raw",u,{name:"PBKDF2"},!1,["deriveBits","deriveKey"]),h=await i.g.crypto.subtle.deriveKey({name:"PBKDF2",salt:d,iterations:l.params.iterations,hash:"SHA-256"},c,{name:o,length:256},r,["encrypt","decrypt"]);return l?{key:h,derivationOptions:l}:h}function b(e=32){let t=new Uint8Array(e);return i.g.crypto.getRandomValues(t),btoa(String.fromCharCode.apply(null,t))}async function y(e,t,i=l){return x(e,i)?e:u(t,await h(t,e),void 0,void 0,i)}async function _(e,t,i=l){return x(e.vault,i)?e:d(t,await h(t,e.vault),void 0,i)}function w(e){return(0,r.isPlainObject)(e)&&(0,r.hasProperty)(e,"key")&&(0,r.hasProperty)(e,"derivationOptions")&&e.key instanceof CryptoKey&&C(e.derivationOptions)}function C(e){return(0,r.isPlainObject)(e)&&(0,r.hasProperty)(e,"algorithm")&&(0,r.hasProperty)(e,"params")}function S(e){return w(e)?e.key:e}function x(e,t=l){let{keyMetadata:i}=JSON.parse(e);return C(i)&&i.algorithm===t.algorithm&&i.params.iterations===t.params.iterations}t.encrypt=u,t.encryptWithDetail=d,t.encryptWithKey=c,t.decrypt=h,t.decryptWithDetail=f,t.decryptWithKey=p,t.importKey=g,t.exportKey=m,t.keyFromPassword=v,t.serializeBufferFromStorage=function(e){let t="0x"===e.slice(0,2)?e.slice(2):e,i=new Uint8Array(t.length/2);for(let e=0;e{t+=function(e){let t=e.toString(16);for(;t.length<2;)t=`0${t}`;return t}(e)}),t},t.generateSalt=b,t.updateVault=y,t.updateVaultWithDetail=_,t.isVaultUpdated=x},93395:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CHAIN_ID_TO_ETHERS_NETWORK_NAME_MAP=t.ApprovalType=t.ORIGIN_METAMASK=t.OPENSEA_PROXY_URL=t.BUILT_IN_NETWORKS=t.TESTNET_TICKER_SYMBOLS=t.ASSET_TYPES=t.GWEI=t.ERC1155_TOKEN_RECEIVER_INTERFACE_ID=t.ERC1155_METADATA_URI_INTERFACE_ID=t.ERC1155_INTERFACE_ID=t.ERC721_ENUMERABLE_INTERFACE_ID=t.ERC721_METADATA_INTERFACE_ID=t.ERC721_INTERFACE_ID=t.ERC20=t.ERC1155=t.ERC721=t.MAX_SAFE_CHAIN_ID=t.GANACHE_CHAIN_ID=t.IPFS_DEFAULT_GATEWAY_URL=t.FALL_BACK_VS_CURRENCY=t.RPC=void 0;let n=i(35170);t.RPC="rpc",t.FALL_BACK_VS_CURRENCY="ETH",t.IPFS_DEFAULT_GATEWAY_URL="https://cloudflare-ipfs.com/ipfs/",t.GANACHE_CHAIN_ID="0x539",t.MAX_SAFE_CHAIN_ID=0xfffffffffffec,t.ERC721="ERC721",t.ERC1155="ERC1155",t.ERC20="ERC20",t.ERC721_INTERFACE_ID="0x80ac58cd",t.ERC721_METADATA_INTERFACE_ID="0x5b5e139f",t.ERC721_ENUMERABLE_INTERFACE_ID="0x780e9d63",t.ERC1155_INTERFACE_ID="0xd9b67a26",t.ERC1155_METADATA_URI_INTERFACE_ID="0x0e89341c",t.ERC1155_TOKEN_RECEIVER_INTERFACE_ID="0x4e2312e0",t.GWEI="gwei",t.ASSET_TYPES={NATIVE:"NATIVE",TOKEN:"TOKEN",NFT:"NFT",UNKNOWN:"UNKNOWN"},t.TESTNET_TICKER_SYMBOLS={GOERLI:"GoerliETH",SEPOLIA:"SepoliaETH",LINEA_GOERLI:"LineaETH"},t.BUILT_IN_NETWORKS={[n.NetworkType.goerli]:{chainId:n.ChainId.goerli,ticker:n.NetworksTicker.goerli,rpcPrefs:{blockExplorerUrl:`https://${n.NetworkType.goerli}.etherscan.io`}},[n.NetworkType.sepolia]:{chainId:n.ChainId.sepolia,ticker:n.NetworksTicker.sepolia,rpcPrefs:{blockExplorerUrl:`https://${n.NetworkType.sepolia}.etherscan.io`}},[n.NetworkType.mainnet]:{chainId:n.ChainId.mainnet,ticker:n.NetworksTicker.mainnet,rpcPrefs:{blockExplorerUrl:"https://etherscan.io"}},[n.NetworkType["linea-goerli"]]:{chainId:n.ChainId["linea-goerli"],ticker:n.NetworksTicker["linea-goerli"],rpcPrefs:{blockExplorerUrl:"https://goerli.lineascan.build"}},[n.NetworkType["linea-mainnet"]]:{chainId:n.ChainId["linea-mainnet"],ticker:n.NetworksTicker["linea-mainnet"],rpcPrefs:{blockExplorerUrl:"https://lineascan.build"}},[n.NetworkType.rpc]:{chainId:void 0,blockExplorerUrl:void 0,ticker:void 0,rpcPrefs:void 0}},t.OPENSEA_PROXY_URL="https://proxy.metafi.codefi.network/opensea/v1/api/v2",t.ORIGIN_METAMASK="metamask",function(e){e.AddEthereumChain="wallet_addEthereumChain",e.ConnectAccounts="connect_accounts",e.EthDecrypt="eth_decrypt",e.EthGetEncryptionPublicKey="eth_getEncryptionPublicKey",e.EthSign="eth_sign",e.EthSignTypedData="eth_signTypedData",e.PersonalSign="personal_sign",e.ResultError="result_error",e.ResultSuccess="result_success",e.SnapDialogAlert="snap_dialog:alert",e.SnapDialogConfirmation="snap_dialog:confirmation",e.SnapDialogPrompt="snap_dialog:prompt",e.SwitchEthereumChain="wallet_switchEthereumChain",e.Transaction="transaction",e.Unlock="unlock",e.WalletConnect="wallet_connect",e.WalletRequestPermissions="wallet_requestPermissions",e.WatchAsset="wallet_watchAsset"}(t.ApprovalType||(t.ApprovalType={})),t.CHAIN_ID_TO_ETHERS_NETWORK_NAME_MAP={[n.ChainId.goerli]:n.BuiltInNetworkName.Goerli,[n.ChainId.sepolia]:n.BuiltInNetworkName.Sepolia,[n.ChainId.mainnet]:n.BuiltInNetworkName.Mainnet,[n.ChainId["linea-goerli"]]:n.BuiltInNetworkName.LineaGoerli,[n.ChainId["linea-mainnet"]]:n.BuiltInNetworkName.LineaMainnet,[n.ChainId.aurora]:n.BuiltInNetworkName.Aurora}},82373:function(e,t,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i);var r=Object.getOwnPropertyDescriptor(t,i);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,n,r)}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),r=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||n(t,e,i)};Object.defineProperty(t,"__esModule",{value:!0}),r(i(93395),t),r(i(67690),t),r(i(35170),t),r(i(80042),t)},46476:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createModuleLogger=t.projectLogger=void 0;let n=i(45554);Object.defineProperty(t,"createModuleLogger",{enumerable:!0,get:function(){return n.createModuleLogger}}),t.projectLogger=(0,n.createProjectLogger)("controller-utils")},80042:(e,t,i)=>{"use strict";var n=i(48834).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.detectSIWE=t.isValidSIWEOrigin=t.parseDomainParts=void 0;let r=i(39755),o=i(47144),s=i(46476),a=(0,s.createModuleLogger)(s.projectLogger,"detect-siwe"),l={"http:":"80","https:":"443"};t.parseDomainParts=(e,t)=>new URL(e.match(/^[^/:]*:\/\//u)?e:`${t}//${e}`),t.isValidSIWEOrigin=e=>{var i;try{let{origin:n,siwe:r}=e;if(!n||!(null===(i=null==r?void 0:r.parsedMessage)||void 0===i?void 0:i.domain))return!1;let o=new URL(n),s=(0,t.parseDomainParts)(r.parsedMessage.domain,o.protocol);if(0!==s.hostname.localeCompare(o.hostname,void 0,{sensitivity:"accent"}))return!1;if(""!==s.port&&s.port!==o.port)return""===o.port&&s.port===l[o.protocol];if(""!==s.username&&s.username!==o.username)return!1;return!0}catch(e){return a(e),!1}},t.detectSIWE=e=>{try{let{data:t}=e,i=function(e){try{let t="string"!=typeof e?e:(0,o.isHexPrefixed)(e)?e.slice(2):e,i=n.from(t,"hex");return 32===i.length?e:i.toString("utf8")}catch(t){return a(t),e}}(t),s=new r.ParsedMessage(i);return{isSIWEMessage:!0,parsedMessage:s}}catch(e){return{isSIWEMessage:!1,parsedMessage:null}}}},35170:(e,t)=>{"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),t.NetworksTicker=t.ChainId=t.BuiltInNetworkName=t.isInfuraNetworkType=t.isNetworkType=t.NetworkType=t.InfuraNetworkType=void 0,t.InfuraNetworkType={mainnet:"mainnet",goerli:"goerli",sepolia:"sepolia","linea-goerli":"linea-goerli","linea-mainnet":"linea-mainnet"},t.NetworkType=Object.assign(Object.assign({},t.InfuraNetworkType),{rpc:"rpc"}),t.isNetworkType=function(e){return Object.values(t.NetworkType).includes(e)},t.isInfuraNetworkType=function(e){return Object.keys(t.InfuraNetworkType).includes(e)},function(e){e.Mainnet="mainnet",e.Goerli="goerli",e.Sepolia="sepolia",e.LineaGoerli="linea-goerli",e.LineaMainnet="linea-mainnet",e.Aurora="aurora"}(i=t.BuiltInNetworkName||(t.BuiltInNetworkName={})),t.ChainId={[i.Mainnet]:"0x1",[i.Goerli]:"0x5",[i.Sepolia]:"0xaa36a7",[i.Aurora]:"0x4e454152",[i.LineaGoerli]:"0xe704",[i.LineaMainnet]:"0xe708"},function(e){e.mainnet="ETH",e.goerli="GoerliETH",e.sepolia="SepoliaETH",e["linea-goerli"]="LineaETH",e["linea-mainnet"]="ETH",e.rpc=""}(t.NetworksTicker||(t.NetworksTicker={}))},67690:function(e,t,i){"use strict";var n=i(48834).Buffer,r=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isValidJson=t.isNonEmptyArray=t.isPlainObject=t.convertHexToDecimal=t.query=t.normalizeEnsName=t.timeoutFetch=t.fetchWithErrorHandling=t.handleFetch=t.successfulFetch=t.isSmartContractCode=t.isValidHexAddress=t.toChecksumHexAddress=t.safelyExecuteWithTimeout=t.safelyExecute=t.toHex=t.fromHex=t.hexToText=t.hexToBN=t.getBuyURL=t.weiHexToGweiDec=t.gweiDecToWEIBN=t.fractionBN=t.BNToHex=t.isSafeChainId=void 0;let s=i(97817),a=i(45554),l=o(i(82775)),u=i(47144),d=o(i(69378)),c=i(93395),h=Error("timeout");function f(e){return e?new u.BN((0,u.stripHexPrefix)(e),16):new u.BN(0)}function p(e,t){return r(this,void 0,void 0,function*(){let i=yield fetch(e,t);if(!i.ok)throw Error(`Fetch failed with status '${i.status}' for request '${String(e)}'`);return i})}function g(e,t){return r(this,void 0,void 0,function*(){let i=yield p(e,t);return yield i.json()})}t.isSafeChainId=function(e){if(!(0,u.isHexString)(e))return!1;let t=Number.parseInt(e);return Number.isSafeInteger(t)&&t>0&&t<=c.MAX_SAFE_CHAIN_ID},t.BNToHex=function(e){return(0,u.addHexPrefix)(e.toString(16))},t.fractionBN=function(e,t,i){let n=new u.BN(t),r=new u.BN(i);return e.mul(n).div(r)},t.gweiDecToWEIBN=function(e){if(Number.isNaN(e))return new u.BN(0);let t=e.toString().split("."),i=t[0]||"0",n=t[1]||"";if(!n)return(0,s.toWei)(i,"gwei");if(n.length<=9)return(0,s.toWei)(`${i}.${n}`,"gwei");let r=n.slice(9)[0];n=n.slice(0,9);let o=(0,s.toWei)(`${i}.${n}`,"gwei");return Number(r)>=5&&(o=o.add(new u.BN(1))),o},t.weiHexToGweiDec=function(e){let t=new u.BN((0,u.stripHexPrefix)(e),16);return(0,s.fromWei)(t,"gwei")},t.getBuyURL=function(e="1",t,i=5){switch(e){case"1":return`https://buy.coinbase.com/?code=9ec56d01-7e81-5017-930c-513daa27bb6a&amount=${i}&address=${t}&crypto_currency=ETH`;case"5":return"https://goerli-faucet.slock.it/";case"11155111":return"https://sepoliafaucet.net/";default:return}},t.hexToBN=f,t.hexToText=function(e){try{let t=(0,u.stripHexPrefix)(e);return n.from(t,"hex").toString("utf8")}catch(t){return e}},t.fromHex=function(e){return u.BN.isBN(e)?e:new u.BN(f(e).toString(10))},t.toHex=function(e){return"string"==typeof e&&(0,a.isStrictHexString)(e)?e:`0x${u.BN.isBN(e)?e.toString(16):new u.BN(e.toString(),10).toString(16)}`},t.safelyExecute=function(e,t=!1){return r(this,void 0,void 0,function*(){try{return yield e()}catch(e){t&&console.error(e);return}})},t.safelyExecuteWithTimeout=function(e,t=!1,i=500){return r(this,void 0,void 0,function*(){try{return yield Promise.race([e(),new Promise((e,t)=>setTimeout(()=>{t(h)},i))])}catch(e){t&&console.error(e);return}})},t.toChecksumHexAddress=function(e){let t=(0,u.addHexPrefix)(e);return(0,u.isHexString)(t)?(0,u.toChecksumAddress)(t):t},t.isValidHexAddress=function(e,{allowNonPrefixed:t=!0}={}){let i=t?(0,u.addHexPrefix)(e):e;return!!(0,u.isHexString)(i)&&(0,u.isValidAddress)(i)},t.isSmartContractCode=function(e){return!!e&&"0x"!==e&&"0x0"!==e},t.successfulFetch=p,t.handleFetch=g,t.fetchWithErrorHandling=function({url:e,options:t,timeout:i,errorCodesToCatch:n}){return r(this,void 0,void 0,function*(){let r;try{r=i?Promise.race([(yield g(e,t)),new Promise((e,t)=>setTimeout(()=>{t(h)},i))]):yield g(e,t)}catch(e){!function(e,t=[]){var i;if(!e)return;let n=t.some(t=>{var i;return null===(i=e.message)||void 0===i?void 0:i.includes(`Fetch failed with status '${t}'`)});if(e instanceof Error&&(n||(null===(i=e.message)||void 0===i?void 0:i.includes("Failed to fetch"))||e===h))console.error(e);else throw e}(e,n)}return r})},t.timeoutFetch=function(e,t,i=500){return r(this,void 0,void 0,function*(){return Promise.race([p(e,t),new Promise((e,t)=>setTimeout(()=>{t(h)},i))])})},t.normalizeEnsName=function(e){if(e&&"string"==typeof e)try{let t=l.default.normalize(e.trim());if(t.match(/^(([\w\d-]+)\.)*[\w\d-]{7,}\.(eth|test)$/u))return t}catch(e){}return null},t.query=function(e,t,i=[]){return new Promise((n,r)=>{let o=(e,t)=>{if(e){r(e);return}n(t)};t in e&&"function"==typeof e[t]?e[t](...i,o):e.sendAsync({method:t,params:i},o)})},t.convertHexToDecimal=(e="0x0")=>(0,u.isHexString)(e)?parseInt(e,16):Number(e)?Number(e):0,t.isPlainObject=function(e){return!!e&&"object"==typeof e&&!Array.isArray(e)},t.isNonEmptyArray=function(e){return Array.isArray(e)&&e.length>0},t.isValidJson=function(e){try{return(0,d.default)(e,JSON.parse(JSON.stringify(e)))}catch(e){return!1}}},7986:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createBlockCacheMiddleware=void 0;let n=i(63163),r=i(47045),o=i(62836),s=(0,r.createModuleLogger)(r.projectLogger,"block-cache"),a=[void 0,null,""];class l{constructor(){this.cache={}}getBlockCache(e){let t=Number.parseInt(e,16),i=this.cache[t];if(!i){let e={};this.cache[t]=e,i=e}return i}async get(e,t){let i=this.getBlockCache(t),n=(0,o.cacheIdentifierForRequest)(e,!0);return n?i[n]:void 0}async set(e,t,i){if(!this.canCacheResult(e,i))return;let n=(0,o.cacheIdentifierForRequest)(e,!0);n&&(this.getBlockCache(t)[n]=i)}canCacheRequest(e){return!!(0,o.canCache)(e.method)&&"pending"!==(0,o.blockTagForRequest)(e)}canCacheResult(e,t){return!(a.includes(t)||e.method&&["eth_getTransactionByHash","eth_getTransactionReceipt"].includes(e.method)&&(!t||!t.blockHash||"0x0000000000000000000000000000000000000000000000000000000000000000"===t.blockHash))}clearBefore(e){let t=Number.parseInt(e,16);Object.keys(this.cache).map(Number).filter(e=>edelete this.cache[e])}}t.createBlockCacheMiddleware=function({blockTracker:e}={}){if(!e)throw Error("createBlockCacheMiddleware - No PollingBlockTracker specified");let t=new l,i={[o.CacheStrategy.Permanent]:t,[o.CacheStrategy.Block]:t,[o.CacheStrategy.Fork]:t,[o.CacheStrategy.Never]:void 0};return(0,n.createAsyncMiddleware)(async(n,r,a)=>{let l;if(n.skipCache)return a();let u=i[(0,o.cacheTypeForMethod)(n.method)];if(!u||!u.canCacheRequest(n))return a();let d=(0,o.blockTagForRequest)(n),c=d&&"string"==typeof d?d:"latest";if(s("blockTag = %o, req = %o",c,n),"earliest"===c)l="0x00";else if("latest"===c){s("Fetching latest block number to determine cache key");let i=await e.getLatestBlock();s("Clearing values stored under block numbers before %o",i),t.clearBefore(i),l=i}else l=c;let h=await u.get(n,l);void 0===h?(s("No cache stored under block number %o, carrying request forward",l),await a(),s("Populating cache with",r),await u.set(n,l,r.result)):(s("Cache hit, reusing cache result stored under block number %o",l),r.result=h)})}},43601:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createBlockRefRewriteMiddleware=void 0;let n=i(63163),r=i(62836);t.createBlockRefRewriteMiddleware=function({blockTracker:e}={}){if(!e)throw Error('BlockRefRewriteMiddleware - mandatory "blockTracker" option is missing.');return(0,n.createAsyncMiddleware)(async(t,i,n)=>{let o=(0,r.blockTagParamIndex)(t.method);if(void 0===o||"latest"!==(Array.isArray(t.params)&&t.params[o]?t.params[o]:"latest"))return n();let s=await e.getLatestBlock();return Array.isArray(t.params)&&(t.params[o]=s),n()})}},5214:function(e,t,i){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.createBlockRefMiddleware=void 0;let r=i(63163),o=i(63951),s=n(i(88023)),a=i(47045),l=i(62836),u=(0,a.createModuleLogger)(a.projectLogger,"block-ref");t.createBlockRefMiddleware=function({provider:e,blockTracker:t}={}){if(!e)throw Error('BlockRefMiddleware - mandatory "provider" option is missing.');if(!t)throw Error('BlockRefMiddleware - mandatory "blockTracker" option is missing.');return(0,r.createAsyncMiddleware)(async(i,n,r)=>{var a;let d=(0,l.blockTagParamIndex)(i.method);if(void 0===d)return r();if("latest"!==(Array.isArray(i.params)&&null!==(a=i.params[d])&&void 0!==a?a:"latest"))return u('blockRef is not "latest", carrying request forward'),r();let c=await t.getLatestBlock();u(`blockRef is "latest", setting param ${d} to latest block ${c}`);let h=(0,o.klona)(i);Array.isArray(h.params)&&(h.params[d]=c),u("Performing another request %o",h);let f=await (0,s.default)(e.sendAsync).call(e,h);n.result=f.result,n.error=f.error})}},54006:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createBlockTrackerInspectorMiddleware=void 0;let n=i(63163),r=i(47045),o=(0,r.createModuleLogger)(r.projectLogger,"block-tracker-inspector"),s=["eth_getTransactionByHash","eth_getTransactionReceipt"];t.createBlockTrackerInspectorMiddleware=function({blockTracker:e}){return(0,n.createAsyncMiddleware)(async(t,i,n)=>{if(!s.includes(t.method))return n();await n();let r=function(e){let{result:t}=e;if(t&&"object"==typeof t&&Object.hasOwnProperty.call(t,"blockNumber")&&"string"==typeof t.blockNumber)return t.blockNumber}(i);r&&(o("res.result.blockNumber exists, proceeding. res = %o",i),Number.parseInt(r,16)>Number.parseInt(e.getCurrentBlock(),16)&&(o("blockNumber from response is greater than current block number, refreshing current block number"),await e.checkForLatestBlock()))})}},36477:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createFetchConfigFromReq=t.createFetchMiddleware=void 0;let n=i(63163),r=i(30774),o=i(50355),s=["Gateway timeout","ETIMEDOUT","failed to parse response body","Failed to fetch"];function a({btoa:e,req:t,rpcUrl:i,originHttpHeaderKey:n}){let r;let o=new URL(i),s=(r=o.protocol+`//${o.hostname}`,o.port&&(r+=`:${o.port}`),r+=`${o.pathname}${o.search}`),a={id:t.id,jsonrpc:t.jsonrpc,method:t.method,params:t.params},l=t.origin,u={method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(a)};if(o.username&&o.password){let t=e(`${o.username}:${o.password}`);u.headers.Authorization=`Basic ${t}`}return n&&l&&(u.headers[n]=l),{fetchUrl:s,fetchParams:u}}t.createFetchMiddleware=function({btoa:e,fetch:t,rpcUrl:i,originHttpHeaderKey:l}){return(0,n.createAsyncMiddleware)(async(n,u,d)=>{let{fetchUrl:c,fetchParams:h}=a({btoa:e,req:n,rpcUrl:i,originHttpHeaderKey:l});for(let e=0;e<5;e++){try{let e;let i=await t(c,h);!function(e){switch(e.status){case 405:throw r.rpcErrors.methodNotFound();case 418:throw r.rpcErrors.internal({message:"Request is being rate limited."});case 503:case 504:throw function(){let e="Gateway timeout. The request took too long to process. ";return e+="This can happen when querying logs over too wide a block range.",r.rpcErrors.internal({message:e})}()}}(i);let n=await i.text();try{e=JSON.parse(n)}catch(e){throw Error(`FetchMiddleware - failed to parse response body: "${n}"`)}let o=function(e,t){if(200!==e.status)throw r.rpcErrors.internal({message:`Non-200 status code: '${e.status}'`,data:t});if(t.error)throw r.rpcErrors.internal({data:t.error});return t.result}(i,e);u.result=o;return}catch(t){let e=t.toString();if(!s.some(t=>e.includes(t)))throw t}await (0,o.timeout)(1e3)}})},t.createFetchConfigFromReq=a},69234:function(e,t,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i);var r=Object.getOwnPropertyDescriptor(t,i);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,n,r)}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),r=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||n(t,e,i)};Object.defineProperty(t,"__esModule",{value:!0}),r(i(7986),t),r(i(43601),t),r(i(5214),t),r(i(54006),t),r(i(36477),t),r(i(65421),t),r(i(60093),t),r(i(56962),t),r(i(41498),t)},65421:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createInflightCacheMiddleware=void 0;let n=i(63163),r=i(63951),o=i(47045),s=i(62836),a=(0,o.createModuleLogger)(o.projectLogger,"inflight-cache");t.createInflightCacheMiddleware=function(){let e={};return(0,n.createAsyncMiddleware)(async(i,n,r)=>{var o;if(i.skipCache)return r();let l=(0,s.cacheIdentifierForRequest)(i);if(!l)return a("Request is not cacheable, proceeding. req = %o",i),r();let u=e[l];if(u){a("Running %i handler(s) for request %o",u.length,i),await t(n,u);return}u=[],e[l]=u,a("Carrying original request forward %o",i),await r(),delete e[l],a("Running %i collected handler(s) for request %o",u.length,i),o=u,setTimeout(()=>{o.forEach(e=>{try{e(n)}catch(e){console.error(e)}})})});async function t(e,t){let i,n;let{resolve:o,promise:s}=(n=new Promise(e=>{i=e}),{resolve:i,promise:n});return t.push(t=>{e.result=(0,r.klona)(t.result),e.error=(0,r.klona)(t.error),o()}),s}}},47045:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createModuleLogger=t.projectLogger=void 0;let n=i(45554);Object.defineProperty(t,"createModuleLogger",{enumerable:!0,get:function(){return n.createModuleLogger}}),t.projectLogger=(0,n.createProjectLogger)("eth-json-rpc-middleware")},60093:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ethersProviderAsMiddleware=t.providerAsMiddleware=void 0,t.providerAsMiddleware=function(e){return(t,i,n,r)=>{e.sendAsync(t,(e,t)=>e instanceof Error?r(e):(Object.assign(i,t),r()))}},t.ethersProviderAsMiddleware=function(e){return(t,i,n,r)=>{e.send(t,(e,t)=>e?r(e):(Object.assign(i,t),r()))}}},56962:function(e,t,i){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.createRetryOnEmptyMiddleware=void 0;let r=i(63163),o=i(63951),s=n(i(88023)),a=i(47045),l=i(62836),u=i(22644),d=i(50355),c=(0,a.createModuleLogger)(a.projectLogger,"retry-on-empty"),h=[void 0,null,""];async function f(e,t){for(let i=0;i{let a=(0,l.blockTagParamIndex)(i.method);if(void 0===a)return r();let u=Array.isArray(i.params)&&i.params[a]?i.params[a]:void 0;if(void 0===u&&(u="latest"),["latest","pending"].includes(u))return r();let d=Number.parseInt(u.slice(2),16);if(Number.isNaN(d))return r();let p=Number.parseInt((await t.getLatestBlock()).slice(2),16);if(d>p)return c("Requested block number %o is higher than latest block number %o, falling through to original request",d,p),r();c("Requested block number %o is not higher than latest block number %o, trying request until non-empty response is received",d,p);let g=(0,o.klona)(i),m=await f(10,async()=>{c("Performing request %o",g);let t=await (0,s.default)(e.sendAsync).call(e,g);if(c("Response is %o",t),h.includes(t.result))throw Error(`RetryOnEmptyMiddleware - empty response "${JSON.stringify(t)}" for request "${JSON.stringify(g)}"`);return t});c("Copying result %o and error %o",m.result,m.error),n.result=m.result,n.error=m.error})}},62836:(e,t,i)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.cacheTypeForMethod=t.blockTagParamIndex=t.blockTagForRequest=t.canCache=t.cacheIdentifierForRequest=t.CacheStrategy=void 0;let r=(0,i(27822).configure)({bigint:!1,circularValue:Error});function o(e){return a(e)!==n.Never}function s(e){switch(e){case"eth_getStorageAt":return 2;case"eth_getBalance":case"eth_getCode":case"eth_getTransactionCount":case"eth_call":return 1;case"eth_getBlockByNumber":return 0;default:return}}function a(e){switch(e){case"web3_clientVersion":case"web3_sha3":case"eth_protocolVersion":case"eth_getBlockTransactionCountByHash":case"eth_getUncleCountByBlockHash":case"eth_getCode":case"eth_getBlockByHash":case"eth_getTransactionByHash":case"eth_getTransactionByBlockHashAndIndex":case"eth_getTransactionReceipt":case"eth_getUncleByBlockHashAndIndex":case"eth_getCompilers":case"eth_compileLLL":case"eth_compileSolidity":case"eth_compileSerpent":case"shh_version":case"test_permaCache":return n.Permanent;case"eth_getBlockByNumber":case"eth_getBlockTransactionCountByNumber":case"eth_getUncleCountByBlockNumber":case"eth_getTransactionByBlockNumberAndIndex":case"eth_getUncleByBlockNumberAndIndex":case"test_forkCache":return n.Fork;case"eth_gasPrice":case"eth_blockNumber":case"eth_getBalance":case"eth_getStorageAt":case"eth_getTransactionCount":case"eth_call":case"eth_estimateGas":case"eth_getFilterLogs":case"eth_getLogs":case"test_blockCache":return n.Block;default:return n.Never}}!function(e){e.Block="block",e.Fork="fork",e.Never="never",e.Permanent="perma"}(n=t.CacheStrategy||(t.CacheStrategy={})),t.cacheIdentifierForRequest=function(e,t){var i;let n=t?function(e){if(!e.params)return[];let t=s(e.method);return void 0===t||!Array.isArray(e.params)||t>=e.params.length?e.params:"eth_getBlockByNumber"===e.method?e.params.slice(1):e.params.slice(0,t)}(e):null!==(i=e.params)&&void 0!==i?i:[];return o(e.method)?`${e.method}:${r(n)}`:null},t.canCache=o,t.blockTagForRequest=function(e){if(!e.params)return;let t=s(e.method);if(void 0!==t&&Array.isArray(e.params)&&!(t>=e.params.length))return e.params[t]},t.blockTagParamIndex=s,t.cacheTypeForMethod=a},22644:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isExecutionRevertedError=void 0;let n=i(30774),r=i(45554);t.isExecutionRevertedError=function(e){return(0,r.isJsonRpcError)(e)&&e.code===n.errorCodes.rpc.invalidInput&&"execution reverted"===e.message}},50355:(e,t)=>{"use strict";async function i(e){return new Promise(t=>setTimeout(t,e))}Object.defineProperty(t,"__esModule",{value:!0}),t.timeout=void 0,t.timeout=i},41498:function(e,t,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i);var r=Object.getOwnPropertyDescriptor(t,i);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,n,r)}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.createWalletMiddleware=void 0;let s=o(i(50539)),a=i(63163),l=i(30774);function u(e){return 42===e.length}t.createWalletMiddleware=function({getAccounts:e,processDecryptMessage:t,processEncryptionPublicKey:i,processEthSignMessage:n,processPersonalMessage:r,processTransaction:o,processSignTransaction:d,processTypedMessage:c,processTypedMessageV3:h,processTypedMessageV4:f}){if(!e)throw Error("opts.getAccounts is required");return(0,a.createScaffoldMiddleware)({eth_accounts:(0,a.createAsyncMiddleware)(p),eth_coinbase:(0,a.createAsyncMiddleware)(g),eth_sendTransaction:(0,a.createAsyncMiddleware)(m),eth_signTransaction:(0,a.createAsyncMiddleware)(v),eth_sign:(0,a.createAsyncMiddleware)(b),eth_signTypedData:(0,a.createAsyncMiddleware)(y),eth_signTypedData_v3:(0,a.createAsyncMiddleware)(_),eth_signTypedData_v4:(0,a.createAsyncMiddleware)(w),personal_sign:(0,a.createAsyncMiddleware)(C),eth_getEncryptionPublicKey:(0,a.createAsyncMiddleware)(x),eth_decrypt:(0,a.createAsyncMiddleware)(k),personal_ecRecover:(0,a.createAsyncMiddleware)(S)});async function p(t,i){i.result=await e(t)}async function g(t,i){let n=await e(t);i.result=n[0]||null}async function m(e,t){if(!o)throw l.rpcErrors.methodNotSupported();if(!e.params||!Array.isArray(e.params)||!(e.params.length>=1))throw l.rpcErrors.invalidInput();let i=e.params[0],n=Object.assign(Object.assign({},i),{from:await E((null==i?void 0:i.from)||"",e)});t.result=await o(n,e)}async function v(e,t){if(!d)throw l.rpcErrors.methodNotSupported();if(!e.params||!Array.isArray(e.params)||!(e.params.length>=1))throw l.rpcErrors.invalidInput();let i=e.params[0],n=Object.assign(Object.assign({},i),{from:await E((null==i?void 0:i.from)||"",e)});t.result=await d(n,e)}async function b(e,t){if(!n)throw l.rpcErrors.methodNotSupported();if(!(null==e?void 0:e.params)||!Array.isArray(e.params)||!(e.params.length>=2))throw l.rpcErrors.invalidInput();let i=e.params,r=await E(i[0],e),o=i[1],s=Object.assign(Object.assign({},i[2]||{}),{from:r,data:o});t.result=await n(s,e)}async function y(e,t){if(!c)throw l.rpcErrors.methodNotSupported();if(!(null==e?void 0:e.params)||!Array.isArray(e.params)||!(e.params.length>=2))throw l.rpcErrors.invalidInput();let i=e.params,n=i[0],r=await E(i[1],e),o=Object.assign(Object.assign({},i[2]||{}),{from:r,data:n});t.result=await c(o,e,"V1")}async function _(e,t){if(!h)throw l.rpcErrors.methodNotSupported();if(!(null==e?void 0:e.params)||!Array.isArray(e.params)||!(e.params.length>=2))throw l.rpcErrors.invalidInput();let i=e.params,n=await E(i[0],e),r=i[1];t.result=await h({data:r,from:n,version:"V3"},e,"V3")}async function w(e,t){if(!f)throw l.rpcErrors.methodNotSupported();if(!(null==e?void 0:e.params)||!Array.isArray(e.params)||!(e.params.length>=2))throw l.rpcErrors.invalidInput();let i=e.params,n=await E(i[0],e),r=i[1];t.result=await f({data:r,from:n,version:"V4"},e,"V4")}async function C(e,t){let i,n;if(!r)throw l.rpcErrors.methodNotSupported();if(!(null==e?void 0:e.params)||!Array.isArray(e.params)||!(e.params.length>=2))throw l.rpcErrors.invalidInput();let o=e.params,s=o[0],a=o[1],d=o[2]||{};if(u(s)&&!u(a)){let e="The eth_personalSign method requires params ordered ";e+="[message, address]. This was previously handled incorrectly, and has been corrected automatically. Please switch this param order for smooth behavior in the future.",t.warning=e,i=s,n=a}else n=s,i=a;i=await E(i,e);let c=Object.assign(Object.assign({},d),{from:i,data:n});t.result=await r(c,e)}async function S(e,t){if(!(null==e?void 0:e.params)||!Array.isArray(e.params)||!(e.params.length>=2))throw l.rpcErrors.invalidInput();let i=e.params,n=i[0],r=i[1],o=s.recoverPersonalSignature({data:n,signature:r});t.result=o}async function x(e,t){if(!i)throw l.rpcErrors.methodNotSupported();if(!(null==e?void 0:e.params)||!Array.isArray(e.params)||!(e.params.length>=1))throw l.rpcErrors.invalidInput();let n=await E(e.params[0],e);t.result=await i(n,e)}async function k(e,i){if(!t)throw l.rpcErrors.methodNotSupported();if(!(null==e?void 0:e.params)||!Array.isArray(e.params)||!(e.params.length>=1))throw l.rpcErrors.invalidInput();let n=e.params,r=n[0],o=await E(n[1],e),s=Object.assign(Object.assign({},n[2]||{}),{from:o,data:r});i.result=await t(s,e)}async function E(t,i){if("string"==typeof t&&t.length>0&&u(t)){let n=(await e(i)).map(e=>e.toLowerCase()),r=t.toLowerCase();if(n.includes(r))return r;throw l.providerErrors.unauthorized()}throw l.rpcErrors.invalidParams({message:"Invalid parameters: must provide an Ethereum address."})}}},88023:e=>{"use strict";let t=(e,t,i,n)=>function(...r){return new t.promiseModule((o,s)=>{t.multiArgs?r.push((...e)=>{t.errorFirst?e[0]?s(e):(e.shift(),o(e)):o(e)}):t.errorFirst?r.push((e,t)=>{e?s(e):o(t)}):r.push(o);let a=this===i?n:this;Reflect.apply(e,a,r)})},i=new WeakMap;e.exports=(e,n)=>{n={exclude:[/.+(?:Sync|Stream)$/],errorFirst:!0,promiseModule:Promise,...n};let r=typeof e;if(!(null!==e&&("object"===r||"function"===r)))throw TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${null===e?"null":r}\``);let o=(e,t)=>{let r=i.get(e);if(r||(r={},i.set(e,r)),t in r)return r[t];let o=e=>"string"==typeof e||"symbol"==typeof t?t===e:e.test(t),s=Reflect.getOwnPropertyDescriptor(e,t),a=void 0===s||s.writable||s.configurable,l=(n.include?n.include.some(o):!n.exclude.some(o))&&a;return r[t]=l,l},s=new WeakMap,a=new Proxy(e,{apply(e,i,r){let o=s.get(e);if(o)return Reflect.apply(o,i,r);let l=n.excludeMain?e:t(e,n,a,e);return s.set(e,l),Reflect.apply(l,i,r)},get(e,i){let r=e[i];if(!o(e,i)||r===Function.prototype[i])return r;let l=s.get(r);if(l)return l;if("function"==typeof r){let i=t(r,n,a,e);return s.set(r,i),i}return r}});return a}},92517:function(e,t,i){"use strict";var n=i(48834).Buffer,r=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i);var r=Object.getOwnPropertyDescriptor(t,i);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,n,r)}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&r(t,e,i);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.getEncryptionPublicKey=t.decryptSafely=t.decrypt=t.encryptSafely=t.encrypt=void 0;let a=s(i(10717)),l=s(i(251)),u=i(65491);function d({publicKey:e,data:t,version:i}){if((0,u.isNullish)(e))throw Error("Missing publicKey parameter");if((0,u.isNullish)(t))throw Error("Missing data parameter");if((0,u.isNullish)(i))throw Error("Missing version parameter");if("x25519-xsalsa20-poly1305"===i){let i;if("string"!=typeof t)throw Error("Message data must be given as a string");let n=a.box.keyPair();try{i=l.decodeBase64(e)}catch(e){throw Error("Bad public key")}let r=l.decodeUTF8(t),o=a.randomBytes(a.box.nonceLength),s=a.box(r,o,i,n.secretKey);return{version:"x25519-xsalsa20-poly1305",nonce:l.encodeBase64(o),ephemPublicKey:l.encodeBase64(n.publicKey),ciphertext:l.encodeBase64(s)}}throw Error("Encryption type/version not supported")}function c({encryptedData:e,privateKey:t}){if((0,u.isNullish)(e))throw Error("Missing encryptedData parameter");if((0,u.isNullish)(t))throw Error("Missing privateKey parameter");if("x25519-xsalsa20-poly1305"===e.version){let i=h(t),n=a.box.keyPair.fromSecretKey(i).secretKey,r=l.decodeBase64(e.nonce),o=l.decodeBase64(e.ciphertext),s=l.decodeBase64(e.ephemPublicKey),u=a.box.open(o,r,s,n);try{if(!u)throw Error();let e=l.encodeUTF8(u);if(!e)throw Error();return e}catch(e){if(e&&"string"==typeof e.message&&e.message.length)throw Error(`Decryption failed: ${e.message}`);throw Error("Decryption failed.")}}throw Error("Encryption type/version not supported.")}function h(e){let t=n.from(e,"hex").toString("base64");return l.decodeBase64(t)}t.encrypt=d,t.encryptSafely=function({publicKey:e,data:t,version:i}){if((0,u.isNullish)(e))throw Error("Missing publicKey parameter");if((0,u.isNullish)(t))throw Error("Missing data parameter");if((0,u.isNullish)(i))throw Error("Missing version parameter");if("object"==typeof t&&t&&"toJSON"in t)throw Error("Cannot encrypt with toJSON property. Please remove toJSON property");let r={data:t,padding:""},o=n.byteLength(JSON.stringify(r),"utf-8")%2048,s=0;return o>0&&(s=2048-o-16),r.padding="0".repeat(s),d({publicKey:e,data:JSON.stringify(r),version:i})},t.decrypt=c,t.decryptSafely=function({encryptedData:e,privateKey:t}){if((0,u.isNullish)(e))throw Error("Missing encryptedData parameter");if((0,u.isNullish)(t))throw Error("Missing privateKey parameter");return JSON.parse(c({encryptedData:e,privateKey:t})).data},t.getEncryptionPublicKey=function(e){let t=h(e),i=a.box.keyPair.fromSecretKey(t).publicKey;return l.encodeBase64(i)}},50539:function(e,t,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i);var r=Object.getOwnPropertyDescriptor(t,i);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,n,r)}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),r=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||n(t,e,i)};Object.defineProperty(t,"__esModule",{value:!0}),t.normalize=t.concatSig=void 0,r(i(91695),t),r(i(5190),t),r(i(92517),t);var o=i(65491);Object.defineProperty(t,"concatSig",{enumerable:!0,get:function(){return o.concatSig}}),Object.defineProperty(t,"normalize",{enumerable:!0,get:function(){return o.normalize}})},91695:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extractPublicKey=t.recoverPersonalSignature=t.personalSign=void 0;let n=i(45372),r=i(65491);function o(e,t){let i=(0,n.hashPersonalMessage)((0,r.legacyToBuffer)(e));return(0,r.recoverPublicKey)(i,t)}t.personalSign=function({privateKey:e,data:t}){if((0,r.isNullish)(t))throw Error("Missing data parameter");if((0,r.isNullish)(e))throw Error("Missing privateKey parameter");let i=(0,r.legacyToBuffer)(t),o=(0,n.hashPersonalMessage)(i),s=(0,n.ecsign)(o,e);return(0,r.concatSig)((0,n.toBuffer)(s.v),s.r,s.s)},t.recoverPersonalSignature=function({data:e,signature:t}){if((0,r.isNullish)(e))throw Error("Missing data parameter");if((0,r.isNullish)(t))throw Error("Missing signature parameter");let i=o(e,t),s=(0,n.publicToAddress)(i);return(0,n.bufferToHex)(s)},t.extractPublicKey=function({data:e,signature:t}){if((0,r.isNullish)(e))throw Error("Missing data parameter");if((0,r.isNullish)(t))throw Error("Missing signature parameter");return`0x${o(e,t).toString("hex")}`}},5190:(e,t,i)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.recoverTypedSignature=t.signTypedData=t.typedSignatureHash=t.TypedDataUtils=t.TYPED_MESSAGE_SCHEMA=t.SignTypedDataVersion=void 0;let r=i(45372),o=i(40260),s=i(84206),a=i(92313),l=i(45554),u=i(1115),d=i(65491);function c(e,t){if(Object.keys(n).includes(e)){if(t&&!t.includes(e))throw Error(`SignTypedDataVersion not allowed: '${e}'. Allowed versions are: ${t.join(", ")}`)}else throw Error(`Invalid version: '${e}'`)}function h(e,t){(0,l.assert)(null!==t,`Unable to encode value: Invalid number. Expected a valid number value, but received "${t}".`);let i=BigInt(t),n=(0,s.getLength)(e),r=BigInt(2)**BigInt(n)-BigInt(1);return(0,l.assert)(i>=-r&&i<=r,`Unable to encode value: Number "${t}" is out of range for type "${e}".`),i}function f(e,t,i,s){c(s,[n.V3,n.V4]);let d=["bytes32"],p=[v(e,i)];for(let g of i[e]){if(s===n.V3&&void 0===t[g.name])continue;let[e,m]=function e(t,i,s,d,p){if(c(p,[n.V3,n.V4]),void 0!==t[s])return["bytes32",p===n.V4&&null==d?"0x0000000000000000000000000000000000000000000000000000000000000000":(0,r.arrToBufArr)((0,u.keccak256)(f(s,d,t,p)))];if("function"===s)throw Error('Unsupported or invalid type: "function"');if(void 0===d)throw Error(`missing value for field ${i} of type ${s}`);if("address"===s){if("number"==typeof d)return["address",(0,a.padStart)((0,l.numberToBytes)(d),20)];if((0,l.isStrictHexString)(d))return["address",(0,l.add0x)(d)];if("string"==typeof d)return["address",(function(e){let t=BigInt(0);for(let i=0;i=49?t+=n-BigInt(49)+BigInt(10):n>=17?t+=n-BigInt(17)+BigInt(10):t+=n}return(0,a.padStart)((0,l.bigIntToBytes)(t),20)})(d).subarray(0,20)]}if("bool"===s)return["bool",!!d];if("bytes"===s)return"number"==typeof d?d=(0,l.numberToBytes)(d):(0,l.isStrictHexString)(d)||"0x"===d?d=(0,l.hexToBytes)(d):"string"==typeof d&&(d=(0,l.stringToBytes)(d)),["bytes32",(0,r.arrToBufArr)((0,u.keccak256)(d))];if(s.startsWith("bytes")&&"bytes"!==s&&!s.includes("["))return"number"==typeof d?d<0?["bytes32",new Uint8Array(32)]:["bytes32",(0,l.bigIntToBytes)(BigInt(d))]:(0,l.isStrictHexString)(d)?["bytes32",(0,l.hexToBytes)(d)]:["bytes32",d];if(s.startsWith("int")&&!s.includes("[")){let e=h(s,d);return e>=BigInt(0)?["uint256",e]:["int256",e]}if("string"===s)return d="number"==typeof d?(0,l.numberToBytes)(d):(0,l.stringToBytes)(null!=d?d:""),["bytes32",(0,r.arrToBufArr)((0,u.keccak256)(d))];if(s.endsWith("]")){if(p===n.V3)throw Error("Arrays are unimplemented in encodeData; use V4 extension");let a=s.slice(0,s.lastIndexOf("[")),l=d.map(n=>e(t,i,a,n,p));return["bytes32",(0,r.arrToBufArr)((0,u.keccak256)((0,o.encode)(l.map(([e])=>e),l.map(([,e])=>e))))]}return[s,d]}(i,g.name,g.type,t[g.name],s);d.push(e),p.push(m)}return(0,r.arrToBufArr)((0,o.encode)(d,p))}function p(e,t){let i="",n=g(e,t);for(let r of(n.delete(e),[e,...Array.from(n).sort()])){if(!t[r])throw Error(`No type definition specified: ${r}`);i+=`${r}(${t[r].map(({name:e,type:t})=>`${t} ${e}`).join(",")})`}return i}function g(e,t,i=new Set){if("string"!=typeof e)throw Error(`Invalid findTypeDependencies input ${JSON.stringify(e)}`);let n=e.match(/^\w*/u);if([e]=n,i.has(e)||void 0===t[e])return i;for(let n of(i.add(e),t[e]))g(n.type,t,i);return i}function m(e,t,i,o){c(o,[n.V3,n.V4]);let s=f(e,t,i,o),a=(0,u.keccak256)(s);return(0,r.arrToBufArr)(a)}function v(e,t){let i=(0,l.stringToBytes)(p(e,t));return(0,r.arrToBufArr)((0,u.keccak256)(i))}function b(e){let i={};for(let n in t.TYPED_MESSAGE_SCHEMA.properties)e[n]&&(i[n]=e[n]);return"types"in i&&(i.types=Object.assign({EIP712Domain:[]},i.types)),i}function y(e,t){c(t,[n.V3,n.V4]);let i=b(e),{domain:r}=i;return m("EIP712Domain",r,{EIP712Domain:i.types.EIP712Domain},t)}function _(e){let t=Error("Expect argument to be non-empty array");if("object"!=typeof e||!("length"in e)||!e.length)throw t;let i=e.map(({name:e,type:t,value:i})=>{if("address[]"===t)return{name:e,type:"bytes32[]",value:i.map(e=>"number"==typeof e?(0,a.padStart)((0,l.numberToBytes)(e),32):(0,l.isStrictHexString)(e)?(0,a.padStart)((0,l.hexToBytes)(e).subarray(0,32),32):e instanceof Uint8Array?(0,a.padStart)(e.subarray(0,32),32):e)};if(t.startsWith("int")&&(0,s.isArrayType)(t)){let[n,r]=(0,s.getArrayType)(t);return{name:e,type:`bytes32[${null!=r?r:""}]`,value:i.map(e=>{if("string"==typeof e||"number"==typeof e||"bigint"==typeof e){let t=h(n,e);if(t>=BigInt(0))return(0,a.padStart)((0,l.bigIntToBytes)(t),32);let i=BigInt.asIntN((0,s.getLength)(n),t);return(0,l.signedBigIntToBytes)(i,32)}return e})}}return{name:e,type:t,value:function e(t,i){if((0,s.isArrayType)(t)&&Array.isArray(i)){let[n]=(0,s.getArrayType)(t);return i.map(t=>e(n,t))}if("address"===t){if("number"==typeof i)return(0,a.padStart)((0,l.numberToBytes)(i),20);if((0,l.isStrictHexString)(i))return(0,a.padStart)((0,l.hexToBytes)(i).subarray(0,20),20);if(i instanceof Uint8Array)return(0,a.padStart)(i.subarray(0,20),20)}if("bool"===t)return!!i;if(t.startsWith("bytes")&&"bytes"!==t){let e=(0,s.getByteLength)(t);if("number"==typeof i)return i<0?new Uint8Array:(0,l.numberToBytes)(i).subarray(0,e);if((0,l.isStrictHexString)(i))return(0,l.hexToBytes)(i).subarray(0,e);if(i instanceof Uint8Array)return i.subarray(0,e)}return t.startsWith("uint")&&"number"==typeof i?Math.abs(i):t.startsWith("int")&&"number"==typeof i?BigInt.asIntN((0,s.getLength)(t),BigInt(i)):i}(t,i)}}),n=i.map(e=>"bytes"!==e.type?e.value:(0,d.legacyToBuffer)(e.value)),c=i.map(e=>{if("function"===e.type)throw Error('Unsupported or invalid type: "function"');return e.type}),f=e.map(e=>{if(!e.name)throw t;return`${e.type} ${e.name}`});return(0,r.arrToBufArr)((0,u.keccak256)((0,o.encodePacked)(["bytes32","bytes32"],[(0,u.keccak256)((0,o.encodePacked)(["string[]"],[f],!0)),(0,u.keccak256)((0,o.encodePacked)(c,n,!0))])))}!function(e){e.V1="V1",e.V3="V3",e.V4="V4"}(n=t.SignTypedDataVersion||(t.SignTypedDataVersion={})),t.TYPED_MESSAGE_SCHEMA={type:"object",properties:{types:{type:"object",additionalProperties:{type:"array",items:{type:"object",properties:{name:{type:"string"},type:{type:"string"}},required:["name","type"]}}},primaryType:{type:"string"},domain:{type:"object"},message:{type:"object"}},required:["types","primaryType","domain","message"]},t.TypedDataUtils={encodeData:f,encodeType:p,findTypeDependencies:g,hashStruct:m,hashType:v,sanitizeData:b,eip712Hash:function(e,t){c(t,[n.V3,n.V4]);let i=b(e),o=[(0,l.hexToBytes)("1901")];return o.push(y(e,t)),"EIP712Domain"!==i.primaryType&&o.push(m(i.primaryType,i.message,i.types,t)),(0,r.arrToBufArr)((0,u.keccak256)((0,l.concatBytes)(o)))},eip712DomainHash:y},t.typedSignatureHash=function(e){let t=_(e);return(0,l.bytesToHex)(t)},t.signTypedData=function({privateKey:e,data:i,version:o}){if(c(o),(0,d.isNullish)(i))throw Error("Missing data parameter");if((0,d.isNullish)(e))throw Error("Missing private key parameter");let s=o===n.V1?_(i):t.TypedDataUtils.eip712Hash(i,o),a=(0,r.ecsign)(s,e);return(0,d.concatSig)((0,r.arrToBufArr)((0,l.bigIntToBytes)(a.v)),a.r,a.s)},t.recoverTypedSignature=function({data:e,signature:i,version:o}){if(c(o),(0,d.isNullish)(e))throw Error("Missing data parameter");if((0,d.isNullish)(i))throw Error("Missing signature parameter");let s=o===n.V1?_(e):t.TypedDataUtils.eip712Hash(e,o),a=(0,d.recoverPublicKey)(s,i),u=(0,r.publicToAddress)(a);return(0,l.bytesToHex)(u)}},65491:(e,t,i)=>{"use strict";var n=i(48834).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.normalize=t.recoverPublicKey=t.concatSig=t.legacyToBuffer=t.isNullish=t.padWithZeroes=void 0;let r=i(45372),o=i(45554);function s(e,t){if(""!==e&&!/^[a-f0-9]+$/iu.test(e))throw Error(`Expected an unprefixed hex string. Received: ${e}`);if(t<0)throw Error(`Expected a non-negative integer target length. Received: ${t}`);return String.prototype.padStart.call(e,t,"0")}function a(e){return null==e}t.padWithZeroes=s,t.isNullish=a,t.legacyToBuffer=function(e){return"string"!=typeof e||(0,r.isHexString)(e)?(0,r.toBuffer)(e):n.from(e)},t.concatSig=function(e,t,i){let n=(0,r.fromSigned)(t),a=(0,r.fromSigned)(i),l=(0,r.bufferToInt)(e),u=s((0,r.toUnsigned)(n).toString("hex"),64),d=s((0,r.toUnsigned)(a).toString("hex"),64),c=(0,o.remove0x)((0,o.numberToHex)(l));return(0,o.add0x)(u.concat(d,c))},t.recoverPublicKey=function(e,t){let i=(0,r.fromRpcSig)(t);return(0,r.ecrecover)(e,i.v,i.r,i.s)},t.normalize=function(e){if(!a(e)){if("number"==typeof e){if(e<0)return"0x";let t=(0,o.numberToBytes)(e);e=(0,o.bytesToHex)(t)}if("string"!=typeof e){let t="eth-sig-util.normalize() requires hex string or integer input.";throw Error(t+=` received ${typeof e}: ${e}`)}return(0,o.add0x)(e.toLowerCase())}}},97817:(e,t,i)=>{"use strict";var n=i(7179),r=i(13367),o=new n(0),s=new n(-1),a={noether:"0",wei:"1",kwei:"1000",Kwei:"1000",babbage:"1000",femtoether:"1000",mwei:"1000000",Mwei:"1000000",lovelace:"1000000",picoether:"1000000",gwei:"1000000000",Gwei:"1000000000",shannon:"1000000000",nanoether:"1000000000",nano:"1000000000",szabo:"1000000000000",microether:"1000000000000",micro:"1000000000000",finney:"1000000000000000",milliether:"1000000000000000",milli:"1000000000000000",ether:"1000000000000000000",kether:"1000000000000000000000",grand:"1000000000000000000000",mether:"1000000000000000000000000",gether:"1000000000000000000000000000",tether:"1000000000000000000000000000000"};function l(e){var t=a[e?e.toLowerCase():"ether"];if("string"!=typeof t)throw Error("[ethjs-unit] the unit provided "+e+" doesn't exists, please use the one of the following units "+JSON.stringify(a,null,2));return new n(t,10)}function u(e){if("string"==typeof e){if(!e.match(/^-?[0-9.]+$/))throw Error("while converting number to string, invalid number value '"+e+"', should be a number matching (^-?[0-9.]+).");return e}if("number"==typeof e)return String(e);if("object"==typeof e&&e.toString&&(e.toTwos||e.dividedToIntegerBy))return e.toPrecision?String(e.toPrecision()):e.toString(10);throw Error("while converting number to string, invalid number value '"+e+"' type "+typeof e+".")}e.exports={unitMap:a,numberToString:u,getValueOfUnit:l,fromWei:function(e,t,i){var n=r(e),u=n.lt(o),d=l(t),c=a[t].length-1||1,h=i||{};u&&(n=n.mul(s));for(var f=n.mod(d).toString(10);f.length2)throw Error("[ethjs-unit] while converting number "+e+" to wei, too many decimal points");var h=c[0],f=c[1];if(h||(h="0"),f||(f="0"),f.length>o)throw Error("[ethjs-unit] while converting number "+e+" to wei, too many decimal places");for(;f.length=49&&s<=54?n|=s-49+10:s>=17&&s<=22?n|=s-17+10:n|=15&s}return n}function a(e,t,i,n){for(var r=0,o=Math.min(e.length,i),s=t;s=49?r+=a-49+10:a>=17?r+=a-17+10:r+=a}return r}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return 0>e.cmp(t)?e:t},o.prototype._init=function(e,t,i){if("number"==typeof e)return this._initNumber(e,t,i);if("object"==typeof e)return this._initArray(e,t,i);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var r=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&r++,16===t?this._parseHex(e,r):this._parseBase(e,t,r),"-"===e[0]&&(this.negative=1),this.strip(),"le"===i&&this._initArray(this.toArray(),t,i)},o.prototype._initNumber=function(e,t,i){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),t,i)},o.prototype._initArray=function(e,t,i){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=Array(this.length);for(var r,o,s=0;s=0;s-=3)o=e[s]|e[s-1]<<8|e[s-2]<<16,this.words[r]|=o<>>26-a&67108863,(a+=24)>=26&&(a-=26,r++);else if("le"===i)for(s=0,r=0;s>>26-a&67108863,(a+=24)>=26&&(a-=26,r++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var i,n,r=0;r=t;r-=6)n=s(e,r,r+6),this.words[i]|=n<>>26-o&4194303,(o+=24)>=26&&(o-=26,i++);r+6!==t&&(n=s(e,t,r+6),this.words[i]|=n<>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,i){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=t)n++;n--,r=r/t|0;for(var o=e.length-i,s=o%n,l=Math.min(o,o-s)+i,u=0,d=i;d1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var l,u=["","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"],d=[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],c=[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];function h(e,t,i){i.negative=t.negative^e.negative;var n=e.length+t.length|0;i.length=n,n=n-1|0;var r=0|e.words[0],o=0|t.words[0],s=r*o,a=67108863&s,l=s/67108864|0;i.words[0]=a;for(var u=1;u>>26,c=67108863&l,h=Math.min(u,t.length-1),f=Math.max(0,u-e.length+1);f<=h;f++){var p=u-f|0;d+=(s=(r=0|e.words[p])*(o=0|t.words[f])+c)/67108864|0,c=67108863&s}i.words[u]=0|c,l=0|d}return 0!==l?i.words[u]=0|l:i.length--,i.strip()}o.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){i="";for(var i,r=0,o=0,s=0;s>>24-r&16777215)||s!==this.length-1?u[6-l.length]+l+i:l+i,(r+=2)>=26&&(r-=26,s--)}for(0!==o&&(i=o.toString(16)+i);i.length%t!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(e===(0|e)&&e>=2&&e<=36){var h=d[e],f=c[e];i="";var p=this.clone();for(p.negative=0;!p.isZero();){var g=p.modn(f).toString(e);i=(p=p.idivn(f)).isZero()?g+i:u[h-g.length]+g+i}for(this.isZero()&&(i="0"+i);i.length%t!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return n(void 0!==l),this.toArrayLike(l,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,i){var r,o,s=this.byteLength(),a=i||Math.max(1,s);n(s<=a,"byte array longer than desired length"),n(a>0,"Requested array length <= 0"),this.strip();var l=new e(a),u=this.clone();if("le"===t){for(o=0;!u.isZero();o++)r=u.andln(255),u.iushrn(8),l[o]=r;for(;o=4096&&(i+=13,t>>>=13),t>=64&&(i+=7,t>>>=7),t>=8&&(i+=4,t>>>=4),t>=2&&(i+=2,t>>>=2),i+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,i=0;return(8191&t)==0&&(i+=13,t>>>=13),(127&t)==0&&(i+=7,t>>>=7),(15&t)==0&&(i+=4,t>>>=4),(3&t)==0&&(i+=2,t>>>=2),(1&t)==0&&i++,i},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var i=0;ie.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){this.length>e.length?(t=this,i=e):(t=e,i=this);for(var t,i,n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),i=e%26;this._expand(t),i>0&&t--;for(var r=0;r0&&(this.words[r]=~this.words[r]&67108863>>26-i),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var i=e/26|0,r=e%26;return this._expand(i+1),t?this.words[i]=this.words[i]|1<e.length?(i=this,n=e):(i=e,n=this);for(var t,i,n,r=0,o=0;o>>26;for(;0!==r&&o>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,i,n=this.iadd(e);return e.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r=this.cmp(e);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(t=this,i=e):(t=e,i=this);for(var o=0,s=0;s>26,this.words[s]=67108863&n;for(;0!==o&&s>26,this.words[s]=67108863&n;if(0===o&&s>>13,f=0|s[1],p=8191&f,g=f>>>13,m=0|s[2],v=8191&m,b=m>>>13,y=0|s[3],_=8191&y,w=y>>>13,C=0|s[4],S=8191&C,x=C>>>13,k=0|s[5],E=8191&k,L=k>>>13,M=0|s[6],N=8191&M,D=M>>>13,A=0|s[7],T=8191&A,I=A>>>13,O=0|s[8],P=8191&O,R=O>>>13,F=0|s[9],B=8191&F,H=F>>>13,z=0|a[0],V=8191&z,j=z>>>13,W=0|a[1],U=8191&W,$=W>>>13,K=0|a[2],q=8191&K,G=K>>>13,Z=0|a[3],Y=8191&Z,J=Z>>>13,Q=0|a[4],X=8191&Q,ee=Q>>>13,et=0|a[5],ei=8191&et,en=et>>>13,er=0|a[6],eo=8191&er,es=er>>>13,ea=0|a[7],el=8191&ea,eu=ea>>>13,ed=0|a[8],ec=8191&ed,eh=ed>>>13,ef=0|a[9],ep=8191&ef,eg=ef>>>13;i.negative=e.negative^t.negative,i.length=19;var em=(u+(n=Math.imul(c,V))|0)+((8191&(r=(r=Math.imul(c,j))+Math.imul(h,V)|0))<<13)|0;u=((o=Math.imul(h,j))+(r>>>13)|0)+(em>>>26)|0,em&=67108863,n=Math.imul(p,V),r=(r=Math.imul(p,j))+Math.imul(g,V)|0,o=Math.imul(g,j);var ev=(u+(n=n+Math.imul(c,U)|0)|0)+((8191&(r=(r=r+Math.imul(c,$)|0)+Math.imul(h,U)|0))<<13)|0;u=((o=o+Math.imul(h,$)|0)+(r>>>13)|0)+(ev>>>26)|0,ev&=67108863,n=Math.imul(v,V),r=(r=Math.imul(v,j))+Math.imul(b,V)|0,o=Math.imul(b,j),n=n+Math.imul(p,U)|0,r=(r=r+Math.imul(p,$)|0)+Math.imul(g,U)|0,o=o+Math.imul(g,$)|0;var eb=(u+(n=n+Math.imul(c,q)|0)|0)+((8191&(r=(r=r+Math.imul(c,G)|0)+Math.imul(h,q)|0))<<13)|0;u=((o=o+Math.imul(h,G)|0)+(r>>>13)|0)+(eb>>>26)|0,eb&=67108863,n=Math.imul(_,V),r=(r=Math.imul(_,j))+Math.imul(w,V)|0,o=Math.imul(w,j),n=n+Math.imul(v,U)|0,r=(r=r+Math.imul(v,$)|0)+Math.imul(b,U)|0,o=o+Math.imul(b,$)|0,n=n+Math.imul(p,q)|0,r=(r=r+Math.imul(p,G)|0)+Math.imul(g,q)|0,o=o+Math.imul(g,G)|0;var ey=(u+(n=n+Math.imul(c,Y)|0)|0)+((8191&(r=(r=r+Math.imul(c,J)|0)+Math.imul(h,Y)|0))<<13)|0;u=((o=o+Math.imul(h,J)|0)+(r>>>13)|0)+(ey>>>26)|0,ey&=67108863,n=Math.imul(S,V),r=(r=Math.imul(S,j))+Math.imul(x,V)|0,o=Math.imul(x,j),n=n+Math.imul(_,U)|0,r=(r=r+Math.imul(_,$)|0)+Math.imul(w,U)|0,o=o+Math.imul(w,$)|0,n=n+Math.imul(v,q)|0,r=(r=r+Math.imul(v,G)|0)+Math.imul(b,q)|0,o=o+Math.imul(b,G)|0,n=n+Math.imul(p,Y)|0,r=(r=r+Math.imul(p,J)|0)+Math.imul(g,Y)|0,o=o+Math.imul(g,J)|0;var e_=(u+(n=n+Math.imul(c,X)|0)|0)+((8191&(r=(r=r+Math.imul(c,ee)|0)+Math.imul(h,X)|0))<<13)|0;u=((o=o+Math.imul(h,ee)|0)+(r>>>13)|0)+(e_>>>26)|0,e_&=67108863,n=Math.imul(E,V),r=(r=Math.imul(E,j))+Math.imul(L,V)|0,o=Math.imul(L,j),n=n+Math.imul(S,U)|0,r=(r=r+Math.imul(S,$)|0)+Math.imul(x,U)|0,o=o+Math.imul(x,$)|0,n=n+Math.imul(_,q)|0,r=(r=r+Math.imul(_,G)|0)+Math.imul(w,q)|0,o=o+Math.imul(w,G)|0,n=n+Math.imul(v,Y)|0,r=(r=r+Math.imul(v,J)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,J)|0,n=n+Math.imul(p,X)|0,r=(r=r+Math.imul(p,ee)|0)+Math.imul(g,X)|0,o=o+Math.imul(g,ee)|0;var ew=(u+(n=n+Math.imul(c,ei)|0)|0)+((8191&(r=(r=r+Math.imul(c,en)|0)+Math.imul(h,ei)|0))<<13)|0;u=((o=o+Math.imul(h,en)|0)+(r>>>13)|0)+(ew>>>26)|0,ew&=67108863,n=Math.imul(N,V),r=(r=Math.imul(N,j))+Math.imul(D,V)|0,o=Math.imul(D,j),n=n+Math.imul(E,U)|0,r=(r=r+Math.imul(E,$)|0)+Math.imul(L,U)|0,o=o+Math.imul(L,$)|0,n=n+Math.imul(S,q)|0,r=(r=r+Math.imul(S,G)|0)+Math.imul(x,q)|0,o=o+Math.imul(x,G)|0,n=n+Math.imul(_,Y)|0,r=(r=r+Math.imul(_,J)|0)+Math.imul(w,Y)|0,o=o+Math.imul(w,J)|0,n=n+Math.imul(v,X)|0,r=(r=r+Math.imul(v,ee)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,ee)|0,n=n+Math.imul(p,ei)|0,r=(r=r+Math.imul(p,en)|0)+Math.imul(g,ei)|0,o=o+Math.imul(g,en)|0;var eC=(u+(n=n+Math.imul(c,eo)|0)|0)+((8191&(r=(r=r+Math.imul(c,es)|0)+Math.imul(h,eo)|0))<<13)|0;u=((o=o+Math.imul(h,es)|0)+(r>>>13)|0)+(eC>>>26)|0,eC&=67108863,n=Math.imul(T,V),r=(r=Math.imul(T,j))+Math.imul(I,V)|0,o=Math.imul(I,j),n=n+Math.imul(N,U)|0,r=(r=r+Math.imul(N,$)|0)+Math.imul(D,U)|0,o=o+Math.imul(D,$)|0,n=n+Math.imul(E,q)|0,r=(r=r+Math.imul(E,G)|0)+Math.imul(L,q)|0,o=o+Math.imul(L,G)|0,n=n+Math.imul(S,Y)|0,r=(r=r+Math.imul(S,J)|0)+Math.imul(x,Y)|0,o=o+Math.imul(x,J)|0,n=n+Math.imul(_,X)|0,r=(r=r+Math.imul(_,ee)|0)+Math.imul(w,X)|0,o=o+Math.imul(w,ee)|0,n=n+Math.imul(v,ei)|0,r=(r=r+Math.imul(v,en)|0)+Math.imul(b,ei)|0,o=o+Math.imul(b,en)|0,n=n+Math.imul(p,eo)|0,r=(r=r+Math.imul(p,es)|0)+Math.imul(g,eo)|0,o=o+Math.imul(g,es)|0;var eS=(u+(n=n+Math.imul(c,el)|0)|0)+((8191&(r=(r=r+Math.imul(c,eu)|0)+Math.imul(h,el)|0))<<13)|0;u=((o=o+Math.imul(h,eu)|0)+(r>>>13)|0)+(eS>>>26)|0,eS&=67108863,n=Math.imul(P,V),r=(r=Math.imul(P,j))+Math.imul(R,V)|0,o=Math.imul(R,j),n=n+Math.imul(T,U)|0,r=(r=r+Math.imul(T,$)|0)+Math.imul(I,U)|0,o=o+Math.imul(I,$)|0,n=n+Math.imul(N,q)|0,r=(r=r+Math.imul(N,G)|0)+Math.imul(D,q)|0,o=o+Math.imul(D,G)|0,n=n+Math.imul(E,Y)|0,r=(r=r+Math.imul(E,J)|0)+Math.imul(L,Y)|0,o=o+Math.imul(L,J)|0,n=n+Math.imul(S,X)|0,r=(r=r+Math.imul(S,ee)|0)+Math.imul(x,X)|0,o=o+Math.imul(x,ee)|0,n=n+Math.imul(_,ei)|0,r=(r=r+Math.imul(_,en)|0)+Math.imul(w,ei)|0,o=o+Math.imul(w,en)|0,n=n+Math.imul(v,eo)|0,r=(r=r+Math.imul(v,es)|0)+Math.imul(b,eo)|0,o=o+Math.imul(b,es)|0,n=n+Math.imul(p,el)|0,r=(r=r+Math.imul(p,eu)|0)+Math.imul(g,el)|0,o=o+Math.imul(g,eu)|0;var ex=(u+(n=n+Math.imul(c,ec)|0)|0)+((8191&(r=(r=r+Math.imul(c,eh)|0)+Math.imul(h,ec)|0))<<13)|0;u=((o=o+Math.imul(h,eh)|0)+(r>>>13)|0)+(ex>>>26)|0,ex&=67108863,n=Math.imul(B,V),r=(r=Math.imul(B,j))+Math.imul(H,V)|0,o=Math.imul(H,j),n=n+Math.imul(P,U)|0,r=(r=r+Math.imul(P,$)|0)+Math.imul(R,U)|0,o=o+Math.imul(R,$)|0,n=n+Math.imul(T,q)|0,r=(r=r+Math.imul(T,G)|0)+Math.imul(I,q)|0,o=o+Math.imul(I,G)|0,n=n+Math.imul(N,Y)|0,r=(r=r+Math.imul(N,J)|0)+Math.imul(D,Y)|0,o=o+Math.imul(D,J)|0,n=n+Math.imul(E,X)|0,r=(r=r+Math.imul(E,ee)|0)+Math.imul(L,X)|0,o=o+Math.imul(L,ee)|0,n=n+Math.imul(S,ei)|0,r=(r=r+Math.imul(S,en)|0)+Math.imul(x,ei)|0,o=o+Math.imul(x,en)|0,n=n+Math.imul(_,eo)|0,r=(r=r+Math.imul(_,es)|0)+Math.imul(w,eo)|0,o=o+Math.imul(w,es)|0,n=n+Math.imul(v,el)|0,r=(r=r+Math.imul(v,eu)|0)+Math.imul(b,el)|0,o=o+Math.imul(b,eu)|0,n=n+Math.imul(p,ec)|0,r=(r=r+Math.imul(p,eh)|0)+Math.imul(g,ec)|0,o=o+Math.imul(g,eh)|0;var ek=(u+(n=n+Math.imul(c,ep)|0)|0)+((8191&(r=(r=r+Math.imul(c,eg)|0)+Math.imul(h,ep)|0))<<13)|0;u=((o=o+Math.imul(h,eg)|0)+(r>>>13)|0)+(ek>>>26)|0,ek&=67108863,n=Math.imul(B,U),r=(r=Math.imul(B,$))+Math.imul(H,U)|0,o=Math.imul(H,$),n=n+Math.imul(P,q)|0,r=(r=r+Math.imul(P,G)|0)+Math.imul(R,q)|0,o=o+Math.imul(R,G)|0,n=n+Math.imul(T,Y)|0,r=(r=r+Math.imul(T,J)|0)+Math.imul(I,Y)|0,o=o+Math.imul(I,J)|0,n=n+Math.imul(N,X)|0,r=(r=r+Math.imul(N,ee)|0)+Math.imul(D,X)|0,o=o+Math.imul(D,ee)|0,n=n+Math.imul(E,ei)|0,r=(r=r+Math.imul(E,en)|0)+Math.imul(L,ei)|0,o=o+Math.imul(L,en)|0,n=n+Math.imul(S,eo)|0,r=(r=r+Math.imul(S,es)|0)+Math.imul(x,eo)|0,o=o+Math.imul(x,es)|0,n=n+Math.imul(_,el)|0,r=(r=r+Math.imul(_,eu)|0)+Math.imul(w,el)|0,o=o+Math.imul(w,eu)|0,n=n+Math.imul(v,ec)|0,r=(r=r+Math.imul(v,eh)|0)+Math.imul(b,ec)|0,o=o+Math.imul(b,eh)|0;var eE=(u+(n=n+Math.imul(p,ep)|0)|0)+((8191&(r=(r=r+Math.imul(p,eg)|0)+Math.imul(g,ep)|0))<<13)|0;u=((o=o+Math.imul(g,eg)|0)+(r>>>13)|0)+(eE>>>26)|0,eE&=67108863,n=Math.imul(B,q),r=(r=Math.imul(B,G))+Math.imul(H,q)|0,o=Math.imul(H,G),n=n+Math.imul(P,Y)|0,r=(r=r+Math.imul(P,J)|0)+Math.imul(R,Y)|0,o=o+Math.imul(R,J)|0,n=n+Math.imul(T,X)|0,r=(r=r+Math.imul(T,ee)|0)+Math.imul(I,X)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(N,ei)|0,r=(r=r+Math.imul(N,en)|0)+Math.imul(D,ei)|0,o=o+Math.imul(D,en)|0,n=n+Math.imul(E,eo)|0,r=(r=r+Math.imul(E,es)|0)+Math.imul(L,eo)|0,o=o+Math.imul(L,es)|0,n=n+Math.imul(S,el)|0,r=(r=r+Math.imul(S,eu)|0)+Math.imul(x,el)|0,o=o+Math.imul(x,eu)|0,n=n+Math.imul(_,ec)|0,r=(r=r+Math.imul(_,eh)|0)+Math.imul(w,ec)|0,o=o+Math.imul(w,eh)|0;var eL=(u+(n=n+Math.imul(v,ep)|0)|0)+((8191&(r=(r=r+Math.imul(v,eg)|0)+Math.imul(b,ep)|0))<<13)|0;u=((o=o+Math.imul(b,eg)|0)+(r>>>13)|0)+(eL>>>26)|0,eL&=67108863,n=Math.imul(B,Y),r=(r=Math.imul(B,J))+Math.imul(H,Y)|0,o=Math.imul(H,J),n=n+Math.imul(P,X)|0,r=(r=r+Math.imul(P,ee)|0)+Math.imul(R,X)|0,o=o+Math.imul(R,ee)|0,n=n+Math.imul(T,ei)|0,r=(r=r+Math.imul(T,en)|0)+Math.imul(I,ei)|0,o=o+Math.imul(I,en)|0,n=n+Math.imul(N,eo)|0,r=(r=r+Math.imul(N,es)|0)+Math.imul(D,eo)|0,o=o+Math.imul(D,es)|0,n=n+Math.imul(E,el)|0,r=(r=r+Math.imul(E,eu)|0)+Math.imul(L,el)|0,o=o+Math.imul(L,eu)|0,n=n+Math.imul(S,ec)|0,r=(r=r+Math.imul(S,eh)|0)+Math.imul(x,ec)|0,o=o+Math.imul(x,eh)|0;var eM=(u+(n=n+Math.imul(_,ep)|0)|0)+((8191&(r=(r=r+Math.imul(_,eg)|0)+Math.imul(w,ep)|0))<<13)|0;u=((o=o+Math.imul(w,eg)|0)+(r>>>13)|0)+(eM>>>26)|0,eM&=67108863,n=Math.imul(B,X),r=(r=Math.imul(B,ee))+Math.imul(H,X)|0,o=Math.imul(H,ee),n=n+Math.imul(P,ei)|0,r=(r=r+Math.imul(P,en)|0)+Math.imul(R,ei)|0,o=o+Math.imul(R,en)|0,n=n+Math.imul(T,eo)|0,r=(r=r+Math.imul(T,es)|0)+Math.imul(I,eo)|0,o=o+Math.imul(I,es)|0,n=n+Math.imul(N,el)|0,r=(r=r+Math.imul(N,eu)|0)+Math.imul(D,el)|0,o=o+Math.imul(D,eu)|0,n=n+Math.imul(E,ec)|0,r=(r=r+Math.imul(E,eh)|0)+Math.imul(L,ec)|0,o=o+Math.imul(L,eh)|0;var eN=(u+(n=n+Math.imul(S,ep)|0)|0)+((8191&(r=(r=r+Math.imul(S,eg)|0)+Math.imul(x,ep)|0))<<13)|0;u=((o=o+Math.imul(x,eg)|0)+(r>>>13)|0)+(eN>>>26)|0,eN&=67108863,n=Math.imul(B,ei),r=(r=Math.imul(B,en))+Math.imul(H,ei)|0,o=Math.imul(H,en),n=n+Math.imul(P,eo)|0,r=(r=r+Math.imul(P,es)|0)+Math.imul(R,eo)|0,o=o+Math.imul(R,es)|0,n=n+Math.imul(T,el)|0,r=(r=r+Math.imul(T,eu)|0)+Math.imul(I,el)|0,o=o+Math.imul(I,eu)|0,n=n+Math.imul(N,ec)|0,r=(r=r+Math.imul(N,eh)|0)+Math.imul(D,ec)|0,o=o+Math.imul(D,eh)|0;var eD=(u+(n=n+Math.imul(E,ep)|0)|0)+((8191&(r=(r=r+Math.imul(E,eg)|0)+Math.imul(L,ep)|0))<<13)|0;u=((o=o+Math.imul(L,eg)|0)+(r>>>13)|0)+(eD>>>26)|0,eD&=67108863,n=Math.imul(B,eo),r=(r=Math.imul(B,es))+Math.imul(H,eo)|0,o=Math.imul(H,es),n=n+Math.imul(P,el)|0,r=(r=r+Math.imul(P,eu)|0)+Math.imul(R,el)|0,o=o+Math.imul(R,eu)|0,n=n+Math.imul(T,ec)|0,r=(r=r+Math.imul(T,eh)|0)+Math.imul(I,ec)|0,o=o+Math.imul(I,eh)|0;var eA=(u+(n=n+Math.imul(N,ep)|0)|0)+((8191&(r=(r=r+Math.imul(N,eg)|0)+Math.imul(D,ep)|0))<<13)|0;u=((o=o+Math.imul(D,eg)|0)+(r>>>13)|0)+(eA>>>26)|0,eA&=67108863,n=Math.imul(B,el),r=(r=Math.imul(B,eu))+Math.imul(H,el)|0,o=Math.imul(H,eu),n=n+Math.imul(P,ec)|0,r=(r=r+Math.imul(P,eh)|0)+Math.imul(R,ec)|0,o=o+Math.imul(R,eh)|0;var eT=(u+(n=n+Math.imul(T,ep)|0)|0)+((8191&(r=(r=r+Math.imul(T,eg)|0)+Math.imul(I,ep)|0))<<13)|0;u=((o=o+Math.imul(I,eg)|0)+(r>>>13)|0)+(eT>>>26)|0,eT&=67108863,n=Math.imul(B,ec),r=(r=Math.imul(B,eh))+Math.imul(H,ec)|0,o=Math.imul(H,eh);var eI=(u+(n=n+Math.imul(P,ep)|0)|0)+((8191&(r=(r=r+Math.imul(P,eg)|0)+Math.imul(R,ep)|0))<<13)|0;u=((o=o+Math.imul(R,eg)|0)+(r>>>13)|0)+(eI>>>26)|0,eI&=67108863;var eO=(u+(n=Math.imul(B,ep))|0)+((8191&(r=(r=Math.imul(B,eg))+Math.imul(H,ep)|0))<<13)|0;return u=((o=Math.imul(H,eg))+(r>>>13)|0)+(eO>>>26)|0,eO&=67108863,l[0]=em,l[1]=ev,l[2]=eb,l[3]=ey,l[4]=e_,l[5]=ew,l[6]=eC,l[7]=eS,l[8]=ex,l[9]=ek,l[10]=eE,l[11]=eL,l[12]=eM,l[13]=eN,l[14]=eD,l[15]=eA,l[16]=eT,l[17]=eI,l[18]=eO,0!==u&&(l[19]=u,i.length++),i};function p(e,t,i){return new g().mulp(e,t,i)}function g(e,t){this.x=e,this.y=t}Math.imul||(f=h),o.prototype.mulTo=function(e,t){var i=this.length+e.length;return 10===this.length&&10===e.length?f(this,e,t):i<63?h(this,e,t):i<1024?function(e,t,i){i.negative=t.negative^e.negative,i.length=e.length+t.length;for(var n=0,r=0,o=0;o>>26)|0)>>>26,s&=67108863}i.words[o]=a,n=s,s=r}return 0!==n?i.words[o]=n:i.length--,i.strip()}(this,e,t):p(this,e,t)},g.prototype.makeRBT=function(e){for(var t=Array(e),i=o.prototype._countBits(e)-1,n=0;n>=1;return n},g.prototype.permute=function(e,t,i,n,r,o){for(var s=0;s>>=1)r++;return 1<>>=13,i[2*s+1]=8191&o,o>>>=13;for(s=2*t;s>=26,t+=(r/67108864|0)+(o>>>26),this.words[i]=67108863&o}return 0!==t&&(this.words[i]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),i=0;i>>r}return t}(e);if(0===t.length)return new o(1);for(var i=this,n=0;n=0);var t,i=e%26,r=(e-i)/26,o=67108863>>>26-i<<26-i;if(0!==i){var s=0;for(t=0;t>>26-i}s&&(this.words[t]=s,this.length++)}if(0!==r){for(t=this.length-1;t>=0;t--)this.words[t+r]=this.words[t];for(t=0;t=0),r=t?(t-t%26)/26:0;var r,o=e%26,s=Math.min((e-o)/26,this.length),a=67108863^67108863>>>o<s)for(this.length-=s,l=0;l=0&&(0!==u||l>=r);l--){var d=0|this.words[l];this.words[l]=u<<26-o|d>>>o,u=d&a}return i&&0!==u&&(i.words[i.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,i){return n(0===this.negative),this.iushrn(e,t,i)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,i=(e-t)/26;return!(this.length<=i)&&!!(this.words[i]&1<=0);var t=e%26,i=(e-t)/26;return(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=i)?this:(0!==t&&i++,this.length=Math.min(i,this.length),0!==t&&(this.words[this.length-1]&=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(l/67108864|0),this.words[r+i]=67108863&o}for(;r>26,this.words[r+i]=67108863&o;if(0===a)return this.strip();for(n(-1===a),a=0,r=0;r>26,this.words[r]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var i,n=this.length-e.length,r=this.clone(),s=e,a=0|s.words[s.length-1];0!=(n=26-this._countBits(a))&&(s=s.ushln(n),r.iushln(n),a=0|s.words[s.length-1]);var l=r.length-s.length;if("mod"!==t){(i=new o(null)).length=l+1,i.words=Array(i.length);for(var u=0;u=0;c--){var h=(0|r.words[s.length+c])*67108864+(0|r.words[s.length+c-1]);for(h=Math.min(h/a|0,67108863),r._ishlnsubmul(s,h,c);0!==r.negative;)h--,r.negative=0,r._ishlnsubmul(s,1,c),r.isZero()||(r.negative^=1);i&&(i.words[c]=h)}return i&&i.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:i||null,mod:r}},o.prototype.divmod=function(e,t,i){var r,s,a;return(n(!e.isZero()),this.isZero())?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),"mod"!==t&&(r=a.div.neg()),"div"!==t&&(s=a.mod.neg(),i&&0!==s.negative&&s.iadd(e)),{div:r,mod:s}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),"mod"!==t&&(r=a.div.neg()),{div:r,mod:a.mod}):(this.negative&e.negative)!=0?(a=this.neg().divmod(e.neg(),t),"div"!==t&&(s=a.mod.neg(),i&&0!==s.negative&&s.isub(e)),{div:a.div,mod:s}):e.length>this.length||0>this.cmp(e)?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t)},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var i=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),r=e.andln(1),o=i.cmp(n);return o<0||1===r&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){n(e<=67108863);for(var t=67108864%e,i=0,r=this.length-1;r>=0;r--)i=(t*i+(0|this.words[r]))%e;return i},o.prototype.idivn=function(e){n(e<=67108863);for(var t=0,i=this.length-1;i>=0;i--){var r=(0|this.words[i])+67108864*t;this.words[i]=r/e|0,t=r%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,i=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var r=new o(1),s=new o(0),a=new o(0),l=new o(1),u=0;t.isEven()&&i.isEven();)t.iushrn(1),i.iushrn(1),++u;for(var d=i.clone(),c=t.clone();!t.isZero();){for(var h=0,f=1;(t.words[0]&f)==0&&h<26;++h,f<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(r.isOdd()||s.isOdd())&&(r.iadd(d),s.isub(c)),r.iushrn(1),s.iushrn(1);for(var p=0,g=1;(i.words[0]&g)==0&&p<26;++p,g<<=1);if(p>0)for(i.iushrn(p);p-- >0;)(a.isOdd()||l.isOdd())&&(a.iadd(d),l.isub(c)),a.iushrn(1),l.iushrn(1);t.cmp(i)>=0?(t.isub(i),r.isub(a),s.isub(l)):(i.isub(t),a.isub(r),l.isub(s))}return{a:a,b:l,gcd:i.iushln(u)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t,i=this,r=e.clone();i=0!==i.negative?i.umod(e):i.clone();for(var s=new o(1),a=new o(0),l=r.clone();i.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,d=1;(i.words[0]&d)==0&&u<26;++u,d<<=1);if(u>0)for(i.iushrn(u);u-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);for(var c=0,h=1;(r.words[0]&h)==0&&c<26;++c,h<<=1);if(c>0)for(r.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);i.cmp(r)>=0?(i.isub(r),s.isub(a)):(r.isub(i),a.isub(s))}return 0>(t=0===i.cmpn(1)?s:a).cmpn(0)&&t.iadd(e),t},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),i=e.clone();t.negative=0,i.negative=0;for(var n=0;t.isEven()&&i.isEven();n++)t.iushrn(1),i.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;i.isEven();)i.iushrn(1);var r=t.cmp(i);if(r<0){var o=t;t=i,i=o}else if(0===r||0===i.cmpn(1))break;t.isub(i)}return i.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return(1&this.words[0])==0},o.prototype.isOdd=function(){return(1&this.words[0])==1},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,i=(e-t)/26,r=1<>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,i=e<0;if(0!==this.negative&&!i)return -1;if(0===this.negative&&i)return 1;if(this.strip(),this.length>1)t=1;else{i&&(e=-e),n(e<=67108863,"Number is too big");var r=0|this.words[0];t=r===e?0:re.length)return 1;if(this.length=0;i--){var n=0|this.words[i],r=0|e.words[i];if(n!==r){nr&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return -1===this.cmpn(e)},o.prototype.lt=function(e){return -1===this.cmp(e)},o.prototype.lten=function(e){return 0>=this.cmpn(e)},o.prototype.lte=function(e){return 0>=this.cmp(e)},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new C(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var m={k256:null,p224:null,p192:null,p25519:null};function v(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function C(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function S(e){C.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}v.prototype._tmp=function(){var e=new o(null);return e.words=Array(Math.ceil(this.n/13)),e},v.prototype.ireduce=function(e){var t,i=e;do this.split(i,this.tmp),t=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength();while(t>this.n)var n=t0?i.isub(this.p):i.strip(),i},v.prototype.split=function(e,t){e.iushrn(this.n,0,t)},v.prototype.imulK=function(e){return e.imul(this.k)},r(b,v),b.prototype.split=function(e,t){for(var i=Math.min(e.length,9),n=0;n>>22,r=o}r>>>=22,e.words[n-10]=r,0===r&&e.length>10?e.length-=10:e.length-=9},b.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,i=0;i>>=26,e.words[i]=r,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){var t;if(m[e])return m[e];if("k256"===e)t=new b;else if("p224"===e)t=new y;else if("p192"===e)t=new _;else if("p25519"===e)t=new w;else throw Error("Unknown prime "+e);return m[e]=t,t},C.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},C.prototype._verify2=function(e,t){n((e.negative|t.negative)==0,"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},C.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},C.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},C.prototype.add=function(e,t){this._verify2(e,t);var i=e.add(t);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},C.prototype.iadd=function(e,t){this._verify2(e,t);var i=e.iadd(t);return i.cmp(this.m)>=0&&i.isub(this.m),i},C.prototype.sub=function(e,t){this._verify2(e,t);var i=e.sub(t);return 0>i.cmpn(0)&&i.iadd(this.m),i._forceRed(this)},C.prototype.isub=function(e,t){this._verify2(e,t);var i=e.isub(t);return 0>i.cmpn(0)&&i.iadd(this.m),i},C.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},C.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},C.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},C.prototype.isqr=function(e){return this.imul(e,e.clone())},C.prototype.sqr=function(e){return this.mul(e,e)},C.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var i=this.m.add(new o(1)).iushrn(2);return this.pow(e,i)}for(var r=this.m.subn(1),s=0;!r.isZero()&&0===r.andln(1);)s++,r.iushrn(1);n(!r.isZero());var a=new o(1).toRed(this),l=a.redNeg(),u=this.m.subn(1).iushrn(1),d=this.m.bitLength();for(d=new o(2*d*d).toRed(this);0!==this.pow(d,u).cmp(l);)d.redIAdd(l);for(var c=this.pow(d,r),h=this.pow(e,r.addn(1).iushrn(1)),f=this.pow(e,r),p=s;0!==f.cmp(a);){for(var g=f,m=0;0!==g.cmp(a);m++)g=g.redSqr();n(m=0;n--){for(var u=t.words[n],d=l-1;d>=0;d--){var c=u>>d&1;if(r!==i[0]&&(r=this.sqr(r)),0===c&&0===s){a=0;continue}s<<=1,s|=c,(4==++a||0===n&&0===d)&&(r=this.mul(r,i[s]),a=0,s=0)}l=26}return r},C.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},C.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new S(e)},r(S,C),S.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},S.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},S.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):0>r.cmpn(0)&&(o=r.iadd(this.m)),o._forceRed(this)},S.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var i=e.mul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),s=r;return r.cmp(this.m)>=0?s=r.isub(this.m):0>r.cmpn(0)&&(s=r.iadd(this.m)),s._forceRed(this)},S.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=i.nmd(e),this)},27720:function(e,t,i){"use strict";var n,r,o,s,a,l,u,d,c,h,f,p,g,m=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})},v=this&&this.__classPrivateFieldSet||function(e,t,i,n,r){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!r)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?r.call(e,i):r?r.value=i:t.set(e,i),i},b=this&&this.__classPrivateFieldGet||function(e,t,i,n){if("a"===i&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(e):n?n.value:t.get(e)},y=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.JsonRpcEngine=void 0;let _=i(30774),w=y(i(63795)),C=i(45554);class S extends w.default{constructor({notificationHandler:e}={}){super(),n.add(this),o.set(this,!1),s.set(this,void 0),a.set(this,void 0),v(this,s,[],"f"),v(this,a,e,"f")}destroy(){b(this,s,"f").forEach(e=>{"destroy"in e&&"function"==typeof e.destroy&&e.destroy()}),v(this,s,[],"f"),v(this,o,!0,"f")}push(e){b(this,n,"m",l).call(this),b(this,s,"f").push(e)}handle(e,t){if(b(this,n,"m",l).call(this),t&&"function"!=typeof t)throw Error('"callback" must be a function if provided.');return Array.isArray(e)?t?b(this,n,"m",u).call(this,e,t):b(this,n,"m",u).call(this,e):t?b(this,n,"m",d).call(this,e,t):this._promiseHandle(e)}asMiddleware(){return b(this,n,"m",l).call(this),(e,t,i,n)=>m(this,void 0,void 0,function*(){try{let[o,a,l]=yield b(S,r,"m",h).call(S,e,t,b(this,s,"f"));if(a)return yield b(S,r,"m",p).call(S,l),n(o);return i(e=>m(this,void 0,void 0,function*(){try{yield b(S,r,"m",p).call(S,l)}catch(t){return e(t)}return e()}))}catch(e){return n(e)}})}_promiseHandle(e){return m(this,void 0,void 0,function*(){return new Promise((t,i)=>{b(this,n,"m",d).call(this,e,(e,n)=>{e&&void 0===n?i(e):t(n)}).catch(i)})})}}function x(e){return JSON.stringify(e,null,2)}t.JsonRpcEngine=S,r=S,o=new WeakMap,s=new WeakMap,a=new WeakMap,n=new WeakSet,l=function(){if(b(this,o,"f"))throw Error("This engine is destroyed and can no longer be used.")},u=function(e,t){return m(this,void 0,void 0,function*(){try{if(0===e.length){let e=[{id:null,jsonrpc:"2.0",error:new _.JsonRpcError(_.errorCodes.rpc.invalidRequest,"Request batch must contain plain objects. Received an empty array")}];if(t)return t(null,e);return e}let i=(yield Promise.all(e.map(this._promiseHandle.bind(this)))).filter(e=>void 0!==e);if(t)return t(null,i);return i}catch(e){if(t)return t(e);throw e}})},d=function(e,t){var i;return m(this,void 0,void 0,function*(){if(!e||Array.isArray(e)||"object"!=typeof e){let i=new _.JsonRpcError(_.errorCodes.rpc.invalidRequest,`Requests must be plain objects. Received: ${typeof e}`,{request:e});return t(i,{id:null,jsonrpc:"2.0",error:i})}if("string"!=typeof e.method){let n=new _.JsonRpcError(_.errorCodes.rpc.invalidRequest,`Must specify a string method. Received: ${typeof e.method}`,{request:e});return b(this,a,"f")&&!(0,C.isJsonRpcRequest)(e)?t(null):t(n,{id:null!==(i=e.id)&&void 0!==i?i:null,jsonrpc:"2.0",error:n})}if(b(this,a,"f")&&!(0,C.isJsonRpcRequest)(e)){try{yield b(this,a,"f").call(this,e)}catch(e){return t(e)}return t(null)}let n=null,o=Object.assign({},e),l={id:o.id,jsonrpc:o.jsonrpc};try{yield b(S,r,"m",c).call(S,o,l,b(this,s,"f"))}catch(e){n=e}return n&&(delete l.result,l.error||(l.error=(0,_.serializeError)(n))),t(n,l)})},c=function(e,t,i){return m(this,void 0,void 0,function*(){let[n,o,s]=yield b(S,r,"m",h).call(S,e,t,i);if(b(S,r,"m",g).call(S,e,t,o),yield b(S,r,"m",p).call(S,s),n)throw n})},h=function(e,t,i){return m(this,void 0,void 0,function*(){let n=[],o=null,s=!1;for(let a of i)if([o,s]=yield b(S,r,"m",f).call(S,e,t,a,n),s)break;return[o,s,n.reverse()]})},f=function(e,t,i,n){return m(this,void 0,void 0,function*(){return new Promise(r=>{let o=e=>{let i=e||t.error;i&&(t.error=(0,_.serializeError)(i)),r([i,!0])};try{i(e,t,i=>{t.error?o(t.error):(i&&("function"!=typeof i&&o(new _.JsonRpcError(_.errorCodes.rpc.internal,`JsonRpcEngine: "next" return handlers must be functions. Received "${typeof i}" for request: ${x(e)}`,{request:e})),n.push(i)),r([null,!1]))},o)}catch(e){o(e)}})})},p=function(e){return m(this,void 0,void 0,function*(){for(let t of e)yield new Promise((e,i)=>{t(t=>t?i(t):e())})})},g=function(e,t,i){if(!(0,C.hasProperty)(t,"result")&&!(0,C.hasProperty)(t,"error"))throw new _.JsonRpcError(_.errorCodes.rpc.internal,`JsonRpcEngine: Response has no error or result for request: ${x(e)}`,{request:e});if(!i)throw new _.JsonRpcError(_.errorCodes.rpc.internal,`JsonRpcEngine: Nothing ended request: ${x(e)}`,{request:e})}},18418:function(e,t){"use strict";var i=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.createAsyncMiddleware=void 0,t.createAsyncMiddleware=function(e){return(t,n,r,o)=>i(this,void 0,void 0,function*(){let s;let a=new Promise(e=>{s=e}),l=null,u=!1;try{yield e(t,n,()=>i(this,void 0,void 0,function*(){return u=!0,r(e=>{l=e,s()}),a})),u?(yield a,l(null)):o(null)}catch(e){l?l(e):o(e)}})}},57023:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createScaffoldMiddleware=void 0,t.createScaffoldMiddleware=function(e){return(t,i,n,r)=>{let o=e[t.method];return void 0===o?n():"function"==typeof o?o(t,i,n,r):(i.result=o,r())}}},69846:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getUniqueId=void 0;let i=Math.floor(4294967295*Math.random());t.getUniqueId=function(){return i=(i+1)%4294967295}},57857:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createIdRemapMiddleware=void 0;let n=i(69846);t.createIdRemapMiddleware=function(){return(e,t,i,r)=>{let o=e.id,s=(0,n.getUniqueId)();e.id=s,t.id=s,i(i=>{e.id=o,t.id=o,i()})}}},63163:function(e,t,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i);var r=Object.getOwnPropertyDescriptor(t,i);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,n,r)}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),r=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||n(t,e,i)};Object.defineProperty(t,"__esModule",{value:!0}),r(i(18418),t),r(i(57023),t),r(i(69846),t),r(i(57857),t),r(i(27720),t),r(i(878),t)},878:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeMiddleware=void 0;let n=i(27720);t.mergeMiddleware=function(e){let t=new n.JsonRpcEngine;return e.forEach(e=>t.push(e)),t.asMiddleware()}},41023:(e,t,i)=>{"use strict";let n,r;i.r(t),i.d(t,{BIP44CoinTypeNode:()=>t6,BIP44Node:()=>iV,BIP44PurposeNodeToken:()=>m,BIP_32_HARDENED_OFFSET:()=>C,BIP_32_PATH_REGEX:()=>y,BIP_39_PATH_REGEX:()=>w,BIP_44_COIN_TYPE_DEPTH:()=>t1,BYTES_KEY_LENGTH:()=>c,MAX_BIP_32_INDEX:()=>g,MAX_BIP_44_DEPTH:()=>f,MAX_UNHARDENED_BIP_32_INDEX:()=>p,MIN_BIP_44_DEPTH:()=>h,SLIP10Node:()=>iO,SLIP_10_PATH_REGEX:()=>_,UNPREFIXED_BIP_32_PATH_REGEX:()=>b,UNPREFIXED_PATH_REGEX:()=>v,createBip39KeyFromSeed:()=>iE,deriveBIP44AddressKey:()=>t5,ed25519:()=>o,getBIP44AddressKeyDeriver:()=>t4,isValidBIP32PathSegment:()=>tM,mnemonicPhraseToBytes:()=>tB,secp256k1:()=>s});var o={};i.r(o),i.d(o,{compressPublicKey:()=>ty,curve:()=>eU,decompressPublicKey:()=>t_,deriveUnhardenedKeys:()=>tg,getPublicKey:()=>tv,isValidPrivateKey:()=>tp,name:()=>th,publicAdd:()=>tb,publicKeyLength:()=>tm,secret:()=>tf});var s={};i.r(s),i.d(s,{compressPublicKey:()=>tG,curve:()=>N,decompressPublicKey:()=>tZ,deriveUnhardenedKeys:()=>tW,getPublicKey:()=>tK,isValidPrivateKey:()=>t$,name:()=>tV,publicAdd:()=>tq,publicKeyLength:()=>tU,secret:()=>tj});var a={};i.r(a),i.d(a,{deriveChildKey:()=>iw,privateKeyToEthAddress:()=>iy,publicKeyToEthAddress:()=>i_});var l={};i.r(l),i.d(l,{bip39MnemonicToMultipath:()=>ix,createBip39KeyFromSeed:()=>iE,deriveChildKey:()=>ik});var u={};i.r(u),i.d(u,{deriveChildKey:()=>iL});var d=i(97009);let c=32,h=0,f=5,p=2147483647,g=4294967295,m="bip32:44'",v=/^\d+$/u,b=RegExp("^(?\\d+)'?$","u"),y=/^bip32:\d+'?$/u,_=/^slip10:\d+'?$/u,w=/^bip39:([a-z]+){1}( [a-z]+){11,23}$/u,C=2147483648;var S=i(69314);/*! noble-secp256k1 - MIT License (c) 2019 Paul Miller (paulmillr.com) */let x=BigInt(0),k=BigInt(1),E=BigInt(2),L=BigInt(3),M=BigInt(8),N=Object.freeze({a:x,b:BigInt(7),P:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:k,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee")}),D=(e,t)=>(e+t/E)/t,A={beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar(e){let{n:t}=N,i=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-k*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),r=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),o=BigInt("0x100000000000000000000000000000000"),s=D(i*e,t),a=D(-n*e,t),l=et(e-s*i-a*r,t),u=et(-s*n-a*i,t),d=l>o,c=u>o;if(d&&(l=t-l),c&&(u=t-u),l>o||u>o)throw Error("splitScalarEndo: Endomorphism failed, k="+e);return{k1neg:d,k1:l,k2neg:c,k2:u}}};function T(e){let{a:t,b:i}=N,n=et(e*e),r=et(n*e);return et(r+t*e+i)}let I=N.a===x;class O extends Error{constructor(e){super(e)}}function P(e){if(!(e instanceof R))throw TypeError("JacobianPoint expected")}class R{constructor(e,t,i){this.x=e,this.y=t,this.z=i}static fromAffine(e){if(!(e instanceof H))throw TypeError("JacobianPoint#fromAffine: expected Point");return e.equals(H.ZERO)?R.ZERO:new R(e.x,e.y,k)}static toAffineBatch(e){let t=function(e,t=N.P){let i=Array(e.length),n=en(e.reduce((e,n,r)=>n===x?e:(i[r]=e,et(e*n,t)),k),t);return e.reduceRight((e,n,r)=>n===x?e:(i[r]=et(e*i[r],t),et(e*n,t)),n),i}(e.map(e=>e.z));return e.map((e,i)=>e.toAffine(t[i]))}static normalizeZ(e){return R.toAffineBatch(e).map(R.fromAffine)}equals(e){P(e);let{x:t,y:i,z:n}=this,{x:r,y:o,z:s}=e,a=et(n*n),l=et(s*s),u=et(t*l),d=et(r*a),c=et(et(i*s)*l),h=et(et(o*n)*a);return u===d&&c===h}negate(){return new R(this.x,et(-this.y),this.z)}double(){let{x:e,y:t,z:i}=this,n=et(e*e),r=et(t*t),o=et(r*r),s=e+r,a=et(E*(et(s*s)-n-o)),l=et(L*n),u=et(l*l),d=et(u-E*a),c=et(l*(a-d)-M*o),h=et(E*t*i);return new R(d,c,h)}add(e){P(e);let{x:t,y:i,z:n}=this,{x:r,y:o,z:s}=e;if(r===x||o===x)return this;if(t===x||i===x)return e;let a=et(n*n),l=et(s*s),u=et(t*l),d=et(r*a),c=et(et(i*s)*l),h=et(et(o*n)*a),f=et(d-u),p=et(h-c);if(f===x)return p===x?this.double():R.ZERO;let g=et(f*f),m=et(f*g),v=et(u*g),b=et(p*p-m-E*v),y=et(p*(v-b)-c*m),_=et(n*s*f);return new R(b,y,_)}subtract(e){return this.add(e.negate())}multiplyUnsafe(e){let t=R.ZERO;if("bigint"==typeof e&&e===x)return t;let i=ee(e);if(i===k)return this;if(!I){let e=t,n=this;for(;i>x;)i&k&&(e=e.add(n)),n=n.double(),i>>=k;return e}let{k1neg:n,k1:r,k2neg:o,k2:s}=A.splitScalar(i),a=t,l=t,u=this;for(;r>x||s>x;)r&k&&(a=a.add(u)),s&k&&(l=l.add(u)),u=u.double(),r>>=k,s>>=k;return n&&(a=a.negate()),o&&(l=l.negate()),l=new R(et(l.x*A.beta),l.y,l.z),a.add(l)}precomputeWindow(e){let t=I?128/e+1:256/e+1,i=[],n=this,r=n;for(let o=0;o>=d,s>a&&(s-=u,e+=k);let c=i+Math.abs(s)-1,h=t%2!=0,f=s<0;0===s?o=o.add(F(h,n[i])):r=r.add(F(f,n[c]))}return{p:r,f:o}}multiply(e,t){let i,n,r=ee(e);if(I){let{k1neg:e,k1:o,k2neg:s,k2:a}=A.splitScalar(r),{p:l,f:u}=this.wNAF(o,t),{p:d,f:c}=this.wNAF(a,t);l=F(e,l),d=F(s,d),d=new R(et(d.x*A.beta),d.y,d.z),i=l.add(d),n=u.add(c)}else{let{p:e,f:o}=this.wNAF(r,t);i=e,n=o}return R.normalizeZ([i,n])[0]}toAffine(e){let{x:t,y:i,z:n}=this,r=this.equals(R.ZERO);null==e&&(e=r?M:en(n));let o=e,s=et(o*o),a=et(s*o),l=et(t*s),u=et(i*a),d=et(n*o);if(r)return H.ZERO;if(d!==k)throw Error("invZ was invalid");return new H(l,u)}}function F(e,t){let i=t.negate();return e?i:t}R.BASE=new R(N.Gx,N.Gy,k),R.ZERO=new R(x,k,x);let B=new WeakMap;class H{constructor(e,t){this.x=e,this.y=t}_setWindowSize(e){this._WINDOW_SIZE=e,B.delete(this)}hasEvenY(){return this.y%E===x}static fromCompressedHex(e){let t=32===e.length,i=Q(t?e:e.subarray(1));if(!eo(i))throw Error("Point is not on curve");let n=function(e){let{P:t}=N,i=BigInt(6),n=BigInt(11),r=BigInt(22),o=BigInt(23),s=BigInt(44),a=BigInt(88),l=e*e*e%t,u=l*l*e%t,d=ei(u,L)*u%t,c=ei(d,L)*u%t,h=ei(c,E)*l%t,f=ei(h,n)*h%t,p=ei(f,r)*f%t,g=ei(p,s)*p%t,m=ei(g,a)*g%t,v=ei(m,s)*p%t,b=ei(v,L)*u%t,y=ei(b,o)*f%t,_=ei(y,i)*l%t,w=ei(_,E);if(w*w%t!==e)throw Error("Cannot find square root");return w}(T(i)),r=(n&k)===k;t?r&&(n=et(-n)):(1&e[0])==1!==r&&(n=et(-n));let o=new H(i,n);return o.assertValidity(),o}static fromUncompressedHex(e){let t=Q(e.subarray(1,33)),i=Q(e.subarray(33,65)),n=new H(t,i);return n.assertValidity(),n}static fromHex(e){let t=X(e),i=t.length,n=t[0];if(32===i||33===i&&(2===n||3===n))return this.fromCompressedHex(t);if(65===i&&4===n)return this.fromUncompressedHex(t);throw Error(`Point.fromHex: received invalid point. Expected 32-33 compressed bytes or 65 uncompressed bytes, not ${i}`)}static fromPrivateKey(e){return H.BASE.multiply(es(e))}static fromSignature(e,t,i){let{r:n,s:r}=function(e){if(e instanceof j)return e.assertValidity(),e;try{return j.fromDER(e)}catch(t){return j.fromCompact(e)}}(t);if(![0,1,2,3].includes(i))throw Error("Cannot recover: invalid recovery bit");let o=function(e,t=!1){let i,n;let r=(i=8*e.length-256,n=Q(e),i>0?n>>BigInt(i):n);if(t)return r;let{n:o}=N;return r>=o?r-o:r}(X(e)),{n:s}=N,a=2===i||3===i?n+s:n,l=en(a,s),u=et(-o*l,s),d=et(r*l,s),c=1&i?"03":"02",h=H.fromHex(c+q(a)),f=H.BASE.multiplyAndAddUnsafe(h,u,d);if(!f)throw Error("Cannot recover signature: point at infinify");return f.assertValidity(),f}toRawBytes(e=!1){return J(this.toHex(e))}toHex(e=!1){let t=q(this.x);return e?`${this.hasEvenY()?"02":"03"}${t}`:`04${t}${q(this.y)}`}toHexX(){return this.toHex(!0).slice(2)}toRawX(){return this.toRawBytes(!0).slice(1)}assertValidity(){let e="Point is not on elliptic curve",{x:t,y:i}=this;if(!eo(t)||!eo(i))throw Error(e);let n=et(i*i);if(et(n-T(t))!==x)throw Error(e)}equals(e){return this.x===e.x&&this.y===e.y}negate(){return new H(this.x,et(-this.y))}double(){return R.fromAffine(this).double().toAffine()}add(e){return R.fromAffine(this).add(R.fromAffine(e)).toAffine()}subtract(e){return this.add(e.negate())}multiply(e){return R.fromAffine(this).multiply(e,this).toAffine()}multiplyAndAddUnsafe(e,t,i){let n=R.fromAffine(this),r=t===x||t===k||this!==H.BASE?n.multiplyUnsafe(t):n.multiply(t),o=R.fromAffine(e).multiplyUnsafe(i),s=r.add(o);return s.equals(R.ZERO)?void 0:s.toAffine()}}function z(e){return Number.parseInt(e[0],16)>=8?"00"+e:e}function V(e){if(e.length<2||2!==e[0])throw Error(`Invalid signature integer tag: ${$(e)}`);let t=e[1],i=e.subarray(2,t+2);if(!t||i.length!==t)throw Error("Invalid signature integer: wrong length");if(0===i[0]&&i[1]<=127)throw Error("Invalid signature integer: trailing length");return{data:Q(i),left:e.subarray(t+2)}}H.BASE=new H(N.Gx,N.Gy),H.ZERO=new H(x,x);class j{constructor(e,t){this.r=e,this.s=t,this.assertValidity()}static fromCompact(e){let t=e instanceof Uint8Array,i="Signature.fromCompact";if("string"!=typeof e&&!t)throw TypeError(`${i}: Expected string or Uint8Array`);let n=t?$(e):e;if(128!==n.length)throw Error(`${i}: Expected 64-byte hex`);return new j(Y(n.slice(0,64)),Y(n.slice(64,128)))}static fromDER(e){let t=e instanceof Uint8Array;if("string"!=typeof e&&!t)throw TypeError("Signature.fromDER: Expected string or Uint8Array");let{r:i,s:n}=function(e){if(e.length<2||48!=e[0])throw Error(`Invalid signature tag: ${$(e)}`);if(e[1]!==e.length-2)throw Error("Invalid signature: incorrect length");let{data:t,left:i}=V(e.subarray(2)),{data:n,left:r}=V(i);if(r.length)throw Error(`Invalid signature: left bytes after parsing: ${$(r)}`);return{r:t,s:n}}(t?e:J(e));return new j(i,n)}static fromHex(e){return this.fromDER(e)}assertValidity(){let{r:e,s:t}=this;if(!er(e))throw Error("Invalid Signature: r must be 0 < r < n");if(!er(t))throw Error("Invalid Signature: s must be 0 < s < n")}hasHighS(){let e=N.n>>k;return this.s>e}normalizeS(){return this.hasHighS()?new j(this.r,et(-this.s,N.n)):this}toDERRawBytes(){return J(this.toDERHex())}toDERHex(){let e=z(Z(this.s)),t=z(Z(this.r)),i=e.length/2,n=t.length/2;return`30${Z(n+i+4)}02${Z(n)}${t}02${Z(i)}${e}`}toRawBytes(){return this.toDERRawBytes()}toHex(){return this.toDERHex()}toCompactRawBytes(){return J(this.toCompactHex())}toCompactHex(){return q(this.r)+q(this.s)}}function W(...e){if(!e.every(e=>e instanceof Uint8Array))throw Error("Uint8Array list expected");if(1===e.length)return e[0];let t=e.reduce((e,t)=>e+t.length,0),i=new Uint8Array(t);for(let t=0,n=0;tt.toString(16).padStart(2,"0"));function $(e){if(!(e instanceof Uint8Array))throw Error("Expected Uint8Array");let t="";for(let i=0;i0)return BigInt(e);if("bigint"==typeof e&&er(e))return e;throw TypeError("Expected valid private scalar: 0 < scalar < curve.n")}function et(e,t=N.P){let i=e%t;return i>=x?i:t+i}function ei(e,t){let{P:i}=N,n=e;for(;t-- >x;)n*=n,n%=i;return n}function en(e,t=N.P){if(e===x||t<=x)throw Error(`invert: expected positive integers, got n=${e} mod=${t}`);let i=et(e,t),n=t,r=x,o=k,s=k,a=x;for(;i!==x;){let e=n/i,t=n%i,l=r-s*e,u=o-a*e;n=i,i=t,r=s,o=a,s=l,a=u}if(n!==k)throw Error("invert: does not exist");return et(r,t)}function er(e){return x0)t=BigInt(e);else if("string"==typeof e){if(64!==e.length)throw Error("Expected 32 bytes of private key");t=Y(e)}else if(e instanceof Uint8Array){if(32!==e.length)throw Error("Expected 32 bytes of private key");t=Q(e)}else throw TypeError("Expected valid private key");if(!er(t))throw Error("Expected private key: 0 < key < n");return t}H.BASE._setWindowSize(8);let ea={node:S,web:"object"==typeof self&&"crypto"in self?self.crypto:void 0},el={},eu={bytesToHex:$,hexToBytes:J,concatBytes:W,mod:et,invert:en,isValidPrivateKey(e){try{return es(e),!0}catch(e){return!1}},_bigintTo32Bytes:G,_normalizePrivateKey:es,hashToPrivateKey:e=>{if((e=X(e)).length<40||e.length>1024)throw Error("Expected valid bytes of private key as per FIPS 186");return G(et(Q(e),N.n-k)+k)},randomBytes:(e=32)=>{if(ea.web)return ea.web.getRandomValues(new Uint8Array(e));if(ea.node){let{randomBytes:t}=ea.node;return Uint8Array.from(t(e))}throw Error("The environment doesn't have randomBytes function")},randomPrivateKey:()=>eu.hashToPrivateKey(eu.randomBytes(40)),precompute(e=8,t=H.BASE){let i=t===H.BASE?t:new H(t.x,t.y);return i._setWindowSize(e),i.multiply(L),i},sha256:async(...e)=>{if(ea.web){let t=await ea.web.subtle.digest("SHA-256",W(...e));return new Uint8Array(t)}if(ea.node){let{createHash:t}=ea.node,i=t("sha256");return e.forEach(e=>i.update(e)),Uint8Array.from(i.digest())}throw Error("The environment doesn't have sha256 function")},hmacSha256:async(e,...t)=>{if(ea.web){let i=await ea.web.subtle.importKey("raw",e,{name:"HMAC",hash:{name:"SHA-256"}},!1,["sign"]),n=W(...t),r=await ea.web.subtle.sign("HMAC",i,n);return new Uint8Array(r)}if(ea.node){let{createHmac:i}=ea.node,n=i("sha256",e);return t.forEach(e=>n.update(e)),Uint8Array.from(n.digest())}throw Error("The environment doesn't have hmac-sha256 function")},sha256Sync:void 0,hmacSha256Sync:void 0,taggedHash:async(e,...t)=>{let i=el[e];if(void 0===i){let t=await eu.sha256(Uint8Array.from(e,e=>e.charCodeAt(0)));i=W(t,t),el[e]=i}return eu.sha256(i,...t)},taggedHashSync:(e,...t)=>{if("function"!=typeof n)throw new O("sha256Sync is undefined, you need to set it");let i=el[e];if(void 0===i){let t=n(Uint8Array.from(e,e=>e.charCodeAt(0)));i=W(t,t),el[e]=i}return n(i,...t)},_JacobianPoint:R};Object.defineProperties(eu,{sha256Sync:{configurable:!1,get:()=>n,set(e){n||(n=e)}},hmacSha256Sync:{configurable:!1,get:()=>r,set(e){r||(r=e)}}});var ed=i(63610),ec=i(1840),eh=i(79225);class ef extends eh.kb{constructor(e,t,i,n){super(),this.blockLen=e,this.outputLen=t,this.padOffset=i,this.isLE=n,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=(0,eh.GL)(this.buffer)}update(e){(0,ec.Gg)(this);let{view:t,buffer:i,blockLen:n}=this,r=(e=(0,eh.O0)(e)).length;for(let o=0;on-o&&(this.process(i,0),o=0);for(let e=o;e>r&o),a=Number(i&o),l=n?4:0,u=n?0:4;e.setUint32(t+l,s,n),e.setUint32(t+u,a,n)}(i,n-8,BigInt(8*this.length),r),this.process(i,0);let s=(0,eh.GL)(e),a=this.outputLen;if(a%4)throw Error("_sha2: outputLen should be aligned to 32bit");let l=a/4,u=this.get();if(l>u.length)throw Error("_sha2: outputLen bigger than state");for(let e=0;et),em=eg.map(e=>(9*e+5)%16),ev=[eg],eb=[em];for(let e=0;e<4;e++)for(let t of[ev,eb])t.push(t[e].map(e=>ep[e]));let ey=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(e=>new Uint8Array(e)),e_=ev.map((e,t)=>e.map(e=>ey[t][e])),ew=eb.map((e,t)=>e.map(e=>ey[t][e])),eC=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),eS=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),ex=(e,t)=>e<>>32-t;function ek(e,t,i,n){return 0===e?t^i^n:1===e?t&i|~t&n:2===e?(t|~i)^n:3===e?t&n|i&~n:t^(i|~n)}let eE=new Uint32Array(16);class eL extends ef{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){let{h0:e,h1:t,h2:i,h3:n,h4:r}=this;return[e,t,i,n,r]}set(e,t,i,n,r){this.h0=0|e,this.h1=0|t,this.h2=0|i,this.h3=0|n,this.h4=0|r}process(e,t){for(let i=0;i<16;i++,t+=4)eE[i]=e.getUint32(t,!0);let i=0|this.h0,n=i,r=0|this.h1,o=r,s=0|this.h2,a=s,l=0|this.h3,u=l,d=0|this.h4,c=d;for(let e=0;e<5;e++){let t=4-e,h=eC[e],f=eS[e],p=ev[e],g=eb[e],m=e_[e],v=ew[e];for(let t=0;t<16;t++){let n=ex(i+ek(e,r,s,l)+eE[p[t]]+h,m[t])+d|0;i=d,d=l,l=0|ex(s,10),s=r,r=n}for(let e=0;e<16;e++){let i=ex(n+ek(t,o,a,u)+eE[g[e]]+f,v[e])+c|0;n=c,c=u,u=0|ex(a,10),a=o,o=i}}this.set(this.h1+s+u|0,this.h2+l+c|0,this.h3+d+n|0,this.h4+i+o|0,this.h0+r+a|0)}roundClean(){eE.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}let eM=(0,eh.hE)(()=>new eL),eN=(e,t,i)=>e&t^~e&i,eD=(e,t,i)=>e&t^e&i^t&i,eA=new Uint32Array([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]),eT=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),eI=new Uint32Array(64);class eO extends ef{constructor(){super(64,32,8,!1),this.A=0|eT[0],this.B=0|eT[1],this.C=0|eT[2],this.D=0|eT[3],this.E=0|eT[4],this.F=0|eT[5],this.G=0|eT[6],this.H=0|eT[7]}get(){let{A:e,B:t,C:i,D:n,E:r,F:o,G:s,H:a}=this;return[e,t,i,n,r,o,s,a]}set(e,t,i,n,r,o,s,a){this.A=0|e,this.B=0|t,this.C=0|i,this.D=0|n,this.E=0|r,this.F=0|o,this.G=0|s,this.H=0|a}process(e,t){for(let i=0;i<16;i++,t+=4)eI[i]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=eI[e-15],i=eI[e-2],n=(0,eh.np)(t,7)^(0,eh.np)(t,18)^t>>>3,r=(0,eh.np)(i,17)^(0,eh.np)(i,19)^i>>>10;eI[e]=r+eI[e-7]+n+eI[e-16]|0}let{A:i,B:n,C:r,D:o,E:s,F:a,G:l,H:u}=this;for(let e=0;e<64;e++){let t=u+((0,eh.np)(s,6)^(0,eh.np)(s,11)^(0,eh.np)(s,25))+eN(s,a,l)+eA[e]+eI[e]|0,d=((0,eh.np)(i,2)^(0,eh.np)(i,13)^(0,eh.np)(i,22))+eD(i,n,r)|0;u=l,l=a,a=s,s=o+t|0,o=r,r=n,n=i,i=t+d|0}i=i+this.A|0,n=n+this.B|0,r=r+this.C|0,o=o+this.D|0,s=s+this.E|0,a=a+this.F|0,l=l+this.G|0,u=u+this.H|0,this.set(i,n,r,o,s,a,l,u)}roundClean(){eI.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}let eP=(0,eh.hE)(()=>new eO);var eR=i(25814),eF=i(77378),eB=i.n(eF);/*! noble-ed25519 - MIT License (c) 2019 Paul Miller (paulmillr.com) */let eH=BigInt(0),ez=BigInt(1),eV=BigInt(2),ej=BigInt(255),eW=eV**BigInt(252)+BigInt("27742317777372353535851937790883648493"),eU={a:BigInt(-1),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),P:eV**ej-BigInt(19),l:eW,n:eW,h:BigInt(8),Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960")},e$=eV**BigInt(256),eK=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");BigInt("6853475219497561581579357271197624642482790079785650197046958215289687604742");let eq=BigInt("25063068953384623474111414158702152701244531502492656460079210482610430750235"),eG=BigInt("54469307008909316920995813868745141605393597292927456921205312896311721017578"),eZ=BigInt("1159843021668779879193775521855586647937357759715417654439879720876111806838"),eY=BigInt("40440834346308536858101042469323190826248399146238708352240133220865137265952");class eJ{constructor(e,t,i,n){this.x=e,this.y=t,this.z=i,this.t=n}static fromAffine(e){if(!(e instanceof e6))throw TypeError("ExtendedPoint#fromAffine: expected Point");return e.equals(e6.ZERO)?eJ.ZERO:new eJ(e.x,e.y,ez,ti(e.x*e.y))}static toAffineBatch(e){let t=function(e,t=eU.P){let i=Array(e.length),n=tn(e.reduce((e,n,r)=>n===eH?e:(i[r]=e,ti(e*n,t)),ez),t);return e.reduceRight((e,n,r)=>n===eH?e:(i[r]=ti(e*i[r],t),ti(e*n,t)),n),i}(e.map(e=>e.z));return e.map((e,i)=>e.toAffine(t[i]))}static normalizeZ(e){return this.toAffineBatch(e).map(this.fromAffine)}equals(e){eQ(e);let{x:t,y:i,z:n}=this,{x:r,y:o,z:s}=e,a=ti(t*s),l=ti(r*n),u=ti(i*s),d=ti(o*n);return a===l&&u===d}negate(){return new eJ(ti(-this.x),this.y,this.z,ti(-this.t))}double(){let{x:e,y:t,z:i}=this,{a:n}=eU,r=ti(e**eV),o=ti(t**eV),s=ti(eV*ti(i**eV)),a=ti(n*r),l=ti(ti((e+t)**eV)-r-o),u=a+o,d=u-s,c=a-o,h=ti(l*d),f=ti(u*c),p=ti(l*c),g=ti(d*u);return new eJ(h,f,g,p)}add(e){eQ(e);let{x:t,y:i,z:n,t:r}=this,{x:o,y:s,z:a,t:l}=e,u=ti((i-t)*(s+o)),d=ti((i+t)*(s-o)),c=ti(d-u);if(c===eH)return this.double();let h=ti(n*eV*l),f=ti(r*eV*a),p=f+h,g=d+u,m=f-h,v=ti(p*c),b=ti(g*m),y=ti(p*m),_=ti(c*g);return new eJ(v,b,_,y)}subtract(e){return this.add(e.negate())}precomputeWindow(e){let t=1+256/e,i=[],n=this,r=n;for(let o=0;o>=d,s>a&&(s-=u,e+=ez),0===s){let e=n[i];t%2&&(e=e.negate()),o=o.add(e)}else{let e=n[i+Math.abs(s)-1];s<0&&(e=e.negate()),r=r.add(e)}}return eJ.normalizeZ([r,o])[0]}multiply(e,t){return this.wNAF(ta(e,eU.l),t)}multiplyUnsafe(e){let t=ta(e,eU.l,!1),i=eJ.BASE,n=eJ.ZERO;if(t===eH)return n;if(this.equals(n)||t===ez)return this;if(this.equals(i))return this.wNAF(t);let r=n,o=this;for(;t>eH;)t&ez&&(r=r.add(o)),o=o.double(),t>>=ez;return r}isSmallOrder(){return this.multiplyUnsafe(eU.h).equals(eJ.ZERO)}isTorsionFree(){return this.multiplyUnsafe(eU.l).equals(eJ.ZERO)}toAffine(e=tn(this.z)){let{x:t,y:i,z:n}=this,r=ti(t*e),o=ti(i*e);if(ti(n*e)!==ez)throw Error("invZ was invalid");return new e6(r,o)}fromRistrettoBytes(){e0()}toRistrettoBytes(){e0()}fromRistrettoHash(){e0()}}function eQ(e){if(!(e instanceof eJ))throw TypeError("ExtendedPoint expected")}function eX(e){if(!(e instanceof e1))throw TypeError("RistrettoPoint expected")}function e0(){throw Error("Legacy method: switch to RistrettoPoint")}eJ.BASE=new eJ(eU.Gx,eU.Gy,ez,ti(eU.Gx*eU.Gy)),eJ.ZERO=new eJ(eH,ez,ez,eH);class e1{constructor(e){this.ep=e}static calcElligatorRistrettoMap(e){let{d:t}=eU,i=ti(eK*e*e),n=ti((i+ez)*eZ),r=BigInt(-1),o=ti((r-t*i)*ti(i+t)),{isValid:s,value:a}=to(n,o),l=ti(a*e);e7(l)||(l=ti(-l)),s||(a=l),s||(r=i);let u=ti(r*(i-ez)*eY-o),d=a*a,c=ti((a+a)*o),h=ti(u*eq),f=ti(ez-d),p=ti(ez+d);return new eJ(ti(c*p),ti(f*h),ti(h*p),ti(c*f))}static hashToCurve(e){let t=tt((e=ts(e,64)).slice(0,32)),i=this.calcElligatorRistrettoMap(t),n=tt(e.slice(32,64)),r=this.calcElligatorRistrettoMap(n);return new e1(i.add(r))}static fromHex(e){e=ts(e,32);let{a:t,d:i}=eU,n="RistrettoPoint.fromHex: the hex is not valid encoding of RistrettoPoint",r=tt(e);if(!function(e,t){if(e.length!==t.length)return!1;for(let i=0;i=n)throw Error("Expected 0 < hex < P");if(!t&&o>=e$)throw Error("Expected 0 < hex < 2**256");let s=ti(o*o),{isValid:a,value:l}=to(ti(s-ez),ti(i*s+ez));if(!a)throw Error("Point.fromHex: invalid y coordinate");let u=(l&ez)===ez;return(128&e[31])!=0!==u&&(l=ti(-l)),new e6(l,o)}static async fromPrivateKey(e){return(await tl(e)).point}toRawBytes(){let e=e9(this.y);return e[31]|=this.x&ez?128:0,e}toHex(){return e8(this.toRawBytes())}toX25519(){let{y:e}=this;return e9(ti((ez+e)*tn(ez-e)))}isTorsionFree(){return eJ.fromAffine(this).isTorsionFree()}equals(e){return this.x===e.x&&this.y===e.y}negate(){return new e6(ti(-this.x),this.y)}add(e){return eJ.fromAffine(this).add(eJ.fromAffine(e)).toAffine()}subtract(e){return this.add(e.negate())}multiply(e){return eJ.fromAffine(this).multiply(e,this).toAffine()}}e6.BASE=new e6(eU.Gx,eU.Gy),e6.ZERO=new e6(eH,ez);let e3=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function e8(e){if(!(e instanceof Uint8Array))throw Error("Uint8Array expected");let t="";for(let i=0;i=eH?i:t+i}function tn(e,t=eU.P){if(e===eH||t<=eH)throw Error(`invert: expected positive integers, got n=${e} mod=${t}`);let i=ti(e,t),n=t,r=eH,o=ez,s=ez,a=eH;for(;i!==eH;){let e=n/i,t=n%i,l=r-s*e,u=o-a*e;n=i,i=t,r=s,o=a,s=l,a=u}if(n!==ez)throw Error("invert: does not exist");return ti(r,t)}function tr(e,t){let{P:i}=eU,n=e;for(;t-- >eH;)n*=n,n%=i;return n}function to(e,t){let i=ti(t*t*t),n=function(e){let{P:t}=eU,i=BigInt(5),n=BigInt(10),r=BigInt(20),o=BigInt(40),s=BigInt(80),a=e*e%t*e%t,l=tr(a,eV)*a%t,u=tr(l,ez)*e%t,d=tr(u,i)*u%t,c=tr(d,n)*d%t,h=tr(c,r)*c%t,f=tr(h,o)*h%t,p=tr(f,s)*f%t,g=tr(p,s)*f%t,m=tr(g,n)*d%t;return{pow_p_5_8:tr(m,eV)*e%t,b2:a}}(e*ti(i*i*t)).pow_p_5_8,r=ti(e*i*n),o=ti(t*r*r),s=r,a=ti(r*eK),l=o===e,u=o===ti(-e),d=o===ti(-e*eK);return l&&(r=s),(u||d)&&(r=a),e7(r)&&(r=ti(-r)),{isValid:l||u,value:r}}function ts(e,t){let i=e instanceof Uint8Array?Uint8Array.from(e):e5(e);if("number"==typeof t&&i.length!==t)throw Error(`Expected ${t} bytes`);return i}function ta(e,t,i=!0){if(!t)throw TypeError("Specify max value");if("number"==typeof e&&Number.isSafeInteger(e)&&(e=BigInt(e)),"bigint"==typeof e&&e{if((e=ts(e)).length<40||e.length>1024)throw Error("Expected 40-1024 bytes of private key as per FIPS 186");let t=ti(te(e),eU.l);if(t===eH||t===ez)throw Error("Invalid private key");return t},randomBytes:(e=32)=>{if(td.web)return td.web.getRandomValues(new Uint8Array(e));if(td.node){let{randomBytes:t}=td.node;return new Uint8Array(t(e).buffer)}throw Error("The environment doesn't have randomBytes function")},randomPrivateKey:()=>tc.randomBytes(32),sha512:async e=>{if(td.web){let t=await td.web.subtle.digest("SHA-512",e.buffer);return new Uint8Array(t)}if(td.node)return Uint8Array.from(td.node.createHash("sha512").update(e).digest());throw Error("The environment doesn't have sha512 function")},precompute(e=8,t=e6.BASE){let i=t.equals(e6.BASE)?t:new e6(t.x,t.y);return i._setWindowSize(e),i.multiply(eV),i}},th="ed25519",tf=(0,d.stringToBytes)("ed25519 seed"),tp=e=>!0,tg=!1,tm=33,tv=async(e,t)=>{let i=await tu(e);return(0,d.concatBytes)([new Uint8Array([0]),i])},tb=(e,t)=>{throw Error("Ed25519 does not support public key derivation.")},ty=e=>e,t_=e=>e,tw={secp256k1:s,ed25519:o},{mod:tC}=eu;function tS({account:e=0,change:t=0,address_index:i}){return[tx(e),tE(t),tE(i)]}function tx(e){return tL(e),`${tk(e)}'`}function tk(e){return tL(e),`bip32:${e}`}function tE(e){if("number"==typeof e)return tk(e);if(!e||!Number.isInteger(e.index)||"boolean"!=typeof e.hardened)throw Error("Invalid BIP-32 index: Must be an object containing the index and whether it is hardened.");return e.hardened?tx(e.index):tk(e.index)}function tL(e){if(!(tT(e)&&e<=g))throw Error("Invalid BIP-32 index: Must be a non-negative integer.")}function tM(e){if("string"!=typeof e)return!1;let t=e.match(b);if(void 0===t?.groups?.index)return!1;let i=parseInt(t.groups.index,10);return tT(i)&&i<=p}function tN(e){return e.endsWith("'")}function tD(e){return e instanceof Uint8Array?e:(0,d.hexToBytes)(e)}function tA(e,t){if(e.length!==t)return!1;for(let t of e)if(0!==t)return!0;return!1}function tT(e){return"number"==typeof e&&Number.isInteger(e)&&e>=0}function tI(e,t){if(e instanceof Uint8Array)return tO(e,t),e;if("string"==typeof e){let i=(0,d.hexToBytes)(e);return tO(i,t),i}throw Error("Invalid value: Expected an instance of Uint8Array or hexadecimal string.")}function tO(e,t){if(!tA(e,t))throw Error(`Invalid value: Must be a non-zero ${t}-byte byte array.`)}let tP=e=>{let t=(0,eR.Av)(eP);try{return t.decode(e)}catch{throw Error("Invalid extended key: Value is not base58-encoded, or the checksum is invalid.")}},tR=e=>(0,eR.Av)(eP).encode(e),tF=e=>{if(!tA(e,33))throw Error("Invalid public key: The key must be a 33-byte, non-zero byte array.");let t=eM(eP(e));return(0,d.createDataView)(t).getUint32(0,!1)};function tB(e){let t=e.split(" ").map(e=>{let t=ed.U.indexOf(e);return(0,d.assert)(-1!==t,`Invalid mnemonic phrase: Unknown word "${e}".`),t});return new Uint8Array(new Uint16Array(t).buffer)}function tH(e){if(!e||"string"!=typeof e)throw Error("Invalid curve: Must specify a curve.");if(!Object.keys(tw).includes(e))throw Error(`Invalid curve: Only the following curves are supported: ${Object.keys(tw).join(", ")}.`)}function tz(e){let t=new Uint8Array(4);return(0,d.createDataView)(t).setUint32(0,e,!1),t}let tV="secp256k1",tj=(0,d.stringToBytes)("Bitcoin seed"),tW=!0,tU=65,t$=e=>eu.isValidPrivateKey(e),tK=(e,t)=>(function(e,t=!1){return H.fromPrivateKey(e).toRawBytes(t)})(e,t),tq=(e,t)=>{(0,d.assert)(tA(t,32),"Invalid tweak: Tweak must be a non-zero 32-byte Uint8Array.");let i=H.fromHex(e).add(H.fromPrivateKey(t));return i.assertValidity(),i.toRawBytes(!1)},tG=e=>H.fromHex(e).toRawBytes(!0),tZ=e=>H.fromHex(e).toRawBytes(!1),tY=e=>{let t=tP(e);if(78!==t.length)throw Error(`Invalid extended key: Expected a length of 78, got ${t.length}.`);let i=(0,d.createDataView)(t),n=i.getUint32(0,!1),r=i.getUint8(4);ij(r);let o=i.getUint32(5,!1),s=i.getUint32(9,!1),a=t.slice(13,45);if(!tA(a,32))throw Error("Invalid extended key: Chain code must be a 32-byte non-zero byte array.");let l=t.slice(45,78);if(!tA(l,33))throw Error("Invalid extended key: Key must be a 33-byte non-zero byte array.");let u=(0,d.createDataView)(l);if(76067358===n){if(2!==u.getUint8(0)&&3!==u.getUint8(0))throw Error("Invalid extended key: Public key must start with 0x02 or 0x03.");return{version:n,depth:r,parentFingerprint:o,index:s,chainCode:a,publicKey:tZ(l)}}if(76066276===n){if(0!==u.getUint8(0))throw Error("Invalid extended key: Private key must start with 0x00.");return{version:n,depth:r,parentFingerprint:o,index:s,chainCode:a,privateKey:l.slice(1)}}throw Error("Invalid extended key: Expected a public (xpub) or private key (xprv) version.")},tJ=e=>{let{version:t,depth:i,parentFingerprint:n,index:r,chainCode:o}=e,s=new Uint8Array(78),a=(0,d.createDataView)(s);if(a.setUint32(0,t,!1),a.setUint8(4,i),a.setUint32(5,n,!1),a.setUint32(9,r,!1),s.set(o,13),76067358===e.version){let{publicKey:t}=e,i=tG(t);s.set(i,45)}if(76066276===e.version){let{privateKey:t}=e;s.set(t,46)}return tR(s)};function tQ(e,t,i){if(!t.has(e))throw TypeError("attempted to "+i+" private field on non-instance");return t.get(e)}function tX(e,t){var i=tQ(e,t,"get");return i.get?i.get.call(e):i.value}function t0(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}let t1=2;var t2=new WeakMap;class t6{static async fromJSON(e,t){t8(t),t3(e.depth);let i=await iV.fromExtendedKey({depth:e.depth,index:e.index,parentFingerprint:e.parentFingerprint,chainCode:tD(e.chainCode),privateKey:function(e){if(void 0!==e)return tD(e)}(e.privateKey),publicKey:tD(e.publicKey)});return new t6(i,t)}static async fromDerivationPath(e){t3(e.length-1);let t=await iV.fromDerivationPath({derivationPath:e}),i=e[t1].split(":")[1]?.replace("'","");(0,d.assert)(i,"Invalid derivation path.");let n=Number.parseInt(i,10);return new t6(t,n)}static async fromNode(e,t){if(!(e instanceof iV))throw Error("Invalid node: Expected an instance of BIP44Node.");return t8(t),t3(e.depth),Promise.resolve(new t6(e,t))}get depth(){return tX(this,t2).depth}get privateKeyBytes(){return tX(this,t2).privateKeyBytes}get publicKeyBytes(){return tX(this,t2).publicKeyBytes}get chainCodeBytes(){return tX(this,t2).chainCodeBytes}get privateKey(){return tX(this,t2).privateKey}get publicKey(){return tX(this,t2).publicKey}get compressedPublicKey(){return tX(this,t2).compressedPublicKey}get compressedPublicKeyBytes(){return tX(this,t2).compressedPublicKeyBytes}get chainCode(){return tX(this,t2).chainCode}get address(){return tX(this,t2).address}get masterFingerprint(){return tX(this,t2).masterFingerprint}get parentFingerprint(){return tX(this,t2).parentFingerprint}get fingerprint(){return tX(this,t2).fingerprint}get index(){return tX(this,t2).index}get curve(){return tX(this,t2).curve}get extendedKey(){return tX(this,t2).extendedKey}async deriveBIP44AddressKey({account:e=0,change:t=0,address_index:i}){return await tX(this,t2).derive(tS({account:e,change:t,address_index:i}))}toJSON(){return{...tX(this,t2).toJSON(),coin_type:this.coin_type,path:this.path}}constructor(e,t){!function(e,t,i){(function(e,t){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,i)}(this,t2,{writable:!0,value:void 0}),t0(this,"path",void 0),t0(this,"coin_type",void 0),function(e,t,i){var n=tQ(e,t,"set");!function(e,t,i){if(t.set)t.set.call(e,i);else{if(!t.writable)throw TypeError("attempted to set read only private field");t.value=i}}(e,n,i)}(this,t2,e),this.coin_type=t,this.path=`m / ${m} / ${tx(t)}`,Object.freeze(this)}}function t3(e){if(e!==t1)throw Error(`Invalid depth: Coin type nodes must be of depth ${t1}. Received: "${e}"`)}function t8(e){if("number"!=typeof e||!Number.isInteger(e)||e<0)throw Error("Invalid coin type: The specified coin type must be a non-negative integer number.")}async function t5(e,{account:t=0,change:i=0,address_index:n}){let r=tS({account:t,change:i,address_index:n}),o=await t9(e),s=await iF({path:r,node:o});return new iV(s)}async function t4(e,t){var i,n;let{account:r=0,change:o=0}=t??{},s=await t9(e),a=tx(r),l=tE(o),u=async(e,t=!1)=>{let i=await iF({path:[a,l,t?tx(e):tk(e)],node:s});return new iV(i)};return u.coin_type=s.coin_type,u.path=(i=s.path,n={account:r,change:o},`${i} / ${tx(n.account??0)} / ${tE(n.change??0)}`),Object.freeze(u),u}async function t9(e){if(e instanceof t6)return t3(e.depth),e;if("string"==typeof e){let t=await iV.fromExtendedKey(e),i=await t6.fromNode(t,t.index-C);return t3(i.depth),i}return t6.fromJSON(e,e.coin_type)}var t7=i(91374);class ie extends eh.kb{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,(0,ec.vp)(e);let i=(0,eh.O0)(t);if(this.iHash=e.create(),"function"!=typeof this.iHash.update)throw Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let n=this.blockLen,r=new Uint8Array(n);r.set(i.length>n?e.create().update(i).digest():i);for(let e=0;enew ie(e,t).update(i).digest();it.create=(e,t)=>new ie(e,t);var ii=i(4307);let[ir,io]=ii.ZP.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),is=new Uint32Array(80),ia=new Uint32Array(80);class il extends ef{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){let{Ah:e,Al:t,Bh:i,Bl:n,Ch:r,Cl:o,Dh:s,Dl:a,Eh:l,El:u,Fh:d,Fl:c,Gh:h,Gl:f,Hh:p,Hl:g}=this;return[e,t,i,n,r,o,s,a,l,u,d,c,h,f,p,g]}set(e,t,i,n,r,o,s,a,l,u,d,c,h,f,p,g){this.Ah=0|e,this.Al=0|t,this.Bh=0|i,this.Bl=0|n,this.Ch=0|r,this.Cl=0|o,this.Dh=0|s,this.Dl=0|a,this.Eh=0|l,this.El=0|u,this.Fh=0|d,this.Fl=0|c,this.Gh=0|h,this.Gl=0|f,this.Hh=0|p,this.Hl=0|g}process(e,t){for(let i=0;i<16;i++,t+=4)is[i]=e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x,E),n=0|M}({h:i,l:n}=ii.ZP.add(0|this.Ah,0|this.Al,0|i,0|n)),({h:r,l:o}=ii.ZP.add(0|this.Bh,0|this.Bl,0|r,0|o)),({h:s,l:a}=ii.ZP.add(0|this.Ch,0|this.Cl,0|s,0|a)),({h:l,l:u}=ii.ZP.add(0|this.Dh,0|this.Dl,0|l,0|u)),({h:d,l:c}=ii.ZP.add(0|this.Eh,0|this.El,0|d,0|c)),({h:h,l:f}=ii.ZP.add(0|this.Fh,0|this.Fl,0|h,0|f)),({h:p,l:g}=ii.ZP.add(0|this.Gh,0|this.Gl,0|p,0|g)),({h:m,l:v}=ii.ZP.add(0|this.Hh,0|this.Hl,0|m,0|v)),this.set(i,n,r,o,s,a,l,u,d,c,h,f,p,g,m,v)}roundClean(){is.fill(0),ia.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}let iu=(0,eh.hE)(()=>new il);async function id({path:e,node:t,curve:i},n){(0,d.assert)(t,"Invalid parameters: Must specify a node to derive from.");let{childIndex:r,isHardened:o}=function(e,t,i){let n;(0,d.assert)("string"==typeof e,"Invalid path: Must be a string."),n=e.endsWith("'"),(0,d.assert)(!n||t.privateKey,"Invalid parameters: Cannot derive hardened child keys without a private key."),(0,d.assert)(n||i.deriveUnhardenedKeys,`Invalid path: Cannot derive unhardened child keys with ${i.name}.`);let r=e.split("'")[0];(0,d.assert)(r);let o=parseInt(r,10);if(!v.test(r)||!Number.isInteger(o)||o<0||o>=C)throw Error(`Invalid path: The index must be a non-negative decimal integer less than ${C}.`);return{childIndex:o,isHardened:e.includes("'")}}(e,t,i),s={chainCode:t.chainCodeBytes,childIndex:r,isHardened:o,depth:t.depth,parentFingerprint:t.fingerprint,masterFingerprint:t.masterFingerprint,curve:i};if(t.privateKeyBytes){let e=await ih({privateKey:t.privateKeyBytes,childIndex:r,isHardened:o,curve:i}),a=ib({chainCode:t.chainCodeBytes,extension:e});return await ic({privateKey:t.privateKeyBytes,entropy:a,...s},n)}let a=ip({parentPublicKey:t.compressedPublicKeyBytes,childIndex:r}),l=ib({chainCode:t.chainCodeBytes,extension:a});return await ic({publicKey:t.compressedPublicKeyBytes,entropy:l,...s},n)}async function ic(e,t){let{privateKey:i,publicKey:n,entropy:r,childIndex:o,isHardened:s,depth:a,parentFingerprint:l,masterFingerprint:u,curve:d}=e;try{if(i)return await im({entropy:r,privateKey:i,depth:a,masterFingerprint:u,parentFingerprint:l,childIndex:o,isHardened:s,curve:d});return await iv({entropy:r,publicKey:n,depth:a,masterFingerprint:u,parentFingerprint:l,childIndex:o,curve:d})}catch(i){return await ic(await t(i,e),t)}}async function ih({privateKey:e,childIndex:t,isHardened:i,curve:n}){return i?(0,d.concatBytes)([new Uint8Array([0]),e,tz(t+C)]):ip({parentPublicKey:await n.getPublicKey(e,!0),childIndex:t})}function ip({parentPublicKey:e,childIndex:t}){return(0,d.concatBytes)([e,tz(t)])}async function ig({privateKey:e,entropy:t,curve:i}){let n=t.slice(0,32),r=t.slice(32);if("ed25519"===i.name){let e=await i.getPublicKey(n);return{privateKey:n,publicKey:e,chainCode:r}}let o=function(e,t,i){(0,d.assert)(tA(t,32),"Invalid tweak: Tweak must be a non-zero 32-byte Uint8Array.");let n=(0,d.bytesToBigInt)(e),r=(0,d.bytesToBigInt)(t);if(r>=i.curve.n)throw Error("Invalid tweak: Tweak is larger than the curve order.");let o=tC(n+r,i.curve.n),s=(0,d.hexToBytes)(o.toString(16).padStart(64,"0"));if(!i.isValidPrivateKey(s))throw Error("Invalid private key or tweak: The resulting private key is invalid.");return s}(e,n,i),s=await i.getPublicKey(o);return{privateKey:o,publicKey:s,chainCode:r}}async function im({entropy:e,privateKey:t,depth:i,masterFingerprint:n,parentFingerprint:r,childIndex:o,isHardened:s,curve:a}){let l=o+(s?C:0),{privateKey:u,chainCode:d}=await ig({privateKey:t,entropy:e,curve:a});return await iO.fromExtendedKey({privateKey:u,chainCode:d,depth:i+1,masterFingerprint:n,parentFingerprint:r,index:l,curve:a.name})}async function iv({entropy:e,publicKey:t,depth:i,masterFingerprint:n,parentFingerprint:r,childIndex:o,curve:s}){let{publicKey:a,chainCode:l}=function({publicKey:e,entropy:t,curve:i}){let n=t.slice(0,32),r=t.slice(32);return{publicKey:i.publicAdd(e,n),chainCode:r}}({publicKey:t,entropy:e,curve:s});return await iO.fromExtendedKey({publicKey:a,chainCode:l,depth:i+1,masterFingerprint:n,parentFingerprint:r,index:o,curve:s.name})}function ib({chainCode:e,extension:t}){return it(iu,e,t)}function iy(e){return(0,d.assert)(e instanceof Uint8Array&&tA(e,c),"Invalid key: The key must be a 32-byte, non-zero Uint8Array."),i_(tK(e,!1))}function i_(e){return(0,d.assert)(e instanceof Uint8Array&&tA(e,tU),"Invalid key: The key must be a 65-byte, non-zero Uint8Array."),(0,t7.fr)(e.slice(1)).slice(-20)}async function iw(e){return(0,d.assert)("secp256k1"===e.curve.name,"Invalid curve: Only secp256k1 is supported by BIP-32."),id(e,iC)}async function iC(e,t){let{childIndex:i,privateKey:n,publicKey:r,isHardened:o,curve:s,chainCode:a}=t;if(tL(i+1),n){let e=ib({chainCode:a,extension:await ih({privateKey:n,childIndex:i+1,isHardened:o,curve:s})});return{...t,childIndex:i+1,entropy:e}}let l=ib({chainCode:a,extension:ip({parentPublicKey:r,childIndex:i+1})});return{...t,childIndex:i+1,entropy:l}}var iS=i(91763);function ix(e){return`bip39:${e.toLowerCase().trim()}`}async function ik({path:e,curve:t}){return iE(await (0,iS.OI)(e,ed.U),t)}async function iE(e,t){(0,d.assert)(e.length>=16&&e.length<=64,"Invalid seed: The seed must be between 16 and 64 bytes long.");let i=it(iu,t.secret,e),n=i.slice(0,c),r=i.slice(c);(0,d.assert)(t.isValidPrivateKey(n),"Invalid private key: The private key must greater than 0 and less than the curve order.");let o=tF(await t.getPublicKey(n,!0));return iO.fromExtendedKey({privateKey:n,chainCode:r,masterFingerprint:o,depth:0,parentFingerprint:0,index:0,curve:t.name})}async function iL(e){return await id(e,iM)}async function iM(e,t){let{curve:i,isHardened:n,childIndex:r,entropy:o,chainCode:s}=t;if("ed25519"===i.name)throw e;let a=n?r+C:r,l=ib({chainCode:s,extension:(0,d.concatBytes)([1,o.slice(32,64),tz(a)])});return{...t,entropy:l}}let iN={bip32:a,bip39:l,slip10:u};async function iD(e){let{path:t,depth:i=t.length}=e,n="node"in e?e.node:void 0,r="curve"in e?e.curve:n?.curve;if(n&&!(n instanceof iO)&&!(n instanceof iV)&&!(n instanceof t6))throw Error("Invalid arguments: Node must be a SLIP-10 node or a BIP-44 node when provided.");if(!r)throw Error("Invalid arguments: Must specify either a parent node or curve.");return function(e,t,i){if(0===e.length)throw Error("Invalid HD path segment: The segment must not be empty.");let n=!1;if(e.forEach((e,t)=>{if(0===t){if(n=e instanceof Uint8Array||w.test(e),!(e instanceof Uint8Array)&&!n&&!y.test(e)&&!_.test(e))throw iA()}else if(e instanceof Uint8Array||!y.test(e)&&!_.test(e))throw iA()}),i===h&&(!n||1!==e.length))throw Error(`Invalid HD path segment: The segment must consist of a single BIP-39 node for depths of ${h}. Received: "${String(e)}".`);if(!t&&!n)throw Error("Invalid derivation parameters: Must specify parent key if the first node of the path segment is not a BIP-39 node.");if(t&&n)throw Error("Invalid derivation parameters: May not specify parent key if the path segment starts with a BIP-39 node.");let r=n?e.slice(1):e;if(r.length>0){let e=r[0]?.split(":")[0];(0,d.assert)(e),(0,d.assert)(r.every(t=>t.startsWith(`${e}:`)),"Invalid HD path segment: Cannot mix 'bip32' and 'slip10' path segments.")}}(t,!!n?.privateKey||!!n?.publicKey,i),await t.reduce(async(e,t,i)=>{let n=await e;if("string"==typeof t){let[e,i]=t.split(":");(0,d.assert)(e),(0,d.assert)(i),(0,d.assert)(e in iN,`Unknown derivation type: "${e}".`);let o=iN[e];return await o.deriveChildKey({path:i,node:n,curve:tw[r]})}return(0,d.assert)(0===i,iA()),await iN.bip39.deriveChildKey({path:t,node:n,curve:tw[r]})},Promise.resolve(n))}function iA(){return Error("Invalid HD path segment: The path segment is malformed.")}function iT(e,t,i){return function(e,t){if(e!==t)throw TypeError("Private static access of wrong provenance")}(e,t),!function(e,t){if(void 0===e)throw TypeError("attempted to get private static field before its declaration")}(i,0),i.get?i.get.call(e):i.value}function iI(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class iO{static async fromJSON(e){return iO.fromExtendedKey(e)}static async fromExtendedKey({depth:e,masterFingerprint:t,parentFingerprint:i,index:n,privateKey:r,publicKey:o,chainCode:s,curve:a}){let l=tI(s,c);tH(a),iR(e),tL(n),function(e,t){if(0===t&&0!==e)throw Error(`Invalid index: The index of the root node must be 0. Received: "${String(e)}".`)}(n,e),function(e,t){if(!tT(e))throw Error(`Invalid parent fingerprint: The fingerprint must be a positive integer. Received: "${String(e)}".`);if(0===t&&0!==e)throw Error(`Invalid parent fingerprint: The fingerprint of the root node must be 0. Received: "${String(e)}".`);if(t>0&&0===e)throw Error(`Invalid parent fingerprint: The fingerprint of a child node must not be 0. Received: "${String(e)}".`)}(i,e),function(e,t,i){if(e&&i>=2&&e===t)throw Error(`Invalid parent fingerprint: The fingerprint of a child node cannot be equal to the master fingerprint. Received: "${String(t)}".`)}(t,i,e);let u=tw[a];if(r){let o=function e(t,i){if(t instanceof Uint8Array)return(0,d.assert)(t.length===i,`Invalid value: Must be a ${i}-byte byte array.`),t;if("string"==typeof t)return e((0,d.hexToBytes)(t),i);throw Error("Invalid value: Expected an instance of Uint8Array or hexadecimal string.")}(r,c);return(0,d.assert)(u.isValidPrivateKey(o),`Invalid private key: Value is not a valid ${a} private key.`),new iO({depth:e,masterFingerprint:t,parentFingerprint:i,index:n,chainCode:l,privateKey:o,publicKey:await u.getPublicKey(o),curve:a},iT(this,iO,iP))}if(o){let r=tI(o,u.publicKeyLength);return new iO({depth:e,masterFingerprint:t,parentFingerprint:i,index:n,chainCode:l,publicKey:r,curve:a},iT(this,iO,iP))}throw Error("Invalid options: Must provide either a private key or a public key.")}static async fromDerivationPath({derivationPath:e,curve:t}){if(tH(t),!e)throw Error("Invalid options: Must provide a derivation path.");if(0===e.length)throw Error("Invalid derivation path: May not specify an empty derivation path.");return await iD({path:e,depth:e.length-1,curve:t})}get chainCode(){return(0,d.bytesToHex)(this.chainCodeBytes)}get privateKey(){if(this.privateKeyBytes)return(0,d.bytesToHex)(this.privateKeyBytes)}get publicKey(){return(0,d.bytesToHex)(this.publicKeyBytes)}get compressedPublicKeyBytes(){return tw[this.curve].compressPublicKey(this.publicKeyBytes)}get compressedPublicKey(){return(0,d.bytesToHex)(this.compressedPublicKeyBytes)}get address(){if("secp256k1"!==this.curve)throw Error("Unable to get address for this node: Only secp256k1 is supported.");return(0,d.bytesToHex)(i_(this.publicKeyBytes))}get fingerprint(){return tF(this.compressedPublicKeyBytes)}neuter(){return new iO({depth:this.depth,masterFingerprint:this.masterFingerprint,parentFingerprint:this.parentFingerprint,index:this.index,chainCode:this.chainCodeBytes,publicKey:this.publicKeyBytes,curve:this.curve},iT(iO,iO,iP))}async derive(e){return await iF({path:e,node:this})}toJSON(){return{depth:this.depth,masterFingerprint:this.masterFingerprint,parentFingerprint:this.parentFingerprint,index:this.index,curve:this.curve,privateKey:this.privateKey,publicKey:this.publicKey,chainCode:this.chainCode}}constructor({depth:e,masterFingerprint:t,parentFingerprint:i,index:n,chainCode:r,privateKey:o,publicKey:s,curve:a},l){iI(this,"curve",void 0),iI(this,"depth",void 0),iI(this,"masterFingerprint",void 0),iI(this,"parentFingerprint",void 0),iI(this,"index",void 0),iI(this,"chainCodeBytes",void 0),iI(this,"privateKeyBytes",void 0),iI(this,"publicKeyBytes",void 0),(0,d.assert)(l===iT(iO,iO,iP),"SLIP10Node can only be constructed using `SLIP10Node.fromJSON`, `SLIP10Node.fromExtendedKey`, or `SLIP10Node.fromDerivationPath`."),this.depth=e,this.masterFingerprint=t,this.parentFingerprint=i,this.index=n,this.chainCodeBytes=r,this.privateKeyBytes=o,this.publicKeyBytes=s,this.curve=a,Object.freeze(this)}}var iP={writable:!0,value:Symbol("SLIP10Node.constructor")};function iR(e){if(!tT(e))throw Error(`Invalid HD tree path depth: The depth must be a positive integer. Received: "${String(e)}".`)}async function iF({path:e,node:t}){if(0===e.length)throw Error("Invalid HD tree derivation path: Deriving a path of length 0 is not defined.");let i=t.depth+e.length;return iR(i),await iD({path:e,node:t,depth:i})}function iB(e,t,i){if(!t.has(e))throw TypeError("attempted to "+i+" private field on non-instance");return t.get(e)}function iH(e,t){var i=iB(e,t,"get");return i.get?i.get.call(e):i.value}var iz=new WeakMap;class iV{static async fromJSON(e){return iV.fromExtendedKey(e)}static async fromExtendedKey(e){if("string"==typeof e){let t=tY(e),{chainCode:i,depth:n,parentFingerprint:r,index:o}=t;if(76066276===t.version){let{privateKey:e}=t;return iV.fromExtendedKey({depth:n,parentFingerprint:r,index:o,privateKey:e,chainCode:i})}let{publicKey:s}=t;return iV.fromExtendedKey({depth:n,parentFingerprint:r,index:o,publicKey:s,chainCode:i})}let{privateKey:t,publicKey:i,chainCode:n,depth:r,parentFingerprint:o,index:s}=e;ij(r);let a=await iO.fromExtendedKey({privateKey:t,publicKey:i,chainCode:n,depth:r,parentFingerprint:o,index:s,curve:"secp256k1"});return new iV(a)}static async fromDerivationPath({derivationPath:e}){ij(e.length-1),iW(e,h);let t=await iO.fromDerivationPath({derivationPath:e,curve:"secp256k1"});return new iV(t)}get depth(){return iH(this,iz).depth}get privateKeyBytes(){return iH(this,iz).privateKeyBytes}get publicKeyBytes(){return iH(this,iz).publicKeyBytes}get chainCodeBytes(){return iH(this,iz).chainCodeBytes}get privateKey(){return iH(this,iz).privateKey}get publicKey(){return iH(this,iz).publicKey}get compressedPublicKey(){return iH(this,iz).compressedPublicKey}get compressedPublicKeyBytes(){return iH(this,iz).compressedPublicKeyBytes}get chainCode(){return iH(this,iz).chainCode}get address(){return iH(this,iz).address}get masterFingerprint(){return iH(this,iz).masterFingerprint}get parentFingerprint(){return iH(this,iz).parentFingerprint}get fingerprint(){return iH(this,iz).fingerprint}get index(){return iH(this,iz).index}get extendedKey(){let e={depth:this.depth,parentFingerprint:this.parentFingerprint,index:this.index,chainCode:this.chainCodeBytes};return this.privateKeyBytes?tJ({...e,version:76066276,privateKey:this.privateKeyBytes}):tJ({...e,version:76067358,publicKey:this.publicKeyBytes})}get curve(){return iH(this,iz).curve}neuter(){let e=iH(this,iz).neuter();return new iV(e)}async derive(e){if(this.depth===f)throw Error("Illegal operation: This HD tree node is already a leaf node.");ij(this.depth+e.length),iW(e,this.depth+1);let t=await iH(this,iz).derive(e);return new iV(t)}toJSON(){return{depth:this.depth,masterFingerprint:this.masterFingerprint,parentFingerprint:this.parentFingerprint,index:this.index,privateKey:this.privateKey,publicKey:this.publicKey,chainCode:this.chainCode}}constructor(e){!function(e,t,i){(function(e,t){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,i)}(this,iz,{writable:!0,value:void 0}),function(e,t,i){var n=iB(e,t,"set");!function(e,t,i){if(t.set)t.set.call(e,i);else{if(!t.writable)throw TypeError("attempted to set read only private field");t.value=i}}(e,n,i)}(this,iz,e),Object.freeze(this)}}function ij(e){if(iR(e),ef)throw Error(`Invalid HD tree path depth: The depth must be a positive integer N such that 0 <= N <= 5. Received: "${e}"`)}function iW(e,t){e.forEach((e,i)=>{let n=t+i;if(n===h){if(!(e instanceof Uint8Array)&&!w.test(e))throw Error('Invalid derivation path: The "m" / seed node (depth 0) must be a BIP-39 node.');return}switch((0,d.assert)("string"==typeof e),n){case 1:if(e!==m)throw Error(`Invalid derivation path: The "purpose" node (depth 1) must be the string "${m}".`);break;case 2:if(!y.test(e)||!tN(e))throw Error('Invalid derivation path: The "coin_type" node (depth 2) must be a hardened BIP-32 node.');break;case 3:if(!y.test(e)||!tN(e))throw Error('Invalid derivation path: The "account" node (depth 3) must be a hardened BIP-32 node.');break;case 4:if(!y.test(e))throw Error('Invalid derivation path: The "change" node (depth 4) must be a BIP-32 node.');break;case f:if(!y.test(e))throw Error('Invalid derivation path: The "address_index" node (depth 5) must be a BIP-32 node.')}})}},18023:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertExhaustive=t.assertStruct=t.assert=t.AssertionError=void 0;let n=i(37715);function r(e,t){return"string"==typeof e?.prototype?.constructor?.name?new e({message:t}):e({message:t})}class o extends Error{constructor(e){super(e.message),this.code="ERR_ASSERTION"}}t.AssertionError=o,t.assert=function(e,t="Assertion failed.",i=o){if(!e){if(t instanceof Error)throw t;throw r(i,t)}},t.assertStruct=function(e,t,i="Assertion failed",s=o){try{(0,n.assert)(e,t)}catch(t){let e;throw r(s,`${i}: ${(e="object"==typeof t&&null!==t&&"message"in t?t.message:String(t)).endsWith(".")?e.slice(0,-1):e}.`)}},t.assertExhaustive=function(e){throw Error("Invalid branch reached. Should be detected during compilation.")}},25829:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.base64=void 0;let n=i(37715),r=i(18023);t.base64=(e,t={})=>{let i,o;let s=t.paddingRequired??!1,a=t.characterSet??"base64";return"base64"===a?i=String.raw`[A-Za-z0-9+\/]`:((0,r.assert)("base64url"===a),i=String.raw`[-_A-Za-z0-9]`),o=s?RegExp(`^(?:${i}{4})*(?:${i}{3}=|${i}{2}==)?$`,"u"):RegExp(`^(?:${i}{4})*(?:${i}{2,3}|${i}{3}=|${i}{2}==)?$`,"u"),(0,n.pattern)(e,o)}},40598:(e,t,i)=>{"use strict";var n=i(48834).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.createDataView=t.concatBytes=t.valueToBytes=t.stringToBytes=t.numberToBytes=t.signedBigIntToBytes=t.bigIntToBytes=t.hexToBytes=t.bytesToString=t.bytesToNumber=t.bytesToSignedBigInt=t.bytesToBigInt=t.bytesToHex=t.assertIsBytes=t.isBytes=void 0;let r=i(18023),o=i(54507),s=function(){let e=[];return()=>{if(0===e.length)for(let t=0;t<256;t++)e.push(t.toString(16).padStart(2,"0"));return e}}();function a(e){return e instanceof Uint8Array}function l(e){(0,r.assert)(a(e),"Value must be a Uint8Array.")}function u(e){if(l(e),0===e.length)return"0x";let t=s(),i=Array(e.length);for(let n=0;n=BigInt(0),"Value must be a non-negative bigint."),c(e.toString(16))}function f(e){return(0,r.assert)("number"==typeof e,"Value must be a number."),(0,r.assert)(e>=0,"Value must be a non-negative number."),(0,r.assert)(Number.isSafeInteger(e),"Value is not a safe integer. Use `bigIntToBytes` instead."),c(e.toString(16))}function p(e){return(0,r.assert)("string"==typeof e,"Value must be a string."),new TextEncoder().encode(e)}function g(e){if("bigint"==typeof e)return h(e);if("number"==typeof e)return f(e);if("string"==typeof e)return e.startsWith("0x")?c(e):p(e);if(a(e))return e;throw TypeError(`Unsupported value type: "${typeof e}".`)}t.isBytes=a,t.assertIsBytes=l,t.bytesToHex=u,t.bytesToBigInt=d,t.bytesToSignedBigInt=function(e){l(e);let t=BigInt(0);for(let i of e)t=(t<0,"Byte length must be greater than 0."),(0,r.assert)(((0,r.assert)(t>0),i=e>>BigInt(31),!((~e&i)+(e&~i)>>BigInt(8*t+-1))),"Byte length is too small to represent the given value.");let n=e,o=new Uint8Array(t);for(let e=0;e>=BigInt(8);return o.reverse()},t.numberToBytes=f,t.stringToBytes=p,t.valueToBytes=g,t.concatBytes=function(e){let t=Array(e.length),i=0;for(let n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChecksumStruct=void 0;let n=i(37715),r=i(25829);t.ChecksumStruct=(0,n.size)((0,r.base64)((0,n.string)(),{paddingRequired:!0}),44,44)},45980:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createHex=t.createBytes=t.createBigInt=t.createNumber=void 0;let n=i(37715),r=i(18023),o=i(40598),s=i(54507),a=(0,n.union)([(0,n.number)(),(0,n.bigint)(),(0,n.string)(),s.StrictHexStruct]),l=(0,n.coerce)((0,n.number)(),a,Number),u=(0,n.coerce)((0,n.bigint)(),a,BigInt);(0,n.union)([s.StrictHexStruct,(0,n.instance)(Uint8Array)]);let d=(0,n.coerce)((0,n.instance)(Uint8Array),(0,n.union)([s.StrictHexStruct]),o.hexToBytes),c=(0,n.coerce)(s.StrictHexStruct,(0,n.instance)(Uint8Array),o.bytesToHex);t.createNumber=function(e){try{let t=(0,n.create)(e,l);return(0,r.assert)(Number.isFinite(t),`Expected a number-like value, got "${e}".`),t}catch(t){if(t instanceof n.StructError)throw Error(`Expected a number-like value, got "${e}".`);throw t}},t.createBigInt=function(e){try{return(0,n.create)(e,u)}catch(e){if(e instanceof n.StructError)throw Error(`Expected a number-like value, got "${String(e.value)}".`);throw e}},t.createBytes=function(e){if("string"==typeof e&&"0x"===e.toLowerCase())return new Uint8Array;try{return(0,n.create)(e,d)}catch(e){if(e instanceof n.StructError)throw Error(`Expected a bytes-like value, got "${String(e.value)}".`);throw e}},t.createHex=function(e){if(e instanceof Uint8Array&&0===e.length||"string"==typeof e&&"0x"===e.toLowerCase())return"0x";try{return(0,n.create)(e,c)}catch(e){if(e instanceof n.StructError)throw Error(`Expected a bytes-like value, got "${String(e.value)}".`);throw e}}},1147:function(e,t){"use strict";var i,n,r=this&&this.__classPrivateFieldSet||function(e,t,i,n,r){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!r)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?r.call(e,i):r?r.value=i:t.set(e,i),i},o=this&&this.__classPrivateFieldGet||function(e,t,i,n){if("a"===i&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(e):n?n.value:t.get(e)};Object.defineProperty(t,"__esModule",{value:!0}),t.FrozenSet=t.FrozenMap=void 0;class s{constructor(e){i.set(this,void 0),r(this,i,new Map(e),"f"),Object.freeze(this)}get size(){return o(this,i,"f").size}[(i=new WeakMap,Symbol.iterator)](){return o(this,i,"f")[Symbol.iterator]()}entries(){return o(this,i,"f").entries()}forEach(e,t){return o(this,i,"f").forEach((i,n,r)=>e.call(t,i,n,this))}get(e){return o(this,i,"f").get(e)}has(e){return o(this,i,"f").has(e)}keys(){return o(this,i,"f").keys()}values(){return o(this,i,"f").values()}toString(){return`FrozenMap(${this.size}) {${this.size>0?` ${[...this.entries()].map(([e,t])=>`${String(e)} => ${String(t)}`).join(", ")} `:""}}`}}t.FrozenMap=s;class a{constructor(e){n.set(this,void 0),r(this,n,new Set(e),"f"),Object.freeze(this)}get size(){return o(this,n,"f").size}[(n=new WeakMap,Symbol.iterator)](){return o(this,n,"f")[Symbol.iterator]()}entries(){return o(this,n,"f").entries()}forEach(e,t){return o(this,n,"f").forEach((i,n,r)=>e.call(t,i,n,this))}has(e){return o(this,n,"f").has(e)}keys(){return o(this,n,"f").keys()}values(){return o(this,n,"f").values()}toString(){return`FrozenSet(${this.size}) {${this.size>0?` ${[...this.values()].map(e=>String(e)).join(", ")} `:""}}`}}t.FrozenSet=a,Object.freeze(s),Object.freeze(s.prototype),Object.freeze(a),Object.freeze(a.prototype)},15824:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},54507:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.remove0x=t.add0x=t.isValidChecksumAddress=t.getChecksumAddress=t.isValidHexAddress=t.assertIsStrictHexString=t.assertIsHexString=t.isStrictHexString=t.isHexString=t.HexChecksumAddressStruct=t.HexAddressStruct=t.StrictHexStruct=t.HexStruct=void 0;let n=i(80125),r=i(37715),o=i(18023),s=i(40598);function a(e){return(0,r.is)(e,t.HexStruct)}function l(e){return(0,r.is)(e,t.StrictHexStruct)}function u(e){(0,o.assert)((0,r.is)(e,t.HexChecksumAddressStruct),"Invalid hex address.");let i=c(e.toLowerCase()),a=c((0,s.bytesToHex)((0,n.keccak_256)(i)));return`0x${i.split("").map((e,t)=>{let i=a[t];return(0,o.assert)((0,r.is)(i,(0,r.string)()),"Hash shorter than address."),parseInt(i,16)>7?e.toUpperCase():e}).join("")}`}function d(e){return!!(0,r.is)(e,t.HexChecksumAddressStruct)&&u(e)===e}function c(e){return e.startsWith("0x")||e.startsWith("0X")?e.substring(2):e}t.HexStruct=(0,r.pattern)((0,r.string)(),/^(?:0x)?[0-9a-f]+$/iu),t.StrictHexStruct=(0,r.pattern)((0,r.string)(),/^0x[0-9a-f]+$/iu),t.HexAddressStruct=(0,r.pattern)((0,r.string)(),/^0x[0-9a-f]{40}$/u),t.HexChecksumAddressStruct=(0,r.pattern)((0,r.string)(),/^0x[0-9a-fA-F]{40}$/u),t.isHexString=a,t.isStrictHexString=l,t.assertIsHexString=function(e){(0,o.assert)(a(e),"Value must be a hexadecimal string.")},t.assertIsStrictHexString=function(e){(0,o.assert)(l(e),'Value must be a hexadecimal string, starting with "0x".')},t.isValidHexAddress=function(e){return(0,r.is)(e,t.HexAddressStruct)||d(e)},t.getChecksumAddress=u,t.isValidChecksumAddress=d,t.add0x=function(e){return e.startsWith("0x")?e:e.startsWith("0X")?`0x${e.substring(2)}`:`0x${e}`},t.remove0x=c},97009:function(e,t,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i);var r=Object.getOwnPropertyDescriptor(t,i);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,n,r)}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),r=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||n(t,e,i)};Object.defineProperty(t,"__esModule",{value:!0}),r(i(18023),t),r(i(25829),t),r(i(40598),t),r(i(84926),t),r(i(45980),t),r(i(1147),t),r(i(15824),t),r(i(54507),t),r(i(65824),t),r(i(29259),t),r(i(53192),t),r(i(43282),t),r(i(60943),t),r(i(60600),t),r(i(62314),t),r(i(64182),t),r(i(39441),t)},65824:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getJsonRpcIdValidator=t.assertIsJsonRpcError=t.isJsonRpcError=t.assertIsJsonRpcFailure=t.isJsonRpcFailure=t.assertIsJsonRpcSuccess=t.isJsonRpcSuccess=t.assertIsJsonRpcResponse=t.isJsonRpcResponse=t.assertIsPendingJsonRpcResponse=t.isPendingJsonRpcResponse=t.JsonRpcResponseStruct=t.JsonRpcFailureStruct=t.JsonRpcSuccessStruct=t.PendingJsonRpcResponseStruct=t.assertIsJsonRpcRequest=t.isJsonRpcRequest=t.assertIsJsonRpcNotification=t.isJsonRpcNotification=t.JsonRpcNotificationStruct=t.JsonRpcRequestStruct=t.JsonRpcParamsStruct=t.JsonRpcErrorStruct=t.JsonRpcIdStruct=t.JsonRpcVersionStruct=t.jsonrpc2=t.getJsonSize=t.getSafeJson=t.isValidJson=t.JsonStruct=t.UnsafeJsonStruct=void 0;let n=i(37715),r=i(18023);function o(e){return(0,n.create)(e,t.JsonStruct)}t.UnsafeJsonStruct=(0,n.union)([(0,n.literal)(null),(0,n.boolean)(),(0,n.define)("finite number",e=>(0,n.is)(e,(0,n.number)())&&Number.isFinite(e)),(0,n.string)(),(0,n.array)((0,n.lazy)(()=>t.UnsafeJsonStruct)),(0,n.record)((0,n.string)(),(0,n.lazy)(()=>t.UnsafeJsonStruct))]),t.JsonStruct=(0,n.coerce)(t.UnsafeJsonStruct,(0,n.any)(),e=>((0,r.assertStruct)(e,t.UnsafeJsonStruct),JSON.parse(JSON.stringify(e,(e,t)=>{if("__proto__"!==e&&"constructor"!==e)return t})))),t.isValidJson=function(e){try{return o(e),!0}catch{return!1}},t.getSafeJson=o,t.getJsonSize=function(e){(0,r.assertStruct)(e,t.JsonStruct,"Invalid JSON value");let i=JSON.stringify(e);return new TextEncoder().encode(i).byteLength},t.jsonrpc2="2.0",t.JsonRpcVersionStruct=(0,n.literal)(t.jsonrpc2),t.JsonRpcIdStruct=(0,n.nullable)((0,n.union)([(0,n.number)(),(0,n.string)()])),t.JsonRpcErrorStruct=(0,n.object)({code:(0,n.integer)(),message:(0,n.string)(),data:(0,n.optional)(t.JsonStruct),stack:(0,n.optional)((0,n.string)())}),t.JsonRpcParamsStruct=(0,n.optional)((0,n.union)([(0,n.record)((0,n.string)(),t.JsonStruct),(0,n.array)(t.JsonStruct)])),t.JsonRpcRequestStruct=(0,n.object)({id:t.JsonRpcIdStruct,jsonrpc:t.JsonRpcVersionStruct,method:(0,n.string)(),params:t.JsonRpcParamsStruct}),t.JsonRpcNotificationStruct=(0,n.omit)(t.JsonRpcRequestStruct,["id"]),t.isJsonRpcNotification=function(e){return(0,n.is)(e,t.JsonRpcNotificationStruct)},t.assertIsJsonRpcNotification=function(e,i){(0,r.assertStruct)(e,t.JsonRpcNotificationStruct,"Invalid JSON-RPC notification",i)},t.isJsonRpcRequest=function(e){return(0,n.is)(e,t.JsonRpcRequestStruct)},t.assertIsJsonRpcRequest=function(e,i){(0,r.assertStruct)(e,t.JsonRpcRequestStruct,"Invalid JSON-RPC request",i)},t.PendingJsonRpcResponseStruct=(0,n.object)({id:t.JsonRpcIdStruct,jsonrpc:t.JsonRpcVersionStruct,result:(0,n.optional)((0,n.unknown)()),error:(0,n.optional)(t.JsonRpcErrorStruct)}),t.JsonRpcSuccessStruct=(0,n.object)({id:t.JsonRpcIdStruct,jsonrpc:t.JsonRpcVersionStruct,result:t.JsonStruct}),t.JsonRpcFailureStruct=(0,n.object)({id:t.JsonRpcIdStruct,jsonrpc:t.JsonRpcVersionStruct,error:t.JsonRpcErrorStruct}),t.JsonRpcResponseStruct=(0,n.union)([t.JsonRpcSuccessStruct,t.JsonRpcFailureStruct]),t.isPendingJsonRpcResponse=function(e){return(0,n.is)(e,t.PendingJsonRpcResponseStruct)},t.assertIsPendingJsonRpcResponse=function(e,i){(0,r.assertStruct)(e,t.PendingJsonRpcResponseStruct,"Invalid pending JSON-RPC response",i)},t.isJsonRpcResponse=function(e){return(0,n.is)(e,t.JsonRpcResponseStruct)},t.assertIsJsonRpcResponse=function(e,i){(0,r.assertStruct)(e,t.JsonRpcResponseStruct,"Invalid JSON-RPC response",i)},t.isJsonRpcSuccess=function(e){return(0,n.is)(e,t.JsonRpcSuccessStruct)},t.assertIsJsonRpcSuccess=function(e,i){(0,r.assertStruct)(e,t.JsonRpcSuccessStruct,"Invalid JSON-RPC success response",i)},t.isJsonRpcFailure=function(e){return(0,n.is)(e,t.JsonRpcFailureStruct)},t.assertIsJsonRpcFailure=function(e,i){(0,r.assertStruct)(e,t.JsonRpcFailureStruct,"Invalid JSON-RPC failure response",i)},t.isJsonRpcError=function(e){return(0,n.is)(e,t.JsonRpcErrorStruct)},t.assertIsJsonRpcError=function(e,i){(0,r.assertStruct)(e,t.JsonRpcErrorStruct,"Invalid JSON-RPC error",i)},t.getJsonRpcIdValidator=function(e){let{permitEmptyString:t,permitFractions:i,permitNull:n}={permitEmptyString:!0,permitFractions:!1,permitNull:!0,...e};return e=>!!("number"==typeof e&&(i||Number.isInteger(e))||"string"==typeof e&&(t||e.length>0)||n&&null===e)}},29259:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},53192:function(e,t,i){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.createModuleLogger=t.createProjectLogger=void 0;let r=(0,n(i(25130)).default)("metamask");t.createProjectLogger=function(e){return r.extend(e)},t.createModuleLogger=function(e,t){return e.extend(t)}},43282:(e,t)=>{"use strict";function i(e){return 127>=e.charCodeAt(0)}Object.defineProperty(t,"__esModule",{value:!0}),t.calculateNumberSize=t.calculateStringSize=t.isASCII=t.isPlainObject=t.ESCAPE_CHARACTERS_REGEXP=t.JsonSize=t.hasProperty=t.isObject=t.isNullOrUndefined=t.isNonEmptyArray=void 0,t.isNonEmptyArray=function(e){return Array.isArray(e)&&e.length>0},t.isNullOrUndefined=function(e){return null==e},t.isObject=function(e){return!!e&&"object"==typeof e&&!Array.isArray(e)},t.hasProperty=(e,t)=>Object.hasOwnProperty.call(e,t),function(e){e[e.Null=4]="Null",e[e.Comma=1]="Comma",e[e.Wrapper=1]="Wrapper",e[e.True=4]="True",e[e.False=5]="False",e[e.Quote=1]="Quote",e[e.Colon=1]="Colon",e[e.Date=24]="Date"}(t.JsonSize||(t.JsonSize={})),t.ESCAPE_CHARACTERS_REGEXP=/"|\\|\n|\r|\t/gu,t.isPlainObject=function(e){if("object"!=typeof e||null===e)return!1;try{let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}catch(e){return!1}},t.isASCII=i,t.calculateStringSize=function(e){return e.split("").reduce((e,t)=>i(t)?e+1:e+2,0)+(e.match(t.ESCAPE_CHARACTERS_REGEXP)??[]).length},t.calculateNumberSize=function(e){return e.toString().length}},60943:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToBigInt=t.hexToNumber=t.bigIntToHex=t.numberToHex=void 0;let n=i(18023),r=i(54507);t.numberToHex=e=>((0,n.assert)("number"==typeof e,"Value must be a number."),(0,n.assert)(e>=0,"Value must be a non-negative number."),(0,n.assert)(Number.isSafeInteger(e),"Value is not a safe integer. Use `bigIntToHex` instead."),(0,r.add0x)(e.toString(16))),t.bigIntToHex=e=>((0,n.assert)("bigint"==typeof e,"Value must be a bigint."),(0,n.assert)(e>=0,"Value must be a non-negative bigint."),(0,r.add0x)(e.toString(16))),t.hexToNumber=e=>{(0,r.assertIsHexString)(e);let t=parseInt(e,16);return(0,n.assert)(Number.isSafeInteger(t),"Value is not a safe integer. Use `hexToBigInt` instead."),t},t.hexToBigInt=e=>((0,r.assertIsHexString)(e),BigInt((0,r.add0x)(e)))},60600:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},62314:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timeSince=t.inMilliseconds=t.Duration=void 0,function(e){e[e.Millisecond=1]="Millisecond",e[e.Second=1e3]="Second",e[e.Minute=6e4]="Minute",e[e.Hour=36e5]="Hour",e[e.Day=864e5]="Day",e[e.Week=6048e5]="Week",e[e.Year=31536e6]="Year"}(t.Duration||(t.Duration={}));let i=e=>Number.isInteger(e)&&e>=0,n=(e,t)=>{if(!i(e))throw Error(`"${t}" must be a non-negative integer. Received: "${e}".`)};t.inMilliseconds=function(e,t){return n(e,"count"),e*t},t.timeSince=function(e){return n(e,"timestamp"),Date.now()-e}},64182:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},39441:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.satisfiesVersionRange=t.gtRange=t.gtVersion=t.assertIsSemVerRange=t.assertIsSemVerVersion=t.isValidSemVerRange=t.isValidSemVerVersion=t.VersionRangeStruct=t.VersionStruct=void 0;let n=i(97699),r=i(37715),o=i(18023);t.VersionStruct=(0,r.refine)((0,r.string)(),"Version",e=>null!==(0,n.valid)(e)||`Expected SemVer version, got "${e}"`),t.VersionRangeStruct=(0,r.refine)((0,r.string)(),"Version range",e=>null!==(0,n.validRange)(e)||`Expected SemVer range, got "${e}"`),t.isValidSemVerVersion=function(e){return(0,r.is)(e,t.VersionStruct)},t.isValidSemVerRange=function(e){return(0,r.is)(e,t.VersionRangeStruct)},t.assertIsSemVerVersion=function(e){(0,o.assertStruct)(e,t.VersionStruct)},t.assertIsSemVerRange=function(e){(0,o.assertStruct)(e,t.VersionRangeStruct)},t.gtVersion=function(e,t){return(0,n.gt)(e,t)},t.gtRange=function(e,t){return(0,n.gtr)(e,t)},t.satisfiesVersionRange=function(e,t){return(0,n.satisfies)(e,t,{includePrerelease:!0})}},24654:function(e,t,i){"use strict";var n=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.decorateWithCaveats=t.isRestrictedMethodCaveatSpecification=void 0;let r=i(45554),o=i(51420),s=i(51057);function a(e){return(0,r.hasProperty)(e,"decorator")}t.isRestrictedMethodCaveatSpecification=a,t.decorateWithCaveats=function(e,t,i){let{caveats:r}=t;if(!r)return e;let l=t=>n(this,void 0,void 0,function*(){return e(t)});for(let e of r){let t=i[e.type];if(!t)throw new o.UnrecognizedCaveatTypeError(e.type);if(!a(t))throw new o.CaveatSpecificationMismatchError(t,s.PermissionType.RestrictedMethod);l=t.decorator(l,e)}return l}},51057:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasSpecificationType=t.PermissionType=t.findCaveat=t.constructPermission=void 0;let n=i(75616);t.constructPermission=function(e){let{caveats:t=null,invoker:i,target:r}=e;return{id:(0,n.nanoid)(),parentCapability:r,invoker:i,caveats:t,date:new Date().getTime()}},t.findCaveat=function(e,t){var i;return null===(i=e.caveats)||void 0===i?void 0:i.find(e=>e.type===t)},function(e){e.RestrictedMethod="RestrictedMethod",e.Endowment="Endowment"}(t.PermissionType||(t.PermissionType={})),t.hasSpecificationType=function(e,t){return e.permissionType===t}},43421:function(e,t,i){"use strict";var n,r,o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})},s=this&&this.__rest||function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(e);rt.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]]);return i},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PermissionController=t.CaveatMutatorOperation=void 0;let l=i(51501),u=i(82373),d=i(30774),c=i(45554),h=a(i(88629)),f=i(30412),p=i(75616),g=i(24654),m=i(51420),v=i(51057),b=i(22926),y=i(43124),_="PermissionController";function w(){return{subjects:{}}}(n=r=t.CaveatMutatorOperation||(t.CaveatMutatorOperation={}))[n.noop=0]="noop",n[n.updateValue=1]="updateValue",n[n.deleteCaveat=2]="deleteCaveat",n[n.revokePermission=3]="revokePermission";class C extends l.BaseController{constructor(e){let{caveatSpecifications:t,permissionSpecifications:i,unrestrictedMethods:n,messenger:r,state:o={}}=e;super({name:_,metadata:{subjects:{anonymous:!0,persist:!0}},messenger:r,state:Object.assign(Object.assign({},w()),o)}),this._unrestrictedMethods=new Set(n),this._caveatSpecifications=(0,h.default)(Object.assign({},t)),this.validatePermissionSpecifications(i,this._caveatSpecifications),this._permissionSpecifications=(0,h.default)(Object.assign({},i)),this.registerMessageHandlers(),this.createPermissionMiddleware=(0,b.getPermissionMiddlewareFactory)({executeRestrictedMethod:this._executeRestrictedMethod.bind(this),getRestrictedMethod:this.getRestrictedMethod.bind(this),isUnrestrictedMethod:this.unrestrictedMethods.has.bind(this.unrestrictedMethods)})}get unrestrictedMethods(){return this._unrestrictedMethods}getPermissionSpecification(e){return this._permissionSpecifications[e]}getCaveatSpecification(e){return this._caveatSpecifications[e]}validatePermissionSpecifications(e,t){Object.entries(e).forEach(([e,{permissionType:i,targetName:n,allowedCaveats:r}])=>{if(!i||!(0,c.hasProperty)(v.PermissionType,i))throw Error(`Invalid permission type: "${i}"`);if(!e)throw Error(`Invalid permission target name: "${e}"`);if(e!==n)throw Error(`Invalid permission specification: target name "${e}" must match specification.targetName value "${n}".`);r&&r.forEach(e=>{if(!(0,c.hasProperty)(t,e))throw new m.UnrecognizedCaveatTypeError(e);let n=t[e],r=(0,g.isRestrictedMethodCaveatSpecification)(n);if(i===v.PermissionType.RestrictedMethod&&!r||i===v.PermissionType.Endowment&&r)throw new m.CaveatSpecificationMismatchError(n,i)})})}registerMessageHandlers(){this.messagingSystem.registerActionHandler(`${_}:clearPermissions`,()=>this.clearState()),this.messagingSystem.registerActionHandler(`${_}:getEndowments`,(e,t,i)=>this.getEndowments(e,t,i)),this.messagingSystem.registerActionHandler(`${_}:getSubjectNames`,()=>this.getSubjectNames()),this.messagingSystem.registerActionHandler(`${_}:getPermissions`,e=>this.getPermissions(e)),this.messagingSystem.registerActionHandler(`${_}:hasPermission`,(e,t)=>this.hasPermission(e,t)),this.messagingSystem.registerActionHandler(`${_}:hasPermissions`,e=>this.hasPermissions(e)),this.messagingSystem.registerActionHandler(`${_}:grantPermissions`,this.grantPermissions.bind(this)),this.messagingSystem.registerActionHandler(`${_}:requestPermissions`,(e,t)=>this.requestPermissions(e,t)),this.messagingSystem.registerActionHandler(`${_}:revokeAllPermissions`,e=>this.revokeAllPermissions(e)),this.messagingSystem.registerActionHandler(`${_}:revokePermissionForAllSubjects`,e=>this.revokePermissionForAllSubjects(e)),this.messagingSystem.registerActionHandler(`${_}:revokePermissions`,this.revokePermissions.bind(this)),this.messagingSystem.registerActionHandler(`${_}:updateCaveat`,(e,t,i,n)=>{this.updateCaveat(e,t,i,n)})}clearState(){this.update(e=>Object.assign({},w()))}getTypedPermissionSpecification(e,t,i){let n=e===v.PermissionType.RestrictedMethod?(0,m.methodNotFound)(t,i?{origin:i}:void 0):new m.EndowmentPermissionDoesNotExistError(t,i);if(!this.targetExists(t))throw n;let r=this.getPermissionSpecification(t);if(!(0,v.hasSpecificationType)(r,e))throw n;return r}getRestrictedMethod(e,t){return this.getTypedPermissionSpecification(v.PermissionType.RestrictedMethod,e,t).methodImplementation}getSubjectNames(){return Object.keys(this.state.subjects)}getPermission(e,t){var i;return null===(i=this.state.subjects[e])||void 0===i?void 0:i.permissions[t]}getPermissions(e){var t;return null===(t=this.state.subjects[e])||void 0===t?void 0:t.permissions}hasPermission(e,t){return!!this.getPermission(e,t)}hasPermissions(e){return!!this.state.subjects[e]}revokeAllPermissions(e){this.update(t=>{if(!t.subjects[e])throw new m.UnrecognizedSubjectError(e);delete t.subjects[e]})}revokePermission(e,t){this.revokePermissions({[e]:[t]})}revokePermissions(e){this.update(t=>{Object.keys(e).forEach(i=>{if(!(0,c.hasProperty)(t.subjects,i))throw new m.UnrecognizedSubjectError(i);e[i].forEach(e=>{let{permissions:n}=t.subjects[i];if(!(0,c.hasProperty)(n,e))throw new m.PermissionDoesNotExistError(i,e);this.deletePermission(t.subjects,i,e)})})})}revokePermissionForAllSubjects(e){0!==this.getSubjectNames().length&&this.update(t=>{Object.entries(t.subjects).forEach(([i,n])=>{let{permissions:r}=n;(0,c.hasProperty)(r,e)&&this.deletePermission(t.subjects,i,e)})})}deletePermission(e,t,i){let{permissions:n}=e[t];Object.keys(n).length>1?delete n[i]:delete e[t]}hasCaveat(e,t,i){return!!this.getCaveat(e,t,i)}getCaveat(e,t,i){let n=this.getPermission(e,t);if(!n)throw new m.PermissionDoesNotExistError(e,t);return(0,v.findCaveat)(n,i)}addCaveat(e,t,i,n){if(this.hasCaveat(e,t,i))throw new m.CaveatAlreadyExistsError(e,t,i);this.setCaveat(e,t,i,n)}updateCaveat(e,t,i,n){if(!this.hasCaveat(e,t,i))throw new m.CaveatDoesNotExistError(e,t,i);this.setCaveat(e,t,i,n)}setCaveat(e,t,i,n){this.update(r=>{let o=r.subjects[e];if(!o)throw new m.UnrecognizedSubjectError(e);let s=o.permissions[t];if(!s)throw new m.PermissionDoesNotExistError(e,t);let a={type:i,value:n};if(this.validateCaveat(a,e,t),s.caveats){let e=s.caveats.findIndex(e=>e.type===a.type);-1===e?s.caveats.push(a):s.caveats.splice(e,1,a)}else s.caveats=[a];this.validateModifiedPermission(s,e)})}updatePermissionsByCaveat(e,t){0!==Object.keys(this.state.subjects).length&&this.update(i=>{Object.values(i.subjects).forEach(n=>{Object.values(n.permissions).forEach(o=>{let{caveats:s}=o,a=null==s?void 0:s.find(({type:t})=>t===e);if(!a)return;let l=t(a.value);switch(l.operation){case r.noop:break;case r.updateValue:a.value=l.value,this.validateCaveat(a,n.origin,o.parentCapability);break;case r.deleteCaveat:this.deleteCaveat(o,e,n.origin);break;case r.revokePermission:this.deletePermission(i.subjects,n.origin,o.parentCapability);break;default:throw Error(`Unrecognized mutation result: "${l.operation}"`)}})})})}removeCaveat(e,t,i){this.update(n=>{var r;let o=null===(r=n.subjects[e])||void 0===r?void 0:r.permissions[t];if(!o)throw new m.PermissionDoesNotExistError(e,t);if(!o.caveats)throw new m.CaveatDoesNotExistError(e,t,i);this.deleteCaveat(o,i,e)})}deleteCaveat(e,t,i){if(!e.caveats)throw new m.CaveatDoesNotExistError(i,e.parentCapability,t);let n=e.caveats.findIndex(e=>e.type===t);if(-1===n)throw new m.CaveatDoesNotExistError(i,e.parentCapability,t);1===e.caveats.length?e.caveats=null:e.caveats.splice(n,1),this.validateModifiedPermission(e,i)}validateModifiedPermission(e,t){if(!this.targetExists(e.parentCapability))throw Error(`Fatal: Existing permission target "${e.parentCapability}" has no specification.`);this.validatePermission(this.getPermissionSpecification(e.parentCapability),e,t)}targetExists(e){return(0,c.hasProperty)(this._permissionSpecifications,e)}grantPermissions({approvedPermissions:e,requestData:t,preserveExistingPermissions:i=!0,subject:n}){let{origin:r}=n;if(!r||"string"!=typeof r)throw new m.InvalidSubjectIdentifierError(r);let o=i?Object.assign({},this.getPermissions(r)):{};for(let[i,n]of Object.entries(e)){let e;if(!this.targetExists(i))throw(0,m.methodNotFound)(i);if(void 0!==n.parentCapability&&i!==n.parentCapability)throw new m.InvalidApprovedPermissionError(r,i,n);let s=this.getPermissionSpecification(i),a={caveats:this.constructCaveats(r,i,n.caveats),invoker:r,target:i};s.factory?(e=s.factory(a,t),this.validatePermission(s,e,r)):(e=(0,v.constructPermission)(a),this.validatePermission(s,e,r,{invokePermissionValidator:!0,performCaveatValidation:!1})),o[i]=e}return this.setValidatedPermissions(r,o),o}validatePermission(e,t,i,{invokePermissionValidator:n,performCaveatValidation:r}={invokePermissionValidator:!0,performCaveatValidation:!0}){var o;let{allowedCaveats:s,validator:a,targetName:l}=e;if((null===(o=e.subjectTypes)||void 0===o?void 0:o.length)&&e.subjectTypes.length>0){let t=this.messagingSystem.call("SubjectMetadataController:getSubjectMetadata",i);if(!t||null===t.subjectType||!e.subjectTypes.includes(t.subjectType))throw e.permissionType===v.PermissionType.RestrictedMethod?(0,m.methodNotFound)(l,{origin:i}):new m.EndowmentPermissionDoesNotExistError(l,i)}if((0,c.hasProperty)(t,"caveats")){let{caveats:e}=t;if(null!==e&&!(Array.isArray(e)&&e.length>0))throw new m.InvalidCaveatsPropertyError(i,l,e);let n=new Set;null==e||e.forEach(e=>{if(r&&this.validateCaveat(e,i,l),!(null==s?void 0:s.includes(e.type)))throw new m.ForbiddenCaveatError(e.type,i,l);if(n.has(e.type))throw new m.DuplicateCaveatError(e.type,i,l);n.add(e.type)})}n&&a&&a(t,i,l)}setValidatedPermissions(e,t){this.update(i=>{i.subjects[e]||(i.subjects[e]={origin:e,permissions:{}}),i.subjects[e].permissions=(0,f.castDraft)(t)})}constructCaveats(e,t,i){let n=null==i?void 0:i.map(i=>{this.validateCaveat(i,e,t);let{type:n,value:r}=i;return{type:n,value:r}});return n&&(0,u.isNonEmptyArray)(n)?n:void 0}validateCaveat(e,t,i){var n;if(!(0,u.isPlainObject)(e))throw new m.InvalidCaveatError(e,t,i);if(2!==Object.keys(e).length)throw new m.InvalidCaveatFieldsError(e,t,i);if("string"!=typeof e.type)throw new m.InvalidCaveatTypeError(e,t,i);let r=this.getCaveatSpecification(e.type);if(!r)throw new m.UnrecognizedCaveatTypeError(e.type,t,i);if(!(0,c.hasProperty)(e,"value")||void 0===e.value)throw new m.CaveatMissingValueError(e,t,i);if(!(0,u.isValidJson)(e.value))throw new m.CaveatInvalidJsonError(e,t,i);null===(n=r.validator)||void 0===n||n.call(r,e,t,i)}requestPermissions(e,t,i={}){return o(this,void 0,void 0,function*(){let{origin:n}=e,{id:r=(0,p.nanoid)(),preserveExistingPermissions:o=!0}=i;this.validateRequestedPermissions(n,t);let a={id:r,origin:n},l=yield this.requestUserApproval({metadata:a,permissions:t}),{permissions:u}=l,d=s(l,["permissions"]),c=this.getSideEffects(u);if(Object.values(c.permittedHandlers).length>0){let t=yield this.executeSideEffects(c,l),i=Object.keys(c.permittedHandlers).reduce((e,i,n)=>Object.assign({[i]:t[n]},e),{});return[this.grantPermissions({subject:e,approvedPermissions:u,preserveExistingPermissions:o,requestData:d}),Object.assign({data:i},a)]}return[this.grantPermissions({subject:e,approvedPermissions:u,preserveExistingPermissions:o,requestData:d}),a]})}validateRequestedPermissions(e,t){if(!(0,u.isPlainObject)(t))throw(0,m.invalidParams)({message:`Requested permissions for origin "${e}" is not a plain object.`,data:{origin:e,requestedPermissions:t}});if(0===Object.keys(t).length)throw(0,m.invalidParams)({message:`Permissions request for origin "${e}" contains no permissions.`,data:{requestedPermissions:t}});for(let i of Object.keys(t)){let n=t[i];if(!this.targetExists(i))throw(0,m.methodNotFound)(i,{origin:e,requestedPermissions:t});if(!(0,u.isPlainObject)(n)||void 0!==n.parentCapability&&i!==n.parentCapability)throw(0,m.invalidParams)({message:`Permissions request for origin "${e}" contains invalid requested permission(s).`,data:{origin:e,requestedPermissions:t}});this.validatePermission(this.getPermissionSpecification(i),n,e,{invokePermissionValidator:!1,performCaveatValidation:!0})}}requestUserApproval(e){return o(this,void 0,void 0,function*(){let{origin:t,id:i}=e.metadata,n=yield this.messagingSystem.call("ApprovalController:addRequest",{id:i,origin:t,requestData:e,type:y.MethodNames.requestPermissions},!0);return this.validateApprovedPermissions(n,{id:i,origin:t}),n})}getSideEffects(e){return Object.keys(e).reduce((e,t)=>{if(this.targetExists(t)){let i=this.getPermissionSpecification(t);i.sideEffect&&(e.permittedHandlers[t]=i.sideEffect.onPermitted,i.sideEffect.onFailure&&(e.failureHandlers[t]=i.sideEffect.onFailure))}return e},{permittedHandlers:{},failureHandlers:{}})}executeSideEffects(e,t){return o(this,void 0,void 0,function*(){let{permittedHandlers:i,failureHandlers:n}=e,r={requestData:t,messagingSystem:this.messagingSystem},o=yield Promise.allSettled(Object.values(i).map(e=>e(r))),s=o.filter(e=>"rejected"===e.status);if(s.length>0){let e=Object.values(n);if(e.length>0)try{yield Promise.all(e.map(e=>e(r)))}catch(e){throw(0,m.internalError)("Unexpected error in side-effects",{error:e})}let t=s.map(e=>e.reason);throw t.forEach(e=>{console.error(e)}),t.length>1?(0,m.internalError)("Multiple errors occurred during side-effects execution",{errors:t}):t[0]}return o.map(({value:e})=>e)})}validateApprovedPermissions(e,t){let{id:i,origin:n}=t;if(!(0,u.isPlainObject)(e)||!(0,u.isPlainObject)(e.metadata))throw(0,m.internalError)(`Approved permissions request for subject "${n}" is invalid.`,{data:{approvedRequest:e}});let{metadata:{id:r,origin:o},permissions:s}=e;if(r!==i)throw(0,m.internalError)(`Approved permissions request for subject "${n}" mutated its id.`,{originalId:i,mutatedId:r});if(o!==n)throw(0,m.internalError)(`Approved permissions request for subject "${n}" mutated its origin.`,{originalOrigin:n,mutatedOrigin:o});try{this.validateRequestedPermissions(n,s)}catch(e){if(e instanceof d.JsonRpcError)throw(0,m.internalError)(`Invalid approved permissions request: ${e.message}`,e.data);throw(0,m.internalError)("Unrecognized error type",{error:e})}}acceptPermissionsRequest(e){return o(this,void 0,void 0,function*(){let{id:t}=e.metadata;if(!this.hasApprovalRequest({id:t}))throw new m.PermissionsRequestNotFoundError(t);if(0===Object.keys(e.permissions).length){this._rejectPermissionsRequest(t,(0,m.invalidParams)({message:"Must request at least one permission."}));return}try{this.messagingSystem.call("ApprovalController:acceptRequest",t,e)}catch(e){throw this._rejectPermissionsRequest(t,e),e}})}rejectPermissionsRequest(e){return o(this,void 0,void 0,function*(){if(!this.hasApprovalRequest({id:e}))throw new m.PermissionsRequestNotFoundError(e);this._rejectPermissionsRequest(e,(0,m.userRejectedRequest)())})}hasApprovalRequest(e){return this.messagingSystem.call("ApprovalController:hasRequest",e)}_rejectPermissionsRequest(e,t){return this.messagingSystem.call("ApprovalController:rejectRequest",e,t)}getEndowments(e,t,i){return o(this,void 0,void 0,function*(){if(!this.hasPermission(e,t))throw(0,m.unauthorized)({data:{origin:e,targetName:t}});return this.getTypedPermissionSpecification(v.PermissionType.Endowment,t,e).endowmentGetter({origin:e,requestData:i})})}executeRestrictedMethod(e,t,i){return o(this,void 0,void 0,function*(){let n=this.getRestrictedMethod(t,e),r=yield this._executeRestrictedMethod(n,{origin:e},t,i);if(void 0===r)throw Error(`Internal request for method "${t}" as origin "${e}" returned no result.`);return r})}_executeRestrictedMethod(e,t,i,n=[]){let{origin:r}=t,o=this.getPermission(r,i);if(!o)throw(0,m.unauthorized)({data:{origin:r,method:i}});return(0,g.decorateWithCaveats)(e,o,this._caveatSpecifications)({method:i,params:n,context:{origin:r}})}}t.PermissionController=C},24586:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SubjectMetadataController=t.SubjectType=void 0;let n=i(51501);!function(e){e.Extension="extension",e.Internal="internal",e.Unknown="unknown",e.Website="website",e.Snap="snap"}(t.SubjectType||(t.SubjectType={}));let r={subjectMetadata:{persist:!0,anonymous:!1}},o={subjectMetadata:{}};class s extends n.BaseController{constructor({messenger:e,subjectCacheLimit:t,state:i={}}){if(!Number.isInteger(t)||t<1)throw Error(`subjectCacheLimit must be a positive integer. Received: "${t}"`);let n=t=>e.call("PermissionController:hasPermissions",t);super({name:"SubjectMetadataController",metadata:r,messenger:e,state:Object.assign({},s.getTrimmedState(i,n))}),this.subjectHasPermissions=n,this.subjectCacheLimit=t,this.subjectsWithoutPermissionsEncounteredSinceStartup=new Set,this.messagingSystem.registerActionHandler(`${this.name}:getSubjectMetadata`,this.getSubjectMetadata.bind(this)),this.messagingSystem.registerActionHandler(`${this.name}:addSubjectMetadata`,this.addSubjectMetadata.bind(this))}clearState(){this.subjectsWithoutPermissionsEncounteredSinceStartup.clear(),this.update(e=>Object.assign({},o))}addSubjectMetadata(e){let{origin:t}=e,i=Object.assign(Object.assign({},e),{extensionId:e.extensionId||null,iconUrl:e.iconUrl||null,name:e.name||null,subjectType:e.subjectType||null}),n=null;if(this.subjectsWithoutPermissionsEncounteredSinceStartup.size>=this.subjectCacheLimit){let e=this.subjectsWithoutPermissionsEncounteredSinceStartup.values().next().value;this.subjectsWithoutPermissionsEncounteredSinceStartup.delete(e),this.subjectHasPermissions(e)||(n=e)}this.subjectsWithoutPermissionsEncounteredSinceStartup.add(t),this.update(e=>{e.subjectMetadata[t]=i,"string"==typeof n&&delete e.subjectMetadata[n]})}getSubjectMetadata(e){return this.state.subjectMetadata[e]}trimMetadataState(){this.update(e=>s.getTrimmedState(e,this.subjectHasPermissions))}static getTrimmedState(e,t){let{subjectMetadata:i={}}=e;return{subjectMetadata:Object.keys(i).reduce((e,n)=>(t(n)&&(e[n]=i[n]),e),{})}}}t.SubjectMetadataController=s},51420:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PermissionsRequestNotFoundError=t.CaveatSpecificationMismatchError=t.DuplicateCaveatError=t.ForbiddenCaveatError=t.InvalidCaveatFieldsError=t.CaveatInvalidJsonError=t.CaveatMissingValueError=t.InvalidCaveatTypeError=t.InvalidCaveatError=t.CaveatAlreadyExistsError=t.CaveatDoesNotExistError=t.InvalidCaveatsPropertyError=t.UnrecognizedCaveatTypeError=t.EndowmentPermissionDoesNotExistError=t.PermissionDoesNotExistError=t.InvalidApprovedPermissionError=t.UnrecognizedSubjectError=t.InvalidSubjectIdentifierError=t.internalError=t.userRejectedRequest=t.invalidParams=t.methodNotFound=t.unauthorized=void 0;let n=i(30774);t.unauthorized=function(e){return n.providerErrors.unauthorized({message:"Unauthorized to perform action. Try requesting the required permission(s) first. For more information, see: https://docs.metamask.io/guide/rpc-api.html#permissions",data:e.data})},t.methodNotFound=function(e,t){let i={message:`The method "${e}" does not exist / is not available.`};return void 0!==t&&(i.data=t),n.rpcErrors.methodNotFound(i)},t.invalidParams=function(e){return n.rpcErrors.invalidParams({data:e.data,message:e.message})},t.userRejectedRequest=function(e){return n.providerErrors.userRejectedRequest({data:e})},t.internalError=function(e,t){return n.rpcErrors.internal({message:e,data:t})},t.InvalidSubjectIdentifierError=class extends Error{constructor(e){super(`Invalid subject identifier: "${"string"==typeof e?e:typeof e}"`)}},t.UnrecognizedSubjectError=class extends Error{constructor(e){super(`Unrecognized subject: "${e}" has no permissions.`)}},t.InvalidApprovedPermissionError=class extends Error{constructor(e,t,i){super(`Invalid approved permission for origin "${e}" and target "${t}".`),this.data={origin:e,target:t,approvedPermission:i}}},t.PermissionDoesNotExistError=class extends Error{constructor(e,t){super(`Subject "${e}" has no permission for "${t}".`)}},t.EndowmentPermissionDoesNotExistError=class extends Error{constructor(e,t){super(`Subject "${t}" has no permission for "${e}".`),t&&(this.data={origin:t})}},t.UnrecognizedCaveatTypeError=class extends Error{constructor(e,t,i){super(`Unrecognized caveat type: "${e}"`),this.data={caveatType:e},void 0!==t&&(this.data.origin=t),void 0!==i&&(this.data.target=i)}},t.InvalidCaveatsPropertyError=class extends Error{constructor(e,t,i){super(`The "caveats" property of permission for "${t}" of subject "${e}" is invalid. It must be a non-empty array if specified.`),this.data={origin:e,target:t,caveatsProperty:i}}},t.CaveatDoesNotExistError=class extends Error{constructor(e,t,i){super(`Permission for "${t}" of subject "${e}" has no caveat of type "${i}".`)}},t.CaveatAlreadyExistsError=class extends Error{constructor(e,t,i){super(`Permission for "${t}" of subject "${e}" already has a caveat of type "${i}".`)}};class r extends n.JsonRpcError{constructor(e,t,i){super(n.errorCodes.rpc.invalidParams,"Invalid caveat. Caveats must be plain objects.",{receivedCaveat:e}),this.data={origin:t,target:i}}}t.InvalidCaveatError=r,t.InvalidCaveatTypeError=class extends Error{constructor(e,t,i){super(`Caveat types must be strings. Received: "${typeof e.type}"`),this.data={caveat:e,origin:t,target:i}}},t.CaveatMissingValueError=class extends Error{constructor(e,t,i){super('Caveat is missing "value" field.'),this.data={caveat:e,origin:t,target:i}}},t.CaveatInvalidJsonError=class extends Error{constructor(e,t,i){super('Caveat "value" is invalid JSON.'),this.data={caveat:e,origin:t,target:i}}},t.InvalidCaveatFieldsError=class extends Error{constructor(e,t,i){super(`Caveat has unexpected number of fields: "${Object.keys(e).length}"`),this.data={caveat:e,origin:t,target:i}}},t.ForbiddenCaveatError=class extends Error{constructor(e,t,i){super(`Permissions for target "${i}" may not have caveats of type "${e}".`),this.data={caveatType:e,origin:t,target:i}}},t.DuplicateCaveatError=class extends Error{constructor(e,t,i){super(`Permissions for target "${i}" contains multiple caveats of type "${e}".`),this.data={caveatType:e,origin:t,target:i}}},t.CaveatSpecificationMismatchError=class extends Error{constructor(e,t){super(`Caveat specification uses a mismatched type. Expected caveats for ${t}`),this.data={caveatSpec:e,permissionType:t}}},t.PermissionsRequestNotFoundError=class extends Error{constructor(e){super(`Permissions request with id "${e}" not found.`)}}},29033:function(e,t,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i);var r=Object.getOwnPropertyDescriptor(t,i);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,n,r)}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||n(t,e,i)},s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.permissionRpcMethods=void 0,o(i(24654),t),o(i(51420),t),o(i(51057),t),o(i(43421),t),o(i(43124),t),t.permissionRpcMethods=s(i(71514)),o(i(24586),t)},22926:function(e,t,i){"use strict";var n=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.getPermissionMiddlewareFactory=void 0;let r=i(63163),o=i(51420);t.getPermissionMiddlewareFactory=function({executeRestrictedMethod:e,getRestrictedMethod:t,isUnrestrictedMethod:i}){return function(s){let{origin:a}=s;if("string"!=typeof a||!a)throw Error('The subject "origin" must be a non-empty string.');return(0,r.createAsyncMiddleware)((r,l,u)=>n(this,void 0,void 0,function*(){let{method:n,params:d}=r;if(i(n))return u();let c=t(n,a),h=yield e(c,s,n,d);if(void 0===h){l.error=(0,o.internalError)(`Request for method "${r.method}" returned undefined result.`,{request:r});return}l.result=h}))}}},19806:function(e,t,i){"use strict";var n=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.getPermissionsHandler=void 0;let r=i(43124);t.getPermissionsHandler={methodNames:[r.MethodNames.getPermissions],implementation:function(e,t,i,r,{getPermissionsForOrigin:o}){return n(this,void 0,void 0,function*(){return t.result=Object.values(o()||{}),r()})},hookNames:{getPermissionsForOrigin:!0}}},71514:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.handlers=void 0;let n=i(19806),r=i(73512),o=i(51329);t.handlers=[r.requestPermissionsHandler,n.getPermissionsHandler,o.revokePermissionsHandler]},73512:function(e,t,i){"use strict";var n=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.requestPermissionsHandler=void 0;let r=i(82373),o=i(30774),s=i(51420),a=i(43124);t.requestPermissionsHandler={methodNames:[a.MethodNames.requestPermissions],implementation:function(e,t,i,a,{requestPermissionsForOrigin:l}){return n(this,void 0,void 0,function*(){let{id:i,params:n}=e;if("number"!=typeof i&&"string"!=typeof i||"string"==typeof i&&!i)return a(o.rpcErrors.invalidRequest({message:"Invalid request: Must specify a valid id.",data:{request:e}}));if(!Array.isArray(n)||!(0,r.isPlainObject)(n[0]))return a((0,s.invalidParams)({data:{request:e}}));let[u]=n,[d]=yield l(u,String(i));return t.result=Object.values(d),a()})},hookNames:{requestPermissionsForOrigin:!0}}},51329:function(e,t,i){"use strict";var n=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.revokePermissionsHandler=void 0;let r=i(45554),o=i(51420),s=i(43124);t.revokePermissionsHandler={methodNames:[s.MethodNames.revokePermissions],implementation:function(e,t,i,s,{revokePermissionsForOrigin:a}){return n(this,void 0,void 0,function*(){let{params:i}=e,n=null==i?void 0:i[0];if(!n)return s((0,o.invalidParams)({data:{request:e}}));let l=Object.keys(n);return(0,r.isNonEmptyArray)(l)?(a(l),t.result=null,s()):s((0,o.invalidParams)({data:{request:e}}))})},hookNames:{revokePermissionsForOrigin:!0}}},43124:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MethodNames=void 0,function(e){e.requestPermissions="wallet_requestPermissions",e.getPermissions="wallet_getPermissions",e.revokePermissions="wallet_revokePermissions"}(t.MethodNames||(t.MethodNames={}))},18856:function(e,t,i){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EthereumProviderError=t.JsonRpcError=void 0;let r=i(45554),o=n(i(77847)),s=i(27962);class a extends Error{constructor(e,t,i){if(!Number.isInteger(e))throw Error('"code" must be an integer.');if(!t||"string"!=typeof t)throw Error('"message" must be a non-empty string.');super(t),this.code=e,void 0!==i&&(this.data=i)}serialize(){let e={code:this.code,message:this.message};return void 0!==this.data&&(e.data=this.data,(0,r.isPlainObject)(this.data)&&(e.data.cause=(0,s.serializeCause)(this.data.cause))),this.stack&&(e.stack=this.stack),e}toString(){return(0,o.default)(this.serialize(),l,2)}}function l(e,t){if("[Circular]"!==t)return t}t.JsonRpcError=a,t.EthereumProviderError=class extends a{constructor(e,t,i){if(!(Number.isInteger(e)&&e>=1e3&&e<=4999))throw Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,t,i)}}},15191:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.errorValues=t.errorCodes=void 0,t.errorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}},t.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}}},6748:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.providerErrors=t.rpcErrors=void 0;let n=i(18856),r=i(15191),o=i(27962);function s(e,t){let[i,r]=l(t);return new n.JsonRpcError(e,i??(0,o.getMessageFromCode)(e),r)}function a(e,t){let[i,r]=l(t);return new n.EthereumProviderError(e,i??(0,o.getMessageFromCode)(e),r)}function l(e){if(e){if("string"==typeof e)return[e];if("object"==typeof e&&!Array.isArray(e)){let{message:t,data:i}=e;if(t&&"string"!=typeof t)throw Error("Must specify string message.");return[t??void 0,i]}}return[]}t.rpcErrors={parse:e=>s(r.errorCodes.rpc.parse,e),invalidRequest:e=>s(r.errorCodes.rpc.invalidRequest,e),invalidParams:e=>s(r.errorCodes.rpc.invalidParams,e),methodNotFound:e=>s(r.errorCodes.rpc.methodNotFound,e),internal:e=>s(r.errorCodes.rpc.internal,e),server:e=>{if(!e||"object"!=typeof e||Array.isArray(e))throw Error("Ethereum RPC Server errors must provide single object argument.");let{code:t}=e;if(!Number.isInteger(t)||t>-32005||t<-32099)throw Error('"code" must be an integer such that: -32099 <= code <= -32005');return s(t,e)},invalidInput:e=>s(r.errorCodes.rpc.invalidInput,e),resourceNotFound:e=>s(r.errorCodes.rpc.resourceNotFound,e),resourceUnavailable:e=>s(r.errorCodes.rpc.resourceUnavailable,e),transactionRejected:e=>s(r.errorCodes.rpc.transactionRejected,e),methodNotSupported:e=>s(r.errorCodes.rpc.methodNotSupported,e),limitExceeded:e=>s(r.errorCodes.rpc.limitExceeded,e)},t.providerErrors={userRejectedRequest:e=>a(r.errorCodes.provider.userRejectedRequest,e),unauthorized:e=>a(r.errorCodes.provider.unauthorized,e),unsupportedMethod:e=>a(r.errorCodes.provider.unsupportedMethod,e),disconnected:e=>a(r.errorCodes.provider.disconnected,e),chainDisconnected:e=>a(r.errorCodes.provider.chainDisconnected,e),custom:e=>{if(!e||"object"!=typeof e||Array.isArray(e))throw Error("Ethereum Provider custom errors must provide single object argument.");let{code:t,message:i,data:r}=e;if(!i||"string"!=typeof i)throw Error('"message" must be a nonempty string');return new n.EthereumProviderError(t,i,r)}}},30774:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.errorCodes=t.providerErrors=t.rpcErrors=t.getMessageFromCode=t.serializeError=t.serializeCause=t.EthereumProviderError=t.JsonRpcError=void 0;var n=i(18856);Object.defineProperty(t,"JsonRpcError",{enumerable:!0,get:function(){return n.JsonRpcError}}),Object.defineProperty(t,"EthereumProviderError",{enumerable:!0,get:function(){return n.EthereumProviderError}});var r=i(27962);Object.defineProperty(t,"serializeCause",{enumerable:!0,get:function(){return r.serializeCause}}),Object.defineProperty(t,"serializeError",{enumerable:!0,get:function(){return r.serializeError}}),Object.defineProperty(t,"getMessageFromCode",{enumerable:!0,get:function(){return r.getMessageFromCode}});var o=i(6748);Object.defineProperty(t,"rpcErrors",{enumerable:!0,get:function(){return o.rpcErrors}}),Object.defineProperty(t,"providerErrors",{enumerable:!0,get:function(){return o.providerErrors}});var s=i(15191);Object.defineProperty(t,"errorCodes",{enumerable:!0,get:function(){return s.errorCodes}})},27962:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.serializeCause=t.serializeError=t.isValidCode=t.getMessageFromCode=t.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;let n=i(45554),r=i(15191),o=r.errorCodes.rpc.internal,s={code:o,message:a(o)};function a(e,i="Unspecified error message. This is a bug, please report it."){if(l(e)){let i=e.toString();if((0,n.hasProperty)(r.errorValues,i))return r.errorValues[i].message;if(e>=-32099&&e<=-32e3)return t.JSON_RPC_SERVER_ERROR_MESSAGE}return i}function l(e){return Number.isInteger(e)}function u(e){return Array.isArray(e)?e.map(e=>(0,n.isValidJson)(e)?e:(0,n.isObject)(e)?d(e):null):(0,n.isObject)(e)?d(e):(0,n.isValidJson)(e)?e:null}function d(e){return Object.getOwnPropertyNames(e).reduce((t,i)=>{let r=e[i];return(0,n.isValidJson)(r)&&(t[i]=r),t},{})}t.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.",t.getMessageFromCode=a,t.isValidCode=l,t.serializeError=function(e,{fallbackError:t=s,shouldIncludeStack:i=!0}={}){if(!(0,n.isJsonRpcError)(t))throw Error("Must provide fallback error with integer number code and string message.");let r=function(e,t){if(e&&"object"==typeof e&&"serialize"in e&&"function"==typeof e.serialize)return e.serialize();if((0,n.isJsonRpcError)(e))return e;let i=u(e);return{...t,data:{cause:i}}}(e,t);return i||delete r.stack,r},t.serializeCause=u},63795:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=i(22699);function r(e,t,i){try{Reflect.apply(e,t,i)}catch(e){setTimeout(()=>{throw e})}}class o extends n.EventEmitter{emit(e,...t){let i="error"===e,n=this._events;if(void 0!==n)i=i&&void 0===n.error;else if(!i)return!1;if(i){let e;if(t.length>0&&([e]=t),e instanceof Error)throw e;let i=Error(`Unhandled error.${e?` (${e.message})`:""}`);throw i.context=e,i}let o=n[e];if(void 0===o)return!1;if("function"==typeof o)r(o,this,t);else{let e=o.length,i=function(e){let t=e.length,i=Array(t);for(let n=0;n{"use strict";t.OI=void 0,i(53525);let n=i(99179),r=(i(96053),i(12540));function o(e){if("string"!=typeof e)throw TypeError(`Invalid mnemonic type: ${typeof e}`);return e.normalize("NFKD")}i(70064),i(36237);let s=e=>o(`mnemonic${e}`);t.OI=function(e,t,i=""){let a="string"==typeof e?new TextEncoder().encode(function(e){let t=o(e),i=t.split(" ");if(![12,15,18,21,24].includes(i.length))throw Error("Invalid mnemonic");return{nfkd:t,words:i}}(e).nfkd):new TextEncoder().encode(Array.from(new Uint16Array(e.buffer)).map(e=>t[e]).join(" "));return(0,n.pbkdf2Async)(r.sha512,a,s(i),{c:2048,dkLen:64})}},63610:(e,t)=>{"use strict";t.U=void 0,t.U=`abandon @@ -3692,4 +3692,4 @@ ${t}`),c.pop(),`{${y}}`}case"number":return isFinite(d)?String(d):t?t(d):"null"; * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var n=i(2784),r=i(43100),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=r.useSyncExternalStore,a=n.useRef,l=n.useEffect,u=n.useMemo,d=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,i,n,r){var c=a(null);if(null===c.current){var h={hasValue:!1,value:null};c.current=h}else h=c.current;var f=s(e,(c=u(function(){function e(e){if(!l){if(l=!0,s=e,e=n(e),void 0!==r&&h.hasValue){var t=h.value;if(r(t,e))return a=t}return a=e}if(t=a,o(s,e))return t;var i=n(e);return void 0!==r&&r(t,i)?t:(s=e,a=i)}var s,a,l=!1,u=void 0===i?null:i;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,i,n,r]))[0],c[1]);return l(function(){h.hasValue=!0,h.value=f},[f]),d(f),f}},43100:(e,t,i)=>{"use strict";e.exports=i(20452)},41110:(e,t,i)=>{"use strict";e.exports=i(80402)},5803:(e,t,i)=>{e.exports=function(e,t){if(n("noDeprecation"))return e;var i=!1;return function(){if(!i){if(n("throwDeprecation"))throw Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),i=!0}return e.apply(this,arguments)}};function n(e){try{if(!i.g.localStorage)return!1}catch(e){return!1}var t=i.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}},10082:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},54895:(e,t,i)=>{"use strict";var n=i(52635),r=i(43138),o=i(32094),s=i(50198);function a(e){return e.call.bind(e)}var l="undefined"!=typeof BigInt,u="undefined"!=typeof Symbol,d=a(Object.prototype.toString),c=a(Number.prototype.valueOf),h=a(String.prototype.valueOf),f=a(Boolean.prototype.valueOf);if(l)var p=a(BigInt.prototype.valueOf);if(u)var g=a(Symbol.prototype.valueOf);function m(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function v(e){return"[object Map]"===d(e)}function b(e){return"[object Set]"===d(e)}function y(e){return"[object WeakMap]"===d(e)}function _(e){return"[object WeakSet]"===d(e)}function w(e){return"[object ArrayBuffer]"===d(e)}function C(e){return"undefined"!=typeof ArrayBuffer&&(w.working?w(e):e instanceof ArrayBuffer)}function S(e){return"[object DataView]"===d(e)}function x(e){return"undefined"!=typeof DataView&&(S.working?S(e):e instanceof DataView)}t.isArgumentsObject=n,t.isGeneratorFunction=r,t.isTypedArray=s,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):s(e)||x(e)},t.isUint8Array=function(e){return"Uint8Array"===o(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===o(e)},t.isUint16Array=function(e){return"Uint16Array"===o(e)},t.isUint32Array=function(e){return"Uint32Array"===o(e)},t.isInt8Array=function(e){return"Int8Array"===o(e)},t.isInt16Array=function(e){return"Int16Array"===o(e)},t.isInt32Array=function(e){return"Int32Array"===o(e)},t.isFloat32Array=function(e){return"Float32Array"===o(e)},t.isFloat64Array=function(e){return"Float64Array"===o(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===o(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===o(e)},v.working="undefined"!=typeof Map&&v(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(v.working?v(e):e instanceof Map)},b.working="undefined"!=typeof Set&&b(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(b.working?b(e):e instanceof Set)},y.working="undefined"!=typeof WeakMap&&y(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(y.working?y(e):e instanceof WeakMap)},_.working="undefined"!=typeof WeakSet&&_(new WeakSet),t.isWeakSet=function(e){return _(e)},w.working="undefined"!=typeof ArrayBuffer&&w(new ArrayBuffer),t.isArrayBuffer=C,S.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&S(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=x;var k="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function E(e){return"[object SharedArrayBuffer]"===d(e)}function L(e){return void 0!==k&&(void 0===E.working&&(E.working=E(new k)),E.working?E(e):e instanceof k)}function M(e){return m(e,c)}function N(e){return m(e,h)}function D(e){return m(e,f)}function A(e){return l&&m(e,p)}function T(e){return u&&m(e,g)}t.isSharedArrayBuffer=L,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===d(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===d(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===d(e)},t.isGeneratorObject=function(e){return"[object Generator]"===d(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===d(e)},t.isNumberObject=M,t.isStringObject=N,t.isBooleanObject=D,t.isBigIntObject=A,t.isSymbolObject=T,t.isBoxedPrimitive=function(e){return M(e)||N(e)||D(e)||A(e)||T(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(C(e)||L(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw Error(e+" is not supported in userland")}})})},43335:(e,t,i)=>{var n=i(34406),r=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),i={},n=0;n=r)return e;switch(e){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch(e){return"[Circular]"}default:return e}}),a=n[i];i=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),m(i)?n.showHidden=i:i&&t._extend(n,i),_(n.showHidden)&&(n.showHidden=!1),_(n.depth)&&(n.depth=2),_(n.colors)&&(n.colors=!1),_(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=d),h(n,e,n.depth)}function d(e,t){var i=u.styles[t];return i?"\x1b["+u.colors[i][0]+"m"+e+"\x1b["+u.colors[i][1]+"m":e}function c(e,t){return e}function h(e,i,n){if(e.customInspect&&i&&k(i.inspect)&&i.inspect!==t.inspect&&!(i.constructor&&i.constructor.prototype===i)){var r,o,s,a,l,u=i.inspect(n,e);return y(u)||(u=h(e,u,n)),u}var d=function(e,t){if(_(t))return e.stylize("undefined","undefined");if(y(t)){var i="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(i,"string")}return b(t)?e.stylize(""+t,"number"):m(t)?e.stylize(""+t,"boolean"):v(t)?e.stylize("null","null"):void 0}(e,i);if(d)return d;var c=Object.keys(i),C=(a={},c.forEach(function(e,t){a[e]=!0}),a);if(e.showHidden&&(c=Object.getOwnPropertyNames(i)),x(i)&&(c.indexOf("message")>=0||c.indexOf("description")>=0))return f(i);if(0===c.length){if(k(i)){var E=i.name?": "+i.name:"";return e.stylize("[Function"+E+"]","special")}if(w(i))return e.stylize(RegExp.prototype.toString.call(i),"regexp");if(S(i))return e.stylize(Date.prototype.toString.call(i),"date");if(x(i))return f(i)}var L="",M=!1,D=["{","}"];return(g(i)&&(M=!0,D=["[","]"]),k(i)&&(L=" [Function"+(i.name?": "+i.name:"")+"]"),w(i)&&(L=" "+RegExp.prototype.toString.call(i)),S(i)&&(L=" "+Date.prototype.toUTCString.call(i)),x(i)&&(L=" "+f(i)),0!==c.length||M&&0!=i.length)?n<0?w(i)?e.stylize(RegExp.prototype.toString.call(i),"regexp"):e.stylize("[Object]","special"):(e.seen.push(i),l=M?function(e,t,i,n,r){for(var o=[],s=0,a=t.length;s=0&&s++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?o[0]+(""===r?"":r+"\n ")+" "+l.join(",\n ")+" "+o[1]:o[0]+r+" "+l.join(", ")+" "+o[1]):D[0]+L+D[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,i,n,r,o){var s,a,l;if((l=Object.getOwnPropertyDescriptor(t,r)||{value:t[r]}).get?a=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(a=e.stylize("[Setter]","special")),N(n,r)||(s="["+r+"]"),!a&&(0>e.seen.indexOf(l.value)?(a=v(i)?h(e,l.value,null):h(e,l.value,i-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map(function(e){return" "+e}).join("\n").slice(2):"\n"+a.split("\n").map(function(e){return" "+e}).join("\n")):a=e.stylize("[Circular]","special")),_(s)){if(o&&r.match(/^\d+$/))return a;(s=JSON.stringify(""+r)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.slice(1,-1),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function g(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function v(e){return null===e}function b(e){return"number"==typeof e}function y(e){return"string"==typeof e}function _(e){return void 0===e}function w(e){return C(e)&&"[object RegExp]"===E(e)}function C(e){return"object"==typeof e&&null!==e}function S(e){return C(e)&&"[object Date]"===E(e)}function x(e){return C(e)&&("[object Error]"===E(e)||e instanceof Error)}function k(e){return"function"==typeof e}function E(e){return Object.prototype.toString.call(e)}function L(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(!s[e=e.toUpperCase()]){if(a.test(e)){var i=n.pid;s[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,i,n)}}else s[e]=function(){}}return s[e]},t.inspect=u,u.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]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=i(54895),t.isArray=g,t.isBoolean=m,t.isNull=v,t.isNullOrUndefined=function(e){return null==e},t.isNumber=b,t.isString=y,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=_,t.isRegExp=w,t.types.isRegExp=w,t.isObject=C,t.isDate=S,t.types.isDate=S,t.isError=x,t.types.isNativeError=x,t.isFunction=k,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=i(10082);var M=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function N(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,i;console.log("%s - %s",(i=[L((e=new Date).getHours()),L(e.getMinutes()),L(e.getSeconds())].join(":"),[e.getDate(),M[e.getMonth()],i].join(" ")),t.format.apply(t,arguments))},t.inherits=i(91285),t._extend=function(e,t){if(!t||!C(t))return e;for(var i=Object.keys(t),n=i.length;n--;)e[i[n]]=t[i[n]];return e};var D="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function A(e,t){if(!e){var i=Error("Promise was rejected with a falsy value");i.reason=e,e=i}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');if(D&&e[D]){var t=e[D];if("function"!=typeof t)throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,D,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,i,n=new Promise(function(e,n){t=e,i=n}),r=[],o=0;o{"use strict";var n=i(88062);function r(){}e.exports=s,r.prototype=Error.prototype,s.prototype=new r;var o=s.prototype;function s(e,t,i){var r,o,s,a,l;"string"==typeof t&&(i=t,t=null),l=[null,null],"string"==typeof(s=i)&&(-1===(a=s.indexOf(":"))?l[1]=s:(l[0]=s.slice(0,a),l[1]=s.slice(a+1))),r=n(t)||"1:1",o={start:{line:null,column:null},end:{line:null,column:null}},t&&t.position&&(t=t.position),t&&(t.start?(o=t,t=t.start):o.start=t),e.stack&&(this.stack=e.stack,e=e.message),this.message=e,this.name=r,this.reason=e,this.line=t?t.line:null,this.column=t?t.column:null,this.location=o,this.source=l[0],this.ruleId=l[1]}o.file="",o.name="",o.reason="",o.message="",o.stack="",o.fatal=null,o.column=null,o.line=null},21142:(e,t,i)=>{"use strict";e.exports=i(32805)},48791:(e,t,i)=>{"use strict";var n=i(16662),r=i(41345),o=i(97033);e.exports=l;var s={}.hasOwnProperty,a=["history","path","basename","stem","extname","dirname"];function l(e){var t,i;if(e){if("string"==typeof e||o(e))e={contents:e};else if("message"in e&&"messages"in e)return e}else e={};if(!(this instanceof l))return new l(e);for(this.data={},this.messages=[],this.history=[],this.cwd=r.cwd(),i=-1;++ia.indexOf(t)&&(this[t]=e[t])}function u(e,t){if(e&&e.indexOf(n.sep)>-1)throw Error("`"+t+"` cannot be a path: did not expect `"+n.sep+"`")}function d(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function c(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}l.prototype.toString=function(e){return(this.contents||"").toString(e)},Object.defineProperty(l.prototype,"path",{get:function(){return this.history[this.history.length-1]},set:function(e){d(e,"path"),this.path!==e&&this.history.push(e)}}),Object.defineProperty(l.prototype,"dirname",{get:function(){return"string"==typeof this.path?n.dirname(this.path):void 0},set:function(e){c(this.path,"dirname"),this.path=n.join(e||"",this.basename)}}),Object.defineProperty(l.prototype,"basename",{get:function(){return"string"==typeof this.path?n.basename(this.path):void 0},set:function(e){d(e,"basename"),u(e,"basename"),this.path=n.join(this.dirname||"",e)}}),Object.defineProperty(l.prototype,"extname",{get:function(){return"string"==typeof this.path?n.extname(this.path):void 0},set:function(e){if(u(e,"extname"),c(this.path,"extname"),e){if(46!==e.charCodeAt(0))throw Error("`extname` must start with `.`");if(e.indexOf(".",1)>-1)throw Error("`extname` cannot contain multiple dots")}this.path=n.join(this.dirname,this.stem+(e||""))}}),Object.defineProperty(l.prototype,"stem",{get:function(){return"string"==typeof this.path?n.basename(this.path,this.extname):void 0},set:function(e){d(e,"stem"),u(e,"stem"),this.path=n.join(this.dirname||"",e+(this.extname||""))}})},32805:(e,t,i)=>{"use strict";var n=i(90),r=i(48791);e.exports=r,r.prototype.message=function(e,t,i){var r=new n(e,t,i);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r},r.prototype.info=function(){var e=this.message.apply(this,arguments);return e.fatal=null,e},r.prototype.fail=function(){var e=this.message.apply(this,arguments);throw e.fatal=!0,e}},16662:(e,t)=>{"use strict";function i(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}t.basename=function(e,t){var n,r,o,s,a=0,l=-1;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');if(i(e),n=e.length,void 0===t||!t.length||t.length>e.length){for(;n--;)if(47===e.charCodeAt(n)){if(o){a=n+1;break}}else l<0&&(o=!0,l=n+1);return l<0?"":e.slice(a,l)}if(t===e)return"";for(r=-1,s=t.length-1;n--;)if(47===e.charCodeAt(n)){if(o){a=n+1;break}}else r<0&&(o=!0,r=n+1),s>-1&&(e.charCodeAt(n)===t.charCodeAt(s--)?s<0&&(l=n):(s=-1,l=r));return a===l?l=r:l<0&&(l=e.length),e.slice(a,l)},t.dirname=function(e){var t,n,r;if(i(e),!e.length)return".";for(t=-1,r=e.length;--r;)if(47===e.charCodeAt(r)){if(n){t=r;break}}else n||(n=!0);return t<0?47===e.charCodeAt(0)?"/":".":1===t&&47===e.charCodeAt(0)?"//":e.slice(0,t)},t.extname=function(e){var t,n,r,o=-1,s=0,a=-1,l=0;for(i(e),r=e.length;r--;){if(47===(n=e.charCodeAt(r))){if(t){s=r+1;break}continue}a<0&&(t=!0,a=r+1),46===n?o<0?o=r:1!==l&&(l=1):o>-1&&(l=-1)}return o<0||a<0||0===l||1===l&&o===a-1&&o===s+1?"":e.slice(o,a)},t.join=function(){for(var e,t,n,r,o=-1;++o2){if((n=r.lastIndexOf("/"))!==r.length-1){n<0?(r="",o=0):o=(r=r.slice(0,n)).length-1-r.lastIndexOf("/"),s=l,a=0;continue}}else if(r.length){r="",o=0,s=l,a=0;continue}}t&&(r=r.length?r+"/..":"..",o=2)}else r.length?r+="/"+e.slice(s+1,l):r=e.slice(s+1,l),o=l-s-1;s=l,a=0}else 46===i&&a>-1?a++:a=-1}return r}(e,!t)).length||t||(n="."),n.length&&47===e.charCodeAt(e.length-1)&&(n+="/"),t?"/"+n:n)},t.sep="/"},41345:(e,t)=>{"use strict";t.cwd=function(){return"/"}},97033:e=>{e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},32094:(e,t,i)=>{"use strict";var n=i(83243),r=i(10711),o=i(62680),s=i(50326),a=o("Object.prototype.toString"),l=i(67226)(),u="undefined"==typeof globalThis?i.g:globalThis,d=r(),c=o("String.prototype.slice"),h={},f=Object.getPrototypeOf;l&&s&&f&&n(d,function(e){if("function"==typeof u[e]){var t=new u[e];if(Symbol.toStringTag in t){var i=f(t),n=s(i,Symbol.toStringTag);n||(n=s(f(i),Symbol.toStringTag)),h[e]=n.get}}});var p=function(e){var t=!1;return n(h,function(i,n){if(!t)try{var r=i.call(e);r===n&&(t=r)}catch(e){}}),t},g=i(50198);e.exports=function(e){return!!g(e)&&(l&&Symbol.toStringTag in e?p(e):c(a(e),8,-1))}},51960:e=>{e.exports=function(){for(var e={},i=0;i{"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},8006:(e,t,i)=>{"use strict";function n(e){var t=this;if(t instanceof n||(t=new n),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach(function(e){t.push(e)});else if(arguments.length>0)for(var i=0,r=arguments.length;i1)i=t;else if(this.head)n=this.head.next,i=this.head.value;else throw TypeError("Reduce of empty list with no initial value");for(var r=0;null!==n;r++)i=e(i,n.value,r),n=n.next;return i},n.prototype.reduceReverse=function(e,t){var i,n=this.tail;if(arguments.length>1)i=t;else if(this.tail)n=this.tail.prev,i=this.tail.value;else throw TypeError("Reduce of empty list with no initial value");for(var r=this.length-1;null!==n;r--)i=e(i,n.value,r),n=n.prev;return i},n.prototype.toArray=function(){for(var e=Array(this.length),t=0,i=this.head;null!==i;t++)e[t]=i.value,i=i.next;return e},n.prototype.toArrayReverse=function(){for(var e=Array(this.length),t=0,i=this.tail;null!==i;t++)e[t]=i.value,i=i.prev;return e},n.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var i=new n;if(tthis.length&&(t=this.length);for(var r=0,o=this.head;null!==o&&rthis.length&&(t=this.length);for(var r=this.length,o=this.tail;null!==o&&r>t;r--)o=o.prev;for(;null!==o&&r>e;r--,o=o.prev)i.push(o.value);return i},n.prototype.splice=function(e,t,...i){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,o=this.head;null!==o&&n{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII="},6161:e=>{"use strict";e.exports="data:image/svg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AiPgo8cmVjdCB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg=="},26602:(e,t,i)=>{"use strict";e.exports=i.p+"fa2cc0ab9f0bec2b3365.ttf"},83642:(e,t,i)=>{e.exports=i},29005:()=>{},77378:()=>{},69314:()=>{},33196:()=>{},38087:()=>{},44943:()=>{},732:()=>{},99640:()=>{},94087:()=>{},53260:()=>{},74854:()=>{},66602:()=>{},72464:()=>{},66396:()=>{},85338:()=>{},40763:e=>{"use strict";e.exports={i8:"6.5.4"}},47185:e=>{"use strict";e.exports=JSON.parse('{"classId":"classID","dataType":"datatype","itemId":"itemID","strokeDashArray":"strokeDasharray","strokeDashOffset":"strokeDashoffset","strokeLineCap":"strokeLinecap","strokeLineJoin":"strokeLinejoin","strokeMiterLimit":"strokeMiterlimit","typeOf":"typeof","xLinkActuate":"xlinkActuate","xLinkArcRole":"xlinkArcrole","xLinkHref":"xlinkHref","xLinkRole":"xlinkRole","xLinkShow":"xlinkShow","xLinkTitle":"xlinkTitle","xLinkType":"xlinkType","xmlnsXLink":"xmlnsXlink"}')}},t={};function i(n){var r=t[n];if(void 0!==r)return r.exports;var o=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(o.exports,o,o.exports,i),o.loaded=!0,o.exports}i.m=e,i.amdO={},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;i.t=function(n,r){if(1&r&&(n=this(n)),8&r||"object"==typeof n&&n&&(4&r&&n.__esModule||16&r&&"function"==typeof n.then))return n;var o=Object.create(null);i.r(o);var s={};e=e||[null,t({}),t([]),t(t)];for(var a=2&r&&n;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach(e=>s[e]=()=>n[e]);return s.default=()=>n,i.d(o,s),o}})(),i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce((t,n)=>(i.f[n](e,t),t),[])),i.u=e=>""+e+".js",i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={};i.l=(t,n,r,o)=>{if(e[t]){e[t].push(n);return}if(void 0!==r)for(var s,a,l=document.getElementsByTagName("script"),u=0;u{s.onerror=s.onload=null,clearTimeout(h);var r=e[t];if(delete e[t],s.parentNode&&s.parentNode.removeChild(s),r&&r.forEach(e=>e(n)),i)return i(n)},h=setTimeout(c.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=c.bind(null,s.onerror),s.onload=c.bind(null,s.onload),a&&document.head.appendChild(s)}})(),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{i.g.importScripts&&(e=i.g.location+"");var e,t=i.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&!e;)e=n[r--].src}if(!e)throw Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=e})(),(()=>{i.b=document.baseURI||self.location.href;var e={4736:0};i.f.j=(t,n)=>{var r=i.o(e,t)?e[t]:void 0;if(0!==r){if(r)n.push(r[2]);else{var o=new Promise((i,n)=>r=e[t]=[i,n]);n.push(r[2]=o);var s=i.p+i.u(t),a=Error();i.l(s,n=>{if(i.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),s=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+s+")",a.name="ChunkLoadError",a.type=o,a.request=s,r[1](a)}},"chunk-"+t,t)}}};var t=(t,n)=>{var r,o,[s,a,l]=n,u=0;if(s.some(t=>0!==e[t])){for(r in a)i.o(a,r)&&(i.m[r]=a[r]);l&&l(i)}for(t&&t(n);u{"use strict";e.exports=i(20452)},41110:(e,t,i)=>{"use strict";e.exports=i(80402)},5803:(e,t,i)=>{e.exports=function(e,t){if(n("noDeprecation"))return e;var i=!1;return function(){if(!i){if(n("throwDeprecation"))throw Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),i=!0}return e.apply(this,arguments)}};function n(e){try{if(!i.g.localStorage)return!1}catch(e){return!1}var t=i.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}},10082:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},54895:(e,t,i)=>{"use strict";var n=i(52635),r=i(43138),o=i(32094),s=i(50198);function a(e){return e.call.bind(e)}var l="undefined"!=typeof BigInt,u="undefined"!=typeof Symbol,d=a(Object.prototype.toString),c=a(Number.prototype.valueOf),h=a(String.prototype.valueOf),f=a(Boolean.prototype.valueOf);if(l)var p=a(BigInt.prototype.valueOf);if(u)var g=a(Symbol.prototype.valueOf);function m(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function v(e){return"[object Map]"===d(e)}function b(e){return"[object Set]"===d(e)}function y(e){return"[object WeakMap]"===d(e)}function _(e){return"[object WeakSet]"===d(e)}function w(e){return"[object ArrayBuffer]"===d(e)}function C(e){return"undefined"!=typeof ArrayBuffer&&(w.working?w(e):e instanceof ArrayBuffer)}function S(e){return"[object DataView]"===d(e)}function x(e){return"undefined"!=typeof DataView&&(S.working?S(e):e instanceof DataView)}t.isArgumentsObject=n,t.isGeneratorFunction=r,t.isTypedArray=s,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):s(e)||x(e)},t.isUint8Array=function(e){return"Uint8Array"===o(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===o(e)},t.isUint16Array=function(e){return"Uint16Array"===o(e)},t.isUint32Array=function(e){return"Uint32Array"===o(e)},t.isInt8Array=function(e){return"Int8Array"===o(e)},t.isInt16Array=function(e){return"Int16Array"===o(e)},t.isInt32Array=function(e){return"Int32Array"===o(e)},t.isFloat32Array=function(e){return"Float32Array"===o(e)},t.isFloat64Array=function(e){return"Float64Array"===o(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===o(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===o(e)},v.working="undefined"!=typeof Map&&v(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(v.working?v(e):e instanceof Map)},b.working="undefined"!=typeof Set&&b(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(b.working?b(e):e instanceof Set)},y.working="undefined"!=typeof WeakMap&&y(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(y.working?y(e):e instanceof WeakMap)},_.working="undefined"!=typeof WeakSet&&_(new WeakSet),t.isWeakSet=function(e){return _(e)},w.working="undefined"!=typeof ArrayBuffer&&w(new ArrayBuffer),t.isArrayBuffer=C,S.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&S(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=x;var k="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function E(e){return"[object SharedArrayBuffer]"===d(e)}function L(e){return void 0!==k&&(void 0===E.working&&(E.working=E(new k)),E.working?E(e):e instanceof k)}function M(e){return m(e,c)}function N(e){return m(e,h)}function D(e){return m(e,f)}function A(e){return l&&m(e,p)}function T(e){return u&&m(e,g)}t.isSharedArrayBuffer=L,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===d(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===d(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===d(e)},t.isGeneratorObject=function(e){return"[object Generator]"===d(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===d(e)},t.isNumberObject=M,t.isStringObject=N,t.isBooleanObject=D,t.isBigIntObject=A,t.isSymbolObject=T,t.isBoxedPrimitive=function(e){return M(e)||N(e)||D(e)||A(e)||T(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(C(e)||L(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw Error(e+" is not supported in userland")}})})},43335:(e,t,i)=>{var n=i(34406),r=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),i={},n=0;n=r)return e;switch(e){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch(e){return"[Circular]"}default:return e}}),a=n[i];i=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),m(i)?n.showHidden=i:i&&t._extend(n,i),_(n.showHidden)&&(n.showHidden=!1),_(n.depth)&&(n.depth=2),_(n.colors)&&(n.colors=!1),_(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=d),h(n,e,n.depth)}function d(e,t){var i=u.styles[t];return i?"\x1b["+u.colors[i][0]+"m"+e+"\x1b["+u.colors[i][1]+"m":e}function c(e,t){return e}function h(e,i,n){if(e.customInspect&&i&&k(i.inspect)&&i.inspect!==t.inspect&&!(i.constructor&&i.constructor.prototype===i)){var r,o,s,a,l,u=i.inspect(n,e);return y(u)||(u=h(e,u,n)),u}var d=function(e,t){if(_(t))return e.stylize("undefined","undefined");if(y(t)){var i="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(i,"string")}return b(t)?e.stylize(""+t,"number"):m(t)?e.stylize(""+t,"boolean"):v(t)?e.stylize("null","null"):void 0}(e,i);if(d)return d;var c=Object.keys(i),C=(a={},c.forEach(function(e,t){a[e]=!0}),a);if(e.showHidden&&(c=Object.getOwnPropertyNames(i)),x(i)&&(c.indexOf("message")>=0||c.indexOf("description")>=0))return f(i);if(0===c.length){if(k(i)){var E=i.name?": "+i.name:"";return e.stylize("[Function"+E+"]","special")}if(w(i))return e.stylize(RegExp.prototype.toString.call(i),"regexp");if(S(i))return e.stylize(Date.prototype.toString.call(i),"date");if(x(i))return f(i)}var L="",M=!1,D=["{","}"];return(g(i)&&(M=!0,D=["[","]"]),k(i)&&(L=" [Function"+(i.name?": "+i.name:"")+"]"),w(i)&&(L=" "+RegExp.prototype.toString.call(i)),S(i)&&(L=" "+Date.prototype.toUTCString.call(i)),x(i)&&(L=" "+f(i)),0!==c.length||M&&0!=i.length)?n<0?w(i)?e.stylize(RegExp.prototype.toString.call(i),"regexp"):e.stylize("[Object]","special"):(e.seen.push(i),l=M?function(e,t,i,n,r){for(var o=[],s=0,a=t.length;s=0&&s++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?o[0]+(""===r?"":r+"\n ")+" "+l.join(",\n ")+" "+o[1]:o[0]+r+" "+l.join(", ")+" "+o[1]):D[0]+L+D[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,i,n,r,o){var s,a,l;if((l=Object.getOwnPropertyDescriptor(t,r)||{value:t[r]}).get?a=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(a=e.stylize("[Setter]","special")),N(n,r)||(s="["+r+"]"),!a&&(0>e.seen.indexOf(l.value)?(a=v(i)?h(e,l.value,null):h(e,l.value,i-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map(function(e){return" "+e}).join("\n").slice(2):"\n"+a.split("\n").map(function(e){return" "+e}).join("\n")):a=e.stylize("[Circular]","special")),_(s)){if(o&&r.match(/^\d+$/))return a;(s=JSON.stringify(""+r)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.slice(1,-1),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function g(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function v(e){return null===e}function b(e){return"number"==typeof e}function y(e){return"string"==typeof e}function _(e){return void 0===e}function w(e){return C(e)&&"[object RegExp]"===E(e)}function C(e){return"object"==typeof e&&null!==e}function S(e){return C(e)&&"[object Date]"===E(e)}function x(e){return C(e)&&("[object Error]"===E(e)||e instanceof Error)}function k(e){return"function"==typeof e}function E(e){return Object.prototype.toString.call(e)}function L(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(!s[e=e.toUpperCase()]){if(a.test(e)){var i=n.pid;s[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,i,n)}}else s[e]=function(){}}return s[e]},t.inspect=u,u.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]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=i(54895),t.isArray=g,t.isBoolean=m,t.isNull=v,t.isNullOrUndefined=function(e){return null==e},t.isNumber=b,t.isString=y,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=_,t.isRegExp=w,t.types.isRegExp=w,t.isObject=C,t.isDate=S,t.types.isDate=S,t.isError=x,t.types.isNativeError=x,t.isFunction=k,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=i(10082);var M=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function N(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,i;console.log("%s - %s",(i=[L((e=new Date).getHours()),L(e.getMinutes()),L(e.getSeconds())].join(":"),[e.getDate(),M[e.getMonth()],i].join(" ")),t.format.apply(t,arguments))},t.inherits=i(91285),t._extend=function(e,t){if(!t||!C(t))return e;for(var i=Object.keys(t),n=i.length;n--;)e[i[n]]=t[i[n]];return e};var D="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function A(e,t){if(!e){var i=Error("Promise was rejected with a falsy value");i.reason=e,e=i}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');if(D&&e[D]){var t=e[D];if("function"!=typeof t)throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,D,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,i,n=new Promise(function(e,n){t=e,i=n}),r=[],o=0;o{"use strict";var n=i(88062);function r(){}e.exports=s,r.prototype=Error.prototype,s.prototype=new r;var o=s.prototype;function s(e,t,i){var r,o,s,a,l;"string"==typeof t&&(i=t,t=null),l=[null,null],"string"==typeof(s=i)&&(-1===(a=s.indexOf(":"))?l[1]=s:(l[0]=s.slice(0,a),l[1]=s.slice(a+1))),r=n(t)||"1:1",o={start:{line:null,column:null},end:{line:null,column:null}},t&&t.position&&(t=t.position),t&&(t.start?(o=t,t=t.start):o.start=t),e.stack&&(this.stack=e.stack,e=e.message),this.message=e,this.name=r,this.reason=e,this.line=t?t.line:null,this.column=t?t.column:null,this.location=o,this.source=l[0],this.ruleId=l[1]}o.file="",o.name="",o.reason="",o.message="",o.stack="",o.fatal=null,o.column=null,o.line=null},21142:(e,t,i)=>{"use strict";e.exports=i(32805)},48791:(e,t,i)=>{"use strict";var n=i(16662),r=i(41345),o=i(97033);e.exports=l;var s={}.hasOwnProperty,a=["history","path","basename","stem","extname","dirname"];function l(e){var t,i;if(e){if("string"==typeof e||o(e))e={contents:e};else if("message"in e&&"messages"in e)return e}else e={};if(!(this instanceof l))return new l(e);for(this.data={},this.messages=[],this.history=[],this.cwd=r.cwd(),i=-1;++ia.indexOf(t)&&(this[t]=e[t])}function u(e,t){if(e&&e.indexOf(n.sep)>-1)throw Error("`"+t+"` cannot be a path: did not expect `"+n.sep+"`")}function d(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function c(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}l.prototype.toString=function(e){return(this.contents||"").toString(e)},Object.defineProperty(l.prototype,"path",{get:function(){return this.history[this.history.length-1]},set:function(e){d(e,"path"),this.path!==e&&this.history.push(e)}}),Object.defineProperty(l.prototype,"dirname",{get:function(){return"string"==typeof this.path?n.dirname(this.path):void 0},set:function(e){c(this.path,"dirname"),this.path=n.join(e||"",this.basename)}}),Object.defineProperty(l.prototype,"basename",{get:function(){return"string"==typeof this.path?n.basename(this.path):void 0},set:function(e){d(e,"basename"),u(e,"basename"),this.path=n.join(this.dirname||"",e)}}),Object.defineProperty(l.prototype,"extname",{get:function(){return"string"==typeof this.path?n.extname(this.path):void 0},set:function(e){if(u(e,"extname"),c(this.path,"extname"),e){if(46!==e.charCodeAt(0))throw Error("`extname` must start with `.`");if(e.indexOf(".",1)>-1)throw Error("`extname` cannot contain multiple dots")}this.path=n.join(this.dirname,this.stem+(e||""))}}),Object.defineProperty(l.prototype,"stem",{get:function(){return"string"==typeof this.path?n.basename(this.path,this.extname):void 0},set:function(e){d(e,"stem"),u(e,"stem"),this.path=n.join(this.dirname||"",e+(this.extname||""))}})},32805:(e,t,i)=>{"use strict";var n=i(90),r=i(48791);e.exports=r,r.prototype.message=function(e,t,i){var r=new n(e,t,i);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r},r.prototype.info=function(){var e=this.message.apply(this,arguments);return e.fatal=null,e},r.prototype.fail=function(){var e=this.message.apply(this,arguments);throw e.fatal=!0,e}},16662:(e,t)=>{"use strict";function i(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}t.basename=function(e,t){var n,r,o,s,a=0,l=-1;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');if(i(e),n=e.length,void 0===t||!t.length||t.length>e.length){for(;n--;)if(47===e.charCodeAt(n)){if(o){a=n+1;break}}else l<0&&(o=!0,l=n+1);return l<0?"":e.slice(a,l)}if(t===e)return"";for(r=-1,s=t.length-1;n--;)if(47===e.charCodeAt(n)){if(o){a=n+1;break}}else r<0&&(o=!0,r=n+1),s>-1&&(e.charCodeAt(n)===t.charCodeAt(s--)?s<0&&(l=n):(s=-1,l=r));return a===l?l=r:l<0&&(l=e.length),e.slice(a,l)},t.dirname=function(e){var t,n,r;if(i(e),!e.length)return".";for(t=-1,r=e.length;--r;)if(47===e.charCodeAt(r)){if(n){t=r;break}}else n||(n=!0);return t<0?47===e.charCodeAt(0)?"/":".":1===t&&47===e.charCodeAt(0)?"//":e.slice(0,t)},t.extname=function(e){var t,n,r,o=-1,s=0,a=-1,l=0;for(i(e),r=e.length;r--;){if(47===(n=e.charCodeAt(r))){if(t){s=r+1;break}continue}a<0&&(t=!0,a=r+1),46===n?o<0?o=r:1!==l&&(l=1):o>-1&&(l=-1)}return o<0||a<0||0===l||1===l&&o===a-1&&o===s+1?"":e.slice(o,a)},t.join=function(){for(var e,t,n,r,o=-1;++o2){if((n=r.lastIndexOf("/"))!==r.length-1){n<0?(r="",o=0):o=(r=r.slice(0,n)).length-1-r.lastIndexOf("/"),s=l,a=0;continue}}else if(r.length){r="",o=0,s=l,a=0;continue}}t&&(r=r.length?r+"/..":"..",o=2)}else r.length?r+="/"+e.slice(s+1,l):r=e.slice(s+1,l),o=l-s-1;s=l,a=0}else 46===i&&a>-1?a++:a=-1}return r}(e,!t)).length||t||(n="."),n.length&&47===e.charCodeAt(e.length-1)&&(n+="/"),t?"/"+n:n)},t.sep="/"},41345:(e,t)=>{"use strict";t.cwd=function(){return"/"}},97033:e=>{e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},32094:(e,t,i)=>{"use strict";var n=i(83243),r=i(10711),o=i(62680),s=i(50326),a=o("Object.prototype.toString"),l=i(67226)(),u="undefined"==typeof globalThis?i.g:globalThis,d=r(),c=o("String.prototype.slice"),h={},f=Object.getPrototypeOf;l&&s&&f&&n(d,function(e){if("function"==typeof u[e]){var t=new u[e];if(Symbol.toStringTag in t){var i=f(t),n=s(i,Symbol.toStringTag);n||(n=s(f(i),Symbol.toStringTag)),h[e]=n.get}}});var p=function(e){var t=!1;return n(h,function(i,n){if(!t)try{var r=i.call(e);r===n&&(t=r)}catch(e){}}),t},g=i(50198);e.exports=function(e){return!!g(e)&&(l&&Symbol.toStringTag in e?p(e):c(a(e),8,-1))}},51960:e=>{e.exports=function(){for(var e={},i=0;i{"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},8006:(e,t,i)=>{"use strict";function n(e){var t=this;if(t instanceof n||(t=new n),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach(function(e){t.push(e)});else if(arguments.length>0)for(var i=0,r=arguments.length;i1)i=t;else if(this.head)n=this.head.next,i=this.head.value;else throw TypeError("Reduce of empty list with no initial value");for(var r=0;null!==n;r++)i=e(i,n.value,r),n=n.next;return i},n.prototype.reduceReverse=function(e,t){var i,n=this.tail;if(arguments.length>1)i=t;else if(this.tail)n=this.tail.prev,i=this.tail.value;else throw TypeError("Reduce of empty list with no initial value");for(var r=this.length-1;null!==n;r--)i=e(i,n.value,r),n=n.prev;return i},n.prototype.toArray=function(){for(var e=Array(this.length),t=0,i=this.head;null!==i;t++)e[t]=i.value,i=i.next;return e},n.prototype.toArrayReverse=function(){for(var e=Array(this.length),t=0,i=this.tail;null!==i;t++)e[t]=i.value,i=i.prev;return e},n.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var i=new n;if(tthis.length&&(t=this.length);for(var r=0,o=this.head;null!==o&&rthis.length&&(t=this.length);for(var r=this.length,o=this.tail;null!==o&&r>t;r--)o=o.prev;for(;null!==o&&r>e;r--,o=o.prev)i.push(o.value);return i},n.prototype.splice=function(e,t,...i){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,o=this.head;null!==o&&n{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII="},6161:e=>{"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCA1MyAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNDguMDM2NCA0LjAxMDQySDQuMDA3NzlMNC4wMDc3OSAzMi4wMjg2SDQ4LjAzNjRWNC4wMTA0MlpNNC4wMDc3OSAwLjAwNzgxMjVDMS43OTcyMSAwLjAwNzgxMjUgMC4wMDUxODc5OSAxLjc5OTg0IDAuMDA1MTg3OTkgNC4wMTA0MlYzMi4wMjg2QzAuMDA1MTg3OTkgMzQuMjM5MiAxLjc5NzIxIDM2LjAzMTIgNC4wMDc3OSAzNi4wMzEySDQ4LjAzNjRDNTAuMjQ3IDM2LjAzMTIgNTIuMDM5IDM0LjIzOTIgNTIuMDM5IDMyLjAyODZWNC4wMTA0MkM1Mi4wMzkgMS43OTk4NCA1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gyIDE2LjAxODJIMjQuMDIwOFYyMC4wMjA4SDIwLjAxODJWMTYuMDE4MlpNMzIuMDI2IDE2LjAxODJIMjguMDIzNFYyMC4wMjA4SDMyLjAyNlYxNi4wMTgyWk00NC4wMzM5IDE2LjAxODJWMjAuMDIwOEgzNi4wMjg2VjE2LjAxODJINDQuMDMzOVpNMTIuMDEzIDI0LjAyMzRIOC4wMTA0MlYyOC4wMjZIMTIuMDEzVjI0LjAyMzRaTTE2LjAxNTYgMjQuMDIzNEgzNi4wMjg2VjI4LjAyNkgxNi4wMTU2VjI0LjAyMzRaTTQ0LjAzMzkgMjQuMDIzNEg0MC4wMzEyVjI4LjAyNkg0NC4wMzM5VjI0LjAyMzRaIiBmaWxsPSIjQzVDNUM1Ii8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDAiPgo8cmVjdCB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg=="},26602:(e,t,i)=>{"use strict";e.exports=i.p+"fa2cc0ab9f0bec2b3365.ttf"},83642:(e,t,i)=>{e.exports=i},29005:()=>{},77378:()=>{},69314:()=>{},33196:()=>{},38087:()=>{},44943:()=>{},732:()=>{},99640:()=>{},94087:()=>{},53260:()=>{},74854:()=>{},66602:()=>{},72464:()=>{},66396:()=>{},85338:()=>{},40763:e=>{"use strict";e.exports={i8:"6.5.4"}},47185:e=>{"use strict";e.exports=JSON.parse('{"classId":"classID","dataType":"datatype","itemId":"itemID","strokeDashArray":"strokeDasharray","strokeDashOffset":"strokeDashoffset","strokeLineCap":"strokeLinecap","strokeLineJoin":"strokeLinejoin","strokeMiterLimit":"strokeMiterlimit","typeOf":"typeof","xLinkActuate":"xlinkActuate","xLinkArcRole":"xlinkArcrole","xLinkHref":"xlinkHref","xLinkRole":"xlinkRole","xLinkShow":"xlinkShow","xLinkTitle":"xlinkTitle","xLinkType":"xlinkType","xmlnsXLink":"xmlnsXlink"}')}},t={};function i(n){var r=t[n];if(void 0!==r)return r.exports;var o=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(o.exports,o,o.exports,i),o.loaded=!0,o.exports}i.m=e,i.amdO={},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;i.t=function(n,r){if(1&r&&(n=this(n)),8&r||"object"==typeof n&&n&&(4&r&&n.__esModule||16&r&&"function"==typeof n.then))return n;var o=Object.create(null);i.r(o);var s={};e=e||[null,t({}),t([]),t(t)];for(var a=2&r&&n;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach(e=>s[e]=()=>n[e]);return s.default=()=>n,i.d(o,s),o}})(),i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce((t,n)=>(i.f[n](e,t),t),[])),i.u=e=>""+e+".js",i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={};i.l=(t,n,r,o)=>{if(e[t]){e[t].push(n);return}if(void 0!==r)for(var s,a,l=document.getElementsByTagName("script"),u=0;u{s.onerror=s.onload=null,clearTimeout(h);var r=e[t];if(delete e[t],s.parentNode&&s.parentNode.removeChild(s),r&&r.forEach(e=>e(n)),i)return i(n)},h=setTimeout(c.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=c.bind(null,s.onerror),s.onload=c.bind(null,s.onload),a&&document.head.appendChild(s)}})(),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{i.g.importScripts&&(e=i.g.location+"");var e,t=i.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&!e;)e=n[r--].src}if(!e)throw Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=e})(),(()=>{i.b=document.baseURI||self.location.href;var e={4736:0};i.f.j=(t,n)=>{var r=i.o(e,t)?e[t]:void 0;if(0!==r){if(r)n.push(r[2]);else{var o=new Promise((i,n)=>r=e[t]=[i,n]);n.push(r[2]=o);var s=i.p+i.u(t),a=Error();i.l(s,n=>{if(i.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),s=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+s+")",a.name="ChunkLoadError",a.type=o,a.request=s,r[1](a)}},"chunk-"+t,t)}}};var t=(t,n)=>{var r,o,[s,a,l]=n,u=0;if(s.some(t=>0!==e[t])){for(r in a)i.o(a,r)&&(i.m[r]=a[r]);l&&l(i)}for(t&&t(n);u