PageSourceSearch

https://auth.xtoscorm.com/static/js/3930.c7015731.chunk.js

js xtoscorm.com collected 2026-09-24 10:19:01 UTC 1,390,723 bytes, 2 lines download raw bytes

1/*! For license information please see 3930.c7015731.chunk.js.LICENSE.txt */
2(self.webpackChunkweb=self.webpackChunkweb||[]).push([[3930],{77638:function(t,e){"use strict";function r(t){if(Array.isArray(t)){for(var e=[],n=0,i=0;i<t.length;i++){var a=r(t[i]);e.push(a),n+=a.length}return h.apply(void 0,[o(n,192)].concat(e))}var s=m(t);return 1===s.length&&s[0]<128?s:h(o(s.length,128),s)}function n(t,e,r){if(r>t.length)throw new Error("invalid RLP (safeSlice): end slice of Uint8Array out-of-bounds");return t.slice(e,r)}function i(t){if(0===t[0])throw new Error("invalid RLP: extra zeros");return l(c(t))}function o(t,e){if(t<56)return Uint8Array.from([t+e]);var r=p(t),n=p(e+55+r.length/2);return Uint8Array.from(f(n+r))}function a(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("undefined"===typeof t||null===t||0===t.length)return Uint8Array.from([]);var r=s(m(t));if(e)return r;if(0!==r.remainder.length)throw new Error("invalid RLP: remainder must be zero");return r.data}function s(t){var e,r,o,a,u,c=[],l=t[0];if(l<=127)return{data:t.slice(0,1),remainder:t.slice(1)};if(l<=183){if(e=l-127,o=128===l?Uint8Array.from([]):n(t,1,e),2===e&&o[0]<128)throw new Error("invalid RLP encoding: invalid prefix, single byte < 0x80 are not prefixed");return{data:o,remainder:t.slice(e)}}if(l<=191){if(r=l-182,t.length-1<r)throw new Error("invalid RLP: not enough bytes for string length");if((e=i(n(t,1,r)))<=55)throw new Error("invalid RLP: expected string length to be greater than 55");return{data:o=n(t,r,e+r),remainder:t.slice(e+r)}}if(l<=247){for(a=n(t,1,e=l-191);a.length;)u=s(a),c.push(u.data),a=u.remainder;return{data:c,remainder:t.slice(e)}}if((e=i(n(t,1,r=l-246)))<56)throw new Error("invalid RLP: encoded list too short");var f=r+e;if(f>t.length)throw new Error("invalid RLP: total length is larger than the data");for(a=n(t,r,f);a.length;)u=s(a),c.push(u.data),a=u.remainder;return{data:c,remainder:t.slice(f)}}Object.defineProperty(e,"__esModule",{value:!0}),e.RLP=e.utils=e.decode=e.encode=void 0,e.encode=r,e.decode=a;var u=Array.from({length:256},(function(t,e){return e.toString(16).padStart(2,"0")}));function c(t){for(var e="",r=0;r<t.length;r++)e+=u[t[r]];return e}function l(t){var e=Number.parseInt(t,16);if(Number.isNaN(e))throw new Error("Invalid byte sequence");return e}function f(t){if("string"!==typeof t)throw new TypeError("hexToBytes: expected string, got "+typeof t);if(t.length%2)throw new Error("hexToBytes: received invalid unpadded hex");for(var e=new Uint8Array(t.length/2),r=0;r<e.length;r++){var n=2*r;e[r]=l(t.slice(n,n+2))}return e}function h(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];if(1===e.length)return e[0];for(var n=e.reduce((function(t,e){return t+e.length}),0),i=new Uint8Array(n),o=0,a=0;o<e.length;o++){var s=e[o];i.set(s,a),a+=s.length}return i}function d(t){return(new TextEncoder).encode(t)}function p(t){if(t<0)throw new Error("Invalid integer as argument, must be unsigned!");var e=t.toString(16);return e.length%2?"0".concat(e):e}function v(t){return t.length>=2&&"0"===t[0]&&"x"===t[1]}function m(t){if(t instanceof Uint8Array)return t;if("string"===typeof t)return v(t)?f((e="string"!==typeof(r=t)?r:v(r)?r.slice(2):r).length%2?"0".concat(e):e):d(t);var e,r;if("number"===typeof t||"bigint"===typeof t)return t?f(p(t)):Uint8Array.from([]);if(null===t||void 0===t)return Uint8Array.from([]);throw new Error("toBytes: received unsupported type "+typeof t)}e.utils={bytesToHex:c,concatBytes:h,hexToBytes:f,utf8ToBytes:d},e.RLP={encode:r,decode:a}},22168:function(t,e,r){"use strict";var n=r(27424).default,i=r(56690).default,o=r(89728).default;Object.defineProperty(e,"__esModule",{value:!0}),e.accountBodyToRLP=e.accountBodyToSlim=e.accountBodyFromSlim=e.isZeroAddress=e.zeroAddress=e.importPublic=e.privateToAddress=e.privateToPublic=e.publicToAddress=e.pubToAddress=e.isValidPublic=e.isValidPrivate=e.generateAddress2=e.generateAddress=e.isValidChecksumAddress=e.toChecksumAddress=e.isValidAddress=e.Account=void 0;var a=r(77638),s=r(54496),u=r(63564),c=r(13078),l=r(60454),f=r(86210),h=r(65902),d=r(55864),p=BigInt(0),v=function(){function t(){var e=arguments.length>
20&&void 0!==arguments[0]?arguments[0]:p,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f.KECCAK256_RLP,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:f.KECCAK256_NULL;i(this,t),this.nonce=e,this.balance=r,this.storageRoot=n,this.codeHash=o,this._validate()}return o(t,[{key:"_validate",value:function(){if(this.nonce<p)throw new Error("nonce must be greater than zero");if(this.balance<p)throw new Error("balance must be greater than zero");if(32!==this.storageRoot.length)throw new Error("storageRoot must have a length of 32");if(32!==this.codeHash.length)throw new Error("codeHash must have a length of 32")}},{key:"raw",value:function(){return[(0,l.bigIntToUnpaddedBuffer)(this.nonce),(0,l.bigIntToUnpaddedBuffer)(this.balance),this.storageRoot,this.codeHash]}},{key:"serialize",value:function(){return Buffer.from(a.RLP.encode((0,l.bufArrToArr)(this.raw())))}},{key:"isContract",value:function(){return!this.codeHash.equals(f.KECCAK256_NULL)}},{key:"isEmpty",value:function(){return this.balance===p&&this.nonce===p&&this.codeHash.equals(f.KECCAK256_NULL)}}],[{key:"fromAccountData",value:function(e){var r=e.nonce,n=e.balance,i=e.storageRoot,o=e.codeHash;return new t(void 0!==r?(0,l.bufferToBigInt)((0,l.toBuffer)(r)):void 0,void 0!==n?(0,l.bufferToBigInt)((0,l.toBuffer)(n)):void 0,void 0!==i?(0,l.toBuffer)(i):void 0,void 0!==o?(0,l.toBuffer)(o):void 0)}},{key:"fromRlpSerializedAccount",value:function(t){var e=(0,l.arrToBufArr)(a.RLP.decode(Uint8Array.from(t)));if(!Array.isArray(e))throw new Error("Invalid serialized account input. Must be array");return this.fromValuesArray(e)}},{key:"fromValuesArray",value:function(e){var r=n(e,4),i=r[0],o=r[1],a=r[2],s=r[3];return new t((0,l.bufferToBigInt)(i),(0,l.bufferToBigInt)(o),a,s)}}]),t}();e.Account=v;e.isValidAddress=function(t){try{(0,h.assertIsString)(t)}catch(e){return!1}return/^0x[0-9a-fA-F]{40}$/.test(t)};e.toChecksumAddress=function(t,e){(0,h.assertIsHexString)(t);var r=(0,d.stripHexPrefix)(t).toLowerCase(),n="";void 0!==e&&(n=(0,l.bufferToBigInt)((0,l.toBuffer)(e)).toString()+"0x");for(var i=Buffer.from(n+r,"utf8"),o=(0,c.bytesToHex)((0,s.keccak256)(i)),a="0x",u=0;u<r.length;u++)parseInt(o[u],16)>=8?a+=r[u].toUpperCase():a+=r[u];return a};e.isValidChecksumAddress=function(t,r){return(0,e.isValidAddress)(t)&&(0,e.toChecksumAddress)(t,r)===t};e.generateAddress=function(t,e){return(0,h.assertIsBuffer)(t),(0,h.assertIsBuffer)(e),(0,l.bufferToBigInt)(e)===BigInt(0)?Buffer.from((0,s.keccak256)(a.RLP.encode((0,l.bufArrToArr)([t,null])))).slice(-20):Buffer.from((0,s.keccak256)(a.RLP.encode((0,l.bufArrToArr)([t,e])))).slice(-20)};e.generateAddress2=function(t,e,r){if((0,h.assertIsBuffer)(t),(0,h.assertIsBuffer)(e),(0,h.assertIsBuffer)(r),20!==t.length)throw new Error("Expected from to be of length 20");if(32!==e.length)throw new Error("Expected salt to be of length 32");var n=(0,s.keccak256)(Buffer.concat([Buffer.from("ff","hex"),t,e,(0,s.keccak256)(r)]));return(0,l.toBuffer)(n).slice(-20)};e.isValidPrivate=function(t){return u.secp256k1.utils.isValidPrivateKey(t)};e.isValidPublic=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((0,h.assertIsBuffer)(t),64===t.length)try{return u.secp256k1.ProjectivePoint.fromHex(Buffer.concat([Buffer.from([4]),t])),!0}catch(r){return!1}if(!e)return!1;try{return u.secp256k1.ProjectivePoint.fromHex(t),!0}catch(r){return!1}};e.pubToAddress=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((0,h.assertIsBuffer)(t),e&&64!==t.length&&(t=Buffer.from(u.secp256k1.ProjectivePoint.fromHex(t).toRawBytes(!1).slice(1))),64!==t.length)throw new Error("Expected pubKey to be of length 64");return Buffer.from((0,s.keccak256)(t)).slice(-20)},e.publicToAddress=e.pubToAddress;e.privateToPublic=function(t){return(0,h.assertIsBuffer)(t),Buffer.from(u.secp256k1.ProjectivePoint.fromPrivateKey(t).toRawBytes(!1).slice(1))};e.privateToAddress=function(t){return(0,e.publicToAddress)((0,e.privateToPublic)(t))};e.importPublic=function(t){return(0,h.assertIsBuffer)(t),64!==t.length&&(t=Buffer.from(u.secp256k1.ProjectivePoint.fromHex(t).toRawBytes(!1).slice(1))),t};e.zeroAddress=function(){var t=(0,l.zeros)(20);return(0,l.bufferToHex)(t)};function m(t){var e=n(t,4),r=e[0],i=e[1],o=e[2],a=e[3];return[r,i,0===(0,l.arrToBufArr)(o).length?f.KECCAK256_RLP:o,0===(0,l.arrToBufArr)(a).length?f.KECCAK256_NULL:a]}e.isZeroAddress=function(t){try{(0,h.assertIsString)(t)}catch(r){return!1}return(0,e.zeroAddress)()===t},e.accountBodyFromSlim=m;var g=new Uint8Array(0);e.accountBodyToSlim=function(t){var e=n(t,4),r=e[0],i=e[1],o=e[2],a=e[3];return[r,i,(0,l.arrToBufArr)(o).equals(f.KECCAK256_RLP)?g:o,(0,l.arrToBufArr)(a).equals(f.KECCAK256_NULL)?g:a]},e.accountBodyToRLP=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?m(t):t;return(0,l.arrToBufArr)(a.RLP.encode(e))}},30286:function(t,e,r){"use strict";var n=r(56690).default,i=r(89728).default;
2Object.defineProperty(e,"__esModule",{value:!0}),e.Address=void 0;var o=r(22168),a=r(60454),s=function(){function t(e){if(n(this,t),20!==e.length)throw new Error("Invalid address length");this.buf=e}return i(t,[{key:"equals",value:function(t){return this.buf.equals(t.buf)}},{key:"isZero",value:function(){return this.equals(t.zero())}},{key:"isPrecompileOrSystemAddress",value:function(){var t=(0,a.bufferToBigInt)(this.buf),e=BigInt(0),r=BigInt("0xffff");return t>=e&&t<=r}},{key:"toString",value:function(){return"0x"+this.buf.toString("hex")}},{key:"toBuffer",value:function(){return Buffer.from(this.buf)}}],[{key:"zero",value:function(){return new t((0,a.zeros)(20))}},{key:"fromString",value:function(e){if(!(0,o.isValidAddress)(e))throw new Error("Invalid address");return new t((0,a.toBuffer)(e))}},{key:"fromPublicKey",value:function(e){if(!Buffer.isBuffer(e))throw new Error("Public key should be Buffer");return new t((0,o.pubToAddress)(e))}},{key:"fromPrivateKey",value:function(e){if(!Buffer.isBuffer(e))throw new Error("Private key should be Buffer");return new t((0,o.privateToAddress)(e))}},{key:"generate",value:function(e,r){if("bigint"!==typeof r)throw new Error("Expected nonce to be a bigint");return new t((0,o.generateAddress)(e.buf,(0,a.bigIntToBuffer)(r)))}},{key:"generate2",value:function(e,r,n){if(!Buffer.isBuffer(r))throw new Error("Expected salt to be a Buffer");if(!Buffer.isBuffer(n))throw new Error("Expected initCode to be a Buffer");return new t((0,o.generateAddress2)(e.buf,r,n))}}]),t}();e.Address=s},96552:function(t,e,r){"use strict";var n=r(17061).default,i=r(56690).default,o=r(89728).default,a=r(41588).default,s=r(73808).default,u=r(61655).default,c=r(26389).default,l=r(17156).default,f=r(18237).default;function h(){return(h=l(n().mark((function t(e,r,i){var o,a,s,u,c,l,h;return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:a=!1,s=!1,t.prev=2,c=n().mark((function t(){var r;return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=h.value,t.prev=1,!(r.length<2)){t.next=6;break}r.call(e,i),t.next=8;break;case 6:return t.next=8,new Promise((function(t,n){r.call(e,i,(function(e){e?n(e):t()}))}));case 8:t.next=13;break;case 10:t.prev=10,t.t0=t.catch(1),o=t.t0;case 13:case"end":return t.stop()}}),t,null,[[1,10]])})),l=f(r);case 5:return t.next=7,l.next();case 7:if(!(a=!(h=t.sent).done)){t.next=12;break}return t.delegateYield(c(),"t0",9);case 9:a=!1,t.next=5;break;case 12:t.next=18;break;case 14:t.prev=14,t.t1=t.catch(2),s=!0,u=t.t1;case 18:if(t.prev=18,t.prev=19,!a||null==l.return){t.next=23;break}return t.next=23,l.return();case 23:if(t.prev=23,!s){t.next=26;break}throw u;case 26:return t.finish(23);case 27:return t.finish(18);case 28:if(!o){t.next=30;break}throw o;case 30:case"end":return t.stop()}}),t,null,[[2,14,18,28],[19,,23,27]])})))).apply(this,arguments)}Object.defineProperty(e,"__esModule",{value:!0}),e.AsyncEventEmitter=void 0;var d=function(t){u(r,t);var e=c(r);function r(){return i(this,r),e.apply(this,arguments)}return o(r,[{key:"emit",value:function(t){for(var e,r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];var o=n[0],a=n[1],s=this,u=null!==(e=s._events[t])&&void 0!==e?e:[];return void 0===a&&"function"===typeof o&&(a=o,o=void 0),"newListener"!==t&&"removeListener"!==t||(o={event:o,fn:a},a=void 0),function(t,e,r){return h.apply(this,arguments)}(s,(u=Array.isArray(u)?u:[u]).slice(),o).then(a).catch(a),s.listenerCount(t)>0}},{key:"once",value:function(t,e){var r,n=this;if("function"!==typeof e)throw new TypeError("listener must be a function");return r=e.length>=2?function(i,o){n.removeListener(t,r),e(i,o)}:function(i){n.removeListener(t,r),e(i,r)},n.on(t,r),n}},{key:"first",value:function(t,e){var r,n=null!==(r=this._events[t])&&void 0!==r?r:[];if("function"!==typeof e)throw new TypeError("listener must be a function");return Array.isArray(n)||(this._events[t]=n=[n]),n.unshift(e),this}},{key:"before",value:function(t,e,r){return this.beforeOrAfter(t,e,r)}},{key:"after",value:function(t,e,r){return this.beforeOrAfter(t,e,r,"after")}},{key:"beforeOrAfter",value:function(t,e,r,n){var i,o,a,s=null!==(i=this._events[t])&&void 0!==i?i:[],u="after"===n?1:0;if("function"!==typeof r)throw new TypeError("listener must be a function");if("function"!==typeof e)throw new TypeError("target must be a function");for(Array.isArray(s)||(this._events[t]=s=[s]),a=s.length,o=s.length;o--;)if(s[o]===e){a=o+u;break}return s.splice(a,0,r),this}},{key:"on",value:function(t,e){return a(s(r.prototype),"on",this).call(this,t,e)}},{key:"addListener",value:function(t,e){return a(s(r.prototype),"addListener",this).call(this,t,e)}},{key:"prependListener",value:function(t,e){return a(s(r.prototype),"prependListener",this).call(this,t,e)}},{key:"prependOnceListener",value:function(t,e){return a(s(r.prototype),"prependOnceListener",this).call(this,t,e)}},{key:"removeAllListeners",value:function(t){return a(s(r.prototype),"removeAllListeners",this).call(this,t)}},{key:"removeListener",value:function(t,e){return a(s(r.prototype),"removeListener",this).call(this,t,e)}},{key:"eventNames",value:function(){return a(s(r.prototype),"eventNames",this).call(this)}},{key:"listeners",value:function(t){return a(s(r.prototype),"listeners",this).call(this,t)}},{key:"listenerCount",value:function(t){return a(s(r.prototype),"listenerCount",this).call(this,t)}},{key:"getMaxListeners",value:function(){return a(s(r.prototype),"getMaxListeners",this).call(this)}},{key:"setMaxListeners",value:function(t){return a(s(r.prototype),"setMaxListeners",this).call(this,t)}}]),r}(r(68041).EventEmitter);e.AsyncEventEmitter=d},60454:function(t,e,r){"use strict";var n=r(27424).default;
2Object.defineProperty(e,"__esModule",{value:!0}),e.intToUnpaddedBuffer=e.bigIntToUnpaddedBuffer=e.bigIntToHex=e.bufArrToArr=e.arrToBufArr=e.validateNoLeadingZeroes=e.baToJSON=e.toUtf8=e.short=e.addHexPrefix=e.toUnsigned=e.fromSigned=e.bufferToInt=e.bigIntToBuffer=e.bufferToBigInt=e.bufferToHex=e.toBuffer=e.unpadHexString=e.unpadArray=e.unpadBuffer=e.setLengthRight=e.setLengthLeft=e.zeros=e.intToBuffer=e.intToHex=void 0;var i=r(65902),o=r(55864);e.intToHex=function(t){if(!Number.isSafeInteger(t)||t<0)throw new Error("Received an invalid integer type: ".concat(t));return"0x".concat(t.toString(16))};e.intToBuffer=function(t){var r=(0,e.intToHex)(t);return Buffer.from((0,o.padToEven)(r.slice(2)),"hex")};e.zeros=function(t){return Buffer.allocUnsafe(t).fill(0)};var a=function(t,r,n){var i=(0,e.zeros)(r);return n?t.length<r?(t.copy(i),i):t.slice(0,r):t.length<r?(t.copy(i,r-t.length),i):t.slice(-r)};e.setLengthLeft=function(t,e){return(0,i.assertIsBuffer)(t),a(t,e,!1)};e.setLengthRight=function(t,e){return(0,i.assertIsBuffer)(t),a(t,e,!0)};var s=function(t){for(var e=t[0];t.length>0&&"0"===e.toString();)e=(t=t.slice(1))[0];return t};e.unpadBuffer=function(t){return(0,i.assertIsBuffer)(t),s(t)};e.unpadArray=function(t){return(0,i.assertIsArray)(t),s(t)};e.unpadHexString=function(t){return(0,i.assertIsHexString)(t),t=(0,o.stripHexPrefix)(t),"0x"+s(t)};e.toBuffer=function(t){if(null===t||void 0===t)return Buffer.allocUnsafe(0);if(Buffer.isBuffer(t))return Buffer.from(t);if(Array.isArray(t)||t instanceof Uint8Array)return Buffer.from(t);if("string"===typeof t){if(!(0,o.isHexString)(t))throw new Error("Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: ".concat(t));return Buffer.from((0,o.padToEven)((0,o.stripHexPrefix)(t)),"hex")}if("number"===typeof t)return(0,e.intToBuffer)(t);if("bigint"===typeof t){if(t<BigInt(0))throw new Error("Cannot convert negative bigint to buffer. Given: ".concat(t));var r=t.toString(16);return r.length%2&&(r="0"+r),Buffer.from(r,"hex")}if(t.toArray)return Buffer.from(t.toArray());if(t.toBuffer)return Buffer.from(t.toBuffer());throw new Error("invalid type")};function u(t){var r=(0,e.bufferToHex)(t);return"0x"===r?BigInt(0):BigInt(r)}function c(t){return(0,e.toBuffer)("0x"+t.toString(16))}e.bufferToHex=function(t){return"0x"+(t=(0,e.toBuffer)(t)).toString("hex")},e.bufferToBigInt=u,e.bigIntToBuffer=c;e.bufferToInt=function(t){var e=Number(u(t));if(!Number.isSafeInteger(e))throw new Error("Number exceeds 53 bits");return e};e.fromSigned=function(t){return BigInt.asIntN(256,u(t))};e.toUnsigned=function(t){return c(BigInt.asUintN(256,t))};e.addHexPrefix=function(t){return"string"!==typeof t||(0,o.isHexPrefixed)(t)?t:"0x"+t},e.short=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,r=Buffer.isBuffer(t)?t.toString("hex"):t;return r.length<=e?r:r.slice(0,e)+"\u2026"};e.toUtf8=function(t){if((t=(0,o.stripHexPrefix)(t)).length%2!==0)throw new Error("Invalid non-even hex string input for toUtf8() provided");return Buffer.from(t.replace(/^(00)+|(00)+$/g,""),"hex").toString("utf8")};e.baToJSON=function(t){if(Buffer.isBuffer(t))return"0x".concat(t.toString("hex"));if(t instanceof Array){for(var r=[],n=0;n<t.length;n++)r.push((0,e.baToJSON)(t[n]));return r}};e.validateNoLeadingZeroes=function(t){for(var e=0,r=Object.entries(t);e<r.length;e++){var i=n(r[e],2),o=i[0],a=i[1];if(void 0!==a&&a.length>0&&0===a[0])throw new Error("".concat(o," cannot have leading zeroes, received: ").concat(a.toString("hex")))}},e.arrToBufArr=function t(e){return Array.isArray(e)?e.map((function(e){return t(e)})):Buffer.from(e)},e.bufArrToArr=function t(e){return Array.isArray(e)?e.map((function(e){return t(e)})):Uint8Array.from(null!==e&&void 0!==e?e:[])};e.bigIntToHex=function(t){return"0x"+t.toString(16)},e.bigIntToUnpaddedBuffer=function(t){return(0,e.unpadBuffer)(c(t))},e.intToUnpaddedBuffer=function(t){return(0,e.unpadBuffer)((0,e.intToBuffer)(t))}},86210:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}
2),e.MAX_WITHDRAWALS_PER_PAYLOAD=e.RLP_EMPTY_STRING=e.KECCAK256_RLP=e.KECCAK256_RLP_S=e.KECCAK256_RLP_ARRAY=e.KECCAK256_RLP_ARRAY_S=e.KECCAK256_NULL=e.KECCAK256_NULL_S=e.TWO_POW256=e.SECP256K1_ORDER_DIV_2=e.SECP256K1_ORDER=e.MAX_INTEGER_BIGINT=e.MAX_INTEGER=e.MAX_UINT64=void 0;var n=r(40918),i=r(63564);e.MAX_UINT64=BigInt("0xffffffffffffffff"),e.MAX_INTEGER=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),e.MAX_INTEGER_BIGINT=BigInt("115792089237316195423570985008687907853269984665640564039457584007913129639935"),e.SECP256K1_ORDER=i.secp256k1.CURVE.n,e.SECP256K1_ORDER_DIV_2=i.secp256k1.CURVE.n/BigInt(2),e.TWO_POW256=BigInt("0x10000000000000000000000000000000000000000000000000000000000000000"),e.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",e.KECCAK256_NULL=n.Buffer.from(e.KECCAK256_NULL_S,"hex"),e.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",e.KECCAK256_RLP_ARRAY=n.Buffer.from(e.KECCAK256_RLP_ARRAY_S,"hex"),e.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",e.KECCAK256_RLP=n.Buffer.from(e.KECCAK256_RLP_S,"hex"),e.RLP_EMPTY_STRING=n.Buffer.from([128]),e.MAX_WITHDRAWALS_PER_PAYLOAD=16},66362:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.compactBytesToNibbles=e.bytesToNibbles=e.nibblesToCompactBytes=e.nibblesToBytes=e.hasTerminator=void 0;e.hasTerminator=function(t){return t.length>0&&16===t[t.length-1]};e.nibblesToBytes=function(t,e){for(var r=0,n=0;n<t.length;r+=1,n+=2)e[r]=t[n]<<4|t[n+1]};e.nibblesToCompactBytes=function(t){var r=0;(0,e.hasTerminator)(t)&&(r=1,t=t.subarray(0,t.length-1));var n=new Uint8Array(t.length/2+1);return n[0]=r<<5,1===(1&t.length)&&(n[0]|=16,n[0]|=t[0],t=t.subarray(1)),(0,e.nibblesToBytes)(t,n.subarray(1)),n};e.bytesToNibbles=function(t){for(var e=2*t.length+1,r=new Uint8Array(e),n=0;n<t.length;n++){var i=t[n];r[2*n]=i/16,r[2*n+1]=i%16}return r[e-1]=16,r};e.compactBytesToNibbles=function(t){if(0===t.length)return t;var r=(0,e.bytesToNibbles)(t);r[0]<2&&(r=r.subarray(0,r.length-1));var n=2-(1&r[0]);return r.subarray(n)}},65902:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.assertIsString=e.assertIsArray=e.assertIsBuffer=e.assertIsHexString=void 0;var n=r(55864);e.assertIsHexString=function(t){if(!(0,n.isHexString)(t)){var e="This method only supports 0x-prefixed hex strings but input was: ".concat(t);throw new Error(e)}};e.assertIsBuffer=function(t){if(!Buffer.isBuffer(t)){var e="This method only supports Buffer but input was: ".concat(t);throw new Error(e)}};e.assertIsArray=function(t){if(!Array.isArray(t)){var e="This method only supports number arrays but input was: ".concat(t);throw new Error(e)}};e.assertIsString=function(t){if("string"!==typeof t){var e="This method only supports strings but input was: ".concat(t);throw new Error(e)}}},19901:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.toAscii=e.stripHexPrefix=e.padToEven=e.isHexString=e.isHexPrefixed=e.getKeys=e.getBinarySize=e.fromUtf8=e.fromAscii=e.arrayContainsArray=void 0,i(r(86210),e),i(r(70134),e),i(r(22168),e),i(r(30286),e),i(r(43951),e),i(r(43858),e),i(r(60454),e),i(r(8773),e),i(r(66362),e),i(r(96552),e);var o=r(55864);Object.defineProperty(e,"arrayContainsArray",{enumerable:!0,get:function(){return o.arrayContainsArray}}),Object.defineProperty(e,"fromAscii",{enumerable:!0,get:function(){return o.fromAscii}}),Object.defineProperty(e,"fromUtf8",{enumerable:!0,get:function(){return o.fromUtf8}}),Object.defineProperty(e,"getBinarySize",{enumerable:!0,get:function(){return o.getBinarySize}}),Object.defineProperty(e,"getKeys",{enumerable:!0,get:function(){return o.getKeys}}),Object.defineProperty(e,"isHexPrefixed",{enumerable:!0,get:function(){return o.isHexPrefixed}}),Object.defineProperty(e,"isHexString",{enumerable:!0,get:function(){return o.isHexString}}),Object.defineProperty(e,"padToEven",{enumerable:!0,get:function(){return o.padToEven}}),Object.defineProperty(e,"stripHexPrefix",{enumerable:!0,get:function(){return o.stripHexPrefix}}),Object.defineProperty(e,"toAscii",{enumerable:!0,get:function(){return o.toAscii}}),i(r(30706),e),i(r(77012),e)},55864:function(t,e){"use strict";function r(t){if("string"!==typeof t)throw new Error("[isHexPrefixed] input must be type 'string', received type ".concat(typeof t));return"0"===t[0]&&"x"===t[1]}
2Object.defineProperty(e,"__esModule",{value:!0}),e.isHexString=e.getKeys=e.fromAscii=e.fromUtf8=e.toAscii=e.arrayContainsArray=e.getBinarySize=e.padToEven=e.stripHexPrefix=e.isHexPrefixed=void 0,e.isHexPrefixed=r;function n(t){var e=t;if("string"!==typeof e)throw new Error("[padToEven] value must be type 'string', received ".concat(typeof e));return e.length%2&&(e="0".concat(e)),e}e.stripHexPrefix=function(t){if("string"!==typeof t)throw new Error("[stripHexPrefix] input must be type 'string', received ".concat(typeof t));return r(t)?t.slice(2):t},e.padToEven=n,e.getBinarySize=function(t){if("string"!==typeof t)throw new Error("[getBinarySize] method requires input type 'string', received ".concat(typeof t));return Buffer.byteLength(t,"utf8")},e.arrayContainsArray=function(t,e,r){if(!0!==Array.isArray(t))throw new Error("[arrayContainsArray] method requires input 'superset' to be an array, got type '".concat(typeof t,"'"));if(!0!==Array.isArray(e))throw new Error("[arrayContainsArray] method requires input 'subset' to be an array, got type '".concat(typeof e,"'"));return e[!0===r?"some":"every"]((function(e){return t.indexOf(e)>=0}))},e.toAscii=function(t){var e="",r=0,n=t.length;for("0x"===t.substring(0,2)&&(r=2);r<n;r+=2){var i=parseInt(t.substr(r,2),16);e+=String.fromCharCode(i)}return e},e.fromUtf8=function(t){var e=Buffer.from(t,"utf8");return"0x".concat(n(e.toString("hex")).replace(/^0+|0+$/g,""))},e.fromAscii=function(t){for(var e="",r=0;r<t.length;r++){var n=t.charCodeAt(r).toString(16);e+=n.length<2?"0".concat(n):n}return"0x".concat(e)},e.getKeys=function(t,e,r){if(!Array.isArray(t))throw new Error("[getKeys] method expects input 'params' to be an array, got ".concat(typeof t));if("string"!==typeof e)throw new Error("[getKeys] method expects input 'key' to be type 'string', got ".concat(typeof t));for(var n=[],i=0;i<t.length;i++){var o=t[i][e];if(!0!==r||o){if("string"!==typeof o)throw new Error("invalid abi - expected type 'string', received ".concat(typeof o))}else o="";n.push(o)}return n},e.isHexString=function(t,e){return!("string"!==typeof t||!t.match(/^0x[0-9A-Fa-f]*$/))&&!("undefined"!==typeof e&&e>0&&t.length!==2+2*e)}},30706:function(t,e,r){"use strict";var n=r(17061).default,i=r(17156).default,o=r(56690).default,a=r(89728).default;Object.defineProperty(e,"__esModule",{value:!0}),e.Lock=void 0;var s=function(){function t(){o(this,t),this.permits=1,this.promiseResolverQueue=[]}return a(t,[{key:"acquire",value:function(){var t=i(n().mark((function t(){var e=this;return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(this.permits>0)){t.next=3;break}return this.permits-=1,t.abrupt("return",Promise.resolve(!0));case 3:return t.abrupt("return",new Promise((function(t){return e.promiseResolverQueue.push(t)})));case 4:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"release",value:function(){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;var t=this.promiseResolverQueue.shift();t&&t(!0)}}}]),t}();e.Lock=s},77012:function(t,e,r){"use strict";var n=r(17061).default,i=r(17156).default;Object.defineProperty(e,"__esModule",{value:!0}),e.getProvider=e.fetchFromProvider=void 0;var o=r(2547),a=function(){var t=i(n().mark((function t(e,r){var i;return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,o.default)(e,{headers:{"content-type":"application/json"},type:"json",data:{method:r.method,params:r.params,jsonrpc:"2.0",id:1}});case 2:return i=t.sent,t.abrupt("return",i.result);case 4:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}();e.fetchFromProvider=a;e.getProvider=function(t){var e;if("string"===typeof t)return t;if(void 0!==(null===t||void 0===t||null===(e=t.connection)||void 0===e?void 0:e.url))return t.connection.url;
2throw new Error("Must provide valid provider URL or Web3Provider")}},43858:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hashPersonalMessage=e.isValidSignature=e.fromRpcSig=e.toCompactSig=e.toRpcSig=e.ecrecover=e.ecsign=void 0;var n=r(54496),i=r(63564),o=r(60454),a=r(86210),s=r(65902);function u(t,e){return t===BigInt(0)||t===BigInt(1)?t:void 0===e?t-BigInt(27):t-(e*BigInt(2)+BigInt(35))}function c(t){return t===BigInt(0)||t===BigInt(1)}e.ecsign=function(t,e,r){var n=i.secp256k1.sign(t,e),o=n.toCompactRawBytes();return{r:Buffer.from(o.slice(0,32)),s:Buffer.from(o.slice(32,64)),v:void 0===r?BigInt(n.recovery+27):BigInt(n.recovery+35)+BigInt(r)*BigInt(2)}};e.ecrecover=function(t,e,r,n,a){var s=Buffer.concat([(0,o.setLengthLeft)(r,32),(0,o.setLengthLeft)(n,32)],64),l=u(e,a);if(!c(l))throw new Error("Invalid signature v value");var f=i.secp256k1.Signature.fromCompact(s).addRecoveryBit(Number(l)).recoverPublicKey(t);return Buffer.from(f.toRawBytes(!1).slice(1))};e.toRpcSig=function(t,e,r,n){if(!c(u(t,n)))throw new Error("Invalid signature v value");return(0,o.bufferToHex)(Buffer.concat([(0,o.setLengthLeft)(e,32),(0,o.setLengthLeft)(r,32),(0,o.toBuffer)(t)]))};e.toCompactSig=function(t,e,r,n){if(!c(u(t,n)))throw new Error("Invalid signature v value");var i=r;return(t>BigInt(28)&&t%BigInt(2)===BigInt(1)||t===BigInt(1)||t===BigInt(28))&&((i=Buffer.from(r))[0]|=128),(0,o.bufferToHex)(Buffer.concat([(0,o.setLengthLeft)(e,32),(0,o.setLengthLeft)(i,32)]))};e.fromRpcSig=function(t){var e,r,n,i=(0,o.toBuffer)(t);if(i.length>=65)e=i.slice(0,32),r=i.slice(32,64),n=(0,o.bufferToBigInt)(i.slice(64));else{if(64!==i.length)throw new Error("Invalid signature length");e=i.slice(0,32),r=i.slice(32,64),n=BigInt((0,o.bufferToInt)(i.slice(32,33))>>7),r[0]&=127}return n<27&&(n+=BigInt(27)),{v:n,r:e,s:r}};e.isValidSignature=function(t,e,r){var n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=arguments.length>4?arguments[4]:void 0;if(32!==e.length||32!==r.length)return!1;if(!c(u(t,i)))return!1;var s=(0,o.bufferToBigInt)(e),l=(0,o.bufferToBigInt)(r);return!(s===BigInt(0)||s>=a.SECP256K1_ORDER||l===BigInt(0)||l>=a.SECP256K1_ORDER)&&!(n&&l>=a.SECP256K1_ORDER_DIV_2)};e.hashPersonalMessage=function(t){(0,s.assertIsBuffer)(t);var e=Buffer.from("\x19Ethereum Signed Message:\n".concat(t.length),"utf-8");return Buffer.from((0,n.keccak256)(Buffer.concat([e,t])))}},8773:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toType=e.TypeOutput=void 0;var n,i=r(60454),o=r(55864);!function(t){t[t.Number=0]="Number",t[t.BigInt=1]="BigInt",t[t.Buffer=2]="Buffer",t[t.PrefixedHexString=3]="PrefixedHexString"}(n=e.TypeOutput||(e.TypeOutput={})),e.toType=function(t,e){if(null===t)return null;if(void 0!==t){if("string"===typeof t&&!(0,o.isHexString)(t))throw new Error("A string must be provided with a 0x-prefix, given: ".concat(t));if("number"===typeof t&&!Number.isSafeInteger(t))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");var r=(0,i.toBuffer)(t);switch(e){case n.Buffer:return r;case n.BigInt:return(0,i.bufferToBigInt)(r);case n.Number:var a=(0,i.bufferToBigInt)(r);if(a>BigInt(Number.MAX_SAFE_INTEGER))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative output type)");return Number(a);case n.PrefixedHexString:return(0,i.bufferToHex)(r);default:throw new Error("unknown outputType")}}}},70134:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GWEI_TO_WEI=void 0,e.GWEI_TO_WEI=BigInt(1e9)},43951:function(t,e,r){"use strict";var n=r(27424).default,i=r(56690).default,o=r(89728).default;Object.defineProperty(e,"__esModule",{value:!0}),e.Withdrawal=void 0;var a=r(30286),s=r(60454),u=r(8773),c=function(){function t(e,r,n,o){i(this,t),this.index=e,this.validatorIndex=r,this.address=n,this.amount=o}return o(t,[{key:"raw",value:function(){return t.toBufferArray(this)}},{key:"toValue",value:function(){return{index:this.index,validatorIndex:this.validatorIndex,address:this.address.buf,amount:this.amount}}},{key:"toJSON",value:function(){return{index:(0,s.bigIntToHex)(this.index),validatorIndex:(0,s.bigIntToHex)(this.validatorIndex),address:"0x"+this.address.buf.toString("hex"),amount:(0,s.bigIntToHex)(this.amount)}}}],[{key:"fromWithdrawalData",value:function(e){var r=e.index,n=e.validatorIndex,i=e.address,o=e.amount;return new t((0,u.toType)(r,u.TypeOutput.BigInt),(0,u.toType)(n,u.TypeOutput.BigInt),new a.Address((0,u.toType)(i,u.TypeOutput.Buffer)),(0,u.toType)(o,u.TypeOutput.BigInt))}},{key:"fromValuesArray",value:function(e){if(4!==e.length)throw Error("Invalid withdrawalArray length expected=4 actual=".concat(e.length));var r=n(e,4),i=r[0],o=r[1],a=r[2],s=r[3];return t.fromWithdrawalData({index:i,validatorIndex:o,address:a,amount:s})}},{key:"toBufferArray",value:function(t){var e=t.index,r=t.validatorIndex,n=t.address,i=t.amount;return[(0,u.toType)(e,u.TypeOutput.BigInt)===BigInt(0)?Buffer.alloc(0):(0,u.toType)(e,u.TypeOutput.Buffer),(0,u.toType)(r,u.TypeOutput.BigInt)===BigInt(0)?Buffer.alloc(0):(0,u.toType)(r,u.TypeOutput.Buffer),n instanceof a.Address?n.buf:(0,u.toType)(n,u.TypeOutput.Buffer),(0,u.toType)(i,u.TypeOutput.BigInt)===BigInt(0)?Buffer.alloc(0):(0,u.toType)(i,u.TypeOutput.Buffer)]}}]),t}();e.Withdrawal=c},50773:function(t,e,r){"use strict";r.d(e,{i:function(){return n}});var n="abi/5.7.0"},86388:function(t,e,r){"use strict";r.d(e,{R:function(){return L},$:function(){return Z}});var n=r(15671),i=r(43144),o=r(52009),a=r(54812),s=r(2735),u=r(50773),c=r(62),l=r(60136),f=r(29388),h=r(28552),d=function(t){(0,l.Z)(r,t);var e=(0,f.Z)(r);function r(t){return(0,n.Z)(this,r),e.call(this,"address","address",t,!1)}return(0,i.Z)(r,[{key:"defaultValue",value:function(){return"0x0000000000000000000000000000000000000000"}},{key:"encode",value:function(t,e){try{e=(0,h.Kn)(e)}catch(r){this._throwError(r.message,e)}return t.writeValue(e)}},{key:"decode",value:function(t){return(0,h.Kn)((0,o.$m)(t.readValue().toHexString(),20))}}]),r}(c.XI),p=function(t){(0,l.Z)(r,t);var e=(0,f.Z)(r);function r(t){var i;return(0,n.Z)(this,r),(i=e.call(this,t.name,t.type,void 0,t.dynamic)).coder=t,i}return(0,i.Z)(r,[{key:"defaultValue",value:function(){return this.co
2der.defaultValue()}},{key:"encode",value:function(t,e){return this.coder.encode(t,e)}},{key:"decode",value:function(t){return this.coder.decode(t)}}]),r}(c.XI),v=new s.Yd(u.i);function m(t,e,r){var n=null;if(Array.isArray(r))n=r;else if(r&&"object"===typeof r){var i={};n=e.map((function(t){var e=t.localName;return e||v.throwError("cannot encode object for signature with missing names",s.Yd.errors.INVALID_ARGUMENT,{argument:"values",coder:t,value:r}),i[e]&&v.throwError("cannot encode object for signature with duplicate names",s.Yd.errors.INVALID_ARGUMENT,{argument:"values",coder:t,value:r}),i[e]=!0,r[e]}))}else v.throwArgumentError("invalid tuple value","tuple",r);e.length!==n.length&&v.throwArgumentError("types/value length mismatch","tuple",r);var o=new c.QV(t.wordSize),a=new c.QV(t.wordSize),u=[];e.forEach((function(t,e){var r=n[e];if(t.dynamic){var i=a.length;t.encode(a,r);var s=o.writeUpdatableValue();u.push((function(t){s(t+i)}))}else t.encode(o,r)})),u.forEach((function(t){t(o.length)}));var l=t.appendWriter(o);return l+=t.appendWriter(a)}function g(t,e){var r=[],n=t.subReader(0);e.forEach((function(e){var i=null;if(e.dynamic){var o=t.readValue(),a=n.subReader(o.toNumber());try{i=e.decode(a)}catch(u){if(u.code===s.Yd.errors.BUFFER_OVERRUN)throw u;(i=u).baseType=e.name,i.name=e.localName,i.type=e.type}}else try{i=e.decode(t)}catch(u){if(u.code===s.Yd.errors.BUFFER_OVERRUN)throw u;(i=u).baseType=e.name,i.name=e.localName,i.type=e.type}void 0!=i&&r.push(i)}));var i=e.reduce((function(t,e){var r=e.localName;return r&&(t[r]||(t[r]=0),t[r]++),t}),{});e.forEach((function(t,e){var n=t.localName;if(n&&1===i[n]&&("length"===n&&(n="_length"),null==r[n])){var o=r[e];o instanceof Error?Object.defineProperty(r,n,{enumerable:!0,get:function(){throw o}}):r[n]=o}}));for(var o=function(){var t=r[a];t instanceof Error&&Object.defineProperty(r,a,{enumerable:!0,get:function(){throw t}})},a=0;a<r.length;a++)o();return Object.freeze(r)}var y=function(t){(0,l.Z)(r,t);var e=(0,f.Z)(r);function r(t,i,o){var a;(0,n.Z)(this,r);var s=t.type+"["+(i>=0?i:"")+"]",u=-1===i||t.dynamic;return(a=e.call(this,"array",s,o,u)).coder=t,a.length=i,a}return(0,i.Z)(r,[{key:"defaultValue",value:function(){for(var t=this.coder.defaultValue(),e=[],r=0;r<this.length;r++)e.push(t);return e}},{key:"encode",value:function(t,e){Array.isArray(e)||this._throwError("expected array value",e);var r=this.length;-1===r&&(r=e.length,t.writeValue(e.length)),v.checkArgumentCount(e.length,r,"coder array"+(this.localName?" "+this.localName:""));for(var n=[],i=0;i<e.length;i++)n.push(this.coder);return m(t,n,e)}},{key:"decode",value:function(t){var e=this.length;-1===e&&32*(e=t.readValue().toNumber())>t._data.length&&v.throwError("insufficient data length",s.Yd.errors.BUFFER_OVERRUN,{length:t._data.length,count:e});for(var r=[],n=0;n<e;n++)r.push(new p(this.coder));return t.coerce(this.name,g(t,r))}}]),r}(c.XI),b=function(t){(0,l.Z)(r,t);var e=(0,f.Z)(r);function r(t){return(0,n.Z)(this,r),e.call(this,"bool","bool",t,!1)}return(0,i.Z)(r,[{key:"defaultValue",value:function(){return!1}},{key:"encode",value:function(t,e){return t.writeValue(e?1:0)}},{key:"decode",value:function(t){return t.coerce(this.type,!t.readValue().isZero())}}]),r}(c.XI),w=r(11752),_=r(61120),x=function(t){(0,l.Z)(r,t);var e=(0,f.Z)(r);function r(t,i){return(0,n.Z)(this,r),e.call(this,t,t,i,!0)}return(0,i.Z)(r,[{key:"defaultValue",value:function(){return"0x"}},{key:"encode",value:function(t,e){e=(0,o.lE)(e);var r=t.writeValue(e.length);return r+=t.writeBytes(e)}},{key:"decode",value:function(t){return t.readBytes(t.readValue().toNumber(),!0)}}]),r}(c.XI),E=function(t){(0,l.Z)(r,t);var e=(0,f.Z)(r);function r(t){return(0,n.Z)(this,r),e.call(this,"bytes",t)}return(0,i.Z)(r,[{key:"decode",value:function(t){return t.coerce(this.name,(0,o.Dv)((0,w.Z)((0,_.Z)(r.prototype),"decode",this).call(this,t)))}}]),r}(x),A=function(t){(0,l.Z)(r,t);var e=(0,f.Z)(r);function r(t,i){var o;(0,n.Z)(this,r);var a="bytes"+String(t);return(o=e.call(this,a,a,i,!1)).size=t,o}return(0,i.Z)(r,[{key:"defaultValue",value:function(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+2*this.size)}},{key:"encode",value:function(t,e){var r=(0,o.lE)(e);return r.length!==this.size&&this._throwError("incorrect data length",e),t.writeBytes(r)}},{key:"decode",value:function(t){return t.coerce(this.name,(0,o.Dv)(t.readBytes(this.size)))}}]),r}(c.XI),M=function(t){(0,l.Z)(r,t);var e=(0,f.Z)(r);function r(t){return(0,n.Z)(this,r),e.call(this,"null","",t,!1)}return(0,i.Z)(r,[{key:"defaultValue",value:function(){return null}},{key:"encode",value:function(t,e){return null!=e&&this._throwError("not null",e),t.writeBytes([])}},{key:"decode",value:function(t){return t.readBytes(0),t.coerce(this.name,null)}}]),r}(c.XI),k=r(19560),S=r(6321),I=function(t){(0,l.Z)(r,t);var e=(0,f.Z)(r);function r(t,i,o){var a;(0,n.Z)(this,r);var s=(i?"int":"uint")+8*t;return(a=e.call(this,s,s,o,!1)).size=t,a.signed=i,a}return(0,i.Z)(r,[{key:"defaultValue",value:function(){return 0}},{key:"encode",value:function(t,e){var r=k.O$.from(e),n=S.Bz.mask(8*t.wordSize);if(this.signed){var i=n.mask(8*this.size-1);(r.gt(i)||r.lt(i.add(S.fh).mul(S.tL)))&&this._throwError("value out-of-bounds",e)}else(r.lt(S._Y)||r.gt(n.mask(8*this.size)))&&this._throwError("value out-of-bounds",e);return r=r.toTwos(8*this.size).mask(8*this.size),this.signed&&(r=r.fromTwos(8*this.size).toTwos(8*t.wordSize)),t.writeValue(r)}},{key:"decode",value:function(t){var e=t.readValue().mask(8*this.size);return this.signed&&(e=e.fromTwos(8*this.size)),t.coerce(this.name,e)}}]),r}(c.XI),P=r(91953),N=function(t){(0,l.Z)(r,t);var e=(0,f.Z)(r);function r(t){return(0,n.Z)(this,r),e.call(this,"string",t)}return(0,i.Z)(r,[{key:"defaultValue",value:function(){return""}},{key:"encode",value:function(t,e){return(0,w.Z)((0,_.Z)(r.prototype),"encode",this).call(this,t,(0,P.Y0)(e))}},{key:"decode",value:function(t){return(0,P.ZN)((0,w.Z)((0,_.Z)(r.prototype),"decode",this).call(this,t))}}]),r}(x),C=function(t){(0,l.Z)(r,t);var e=(0,f.Z)(r);function r(t,i){var o;(0,n.Z)(this,r);var a=!1,s=[];t.forEach((function(t){t.dynamic&&(a=!0),s.push(t.type)}));var u="tuple("+s.join(",")+")";
2return(o=e.call(this,"tuple",u,i,a)).coders=t,o}return(0,i.Z)(r,[{key:"defaultValue",value:function(){var t=[];this.coders.forEach((function(e){t.push(e.defaultValue())}));var e=this.coders.reduce((function(t,e){var r=e.localName;return r&&(t[r]||(t[r]=0),t[r]++),t}),{});return this.coders.forEach((function(r,n){var i=r.localName;i&&1===e[i]&&("length"===i&&(i="_length"),null==t[i]&&(t[i]=t[n]))})),Object.freeze(t)}},{key:"encode",value:function(t,e){return m(t,this.coders,e)}},{key:"decode",value:function(t){return t.coerce(this.name,g(t,this.coders))}}]),r}(c.XI),O=r(7550),T=new s.Yd(u.i),R=new RegExp(/^bytes([0-9]*)$/),B=new RegExp(/^(u?int)([0-9]*)$/),L=function(){function t(e){(0,n.Z)(this,t),(0,a.zG)(this,"coerceFunc",e||null)}return(0,i.Z)(t,[{key:"_getCoder",value:function(t){var e=this;switch(t.baseType){case"address":return new d(t.name);case"bool":return new b(t.name);case"string":return new N(t.name);case"bytes":return new E(t.name);case"array":return new y(this._getCoder(t.arrayChildren),t.arrayLength,t.name);case"tuple":return new C((t.components||[]).map((function(t){return e._getCoder(t)})),t.name);case"":return new M(t.name)}var r=t.type.match(B);if(r){var n=parseInt(r[2]||"256");return(0===n||n>256||n%8!==0)&&T.throwArgumentError("invalid "+r[1]+" bit length","param",t),new I(n/8,"int"===r[1],t.name)}if(r=t.type.match(R)){var i=parseInt(r[1]);return(0===i||i>32)&&T.throwArgumentError("invalid bytes length","param",t),new A(i,t.name)}return T.throwArgumentError("invalid type","type",t.type)}},{key:"_getWordSize",value:function(){return 32}},{key:"_getReader",value:function(t,e){return new c.Ej(t,this._getWordSize(),this.coerceFunc,e)}},{key:"_getWriter",value:function(){return new c.QV(this._getWordSize())}},{key:"getDefaultValue",value:function(t){var e=this,r=t.map((function(t){return e._getCoder(O._R.from(t))}));return new C(r,"_").defaultValue()}},{key:"encode",value:function(t,e){var r=this;t.length!==e.length&&T.throwError("types/values length mismatch",s.Yd.errors.INVALID_ARGUMENT,{count:{types:t.length,values:e.length},value:{types:t,values:e}});var n=t.map((function(t){return r._getCoder(O._R.from(t))})),i=new C(n,"_"),o=this._getWriter();return i.encode(o,e),o.data}},{key:"decode",value:function(t,e,r){var n=this,i=t.map((function(t){return n._getCoder(O._R.from(t))}));return new C(i,"_").decode(this._getReader((0,o.lE)(e),r))}}]),t}(),Z=new L},62:function(t,e,r){"use strict";r.d(e,{BR:function(){return f},Ej:function(){return p},QV:function(){return d},XI:function(){return h}});var n=r(15671),i=r(43144),o=r(52009),a=r(19560),s=r(54812),u=r(2735),c=r(50773),l=new u.Yd(c.i);function f(t){var e=[];return function t(r,n){if(Array.isArray(n))for(var i in n){var o=r.slice();o.push(i);try{t(o,n[i])}catch(a){e.push({path:o,error:a})}}}([],t),e}var h=function(){function t(e,r,i,o){(0,n.Z)(this,t),this.name=e,this.type=r,this.localName=i,this.dynamic=o}return(0,i.Z)(t,[{key:"_throwError",value:function(t,e){l.throwArgumentError(t,this.localName,e)}}]),t}(),d=function(){function t(e){(0,n.Z)(this,t),(0,s.zG)(this,"wordSize",e||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(e)}return(0,i.Z)(t,[{key:"data",get:function(){return(0,o.xs)(this._data)}},{key:"length",get:function(){return this._dataLength}},{key:"_writeData",value:function(t){return this._data.push(t),this._dataLength+=t.length,t.length}},{key:"appendWriter",value:function(t){return this._writeData((0,o.zo)(t._data))}},{key:"writeBytes",value:function(t){var e=(0,o.lE)(t),r=e.length%this.wordSize;return r&&(e=(0,o.zo)([e,this._padding.slice(r)])),this._writeData(e)}},{key:"_getValue",value:function(t){var e=(0,o.lE)(a.O$.from(t));return e.length>this.wordSize&&l.throwError("value out-of-bounds",u.Yd.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:e.length}),e.length%this.wordSize&&(e=(0,o.zo)([this._padding.slice(e.length%this.wordSize),e])),e}},{key:"writeValue",value:function(t){return this._writeData(this._getValue(t))}},{key:"writeUpdatableValue",value:function(){var t=this,e=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,function(r){t._data[e]=t._getValue(r)}}}]),t}(),p=function(){function t(e,r,i,a){(0,n.Z)(this,t),(0,s.zG)(this,"_data",(0,o.lE)(e)),(0,s.zG)(this,"wordSize",r||32),(0,s.zG)(this,"_coerceFunc",i),(0,s.zG)(this,"allowLoose",a),this._offset=0}return(0,i.Z)(t,[{key:"data",get:function(){return(0,o.Dv)(this._data)}},{key:"consumed",get:function(){return this._offset}},{key:"coerce",value:function(e,r){return this._coerceFunc?this._coerceFunc(e,r):t.coerce(e,r)}},{key:"_peekBytes",value:function(t,e,r){var n=Math.ceil(e/this.wordSize)*this.wordSize;return this._offset+n>this._data.length&&(this.allowLoose&&r&&this._offset+e<=this._data.length?n=e:l.throwError("data out-of-bounds",u.Yd.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+n})),this._data.slice(this._offset,this._offset+n)}},{key:"subReader",value:function(e){return new t(this._data.slice(this._offset+e),this.wordSize,this._coerceFunc,this.allowLoose)}},{key:"readBytes",value:function(t,e){var r=this._peekBytes(0,t,!!e);return this._offset+=r.length,r.slice(0,t)}},{key:"readValue",value:function(){return a.O$.from(this.readBytes(this.wordSize))}}
2],[{key:"coerce",value:function(t,e){var r=t.match("^u?int([0-9]+)$");return r&&parseInt(r[1])<=48&&(e=e.toNumber()),e}}]),t}()},7550:function(t,e,r){"use strict";r.d(e,{HY:function(){return _},IC:function(){return P},QV:function(){return x},Xg:function(){return k},YW:function(){return S},_R:function(){return b},pc:function(){return g}});var n=r(60136),i=r(29388),o=r(15671),a=r(43144),s=r(19560),u=r(54812),c=r(2735),l=r(50773),f=new c.Yd(l.i),h={},d={calldata:!0,memory:!0,storage:!0},p={calldata:!0,memory:!0};function v(t,e){if("bytes"===t||"string"===t){if(d[e])return!0}else if("address"===t){if("payable"===e)return!0}else if((t.indexOf("[")>=0||"tuple"===t)&&p[e])return!0;return(d[e]||"payable"===e)&&f.throwArgumentError("invalid modifier","name",e),!1}function m(t,e){for(var r in e)(0,u.zG)(t,r,e[r])}var g=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),y=new RegExp(/^(.*)\[([0-9]*)\]$/),b=function(){function t(e,r){(0,o.Z)(this,t),e!==h&&f.throwError("use fromString",c.Yd.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),m(this,r);var n=this.type.match(y);m(this,n?{arrayLength:parseInt(n[2]||"-1"),arrayChildren:t.fromObject({type:n[1],components:this.components}),baseType:"array"}:{arrayLength:null,arrayChildren:null,baseType:null!=this.components?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}return(0,a.Z)(t,[{key:"format",value:function(t){if(t||(t=g.sighash),g[t]||f.throwArgumentError("invalid format type","format",t),t===g.json){var e={type:"tuple"===this.baseType?"tuple":this.type,name:this.name||void 0};return"boolean"===typeof this.indexed&&(e.indexed=this.indexed),this.components&&(e.components=this.components.map((function(e){return JSON.parse(e.format(t))}))),JSON.stringify(e)}var r="";return"array"===this.baseType?(r+=this.arrayChildren.format(t),r+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):"tuple"===this.baseType?(t!==g.sighash&&(r+=this.type),r+="("+this.components.map((function(e){return e.format(t)})).join(t===g.full?", ":",")+")"):r+=this.type,t!==g.sighash&&(!0===this.indexed&&(r+=" indexed"),t===g.full&&this.name&&(r+=" "+this.name)),r}}],[{key:"from",value:function(e,r){return"string"===typeof e?t.fromString(e,r):t.fromObject(e)}},{key:"fromObject",value:function(e){return t.isParamType(e)?e:new t(h,{name:e.name||null,type:N(e.type),indexed:null==e.indexed?null:!!e.indexed,components:e.components?e.components.map(t.fromObject):null})}},{key:"fromString",value:function(e,r){return n=function(t,e){var r=t;function n(e){f.throwArgumentError("unexpected character at position ".concat(e),"param",t)}function i(t){var r={type:"",name:"",parent:t,state:{allowType:!0}};return e&&(r.indexed=!1),r}t=t.replace(/\s/g," ");for(var o={type:"",name:"",state:{allowType:!0}},a=o,s=0;s<t.length;s++){var u=t[s];switch(u){case"(":a.state.allowType&&""===a.type?a.type="tuple":a.state.allowParams||n(s),a.state.allowType=!1,a.type=N(a.type),a.components=[i(a)],a=a.components[0];break;case")":delete a.state,"indexed"===a.name&&(e||n(s),a.indexed=!0,a.name=""),v(a.type,a.name)&&(a.name=""),a.type=N(a.type);var c=a;(a=a.parent)||n(s),delete c.parent,a.state.allowParams=!1,a.state.allowName=!0,a.state.allowArray=!0;break;case",":delete a.state,"indexed"===a.name&&(e||n(s),a.indexed=!0,a.name=""),v(a.type,a.name)&&(a.name=""),a.type=N(a.type);var l=i(a.parent);a.parent.components.push(l),delete a.parent,a=l;break;case" ":a.state.allowType&&""!==a.type&&(a.type=N(a.type),delete a.state.allowType,a.state.allowName=!0,a.state.allowParams=!0),a.state.allowName&&""!==a.name&&("indexed"===a.name?(e||n(s),a.indexed&&n(s),a.indexed=!0,a.name=""):v(a.type,a.name)?a.name="":a.state.allowName=!1);break;case"[":a.state.allowArray||n(s),a.type+=u,a.state.allowArray=!1,a.state.allowName=!1,a.state.readArray=!0;break;case"]":a.state.readArray||n(s),a.type+=u,a.state.readArray=!1,a.state.allowArray=!0,a.state.allowName=!0;break;default:a.state.allowType?(a.type+=u,a.state.allowParams=!0,a.state.allowArray=!0):a.state.allowName?(a.name+=u,delete a.state.allowArray):a.state.readArray?a.type+=u:n(s)}}return a.parent&&f.throwArgumentError("unexpected eof","param",t),delete o.state,"indexed"===a.name?(e||n(r.length-7),a.indexed&&n(r.length-7),a.indexed=!0,a.name=""):v(a.type,a.name)&&(a.name=""),o.type=N(o.type),o}(e,!!r),t.fromObject({name:n.name,type:n.type,indexed:n.indexed,components:n.components});var n}},{key:"isParamType",value:function(t){return!(null==t||!t._isParamType)}}]),t}();function w(t,e){return function(t){t=t.trim();for(var e=[],r="",n=0,i=0;i<t.length;i++){var o=t[i];","===o&&0===n?(e.push(r),r=""):(r+=o,"("===o?n++:")"===o&&-1===--n&&f.throwArgumentError("unbalanced parenthesis","value",t))}r&&e.push(r);return e}(t).map((function(t){return b.fromString(t,e)}))}var _=function(){function t(e,r){(0,o.Z)(this,t),e!==h&&f.throwError("use a static from method",c.Yd.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),m(this,r),this._isFragment=!0,Object.freeze(this)}return(0,a.Z)(t,null,[{key:"from",value:function(e){return t.isFragment(e)?e:"string"===typeof e?t.fromString(e):t.fromObject(e)}},{key:"fromObject",value:function(e){if(t.isFragment(e))return e;switch(e.type){case"function":return S.fromObject(e);case"event":return x.fromObject(e);case"constructor":return k.fromObject(e);case"error":return P.fromObject(e);case"fallback":case"receive":return null}return f.throwArgumentError("invalid fragment object","value",e)}},{key:"fromString",value:function(t){return"event"===(t=(t=(t=t.replace(/\s/g," ")).replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," ")).trim()).split(" ")[0]?x.fromString(t.substring(5).trim()):"function"===t.split(" ")[0]?S.fromString(t.substring(8).trim()):"constructor"===t.split("(")[0].trim()?k.fromString(t.trim()):"error"===t.split(" ")[0]?P.fromString(t.substring(5).trim()):f.throwArgumentError("unsupported fragment","value",t)}},{key:"isFragment",value:function(t){return!(!t||!t._isFragment)}}]),t}(),x=function(t){(0,n.Z)(r,t);var e=(0,i.Z)(r);function r(){return(0,o.Z)(this,r),e.apply(this,arguments)}return(0,a.Z)(r,[{key:"format",value:function(t){if(t||(t=g.sighash),g[t]||f.throwArgumentError("invalid format type","format",t),t===g.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map((function(e){return JSON.parse(e.format(t))}))});var e="";return t!==g.sighash&&(e+="event "),e+=this.name+"("+this.inputs.map((function(e){return e.format(t)})).join(t===g.full?", ":",")+") ",t!==g.sighash&&this.anonymous&&(e+="anonymous "),e.trim()}}],[{key:"from",value:function(t){return"string"===typeof t?r.fromString(t):r.fromObject(t)}},{key:"fromObject",value:function(t){if(r.isEventFragment(t))return t;"event"!==t.type&&f.throwArgumentError("invalid event object","value",t);var e={name:O(t.name),anonymous:t.anonymous,inputs:t.inputs?t.inputs.map(b.fromObject):[],type:"event"};return new r(h,e)}},{key:"fromString",value:function(t){var e=t.match(T);e||f.throwArgumentError("invalid event string","value",t);var n=!1;return e[3].split(" ").forEach((function(t){switch(t.trim()){case"anonymous":n=!0;break;case"":break;default:f.warn("unknown modifier: "+t)}})),r.fromObject({name:e[1].trim(),anonymous:n,inputs:w(e[2],!0),type:"event"})}},{key:"isEventFragment",value:function(t){return t&&t._isFragment&&"event"===t.type}}]),r}(_);function E(t,e){e.gas=null;var r=t.split("@");return 1!==r.length?(r.length>2&&f.throwArgumentError("invalid human-readable ABI signature","value",t),r[1].match(/^[0-9]+$/)||f.throwArgumentError("invalid human-readable ABI signature gas","value",t),e.gas=s.O$.from(r[1]),r[0]):t}function A(t,e){e.constant=!1,e.payable=!1,e.stateMutability="nonpayable",t.split(" ").forEach((function(t){switch(t.trim()){case"constant":e.constant=!0;break;case"payable":e.payable=!0,e.stateMutability="payable";break;case"nonpayable":e.payable=!1,e.stateMutability="nonpayable";break;case"pure":e.constant=!0,e.stateMutability="pure";break;case"view":e.constant=!0,e.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+t)}}))}function M(t){var e={constant:!1,payable:!0,stateMutability:"payable"};return null!=t.stateMutability?(e.stateMutability=t.stateMutability,e.constant="view"===e.stateMutability||"pure"===e.stateMutability,null!=t.constant&&!!t.constant!==e.constant&&f.throwArgumentError("cannot have constant function with mutability "+e.stateMutability,"value",t),e.payable="payable"===e.stateMutability,null!=t.payable&&!!t.payable!==e.payable&&f.throwArgumentError("cannot have payable function with mutability "+e.stateMutability,"value",t)):null!=t.payable?(e.payable=!!t.payable,null!=t.constant||e.payable||"constructor"===t.type||f.throwArgumentError("unable to determine stateMutability","value",t),e.constant=!!t.constant,e.constant?e.stateMutability="view":e.stateMutability=e.payable?"payable":"nonpayable",e.payable&&e.constant&&f.throwArgumentError("cannot have constant payable function","value",t)):null!=t.constant?(e.constant=!!t.constant,e.payable=!e.constant,e.stateMutability=e.constant?"view":"payable"):"constructor"!==t.type&&f.throwArgumentError("unable to determine stateMutability","value",t),e}var k=function(t){(0,n.Z)(r,t);var e=(0,i.Z)(r);function r(){return(0,o.Z)(this,r),e.apply(this,arguments)}return(0,a.Z)(r,[{key:"format",value:function(t){if(t||(t=g.sighash),g[t]||f.throwArgumentError("invalid format type","format",t),t===g.json)return JSON.stringify({type:"constructor",stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((function(e){return JSON.parse(e.format(t))}))});t===g.sighash&&f.throwError("cannot format a constructor for sighash",c.Yd.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});var e="constructor("+this.inputs.map((function(e){return e.format(t)})).join(t===g.full?", ":",")+") ";return this.stateMutability&&"nonpayable"!==this.stateMutability&&(e+=this.stateMutability+" "),e.trim()}}],[{key:"from",value:function(t){return"string"===typeof t?r.fromString(t):r.fromObject(t)}},{key:"fromObject",value:function(t){if(r.isConstructorFragment(t))return t;"constructor"!==t.type&&f.throwArgumentError("invalid constructor object","value",t);var e=M(t);e.constant&&f.throwArgumentError("constructor cannot be constant","value",t);var n={name:null,type:t.type,inputs:t.inputs?t.inputs.map(b.fromObject):[],payable:e.payable,stateMutability:e.stateMutability,gas:t.gas?s.O$.from(t.gas):null};return new r(h,n)}},{key:"fromString",value:function(t){var e={type:"constructor"},n=(t=E(t,e)).match(T);return n&&"constructor"===n[1].trim()||f.throwArgumentError("invalid constructor string","value",t),e.inputs=w(n[2].trim(),!1),A(n[3].trim(),e),r.fromObject(e)}},{key:"isConstructorFragment",value:function(t){return t&&t._isFragment&&"constructor"===t.type}}]),r}(_),S=function(t){(0,n.Z)(r,t);var e=(0,i.Z)(r);function r(){return(0,o.Z)(this,r),e.apply(this,arguments)}return(0,a.Z)(r,[{key:"format",value:function(t){if(t||(t=g.sighash),g[t]||f.throwArgumentError("invalid format type","format",t),t===g.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((function(e){return JSON.parse(e.format(t))})),outputs:this.outputs.map((function(e){return JSON.parse(e.format(t))}))});var e="";return t!==g.sighash&&(e+="function "),e+=this.name+"("+this.inputs.map((function(e){return e.format(t)})).join(t===g.full?", ":",")+") ",t!==g.sighash&&(this.stateMutability?"nonpayable"!==this.stateMutability&&(e+=this.stateMutability+" "):this.constant&&(e+="view "),this.outputs&&this.outputs.length&&(e+="returns ("+this.outputs.map((function(e){return e.format(t)})).join(", ")+") "),null!=this.gas&&(e+="@"+this.gas.toString()+" ")),e.trim()}}],[{key:"from",value:function(t){return"string"===typeof t?r.fromString(t):r.fromObject(t)}},{key:"fromObject",value:function(t){if(r.isFunctionFragment(t))return t;"function"!==t.type&&f.throwArgumentError("invalid function object","value",t);var e=M(t),n={type:t.type,name:O(t.name),constant:e.constant,inputs:t.inputs?t.inputs.map(b.fromObject):[],outputs:t.outputs?t.outputs.map(b.fromObject):[],payable:e.payable,stateMutability:e.stateMutability,gas:t.gas?s.O$.from(t.gas):null};return new r(h,n)}},{key:"fromString",value:function(t){var e={type:"function"},n=(t=E(t,e)).split(" returns ");n.length>2&&f.throwArgumentError("invalid function string","value",t);var i=n[0].match(T);if(i||f.throwArgumentError("invalid function signature","value",t),e.name=i[1].trim(),e.name&&O(e.name),e.inputs=w(i[2],!1),A(i[3].trim(),e),n.length>1){var o=n[1].match(T);""==o[1].trim()&&""==o[3].trim()||f.throwArgumentError("unexpected tokens","value",t),e.outputs=w(o[2],!1)}else e.outputs=[];return r.fromObject(e)}},{key:"isFunctionFragment",value:function(t){return t&&t._isFragment&&"function"===t.type}}]),r}(k);function I(t){var e=t.format();return"Error(string)"!==e&&"Panic(uint256)"!==e||f.throwArgumentError("cannot specify user defined ".concat(e," error"),"fragment",t),t}var P=function(t){(0,n.Z)(r,t);var e=(0,i.Z)(r);function r(){return(0,o.Z)(this,r),e.apply(this,arguments)}return(0,a.Z)(r,[{key:"format",value:function(t){if(t||(t=g.sighash),g[t]||f.throwArgumentError("invalid format type","format",t),t===g.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map((function(e){return JSON.parse(e.format(t))}))});var e="";return t!==g.sighash&&(e+="error "),(e+=this.name+"("+this.inputs.map((function(e){return e.format(t)})).join(t===g.full?", ":",")+") ").trim()}}],[{key:"from",value:function(t){return"string"===typeof t?r.fromString(t):r.fromObject(t)}},{key:"fromObject",value:function(t){if(r.isErrorFragment(t))return t;"error"!==t.type&&f.throwArgumentError("invalid error object","value",t);var e={type:t.type,name:O(t.name),inputs:t.inputs?t.inputs.map(b.fromObject):[]};return I(new r(h,e))}},{key:"fromString",value:function(t){var e={type:"error"},n=t.match(T);return n||f.throwArgumentError("invalid error signature","value",t),e.name=n[1].trim(),e.name&&O(e.name),e.inputs=w(n[2],!1),I(r.fromObject(e))}},{key:"isErrorFragment",value:function(t){return t&&t._isFragment&&"error"===t.type}}]),r}(_);function N(t){return t.match(/^uint($|[^1-9])/)?t="uint256"+t.substring(4):t.match(/^int($|[^1-9])/)&&(t="int256"+t.substring(3)),t}var C=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function O(t){return t&&t.match(C)||f.throwArgumentError('invalid identifier "'.concat(t,'"'),"value",t),t}var T=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$")},99456:function(t,e,r){"use strict";r.d(e,{CC:function(){return y},Hk:function(){return _},vU:function(){return A},vk:function(){return b}});var n=r(43144),i=r(15671),o=r(60136),a=r(29388),s=r(28552),u=r(19560),c=r(52009),l=r(93358),f=r(11291),h=r(54812),d=r(86388),p=r(7550),v=r(2735),m=r(50773),g=new v.Yd(m.i),y=function(t){(0,o.Z)(r,t);var e=(0,a.Z)(r);function r(){return(0,i.Z)(this,r),e.apply(this,arguments)}return(0,n.Z)(r)}(h.dk),b=function(t){(0,o.Z)(r,t);var e=(0,a.Z)(r);function r(){return(0,i.Z)(this,r),e.apply(this,arguments)}return(0,n.Z)(r)}(h.dk),w=function(t){(0,o.Z)(r,t);var e=(0,a.Z)(r);function r(){return(0,i.Z)(this,r),e.apply(this,arguments)}return(0,n.Z)(r)}(h.dk),_=function(t){(0,o.Z)(r,t);var e=(0,a.Z)(r);function r(){return(0,i.Z)(this,r),e.apply(this,arguments)}return(0,n.Z)(r,null,[{key:"isIndexed",value:function(t){return!(!t||!t._isIndexed)}}]),r}(h.dk),x={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function E(t,e){var r=new Error("deferred error during ABI decoding triggered accessing ".concat(t));return r.error=e,r}var A=function(){function t(e){var r=this;(0,i.Z)(this,t);var n=[];n="string"===typeof e?JSON.parse(e):e,(0,h.zG)(this,"fragments",n.map((function(t){return p.HY.from(t)})).filter((function(t){return null!=t}))),(0,h.zG)(this,"_abiCoder",(0,h.tu)(this instanceof t?this.constructor:void 0,"getAbiCoder")()),(0,h.zG)(this,"functions",{}),(0,h.zG)(this,"errors",{}),(0,h.
2zG)(this,"events",{}),(0,h.zG)(this,"structs",{}),this.fragments.forEach((function(t){var e=null;switch(t.type){case"constructor":return r.deploy?void g.warn("duplicate definition - constructor"):void(0,h.zG)(r,"deploy",t);case"function":e=r.functions;break;case"event":e=r.events;break;case"error":e=r.errors;break;default:return}var n=t.format();e[n]?g.warn("duplicate definition - "+n):e[n]=t})),this.deploy||(0,h.zG)(this,"deploy",p.Xg.from({payable:!1,type:"constructor"})),(0,h.zG)(this,"_isInterface",!0)}return(0,n.Z)(t,[{key:"format",value:function(t){t||(t=p.pc.full),t===p.pc.sighash&&g.throwArgumentError("interface does not support formatting sighash","format",t);var e=this.fragments.map((function(e){return e.format(t)}));return t===p.pc.json?JSON.stringify(e.map((function(t){return JSON.parse(t)}))):e}},{key:"getFunction",value:function(t){if((0,c.A7)(t)){for(var e in this.functions)if(t===this.getSighash(e))return this.functions[e];g.throwArgumentError("no matching function","sighash",t)}if(-1===t.indexOf("(")){var r=t.trim(),n=Object.keys(this.functions).filter((function(t){return t.split("(")[0]===r}));return 0===n.length?g.throwArgumentError("no matching function","name",r):n.length>1&&g.throwArgumentError("multiple matching functions","name",r),this.functions[n[0]]}var i=this.functions[p.YW.fromString(t).format()];return i||g.throwArgumentError("no matching function","signature",t),i}},{key:"getEvent",value:function(t){if((0,c.A7)(t)){var e=t.toLowerCase();for(var r in this.events)if(e===this.getEventTopic(r))return this.events[r];g.throwArgumentError("no matching event","topichash",e)}if(-1===t.indexOf("(")){var n=t.trim(),i=Object.keys(this.events).filter((function(t){return t.split("(")[0]===n}));return 0===i.length?g.throwArgumentError("no matching event","name",n):i.length>1&&g.throwArgumentError("multiple matching events","name",n),this.events[i[0]]}var o=this.events[p.QV.fromString(t).format()];return o||g.throwArgumentError("no matching event","signature",t),o}},{key:"getError",value:function(t){if((0,c.A7)(t)){var e=(0,h.tu)(this.constructor,"getSighash");for(var r in this.errors){if(t===e(this.errors[r]))return this.errors[r]}g.throwArgumentError("no matching error","sighash",t)}if(-1===t.indexOf("(")){var n=t.trim(),i=Object.keys(this.errors).filter((function(t){return t.split("(")[0]===n}));return 0===i.length?g.throwArgumentError("no matching error","name",n):i.length>1&&g.throwArgumentError("multiple matching errors","name",n),this.errors[i[0]]}var o=this.errors[p.YW.fromString(t).format()];return o||g.throwArgumentError("no matching error","signature",t),o}},{key:"getSighash",value:function(t){if("string"===typeof t)try{t=this.getFunction(t)}catch(e){try{t=this.getError(t)}catch(r){throw e}}return(0,h.tu)(this.constructor,"getSighash")(t)}},{key:"getEventTopic",value:function(t){return"string"===typeof t&&(t=this.getEvent(t)),(0,h.tu)(this.constructor,"getEventTopic")(t)}},{key:"_decodeParams",value:function(t,e){return this._abiCoder.decode(t,e)}},{key:"_encodeParams",value:function(t,e){return this._abiCoder.encode(t,e)}},{key:"encodeDeploy",value:function(t){return this._encodeParams(this.deploy.inputs,t||[])}},{key:"decodeErrorResult",value:function(t,e){"string"===typeof t&&(t=this.getError(t));var r=(0,c.lE)(e);return(0,c.Dv)(r.slice(0,4))!==this.getSighash(t)&&g.throwArgumentError("data signature does not match error ".concat(t.name,"."),"data",(0,c.Dv)(r)),this._decodeParams(t.inputs,r.slice(4))}},{key:"encodeErrorResult",value:function(t,e){return"string"===typeof t&&(t=this.getError(t)),(0,c.Dv)((0,c.zo)([this.getSighash(t),this._encodeParams(t.inputs,e||[])]))}},{key:"decodeFunctionData",value:function(t,e){"string"===typeof t&&(t=this.getFunction(t));var r=(0,c.lE)(e);return(0,c.Dv)(r.slice(0,4))!==this.getSighash(t)&&g.throwArgumentError("data signature does not match function ".concat(t.name,"."),"data",(0,c.Dv)(r)),this._decodeParams(t.inputs,r.slice(4))}},{key:"encodeFunctionData",value:function(t,e){return"string"===typeof t&&(t=this.getFunction(t)),(0,c.Dv)((0,c.zo)([this.getSighash(t),this._encodeParams(t.inputs,e||[])]))}},{key:"decodeFunctionResult",value:function(t,e){"string"===typeof t&&(t=this.getFunction(t));var r=(0,c.lE)(e),n=null,i="",o=null,a=null,s=null;switch(r.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(t.outputs,r)}catch(f){}break;
2case 4:var u=(0,c.Dv)(r.slice(0,4)),l=x[u];if(l)o=this._abiCoder.decode(l.inputs,r.slice(4)),a=l.name,s=l.signature,l.reason&&(n=o[0]),"Error"===a?i="; VM Exception while processing transaction: reverted with reason string ".concat(JSON.stringify(o[0])):"Panic"===a&&(i="; VM Exception while processing transaction: reverted with panic code ".concat(o[0]));else try{var f=this.getError(u);o=this._abiCoder.decode(f.inputs,r.slice(4)),a=f.name,s=f.format()}catch(f){}}return g.throwError("call revert exception"+i,v.Yd.errors.CALL_EXCEPTION,{method:t.format(),data:(0,c.Dv)(e),errorArgs:o,errorName:a,errorSignature:s,reason:n})}},{key:"encodeFunctionResult",value:function(t,e){return"string"===typeof t&&(t=this.getFunction(t)),(0,c.Dv)(this._abiCoder.encode(t.outputs,e||[]))}},{key:"encodeFilterTopics",value:function(t,e){var r=this;"string"===typeof t&&(t=this.getEvent(t)),e.length>t.inputs.length&&g.throwError("too many arguments for "+t.format(),v.Yd.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:e});var n=[];t.anonymous||n.push(this.getEventTopic(t));var i=function(t,e){return"string"===t.type?(0,l.id)(e):"bytes"===t.type?(0,f.w)((0,c.Dv)(e)):("bool"===t.type&&"boolean"===typeof e&&(e=e?"0x01":"0x00"),t.type.match(/^u?int/)&&(e=u.O$.from(e).toHexString()),"address"===t.type&&r._abiCoder.encode(["address"],[e]),(0,c.$m)((0,c.Dv)(e),32))};for(e.forEach((function(e,r){var o=t.inputs[r];o.indexed?null==e?n.push(null):"array"===o.baseType||"tuple"===o.baseType?g.throwArgumentError("filtering with tuples or arrays not supported","contract."+o.name,e):Array.isArray(e)?n.push(e.map((function(t){return i(o,t)}))):n.push(i(o,e)):null!=e&&g.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+o.name,e)}));n.length&&null===n[n.length-1];)n.pop();return n}},{key:"encodeEventLog",value:function(t,e){var r=this;"string"===typeof t&&(t=this.getEvent(t));var n=[],i=[],o=[];return t.anonymous||n.push(this.getEventTopic(t)),e.length!==t.inputs.length&&g.throwArgumentError("event arguments/values mismatch","values",e),t.inputs.forEach((function(t,a){var s=e[a];if(t.indexed)if("string"===t.type)n.push((0,l.id)(s));else if("bytes"===t.type)n.push((0,f.w)(s));else{if("tuple"===t.baseType||"array"===t.baseType)throw new Error("not implemented");n.push(r._abiCoder.encode([t.type],[s]))}else i.push(t),o.push(s)})),{data:this._abiCoder.encode(i,o),topics:n}}},{key:"decodeEventLog",value:function(t,e,r){if("string"===typeof t&&(t=this.getEvent(t)),null!=r&&!t.anonymous){var n=this.getEventTopic(t);(0,c.A7)(r[0],32)&&r[0].toLowerCase()===n||g.throwError("fragment/topic mismatch",v.Yd.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:n,value:r[0]}),r=r.slice(1)}var i=[],o=[],a=[];
2t.inputs.forEach((function(t,e){t.indexed?"string"===t.type||"bytes"===t.type||"tuple"===t.baseType||"array"===t.baseType?(i.push(p._R.fromObject({type:"bytes32",name:t.name})),a.push(!0)):(i.push(t),a.push(!1)):(o.push(t),a.push(!1))}));var s=null!=r?this._abiCoder.decode(i,(0,c.zo)(r)):null,u=this._abiCoder.decode(o,e,!0),l=[],f=0,h=0;t.inputs.forEach((function(t,e){if(t.indexed)if(null==s)l[e]=new _({_isIndexed:!0,hash:null});else if(a[e])l[e]=new _({_isIndexed:!0,hash:s[h++]});else try{l[e]=s[h++]}catch(n){l[e]=n}else try{l[e]=u[f++]}catch(n){l[e]=n}if(t.name&&null==l[t.name]){var r=l[e];r instanceof Error?Object.defineProperty(l,t.name,{enumerable:!0,get:function(){throw E("property ".concat(JSON.stringify(t.name)),r)}}):l[t.name]=r}}));for(var d=function(t){var e=l[t];e instanceof Error&&Object.defineProperty(l,t,{enumerable:!0,get:function(){throw E("index ".concat(t),e)}})},m=0;m<l.length;m++)d(m);return Object.freeze(l)}},{key:"parseTransaction",value:function(t){var e=this.getFunction(t.data.substring(0,10).toLowerCase());return e?new b({args:this._abiCoder.decode(e.inputs,"0x"+t.data.substring(10)),functionFragment:e,name:e.name,signature:e.format(),sighash:this.getSighash(e),value:u.O$.from(t.value||"0")}):null}},{key:"parseLog",value:function(t){var e=this.getEvent(t.topics[0]);return!e||e.anonymous?null:new y({eventFragment:e,name:e.name,signature:e.format(),topic:this.getEventTopic(e),args:this.decodeEventLog(e,t.data,t.topics)})}},{key:"parseError",value:function(t){var e=(0,c.Dv)(t),r=this.getError(e.substring(0,10).toLowerCase());return r?new w({args:this._abiCoder.decode(r.inputs,"0x"+e.substring(10)),errorFragment:r,name:r.name,signature:r.format(),sighash:this.getSighash(r)}):null}}],[{key:"getAbiCoder",value:function(){return d.$}},{key:"getAddress",value:function(t){return(0,s.Kn)(t)}},{key:"getSighash",value:function(t){return(0,c.p3)((0,l.id)(t.format()),0,4)}},{key:"getEventTopic",value:function(t){return(0,l.id)(t.format())}},{key:"isInterface",value:function(t){return!(!t||!t._isInterface)}}]),t}()},15157:function(t,e,r){"use strict";r.d(e,{Sg:function(){return d},zt:function(){return p}});var n=r(74165),i=r(15671),o=r(43144),a=r(60136),s=r(29388),u=r(19560),c=r(54812),l=r(2735),f=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{u(n.next(t))}catch(e){o(e)}}function s(t){try{u(n.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},h=new l.Yd("abstract-provider/5.7.0"),d=function(t){(0,a.Z)(r,t);var e=(0,s.Z)(r);function r(){return(0,i.Z)(this,r),e.apply(this,arguments)}return(0,o.Z)(r,null,[{key:"isForkEvent",value:function(t){return!(!t||!t._isForkEvent)}}]),r}(c.dk),p=function(){function t(){(0,i.Z)(this,t),h.checkAbstract(this instanceof t?this.constructor:void 0,t),(0,c.zG)(this,"_isProvider",!0)}return(0,o.Z)(t,[{key:"getFeeData",value:function(){return f(this,void 0,void 0,(0,n.Z)().mark((function t(){var e,r,i,o,a,s;return(0,n.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,c.mE)({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch((function(t){return null}))});case 2:return e=t.sent,r=e.block,i=e.gasPrice,o=null,a=null,s=null,r&&r.baseFeePerGas&&(o=r.baseFeePerGas,s=u.O$.from("1500000000"),a=r.baseFeePerGas.mul(2).add(s)),t.abrupt("return",{lastBaseFeePerGas:o,maxFeePerGas:a,maxPriorityFeePerGas:s,gasPrice:i});case 8:case"end":return t.stop()}}),t,this)})))}},{key:"addListener",value:function(t,e){return this.on(t,e)}},{key:"removeListener",value:function(t,e){return this.off(t,e)}}],[{key:"isProvider",value:function(t){return!(!t||!t._isProvider)}}]),t}()},72388:function(t,e,r){"use strict";r.d(e,{E:function(){return v},b:function(){return m}});var n=r(97326),i=r(60136),o=r(29388),a=r(74165),s=r(15671),u=r(43144),c=r(54812),l=r(2735),f=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{u(n.next(t))}catch(e){o(e)}}function s(t){try{u(n.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},h=new l.Yd("abstract-signer/5.7.0"),d=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","
2nonce","to","type","value"],p=[l.Yd.errors.INSUFFICIENT_FUNDS,l.Yd.errors.NONCE_EXPIRED,l.Yd.errors.REPLACEMENT_UNDERPRICED],v=function(){function t(){(0,s.Z)(this,t),h.checkAbstract(this instanceof t?this.constructor:void 0,t),(0,c.zG)(this,"_isSigner",!0)}return(0,u.Z)(t,[{key:"getBalance",value:function(t){return f(this,void 0,void 0,(0,a.Z)().mark((function e(){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._checkProvider("getBalance"),e.next=3,this.provider.getBalance(this.getAddress(),t);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})))}},{key:"getTransactionCount",value:function(t){return f(this,void 0,void 0,(0,a.Z)().mark((function e(){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._checkProvider("getTransactionCount"),e.next=3,this.provider.getTransactionCount(this.getAddress(),t);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})))}},{key:"estimateGas",value:function(t){return f(this,void 0,void 0,(0,a.Z)().mark((function e(){var r;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._checkProvider("estimateGas"),e.next=3,(0,c.mE)(this.checkTransaction(t));case 3:return r=e.sent,e.next=6,this.provider.estimateGas(r);case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}}),e,this)})))}},{key:"call",value:function(t,e){return f(this,void 0,void 0,(0,a.Z)().mark((function r(){var n;return(0,a.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return this._checkProvider("call"),r.next=3,(0,c.mE)(this.checkTransaction(t));case 3:return n=r.sent,r.next=6,this.provider.call(n,e);case 6:return r.abrupt("return",r.sent);case 7:case"end":return r.stop()}}),r,this)})))}},{key:"sendTransaction",value:function(t){return f(this,void 0,void 0,(0,a.Z)().mark((function e(){var r,n;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._checkProvider("sendTransaction"),e.next=3,this.populateTransaction(t);case 3:return r=e.sent,e.next=6,this.signTransaction(r);case 6:return n=e.sent,e.next=9,this.provider.sendTransaction(n);case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e,this)})))}},{key:"getChainId",value:function(){return f(this,void 0,void 0,(0,a.Z)().mark((function t(){var e;return(0,a.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._checkProvider("getChainId"),t.next=3,this.provider.getNetwork();case 3:return e=t.sent,t.abrupt("return",e.chainId);case 5:case"end":return t.stop()}}),t,this)})))}},{key:"getGasPrice",value:function(){return f(this,void 0,void 0,(0,a.Z)().mark((function t(){return(0,a.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._checkProvider("getGasPrice"),t.next=3,this.provider.getGasPrice();case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)})))}},{key:"getFeeData",value:function(){return f(this,void 0,void 0,(0,a.Z)().mark((function t(){return(0,a.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._checkProvider("getFeeData"),t.next=3,this.provider.getFeeData();case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)})))}},{key:"resolveName",value:function(t){return f(this,void 0,void 0,(0,a.Z)().mark((function e(){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._checkProvider("resolveName"),e.next=3,this.provider.resolveName(t);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})))}},{key:"checkTransaction",value:function(t){for(var e in t)-1===d.indexOf(e)&&h.throwArgumentError("invalid transaction key: "+e,"transaction",t);var r=(0,c.DC)(t);return null==r.from?r.from=this.getAddress():r.from=Promise.all([Promise.resolve(r.from),this.getAddress()]).then((function(e){return e[0].toLowerCase()!==e[1].toLowerCase()&&h.throwArgumentError("from address mismatch","transaction",t),e[0]})),r}},{key:"populateTransaction",value:function(t){return f(this,void 0,void 0,(0,a.Z)().mark((function e(){var r,n,i,o,s=this;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.mE)(this.checkTransaction(t));case 2:if(null!=(r=e.sent).to&&(r.to=Promise.resolve(r.to).then((function(t){return f(s,void 0,void 0,(0,a.Z)().mark((function e(){var r;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=t){e.next=2;break}return e.abrupt("return",null);case 2:return e.next=4,this.resolveName(t);case 4:return null==(r=e.sent)&&h.throwArgumentError("provided ENS name resolves to null","tx.to",t),e.abrupt("return",r);case 7:case"end":return e.stop()}}),e,this)})))})),r.to.catch((function(t){}))),n=null!=r.maxFeePerGas||null!=r.maxPriorityFeePerGas,null==r.gasPrice||2!==r.type&&!n?0!==r.type&&1!==r.type||!n||h.throwArgumentError("pre-eip-1559 transaction do n
2ot support maxFeePerGas/maxPriorityFeePerGas","transaction",t):h.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",t),2!==r.type&&null!=r.type||null==r.maxFeePerGas||null==r.maxPriorityFeePerGas){e.next=10;break}r.type=2,e.next=18;break;case 10:if(0!==r.type&&1!==r.type){e.next=14;break}null==r.gasPrice&&(r.gasPrice=this.getGasPrice()),e.next=18;break;case 14:return e.next=16,this.getFeeData();case 16:i=e.sent,null==r.type?null!=i.maxFeePerGas&&null!=i.maxPriorityFeePerGas?(r.type=2,null!=r.gasPrice?(o=r.gasPrice,delete r.gasPrice,r.maxFeePerGas=o,r.maxPriorityFeePerGas=o):(null==r.maxFeePerGas&&(r.maxFeePerGas=i.maxFeePerGas),null==r.maxPriorityFeePerGas&&(r.maxPriorityFeePerGas=i.maxPriorityFeePerGas))):null!=i.gasPrice?(n&&h.throwError("network does not support EIP-1559",l.Yd.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),null==r.gasPrice&&(r.gasPrice=i.gasPrice),r.type=0):h.throwError("failed to get consistent fee data",l.Yd.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"}):2===r.type&&(null==r.maxFeePerGas&&(r.maxFeePerGas=i.maxFeePerGas),null==r.maxPriorityFeePerGas&&(r.maxPriorityFeePerGas=i.maxPriorityFeePerGas));case 18:return null==r.nonce&&(r.nonce=this.getTransactionCount("pending")),null==r.gasLimit&&(r.gasLimit=this.estimateGas(r).catch((function(t){if(p.indexOf(t.code)>=0)throw t;return h.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",l.Yd.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,tx:r})}))),null==r.chainId?r.chainId=this.getChainId():r.chainId=Promise.all([Promise.resolve(r.chainId),this.getChainId()]).then((function(e){return 0!==e[1]&&e[0]!==e[1]&&h.throwArgumentError("chainId address mismatch","transaction",t),e[0]})),e.next=23,(0,c.mE)(r);case 23:return e.abrupt("return",e.sent);case 24:case"end":return e.stop()}}),e,this)})))}},{key:"_checkProvider",value:function(t){this.provider||h.throwError("missing provider",l.Yd.errors.UNSUPPORTED_OPERATION,{operation:t||"_checkProvider"})}}],[{key:"isSigner",value:function(t){return!(!t||!t._isSigner)}}]),t}(),m=function(t){(0,i.Z)(r,t);var e=(0,o.Z)(r);function r(t,i){var o;return(0,s.Z)(this,r),o=e.call(this),(0,c.zG)((0,n.Z)(o),"address",t),(0,c.zG)((0,n.Z)(o),"provider",i||null),o}return(0,u.Z)(r,[{key:"getAddress",value:function(){return Promise.resolve(this.address)}},{key:"_fail",value:function(t,e){return Promise.resolve().then((function(){h.throwError(t,l.Yd.errors.UNSUPPORTED_OPERATION,{operation:e})}))}},{key:"signMessage",value:function(t){return this._fail("VoidSigner cannot sign messages","signMessage")}},{key:"signTransaction",value:function(t){return this._fail("VoidSigner cannot sign transactions","signTransaction")}},{key:"_signTypedData",value:function(t,e,r){return this._fail("VoidSigner cannot sign typed data","signTypedData")}},{key:"connect",value:function(t){return new r(this.address,t)}}]),r}(v)},28552:function(t,e,r){"use strict";r.d(e,{Kn:function(){return v},CR:function(){return y},hB:function(){return b},vU:function(){return g},UJ:function(){return m}});var n=r(52009),i=r(19560),o=r(11291),a=r(80807),s=new(r(2735).Yd)("address/5.7.0");function u(t){(0,n.A7)(t,20)||s.throwArgumentError("invalid address","address",t);for(var e=(t=t.toLowerCase()).substring(2).split(""),r=new Uint8Array(40),i=0;i<40;i++)r[i]=e[i].charCodeAt(0);for(var a=(0,n.lE)((0,o.w)(r)),u=0;u<40;u+=2)a[u>>1]>>4>=8&&(e[u]=e[u].toUpperCase()),(15&a[u>>1])>=8&&(e[u+1]=e[u+1].toUpperCase());return"0x"+e.join("")}for(var c={},l=0;l<10;l++)c[String(l)]=String(l);for(var f=0;f<26;f++)c[String.fromCharCode(65+f)]=String(10+f);var h,d=Math.floor((h=9007199254740991,Math.log10?Math.log10(h):Math.log(h)/Math.LN10));function p(t){for(var e=(t=(t=t.toUpperCase()).substring(4)+t.substring(0,2)+"00").split("").map((function(t){return c[t]})).join("");e.length>=d;){var r=e.substring(0,d);e=parseInt(r,10)%97+e.substring(r.length)}for(var n=String(98-parseInt(e,10)%97);n.length<2;)n="0"+n;return n}function v(t){var e=null;if("string"!==typeof t&&s.throwArgumentError("invalid address","address",t),t.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==t.substring(0,2)&&(t="0x"+t),e=u(t),t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==t&&s.throwArgumentError("bad address checksum","address",t);else if(t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(t.substring(2,4)!==p(t)&&s.throwArgumentError("bad icap checksum","address",t),e=(0,i.g$)(t.substring(4));e.length<40;)e="0"+e;e=u("0x"+e)}else s.throwArgumentError("invalid address","address",t);return e}function m(t){try{return v(t),!0}catch(e){}return!1}function g(t){for(var e=(0,i.t2)(v(t).substring(2)).toUpperCase();e.length<30;)e="0"+e;return"XE"+p("XE00"+e)+e}function y(t){var e=null;try{e=v(t.from)}catch(u){s.throwArgumentError("missing from address","transaction",t)}
2var r=(0,n.G1)((0,n.lE)(i.O$.from(t.nonce).toHexString()));return v((0,n.p3)((0,o.w)((0,a.encode)([e,r])),12))}function b(t,e,r){return 32!==(0,n.E1)(e)&&s.throwArgumentError("salt must be 32 bytes","salt",e),32!==(0,n.E1)(r)&&s.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",r),v((0,n.p3)((0,o.w)((0,n.zo)(["0xff",v(t),e,r])),12))}},44227:function(t,e,r){"use strict";r.d(e,{i:function(){return n}});var n="bignumber/5.7.0"},19560:function(t,e,r){"use strict";r.d(e,{O$:function(){return m},Zm:function(){return p},g$:function(){return _},t2:function(){return x}});var n=r(15671),i=r(43144),o=r(64166),a=r.n(o),s=r(52009),u=r(2735),c=r(44227),l=a().BN,f=new u.Yd(c.i),h={},d=9007199254740991;function p(t){return null!=t&&(m.isBigNumber(t)||"number"===typeof t&&t%1===0||"string"===typeof t&&!!t.match(/^-?[0-9]+$/)||(0,s.A7)(t)||"bigint"===typeof t||(0,s._t)(t))}var v=!1,m=function(){function t(e,r){(0,n.Z)(this,t),e!==h&&f.throwError("cannot call constructor directly; use BigNumber.from",u.Yd.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=r,this._isBigNumber=!0,Object.freeze(this)}return(0,i.Z)(t,[{key:"fromTwos",value:function(t){return y(b(this).fromTwos(t))}},{key:"toTwos",value:function(t){return y(b(this).toTwos(t))}},{key:"abs",value:function(){return"-"===this._hex[0]?t.from(this._hex.substring(1)):this}},{key:"add",value:function(t){return y(b(this).add(b(t)))}},{key:"sub",value:function(t){return y(b(this).sub(b(t)))}},{key:"div",value:function(e){return t.from(e).isZero()&&w("division-by-zero","div"),y(b(this).div(b(e)))}},{key:"mul",value:function(t){return y(b(this).mul(b(t)))}},{key:"mod",value:function(t){var e=b(t);return e.isNeg()&&w("division-by-zero","mod"),y(b(this).umod(e))}},{key:"pow",value:function(t){var e=b(t);return e.isNeg()&&w("negative-power","pow"),y(b(this).pow(e))}},{key:"and",value:function(t){var e=b(t);return(this.isNegative()||e.isNeg())&&w("unbound-bitwise-result","and"),y(b(this).and(e))}},{key:"or",value:function(t){var e=b(t);return(this.isNegative()||e.isNeg())&&w("unbound-bitwise-result","or"),y(b(this).or(e))}},{key:"xor",value:function(t){var e=b(t);return(this.isNegative()||e.isNeg())&&w("unbound-bitwise-result","xor"),y(b(this).xor(e))}},{key:"mask",value:function(t){return(this.isNegative()||t<0)&&w("negative-width","mask"),y(b(this).maskn(t))}},{key:"shl",value:function(t){return(this.isNegative()||t<0)&&w("negative-width","shl"),y(b(this).shln(t))}},{key:"shr",value:function(t){return(this.isNegative()||t<0)&&w("negative-width","shr"),y(b(this).shrn(t))}},{key:"eq",value:function(t){return b(this).eq(b(t))}},{key:"lt",value:function(t){return b(this).lt(b(t))}},{key:"lte",value:function(t){return b(this).lte(b(t))}},{key:"gt",value:function(t){return b(this).gt(b(t))}},{key:"gte",value:function(t){return b(this).gte(b(t))}},{key:"isNegative",value:function(){return"-"===this._hex[0]}},{key:"isZero",value:function(){return b(this).isZero()}},{key:"toNumber",value:function(){try{return b(this).toNumber()}catch(t){w("overflow","toNumber",this.toString())}return null}},{key:"toBigInt",value:function(){try{return BigInt(this.toString())}catch(t){}return f.throwError("this platform does not support BigInt",u.Yd.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}},{key:"toString",value:function(){return arguments.length>0&&(10===arguments[0]?v||(v=!0,f.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?f.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",u.Yd.errors.UNEXPECTED_ARGUMENT,{}):f.throwError("BigNumber.toString does not accept parameters",u.Yd.errors.UNEXPECTED_ARGUMENT,{})),b(this).toString(10)}},{key:"toHexString",value:function(){return this._hex}},{key:"toJSON",value:function(t){return{type:"BigNumber",hex:this.toHexString()}}}],[{key:"from",value:function(e){if(e instanceof t)return e;if("string"===typeof e)return e.match(/^-?0x[0-9a-f]+$/i)?new t(h,g(e)):e.match(/^-?[0-9]+$/)?new t(h,g(new l(e))):f.throwArgumentError("invalid BigNumber string","value",e);if("number"===typeof e)return e%1&&w("underflow","BigNumber.from",e),(e>=d||e<=-d)&&w("overflow","BigNumber.from",e),t.from(String(e));var r=e;if("bigint"===typeof r)return t.from(r.toString());if((0,s._t)(r))return t.from((0,s.Dv)(r));if(r)if(r.toHexString){var n=r.toHexString();if("string"===typeof n)return t.from(n)}else{var i=r._hex;if(null==i&&"BigNumber"===r.type&&(i=r.hex),"string"===typeof i&&((0,s.A7)(i)||"-"===i[0]&&(0,s.A7)(i.substring(1))))return t.from(i)}return f.throwArgumentError("invalid BigNumber value","value",e)}},{key:"isBigNumber",value:function(t){return!(!t||!t._isBigNumber)}}]),t}();function g(t){if("string"!==typeof t)return g(t.toString(16));if("-"===t[0])return"-"===(t=t.substring(1))[0]&&f.throwArgumentError("invalid hex","value",t),"0x00"===(t=g(t))?t:"-"+t;
2if("0x"!==t.substring(0,2)&&(t="0x"+t),"0x"===t)return"0x00";for(t.length%2&&(t="0x0"+t.substring(2));t.length>4&&"0x00"===t.substring(0,4);)t="0x"+t.substring(4);return t}function y(t){return m.from(g(t))}function b(t){var e=m.from(t).toHexString();return"-"===e[0]?new l("-"+e.substring(3),16):new l(e.substring(2),16)}function w(t,e,r){var n={fault:t,operation:e};return null!=r&&(n.value=r),f.throwError(t,u.Yd.errors.NUMERIC_FAULT,n)}function _(t){return new l(t,36).toString(16)}function x(t){return new l(t,16).toString(36)}},52009:function(t,e,r){"use strict";r.d(e,{lE:function(){return c},zo:function(){return l},xs:function(){return y},E1:function(){return m},p3:function(){return g},Ou:function(){return w},$P:function(){return b},$m:function(){return _},Dv:function(){return v},_t:function(){return u},Zq:function(){return a},A7:function(){return d},gV:function(){return E},N:function(){return x},G1:function(){return f},Bu:function(){return h}});var n=new(r(2735).Yd)("bytes/5.7.0");function i(t){return!!t.toHexString}function o(t){return t.slice||(t.slice=function(){var e=Array.prototype.slice.call(arguments);return o(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function a(t){return d(t)&&!(t.length%2)||u(t)}function s(t){return"number"===typeof t&&t==t&&t%1===0}function u(t){if(null==t)return!1;if(t.constructor===Uint8Array)return!0;if("string"===typeof t)return!1;if(!s(t.length)||t.length<0)return!1;for(var e=0;e<t.length;e++){var r=t[e];if(!s(r)||r<0||r>=256)return!1}return!0}function c(t,e){if(e||(e={}),"number"===typeof t){n.checkSafeUint53(t,"invalid arrayify value");for(var r=[];t;)r.unshift(255&t),t=parseInt(String(t/256));return 0===r.length&&r.push(0),o(new Uint8Array(r))}if(e.allowMissingPrefix&&"string"===typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),i(t)&&(t=t.toHexString()),d(t)){var a=t.substring(2);a.length%2&&("left"===e.hexPad?a="0"+a:"right"===e.hexPad?a+="0":n.throwArgumentError("hex data is odd-length","value",t));for(var s=[],c=0;c<a.length;c+=2)s.push(parseInt(a.substring(c,c+2),16));return o(new Uint8Array(s))}return u(t)?o(new Uint8Array(t)):n.throwArgumentError("invalid arrayify value","value",t)}function l(t){var e=t.map((function(t){return c(t)})),r=e.reduce((function(t,e){return t+e.length}),0),n=new Uint8Array(r);return e.reduce((function(t,e){return n.set(e,t),t+e.length}),0),o(n)}function f(t){var e=c(t);if(0===e.length)return e;for(var r=0;r<e.length&&0===e[r];)r++;return r&&(e=e.slice(r)),e}function h(t,e){(t=c(t)).length>e&&n.throwArgumentError("value out of range","value",arguments[0]);var r=new Uint8Array(e);return r.set(t,e-t.length),o(r)}function d(t,e){return!("string"!==typeof t||!t.match(/^0x[0-9A-Fa-f]*$/))&&(!e||t.length===2+2*e)}var p="0123456789abcdef";function v(t,e){if(e||(e={}),"number"===typeof t){n.checkSafeUint53(t,"invalid hexlify value");for(var r="";t;)r=p[15&t]+r,t=Math.floor(t/16);return r.length?(r.length%2&&(r="0"+r),"0x"+r):"0x00"}if("bigint"===typeof t)return(t=t.toString(16)).length%2?"0x0"+t:"0x"+t;if(e.allowMissingPrefix&&"string"===typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),i(t))return t.toHexString();if(d(t))return t.length%2&&("left"===e.hexPad?t="0x0"+t.substring(2):"right"===e.hexPad?t+="0":n.throwArgumentError("hex data is odd-length","value",t)),t.toLowerCase();if(u(t)){for(var o="0x",a=0;a<t.length;a++){var s=t[a];o+=p[(240&s)>>4]+p[15&s]}return o}return n.throwArgumentError("invalid hexlify value","value",t)}function m(t){if("string"!==typeof t)t=v(t);else if(!d(t)||t.length%2)return null;return(t.length-2)/2}function g(t,e,r){return"string"!==typeof t?t=v(t):(!d(t)||t.length%2)&&n.throwArgumentError("invalid hexData","value",t),e=2+2*e,null!=r?"0x"+t.substring(e,2+2*r):"0x"+t.substring(e)}function y(t){var e="0x";return t.forEach((function(t){e+=v(t).substring(2)})),e}function b(t){var e=w(v(t,{hexPad:"left"}));return"0x"===e?"0x0":e}function w(t){"string"!==typeof t&&(t=v(t)),d(t)||n.throwArgumentError("invalid hex string","value",t),t=t.substring(2);for(var e=0;e<t.length&&"0"===t[e];)e++;return"0x"+t.substring(e)}function _(t,e){for("string"!==typeof t?t=v(t):d(t)||n.throwArgumentError("invalid hex string","value",t),t.length>2*e+2&&n.throwArgumentError("value out of range","value",arguments[1]);t.length<2*e+2;)t="0x0"+t.substring(2);return t}function x(t){var e={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"
20x"};if(a(t)){var r=c(t);64===r.length?(e.v=27+(r[32]>>7),r[32]&=127,e.r=v(r.slice(0,32)),e.s=v(r.slice(32,64))):65===r.length?(e.r=v(r.slice(0,32)),e.s=v(r.slice(32,64)),e.v=r[64]):n.throwArgumentError("invalid signature string","signature",t),e.v<27&&(0===e.v||1===e.v?e.v+=27:n.throwArgumentError("signature invalid v byte","signature",t)),e.recoveryParam=1-e.v%2,e.recoveryParam&&(r[32]|=128),e._vs=v(r.slice(32,64))}else{if(e.r=t.r,e.s=t.s,e.v=t.v,e.recoveryParam=t.recoveryParam,e._vs=t._vs,null!=e._vs){var i=h(c(e._vs),32);e._vs=v(i);var o=i[0]>=128?1:0;null==e.recoveryParam?e.recoveryParam=o:e.recoveryParam!==o&&n.throwArgumentError("signature recoveryParam mismatch _vs","signature",t),i[0]&=127;var s=v(i);null==e.s?e.s=s:e.s!==s&&n.throwArgumentError("signature v mismatch _vs","signature",t)}if(null==e.recoveryParam)null==e.v?n.throwArgumentError("signature missing v and recoveryParam","signature",t):0===e.v||1===e.v?e.recoveryParam=e.v:e.recoveryParam=1-e.v%2;else if(null==e.v)e.v=27+e.recoveryParam;else{var u=0===e.v||1===e.v?e.v:1-e.v%2;e.recoveryParam!==u&&n.throwArgumentError("signature recoveryParam mismatch v","signature",t)}null!=e.r&&d(e.r)?e.r=_(e.r,32):n.throwArgumentError("signature missing or invalid r","signature",t),null!=e.s&&d(e.s)?e.s=_(e.s,32):n.throwArgumentError("signature missing or invalid s","signature",t);var l=c(e.s);l[0]>=128&&n.throwArgumentError("signature s out of range","signature",t),e.recoveryParam&&(l[0]|=128);var f=v(l);e._vs&&(d(e._vs)||n.throwArgumentError("signature invalid _vs","signature",t),e._vs=_(e._vs,32)),null==e._vs?e._vs=f:e._vs!==f&&n.throwArgumentError("signature _vs mismatch v and s","signature",t)}return e.yParityAndS=e._vs,e.compact=e.r+e.yParityAndS.substring(2),e}function E(t){return v(l([(t=x(t)).r,t.s,t.recoveryParam?"0x1c":"0x1b"]))}},6321:function(t,e,r){"use strict";r.d(e,{$B:function(){return l},Bz:function(){return c},Ce:function(){return u},PS:function(){return f},Py:function(){return s},_Y:function(){return o},fh:function(){return a},tL:function(){return i}});var n=r(19560),i=n.O$.from(-1),o=n.O$.from(0),a=n.O$.from(1),s=n.O$.from(2),u=n.O$.from("1000000000000000000"),c=n.O$.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),l=n.O$.from("-0x8000000000000000000000000000000000000000000000000000000000000000"),f=n.O$.from("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff")},93358:function(t,e,r){"use strict";r.d(e,{id:function(){return o}});var n=r(11291),i=r(91953);function o(t){return(0,n.w)((0,i.Y0)(t))}},11291:function(t,e,r){"use strict";r.d(e,{w:function(){return a}});var n=r(37676),i=r.n(n),o=r(52009);function a(t){return"0x"+i().keccak_256((0,o.lE)(t))}},2735:function(t,e,r){"use strict";r.d(e,{jK:function(){return f},Yd:function(){return p}});var n=r(15671),i=r(43144),o=!1,a=!1,s={debug:1,default:2,info:2,warning:3,error:4,off:5},u=s.default,c=null;var l,f,h=function(){try{var t=[];if(["NFD","NFC","NFKD","NFKC"].forEach((function(e){try{if("test"!=="test".normalize(e))throw new Error("bad normalize")}catch(r){t.push(e)}})),t.length)throw new Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(e){return e.message}return null}();!function(t){t.DEBUG="DEBUG",t.INFO="INFO",t.WARNING="WARNING",t.ERROR="ERROR",t.OFF="OFF"}(l||(l={})),function(t){t.UNKNOWN_ERROR="UNKNOWN_ERROR",t.NOT_IMPLEMENTED="NOT_IMPLEMENTED",t.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",t.NETWORK_ERROR="NETWORK_ERROR",t.SERVER_ERROR="SERVER_ERROR",t.TIMEOUT="TIMEOUT",t.BUFFER_OVERRUN="BUFFER_OVERRUN",t.NUMERIC_FAULT="NUMERIC_FAULT",t.MISSING_NEW="MISSING_NEW",t.INVALID_ARGUMENT="INVALID_ARGUMENT",t.MISSING_ARGUMENT="MISSING_ARGUMENT",t.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",t.CALL_EXCEPTION="CALL_EXCEPTION",t.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",t.NONCE_EXPIRED="NONCE_EXPIRED",t.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",t.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",t.TRANSACTION_REPLACED="TRANSACTION_REPLACED",t.ACTION_REJECTED="ACTION_REJECTED"}(f||(f={}));var d="0123456789abcdef",p=function(){function t(e){(0,n.Z)(this,t),Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}return(0,i.Z)(t,[{key:"_log",value:function(t,e){var r=t.toLowerCase();null==s[r]&&this.throwArgumentError("invalid log level name","logLevel",t),u>s[r]||console.log.apply(console,e)}},{key:"debug",value:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];this._log(t.levels.DEBUG,r)}},{key:"info",value:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];this._log(t.levels.INFO,r)}},{key:"warn",value:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];this._log(t.levels.WARNING,r)}},{key:"makeError",value:function(e,r,n){if(a)return this.makeError("censored error",r,{});r||(r=t.errors.UNKNOWN_ERROR),n||(n={});var i=[];
2Object.keys(n).forEach((function(t){var e=n[t];try{if(e instanceof Uint8Array){for(var r="",o=0;o<e.length;o++)r+=d[e[o]>>4],r+=d[15&e[o]];i.push(t+"=Uint8Array(0x"+r+")")}else i.push(t+"="+JSON.stringify(e))}catch(c){i.push(t+"="+JSON.stringify(n[t].toString()))}})),i.push("code=".concat(r)),i.push("version=".concat(this.version));var o=e,s="";switch(r){case f.NUMERIC_FAULT:s="NUMERIC_FAULT";var u=e;switch(u){case"overflow":case"underflow":case"division-by-zero":s+="-"+u;break;case"negative-power":case"negative-width":s+="-unsupported";break;case"unbound-bitwise-result":s+="-unbound-result"}break;case f.CALL_EXCEPTION:case f.INSUFFICIENT_FUNDS:case f.MISSING_NEW:case f.NONCE_EXPIRED:case f.REPLACEMENT_UNDERPRICED:case f.TRANSACTION_REPLACED:case f.UNPREDICTABLE_GAS_LIMIT:s=r}s&&(e+=" [ See: https://links.ethers.org/v5-errors-"+s+" ]"),i.length&&(e+=" ("+i.join(", ")+")");var c=new Error(e);return c.reason=o,c.code=r,Object.keys(n).forEach((function(t){c[t]=n[t]})),c}},{key:"throwError",value:function(t,e,r){throw this.makeError(t,e,r)}},{key:"throwArgumentError",value:function(e,r,n){return this.throwError(e,t.errors.INVALID_ARGUMENT,{argument:r,value:n})}},{key:"assert",value:function(t,e,r,n){t||this.throwError(e,r,n)}},{key:"assertArgument",value:function(t,e,r,n){t||this.throwArgumentError(e,r,n)}},{key:"checkNormalize",value:function(e){null==e&&(e="platform missing String.prototype.normalize"),h&&this.throwError("platform missing String.prototype.normalize",t.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:h})}},{key:"checkSafeUint53",value:function(e,r){"number"===typeof e&&(null==r&&(r="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(r,t.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(r,t.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}},{key:"checkArgumentCount",value:function(e,r,n){n=n?": "+n:"",e<r&&this.throwError("missing argument"+n,t.errors.MISSING_ARGUMENT,{count:e,expectedCount:r}),e>r&&this.throwError("too many arguments"+n,t.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:r})}},{key:"checkNew",value:function(e,r){e!==Object&&null!=e||this.throwError("missing new",t.errors.MISSING_NEW,{name:r.name})}},{key:"checkAbstract",value:function(e,r){e===r?this.throwError("cannot instantiate abstract class "+JSON.stringify(r.name)+" directly; use a sub-class",t.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):e!==Object&&null!=e||this.throwError("missing new",t.errors.MISSING_NEW,{name:r.name})}}],[{key:"globalLogger",value:function(){return c||(c=new t("logger/5.7.0")),c}},{key:"setCensorship",value:function(e,r){if(!e&&r&&this.globalLogger().throwError("cannot permanently disable censorship",t.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),o){if(!e)return;this.globalLogger().throwError("error censorship permanent",t.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}a=!!e,o=!!r}},{key:"setLogLevel",value:function(e){var r=s[e.toLowerCase()];null!=r?u=r:t.globalLogger().warn("invalid log level - "+e)}},{key:"from",value:function(e){return new t(e)}}]),t}();p.errors=f,p.levels=l},54812:function(t,e,r){"use strict";r.d(e,{dk:function(){return y},uj:function(){return h},p$:function(){return g},zG:function(){return c},tu:function(){return l},mE:function(){return f},DC:function(){return d}});var n=r(43144),i=r(15671),o=r(74165),a=r(2735),s=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{u(n.next(t))}catch(e){o(e)}}function s(t){try{u(n.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},u=new a.Yd("properties/5.7.0");function c(t,e,r){Object.defineProperty(t,e,{enumerable:!0,value:r,writable:!1})}function l(t,e){for(var r=0;r<32;r++){if(t[e])return t[e];if(!t.prototype||"object"!==typeof t.prototype)break;t=Object.getPrototypeOf(t.prototype).constructor}return null}function f(t){return s(this,void 0,void 0,(0,o.Z)().mark((function e(){var r,n;return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Object.keys(t).map((function(e){var r=t[e];return Promise.resolve(r).then((function(t){return{key:e,value:t}}))})),e.next=3,Promise.all(r);case 3:return n=e.sent,e.abrupt("return",n.reduce((function(t,e){return t[e.key]=e.value,t}),{}));case 5:case"end":return e.stop()}}),e)})))}function h(t,e){t&&"object"===typeof t||u.throwArgumentError("invalid object","object",t),Object.keys(t).forEach((function(r){e[r]||u.throwArgumentError("invalid object key - "+r,"transaction:"+r,t)}))}function d(t){var e={};for(var r in t)e[r]=t[r];return e}var p={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function v(t){if(void 0===t||null===t||p[typeof t])return!0;
2if(Array.isArray(t)||"object"===typeof t){if(!Object.isFrozen(t))return!1;for(var e=Object.keys(t),r=0;r<e.length;r++){var n=null;try{n=t[e[r]]}catch(i){continue}if(!v(n))return!1}return!0}return u.throwArgumentError("Cannot deepCopy ".concat(typeof t),"object",t)}function m(t){if(v(t))return t;if(Array.isArray(t))return Object.freeze(t.map((function(t){return g(t)})));if("object"===typeof t){var e={};for(var r in t){var n=t[r];void 0!==n&&c(e,r,g(n))}return e}return u.throwArgumentError("Cannot deepCopy ".concat(typeof t),"object",t)}function g(t){return m(t)}var y=(0,n.Z)((function t(e){for(var r in(0,i.Z)(this,t),e)this[r]=g(e[r])}))},80807:function(t,e,r){"use strict";r.r(e),r.d(e,{decode:function(){return h},encode:function(){return c}});var n=r(52009),i=r(2735),o=new i.Yd("rlp/5.7.0");function a(t){for(var e=[];t;)e.unshift(255&t),t>>=8;return e}function s(t,e,r){for(var n=0,i=0;i<r;i++)n=256*n+t[e+i];return n}function u(t){if(Array.isArray(t)){var e=[];if(t.forEach((function(t){e=e.concat(u(t))})),e.length<=55)return e.unshift(192+e.length),e;var r=a(e.length);return r.unshift(247+r.length),r.concat(e)}(0,n.Zq)(t)||o.throwArgumentError("RLP object must be BytesLike","object",t);var i=Array.prototype.slice.call((0,n.lE)(t));if(1===i.length&&i[0]<=127)return i;if(i.length<=55)return i.unshift(128+i.length),i;var s=a(i.length);return s.unshift(183+s.length),s.concat(i)}function c(t){return(0,n.Dv)(u(t))}function l(t,e,r,n){for(var a=[];r<e+1+n;){var s=f(t,r);a.push(s.result),(r+=s.consumed)>e+1+n&&o.throwError("child data too short",i.Yd.errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:a}}function f(t,e){if(0===t.length&&o.throwError("data too short",i.Yd.errors.BUFFER_OVERRUN,{}),t[e]>=248){var r=t[e]-247;e+1+r>t.length&&o.throwError("data short segment too short",i.Yd.errors.BUFFER_OVERRUN,{});var a=s(t,e+1,r);return e+1+r+a>t.length&&o.throwError("data long segment too short",i.Yd.errors.BUFFER_OVERRUN,{}),l(t,e,e+1+r,r+a)}if(t[e]>=192){var u=t[e]-192;return e+1+u>t.length&&o.throwError("data array too short",i.Yd.errors.BUFFER_OVERRUN,{}),l(t,e,e+1,u)}if(t[e]>=184){var c=t[e]-183;e+1+c>t.length&&o.throwError("data array too short",i.Yd.errors.BUFFER_OVERRUN,{});var f=s(t,e+1,c);return e+1+c+f>t.length&&o.throwError("data array too short",i.Yd.errors.BUFFER_OVERRUN,{}),{consumed:1+c+f,result:(0,n.Dv)(t.slice(e+1+c,e+1+c+f))}}if(t[e]>=128){var h=t[e]-128;return e+1+h>t.length&&o.throwError("data too short",i.Yd.errors.BUFFER_OVERRUN,{}),{consumed:1+h,result:(0,n.Dv)(t.slice(e+1,e+1+h))}}return{consumed:1,result:(0,n.Dv)(t[e])}}function h(t){var e=(0,n.lE)(t),r=f(e,0);return r.consumed!==e.length&&o.throwArgumentError("invalid rlp data","data",t),r.result}},64760:function(t,e,r){"use strict";r.d(e,{Et:function(){return Y},VW:function(){return J},LO:function(){return X}});var n=r(15671),i=r(43144),o=r(64166),a=r.n(o),s=r(37553),u=r.n(s);"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof r.g?r.g:"undefined"!==typeof self&&self;function c(t,e,r){return r={path:e,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}((void 0===e||null===e)&&r.path)}},t(r,r.exports),r.exports}var l=f;function f(t,e){if(!t)throw new Error(e||"Assertion failed")}f.equal=function(t,e,r){if(t!=e)throw new Error(r||"Assertion failed: "+t+" != "+e)};var h=c((function(t,e){var r=e;function n(t){return 1===t.length?"0"+t:t}function i(t){for(var e="",r=0;r<t.length;r++)e+=n(t[r].toString(16));return e}r.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if("string"!==typeof t){for(var n=0;n<t.length;n++)r[n]=0|t[n];return r}if("hex"===e){(t=t.replace(/[^a-z0-9]+/gi,"")).length%2!==0&&(t="0"+t);for(n=0;n<t.length;n+=2)r.push(parseInt(t[n]+t[n+1],16))}else for(n=0;n<t.length;n++){var i=t.charCodeAt(n),o=i>>8,a=255&i;o?r.push(o,a):r.push(a)}return r},r.zero2=n,r.toHex=i,r.encode=function(t,e){return"hex"===e?i(t):t}})),d=c((function(t,e){var r=e;r.assert=l,r.toArray=h.toArray,r.zero2=h.zero2,r.toHex=h.toHex,r.encode=h.encode,r.getNAF=function(t,e,r){var n=new Array(Math.max(t.bitLength(),r)+1);n.fill(0);for(var i=1<<e+1,o=t.clone(),a=0;a<n.length;a++){var s,u=o.andln(i-1);o.isOdd()?(s=u>(i>>1)-1?(i>>1)-u:u,o.isubn(s)):s=0,n[a]=s,o.iushrn(1)}return n},r.getJSF=function(t,e){var r=[[],[]];t=t.clone(),e=e.clone();for(var n,i=0,o=0;t.cmpn(-i)>0||e.cmpn(-o)>0;){var a,s,u=t.andln(3)+i&3,c=e.andln(3)+o&3;3===u&&(u=-1),3===c&&(c=-1),a=0===(1&u)?0:3!==(n=t.andln(7)+i&7)&&5!==n||2!==c?u:-u,r[0].push(a),s=0===(1&c)?0:3!==(n=e.andln(7)+o&7)&&5!==n||2!==u?c:-c,r[1].push(s),2*i===a+1&&(i=1-i),2*o===s+1&&(o=1-o),t.iushrn(1),e.iushrn(1)}return r},r.cachedProperty=function(t,e,r){var n="_"+e;t.prototype[e]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},r.parseBytes=function(t){return"string"===typeof t?r.toArray(t,"hex"):t},r.intFromLE=function(t){return new(a())(t,"hex","le")}})),p=d.getNAF,v=d.getJSF,m=d.assert;function g(t,e){this.type=t,this.p=new(a())(e.p,16),this.red=e.prime?a().red(e.prime):a().mont(this.p),this.zero=new(a())(0).toRed(this.red),this.one=new(a())(1).toRed(this.red),this.two=new(a())(2).toRed(this.red),this.n=e.n&&new(a())(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var y=g;
vendor: 1,329 bytes, line 2
2function b(t,e){this.curve=t,this.type=e,this.precomputed=null}g.prototype.point=function(){throw new Error("Not implemented")},g.prototype.validate=function(){throw new Error("Not implemented")},g.prototype._fixedNafMul=function(t,e){m(t.precomputed);var r=t._getDoubles(),n=p(e,1,this._bitLength),i=(1<<r.step+1)-(r.step%2===0?2:1);i/=3;var o,a,s=[];for(o=0;o<n.length;o+=r.step){a=0;for(var u=o+r.step-1;u>=o;u--)a=(a<<1)+n[u];s.push(a)}for(var c=this.jpoint(null,null,null),l=this.jpoint(null,null,null),f=i;f>0;f--){for(o=0;o<s.length;o++)(a=s[o])===f?l=l.mixedAdd(r.points[o]):a===-f&&(l=l.mixedAdd(r.points[o].neg()));c=c.add(l)}return c.toP()},g.prototype._wnafMul=function(t,e){var r=4,n=t._getNAFPoints(r);r=n.wnd;for(var i=n.points,o=p(e,r,this._bitLength),a=this.jpoint(null,null,null),s=o.length-1;s>=0;s--){for(var u=0;s>=0&&0===o[s];s--)u++;if(s>=0&&u++,a=a.dblp(u),s<0)break;var c=o[s];m(0!==c),a="affine"===t.type?c>0?a.mixedAdd(i[c-1>>1]):a.mixedAdd(i[-c-1>>1].neg()):c>0?a.add(i[c-1>>1]):a.add(i[-c-1>>1].neg())}return"affine"===t.type?a.toP():a},g.prototype._wnafMulAdd=function(t,e,r,n,i){var o,a,s,u=this._wnafT1,c=this._wnafT2,l=this._wnafT3,f=0;for(o=0;o<n;o++){var h=(s=e[o])._getNAFPoints(t);u[o]=h.wnd,c[o]=h.points}for(o=n-1;o>=1;o-=2){var d=o-1,m=o;if(1===u[d]&&1===u[m]){var g=[e[d],null,null,e[m]];
20===e[d].y.cmp(e[m].y)?(g[1]=e[d].add(e[m]),g[2]=e[d].toJ().mixedAdd(e[m].neg())):0===e[d].y.cmp(e[m].y.redNeg())?(g[1]=e[d].toJ().mixedAdd(e[m]),g[2]=e[d].add(e[m].neg())):(g[1]=e[d].toJ().mixedAdd(e[m]),g[2]=e[d].toJ().mixedAdd(e[m].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],b=v(r[d],r[m]);for(f=Math.max(b[0].length,f),l[d]=new Array(f),l[m]=new Array(f),a=0;a<f;a++){var w=0|b[0][a],_=0|b[1][a];l[d][a]=y[3*(w+1)+(_+1)],l[m][a]=0,c[d]=g}}else l[d]=p(r[d],u[d],this._bitLength),l[m]=p(r[m],u[m],this._bitLength),f=Math.max(l[d].length,f),f=Math.max(l[m].length,f)}var x=this.jpoint(null,null,null),E=this._wnafT4;for(o=f;o>=0;o--){for(var A=0;o>=0;){var M=!0;for(a=0;a<n;a++)E[a]=0|l[a][o],0!==E[a]&&(M=!1);if(!M)break;A++,o--}if(o>=0&&A++,x=x.dblp(A),o<0)break;for(a=0;a<n;a++){var k=E[a];0!==k&&(k>0?s=c[a][k-1>>1]:k<0&&(s=c[a][-k-1>>1].neg()),x="affine"===s.type?x.mixedAdd(s):x.add(s))}}for(o=0;o<n;o++)c[o]=null;return i?x:x.toP()},g.BasePoint=b,b.prototype.eq=function(){throw new Error("Not implemented")},b.prototype.validate=function(){return this.curve.validate(this)},g.prototype.decodePoint=function(t,e){t=d.toArray(t,e);var r=this.p.byteLength();if((4===t[0]||6===t[0]||7===t[0])&&t.length-1===2*r)return 6===t[0]?m(t[t.length-1]%2===0):7===t[0]&&m(t[t.length-1]%2===1),this.point(t.slice(1,1+r),t.slice(1+r,1+2*r));if((2===t[0]||3===t[0])&&t.length-1===r)return this.pointFromX(t.slice(1,1+r),3===t[0]);throw new Error("Unknown point format")},b.prototype.encodeCompressed=function(t){return this.encode(t,!0)},b.prototype._encode=function(t){var e=this.curve.p.byteLength(),r=this.getX().toArray("be",e);return t?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",e))},b.prototype.encode=function(t,e){return d.encode(this._encode(e),t)},b.prototype.precompute=function(t){if(this.precomputed)return this;var e={doubles:null,naf:null,beta:null};return e.naf=this._getNAFPoints(8),e.doubles=this._getDoubles(4,t),e.beta=this._getBeta(),this.precomputed=e,this},b.prototype._hasDoubles=function(t){if(!this.precomputed)return!1;var e=this.precomputed.doubles;return!!e&&e.points.length>=Math.ceil((t.bitLength()+1)/e.step)},b.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<e;i+=t){for(var o=0;o<t;o++)n=n.dbl();r.push(n)}return{step:t,points:r}},b.prototype._getNAFPoints=function(t){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var e=[this],r=(1<<t)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)e[i]=e[i-1].add(n);return{wnd:t,points:e}},b.prototype._getBeta=function(){return null},b.prototype.dblp=function(t){for(var e=this,r=0;r<t;r++)e=e.dbl();return e};var w=c((function(t){"function"===typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}})),_=d.assert;function x(t){y.call(this,"short",t),this.a=new(a())(t.a,16).toRed(this.red),this.b=new(a())(t.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(t),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}w(x,y);var E=x;function A(t,e,r,n){y.BasePoint.call(this,t,"affine"),null===e&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new(a())(e,16),this.y=new(a())(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function M(t,e,r,n){y.BasePoint.call(this,t,"jacobian"),null===e&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new(a())(0)):(this.x=new(a())(e,16),this.y=new(a())(r,16),this.z=new(a())(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}x.prototype._getEndomorphism=function(t){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var e,r;if(t.beta)e=new(a())(t.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);e=(e=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(t.lambda)r=new(a())(t.lambda,16);else{var i=this._getEndoRoots(this.n);0===this.g.mul(i[0]).x.cmp(this.g.x.redMul(e))?r=i[0]:(r=i[1],_(0===this.g.mul(r).x.cmp(this.g.x.redMul(e))))}return{beta:e,lambda:r,basis:t.basis?t.basis.map((function(t){return{a:new(a())(t.a,16),b:new(a())(t.b,16)}})):this._getEndoBasis(r)}}},x.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:a().mont(t),r=new(a())(2).toRed(e).redInvm(),n=r.redNeg(),i=new(a())(3).toRed(e).redNeg().redSqrt().redMul(r);return[n.redAdd(i).fromRed(),n.redSub(i).fromRed()]},x.prototype._getEndoBasis=function(t){for(var e,r,n,i,o,s,u,c,l,f=this.n.ushrn(Math.floor(this.n.bitLength()/2)),h=t,d=this.n.clone(),p=new(a())(1),v=new(a())(0),m=new(a())(0),g=new(a())(1),y=0;0!==h.cmpn(0);){var b=d.div(h);c=d.sub(b.mul(h)),l=m.sub(b.mul(p));var w=g.sub(b.mul(v));if(!n&&c.cmp(f)<0)e=u.neg(),r=p,n=c.neg(),i=l;else if(n&&2===++y)break;u=c,d=h,h=c,m=p,p=l,g=v,v=w}o=c.neg(),s=l;var _=n.sqr().add(i.sqr());return o.sqr().add(s.sqr()).cmp(_)>=0&&(o=e,s=r),n.negative&&(n=n.neg(),i=i.neg()),o.negative&&(o=o.neg(),s=s.neg()),[{a:n,b:i}
vendor: 15,030 bytes, line 2
2,{a:o,b:s}]},x.prototype._endoSplit=function(t){var e=this.endo.basis,r=e[0],n=e[1],i=n.b.mul(t).divRound(this.n),o=r.b.neg().mul(t).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),u=i.mul(r.b),c=o.mul(n.b);return{k1:t.sub(a).sub(s),k2:u.add(c).neg()}},x.prototype.pointFromX=function(t,e){(t=new(a())(t,16)).red||(t=t.toRed(this.red));var r=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var i=n.fromRed().isOdd();return(e&&!i||!e&&i)&&(n=n.redNeg()),this.point(t,n)},x.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,r=t.y,n=this.a.redMul(e),i=e.redSqr().redMul(e).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},x.prototype._endoWnafMulAdd=function(t,e,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o<t.length;o++){var a=this._endoSplit(e[o]),s=t[o],u=s._getBeta();a.k1.negative&&(a.k1.ineg(),s=s.neg(!0)),a.k2.negative&&(a.k2.ineg(),u=u.neg(!0)),n[2*o]=s,n[2*o+1]=u,i[2*o]=a.k1,i[2*o+1]=a.k2}for(var c=this._wnafMulAdd(1,n,i,2*o,r),l=0;l<2*o;l++)n[l]=null,i[l]=null;return c},w(A,y.BasePoint),x.prototype.point=function(t,e,r){return new A(this,t,e,r)},x.prototype.pointFromJSON=function(t,e){return A.fromJSON(this,t,e)},A.prototype._getBeta=function(){if(this.curve.endo){var t=this.precomputed;if(t&&t.beta)return t.beta;var e=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(t){var r=this.curve,n=function(t){return r.point(t.x.redMul(r.endo.beta),t.y)};t.beta=e,e.precomputed={beta:null,naf:t.naf&&{wnd:t.naf.wnd,points:t.naf.points.map(n)},doubles:t.doubles&&{step:t.doubles.step,points:t.doubles.points.map(n)}}}return e}},A.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},A.fromJSON=function(t,e,r){"string"===typeof e&&(e=JSON.parse(e));var n=t.point(e[0],e[1],r);if(!e[2])return n;function i(e){return t.point(e[0],e[1],r)}var o=e[2];return n.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[n].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[n].concat(o.naf.points.map(i))}},n},A.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},A.prototype.isInfinity=function(){return this.inf},A.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(t.x).redInvm()));var r=e.redSqr().redISub(this.x).redISub(t.x),n=e.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},A.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(0===t.cmpn(0))return this.curve.point(null,null);var e=this.curve.a,r=this.x.redSqr(),n=t.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(e).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},A.prototype.getX=function(){return this.x.fromRed()},A.prototype.getY=function(){return this.y.fromRed()},A.prototype.mul=function(t){return t=new(a())(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},A.prototype.mulAdd=function(t,e,r){var n=[this,e],i=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},A.prototype.jmulAdd=function(t,e,r){var n=[this,e],i=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},A.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},A.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var r=this.precomputed,n=function(t){return t.neg()};e.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return e},A.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},w(M,y.BasePoint),x.prototype.jpoint=function(t,e,r){return new M(this,t,e,r)},M.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),r=this.x.redMul(e),n=this.y.redMul(e).redMul(t);return this.curve.point(r,n)},M.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},M.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(e),i=t.x.redMul(r),o=this.y.redMul(e.redMul(t.z)),a=t.y.redMul(r.redMul(this.z)),s=n.redSub(i),u=o.redSub(a);if(0===s.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),l=c.redMul(s),f=n.redMul(c),h=u.redSqr().redIAdd(l).redISub(f).redISub(f),d=u.redMul(f.redISub(h)).redISub(o.redMul(l)),p=this.z.redMul(t.z).redMul(s);return this.curve.jpoint(h,d,p)},M.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),r=this.x,n=t.x.redMul(e),i=this.y,o=t.y.redMul(e).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),c=u.redMul(a),l=r.redMul(u),f=s.redSqr().redIAdd(c).redISub(l).redISub(l),h=s.redMul(l.redISub(f)).redISub(i.redMul(c)),d=this.z.redMul(a);return this.curve.jpoint(f,h,d)},M.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();var e;if(this.curve.zeroA||this.curve.threeA){var r=this;for(e=0;e<t;e++)r=r.dbl();return r}var n=this.curve.a,i=this.curve.tinv,o=this.x,a=this.y,s=this.z,u=s.redSqr().redSqr(),c=a.redAdd(a);for(e=0;e<t;e++){var l=o.redSqr(),f=c.redSqr(),h=f.redSqr(),d=l.redAdd(l).redIAdd(l).redIAdd(n.redMul(u)),p=o.redMul(f),v=d.redSqr().redISub(p.redAdd(p)),m=p.redISub(v),g=d.redMul(m);g=g.redIAdd(g).redISub(h);var y=c.redMul(s);e+1<t&&(u=u.redMul(h)),o=v,s=y,c=g}return this.curve.jpoint(o,c.redMul(i),s)},M.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},M.prototype._zeroDbl=function(){var t,e,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n),u=s.redSqr().redISub(a).redISub(a),c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),t=u,e=s.redMul(a.redISub(u)).redISub(c),r=this.y.redAdd(this.y)}else{var l=this.x.redSqr(),f=this.y.redSqr(),h=f.redSqr(),d=this.x.redAdd(f).redSqr().redISub(l).redISub(h);d=d.redIAdd(d);var p=l.redAdd(l).redIAdd(l),v=p.redSqr(),m=h.redIAdd(h);m=(m=m.redIAdd(m)).redIAdd(m),t=v.redISub(d).redISub(d),e=p.redMul(d.redISub(t)).redISub(m),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(t,e,r)},M.prototype._threeDbl=function(){var t,e,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),u=s.redSqr().redISub(a).redISub(a);t=u;var c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),e=s.redMul(a.redISub(u)).redISub(c),r=this.y.redAdd(this.y)}else{var l=this.z.redSqr(),f=this.y.redSqr(),h=this.x.redMul(f),d=this.x.redSub(l).redMul(this.x.redAdd(l));d=d.redAdd(d).redIAdd(d);var p=h.redIAdd(h),v=(p=p.redIAdd(p)).redAdd(p);t=d.redSqr().redISub(v),r=this.y.redAdd(this.z).redSqr().redISub(f).redISub(l);var m=f.redSqr();m=(m=(m=m.redIAdd(m)).redIAdd(m)).redIAdd(m),e=d.redMul(p.redISub(t)).redISub(m)}return this.curve.jpoint(t,e,r)},M.prototype._dbl=function(){var t=this.curve.a,e=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),o=e.redSqr(),a=r.redSqr(),s=o.redAdd(o).redIAdd(o).redIAdd(t.redMul(i)),u=e.redAdd(e),c=(u=u.redIAdd(u)).redMul(a),l=s.redSqr().redISub(c.redAdd(c)),f=c.redISub(l),h=a.redSqr();h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var d=s.redMul(f).redISub(h),p=r.redAdd(r).redMul(n);return this.curve.jpoint(l,d,p)},M.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var t=this.x.redSqr(),e=this.y.redSqr(),r=this.z.redSqr(),n=e.redSqr(),i=t.redAdd(t).redIAdd(t),o=i.redSqr(),a=this.x.redAdd(e).redSqr().redISub(t).redISub(n),s=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(o)).redSqr(),u=n.redIAdd(n);u=(u=(u=u.redIAdd(u)).redIAdd(u)).redIAdd(u);var c=i.redIAdd(a).redSqr().redISub(o).redISub(s).redISub(u),l=e.redMul(c);l=(l=l.redIAdd(l)).redIAdd(l);var f=this.x.redMul(s).redISub(l);f=(f=f.redIAdd(f)).redIAdd(f);var h=this.y.redMul(c.redMul(u.redISub(c)).redISub(a.redMul(s)));h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var d=this.z.redAdd(a).redSqr().redISub(r).redISub(s);return this.curve.jpoint(f,h,d)},M.prototype.mul=function(t,e){return t=new(a())(t,e),this.curve._wnafMul(this,t)},M.prototype.eq=function(t){if("affine"===t.type)return this.eq(t.toJ());if(this===t)return!0;var e=this.z.redSqr(),r=t.z.redSqr();if(0!==this.x.redMul(r).redISub(t.x.redMul(e)).cmpn(0))return!1;var n=e.redMul(this.z),i=r.redMul(t.z);return 0===this.y.redMul(i).redISub(t.y.redMul(n)).cmpn(0)},M.prototype.eqXToP=function(t){var e=this.z.redSqr(),r=t.toRed(this.curve.red).redMul(e);if(0===this.x.cmp(r))return!0;for(var n=t.clone(),i=this.curve.redN.redMul(e);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},M.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},M.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var k=c((function(t,e){var r=e;r.base=y,r.short=E,r.mont=null,r.edwards=null})),S=c((function(t,e){var r,n=e,i=d.assert;function o(t){"short"===t.type?this.curve=new k.short(t):"edwards"===t.type?this.curve=new k.edwards(t):this.curve=new k.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,i(this.g.validate(),"Invalid curve"),i(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function a(t,e){Object.defineProperty(n,t,{configurable:!0,enumerable:!0,get:function(){var r=new o(e);return Object.defineProperty(n,t,{configurable:!0,enumerable:!0,value:r}),r}})}n.PresetCurve=o,a("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:u().sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),a("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:u().sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),a("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:u().sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),a("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:u().sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),a("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:u().sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),a("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:u().sha256,gRed:!1,g:["9"]}),a("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:u().sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=null.crash()}catch(s){r=void 0}a("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:u().sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"}
2,{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})}));function I(t){if(!(this instanceof I))return new I(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=h.toArray(t.entropy,t.entropyEnc||"hex"),r=h.toArray(t.nonce,t.nonceEnc||"hex"),n=h.toArray(t.pers,t.persEnc||"hex");l(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,r,n)}var P=I;I.prototype._init=function(t,e,r){var n=t.concat(e).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},I.prototype._hmac=function(){return new(u().hmac)(this.hash,this.K)},I.prototype._update=function(t){var e=this._hmac().update(this.V).update([0]);t&&(e=e.update(t)),this.K=e.digest(),this.V=this._hmac().update(this.V).digest(),t&&(this.K=this._hmac().update(this.V).update([1]).update(t).digest(),this.V=this._hmac().update(this.V).digest())},I.prototype.reseed=function(t,e,r,n){"string"!==typeof e&&(n=r,r=e,e=null),t=h.toArray(t,e),r=h.toArray(r,n),l(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(r||[])),this._reseed=1},I.prototype.generate=function(t,e,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!==typeof e&&(n=r,r=e,e=null),r&&(r=h.toArray(r,n||"hex"),this._update(r));for(var i=[];i.length<t;)this.V=this._hmac().update(this.V).digest(),i=i.concat(this.V);var o=i.slice(0,t);return this._update(r),this._reseed++,h.encode(o,e)};var N=d.assert;function C(t,e){this.ec=t,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}var O=C;C.fromPublic=function(t,e,r){return e instanceof C?e:new C(t,{pub:e,pubEnc:r})},C.fromPrivate=function(t,e,r){return e instanceof C?e:new C(t,{priv:e,privEnc:r})},C.prototype.validate=function(){var t=this.getPublic();return t.isInfinity()?{result:!1,reason:"Invalid public key"}:t.validate()?t.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},C.prototype.getPublic=function(t,e){return"string"===typeof t&&(e=t,t=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),e?this.pub.encode(e,t):this.pub},C.prototype.getPrivate=function(t){return"hex"===t?this.priv.toString(16,2):this.priv},C.prototype._importPrivate=function(t,e){this.priv=new(a())(t,e||16),this.priv=this.priv.umod(this.ec.curve.n)},C.prototype._importPublic=function(t,e){if(t.x||t.y)return"mont"===this.ec.curve.type?N(t.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||N(t.x&&t.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(t.x,t.y));this.pub=this.ec.curve.decodePoint(t,e)},C.prototype.derive=function(t){return t.validate()||N(t.validate(),"public point not validated"),t.mul(this.priv).getX()},C.prototype.sign=function(t,e,r){return this.ec.sign(t,this,e,r)},C.prototype.verify=function(t,e){return this.ec.verify(t,e,this)},C.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var T=d.assert;function R(t,e){if(t instanceof R)return t;this._importDER(t,e)||(T(t.r&&t.s,"Signature without r or s"),this.r=new(a())(t.r,16),this.s=new(a())(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}var B=R;function L(){this.place=0}function Z(t,e){var r=t[e.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var i=0,o=0,a=e.place;o<n;o++,a++)i<<=8,i|=t[a],i>>>=0;return!(i<=127)&&(e.place=a,i)}function j(t){for(var e=0,r=t.length-1;!t[e]&&!(128&t[e+1])&&e<r;)e++;return 0===e?t:t.slice(e)}function F(t,e){if(e<128)t.push(e);else{var r=1+(Math.log(e)/Math.LN2>>>3);for(t.push(128|r);--r;)t.push(e>>>(r<<3)&255);t.push(e)}}R.prototype._importDER=function(t,e){t=d.toArray(t,e);var r=new L;if(48!==t[r.place++])return!1;var n=Z(t,r);if(!1===n)return!1;if(n+r.place!==t.length)return!1;if(2!==t[r.place++])return!1;var i=Z(t,r);if(!1===i)return!1;var o=t.slice(r.place,i+r.place);if(r.place+=i,2!==t[r.place++])return!1;var s=Z(t,r);if(!1===s)return!1;if(t.length!==s+r.place)return!1;var u=t.slice(r.place,s+r.place);
2if(0===o[0]){if(!(128&o[1]))return!1;o=o.slice(1)}if(0===u[0]){if(!(128&u[1]))return!1;u=u.slice(1)}return this.r=new(a())(o),this.s=new(a())(u),this.recoveryParam=null,!0},R.prototype.toDER=function(t){var e=this.r.toArray(),r=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&r[0]&&(r=[0].concat(r)),e=j(e),r=j(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var n=[2];F(n,e.length),(n=n.concat(e)).push(2),F(n,r.length);var i=n.concat(r),o=[48];return F(o,i.length),o=o.concat(i),d.encode(o,t)};var U=function(){throw new Error("unsupported")},D=d.assert;function H(t){if(!(this instanceof H))return new H(t);"string"===typeof t&&(D(Object.prototype.hasOwnProperty.call(S,t),"Unknown curve "+t),t=S[t]),t instanceof S.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}var z=H;H.prototype.keyPair=function(t){return new O(this,t)},H.prototype.keyFromPrivate=function(t,e){return O.fromPrivate(this,t,e)},H.prototype.keyFromPublic=function(t,e){return O.fromPublic(this,t,e)},H.prototype.genKeyPair=function(t){t||(t={});for(var e=new P({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||U(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),n=this.n.sub(new(a())(2));;){var i=new(a())(e.generate(r));if(!(i.cmp(n)>0))return i.iaddn(1),this.keyFromPrivate(i)}},H.prototype._truncateToN=function(t,e){var r=8*t.byteLength()-this.n.bitLength();return r>0&&(t=t.ushrn(r)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t},H.prototype.sign=function(t,e,r,n){"object"===typeof r&&(n=r,r=null),n||(n={}),e=this.keyFromPrivate(e,r),t=this._truncateToN(new(a())(t,16));for(var i=this.n.byteLength(),o=e.getPrivate().toArray("be",i),s=t.toArray("be",i),u=new P({hash:this.hash,entropy:o,nonce:s,pers:n.pers,persEnc:n.persEnc||"utf8"}),c=this.n.sub(new(a())(1)),l=0;;l++){var f=n.k?n.k(l):new(a())(u.generate(this.n.byteLength()));if(!((f=this._truncateToN(f,!0)).cmpn(1)<=0||f.cmp(c)>=0)){var h=this.g.mul(f);if(!h.isInfinity()){var d=h.getX(),p=d.umod(this.n);if(0!==p.cmpn(0)){var v=f.invm(this.n).mul(p.mul(e.getPrivate()).iadd(t));if(0!==(v=v.umod(this.n)).cmpn(0)){var m=(h.getY().isOdd()?1:0)|(0!==d.cmp(p)?2:0);return n.canonical&&v.cmp(this.nh)>0&&(v=this.n.sub(v),m^=1),new B({r:p,s:v,recoveryParam:m})}}}}}},H.prototype.verify=function(t,e,r,n){t=this._truncateToN(new(a())(t,16)),r=this.keyFromPublic(r,n);var i=(e=new B(e,"hex")).r,o=e.s;if(i.cmpn(1)<0||i.cmp(this.n)>=0)return!1;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var s,u=o.invm(this.n),c=u.mul(t).umod(this.n),l=u.mul(i).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(c,r.getPublic(),l)).isInfinity()&&s.eqXToP(i):!(s=this.g.mulAdd(c,r.getPublic(),l)).isInfinity()&&0===s.getX().umod(this.n).cmp(i)},H.prototype.recoverPubKey=function(t,e,r,n){D((3&r)===r,"The recovery param is more than two bits"),e=new B(e,n);var i=this.n,o=new(a())(t),s=e.r,u=e.s,c=1&r,l=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&l)throw new Error("Unable to find sencond key candinate");s=l?this.curve.pointFromX(s.add(this.curve.n),c):this.curve.pointFromX(s,c);var f=e.r.invm(i),h=i.sub(o).mul(f).umod(i),d=u.mul(f).umod(i);return this.g.mulAdd(h,s,d)},H.prototype.getKeyRecoveryParam=function(t,e,r,n){if(null!==(e=new B(e,n)).recoveryParam)return e.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(t,e,i)}catch(t){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")};var $=c((function(t,e){var r=e;r.version="6.5.4",r.utils=d,r.rand=function(){throw new Error("unsupported")},r.curve=k,r.curves=S,r.ec=z,r.eddsa=null})).ec,q=r(52009),G=r(54812),W=new(r(2735).Yd)("signing-key/5.7.0"),V=null;function K(){return V||(V=new $("secp256k1")),V}var Y=function(){function t(e){(0,n.Z)(this,t),(0,G.zG)(this,"curve","secp256k1"),(0,G.zG)(this,"privateKey",(0,q.Dv)(e)),32!==(0,q.E1)(this.privateKey)&&W.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");var r=K().keyFromPrivate((0,q.lE)(this.privateKey));(0,G.zG)(this,"publicKey","0x"+r.getPublic(!1,"hex")),(0,G.zG)(this,"compressedPublicKey","0x"+r.getPublic(!0,"hex")),(0,G.zG)(this,"_isSigningKey",!0)}return(0,i.Z)(t,[{key:"_addPoint",value:function(t){var e=K().keyFromPublic((0,q.lE)(this.publicKey)),r=K().keyFromPublic((0,q.lE)(t));return"0x"+e.pub.add(r.pub).encodeCompressed("hex")}},{key:"signDigest",value:function(t){var e=K().keyFromPrivate((0,q.lE)(this.privateKey)),r=(0,q.lE)(t);32!==r.length&&W.throwArgumentError("bad digest length","digest",t);var n=e.sign(r,{canonical:!0});return(0,q.N)({recoveryParam:n.recoveryParam,r:(0,q.$m)("0x"+n.r.toString(16),32),s:(0,q.$m)("0x"+n.s.toString(16),32)})}},{key:"computeSharedSecret",value:function(t){var e=K().keyFromPrivate((0,q.lE)(this.privateKey)),r=K().keyFromPublic((0,q.lE)(J(t)));return(0,q.$m)("0x"+e.derive(r.getPublic()).toString(16),32)}}],[{key:"isSigningKey",value:function(t){return!(!t||!t._isSigningKey)}}]),t}();function X(t,e){var r=(0,q.N)(e),n={r:(0,q.lE)(r.r),s:(0,q.lE)(r.s)};return"0x"+K().recoverPubKey((0,q.lE)(t),n,r.recoveryParam).encode("hex",!1)}function J(t,e){var r=(0,q.lE)(t);if(32===r.length){var n=new Y(r);return e?"0x"+K().keyFromPrivate(r).getPublic(!0,"hex"):n.publicKey}return 33===r.length?e?(0,q.Dv)(r):"0x"+K().keyFromPublic(r).getPublic(!1,"hex"):65===r.length?e?"0x"+K().keyFromPublic(r).getPublic(!0,"hex"):(0,q.Dv)(r):W.throwArgumentError("invalid public or private key","key","[REDACTED]")}},91953:function(t,e,r){"use strict";r.d(e,{Uj:function(){return n},te:function(){return u},Uw:function(){return i},U$:function(){return h},uu:function(){return d},Y0:function(){return l},XL:function(){return v},ZN:function(){return p}});var n,i,o=r(52009),a=new(r(2735).Yd)("strings/5.7.0");function s(t,e,r,n,o){if(t===i.BAD_PREFIX||t===i.UNEXPECTED_CONTINUE){for(var a=0,s=e+1;s<r.length&&r[s]>>6===2;s++)a++;return a}return t===i.OVERRUN?r.length-e-1:0}!function(t){t.current="",t.NFC="NFC",t.NFD="NFD",t.NFKC="NFKC",t.NFKD="NFKD"}(n||(n={})),function(t){t.UNEXPECTED_CONTINUE="unexpected continuation byte",t.BAD_PREFIX="bad codepoint prefix",t.OVERRUN="string overrun",t.MISSING_CONTINUE="missing continuation byte",t.OUT_OF_RANGE="out of UTF-8 range",t.UTF16_SURROGATE="UTF-16 surrogate",t.OVERLONG="overlong representation"}(i||(i={}));var u=Object.freeze({error:function(t,e,r,n,i){return a.throwArgumentError("invalid codepoint at offset ".concat(e,"; ").concat(t),"bytes",r)},ignore:s,replace:function(t,e,r,n,o){return t===i.OVERLONG?(n.push(o),0):(n.push(65533),s(t,e,r))}});function c(t,e){null==e&&(e=u.error),t=(0,o.lE)(t);for(var r=[],n=0;n<t.length;){var a=t[n++];if(a>>7!==0){var s=null,c=null;if(192===(224&a))s=1,c=127;else if(224===(240&a))s=2,c=2047;else{if(240!==(248&a)){n+=e(128===(192&a)?i.UNEXPECTED_CONTINUE:i.BAD_PREFIX,n-1,t,r);continue}s=3,c=65535}if(n-1+s>=t.length)n+=e(i.OVERRUN,n-1,t,r);else{for(var l=a&(1<<8-s-1)-1,f=0;f<s;f++){var h=t[n];if(128!=(192&h)){n+=e(i.MISSING_CONTINUE,n,t,r),l=null;break}l=l<<6|63&h,n++}null!==l&&(l>1114111?n+=e(i.OUT_OF_RANGE,n-1-s,t,r,l):l>=55296&&l<=57343?n+=e(i.UTF16_SURROGATE,n-1-s,t,r,l):l<=c?n+=e(i.OVERLONG,n-1-s,t,r,l):r.push(l))}}else r.push(a)}return r}function l(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.current;e!=n.current&&(a.checkNormalize(),t=t.normalize(e));for(var r=[],i=0;i<t.length;i++){var s=t.charCodeAt(i);if(s<128)r.push(s);else if(s<2048)r.push(s>>6|192),r.push(63&s|128);else if(55296==(64512&s)){i++;var u=t.charCodeAt(i);if(i>=t.length||56320!==(64512&u))throw new Error("invalid utf-8 string");var c=65536+((1023&s)<<10)+(1023&u);r.push(c>>18|240),r.push(c>>12&63|128),r.push(c>>6&63|128),r.push(63&c|128)}else r.push(s>>12|224),r.push(s>>6&63|128),r.push(63&s|128)}return(0,o.lE)(r)}function f(t){var e="0000"+t.toString(16);return"\\u"+e.substring(e.length-4)}function h(t,e){return'"'+c(t,e).map((function(t){if(t<256){switch(t){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 13:return"\\r";case 34:return'\\"';case 92:return"\\\\"}if(t>=32&&t<127)return String.fromCharCode(t)}return t<=65535?f(t):f(55296+((t-=65536)>>10&1023))+f(56320+(1023&t))})).join("")+'"'}function d(t){return t.map((function(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10&1023),56320+(1023&t)))})).join("")}function p(t,e){return d(c(t,e))}function v(t){return c(l(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.current))}},65958:function(t,e,r){"use strict";r.d(e,{em:function(){return n},z7:function(){return x},db:function(){return y},Qc:function(){return I},RJ:function(){return b},qC:function(){return k}});var n,i=r(28552),o=r(19560),a=r(52009),s=r(6321),u=r(11291),c=r(54812),l=r(80807),f=r(64760),h=r(2735),d=new h.Yd("transactions/5.7.0");function p(t){return"0x"===t?null:(0,i.Kn)(t)}function v(t){return"0x"===t?s._Y:o.O$.from(t)}!function(t){t[t.legacy=0]="legacy",t[t.eip2930=1]="eip2930",t[t.eip1559=2]="eip1559"}(n||(n={}));var m=[{name:"nonce",maxLength:32,numeric:!0},{name:"gasPrice",maxLength:32,numeric:!0},{name:"gasLimit",maxLength:32,numeric:!0},{name:"to",length:20},{name:"value",maxLength:32,numeric:!0},{name:"data"}],g={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function y(t){var e=(0,f.VW)(t);return(0,i.Kn)((0,a.p3)((0,u.w)((0,a.p3)(e,1)),12))}function b(t,e){return y((0,f.LO)((0,a.lE)(t),e))}function w(t,e){var r=(0,a.G1)(o.O$.from(t).toHexString());return r.length>32&&d.throwArgumentError("invalid length for "+e,"transaction:"+e,t),r}function _(t,e){return{address:(0,i.Kn)(t),storageKeys:(e||[]).map((function(e,r){return 32!==(0,a.E1)(e)&&d.throwArgumentError("invalid access list storageKey","accessList[".concat(t,":").concat(r,"]"),e),e.toLowerCase()}))}}function x(t){if(Array.isArray(t))return t.map((function(t,e){return Array.isArray(t)?(t.length>2&&d.throwArgumentError("access list expected to be [ address, storageKeys[] ]","value[".concat(e,"]"),t),_(t[0],t[1])):_(t.address,t.storageKeys)}));var e=Object.keys(t).map((function(e){var r=t[e].reduce((function(t,e){return t[e]=!0,t}),{});return _(e,Object.keys(r).sort())}));return e.sort((function(t,e){return t.address.localeCompare(e.address)})),e}function E(t){return x(t).map((function(t){return[t.address,t.storageKeys]}))}function A(t,e){if(null!=t.gasPrice){var r=o.O$.from(t.gasPrice),n=o.O$.from(t.maxFeePerGas||0);r.eq(n)||d.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:r,maxFeePerGas:n})}var s=[w(t.chainId||0,"chainId"),w(t.nonce||0,"nonce"),w(t.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),w(t.maxFeePerGas||0,"maxFeePerGas"),w(t.gasLimit||0,"gasLim
2it"),null!=t.to?(0,i.Kn)(t.to):"0x",w(t.value||0,"value"),t.data||"0x",E(t.accessList||[])];if(e){var u=(0,a.N)(e);s.push(w(u.recoveryParam,"recoveryParam")),s.push((0,a.G1)(u.r)),s.push((0,a.G1)(u.s))}return(0,a.xs)(["0x02",l.encode(s)])}function M(t,e){var r=[w(t.chainId||0,"chainId"),w(t.nonce||0,"nonce"),w(t.gasPrice||0,"gasPrice"),w(t.gasLimit||0,"gasLimit"),null!=t.to?(0,i.Kn)(t.to):"0x",w(t.value||0,"value"),t.data||"0x",E(t.accessList||[])];if(e){var n=(0,a.N)(e);r.push(w(n.recoveryParam,"recoveryParam")),r.push((0,a.G1)(n.r)),r.push((0,a.G1)(n.s))}return(0,a.xs)(["0x01",l.encode(r)])}function k(t,e){if(null==t.type||0===t.type)return null!=t.accessList&&d.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",t),function(t,e){(0,c.uj)(t,g);var r=[];m.forEach((function(e){var n=t[e.name]||[],i={};e.numeric&&(i.hexPad="left"),n=(0,a.lE)((0,a.Dv)(n,i)),e.length&&n.length!==e.length&&n.length>0&&d.throwArgumentError("invalid length for "+e.name,"transaction:"+e.name,n),e.maxLength&&(n=(0,a.G1)(n)).length>e.maxLength&&d.throwArgumentError("invalid length for "+e.name,"transaction:"+e.name,n),r.push((0,a.Dv)(n))}));var n=0;if(null!=t.chainId?"number"!==typeof(n=t.chainId)&&d.throwArgumentError("invalid transaction.chainId","transaction",t):e&&!(0,a.Zq)(e)&&e.v>28&&(n=Math.floor((e.v-35)/2)),0!==n&&(r.push((0,a.Dv)(n)),r.push("0x"),r.push("0x")),!e)return l.encode(r);var i=(0,a.N)(e),o=27+i.recoveryParam;return 0!==n?(r.pop(),r.pop(),r.pop(),o+=2*n+8,i.v>28&&i.v!==o&&d.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e)):i.v!==o&&d.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e),r.push((0,a.Dv)(o)),r.push((0,a.G1)((0,a.lE)(i.r))),r.push((0,a.G1)((0,a.lE)(i.s))),l.encode(r)}(t,e);switch(t.type){case 1:return M(t,e);case 2:return A(t,e)}return d.throwError("unsupported transaction type: ".concat(t.type),h.Yd.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:t.type})}function S(t,e,r){try{var n=v(e[0]).toNumber();if(0!==n&&1!==n)throw new Error("bad recid");t.v=n}catch(o){d.throwArgumentError("invalid v for transaction type: 1","v",e[0])}t.r=(0,a.$m)(e[1],32),t.s=(0,a.$m)(e[2],32);try{var i=(0,u.w)(r(t));t.from=b(i,{r:t.r,s:t.s,recoveryParam:t.v})}catch(o){}}function I(t){var e=(0,a.lE)(t);if(e[0]>127)return function(t){var e=l.decode(t);9!==e.length&&6!==e.length&&d.throwArgumentError("invalid raw transaction","rawTransaction",t);var r={nonce:v(e[0]).toNumber(),gasPrice:v(e[1]),gasLimit:v(e[2]),to:p(e[3]),value:v(e[4]),data:e[5],chainId:0};if(6===e.length)return r;try{r.v=o.O$.from(e[6]).toNumber()}catch(c){return r}if(r.r=(0,a.$m)(e[7],32),r.s=(0,a.$m)(e[8],32),o.O$.from(r.r).isZero()&&o.O$.from(r.s).isZero())r.chainId=r.v,r.v=0;else{r.chainId=Math.floor((r.v-35)/2),r.chainId<0&&(r.chainId=0);var n=r.v-27,i=e.slice(0,6);0!==r.chainId&&(i.push((0,a.Dv)(r.chainId)),i.push("0x"),i.push("0x"),n-=2*r.chainId+8);var s=(0,u.w)(l.encode(i));try{r.from=b(s,{r:(0,a.Dv)(r.r),s:(0,a.Dv)(r.s),recoveryParam:n})}catch(c){}r.hash=(0,u.w)(t)}return r.type=null,r}(e);switch(e[0]){case 1:return function(t){var e=l.decode(t.slice(1));8!==e.length&&11!==e.length&&d.throwArgumentError("invalid component count for transaction type: 1","payload",(0,a.Dv)(t));var r={type:1,chainId:v(e[0]).toNumber(),nonce:v(e[1]).toNumber(),gasPrice:v(e[2]),gasLimit:v(e[3]),to:p(e[4]),value:v(e[5]),data:e[6],accessList:x(e[7])};return 8===e.length||(r.hash=(0,u.w)(t),S(r,e.slice(8),M)),r}(e);case 2:return function(t){var e=l.decode(t.slice(1));9!==e.length&&12!==e.length&&d.throwArgumentError("invalid component count for transaction type: 2","payload",(0,a.Dv)(t));var r=v(e[2]),n=v(e[3]),i={type:2,chainId:v(e[0]).toNumber(),nonce:v(e[1]).toNumber(),maxPriorityFeePerGas:r,maxFeePerGas:n,gasPrice:null,gasLimit:v(e[4]),to:p(e[5]),value:v(e[6]),data:e[7],accessList:x(e[8])};return 9===e.length||(i.hash=(0,u.w)(t),S(i,e.slice(9),A)),i}(e)}return d.throwError("unsupported transaction type: ".concat(e[0]),h.Yd.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:e[0]})}},11182:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return i(e,t),e};
2Object.defineProperty(e,"__esModule",{value:!0}),e.getEncryptionPublicKey=e.decryptSafely=e.decrypt=e.encryptSafely=e.encrypt=void 0;var a=o(r(58093)),s=o(r(13997)),u=r(43066);function c(t){var e=t.publicKey,r=t.data,n=t.version;if((0,u.isNullish)(e))throw new Error("Missing publicKey parameter");if((0,u.isNullish)(r))throw new Error("Missing data parameter");if((0,u.isNullish)(n))throw new Error("Missing version parameter");if("x25519-xsalsa20-poly1305"===n){if("string"!==typeof r)throw new Error("Message data must be given as a string");var i,o=a.box.keyPair();try{i=s.decodeBase64(e)}catch(h){throw new Error("Bad public key")}var c=s.decodeUTF8(r),l=a.randomBytes(a.box.nonceLength),f=a.box(c,l,i,o.secretKey);return{version:"x25519-xsalsa20-poly1305",nonce:s.encodeBase64(l),ephemPublicKey:s.encodeBase64(o.publicKey),ciphertext:s.encodeBase64(f)}}throw new Error("Encryption type/version not supported")}function l(t){var e=t.encryptedData,r=t.privateKey;if((0,u.isNullish)(e))throw new Error("Missing encryptedData parameter");if((0,u.isNullish)(r))throw new Error("Missing privateKey parameter");if("x25519-xsalsa20-poly1305"===e.version){var n=f(r),i=a.box.keyPair.fromSecretKey(n).secretKey,o=s.decodeBase64(e.nonce),c=s.decodeBase64(e.ciphertext),l=s.decodeBase64(e.ephemPublicKey),h=a.box.open(c,o,l,i);try{if(!h)throw new Error;var d=s.encodeUTF8(h);if(!d)throw new Error;return d}catch(p){if(p&&"string"===typeof p.message&&p.message.length)throw new Error("Decryption failed: ".concat(p.message));throw new Error("Decryption failed.")}}throw new Error("Encryption type/version not supported.")}function f(t){var e=Buffer.from(t,"hex").toString("base64");return s.decodeBase64(e)}e.encrypt=c,e.encryptSafely=function(t){var e=t.publicKey,r=t.data,n=t.version;if((0,u.isNullish)(e))throw new Error("Missing publicKey parameter");if((0,u.isNullish)(r))throw new Error("Missing data parameter");if((0,u.isNullish)(n))throw new Error("Missing version parameter");var i=Math.pow(2,11);if("object"===typeof r&&r&&"toJSON"in r)throw new Error("Cannot encrypt with toJSON property.  Please remove toJSON property");var o={data:r,padding:""},a=Buffer.byteLength(JSON.stringify(o),"utf-8")%i,s=0;return a>0&&(s=i-a-16),o.padding="0".repeat(s),c({publicKey:e,data:JSON.stringify(o),version:n})},e.decrypt=l,e.decryptSafely=function(t){var e=t.encryptedData,r=t.privateKey;if((0,u.isNullish)(e))throw new Error("Missing encryptedData parameter");if((0,u.isNullish)(r))throw new Error("Missing privateKey parameter");return JSON.parse(l({encryptedData:e,privateKey:r})).data},e.getEncryptionPublicKey=function(t){var e=f(t),r=a.box.keyPair.fromSecretKey(e).publicKey;return s.encodeBase64(r)}},13945:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.rawEncode=e.parseNumber=e.solidityPack=void 0;var i=r(19901),o=n(r(36671)),a=r(55722),s=r(43066);function u(t){return t.endsWith("]")}function c(t){var e=t.match(/((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)\[((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?)\]$/);return e?""===e[2]?"dynamic":parseInt(e[2],10):null}function l(t){var e=/^(?:[\0-\/:-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+([0-9]+)$/.exec(t);if(null===e)throw new Error('Invalid parseTypeN input "'.concat(t,'".'));return parseInt(e[1],10)}function f(t){var e=typeof t;if("string"===e)return(0,i.isHexPrefixed)(t)?new o.default((0,a.stripHexPrefix)(t),16):new o.default(t,10);if("number"===e)return new o.default(t);if(t&&Object.prototype.hasOwnProperty.call(t,"toArray")||o.default.isBN(t))return t;throw new Error("Argument is not a number")}function h(t,e,r){if(u(t)){var n=t.replace(/\[(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?\]/,"");if(!u(n)){var o=c(t);if("dynamic"!==o&&0!==o&&null!==o&&e.length>
2o)throw new Error("Elements exceed array size: ".concat(o))}var a=e.map((function(t){return h(n,t,256)}));return Buffer.concat(a)}if("bytes"===t)return e;if("string"===t)return Buffer.from(e,"utf8");if("bool"===t){r=r||8;var d=Array(r/4).join("0");return Buffer.from("".concat(d,e?"1":"0"),"hex")}if("address"===t){var p=20;return r&&(p=r/8),(0,i.setLengthLeft)((0,i.toBuffer)(e),p)}if(t.startsWith("bytes")){var v=l(t);if(v<1||v>32)throw new Error("Invalid bytes<N> width: ".concat(v));return"number"===typeof e&&(e=(0,s.normalize)(e)),(0,i.setLengthRight)((0,i.toBuffer)(e),v)}if(t.startsWith("uint")){var m=l(t);if(m%8||m<8||m>256)throw new Error("Invalid uint<N> width: ".concat(m));var g=f(e);if(g.bitLength()>m)throw new Error("Supplied uint exceeds width: ".concat(m," vs ").concat(g.bitLength()));return r=r||m,g.toArrayLike(Buffer,"be",r/8)}if(t.startsWith("int")){var y=l(t);if(y%8||y<8||y>256)throw new Error("Invalid int<N> width: ".concat(y));var b=f(e);if(b.bitLength()>y)throw new Error("Supplied int exceeds width: ".concat(y," vs ").concat(b.bitLength()));return r=r||y,b.toTwos(y).toArrayLike(Buffer,"be",r/8)}throw new Error("Unsupported or invalid type: ".concat(JSON.stringify(t)))}function d(t){return t.startsWith("int[")?"int256".concat(t.slice(3)):"int"===t?"int256":t.startsWith("uint[")?"uint256".concat(t.slice(4)):"uint"===t?"uint256":t.startsWith("fixed[")?"fixed128x128".concat(t.slice(5)):"fixed"===t?"fixed128x128":t.startsWith("ufixed[")?"ufixed128x128".concat(t.slice(6)):"ufixed"===t?"ufixed128x128":t}function p(t,e){if("address"===t)return p("uint160",f(e));if("bool"===t)return p("uint8",e?1:0);if("string"===t)return p("bytes",Buffer.from(e,"utf8"));if(u(t)){if("undefined"===typeof e.length)throw new Error("Not an array?");var r=c(t);if("dynamic"!==r&&0!==r&&null!==r&&e.length>r)throw new Error("Elements exceed array size: ".concat(r));var n=[];for(var a in t=t.slice(0,t.lastIndexOf("[")),"string"===typeof e&&(e=JSON.parse(e)),e)Object.prototype.hasOwnProperty.call(e,a)&&n.push(p(t,e[a]));if("dynamic"===r){var h=p("uint256",e.length);n.unshift(h)}return Buffer.concat(n)}if("bytes"===t){e=Buffer.from(e);var d=Buffer.concat([p("uint256",e.length),e]);return e.length%32!==0&&(d=Buffer.concat([d,(0,i.zeros)(32-e.length%32)])),d}if(t.startsWith("bytes")){var v=l(t);if(v<1||v>32)throw new Error("Invalid bytes<N> width: ".concat(v));var g="number"===typeof e?(0,s.normalize)(e):e;return(0,i.setLengthRight)((0,i.toBuffer)(g),32)}if(t.startsWith("uint")){var y=l(t);if(y%8||y<8||y>256)throw new Error("Invalid uint<N> width: ".concat(y));var b=f(e);if(b.bitLength()>y)throw new Error("Supplied uint exceeds width: ".concat(y," vs ").concat(b.bitLength()));if(b.isNeg())throw new Error("Supplied uint is negative");return b.toArrayLike(Buffer,"be",32)}if(t.startsWith("int")){var w=l(t);if(w%8||w<8||w>256)throw new Error("Invalid int<N> width: ".concat(w));var _=f(e);if(_.bitLength()>w)throw new Error("Supplied int exceeds width: ".concat(w," vs ").concat(_.bitLength()));return _.toTwos(256).toArrayLike(Buffer,"be",32)}if(t.startsWith("ufixed")){var x=m(t),E=f(e);if(E.isNeg())throw new Error("Supplied ufixed is negative");return p("uint256",E.mul(new o.default(2).pow(new o.default(x[1]))))}if(t.startsWith("fixed")){var A=m(t);return p("int256",f(e).mul(new o.default(2).pow(new o.default(A[1]))))}throw new Error("Unsupported or invalid type: ".concat(JSON.stringify(t)))}function v(t){return"string"===t||"bytes"===t||"dynamic"===c(t)}function m(t){var e=/^(?:[\0-\/:-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+([0-9]+)x([0-9]+)$/.exec(t);if(null===e||e.length<1)throw new Error('Invalid parseTypeNxM input "'.concat(t,'".'));return[parseInt(e[1],10),parseInt(e[2],10)]}e.solidityPack=function(t,e){if(t.length!==e.length)throw new Error("Number of types are not matching the values");for(var r=[],n=0;n<t.length;n++){var i=d(t[n]),o=e[n];r.push(h(i,o,null))}return Buffer.concat(r)},e.parseNumber=f,e.rawEncode=function(t,e){var r=[],n=[],i=0;t.forEach((function(t){if(u(t)){var e=c(t);i+="dynamic"!==e&&null!==e?32*e:32}else i+=32}));for(var o=0;o<t.length;o++){var a=d(t[o]),s=p(a,e[o]);v(a)?(r.push(p("uint256",i)),n.push(s),i+=s.length):r.push(s)}return Buffer.concat(r.concat(n))}},2109:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};
2Object.defineProperty(e,"__esModule",{value:!0}),e.normalize=e.concatSig=void 0,i(r(38297),e),i(r(42411),e),i(r(11182),e);var o=r(43066);Object.defineProperty(e,"concatSig",{enumerable:!0,get:function(){return o.concatSig}}),Object.defineProperty(e,"normalize",{enumerable:!0,get:function(){return o.normalize}})},38297:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.extractPublicKey=e.recoverPersonalSignature=e.personalSign=void 0;var n=r(19901),i=r(43066);function o(t,e){var r=(0,n.hashPersonalMessage)((0,i.legacyToBuffer)(t));return(0,i.recoverPublicKey)(r,e)}e.personalSign=function(t){var e=t.privateKey,r=t.data;if((0,i.isNullish)(r))throw new Error("Missing data parameter");if((0,i.isNullish)(e))throw new Error("Missing privateKey parameter");var o=(0,i.legacyToBuffer)(r),a=(0,n.hashPersonalMessage)(o),s=(0,n.ecsign)(a,e);return(0,i.concatSig)((0,n.toBuffer)(s.v),s.r,s.s)},e.recoverPersonalSignature=function(t){var e=t.data,r=t.signature;if((0,i.isNullish)(e))throw new Error("Missing data parameter");if((0,i.isNullish)(r))throw new Error("Missing signature parameter");var a=o(e,r),s=(0,n.publicToAddress)(a);return(0,n.bufferToHex)(s)},e.extractPublicKey=function(t){var e=t.data,r=t.signature;if((0,i.isNullish)(e))throw new Error("Missing data parameter");if((0,i.isNullish)(r))throw new Error("Missing signature parameter");var n=o(e,r);return"0x".concat(n.toString("hex"))}},42411:function(t,e,r){"use strict";var n=r(861).default,i=r(74704).default,o=r(27424).default;Object.defineProperty(e,"__esModule",{value:!0}),e.recoverTypedSignature=e.signTypedData=e.typedSignatureHash=e.TypedDataUtils=e.TYPED_MESSAGE_SCHEMA=e.SignTypedDataVersion=void 0;var a,s=r(19901),u=r(54496),c=r(55722),l=r(13945),f=r(43066);function h(t,e){if(!Object.keys(a).includes(t))throw new Error("Invalid version: '".concat(t,"'"));if(e&&!e.includes(t))throw new Error("SignTypedDataVersion not allowed: '".concat(t,"'. Allowed versions are: ").concat(e.join(", ")))}function d(t,e,r,n,i){if(h(i,[a.V3,a.V4]),void 0!==t[r])return["bytes32",i===a.V4&&null==n?"0x0000000000000000000000000000000000000000000000000000000000000000":(0,s.arrToBufArr)((0,u.keccak256)(p(r,n,t,i)))];if(void 0===n)throw new Error("missing value for field ".concat(e," of type ").concat(r));if("bytes"===r){if("number"===typeof n)n=(0,f.numberToBuffer)(n);else if((0,c.isHexString)(n)){var v=n.length%2?"0":"";n=Buffer.from(v+n.slice(2),"hex")}else n=Buffer.from(n,"utf8");return["bytes32",(0,s.arrToBufArr)((0,u.keccak256)(n))]}if("string"===r)return n="number"===typeof n?(0,f.numberToBuffer)(n):Buffer.from(null!==n&&void 0!==n?n:"","utf8"),["bytes32",(0,s.arrToBufArr)((0,u.keccak256)(n))];if(r.endsWith("]")){if(i===a.V3)throw new Error("Arrays are unimplemented in encodeData; use V4 extension");var m=r.slice(0,r.lastIndexOf("[")),g=n.map((function(r){return d(t,e,m,r,i)}));return["bytes32",(0,s.arrToBufArr)((0,u.keccak256)((0,l.rawEncode)(g.map((function(t){return o(t,1)[0]})),g.map((function(t){return o(t,2)[1]})))))]}return[r,n]}function p(t,e,r,n){h(n,[a.V3,a.V4]);var s,u=["bytes32"],c=[y(t,r)],f=i(r[t]);try{for(f.s();!(s=f.n()).done;){var p=s.value;if(n!==a.V3||void 0!==e[p.name]){var v=d(r,p.name,p.type,e[p.name],n),m=o(v,2),g=m[0],b=m[1];u.push(g),c.push(b)}}}catch(w){f.e(w)}finally{f.f()}return(0,l.rawEncode)(u,c)}function v(t,e){var r="",o=m(t,e);o.delete(t);var a,s=[t].concat(n(Array.from(o).sort())),u=i(s);try{for(u.s();!(a=u.n()).done;){var c=a.value;if(!e[c])throw new Error("No type definition specified: ".concat(c));r+="".concat(c,"(").concat(e[c].map((function(t){var e=t.name,r=t.type;return"".concat(r," ").concat(e)})).join(","),")")}}catch(l){u.e(l)}finally{u.f()}return r}function m(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Set;if("string"!==typeof t)throw new Error("Invalid findTypeDependencies input ".concat(JSON.stringify(t)));var n=t.match(/^[0-9A-Z_a-z]*/);if(t=o(n,1)[0],r.has(t)||void 0===e[t])return r;r.add(t);var a,s=i(e[t]);try{for(s.s();!(a=s.n()).done;){m(a.value.type,e,r)}}catch(u){s.e(u)}finally{s.f()}return r}function g(t,e,r,n){h(n,[a.V3,a.V4]);var i=p(t,e,r,n),o=(0,u.keccak256)(i);return(0,s.arrToBufArr)(o)}function y(t,e){var r=Buffer.from(v(t,e),"utf-8");return(0,s.arrToBufArr)((0,u.keccak256)(r))}function b(t){var r={};for(var n in e.TYPED_MESSAGE_SCHEMA.properties)t[n]&&(r[n]=t[n]);return"types"in r&&(r.types=Object.assign({EIP712Domain:[]},r.types)),r}function w(t,e){h(e,[a.V3,a.V4]);var r=b(t);return g("EIP712Domain",r.domain,{EIP712Domain:r.types.EIP712Domain},e)}function _(t){var e=new Error("Expect argument to be non-empty array");if("object"!==typeof t||!("length"in t)||!t.length)throw e;var r=t.map((function(t){return"bytes"!==t.type?t.value:(0,f.legacyToBuffer)(t.value)})),n=t.map((function(t){return t.type})),i=t.map((function(t){if(!t.name)throw e;return"".concat(t.type," ").concat(t.name)}));return(0,s.arrToBufArr)((0,u.keccak256)((0,l.solidityPack)(["bytes32","bytes32"],[(0,u.keccak256)((0,l.solidityPack)(new Array(t.length).fill("string"),i)),(0,u.keccak256)((0,l.solidityPack)(n,r))])))}!function(t){t.V1="V1",t.V3="V3",t.V4="V4"}(a=e.SignTypedDataVersion||(e.SignTypedDataVersion={})),e.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"]},e.TypedDataUtils={encodeData:p,encodeType:v,findTypeDependencies:m,hashStruct:g,hashType:y,sanitizeData:b,eip712Hash:function(t,e){h(e,[a.V3,a.V4]);var r=b(t),n=[Buffer.from("1901","hex")];return n.push(w(t,e)),"EIP712Domain"!==r.primaryType&&n.push(g(r.primaryType,r.message,r.types,e)),(0,s.arrToBufArr)((0,u.keccak256)(Buffer.concat(n)))},eip712DomainHash:w},e.typedSignatureHash=function(t){var e=_(t);return(0,s.bufferToHex)(e)},e.signTypedData=function(t){var r=t.privateKey,n=t.data,i=t.ver
2sion;if(h(i),(0,f.isNullish)(n))throw new Error("Missing data parameter");if((0,f.isNullish)(r))throw new Error("Missing private key parameter");var o=i===a.V1?_(n):e.TypedDataUtils.eip712Hash(n,i),u=(0,s.ecsign)(o,r);return(0,f.concatSig)((0,s.toBuffer)(u.v),u.r,u.s)},e.recoverTypedSignature=function(t){var r=t.data,n=t.signature,i=t.version;if(h(i),(0,f.isNullish)(r))throw new Error("Missing data parameter");if((0,f.isNullish)(n))throw new Error("Missing signature parameter");var o=i===a.V1?_(r):e.TypedDataUtils.eip712Hash(r,i),u=(0,f.recoverPublicKey)(o,n),c=(0,s.publicToAddress)(u);return(0,s.bufferToHex)(c)}},43066:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.numberToBuffer=e.normalize=e.recoverPublicKey=e.concatSig=e.legacyToBuffer=e.isNullish=e.padWithZeroes=void 0;var n=r(19901),i=r(55722);function o(t,e){if(""!==t&&!/^[0-9a-f]+$/i.test(t))throw new Error("Expected an unprefixed hex string. Received: ".concat(t));if(e<0)throw new Error("Expected a non-negative integer target length. Received: ".concat(e));return String.prototype.padStart.call(t,e,"0")}function a(t){return null===t||void 0===t}e.padWithZeroes=o,e.isNullish=a,e.legacyToBuffer=function(t){return"string"!==typeof t||(0,i.isHexString)(t)?(0,n.toBuffer)(t):Buffer.from(t)},e.concatSig=function(t,e,r){var a=(0,n.fromSigned)(e),s=(0,n.fromSigned)(r),u=(0,n.bufferToInt)(t),c=o((0,n.toUnsigned)(a).toString("hex"),64),l=o((0,n.toUnsigned)(s).toString("hex"),64),f=(0,i.stripHexPrefix)((0,i.intToHex)(u));return(0,n.addHexPrefix)(c.concat(l,f))},e.recoverPublicKey=function(t,e){var r=(0,n.fromRpcSig)(e);return(0,n.ecrecover)(t,r.v,r.r,r.s)},e.normalize=function(t){if(!a(t)){if("number"===typeof t){if(t<0)return"0x";var e=(0,n.toBuffer)(t);t=(0,n.bufferToHex)(e)}if("string"!==typeof t){var r="eth-sig-util.normalize() requires hex string or integer input.";throw r+=" received ".concat(typeof t,": ").concat(t),new Error(r)}return(0,n.addHexPrefix)(t.toLowerCase())}},e.numberToBuffer=function(t){var e=t.toString(16),r=e.length%2?"0":"";return Buffer.from(r+e,"hex")}},36671:function(t,e,r){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function o(t,e,r){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var a;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:r(993).Buffer}catch(M){}function s(t,e){var r=t.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function u(t,e,r){var n=s(t,r);return r-1>=e&&(n|=s(t,r-1)<<4),n}function c(t,e,r,n){for(var i=0,o=Math.min(t.length,r),a=e;a<o;a++){var s=t.charCodeAt(a)-48;i*=n,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(t){return t instanceof o||null!==t&&"object"===typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,r){if("number"===typeof t)return this._initNumber(t,e,r);if("object"===typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,r):(this._parseBase(t,e,i),"le"===r&&this._initArray(this.toArray(),e,r)))},o.prototype._initNumber=function(t,e,r){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initArray=function(t,e,r){if(n("number"===typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===r)for(i=t.length-1,o=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>
vendor: 9,742 bytes, line 2
226-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,a=0;if("be"===r)for(n=t.length-1;n>=e;n-=2)i=u(t,e,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(n=(t.length-e)%2===0?e+1:e;n<t.length;n+=2)i=u(t,e,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this.strip()},o.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,a=o%n,s=Math.min(o,o-a)+r,u=0,l=r;l<s;l+=n)u=c(t,l,l+n,e),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var f=1;for(u=c(t,l,t.length,e),l=0;l<a;l++)f*=e;this.imuln(f),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&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?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var l=["","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],h=[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 d(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var c=1;c<n;c++){for(var l=u>>>26,f=67108863&u,h=Math.min(c,e.length-1),d=Math.max(0,c-t.length+1);d<=h;d++){var p=c-d|0;l+=(a=(i=0|t.words[p])*(o=0|e.words[d])+f)/67108864|0,f=67108863&a}r.words[c]=0|f,u=0|l}return 0!==u?r.words[c]=0|u:r.length--,r.strip()}o.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<i|o)).toString(16);r=0!==(o=s>>>24-i&16777215)||a!==this.length-1?l[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%e!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var c=f[t],d=h[t];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var v=p.modn(d).toString(t);r=(p=p.idivn(d)).isZero()?v+r:l[c-v.length]+v+r}for(this.isZero()&&(r="0"+r);r.length%e!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return n("undefined"!==typeof a),this.toArrayLike(a,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===e,c=new t(o),l=this.clone();if(u){for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),c[s]=a;for(;s<o;s++)c[s]=0}else{for(s=0;s<o-i;s++)c[s]=0;for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),c[o-s-1]=a}return c},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0===(8191&e)&&(r+=13,e>>>=13),0===(127&e)&&(r+=7,e>>>=7),0===(15&e)&&(r+=4,e>>>=4),0===(3&e)&&(r+=2,e>>>=2),0===(1&e)&&r++,r},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return n(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return n(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return n(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"===typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e,r,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,a=0;a<n.length;a++)o=(e=(0|r.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&e;for(;0!==o&&a<r.length;a++)o=(e=(0|r.words[a])+o)>>26,this.words[a]=67108863&e;if(0===o&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var p=function(t,e,r){var n,i,o,a=t.words,s=e.words,u=r.words,c=0,l=0|a[0],f=8191&l,h=l>>>13,d=0|a[1],p=8191&d,v=d>>>13,m=0|a[2],g=8191&m,y=m>>>13,b=0|a[3],w=8191&b,_=b>>>13,x=0|a[4],E=8191&x,A=x>>>13,M=0|a[5],k=8191&M,S=M>>>13,I=0|a[6],P=8191&I,N=I>>>13,C=0|a[7],O=8191&C,T=C>>>13,R=0|a[8],B=8191&R,L=R>>>13,Z=0|a[9],j=8191&Z,F=Z>>>13,U=0|s[0],D=8191&U,H=U>>>13,z=0|s[1],$=8191&z,q=z>>>13,G=0|s[2],W=8191&G,V=G>>>13,K=0|s[3],Y=8191&K,X=K>>>13,J=0|s[4],Q=8191&J,tt=J>>>13,et=0|s[5],rt=8191&et,nt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>
vendor: 7,122 bytes, line 2
213,st=0|s[7],ut=8191&st,ct=st>>>13,lt=0|s[8],ft=8191&lt,ht=lt>>>13,dt=0|s[9],pt=8191&dt,vt=dt>>>13;r.negative=t.negative^e.negative,r.length=19;var mt=(c+(n=Math.imul(f,D))|0)+((8191&(i=(i=Math.imul(f,H))+Math.imul(h,D)|0))<<13)|0;c=((o=Math.imul(h,H))+(i>>>13)|0)+(mt>>>26)|0,mt&=67108863,n=Math.imul(p,D),i=(i=Math.imul(p,H))+Math.imul(v,D)|0,o=Math.imul(v,H);var gt=(c+(n=n+Math.imul(f,$)|0)|0)+((8191&(i=(i=i+Math.imul(f,q)|0)+Math.imul(h,$)|0))<<13)|0;c=((o=o+Math.imul(h,q)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(g,D),i=(i=Math.imul(g,H))+Math.imul(y,D)|0,o=Math.imul(y,H),n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,q)|0)+Math.imul(v,$)|0,o=o+Math.imul(v,q)|0;var yt=(c+(n=n+Math.imul(f,W)|0)|0)+((8191&(i=(i=i+Math.imul(f,V)|0)+Math.imul(h,W)|0))<<13)|0;c=((o=o+Math.imul(h,V)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(w,D),i=(i=Math.imul(w,H))+Math.imul(_,D)|0,o=Math.imul(_,H),n=n+Math.imul(g,$)|0,i=(i=i+Math.imul(g,q)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,q)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(v,W)|0,o=o+Math.imul(v,V)|0;var bt=(c+(n=n+Math.imul(f,Y)|0)|0)+((8191&(i=(i=i+Math.imul(f,X)|0)+Math.imul(h,Y)|0))<<13)|0;c=((o=o+Math.imul(h,X)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(E,D),i=(i=Math.imul(E,H))+Math.imul(A,D)|0,o=Math.imul(A,H),n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,q)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,q)|0,n=n+Math.imul(g,W)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(y,W)|0,o=o+Math.imul(y,V)|0,n=n+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(v,Y)|0,o=o+Math.imul(v,X)|0;var wt=(c+(n=n+Math.imul(f,Q)|0)|0)+((8191&(i=(i=i+Math.imul(f,tt)|0)+Math.imul(h,Q)|0))<<13)|0;c=((o=o+Math.imul(h,tt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(k,D),i=(i=Math.imul(k,H))+Math.imul(S,D)|0,o=Math.imul(S,H),n=n+Math.imul(E,$)|0,i=(i=i+Math.imul(E,q)|0)+Math.imul(A,$)|0,o=o+Math.imul(A,q)|0,n=n+Math.imul(w,W)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(_,W)|0,o=o+Math.imul(_,V)|0,n=n+Math.imul(g,Y)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(y,Y)|0,o=o+Math.imul(y,X)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,tt)|0;var _t=(c+(n=n+Math.imul(f,rt)|0)|0)+((8191&(i=(i=i+Math.imul(f,nt)|0)+Math.imul(h,rt)|0))<<13)|0;c=((o=o+Math.imul(h,nt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(P,D),i=(i=Math.imul(P,H))+Math.imul(N,D)|0,o=Math.imul(N,H),n=n+Math.imul(k,$)|0,i=(i=i+Math.imul(k,q)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,q)|0,n=n+Math.imul(E,W)|0,i=(i=i+Math.imul(E,V)|0)+Math.imul(A,W)|0,o=o+Math.imul(A,V)|0,n=n+Math.imul(w,Y)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(_,Y)|0,o=o+Math.imul(_,X)|0,n=n+Math.imul(g,Q)|0,i=(i=i+Math.imul(g,tt)|0)+Math.imul(y,Q)|0,o=o+Math.imul(y,tt)|0,n=n+Math.imul(p,rt)|0,i=(i=i+Math.imul(p,nt)|0)+Math.imul(v,rt)|0,o=o+Math.imul(v,nt)|0;var xt=(c+(n=n+Math.imul(f,ot)|0)|0)+((8191&(i=(i=i+Math.imul(f,at)|0)+Math.imul(h,ot)|0))<<13)|0;c=((o=o+Math.imul(h,at)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(O,D),i=(i=Math.imul(O,H))+Math.imul(T,D)|0,o=Math.imul(T,H),n=n+Math.imul(P,$)|0,i=(i=i+Math.imul(P,q)|0)+Math.imul(N,$)|0,o=o+Math.imul(N,q)|0,n=n+Math.imul(k,W)|0,i=(i=i+Math.imul(k,V)|0)+Math.imul(S,W)|0,o=o+Math.imul(S,V)|0,n=n+Math.imul(E,Y)|0,i=(i=i+Math.imul(E,X)|0)+Math.imul(A,Y)|0,o=o+Math.imul(A,X)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,tt)|0,n=n+Math.imul(g,rt)|0,i=(i=i+Math.imul(g,nt)|0)+Math.imul(y,rt)|0,o=o+Math.imul(y,nt)|0,n=n+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(v,ot)|0,o=o+Math.imul(v,at)|0;var Et=(c+(n=n+Math.imul(f,ut)|0)|0)+((8191&(i=(i=i+Math.imul(f,ct)|0)+Math.imul(h,ut)|0))<<13)|0;c=((o=o+Math.imul(h,ct)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(B,D),i=(i=Math.imul(B,H))+Math.imul(L,D)|0,o=Math.imul(L,H),n=n+Math.imul(O,$)|0,i=(i=i+Math.imul(O,q)|0)+Math.imul(T,$)|0,o=o+Math.imul(T,q)|0,n=n+Math.imul(P,W)|0,i=(i=i+Math.imul(P,V)|0)+Math.imul(N,W)|0,o=o+Math.imul(N,V)|0,n=n+Math.imul(k,Y)|0,i=(i=i+Math.imul(k,X)|0)+Math.imul(S,Y)|0,o=o+Math.imul(S,X)|0,n=n+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,tt)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,tt)|0,n=n+Math.imul(w,rt)|0,i=(i=i+Math.imul(w,nt)|0)+Math.imul(_,rt)|0,o=o+Math.imul(_,nt)|0,n=n+Math.imul(g,ot)|0,i=(i=i+Math.imul(g,at)|0)+Math.imul(y,ot)|0,o=o+Math.imul(y,at)|0,n=n+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,ct)|0)+Math.imul(v,ut)|0,o=o+Math.imul(v,ct)|0;var At=(c+(n=n+Math.imul(f,ft)|0)|0)+((8191&(i=(i=i+Math.imul(f,ht)|0)+Math.imul(h,ft)|0))<<13)|0;c=((o=o+Math.imul(h,ht)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(j,D),i=(i=Math.imul(j,H))+Math.imul(F,D)|0,o=Math.imul(F,H),n=n+Math.imul(B,$)|0,i=(i=i+Math.imul(B,q)|0)+Math.imul(L,$)|0,o=o+Math.imul(L,q)|0,n=n+Math.imul(O,W)|0,i=(i=i+Math.imul(O,V)|0)+Math.imul(T,W)|0,o=o+Math.imul(T,V)|0,n=n+Math.imul(P,Y)|0,i=(i=i+Math.imul(P,X)|0)+Math.imul(N,Y)|0,o=o+Math.imul(N,X)|0,n=n+Math.imul(k,Q)|0,i=(i=i+Math.imul(k,tt)|0)+Math.imul(S,Q)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(E,rt)|0,i=(i=i+Math.imul(E,nt)|0)+Math.imul(A,rt)|0,o=o+Math.imul(A,nt)|0,n=n+Math.imul(w,ot)|0,i=(i=i+Math.imul(w,at)|0)+Math.imul(_,ot)|0,o=o+Math.imul(_,at)|0,n=n+Math.imul(g,ut)|0,i=(i=i+Math.imul(g,ct)|0)+Math.imul(y,ut)|0,o=o+Math.imul(y,ct)|0,n=n+Math.imul(p,ft)|0,i=(i=i+Math.imul(p,ht)|0)+Math.imul(v,ft)|0,o=o+Math.imul(v,ht)|0;var Mt=(c+(n=n+Math.imul(f,pt)|0)|0)+((8191&(i=(i=i+Math.imul(f,vt)|0)+Math.imul(h,pt)|0))<<13)|0;c=((o=o+Math.imul(h,vt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(j,$),i=(i=Math.imul(j,q))+Math.imul(F,$)|0,o=Math.imul(F,q),n=n+Math.imul(B,W)|0,i=(i=i+Math.imul(B,V)|0)+Math.imul(L,W)|0,o=o+Math.imul(L,V)|0,n=n+Math.imul(O,Y)|0,i=(i=i+Math.imul(O,X)|0)+Math.imul(T,Y)|0,o=o+Math.imul(T,X)|0,n=n+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,tt)|0,n=n+Math.imul(k,rt)|0,i=(i=i+Math.imul(k,nt)|0)+Math.imul(S,rt)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(E,ot)|0,i=(i=i+Math.imul(E,at)|0)+Math.imul(A,ot)|0,o=o+Math.imul(A,at)|0,n=n+Math.imul(w,ut)|0,i=(i=i+Math.imul(w,ct)|0)+Math.imul(_,ut)|0,o=o+Math.imul(_,ct)|0,n=n+Math.imul(g,ft)|0,i=(i=i+Math.imul(g,ht)|0)+Math.imul(y,ft)|0,o=o+Math.imul(y,ht)|0;var kt=(c+(n=n+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,vt)|0)+Math.imul(v,pt)|0))<<13)|0;c=((o=o+Math.imul(v,vt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(j,W),i=(i=Math.imul(j,V))+Math.imul(F,W)|0,o=Math.imul(F,V),n=n+Math.imul(B,Y)|0,i=(i=i+Math.imul(B,X)|0)+Math.imul(L,Y)|0,o=o+Math.imul(L,X)|0,n=n+Math.imul(O,Q)|0,i=(i=i+Math.imul(O,tt)|0)+Math.imul(T,Q)|0,o=o+Math.imul(T,tt)|0,n=n+Math.imul(P,rt)|0,i=(i=i+Math.imul(P,nt)|0)+Math.imul(N,rt)|0,o=o+Math.imul(N,nt)|0,n=n+Math.imul(k,ot)|0,i=(i=i+Math.imul(k,at)|0)+Math.imul(S,ot)|0,o=o+Math.imul(S,at)|0,n=n+Math.imul(E,ut)|0,i=(i=i+Math.imul(E,ct)|0)+Math.imul(A,ut)|0,o=o+Math.imul(A,ct)|0,n=n+Math.imul(w,ft)|0,i=(i=i+Math.imul(w,ht)|0)+Math.imul(_,ft)|0,o=o+Math.imul(_,ht)|0;var St=(c+(n=n+Math.imul(g,pt)|0)|0)+((8191&(i=(i=i+Math.imul(g,vt)|0)+Math.imul(y,pt)|0))<<13)|0;c=((o=o+Math.imul(y,vt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(j,Y),i=(i=Math.imul(j,X))+Math.imul(F,Y)|0,o=Math.imul(F,X
vendor: 22,518 bytes, line 2
2),n=n+Math.imul(B,Q)|0,i=(i=i+Math.imul(B,tt)|0)+Math.imul(L,Q)|0,o=o+Math.imul(L,tt)|0,n=n+Math.imul(O,rt)|0,i=(i=i+Math.imul(O,nt)|0)+Math.imul(T,rt)|0,o=o+Math.imul(T,nt)|0,n=n+Math.imul(P,ot)|0,i=(i=i+Math.imul(P,at)|0)+Math.imul(N,ot)|0,o=o+Math.imul(N,at)|0,n=n+Math.imul(k,ut)|0,i=(i=i+Math.imul(k,ct)|0)+Math.imul(S,ut)|0,o=o+Math.imul(S,ct)|0,n=n+Math.imul(E,ft)|0,i=(i=i+Math.imul(E,ht)|0)+Math.imul(A,ft)|0,o=o+Math.imul(A,ht)|0;var It=(c+(n=n+Math.imul(w,pt)|0)|0)+((8191&(i=(i=i+Math.imul(w,vt)|0)+Math.imul(_,pt)|0))<<13)|0;c=((o=o+Math.imul(_,vt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(j,Q),i=(i=Math.imul(j,tt))+Math.imul(F,Q)|0,o=Math.imul(F,tt),n=n+Math.imul(B,rt)|0,i=(i=i+Math.imul(B,nt)|0)+Math.imul(L,rt)|0,o=o+Math.imul(L,nt)|0,n=n+Math.imul(O,ot)|0,i=(i=i+Math.imul(O,at)|0)+Math.imul(T,ot)|0,o=o+Math.imul(T,at)|0,n=n+Math.imul(P,ut)|0,i=(i=i+Math.imul(P,ct)|0)+Math.imul(N,ut)|0,o=o+Math.imul(N,ct)|0,n=n+Math.imul(k,ft)|0,i=(i=i+Math.imul(k,ht)|0)+Math.imul(S,ft)|0,o=o+Math.imul(S,ht)|0;var Pt=(c+(n=n+Math.imul(E,pt)|0)|0)+((8191&(i=(i=i+Math.imul(E,vt)|0)+Math.imul(A,pt)|0))<<13)|0;c=((o=o+Math.imul(A,vt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(j,rt),i=(i=Math.imul(j,nt))+Math.imul(F,rt)|0,o=Math.imul(F,nt),n=n+Math.imul(B,ot)|0,i=(i=i+Math.imul(B,at)|0)+Math.imul(L,ot)|0,o=o+Math.imul(L,at)|0,n=n+Math.imul(O,ut)|0,i=(i=i+Math.imul(O,ct)|0)+Math.imul(T,ut)|0,o=o+Math.imul(T,ct)|0,n=n+Math.imul(P,ft)|0,i=(i=i+Math.imul(P,ht)|0)+Math.imul(N,ft)|0,o=o+Math.imul(N,ht)|0;var Nt=(c+(n=n+Math.imul(k,pt)|0)|0)+((8191&(i=(i=i+Math.imul(k,vt)|0)+Math.imul(S,pt)|0))<<13)|0;c=((o=o+Math.imul(S,vt)|0)+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,n=Math.imul(j,ot),i=(i=Math.imul(j,at))+Math.imul(F,ot)|0,o=Math.imul(F,at),n=n+Math.imul(B,ut)|0,i=(i=i+Math.imul(B,ct)|0)+Math.imul(L,ut)|0,o=o+Math.imul(L,ct)|0,n=n+Math.imul(O,ft)|0,i=(i=i+Math.imul(O,ht)|0)+Math.imul(T,ft)|0,o=o+Math.imul(T,ht)|0;var Ct=(c+(n=n+Math.imul(P,pt)|0)|0)+((8191&(i=(i=i+Math.imul(P,vt)|0)+Math.imul(N,pt)|0))<<13)|0;c=((o=o+Math.imul(N,vt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(j,ut),i=(i=Math.imul(j,ct))+Math.imul(F,ut)|0,o=Math.imul(F,ct),n=n+Math.imul(B,ft)|0,i=(i=i+Math.imul(B,ht)|0)+Math.imul(L,ft)|0,o=o+Math.imul(L,ht)|0;var Ot=(c+(n=n+Math.imul(O,pt)|0)|0)+((8191&(i=(i=i+Math.imul(O,vt)|0)+Math.imul(T,pt)|0))<<13)|0;c=((o=o+Math.imul(T,vt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(j,ft),i=(i=Math.imul(j,ht))+Math.imul(F,ft)|0,o=Math.imul(F,ht);var Tt=(c+(n=n+Math.imul(B,pt)|0)|0)+((8191&(i=(i=i+Math.imul(B,vt)|0)+Math.imul(L,pt)|0))<<13)|0;c=((o=o+Math.imul(L,vt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863;var Rt=(c+(n=Math.imul(j,pt))|0)+((8191&(i=(i=Math.imul(j,vt))+Math.imul(F,pt)|0))<<13)|0;return c=((o=Math.imul(F,vt))+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,u[0]=mt,u[1]=gt,u[2]=yt,u[3]=bt,u[4]=wt,u[5]=_t,u[6]=xt,u[7]=Et,u[8]=At,u[9]=Mt,u[10]=kt,u[11]=St,u[12]=It,u[13]=Pt,u[14]=Nt,u[15]=Ct,u[16]=Ot,u[17]=Tt,u[18]=Rt,0!==c&&(u[19]=c,r.length++),r};function v(t,e,r){return(new m).mulp(t,e,r)}function m(t,e){this.x=t,this.y=e}Math.imul||(p=d),o.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return r=10===this.length&&10===t.length?p(this,t,e):n<63?d(this,t,e):n<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var s=67108863&n,u=Math.min(o,e.length-1),c=Math.max(0,o-t.length+1);c<=u;c++){var l=o-c,f=(0|t.words[l])*(0|e.words[c]),h=67108863&f;s=67108863&(h=h+s|0),i+=(a=(a=a+(f/67108864|0)|0)+(h>>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,t,e):v(this,t,e),r},m.prototype.makeRBT=function(t){for(var e=new Array(t),r=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},m.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},m.prototype.permute=function(t,e,r,n,i,o){for(var a=0;a<o;a++)n[a]=e[t[a]],i[a]=r[t[a]]},m.prototype.transform=function(t,e,r,n,i,o){this.permute(o,t,e,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),l=0;l<i;l+=s)for(var f=u,h=c,d=0;d<a;d++){var p=r[l+d],v=n[l+d],m=r[l+d+a],g=n[l+d+a],y=f*m-h*g;g=f*g+h*m,m=y,r[l+d]=p+m,n[l+d]=v+g,r[l+d+a]=p-m,n[l+d+a]=v-g,d!==s&&(y=u*f-c*h,h=u*h+c*f,f=y)}},m.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},m.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},m.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},m.prototype.convert13b=function(t,e,r,i){for(var o=0,a=0;a<e;a++)o+=0|t[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<i;++a)r[a]=0;n(0===o),n(0===(-8192&o))},m.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},m.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),u=new Array(n),c=new Array(n),l=new Array(n),f=new Array(n),h=r.words;h.length=n,this.convert13b(t.words,t.length,a,n),this.convert13b(e.words,e.length,c,n),this.transform(a,o,s,u,n,i),this.transform(c,o,l,f,n,i);for(var d=0;d<n;d++){var p=s[d]*l[d]-u[d]*f[d];u[d]=s[d]*f[d]+u[d]*l[d],s[d]=p}return this.conjugate(s,u,n),this.transform(s,u,h,o,n,i),this.conjugate(h,o,n),this.normalize13b(h,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),v(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){n("number"===typeof t),n(t<67108864);for(var e=0,r=0;r<this.length;r++){var i=(0|this.words[r])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[r]=67108863&o}return 0!==e&&(this.words[r]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=(t.words[n]&1<<i)>>>i}return e}(t);if(0===e.length)return new o(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(t){n("number"===typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&o,u=(0|this.words[e])-s<<r;this.words[e]=u|a,a=s>>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,r){var i;n("number"===typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<<o,u=r;if(i-=a,i=Math.max(0,i),u){for(var c=0;c<a;c++)u.words[c]=this.words[c];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var l=0;for(c=this.length-1;c>=0&&(0!==l||c>=i);c--){var f=0|this.words[c];this.words[c]=l<<26-o|f>>>o,l=f&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<<e;return!(this.length<=r)&&!!(this.words[r]&i)},o.prototype.imaskn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"===typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(n("number"===typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,r){var i,o,a=t.length+r;this._expand(a);var s=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+s;var u=(0|t.words[i])*e;s=((o-=67108863&u)>>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)s=(o=(0|this.words[i+r])+s)>>26,this.words[i+r]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,u=n.length-i.length;if("mod"!==e){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var l=n.clone()._ishlnsubmul(i,1,u);0===l.negative&&(n=l,s&&(s.words[u]=1));for(var f=u-1;f>=0;f--){var h=67108864*(0|n.words[i.length+f])+(0|n.words[i.length+f-1]);for(h=Math.min(h/a|0,67108863),n._ishlnsubmul(i,h,f);0!==n.negative;)h--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1);s&&(s.words[f]=h)}return s&&s.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,a,s},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},o.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),c=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var l=r.clone(),f=e.clone();!e.isZero();){for(var h=0,d=1;0===(e.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(e.iushrn(h);h-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(l),a.isub(f)),i.iushrn(1),a.iushrn(1);for(var p=0,v=1;0===(r.words[0]&v)&&p<26;++p,v<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(f)),s.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(s),a.isub(u)):(r.isub(e),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new o(1),s=new o(0),u=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,l=1;0===(e.words[0]&l)&&c<26;++c,l<<=1);if(c>0)for(e.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var f=0,h=1;0===(r.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(r.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),a.isub(s)):(r.isub(e),s.isub(a))}return(i=0===e.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){n("number"===typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new E(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},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(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var g={k256:null,p224:null,p192:null,p25519:null};function y(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function A(t){E.call(this,t),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)}y.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},y.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},y.prototype.split=function(t,e){t.iushrn(this.n,0,e)},y.prototype.imulK=function(t){return t.imul(this.k)},i(b,y),b.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i<n;i++)e.words[i]=t.words[i];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&r,i=10;i<t.length;i++){var a=0|t.words[i];t.words[i-10]=(a&r)<<4|o>>>22,o=a}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},b.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(w,y),i(_,y),i(x,y),x.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(g[t])return g[t];var e;if("k256"===t)e=new b;else if("p224"===t)e=new w;else if("p192"===t)e=new _;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new x}return g[t]=e,e},E.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},E.prototype._verify2=function(t,e){n(0===(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},E.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},E.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},E.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},E.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},E.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},E.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},E.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},E.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},E.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},E.prototype.isqr=function(t){return this.imul(t,t.clone())},E.prototype.sqr=function(t){return this.mul(t,t)},E.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2===1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var f=this.pow(l,i),h=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=a;0!==d.cmp(s);){for(var v=d,m=0;0!==v.cmp(s);m++)v=v.redSqr();n(m<p);var g=this.pow(f,new o(1).iushln(p-m-1));h=h.redMul(g),f=g.redSqr(),d=d.redMul(f),p=m}return h
2},E.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},E.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],a=0,s=0,u=e.bitLength()%26;for(0===u&&(u=26),n=e.length-1;n>=0;n--){for(var c=e.words[n],l=u-1;l>=0;l--){var f=c>>l&1;i!==r[0]&&(i=this.sqr(i)),0!==f||0!==a?(a<<=1,a|=f,(4===++s||0===n&&0===l)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}u=26}return i},E.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},E.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new A(t)},i(A,E),A.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},A.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},A.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},A.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},A.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},58093:function(t,e,r){!function(t){"use strict";var e=function(t){var e,r=new Float64Array(16);if(t)for(e=0;e<t.length;e++)r[e]=t[e];return r},n=function(){throw new Error("no PRNG")},i=new Uint8Array(16),o=new Uint8Array(32);o[0]=9;var a=e(),s=e([1]),u=e([56129,1]),c=e([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),l=e([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),f=e([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),h=e([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),d=e([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function p(t,e,r,n){t[e]=r>>24&255,t[e+1]=r>>16&255,t[e+2]=r>>8&255,t[e+3]=255&r,t[e+4]=n>>24&255,t[e+5]=n>>16&255,t[e+6]=n>>8&255,t[e+7]=255&n}function v(t,e,r,n,i){var o,a=0;for(o=0;o<i;o++)a|=t[e+o]^r[n+o];return(1&a-1>>>8)-1}function m(t,e,r,n){return v(t,e,r,n,16)}function g(t,e,r,n){return v(t,e,r,n,32)}function y(t,e,r,n){!function(t,e,r,n){for(var i,o=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,a=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,s=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,u=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,c=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,l=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,f=255&e[0]|(255&e[1])<<8|(255&e[2])<<16|(255&e[3])<<24,h=255&e[4]|(255&e[5])<<8|(255&e[6])<<16|(255&e[7])<<24,d=255&e[8]|(255&e[9])<<8|(255&e[10])<<16|(255&e[11])<<24,p=255&e[12]|(255&e[13])<<8|(255&e[14])<<16|(255&e[15])<<24,v=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,m=255&r[16]|(255&r[17])<<8|(255&r[18])<<16|(255&r[19])<<24,g=255&r[20]|(255&r[21])<<8|(255&r[22])<<16|(255&r[23])<<24,y=255&r[24]|(255&r[25])<<8|(255&r[26])<<16|(255&r[27])<<24,b=255&r[28]|(255&r[29])<<8|(255&r[30])<<16|(255&r[31])<<24,w=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,_=o,x=a,E=s,A=u,M=c,k=l,S=f,I=h,P=d,N=p,C=v,O=m,T=g,R=y,B=b,L=w,Z=0;Z<20;Z+=2)_^=(i=(T^=(i=(P^=(i=(M^=(i=_+T|0)<<7|i>>>25)+_|0)<<9|i>>>23)+M|0)<<13|i>>>19)+P|0)<<18|i>>>14,k^=(i=(x^=(i=(R^=(i=(N^=(i=k+x|0)<<7|i>>>25)+k|0)<<9|i>>>23)+N|0)<<13|i>>>19)+R|0)<<18|i>>>14,C^=(i=(S^=(i=(E^=(i=(B^=(i=C+S|0)<<7|i>>>25)+C|0)<<9|i>>>23)+B|0)<<13|i>>>19)+E|0)<<18|i>>>14,L^=(i=(O^=(i=(I^=(i=(A^=(i=L+O|0)<<7|i>>>25)+L|0)<<9|i>>>23)+A|0)<<13|i>>>19)+I|0)<<18|i>>>14,_^=(i=(A^=(i=(E^=(i=(x^=(i=_+A|0)<<7|i>>>25)+_|0)<<9|i>>>23)+x|0)<<13|i>>>19)+E|0)<<18|i>>>14,k^=(i=(M^=(i=(I^=(i=(S^=(i=k+M|0)<<7|i>>>25)+k|0)<<9|i>>>23)+S|0)<<13|i>>>19)+I|0)<<18|i>>>14,C^=(i=(N^=(i=(P^=(i=(O^=(i=C+N|0)<<7|i>>>25)+C|0)<<9|i>>>23)+O|0)<<13|i>>>19)+P|0)<<18|i>>>14,L^=(i=(B^=(i=(R^=(i=(T^=(i=L+B|0)<<7|i>>>25)+L|0)<<9|i>>>23)+T|0)<<13|i>>>19)+R|0)<<18|i>>>14;_=_+o|0,x=x+a|0,E=E+s|0,A=A+u|0,M=M+c|0,k=k+l|0,S=S+f|0,I=I+h|0,P=P+d|0,N=N+p|0,C=C+v|0,O=O+m|0,T=T+g|0,R=R+y|0,B=B+b|0,L=L+w|0,t[0]=_>>>0&255,t[1]=_>>>8&255,t[2]=_>>>16&255,t[3]=_>>>24&255,t[4]=x>>>0&255,t[5]=x>>>8&255,t[6]=x>>>16&255,t[7]=x>>>24&255,t[8]=E>>>0&255,t[9]=E>>>8&255,t[10]=E>>>16&255,t[11]=E>>>24&255,t[12]=A>>>0&255,t[13]=A>>>8&255,t[14]=A>>>16&255,t[15]=A>>>24&255,t[16]=M>>>0&255,t[17]=M>>>8&255,t[18]=M>>>16&255,t[19]=M>>>24&255,t[20]=k>>>0&255,t[21]=k>>>8&255,t[22]=k>>>16&255,t[23]=k>>>24&255,t[24]=S>>>0&255,t[25]=S>>>8&255,t[26]=S>>>16&255,t[27]=S>>>24&255,t[28]=I>>>0&255,t[29]=I>>>8&255,t[30]=I>>>16&255,t[31]=I>>>24&255,t[32]=P>>>0&255,t[33]=P>>>8&255,t[34]=P>>>16&255,t[35]=P>>>24&255,t[36]=N>>>0&255,t[37]=N>>>8&255,t[38]=N>>>16&255,t[39]=N>>>24&255,t[40]=C>>>0&255,t[41]=C>>>8&255,t[42]=C>>>16&255,t[43]=C>>>24&255,t[44]=O>>>0&255,t[45]=O>>>8&255,t[46]=O>>>16&255,t[47]=O>>>24&255,t[48]=T>>>0&255,t[49]=T>>>8&255,t[50]=T>>>16&255,t[51]=T>>>24&255,t[52]=R>>>0&255,t[53]=R>>>8&255,t[54]=R>>>16&255,t[55]=R>>>24&255,t[56]=B>>>0&255,t[57]=B>>>8&255,t[58]=B>>>16&255,t[59]=B>>>24&255,t[60]=L>>>0&255,t[61]=L>>>8&255,t[62]=L>>>16&255,t[63]=L>>>24&255}(t,e,r,n)}function b(t,e,r,n){!function(t,e,r,n){for(var i,o=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,a=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,s=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,u=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,c=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,l=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,f=255&e[0]|(255&e[1])<<8|(255&e[2])<<16|(255&e[3])<<24,h=255&e[4]|(255&e[5])<<8|(255&e[6])<<16|(255&e[7])<<24,d=255&e[8]|(255&e[9])<<8|(255&e[10])<<16|(255&e[11])<<24,p=255&e[12]|(255&e[13])<<8|(255&e[14])<<16|(255&e[15])<<24,v=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,m=255&r[16]|(255&r[17])<<8|(255&r[18])<<16|(255&r[19])<<24,g=255&r[20]|(255&r[21])<<8|(255&r[22])<<16|(255&r[23])<<24,y=255&r[24]|(255&r[25])<<8|(255&r[26])<<16|(255&r[27])<<24,b=255&r[28]|(255&r[29])<<8|(255&r[30])<<16|(255&r[31])<<24,w=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,_=0;_<20;_+=2)o^=(i=(g^=(i=(d^=(i=(c^=(i=o+g|0)<<7|i>>>25)+o|0)<<9|i>>>23)+c|0)<<13|i>>>19)+d|0)<<18|i>>>14,l^=(i=(a^=(i=(y^=(i=(p^=(i=l+a|0)<<7|i>>>25)+l|0)<<9|i>>>23)+p|0)<<13|i>>>19)+y|0)<<18|i>>>14,v^=(i=(f^=(i=(s^=(i=(b^=(i=v+f|0)<<7|i>>>25)+v|0)<<9|i>>>23)+b|0)<<13|i>>>19)+s|0)<<18|i>>>14,w^=(i=(m^=(i=(h^=(i=(u^=(i=w+m|0)<<7|i>>>25)+w|0)<<9|i>>>23)+u|0)<<13|i>>>19)+h|0)<<18|i>>>14,o^=(i=(u^=(i=(s^=(i=(a^=(i=o+u|0)<<7|i>>>25)+o|0)<<9|i>>>23)+a|0)<<13|i>>>19)+s|0)<<18|i>>>14,l^=(i=(c^=(i=(h^=(i=(f^=(i=l+c|0)<<7|i>>>25)+l|0)<<9|i>>>23)+f|0)<<13|i>>>19)+h|0)<<18|i>>>14,v^=(i=(p^=(i=(d^=(i=(m^=(i=v+p|0)<<7|i>>>25)+v|0)<<9|i>>>23)+m|0)<<13|i>>>19)+d|0)<<18|i>>>14,w^=(i=(b^=(i=(y^=(i=(g^=(i=w+b|0)<<7|i>>>25)+w|0)<<9|i>>>23)+g|0)<<13|i>>>19)+y|0)<<18|i>>>14;t[0]=o>>>0&255,t[1]=o>>>8&255,t[2]=o>>>16&255,t[3]=o>>>24&255,t[4]=l>>>0&255,t[5]=l>>>8&255,t[6]=l>>>16&255,t[7]=l>>>24&255,t[8]=v>>>0&255,t[9]=v>>>8&255,t[10]=v>>>16&255,t[11]=v>>>24&255,t[12]=w>>>0&255,t[13]=w>>>8&255,t[14]=w>>>16&255,t[15]=w>>>24&255,t[16]=f>>>0&255,t[17]=f>>>8&255,t[18]=f>>>16&255,t[19]=f>>>24&255,t[20]=h>>>0&255,t[21]=h>>>8&255,t[22]=h>>>16&255,t[23]=h>>>24&255,t[24]=d>>>0&255,t[25]=d>>>8&255,t[26]=d>>>16&255,t[27]=d>>>24&255,t[28]=p>>>0&255,t[29]=p>>>8&255,t[30]=p>>>16&255,t[31]=p>>>24&255}(t,e,r,n)}var w=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function _(t,e,r,n,i,o,a){var s,u,c=new Uint8Array(16),l=new Uint8Array(64);for(u=0;
vendor: 20,605 bytes, line 2
2u<16;u++)c[u]=0;for(u=0;u<8;u++)c[u]=o[u];for(;i>=64;){for(y(l,c,a,w),u=0;u<64;u++)t[e+u]=r[n+u]^l[u];for(s=1,u=8;u<16;u++)s=s+(255&c[u])|0,c[u]=255&s,s>>>=8;i-=64,e+=64,n+=64}if(i>0)for(y(l,c,a,w),u=0;u<i;u++)t[e+u]=r[n+u]^l[u];return 0}function x(t,e,r,n,i){var o,a,s=new Uint8Array(16),u=new Uint8Array(64);for(a=0;a<16;a++)s[a]=0;for(a=0;a<8;a++)s[a]=n[a];for(;r>=64;){for(y(u,s,i,w),a=0;a<64;a++)t[e+a]=u[a];for(o=1,a=8;a<16;a++)o=o+(255&s[a])|0,s[a]=255&o,o>>>=8;r-=64,e+=64}if(r>0)for(y(u,s,i,w),a=0;a<r;a++)t[e+a]=u[a];return 0}function E(t,e,r,n,i){var o=new Uint8Array(32);b(o,n,i,w);for(var a=new Uint8Array(8),s=0;s<8;s++)a[s]=n[s+16];return x(t,e,r,a,o)}function A(t,e,r,n,i,o,a){var s=new Uint8Array(32);b(s,o,a,w);for(var u=new Uint8Array(8),c=0;c<8;c++)u[c]=o[c+16];return _(t,e,r,n,i,u,s)}var M=function(t){var e,r,n,i,o,a,s,u;this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0,e=255&t[0]|(255&t[1])<<8,this.r[0]=8191&e,r=255&t[2]|(255&t[3])<<8,this.r[1]=8191&(e>>>13|r<<3),n=255&t[4]|(255&t[5])<<8,this.r[2]=7939&(r>>>10|n<<6),i=255&t[6]|(255&t[7])<<8,this.r[3]=8191&(n>>>7|i<<9),o=255&t[8]|(255&t[9])<<8,this.r[4]=255&(i>>>4|o<<12),this.r[5]=o>>>1&8190,a=255&t[10]|(255&t[11])<<8,this.r[6]=8191&(o>>>14|a<<2),s=255&t[12]|(255&t[13])<<8,this.r[7]=8065&(a>>>11|s<<5),u=255&t[14]|(255&t[15])<<8,this.r[8]=8191&(s>>>8|u<<8),this.r[9]=u>>>5&127,this.pad[0]=255&t[16]|(255&t[17])<<8,this.pad[1]=255&t[18]|(255&t[19])<<8,this.pad[2]=255&t[20]|(255&t[21])<<8,this.pad[3]=255&t[22]|(255&t[23])<<8,this.pad[4]=255&t[24]|(255&t[25])<<8,this.pad[5]=255&t[26]|(255&t[27])<<8,this.pad[6]=255&t[28]|(255&t[29])<<8,this.pad[7]=255&t[30]|(255&t[31])<<8};function k(t,e,r,n,i,o){var a=new M(o);return a.update(r,n,i),a.finish(t,e),0}function S(t,e,r,n,i,o){var a=new Uint8Array(16);return k(a,0,r,n,i,o),m(t,e,a,0)}function I(t,e,r,n,i){var o;if(r<32)return-1;for(A(t,0,e,0,r,n,i),k(t,16,t,32,r-32,t),o=0;o<16;o++)t[o]=0;return 0}function P(t,e,r,n,i){var o,a=new Uint8Array(32);if(r<32)return-1;if(E(a,0,32,n,i),0!==S(e,16,e,32,r-32,a))return-1;for(A(t,0,e,0,r,n,i),o=0;o<32;o++)t[o]=0;return 0}function N(t,e){var r;for(r=0;r<16;r++)t[r]=0|e[r]}function C(t){var e,r,n=1;for(e=0;e<16;e++)r=t[e]+n+65535,n=Math.floor(r/65536),t[e]=r-65536*n;t[0]+=n-1+37*(n-1)}function O(t,e,r){for(var n,i=~(r-1),o=0;o<16;o++)n=i&(t[o]^e[o]),t[o]^=n,e[o]^=n}function T(t,r){var n,i,o,a=e(),s=e();for(n=0;n<16;n++)s[n]=r[n];for(C(s),C(s),C(s),i=0;i<2;i++){for(a[0]=s[0]-65517,n=1;n<15;n++)a[n]=s[n]-65535-(a[n-1]>>16&1),a[n-1]&=65535;a[15]=s[15]-32767-(a[14]>>16&1),o=a[15]>>16&1,a[14]&=65535,O(s,a,1-o)}for(n=0;n<16;n++)t[2*n]=255&s[n],t[2*n+1]=s[n]>>8}function R(t,e){var r=new Uint8Array(32),n=new Uint8Array(32);return T(r,t),T(n,e),g(r,0,n,0)}function B(t){var e=new Uint8Array(32);return T(e,t),1&e[0]}function L(t,e){var r;for(r=0;r<16;r++)t[r]=e[2*r]+(e[2*r+1]<<8);t[15]&=32767}function Z(t,e,r){for(var n=0;n<16;n++)t[n]=e[n]+r[n]}function j(t,e,r){for(var n=0;n<16;n++)t[n]=e[n]-r[n]}function F(t,e,r){var n,i,o=0,a=0,s=0,u=0,c=0,l=0,f=0,h=0,d=0,p=0,v=0,m=0,g=0,y=0,b=0,w=0,_=0,x=0,E=0,A=0,M=0,k=0,S=0,I=0,P=0,N=0,C=0,O=0,T=0,R=0,B=0,L=r[0],Z=r[1],j=r[2],F=r[3],U=r[4],D=r[5],H=r[6],z=r[7],$=r[8],q=r[9],G=r[10],W=r[11],V=r[12],K=r[13],Y=r[14],X=r[15];o+=(n=e[0])*L,a+=n*Z,s+=n*j,u+=n*F,c+=n*U,l+=n*D,f+=n*H,h+=n*z,d+=n*$,p+=n*q,v+=n*G,m+=n*W,g+=n*V,y+=n*K,b+=n*Y,w+=n*X,a+=(n=e[1])*L,s+=n*Z,u+=n*j,c+=n*F,l+=n*U,f+=n*D,h+=n*H,d+=n*z,p+=n*$,v+=n*q,m+=n*G,g+=n*W,y+=n*V,b+=n*K,w+=n*Y,_+=n*X,s+=(n=e[2])*L,u+=n*Z,c+=n*j,l+=n*F,f+=n*U,h+=n*D,d+=n*H,p+=n*z,v+=n*$,m+=n*q,g+=n*G,y+=n*W,b+=n*V,w+=n*K,_+=n*Y,x+=n*X,u+=(n=e[3])*L,c+=n*Z,l+=n*j,f+=n*F,h+=n*U,d+=n*D,p+=n*H,v+=n*z,m+=n*$,g+=n*q,y+=n*G,b+=n*W,w+=n*V,_+=n*K,x+=n*Y,E+=n*X,c+=(n=e[4])*L,l+=n*Z,f+=n*j,h+=n*F,d+=n*U,p+=n*D,v+=n*H,m+=n*z,g+=n*$,y+=n*q,b+=n*G,w+=n*W,_+=n*V,x+=n*K,E+=n*Y,A+=n*X,l+=(n=e[5])*L,f+=n*Z,h+=n*j,d+=n*F,p+=n*U,v+=n*D,m+=n*H,g+=n*z,y+=n*$,b+=n*q,w+=n*G,_+=n*W,x+=n*V,E+=n*K,A+=n*Y,M+=n*X,f+=(n=e[6])*L,h+=n*Z,d+=n*j,p+=n*F,v+=n*U,m+=n*D,g+=n*H,y+=n*z,b+=n*$,w+=n*q,_+=n*G,x+=n*W,E+=n*V,A+=n*K,M+=n*Y,k+=n*X,h+=(n=e[7])*L,d+=n*Z,p+=n*j,v+=n*F,m+=n*U,g+=n*D,y+=n*H,b+=n*z,w+=n*$,_+=n*q,x+=n*G,E+=n*W,A+=n*V,M+=n*K,k+=n*Y,S+=n*X,d+=(n=e[8])*L,p+=n*Z,v+=n*j,m+=n*F,g+=n*U,y+=n*D,b+=n*H,w+=n*z,_+=n*$,x+=n*q,E+=n*G,A+=n*W,M+=n*V,k+=n*K,S+=n*Y,I+=n*X,p+=(n=e[9])*L,v+=n*Z,m+=n*j,g+=n*F,y+=n*U,b+=n*D,w+=n*H,_+=n*z,x+=n*$,E+=n*q,A+=n*G,M+=n*W,k+=n*V,S+=n*K,I+=n*Y,P+=n*X,v+=(n=e[10])*L,m+=n*Z,g+=n*j,y+=n*F,b+=n*U,w+=n*D,_+=n*H,x+=n*z,E+=n*$,A+=n*q,M+=n*G,k+=n*W,S+=n*V,I+=n*K,P+=n*Y,N+=n*X,m+=(n=e[11])*L,g+=n*Z,y+=n*j,b+=n*F,w+=n*U,_+=n*D,x+=n*H,E+=n*z,A+=n*$,M+=n*q,k+=n*G,S+=n*W,I+=n*V,P+=n*K,N+=n*Y,C+=n*X,g+=(n=e[12])*L,y+=n*Z,b+=n*j,w+=n*F,_+=n*U,x+=n*D,E+=n*H,A+=n*z,M+=n*$,k+=n*q,S+=n*G,I+=n*W,P+=n*V,N+=n*K,C+=n*Y,O+=n*X,y+=(n=e[13])*L,b+=n*Z,w+=n*j,_+=n*F,x+=n*U,E+=n*D,A+=n*H,M+=n*z,k+=n*$,S+=n*q,I+=n*G,P+=n*W,N+=n*V,C+=n*K,O+=n*Y,T+=n*X,b+=(n=e[14])*L,w+=n*Z,_+=n*j,x+=n*F,E+=n*U,A+=n*D,M+=n*H,k+=n*z,S+=n*$,I+=n*q,P+=n*G,N+=n*W,C+=n*V,O+=n*K,T+=n*Y,R+=n*X,w+=(n=e[15])*L,a+=38*(x+=n*j),s+=38*(E+=n*F),u+=38*(A+=n*U),c+=38*(M+=n*D),l+=38*(k+=n*H),f+=38*(S+=n*z),h+=38*(I+=n*$),d+=38*(P+=n*q),p+=38*(N+=n*G),v+=38*(C+=n*W),m+=38*(O+=n*V),g+=38*(T+=n*K),y+=38*(R+=n*Y),b+=38*(B+=n*X),o=(n=(o+=38*(_+=n*Z))+(i=1)+65535)-65536*(i=Math.floor(n/65536)),a=(n=a+i+65535)-65536*(i=Math.floor(n/65536)),s=(n=s+i+65535)-65536*(i=Math.floor(n/65536)),u=(n=u+i+65535)-65536*(i=Math.floor(n/65536)),c=(n=c+i+65535)-65536*(i=Math.floor(n/65536)),l=(n=l+i+65535)-65536*(i=Math.floor(n/65536)),f=(n=f+i+65535)-65536*(i=Math.floor(n/65536)),h=(n=h+i+65535)-65536*(i=Math.floor(n/65536)),d=(n=d+i+65535)-65536*(i=Math.floor(n/65536)),p=(n=p+i+65535)-65536*(i=Math.floor(n/65536)),v=(n=v+i+65535)-65536*(i=Math.floor(n/65536)),m=(n=m+i+65535)-65536*(i=Math.floor(n/65536)),g=(n=g+i+65535)-65536*(i=Math.floor(n/65536)),y=(n=y+i+65535)-65536*(i=Math.floor(n/65536)),b=(n=b+i+65535)-65536*(i=Math.floor(n/65536)),w=(n=w+i+65535)-65536*(i=Math.floor(n/65536)),o=(n=(o+=i-1+37*(i-1))+(i=1)+65535)-65536*(i=Math.floor(n/65536)),a=(n=a+i+65535)-65536*(i=Math.floor(n/65536)),s=(n=s+i+65535)-65536*(i=Math.floor(n/65536)),u=(n=u+i+65535)-65536*(i=Math.floor(n/65536)),c=(n=c+i+65535)-65536*(i=Math.floor(n/65536)),l=(n=l+i+65535)-65536*(i=Math.floor(n/65536)),f=(n=f+i+65535)-65536*(i=Math.floor(n/65536)),h=(n=h+i+65535)-65536*(i=Math.floor(n/65536)),d=(n=d+i+65535)-65536*(i=Math.floor(n/65536)),p=(n=p+i+65535)-65536*(i=Math.floor(n/65536)),v=(n=v+i+65535)-65536*(i=Math.floor(n/65536)),m=(n=m+i+65535)-65536*(i=Math.floor(n/65536)),g=(n=g+i+65535)-65536*(i=Math.floor(n/65536)),y=(n=y+i+65535)-65536*(i=Math.floor(n/65536)),b=(n=b+i+65535)-65536*(i=Math.floor(n/65536)),w=(n=w+i+65535)-65536*(i=Math.floor(n/65536)),o+=i-1+37*(i-1),t[0]=o,t[1]=a,t[2]=s,t[3]=u,t[4]=c,t[5]=l,t[6]=f,t[7]=h,t[8]=d,t[9]=p,t[10]=v,t[11]=m,t[12]=g,t[13]=y,t[14]=b,t[15]=w}function U(t,e){F(t,e,e)}function D(t,r){var n,i=e();for(n=0;n<16;n++)i[n]=r[n];for(n=253;n>=0;n--)U(i,i),2!==n&&4!==n&&F(i,i,r);for(n=0;n<16;n++)t[n]=i[n]}function H(t,r){var n,i=e();for(n=0;n<16;n++)i[n]=r[n];for(n=250;n>=0;n--)U(i,i),1!==n&&F(i,i,r);for(n=0;n<16;n++)t[n]=i[n]}function z(t,r,n){var i,o,a=new Uint8Array(32),s=new Float64Array(80),c=e(),l=e(),f=e(),h=e(),d=e(),p=e();for(o=0;o<31;o++)a[o]=r[o];for(a[31]=127&r[31]|64,a[0]&=248,L(s,n),o=0;o<16;o++)l[o]=s[o],h[o]=c[o]=f[o]=0;for(c[0]=h[0]=1,o=254;o>=0;--o)O(c,l,i=a[o>>>3]>>>(7&o)&1),O(f,h,i),Z(d,c,f),j(c,c,f),Z(f,l,h),j(l,l,h),U(h,d),U(p,c),F(c,f,c),F(f,l,d),Z(d,c,f),j(c,c,f),U(l,c),j(f,h,p),F(c,f,u),Z(c,c,h),F(f,f,c),F(c,h,p),F(h,l,s),U(l,d),O(c,l,i),O(f,h,i);for(o=0;o<16;o++)s[o+16]=c[o],s[o+32]=f[o],s[o+48]=l[o],s[o+64]=h[o];var v=s.subarray(32),m=s.subarray(16);return D(v,v),F(m,m,v),T(t,m),0}function $(t,e){return z(t,e,o)}function q(t,e){return n(e,32),$(t,e)}function G(t,e,r){var n=new Uint8Array(32);return z(n,r,e),b(t,i,n,w)}M.prototype.blocks=function(t,e,r){for(var n,i,o,a,s,u,c,l,f,h,d,p,v,m,g,y,b,w,_,x=this.fin?0:2048,E=this.h[0],A=this.h[1],M=this.h[2],k=this.h[3],S=this.h[4],I=this.h[5],P=this.h[6],N=this.h[7],C=this.h[8],O=this.h[9],T=this.r[0],R=this.r[1],B=this.r[2],L=this.r[3],Z=this.r[4],j=this.r[5],F=this.r[6],U=this.r[7],D=this.r[8],H=this.r[9];r>=16;)h=f=0,h+=(E+=8191&(n=255&t[e+0]|(255&t[e+1])<<8))*T,h+=(A+=8191&(n>>>13|(i=255&t[e+2]|(255&t[e+3])<<8)<<3))*(5*H),h+=(M+=8191&(i>>>10|(o=255&t[e+4]|(255&t[e+5])<<8)<<6))*(5*D),h+=(k+=8191&(o>>>7|(a=255&t[e+6]|(255&t[e+7])<<8)<<9))*(5*U),f=(h+=(S+=8191&(a>>>4|(s=255&t[e+8]|(255&t[e+9])<<8)<<12))*(5*F))>>>13,h&=8191,h+=(I+=s>>>1&8191)*(5*j),h+=(P+=8191&(s>>>14|(u=255&t[e+10]|(255&t[e+11])<<8)<<2))*(5*Z),h+=(N+=8191&(u>>>11|(c=255&t[e+12]|(255&t[e+13])<<8)<<5))*(5*L),h+=(C+=8191&(c>>>8|(l=255&t[e+14]|(255&t[e+15])<<8)<<8))*(5*B),d=f+=(h+=(O+=l>>>5|x)*(5*R))>>>13,d+=E*R,d+=A*T,d+=M*(5*H),d+=k*(5*D),f=(d+=S*(5*U))>>>13,d&=8191,d+=I*(5*F),d+=P*(5*j),d+=N*(5*Z),d+=C*(5*L),f+=(d+=O*(5*B))>>>13,d&=8191,p=f,p+=E*B,p+=A*R,p+=M*T,p+=k*(5*H),f=(p+=S*(5*D))>>>13,p&=8191,p+=I*(5*U),p+=P*(5*F),p+=N*(5*j),p+=C*(5*Z),v=f+=(p+=O*(5*L))>>>13,v+=E*L,v+=A*B,v+=M*R,v+=k*T,f=(v+=S*(5*H))>>>13,v&=8191,v+=I*(5*D),v+=P*(5*U),v+=N*(5*F),v+=C*(5*j),m=f+=(v+=O*(5*Z))>>>13,m+=E*Z,m+=A*L,m+=M*B,m+=k*R,f=(m+=S*T)>>>13,m&=8191,m+=I*(5*H),m+=P*(5*D),m+=N*(5*U),m+=C*(5*F),g=f+=(m+=O*(5*j))>>>13,g+=E*j,g+=A*Z,g+=M*L,g+=k*B,f=(g+=S*R)>>>13,g&=8191,g+=I*T,g+=P*(5*H),g+=N*(5*D),g+=C*(5*U),y=f+=(g+=O*(5*F))>>>13,y+=E*F,y+=A*j,y+=M*Z,y+=k*L,f=(y+=S*B)>>>13,y&=8191,y+=I*R,y+=P*T,y+=N*(5*H),y+=C*(5*D),b=f+=(y+=O*(5*U))>>>13,b+=E*U,b+=A*F,b+=M*j,b+=k*Z,f=(b+=S*L)>>>13,b&=8191,b+=I*B,b+=P*R,b+=N*T,b+=C*(5*H),w=f+=(b+=O*(5*D))>>>13,w+=E*D,w+=A*U,w+=M*F,w+=k*j,f=(w+=S*Z)>>>13,w&=8191,w+=I*L,w+=P*B,w+=N*R,w+=C*T,_=f+=(w+=O*(5*H))>>>13,_+=E*H,_+=A*D,_+=M*U,_+=k*F,f=(_+=S*j)>>>13,_&=8191,_+=I*Z,_+=P*L,_+=N*B,_+=C*R,E=h=8191&(f=(f=((f+=(_+=O*T)>>>13)<<2)+f|0)+(h&=8191)|0),A=d+=f>>>=13,M=p&=8191,k=v&=8191,S=m&=8191,I=g&=8191,P=y&=8191,N=b&=8191,C=w&=8191,O=_&=8191,e+=16,r-=16;this.h[0]=E,this.h[1]=A,this.h[2]=M,this.h[3]=k,this.h[4]=S,this.h[5]=I,this.h[6]=P,this.h[7]=N,this.h[8]=C,this.h[9]=O},M.prototype.finish=function(t,e){var r,n,i,o,a=new Uint16Array(10);if(this.leftover){for(o=this.leftover,this.buffer[o++]=1;o<16;o++)this.buffer[o]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(r=this.h[1]>>>13,this.h[1]&=8191,o=2;o<10;o++)this.h[o]+=r,r=this.h[o]>>>13,this.h[o]&=8191;for(this.h[0]+=5*r,r=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=r,r=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=r,a[0]=this.h[0]+5,r=a[0]>>>13,a[0]&=8191,o=1;o<10;o++)a[o]=this.h[o]+r,r=a[o]>>>13,a[o]&=8191;for(a[9]-=8192,n=(1^r)-1,o=0;o<10;o++)a[o]&=n;for(n=~n,o=0;o<10;o++)this.h[o]=this.h[o]&n|a[o];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),i=this.h[0]+this.pad[0],this.h[0]=65535&i,o=1;o<8;o++)i=(this.h[o]+this.pad[o]|0)+(i>>>16)|0,this.h[o]=65535&i;t[e+0]=this.h[0]>>>0&255,t[e+1]=this.h[0]>>>8&255,t[e+2]=this.h[1]>>>0&255,t[e+3]=this.h[1]>>>8&255,t[e+4]=this.h[2]>>>0&255,t[e+5]=this.h[2]>>>8&255,t[e+6]=this.h[3]>>>0&255,t[e+7]=this.h[3]>>>8&255,t[e+8]=this.h[4]>>>0&255,t[e+9]=this.h[4]>>>8&255,t[e+10]=this.h[5]>>>0&255,t[e+11]=this.h[5]>>>8&255,t[e+12]=this.h[6]>>>0&255,t[e+13]=this.h[6]>>>8&255,t[e+14]=this.h[7]>>>0&255,t[e+15]=this.h[7]>>>8&255},M.prototype.update=function(t,e,r){var n,i;if(this.leftover){for((i=16-this.leftover)>r&&(i=r),n=0;n<i;n++)this.buffer[this.leftover+n]=t[e+n];if(r-=i,e+=i,this.leftover+=i,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(r>=16&&(i=r-r%16,this.blocks(t,e,i),e+=i,r-=i),r){for(n=0;n<r;n++)this.buffer[this.leftover+n]=t[e+n];this.leftover+=r}};var W=I,V=P;var K=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function Y(t,e,r,n){for(var i,o,a,s,u,c,l,f,h,d,p,v,m,g,y,b,w,_,x,E,A,M,k,S,I,P,N=new Int32Array(16),C=new Int32Array(16),O=t[0],T=t[1],R=t[2],B=t[3],L=t[4],Z=t[5],j=t[6],F=t[7],U=e[0],D=e[1],H=e[2],z=e[3],$=e[4],q=e[5],G=e[6],W=e[7],V=0;n>=128;){for(x=0;x<16;x++)E=8*x+V,N[x]=r[E+0]<<24|r[E+1]<<16|r[E+2]<<8|r[E+3],C[x]=r[E+4]<<24|r[E+5]<<16|r[E+6]<<8|r[E+7];for(x=0;x<80;x++)if(i=O,o=T,a=R,s=B,u=L,c=Z,l=j,F,h=U,d=D,p=H,v=z,m=$,g=q,y=G,W,k=65535&(M=W),S=M>>>16,I=65535&(A=F),P=A>>>16,k+=65535&(M=($>>>14|L<<18)^($>>>18|L<<14)^(L>>>9|$<<23)),S+=M>>>16,I+=65535&(A=(L>>>14|$<<18)^(L>>>18|$<<14)^($>>>9|L<<23)),P+=A>>>16,k+=65535&(M=$&q^~$&G),S+=M>>>16,I+=65535&(A=L&Z^~L&j),P+=A>>>16,A=K[2*x],k+=65535&(M=K[2*x+1]),S+=M>>>16,I+=65535&A,P+=A>>>16,A=N[x%16],S+=(M=C[x%16])>>>16,I+=65535&A,P+=A>>>16,I+=(S+=(k+=65535&M)>>>16)>>>16,k=65535&(M=_=65535&k|S<<16),S=M>>>16,I=65535&(A=w=65535&I|(P+=I>>>16)<<16),P=A>>>16,k+=65535&(M=(U>>>28|O<<4)^(O>>>2|U<<30)^(O>>>7|U<<25)),S+=M>>>16,I+=65535&(A=(O>>>28|U<<4)^(U>>>2|O<<30)^(U>>>7|O<<25)),P+=A>>>16,S+=(M=U&D^U&H^D&H)>>>16,I+=65535&(A=O&T^O&R^T&R),P+=A>>>16,f=65535&(I+=(S+=(k+=65535&M)>>>16)>>>16)|(P+=I>>>16)<<16,b=65535&k|S<<16,k=65535&(M=v),S=M>>>16,I=65535&(A=s),P=A>>>16,S+=(M=_)>>>16,I+=65535&(A=w),P+=A>>>16,T=i,R=o,B=a,L=s=65535&(I+=(S+=(k+=65535&M)>>>16)>>>16)|(P+=I>>>16)<<16,Z=u,j=c,F=l,O=f,D=h,H=d,z=p,$=v=65535&k|S<<16,q=m,G=g,W=y,U=b,x%16===15)for(E=0;E<16;E++)A=N[E],k=65535&(M=C[E]),S=M>>>16,I=65535&A,P=A>>>16,A=N[(E+9)%16],k+=65535&(M=C[(E+9)%16]),S+=M>>>16,I+=65535&A,P+=A>>>16,w=N[(E+1)%16],k+=65535&(M=((_=C[(E+1)%16])>>>1|w<<31)^(_>>>8|w<<24)^(_>>>7|w<<25)),S+=M>>>16,I+=65535&(A=(w>>>1|_<<31)^(w>>>8|_<<24)^w>>>7),P+=A>>>16,w=N[(E+14)%16],S+=(M=((_=C[(E+14)%16])>>>19|w<<13)^(w>>>29|_<<3)^(_>>>6|w<<26))>>>16,I+=65535&(A=(w>>>19|_<<13)^(_>>>29|w<<3)^w>>>6),P+=A>>>16,P+=(I+=(S+=(k+=65535&M)>>>16)>>>16)>>>16,N[E]=65535&I|P<<16,C[E]=65535&k|S<<16;k=65535&(M=U),S=M>>>16,I=65535&(A=O),P=A>>>16,A=t[0],S+=(M=e[0])>>>16,I+=65535&A,P+=A>>>16,P+=(I+=(S+=(k+=65535&M)>>>16)>>>16)>>>16,t[0]=O=65535&I|P<<16,e[0]=U=65535&k|S<<16,k=65535&(M=D),S=M>>>16,I=65535&(A=T),P=A>>>16,A=t[1],S+=(M=e[1])>>>16,I+=65535&A,P+=A>>>16,P+=(I+=(S+=(k+=65535&M)>>>16)>>>16)>>>16,t[1]=T=65535&I|P<<16,e[1]=D=65535&k|S<<16,k=65535&(M=H),S=M>>>16,I=65535&(A=R),P=A>>>16,A=t[2],S+=(M=e[2])>>>16,I+=65535&A,P+=A>>>16,P+=(I+=(S+=(k+=65535&M)>>>16)>>>16)>>>16,t[2]=R=65535&I|P<<16,e[2]=H=65535&k|S<<16,k=65535&(M=z),S=M>>>16,I=65535&(A=B),P=A>>>16,A=t[3],S+=(M=e[3])>>>16,I+=65535&A,P+=A>>>16,P+=(I+=(S+=(k+=65535&M)>>>16)>>>16)>>>16,t[3]=B=65535&I|P<<16,e[3]=z=65535&k|S<<16,k=65535&(M=$),S=M>>>16,I=65535&(A=L),P=A>>>16,A=t[4],S+=(M=e[4])>>>16,I+=65535&A,P+=A>>>16,P+=(I+=(S+=(k+=65535&M)>>>16)>>>16)>>>16,t[4]=L=65535&I|P<<16,e[4]=$=65535&k|S<<16,k=65535&(M=q),S=M>>>16,I=65535&(A=Z),P=A>>>16,A=t[5],S+=(M=e[5])>>>16,I+=65535&A,P+=A>>>16,P+=(I+=(S+=(k+=65535&M)>>>16)>>>16)>>>16,t[5]=Z=65535&I|P<<16,e[5]=q=65535&k|S<<16,k=65535&(M=G),S=M>>>16,I=65535&(A=j),P=A>>>16,A=t[6],S+=(M=e[6])>>>16,I+=65535&A,P+=A>>>16,P+=(I+=(S+=(k+=65535&M)>>>16)>>>16)>>>16,t[6]=j=65535&I|P<<16,e[6]=G=65535&k|S<<16,k=65535&(M=W),S=M>>>16,I=65535&(A=F),P=A>>>16,A=t[7],S+=(M=e[7])>>>16,I+=65535&A,P+=A>>>16,P+=(I+=(S+=(k+=65535&M)>>>16)>>>16)>>>16,t[7]=F=65535&I|P<<16,e[7]=W=65535&k|S<<16,V+=128,n-=128}return n}function X(t,e,r){var n,i=new Int32Array(8),o=new Int32Array(8),a=new Uint8Array(256),s=r;for(i[0]=1779033703,i[1]=3144134277,i[2]=1013904242,i[3]=2773480762,i[4]=1359893119,i[5]=2600822924,i[6]=528734635,i[7]=1541459225,o[0]=4089235720,o[1]=2227873595,o[2]=4271175723,o[3]=1595750129,o[4]=2917565137,o[5]=725511199,o[6]=4215389547,o[7]=327033209,Y(i,o,e,r),r%=128,n=0;n<r;n++)a[n]=e[s-r+n];for(a[r]=128,a[(r=256-128*(r<112?1:0))-9]=0,p(a,r-8,s/536870912|0,s<<3),Y(i,o,a,r),n=0;n<8;n++)p(t,8*n,i[n],o[n]);return 0}function J(t,r){var n=e(),i=e(),o=e(),a=e(),s=e(),u=e(),c=e(),f=e(),h=e();j(n,t[1],t[0]),j(h,r[1],r[0]),F(n,n,h),Z(i,t[0],t[1]),Z(h,r[0],r[1]),F(i,i,h),F(o,t[3],r[3]),F(o,o,l),F(a,t[2],r[2]),Z(a,a,a),j(s,i,n),j(u,a,o),Z(c,a,o),Z(f,i,n),F(t[0],s,u),F(t[1],f,c),F(t[2],c,u),F(t[3],s,f)}function Q(t,e,r){var n;for(n=0;n<4;n++)O(t[n],e[n],r)}function tt(t,r){var n=e(),i=e(),o=e();D(o,r[2]),F(n,r[0],o),F(i,r[1],o),T(t,i),t[31]^=B(n)<<7}function et(t,e,r){var n,i;for(N(t[0],a),N(t[1],s),N(t[2],s),N(t[3],a),i=255;i>=0;--i)Q(t,e,n=r[i/8|0]>>(7&i)&1),J(e,t),J(t,t),Q(t,e,n)}function rt(t,r){var n=[e(),e(),e(),e()];N(n[0],f),N(n[1],h),N(n[2],s),F(n[3],f,h),et(t,n,r)}function nt(t,r,i){var o,a=new Uint8Array(64),s=[e(),e(),e(),e()];for(i||n(r,32),X(a,r,32),a[0]&=248,a[31]&=127,a[31]|=64,rt(s,a),tt(t,s),o=0;o<32;o++)r[o+32]=t[o];return 0}var it=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function ot(t,e){var r,n,i,o;for(n=63;n>=32;--n){for(r=0,i=n-32,o=n-12;i<o;++i)e[i]+=r-16*e[n]*it[i-(n-32)],r=Math.floor((e[i]+128)/256),e[i]-=256*r;e[i]+=r,e[n]=0}for(r=0,i=0;i<32;i++)e[i]+=r-(e[31]>>4)*it[i],r=e[i]>>8,e[i]&=255;for(i=0;i<32;i++)e[i]-=r*it[i];for(n=0;n<32;n++)e[n+1]+=e[n]>>8,t[n]=255&e[n]}function at(t){var e,r=new Float64Array(64);for(e=0;e<64;e++)r[e]=t[e];for(e=0;e<64;e++)t[e]=0;ot(t,r)}function st(t,r,n,i){var o,a,s=new Uint8Array(64),u=new Uint8Array(64),c=new Uint8Array(64),l=new Float64Array(64),f=[e(),e(),e(),e()];X(s,i,32),s[0]&=248,s[31]&=127,s[31]|=64;var h=n+64;for(o=0;o<n;o++)t[64+o]=r[o];for(o=0;o<32;o++)t[32+o]=s[32+o];for(X(c,t.subarray(32),n+32),at(c),rt(f,c),tt(t,f),o=32;o<64;o++)t[o]=i[o];for(X(u,t,n+64),at(u),o=0;o<64;o++)l[o]=0;for(o=0;o<32;o++)l[o]=c[o];for(o=0;o<32;o++)for(a=0;a<32;a++)l[o+a]+=u[o]*s[a];return ot(t.subarray(32),l),h}function ut(t,r,n,i){var o,u=new Uint8Array(32),l=new Uint8Array(64),f=[e(),e(),e(),e()],h=[e(),e(),e(),e()];if(n<64)return-1;if(function(t,r){var n=e(),i=e(),o=e(),u=e(),l=e(),f=e(),h=e();return N(t[2],s),L(t[1],r),U(o,t[1]),F(u,o,c),j(o,o,t[2]),Z(u,t[2],u),U(l,u),U(f,l),F(h,f,l),F(n,h,o),F(n,n,u),H(n,n),F(n,n,o),F(n,n,u),F(n,n,u),F(t[0],n,u),U(i,t[0]),F(i,i,u),R(i,o)&&F(t[0],t[0],d),U(i,t[0]),F(i,i,u),R(i,o)?-1:(B(t[0])===r[31]>>7&&j(t[0],a,t[0]),F(t[3],t[0],t[1]),0)}(h,i))return-1;for(o=0;o<n;o++)t[o]=r[o];for(o=0;o<32;o++)t[o+32]=i[o];if(X(l,t,n),at(l),et(f,h,l),rt(h,r.subarray(32)),J(f,h),tt(u,f),n-=64,g(r,0,u,0)){for(o=0;o<n;o++)t[o]=0;return-1}for(o=0;o<n;o++)t[o]=r[o+64];return n}var ct=16,lt=64,ft=32,ht=64;function dt(t,e){if(32!==t.length)throw new Error("bad key size");if(24!==e.length)throw new Error("bad nonce size")}function pt(){for(var t=0;t<arguments.length;t++)if(!(arguments[t]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function vt(t){for(var e=0;e<t.length;e++)t[e]=0}t.lowlevel={crypto_core_hsalsa20:b,crypto_stream_xor:A,crypto_stream
2:E,crypto_stream_salsa20_xor:_,crypto_stream_salsa20:x,crypto_onetimeauth:k,crypto_onetimeauth_verify:S,crypto_verify_16:m,crypto_verify_32:g,crypto_secretbox:I,crypto_secretbox_open:P,crypto_scalarmult:z,crypto_scalarmult_base:$,crypto_box_beforenm:G,crypto_box_afternm:W,crypto_box:function(t,e,r,n,i,o){var a=new Uint8Array(32);return G(a,i,o),W(t,e,r,n,a)},crypto_box_open:function(t,e,r,n,i,o){var a=new Uint8Array(32);return G(a,i,o),V(t,e,r,n,a)},crypto_box_keypair:q,crypto_hash:X,crypto_sign:st,crypto_sign_keypair:nt,crypto_sign_open:ut,crypto_secretbox_KEYBYTES:32,crypto_secretbox_NONCEBYTES:24,crypto_secretbox_ZEROBYTES:32,crypto_secretbox_BOXZEROBYTES:ct,crypto_scalarmult_BYTES:32,crypto_scalarmult_SCALARBYTES:32,crypto_box_PUBLICKEYBYTES:32,crypto_box_SECRETKEYBYTES:32,crypto_box_BEFORENMBYTES:32,crypto_box_NONCEBYTES:24,crypto_box_ZEROBYTES:32,crypto_box_BOXZEROBYTES:16,crypto_sign_BYTES:lt,crypto_sign_PUBLICKEYBYTES:ft,crypto_sign_SECRETKEYBYTES:ht,crypto_sign_SEEDBYTES:32,crypto_hash_BYTES:64,gf:e,D:c,L:it,pack25519:T,unpack25519:L,M:F,A:Z,S:U,Z:j,pow2523:H,add:J,set25519:N,modL:ot,scalarmult:et,scalarbase:rt},t.randomBytes=function(t){var e=new Uint8Array(t);return n(e,t),e},t.secretbox=function(t,e,r){pt(t,e,r),dt(r,e);for(var n=new Uint8Array(32+t.length),i=new Uint8Array(n.length),o=0;o<t.length;o++)n[o+32]=t[o];return I(i,n,n.length,e,r),i.subarray(ct)},t.secretbox.open=function(t,e,r){pt(t,e,r),dt(r,e);for(var n=new Uint8Array(ct+t.length),i=new Uint8Array(n.length),o=0;o<t.length;o++)n[o+ct]=t[o];return n.length<32||0!==P(i,n,n.length,e,r)?null:i.subarray(32)},t.secretbox.keyLength=32,t.secretbox.nonceLength=24,t.secretbox.overheadLength=ct,t.scalarMult=function(t,e){if(pt(t,e),32!==t.length)throw new Error("bad n size");if(32!==e.length)throw new Error("bad p size");var r=new Uint8Array(32);return z(r,t,e),r},t.scalarMult.base=function(t){if(pt(t),32!==t.length)throw new Error("bad n size");var e=new Uint8Array(32);return $(e,t),e},t.scalarMult.scalarLength=32,t.scalarMult.groupElementLength=32,t.box=function(e,r,n,i){var o=t.box.before(n,i);return t.secretbox(e,r,o)},t.box.before=function(t,e){pt(t,e),function(t,e){if(32!==t.length)throw new Error("bad public key size");if(32!==e.length)throw new Error("bad secret key size")}(t,e);var r=new Uint8Array(32);return G(r,t,e),r},t.box.after=t.secretbox,t.box.open=function(e,r,n,i){var o=t.box.before(n,i);return t.secretbox.open(e,r,o)},t.box.open.after=t.secretbox.open,t.box.keyPair=function(){var t=new Uint8Array(32),e=new Uint8Array(32);return q(t,e),{publicKey:t,secretKey:e}},t.box.keyPair.fromSecretKey=function(t){if(pt(t),32!==t.length)throw new Error("bad secret key size");var e=new Uint8Array(32);return $(e,t),{publicKey:e,secretKey:new Uint8Array(t)}},t.box.publicKeyLength=32,t.box.secretKeyLength=32,t.box.sharedKeyLength=32,t.box.nonceLength=24,t.box.overheadLength=t.secretbox.overheadLength,t.sign=function(t,e){if(pt(t,e),e.length!==ht)throw new Error("bad secret key size");var r=new Uint8Array(lt+t.length);return st(r,t,t.length,e),r},t.sign.open=function(t,e){if(pt(t,e),e.length!==ft)throw new Error("bad public key size");var r=new Uint8Array(t.length),n=ut(r,t,t.length,e);if(n<0)return null;for(var i=new Uint8Array(n),o=0;o<i.length;o++)i[o]=r[o];return i},t.sign.detached=function(e,r){for(var n=t.sign(e,r),i=new Uint8Array(lt),o=0;o<i.length;o++)i[o]=n[o];return i},t.sign.detached.verify=function(t,e,r){if(pt(t,e,r),e.length!==lt)throw new Error("bad signature size");if(r.length!==ft)throw new Error("bad public key size");var n,i=new Uint8Array(lt+t.length),o=new Uint8Array(lt+t.length);for(n=0;n<lt;n++)i[n]=e[n];for(n=0;n<t.length;n++)i[n+lt]=t[n];return ut(o,i,i.length,r)>=0},t.sign.keyPair=function(){var t=new Uint8Array(ft),e=new Uint8Array(ht);return nt(t,e),{publicKey:t,secretKey:e}},t.sign.keyPair.fromSecretKey=function(t){if(pt(t),t.length!==ht)throw new Error("bad secret key size");for(var e=new Uint8Array(ft),r=0;r<e.length;r++)e[r]=t[32+r];return{publicKey:e,secretKey:new Uint8Array(t)}},t.sign.keyPair.fromSeed=function(t){if(pt(t),32!==t.length)throw new Error("bad seed size");for(var e=new Uint8Array(ft),r=new Uint8Array(ht),n=0;n<32;n++)r[n]=t[n];return nt(e,r,!0),{publicKey:e,secretKey:r}},t.sign.publicKeyLength=ft,t.sign.secretKeyLength=ht,t.sign.seedLength=32,t.sign.signatureLength=lt,t.hash=function(t){pt(t);var e=new Uint8Array(64);return X(e,t,t.length),e},t.hash.hashLength=64,t.verify=function(t,e){return pt(t,e),0!==t.length&&0!==e.length&&(t.length===e.length&&0===v(t,0,e,0,t.length))},t.setPRNG=function(t){n=t},function(){var e="undefined"!==typeof self?self.crypto||self.msCrypto:null;if(e&&e.getRandomValues){t.setPRNG((function(t,r){var n,i=new Uint8Array(r);for(n=0;n<r;n+=65536)e.getRandomValues(i.subarray(n,n+Math.min(r-n,65536)));for(n=0;n<r;n++)t[n]=i[n];vt(i)}))}else(e=r(32772))&&e.randomBytes&&t.setPRNG((function(t,r){var n,i=e.randomBytes(r);for(n=0;n<r;n++)t[n]=i[n];vt(i)}))}()}(t.exports?t.exports:self.nacl=self.nacl||{})},50132:function(t,e,r){"use strict";var n=r(42122).default;
2Object.defineProperty(e,"__esModule",{value:!0}),e.createCurve=e.getHash=void 0;var i=r(77282),o=r(54242),a=r(86983);function s(t){return{hash:t,hmac:function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];return(0,i.hmac)(t,e,o.concatBytes.apply(void 0,n))},randomBytes:o.randomBytes}}e.getHash=s,e.createCurve=function(t,e){var r=function(e){return(0,a.weierstrass)(n(n({},t),s(e)))};return Object.freeze(n(n({},r(e)),{},{create:r}))}},19202:function(t,e,r){"use strict";var n=r(42122).default;Object.defineProperty(e,"__esModule",{value:!0}),e.validateBasic=e.wNAF=void 0;var i=r(22818),o=r(47308),a=BigInt(0),s=BigInt(1);e.wNAF=function(t,e){var r=function(t,e){var r=e.negate();return t?r:e},n=function(t){return{windows:Math.ceil(e/t)+1,windowSize:Math.pow(2,t-1)}};return{constTimeNegate:r,unsafeLadder:function(e,r){for(var n=t.ZERO,i=e;r>a;)r&s&&(n=n.add(i)),i=i.double(),r>>=s;return n},precomputeWindow:function(t,e){for(var r=n(e),i=r.windows,o=r.windowSize,a=[],s=t,u=s,c=0;c<i;c++){u=s,a.push(u);for(var l=1;l<o;l++)u=u.add(s),a.push(u);s=u.double()}return a},wNAF:function(e,i,o){for(var a=n(e),u=a.windows,c=a.windowSize,l=t.ZERO,f=t.BASE,h=BigInt(Math.pow(2,e)-1),d=Math.pow(2,e),p=BigInt(e),v=0;v<u;v++){var m=v*c,g=Number(o&h);o>>=p,g>c&&(g-=d,o+=s);var y=m,b=m+Math.abs(g)-1,w=v%2!==0,_=g<0;0===g?f=f.add(r(w,i[y])):l=l.add(r(_,i[b]))}return{p:l,f:f}},wNAFCached:function(t,e,r,n){var i=t._WINDOW_SIZE||1,o=e.get(t);return o||(o=this.precomputeWindow(t,i),1!==i&&e.set(t,n(o))),this.wNAF(i,o,r)}}},e.validateBasic=function(t){return(0,i.validateField)(t.Fp),(0,o.validateObject)(t,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze(n(n(n({},(0,i.nLength)(t.n,t.nBitLength)),t),{p:t.Fp.ORDER}))}},59496:function(t,e,r){"use strict";var n=r(42122).default,i=r(27424).default;Object.defineProperty(e,"__esModule",{value:!0}),e.createHasher=e.isogenyMap=e.hash_to_field=e.expand_message_xof=e.expand_message_xmd=void 0;var o=r(22818),a=r(47308);var s=a.bytesToNumberBE;function u(t,e){if(t<0||t>=1<<8*e)throw new Error("bad I2OSP call: value=".concat(t," length=").concat(e));for(var r=Array.from({length:e}).fill(0),n=e-1;n>=0;n--)r[n]=255&t,t>>>=8;return new Uint8Array(r)}function c(t,e){for(var r=new Uint8Array(t.length),n=0;n<t.length;n++)r[n]=t[n]^e[n];return r}function l(t){if(!(t instanceof Uint8Array))throw new Error("Uint8Array expected")}function f(t){if(!Number.isSafeInteger(t))throw new Error("number expected")}function h(t,e,r,n){l(t),l(e),f(r),e.length>255&&(e=n((0,a.concatBytes)((0,a.utf8ToBytes)("H2C-OVERSIZE-DST-"),e)));var i=n.outputLen,o=n.blockLen,s=Math.ceil(r/i);if(s>255)throw new Error("Invalid xmd length");var h=(0,a.concatBytes)(e,u(e.length,1)),d=u(0,o),p=u(r,2),v=new Array(s),m=n((0,a.concatBytes)(d,t,p,u(0,1),h));v[0]=n((0,a.concatBytes)(m,u(1,1),h));for(var g=1;g<=s;g++){var y=[c(m,v[g-1]),u(g+1,1),h];v[g]=n(a.concatBytes.apply(void 0,y))}return a.concatBytes.apply(void 0,v).slice(0,r)}function d(t,e,r,n,i){if(l(t),l(e),f(r),e.length>255){var o=Math.ceil(2*n/8);e=i.create({dkLen:o}).update((0,a.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(e).digest()}if(r>65535||e.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return i.create({dkLen:r}).update(t).update(u(r,2)).update(e).update(u(e.length,1)).digest()}function p(t,e,r){(0,a.validateObject)(r,{DST:"string",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});var n=r.p,i=r.k,u=r.m,c=r.hash,p=r.expand,v=r.DST;l(t),f(e);var m,g=function(t){if(t instanceof Uint8Array)return t;if("string"===typeof t)return(0,a.utf8ToBytes)(t);throw new Error("DST must be Uint8Array or string")}(v),y=n.toString(2).length,b=Math.ceil((y+i)/8),w=e*u*b;if("xmd"===p)m=h(t,g,w,c);else if("xof"===p)m=d(t,g,w,i,c);else{if("_internal_pass"!==p)throw new Error('expand must be "xmd" or "xof"');m=t}for(var _=new Array(e),x=0;x<e;x++){for(var E=new Array(u),A=0;A<u;A++){var M=b*(A+x*u),k=m.subarray(M,M+b);E[A]=(0,o.mod)(s(k),n)}_[x]=E}return _}e.expand_message_xmd=h,e.expand_message_xof=d,e.hash_to_field=p,e.isogenyMap=function(t,e){var r=e.map((function(t){return Array.from(t).reverse()}));return function(e,n){var o=r.map((function(r){return r.reduce((function(r,n){return t.add(t.mul(r,e),n)}))})),a=i(o,4),s=a[0],u=a[1],c=a[2],l=a[3];return e=t.div(s,u),n=t.mul(n,t.div(c,l)),{x:e,y:n}}},e.createHasher=function(t,e,r){if("function"!==typeof e)throw new Error("mapToCurve() must be defined");return{hashToCurve:function(i,o){var a=p(i,2,n(n({},r),{},{DST:r.DST},o)),s=t.fromAffine(e(a[0])),u=t.fromAffine(e(a[1])),c=s.add(u).clearCofactor();return c.assertValidity(),c},encodeToCurve:function(i,o){var a=p(i,1,n(n({},r),{},{DST:r.encodeDST},o)),s=t.fromAffine(e(a[0])).clearCofactor();return s.assertValidity(),s}}}},22818:function(t,e,r){"use strict";
2Object.defineProperty(e,"__esModule",{value:!0}),e.hashToPrivateScalar=e.FpSqrtEven=e.FpSqrtOdd=e.Field=e.nLength=e.FpIsSquare=e.FpDiv=e.FpInvertBatch=e.FpPow=e.validateField=e.isNegativeLE=e.FpSqrt=e.tonelliShanks=e.invert=e.pow2=e.pow=e.mod=void 0;var n=r(47308),i=BigInt(0),o=BigInt(1),a=BigInt(2),s=BigInt(3),u=BigInt(4),c=BigInt(5),l=BigInt(8);BigInt(9),BigInt(16);function f(t,e){var r=t%e;return r>=i?r:e+r}function h(t,e,r){if(r<=i||e<i)throw new Error("Expected power/modulo > 0");if(r===o)return i;for(var n=o;e>i;)e&o&&(n=n*t%r),t=t*t%r,e>>=o;return n}function d(t,e){if(t===i||e<=i)throw new Error("invert: expected positive integers, got n=".concat(t," mod=").concat(e));for(var r=f(t,e),n=e,a=i,s=o,u=o,c=i;r!==i;){var l=n/r,h=n%r,d=a-u*l,p=s-c*l;n=r,r=h,a=u,s=c,u=d,c=p}if(n!==o)throw new Error("invert: does not exist");return f(a,e)}function p(t){var e,r,n,s=(t-o)/a;for(e=t-o,r=0;e%a===i;e/=a,r++);for(n=a;n<t&&h(n,s,t)!==t-o;n++);if(1===r){var c=(t+o)/u;return function(t,e){var r=t.pow(e,c);if(!t.eql(t.sqr(r),e))throw new Error("Cannot find square root");return r}}var l=(e+o)/a;return function(t,i){if(t.pow(i,s)===t.neg(t.ONE))throw new Error("Cannot find square root");for(var a=r,u=t.pow(t.mul(t.ONE,n),e),c=t.pow(i,l),f=t.pow(i,e);!t.eql(f,t.ONE);){if(t.eql(f,t.ZERO))return t.ZERO;for(var h=1,d=t.sqr(f);h<a&&!t.eql(d,t.ONE);h++)d=t.sqr(d);var p=t.pow(u,o<<BigInt(a-h-1));u=t.sqr(p),c=t.mul(c,p),f=t.mul(f,u),a=h}return c}}function v(t){if(t%u===s){var e=(t+o)/u;return function(t,r){var n=t.pow(r,e);if(!t.eql(t.sqr(n),r))throw new Error("Cannot find square root");return n}}if(t%l===c){var r=(t-c)/l;return function(t,e){var n=t.mul(e,a),i=t.pow(n,r),o=t.mul(e,i),s=t.mul(t.mul(o,a),i),u=t.mul(
2o,t.sub(s,t.ONE));if(!t.eql(t.sqr(u),e))throw new Error("Cannot find square root");return u}}return p(t)}e.mod=f,e.pow=h,e.pow2=function(t,e,r){for(var n=t;e-- >i;)n*=n,n%=r;return n},e.invert=d,e.tonelliShanks=p,e.FpSqrt=v;e.isNegativeLE=function(t,e){return(f(t,e)&o)===o};var m=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function g(t,e,r){if(r<i)throw new Error("Expected power > 0");if(r===i)return t.ONE;if(r===o)return e;for(var n=t.ONE,a=e;r>i;)r&o&&(n=t.mul(n,a)),a=t.sqr(a),r>>=o;return n}function y(t,e){var r=new Array(e.length),n=e.reduce((function(e,n,i){return t.is0(n)?e:(r[i]=e,t.mul(e,n))}),t.ONE),i=t.inv(n);return e.reduceRight((function(e,n,i){return t.is0(n)?e:(r[i]=t.mul(e,r[i]),t.mul(e,n))}),i),r}function b(t,e){var r=void 0!==e?e:t.toString(2).length;return{nBitLength:r,nByteLength:Math.ceil(r/8)}}e.validateField=function(t){var e=m.reduce((function(t,e){return t[e]="function",t}),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"});return(0,n.validateObject)(t,e)},e.FpPow=g,e.FpInvertBatch=y,e.FpDiv=function(t,e,r){return t.mul(e,"bigint"===typeof r?d(r,t.ORDER):t.inv(r))},e.FpIsSquare=function(t){var e=(t.ORDER-o)/a;return function(r){var n=t.pow(r,e);return t.eql(n,t.ZERO)||t.eql(n,t.ONE)}},e.nLength=b,e.Field=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(t<=i)throw new Error("Expected Fp ORDER > 0, got ".concat(t));var s=b(t,e),u=s.nBitLength,c=s.nByteLength;if(c>2048)throw new Error("Field lengths over 2048 bytes are not supported");var l=v(t),h=Object.freeze({ORDER:t,BITS:u,BYTES:c,MASK:(0,n.bitMask)(u),ZERO:i,ONE:o,create:function(e){return f(e,t)},isValid:function(e){if("bigint"!==typeof e)throw new Error("Invalid field element: expected bigint, got ".concat(typeof e));return i<=e&&e<t},is0:function(t){return t===i},isOdd:function(t){return(t&o)===o},neg:function(e){return f(-e,t)},eql:function(t,e){return t===e},sqr:function(e){return f(e*e,t)},add:function(e,r){return f(e+r,t)},sub:function(e,r){return f(e-r,t)},mul:function(e,r){return f(e*r,t)},pow:function(t,e){return g(h,t,e)},div:function(e,r){return f(e*d(r,t),t)},sqrN:function(t){return t*t},addN:function(t,e){return t+e},subN:function(t,e){return t-e},mulN:function(t,e){return t*e},inv:function(e){return d(e,t)},sqrt:a.sqrt||function(t){return l(h,t)},invertBatch:function(t){return y(h,t)},cmov:function(t,e,r){return r?e:t},toBytes:function(t){return r?(0,n.numberToBytesLE)(t,c):(0,n.numberToBytesBE)(t,c)},fromBytes:function(t){if(t.length!==c)throw new Error("Fp.fromBytes: expected ".concat(c,", got ").concat(t.length));return r?(0,n.bytesToNumberLE)(t):(0,n.bytesToNumberBE)(t)}});return Object.freeze(h)},e.FpSqrtOdd=function(t,e){if(!t.isOdd)throw new Error("Field doesn't have isOdd");var r=t.sqrt(e);return t.isOdd(r)?r:t.neg(r)},e.FpSqrtEven=function(t,e){if(!t.isOdd)throw new Error("Field doesn't have isOdd");var r=t.sqrt(e);return t.isOdd(r)?t.neg(r):r},e.hashToPrivateScalar=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=(t=(0,n.ensureBytes)("privateHash",t)).length,a=b(e).nByteLength+8;if(a<24||i<a||i>1024)throw new Error("hashToPrivateScalar: expected ".concat(a,"-1024 bytes of input, got ").concat(i));return f(r?(0,n.bytesToNumberLE)(t):(0,n.bytesToNumberBE)(t),e-o)+o}},47308:function(t,e,r){"use strict";var n=r(27424).default;Object.defineProperty(e,"__esModule",{value:!0}),e.validateObject=e.createHmacDrbg=e.bitMask=e.bitSet=e.bitGet=e.bitLen=e.utf8ToBytes=e.equalBytes=e.concatBytes=e.ensureBytes=e.numberToVarBytesBE=e.numberToBytesLE=e.numberToBytesBE=e.bytesToNumberLE=e.bytesToNumberBE=e.hexToBytes=e.hexToNumber=e.numberToHexUnpadded=e.bytesToHex=void 0;var i=BigInt(0),o=BigInt(1),a=BigInt(2),s=function(t){return t instanceof Uint8Array},u=Array.from({length:256},(function(t,e){return e.toString(16).padStart(2,"0")}));function c(t){if(!s(t))throw new Error("Uint8Array expected");for(var e="",r=0;r<t.length;r++)e+=u[t[r]];return e}function l(t){var e=t.toString(16);return 1&e.length?"0".concat(e):e}function f(t){if("string"!==typeof t)throw new Error("hex string expected, got "+typeof t);return BigInt(""===t?"0":"0x".concat(t))}function h(t){if("string"!==typeof t)throw new Error("hex string expected, got "+typeof t);var e=t.length;if(e%2)throw new Error("padded hex string expected, got unpadded hex of length "+e);
2for(var r=new Uint8Array(e/2),n=0;n<r.length;n++){var i=2*n,o=t.slice(i,i+2),a=Number.parseInt(o,16);if(Number.isNaN(a)||a<0)throw new Error("Invalid byte sequence");r[n]=a}return r}function d(t,e){return h(t.toString(16).padStart(2*e,"0"))}function p(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=new Uint8Array(e.reduce((function(t,e){return t+e.length}),0)),i=0;return e.forEach((function(t){if(!s(t))throw new Error("Uint8Array expected");n.set(t,i),i+=t.length})),n}e.bytesToHex=c,e.numberToHexUnpadded=l,e.hexToNumber=f,e.hexToBytes=h,e.bytesToNumberBE=function(t){return f(c(t))},e.bytesToNumberLE=function(t){if(!s(t))throw new Error("Uint8Array expected");return f(c(Uint8Array.from(t).reverse()))},e.numberToBytesBE=d,e.numberToBytesLE=function(t,e){return d(t,e).reverse()},e.numberToVarBytesBE=function(t){return h(l(t))},e.ensureBytes=function(t,e,r){var n;if("string"===typeof e)try{n=h(e)}catch(o){throw new Error("".concat(t,' must be valid hex string, got "').concat(e,'". Cause: ').concat(o))}else{if(!s(e))throw new Error("".concat(t," must be hex string or Uint8Array"));n=Uint8Array.from(e)}var i=n.length;if("number"===typeof r&&i!==r)throw new Error("".concat(t," expected ").concat(r," bytes, got ").concat(i));return n},e.concatBytes=p,e.equalBytes=function(t,e){if(t.length!==e.length)return!1;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0},e.utf8ToBytes=function(t){if("string"!==typeof t)throw new Error("utf8ToBytes expected string, got ".concat(typeof t));return new Uint8Array((new TextEncoder).encode(t))},e.bitLen=function(t){var e;for(e=0;t>i;t>>=o,e+=1);return e},e.bitGet=function(t,e){return t>>BigInt(e)&o};e.bitSet=function(t,e,r){return t|(r?o:i)<<BigInt(e)};e.bitMask=function(t){return(a<<BigInt(t-1))-o};var v=function(t){return new Uint8Array(t)},m=function(t){return Uint8Array.from(t)};e.createHmacDrbg=function(t,e,r){if("number"!==typeof t||t<2)throw new Error("hashLen must be a number");if("number"!==typeof e||e<2)throw new Error("qByteLen must be a number");if("function"!==typeof r)throw new Error("hmacFn must be a function");var n=v(t),i=v(t),o=0,a=function(){n.fill(1),i.fill(0),o=0},s=function(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return r.apply(void 0,[i,n].concat(e))},u=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v();i=s(m([0]),t),n=s(),0!==t.length&&(i=s(m([1]),t),n=s())},c=function(){if(o++>=1e3)throw new Error("drbg: tried 1000 values");for(var t=0,r=[];t<e;){var i=(n=s()).slice();r.push(i),t+=n.length}return p.apply(void 0,r)};return function(t,e){a(),u(t);for(var r=void 0;!(r=e(c()));)u();return a(),r}};var g={bigint:function(t){return"bigint"===typeof t},function:function(t){return"function"===typeof t},boolean:function(t){return"boolean"===typeof t},string:function(t){return"string"===typeof t},isSafeInteger:function(t){return Number.isSafeInteger(t)},array:function(t){return Array.isArray(t)},field:function(t,e){return e.Fp.isValid(t)},hash:function(t){return"function"===typeof t&&Number.isSafeInteger(t.outputLen)}};e.validateObject=function(t,e){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=function(e,r,n){var i=g[r];if("function"!==typeof i)throw new Error('Invalid validator "'.concat(r,'", expected function'));var o=t[e];if((!n||void 0!==o)&&!i(o,t))throw new Error("Invalid param ".concat(String(e),"=").concat(o," (").concat(typeof o,"), expected ").concat(r))},o=0,a=Object.entries(e);o<a.length;o++){var s=n(a[o],2);i(s[0],s[1],!1)}for(var u=0,c=Object.entries(r);u<c.length;u++){var l=n(c[u],2);i(l[0],l[1],!0)}return t}},86983:function(t,e,r){"use strict";var n=r(89728).default,i=r(56690).default,o=r(61655).default,a=r(26389).default,s=r(33496
2).default,u=r(42122).default;Object.defineProperty(e,"__esModule",{value:!0}),e.mapToCurveSimpleSWU=e.SWUFpSqrtRatio=e.weierstrass=e.weierstrassPoints=e.DER=void 0;var c=r(22818),l=r(47308),f=r(47308),h=r(19202);var d=l.bytesToNumberBE,p=l.hexToBytes;e.DER={Err:function(t){o(r,t);var e=a(r);function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return i(this,r),e.call(this,t)}return n(r)}(s(Error)),_parseInt:function(t){var r=e.DER.Err;if(t.length<2||2!==t[0])throw new r("Invalid signature integer tag");var n=t[1],i=t.subarray(2,n+2);if(!n||i.length!==n)throw new r("Invalid signature integer: wrong length");if(128&i[0])throw new r("Invalid signature integer: negative");if(0===i[0]&&!(128&i[1]))throw new r("Invalid signature integer: unnecessary leading zero");return{d:d(i),l:t.subarray(n+2)}},toSig:function(t){var r=e.DER.Err,n="string"===typeof t?p(t):t;if(!(n instanceof Uint8Array))throw new Error("ui8a expected");var i=n.length;if(i<2||48!=n[0])throw new r("Invalid signature tag");if(n[1]!==i-2)throw new r("Invalid signature: incorrect length");var o=e.DER._parseInt(n.subarray(2)),a=o.d,s=o.l,u=e.DER._parseInt(s),c=u.d;if(u.l.length)throw new r("Invalid signature: left bytes after parsing");return{r:a,s:c}},hexFromSig:function(t){var e=function(t){return 8&Number.parseInt(t[0],16)?"00"+t:t},r=function(t){var e=t.toString(16);return 1&e.length?"0".concat(e):e},n=e(r(t.s)),i=e(r(t.r)),o=n.length/2,a=i.length/2,s=r(o),u=r(a);return"30".concat(r(a+o+4),"02").concat(u).concat(i,"02").concat(s).concat(n)}};var v=BigInt(0),m=BigInt(1),g=BigInt(2),y=BigInt(3),b=BigInt(4);function w(t){var e=function(t){var e=(0,h.validateBasic)(t);l.validateObject(e,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});var r=e.endo,n=e.Fp,i=e.a;if(r){if(!n.eql(i,n.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!==typeof r||"bigint"!==typeof r.beta||"function"!==typeof r.splitScalar)throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze(u({},e))}(t),r=e.Fp,o=e.toBytes||function(t,e,n){var i=e.toAffine();return l.concatBytes(Uint8Array.from([4]),r.toBytes(i.x),r.toBytes(i.y))},a=e.fromBytes||function(t){var e=t.subarray(1);return{x:r.fromBytes(e.subarray(0,r.BYTES)),y:r.fromBytes(e.subarray(r.BYTES,2*r.BYTES))}};function s(t){var n=e.a,i=e.b,o=r.sqr(t),a=r.mul(o,t);return r.add(r.add(a,r.mul(t,n)),i)}if(!r.eql(r.sqr(e.Gy),s(e.Gx)))throw new Error("bad generator point: equation left != right");function d(t){return"bigint"===typeof t&&v<t&&t<e.n}function p(t){if(!d(t))throw new Error("Expected valid bigint: 0 < bigint < curve.n")}function g(t){var r,n=e.allowedPrivateKeyLengths,i=e.nByteLength,o=e.wrapPrivateKey,a=e.n;if(n&&"bigint"!==typeof t){if(t instanceof Uint8Array&&(t=l.bytesToHex(t)),"string"!==typeof t||!n.includes(t.length))throw new Error("Invalid key");t=t.padStart(2*i,"0")}try{r="bigint"===typeof t?t:l.bytesToNumberBE((0,f.ensureBytes)("private key",t,i))}catch(s){throw new Error("private key must be ".concat(i," bytes, hex or bigint, not ").concat(typeof t))}return o&&(r=c.mod(r,a)),p(r),r}var b=new Map;function w(t){if(!(t instanceof _))throw new Error("ProjectivePoint expected")}var _=function(){function t(e,n,o){if(i(this,t),this.px=e,this.py=n,this.pz=o,null==e||!r.isValid(e))throw new Error("x required");if(null==n||!r.isValid(n))throw new Error("y required");if(null==o||!r.isValid(o))throw new Error("z required")}return n(t,[{key:"x",get:function(){return this.toAffine().x}},{key:"y",get:function(){return this.toAffine().y}},{key:"_setWindowSize",value:function(t){this._WINDOW_SIZE=t,b.delete(this)}},{key:"assertValidity",value:function(){if(this.is0()){if(e.allowInfinityPoint)return;throw new Error("bad point: ZERO")}var t=this.toAffine(),n=t.x,i=t.y;if(!r.isValid(n)||!r.isValid(i))throw new Error("bad point: x or y not FE");var o=r.sqr(i),a=s(n);if(!r.eql(o,a))throw new Error("bad point: equation left != right");
2if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}},{key:"hasEvenY",value:function(){var t=this.toAffine().y;if(r.isOdd)return!r.isOdd(t);throw new Error("Field doesn't support isOdd")}},{key:"equals",value:function(t){w(t);var e=this.px,n=this.py,i=this.pz,o=t.px,a=t.py,s=t.pz,u=r.eql(r.mul(e,s),r.mul(o,i)),c=r.eql(r.mul(n,s),r.mul(a,i));return u&&c}},{key:"negate",value:function(){return new t(this.px,r.neg(this.py),this.pz)}},{key:"double",value:function(){var n=e.a,i=e.b,o=r.mul(i,y),a=this.px,s=this.py,u=this.pz,c=r.ZERO,l=r.ZERO,f=r.ZERO,h=r.mul(a,a),d=r.mul(s,s),p=r.mul(u,u),v=r.mul(a,s);return v=r.add(v,v),f=r.mul(a,u),f=r.add(f,f),c=r.mul(n,f),l=r.mul(o,p),l=r.add(c,l),c=r.sub(d,l),l=r.add(d,l),l=r.mul(c,l),c=r.mul(v,c),f=r.mul(o,f),p=r.mul(n,p),v=r.sub(h,p),v=r.mul(n,v),v=r.add(v,f),f=r.add(h,h),h=r.add(f,h),h=r.add(h,p),h=r.mul(h,v),l=r.add(l,h),p=r.mul(s,u),p=r.add(p,p),h=r.mul(p,v),c=r.sub(c,h),f=r.mul(p,d),f=r.add(f,f),new t(c,l,f=r.add(f,f))}},{key:"add",value:function(n){w(n);var i=this.px,o=this.py,a=this.pz,s=n.px,u=n.py,c=n.pz,l=r.ZERO,f=r.ZERO,h=r.ZERO,d=e.a,p=r.mul(e.b,y),v=r.mul(i,s),m=r.mul(o,u),g=r.mul(a,c),b=r.add(i,o),_=r.add(s,u);b=r.mul(b,_),_=r.add(v,m),b=r.sub(b,_),_=r.add(i,a);var x=r.add(s,c);return _=r.mul(_,x),x=r.add(v,g),_=r.sub(_,x),x=r.add(o,a),l=r.add(u,c),x=r.mul(x,l),l=r.add(m,g),x=r.sub(x,l),h=r.mul(d,_),l=r.mul(p,g),h=r.add(l,h),l=r.sub(m,h),h=r.add(m,h),f=r.mul(l,h),m=r.add(v,v),m=r.add(m,v),g=r.mul(d,g),_=r.mul(p,_),m=r.add(m,g),g=r.sub(v,g),g=r.mul(d,g),_=r.add(_,g),v=r.mul(m,_),f=r.add(f,v),v=r.mul(x,_),l=r.mul(b,l),l=r.sub(l,v),v=r.mul(b,m),h=r.mul(x,h),new t(l,f,h=r.add(h,v))}},{key:"subtract",value:function(t){return this.add(t.negate())}},{key:"is0",value:function(){return this.equals(t.ZERO)}},{key:"wNAF",value:function(e){return E.wNAFCached(this,b,e,(function(e){var n=r.invertBatch(e.map((function(t){return t.pz})));return e.map((function(t,e){return t.toAffine(n[e])})).map(t.fromAffine)}))}},{key:"multiplyUnsafe",value:function(n){var i=t.ZERO;if(n===v)return i;if(p(n),n===m)return this;var o=e.endo;if(!o)return E.unsafeLadder(this,n);for(var a=o.splitScalar(n),s=a.k1neg,u=a.k1,c=a.k2neg,l=a.k2,f=i,h=i,d=this;u>v||l>v;)u&m&&(f=f.add(d)),l&m&&(h=h.add(d)),d=d.double(),u>>=m,l>>=m;return s&&(f=f.negate()),c&&(h=h.negate()),h=new t(r.mul(h.px,o.beta),h.py,h.pz),f.add(h)}},{key:"multiply",value:function(n){p(n);var i,o,a=n,s=e.endo;if(s){var u=s.splitScalar(a),c=u.k1neg,l=u.k1,f=u.k2neg,h=u.k2,d=this.wNAF(l),v=d.p,m=d.f,g=this.wNAF(h),y=g.p,b=g.f;v=E.constTimeNegate(c,v),y=E.constTimeNegate(f,y),y=new t(r.mul(y.px,s.beta),y.py,y.pz),i=v.add(y),o=m.add(b)}else{var w=this.wNAF(a);i=w.p,o=w.f}return t.normalizeZ([i,o])[0]}},{key:"multiplyAndAddUnsafe",value:function(e,r,n){var i=t.BASE,o=function(t,e){return e!==v&&e!==m&&t.equals(i)?t.multiply(e):t.multiplyUnsafe(e)},a=o(this,r).add(o(e,n));return a.is0()?void 0:a}},{key:"toAffine",value:function(t){var e=this.px,n=this.py,i=this.pz,o=this.is0();null==t&&(t=o?r.ONE:r.inv(i));var a=r.mul(e,t),s=r.mul(n,t),u=r.mul(i,t);if(o)return{x:r.ZERO,y:r.ZERO};if(!r.eql(u,r.ONE))throw new Error("invZ was invalid");return{x:a,y:s}}},{key:"isTorsionFree",value:function(){var r=e.h,n=e.isTorsionFree;if(r===m)return!0;if(n)return n(t,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}},{key:"clearCofactor",value:function(){var r=e.h,n=e.clearCofactor;return r===m?this:n?n(t,this):this.multiplyUnsafe(e.h)}},{key:"toRawBytes",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.assertValidity(),o(t,this,e)}},{key:"toHex",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return l.bytesToHex(this.toRawBytes(t))}}],[{key:"fromAffine",value:function(e){var n=e||{},i=n.x,o=n.y;if(!e||!r.isValid(i)||!r.isValid(o))throw new Error("invalid affine point");if(e instanceof t)throw new Error("projective point not allowed");var a=function(t){return r.eql(t,r.ZERO)};return a(i)&&a(o)?t.ZERO:new t(i,o,r.ONE)}},{key:"normalizeZ",value:function(e){var n=r.invertBatch(e.map((function(t){return t.pz})));return e.map((function(t,e){return t.toAffine(n[e])})).map(t.fromAffine)}},{key:"fromHex",value:function(e){var r=t.fromAffine(a((0,f.ensureBytes)("pointHex",e)));return r.assertValidity(),r}},{key:"fromPrivateKey",value:function(e){return t.BASE.multiply(g(e))}}]),t}();_.BASE=new _(e.Gx,e.Gy,r.ONE),_.ZERO=new _(r.ZERO,r.ONE,r.ZERO);var x=e.nBitLength,E=(0,h.wNAF)(_,e.endo?Math.ceil(x/2):x);return{CURVE:e,ProjectivePoint:_,normPrivateKeyToScalar:g,weierstrassEquation:s,isWithinCurveOrder:d}}function _(t,e){for(var r=t.ORDER,n=v,i=r-m;i%g===v;i/=g)n+=m;var o=n,a=g<<o-m-m,s=a*g,u=(r-m)/s,c=(u-m)/g,l=s-m,f=a,h=t.pow(e,u),d=t.pow(e,(u+m)/g),p=function(e,r){var n=h,i=t.pow(r,l),a=t.sqr(i);a=t.mul(a,r);var s=t.mul(e,a);s=t.pow(s,c),s=t.mul(s,i),i=t.mul(s,r),a=t.mul(s,e);var u=t.mul(a,i);s=t.pow(u,f);var p=t.eql(s,t.ONE);i=t.mul(a,d),s=t.mul(u,n),a=t.cmov(i,a,p),u=t.cmov(s,u,p);for(var v=o;v>m;v--){var y=v-g;y=g<<y-m;var b=t.pow(u,y),w=t.eql(b,t.ONE);i=t.mul(a,n),n=t.mul(n,n),b=t.mul(u,n),a=t.cmov(i,a,w),u=t.cmov(b,u,w)}return{isValid:p,value:a}};if(t.ORDER%b===y){var w=(t.ORDER-y)/b,_=t.sqrt(t.neg(e));p=function(e,r){var n=t.sqr(r),i=t.mul(e,r);n=t.mul(n,i);var o=t.pow(n,w);o=t.mul(o,i);var a=t.mul(o,_),s=t.mul(t.sqr(o),r),u=t.eql(s,e);return{isValid:u,value:t.cmov(a,o,u)}}}return p}e.weierstrassPoints=w,e.weierstrass=function(t){var r=function(t){var e=(0,h.validateBasic)(t);return l.validateObject(e,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze(u({lowS:!0},e))}(t),o=r.Fp,a=r.n,s=o.BYTES+1,d=2*o.BYTES+1;function p(t){return c.mod(t,a)}function g(t){return c.invert(t,a)}var y=w(u(u({},r),{},{toBytes:function(t,e,r){var n=e.toAffine(),i=o.toBytes(n.x),a=l.concatBytes;return r?a(Uint8Array.from([e.hasEvenY()?2:3]),i):a(Uint8Array.from([4]),i,o.toBytes(n.y))},fromBytes:function(t){var e=t.length,r=t[0],n=t.subarray(1);if(e!==s||2!==r&&3!==r){if(e===d&&4===r)return{x:o.fromBytes(n.subarray(0,o.BYTES)),y:o.fromBytes(n.subarray(o.BYTES,2*o.BYTES))};
2throw new Error("Point of length ".concat(e," was invalid. Expected ").concat(s," compressed bytes or ").concat(d," uncompressed bytes"))}var i=l.bytesToNumberBE(n);if(!(v<(a=i)&&a<o.ORDER))throw new Error("Point is not on curve");var a,u=x(i),c=o.sqrt(u);return 1===(1&r)!==((c&m)===m)&&(c=o.neg(c)),{x:i,y:c}}})),b=y.ProjectivePoint,_=y.normPrivateKeyToScalar,x=y.weierstrassEquation,E=y.isWithinCurveOrder,A=function(t){return l.bytesToHex(l.numberToBytesBE(t,r.nByteLength))};function M(t){return t>a>>m}var k=function(t,e,r){return l.bytesToNumberBE(t.slice(e,r))},S=function(){function t(e,r,n){i(this,t),this.r=e,this.s=r,this.recovery=n,this.assertValidity()}return n(t,[{key:"assertValidity",value:function(){if(!E(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!E(this.s))throw new Error("s must be 0 < s < CURVE.n")}},{key:"addRecoveryBit",value:function(e){return new t(this.r,this.s,e)}},{key:"recoverPublicKey",value:function(t){var e=this.r,n=this.s,i=this.recovery,a=C((0,f.ensureBytes)("msgHash",t));if(null==i||![0,1,2,3].includes(i))throw new Error("recovery id invalid");var s=2===i||3===i?e+r.n:e;if(s>=o.ORDER)throw new Error("recovery id 2 or 3 invalid");var u=0===(1&i)?"02":"03",c=b.fromHex(u+A(s)),l=g(s),h=p(-a*l),d=p(n*l),v=b.BASE.multiplyAndAddUnsafe(c,h,d);if(!v)throw new Error("point at infinify");return v.assertValidity(),v}},{key:"hasHighS",value:function(){return M(this.s)}},{key:"normalizeS",value:function(){return this.hasHighS()?new t(this.r,p(-this.s),this.recovery):this}},{key:"toDERRawBytes",value:function(){return l.hexToBytes(this.toDERHex())}},{key:"toDERHex",value:function(){return e.DER.hexFromSig({r:this.r,s:this.s})}},{key:"toCompactRawBytes",value:function(){return l.hexToBytes(this.toCompactHex())}},{key:"toCompactHex",value:function(){return A(this.r)+A(this.s)}}],[{key:"fromCompact",value:function(e){var n=r.nByteLength;return e=(0,f.ensureBytes)("compactSignature",e,2*n),new t(k(e,0,n),k(e,n,2*n))}},{key:"fromDER",value:function(r){var n=e.DER.toSig((0,f.ensureBytes)("DER",r));return new t(n.r,n.s)}}]),t}(),I={isValidPrivateKey:function(t){try{return _(t),!0}catch(e){return!1}},normPrivateKeyToScalar:_,randomPrivateKey:function(){var t=r.randomBytes(o.BYTES+8),e=c.hashToPrivateScalar(t,a);return l.numberToBytesBE(e,r.nByteLength)},precompute:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.BASE;return e._setWindowSize(t),e.multiply(BigInt(3)),e}};function P(t){var e=t instanceof Uint8Array,r="string"===typeof t,n=(e||r)&&t.length;return e?n===s||n===d:r?n===2*s||n===2*d:t instanceof b}var N=r.bits2int||function(t){var e=l.bytesToNumberBE(t),n=8*t.length-r.nBitLength;return n>0?e>>BigInt(n):e},C=r.bits2int_modN||function(t){return p(N(t))},O=l.bitMask(r.nBitLength);function T(t){if("bigint"!==typeof t)throw new Error("bigint expected");if(!(v<=t&&t<O))throw new Error("bigint expected < 2^".concat(r.nBitLength));return l.numberToBytesBE(t,r.nByteLength)}function R(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:B;if(["recovered","canonical"].some((function(t){return t in n})))throw new Error("sign() legacy options not supported");var i=r.hash,a=r.randomBytes,s=n.lowS,u=n.prehash,c=n.extraEntropy;null==s&&(s=!0),t=(0,f.ensureBytes)("msgHash",t),u&&(t=(0,f.ensureBytes)("prehashed msgHash",i(t)));var h=C(t),d=_(e),y=[T(d),T(h)];if(null!=c){var w=!0===c?a(o.BYTES):c;y.push((0,f.ensureBytes)("extraEntropy",w,o.BYTES))}var x=l.concatBytes.apply(l,y),A=h;return{seed:x,k2sig:function(t){var e=N(t);if(E(e)){var r=g(e),n=b.BASE.multiply(e).toAffine(),i=p(n.x);if(i!==v){var o=p(r*p(A+i*d));if(o!==v){var a=(n.x===i?0:2)|Number(n.y&m),u=o;return s&&M(o)&&(u=function(t){return M(t)?p(-t):t}(o),a^=1),new S(i,u,a)}}}}}}var B={lowS:r.lowS,prehash:!1},L={lowS:r.lowS,prehash:!1};return b.BASE._setWindowSize(8),{CURVE:r,getPublicKey:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return b.fromPrivateKey(t).toRawBytes(e)},getSharedSecret:function(t,e){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(P(t))throw new Error("first arg must be private key");if(!P(e))throw new Error("second arg must be public key");return b.fromHex(e).multiply(_(t)).toRawBytes(r)},sign:function(t,e){var n=R(t,e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:B),i=n.seed,o=n.k2sig,a=r;return l.createHmacDrbg(a.hash.outputLen,a.nByteLength,a.hmac)(i,o)},verify:function(t,n,i){var o,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:L,s=t;if(n=(0,f.ensureBytes)("msgHash",n),i=(0,f.ensureBytes)("publicKey",i),"strict"in a)throw new Error("options.strict was renamed to lowS");var u,c=a.lowS,l=a.prehash,h=void 0;try{if("string"===typeof s||s instanceof Uint8Array)try{h=S.fromDER(s)}catch(k){if(!(k instanceof e.DER.Err))throw k;h=S.fromCompact(s)}else{if("object"!==typeof s||"bigint"!==typeof s.r||"bigint"!==typeof s.s)throw new Error("PARSE");var d=s.r,v=s.s;h=new S(d,v)}u=b.fromHex(i)}
2catch(I){if("PARSE"===I.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(c&&h.hasHighS())return!1;l&&(n=r.hash(n));var m=h,y=m.r,w=m.s,_=C(n),x=g(w),E=p(_*x),A=p(y*x),M=null===(o=b.BASE.multiplyAndAddUnsafe(u,E,A))||void 0===o?void 0:o.toAffine();return!!M&&p(M.x)===y},ProjectivePoint:b,Signature:S,utils:I}},e.SWUFpSqrtRatio=_,e.mapToCurveSimpleSWU=function(t,e){if(c.validateField(t),!t.isValid(e.A)||!t.isValid(e.B)||!t.isValid(e.Z))throw new Error("mapToCurveSimpleSWU: invalid opts");var r=_(t,e.Z);if(!t.isOdd)throw new Error("Fp.isOdd is not implemented!");return function(n){var i,o,a,s,u,c,l,f;i=t.sqr(n),i=t.mul(i,e.Z),o=t.sqr(i),o=t.add(o,i),a=t.add(o,t.ONE),a=t.mul(a,e.B),s=t.cmov(e.Z,t.neg(o),!t.eql(o,t.ZERO)),s=t.mul(s,e.A),o=t.sqr(a),c=t.sqr(s),u=t.mul(c,e.A),o=t.add(o,u),o=t.mul(o,a),c=t.mul(c,s),u=t.mul(c,e.B),o=t.add(o,u),l=t.mul(i,a);var h=r(o,c),d=h.isValid,p=h.value;f=t.mul(i,n),f=t.mul(f,p),l=t.cmov(l,a,d),f=t.cmov(f,p,d);var v=t.isOdd(n)===t.isOdd(f);return f=t.cmov(t.neg(f),f,v),{x:l=t.div(l,s),y:f}}}},55033:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.encodeToCurve=e.hashToCurve=e.schnorr=e.secp256k1=void 0;var n=r(15925),i=r(54242),o=r(22818),a=r(86983),s=r(47308),u=r(59496),c=r(50132),l=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),f=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h=BigInt(1),d=BigInt(2),p=function(t,e){return(t+e/d)/e};function v(t){var e=l,r=BigInt(3),n=BigInt(6),i=BigInt(11),a=BigInt(22),s=BigInt(23),u=BigInt(44),c=BigInt(88),f=t*t*t%e,h=f*f*t%e,p=(0,o.pow2)(h,r,e)*h%e,v=(0,o.pow2)(p,r,e)*h%e,g=(0,o.pow2)(v,d,e)*f%e,y=(0,o.pow2)(g,i,e)*g%e,b=(0,o.pow2)(y,a,e)*y%e,w=(0,o.pow2)(b,u,e)*b%e,_=(0,o.pow2)(w,c,e)*w%e,x=(0,o.pow2)(_,u,e)*b%e,E=(0,o.pow2)(x,r,e)*h%e,A=(0,o.pow2)(E,s,e)*y%e,M=(0,o.pow2)(A,n,e)*f%e,k=(0,o.pow2)(M,d,e);if(!m.eql(m.sqr(k),t))throw new Error("Cannot find square root");return k}var m=(0,o.Field)(l,void 0,void 0,{sqrt:v});e.secp256k1=(0,c.createCurve)({a:BigInt(0),b:BigInt(7),Fp:m,n:f,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:function(t){var e=f,r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-h*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),i=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),a=r,s=BigInt("0x100000000000000000000000000000000"),u=p(a*t,e),c=p(-n*t,e),l=(0,o.mod)(t-u*r-c*i,e),d=(0,o.mod)(-u*n-c*a,e),v=l>s,m=d>s;if(v&&(l=e-l),m&&(d=e-d),l>s||d>s)throw new Error("splitScalar: Endomorphism failed, k="+t);return{k1neg:v,k1:l,k2neg:m,k2:d}}}},n.sha256);var g=BigInt(0),y=function(t){return"bigint"===typeof t&&g<t&&t<l},b=function(t){return"bigint"===typeof t&&g<t&&t<f},w={};function _(t){var e=w[t];if(void 0===e){var r=(0,n.sha256)(Uint8Array.from(t,(function(t){return t.charCodeAt(0)})));e=(0,s.concatBytes)(r,r),w[t]=e}for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];return(0,n.sha256)(s.concatBytes.apply(void 0,[e].concat(o)))}var x=function(t){return t.toRawBytes(!0).slice(1)},E=function(t){return(0,s.numberToBytesBE)(t,32)},A=function(t){return(0,o.mod)(t,l)},M=function(t){return(0,o.mod)(t,f)},k=e.secp256k1.ProjectivePoint,S=function(t,e,r){return k.BASE.multiplyAndAddUnsafe(t,e,r)};function I(t){var r=e.secp256k1.utils.normPrivateKeyToScalar(t),n=k.fromPrivateKey(r);return{scalar:n.hasEvenY()?r:M(-r),bytes:x(n)}}function P(t){if(!y(t))throw new Error("bad x: need 0 < x < p");var e=A(t*t),r=v(A(e*t+BigInt(7)));r%d!==g&&(r=A(-r));var n=new k(t,r,h);return n.assertValidity(),n}function N(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return M((0,s.bytesToNumberBE)(_.apply(void 0,["BIP0340/challenge"].concat(e))))}function C(t){return I(t).bytes}function O(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(0,i.randomBytes)(32),n=(0,s.ensureBytes)("message",t),o=I(e),a=o.bytes,u=o.scalar,c=(0,s.ensureBytes)("auxRand",r,32),l=E(u^(0,s.bytesToNumberBE)(_("BIP0340/aux",c))),f=_("BIP0340/nonce",l,a,n),h=M((0,s.bytesToNumberBE)(f));if(h===g)throw new Error("sign failed: k is zero");var d=I(h),p=d.bytes,v=d.scalar,m=N(p,a,n),y=new Uint8Array(64);if(y.set(p,0),y.set(E(M(v+m*u)),32),!T(y,n,a))throw new Error("sign: Invalid signature produced");return y}function T(t,e,r){var n=(0,s.ensureBytes)("signature",t,64),i=(0,s.ensureBytes)("message",e),o=(0,s.ensureBytes)("publicKey",r,32);try{var a=P((0,s.bytesToNumberBE)(o)),u=(0,s.bytesToNumberBE)(n.subarray(0,32));if(!y(u))return!1;var c=(0,s.bytesToNumberBE)(n.subarray(32,64));if(!b(c))return!1;var l=N(E(u),x(a),i),f=S(a,c,M(-l));return!(!f||!f.hasEvenY()||f.toAffine().x!==u)}catch(h){return!1}}e.schnorr={getPublicKey:C,sign:O,verify:T,utils:{randomPrivateKey:e.secp256k1.utils.randomPrivateKey,lift_x:P,pointToBytes:x,numberToBytesBE:s.numberToBytesBE,bytesToNumberBE:s.bytesToNumberBE,taggedHash:_,mod:o.mod}};var R=function(){return(0,u.isogenyMap)(m,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a4
213deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map((function(t){return t.map((function(t){return BigInt(t)}))})))}(),B=function(){return(0,a.mapToCurveSimpleSWU)(m,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:m.create(BigInt("-11"))})}(),L=function(){return(0,u.createHasher)(e.secp256k1.ProjectivePoint,(function(t){var e=B(m.create(t[0])),r=e.x,n=e.y;return R(r,n)}),{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:m.ORDER,m:1,k:128,expand:"xmd",hash:n.sha256})}();e.hashToCurve=L.hashToCurve,e.encodeToCurve=L.encodeToCurve},28583:function(t,e){"use strict";function r(t){if(!Number.isSafeInteger(t)||t<0)throw new Error("Wrong positive integer: ".concat(t))}function n(t){if("boolean"!==typeof t)throw new Error("Expected boolean, not ".concat(t))}function i(t){if(!(t instanceof Uint8Array))throw new Error("Expected Uint8Array");for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];if(r.length>0&&!r.includes(t.length))throw new Error("Expected Uint8Array of length ".concat(r,", not of length=").concat(t.length))}function o(t){if("function"!==typeof t||"function"!==typeof t.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");r(t.outputLen),r(t.blockLen)}function a(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function s(t,e){i(t);var r=e.outputLen;if(t.length<r)throw new Error("digestInto() expects output buffer of length at least ".concat(r))}Object.defineProperty(e,"__esModule",{value:!0}),e.output=e.exists=e.hash=e.bytes=e.bool=e.number=void 0,e.number=r,e.bool=n,e.bytes=i,e.hash=o,e.exists=a,e.output=s;var u={number:r,bool:n,bytes:i,hash:o,exists:a,output:s};e.default=u},97236:function(t,e,r){"use strict";var n=r(861).default,i=r(56690).default,o=r(89728).default,a=r(61655).default,s=r(26389).default;Object.defineProperty(e,"__esModule",{value:!0}),e.SHA2=void 0;var u=r(28583),c=r(54242);var l=function(t){a(r,t);var e=s(r);function r(t,n,o,a){var s;return i(this,r),(s=e.call(this)).blockLen=t,s.outputLen=n,s.padOffset=o,s.isLE=a,s.finished=!1,s.length=0,s.pos=0,s.destroyed=!1,s.buffer=new Uint8Array(t),s.view=(0,c.createView)(s.buffer),s}return o(r,[{key:"update",value:function(t){u.default.exists(this);for(var e=this.view,r=this.buffer,n=this.blockLen,i=(t=(0,c.toBytes)(t)).length,o=0;o<i;){var a=Math.min(n-this.pos,i-o);if(a!==n)r.set(t.subarray(o,o+a),this.pos),this.pos+=a,o+=a,this.pos===n&&(this.process(e,0),this.pos=0);else for(var s=(0,c.createView)(t);n<=i-o;o+=n)this.process(s,o)}return this.length+=t.length,this.roundClean(),this}},{key:"digestInto",value:function(t){u.default.exists(this),u.default.output(t,this),this.finished=!0;var e=this.buffer,r=this.view,n=this.blockLen,i=this.isLE,o=this.pos;e[o++]=128,this.buffer.subarray(o).fill(0),this.padOffset>n-o&&(this.process(r,0),o=0);for(var a=o;a<n;a++)e[a]=0;!function(t,e,r,n){if("function"===typeof t.setBigUint64)return t.setBigUint64(e,r,n);var i=BigInt(32),o=BigInt(4294967295),a=Number(r>>i&o),s=Number(r&o),u=n?4:0,c=n?0:4;t.setUint32(e+u,a,n),t.setUint32(e+c,s,n)}(r,n-8,BigInt(8*this.length),i),this.process(r,0);var s=(0,c.createView)(t),l=this.outputLen;if(l%4)throw new Error("_sha2: outputLen should be aligned to 32bit");var f=l/4,h=this.get();if(f>h.length)throw new Error("_sha2: outputLen bigger than state");for(var d=0;d<f;d++)s.setUint32(4*d,h[d],i)}},{key:"digest",value:function(){var t=this.buffer,e=this.outputLen;this.digestInto(t);var r=t.slice(0,e);return this.destroy(),r}},{key:"_cloneInto",value:function(t){var e;t||(t=new this.constructor),(e=t).set.apply(e,n(this.get()));var r=this.blockLen,i=this.buffer,o=this.length,a=this.finished,s=this.destroyed,u=this.pos;return t.length=o,t.pos=u,t.finished=a,t.destroyed=s,o%r&&t.buffer.set(i),t}}]),r}(c.Hash);e.SHA2=l},50815:function(t,e){"use strict";
2Object.defineProperty(e,"__esModule",{value:!0}),e.add=e.toBig=e.split=e.fromBig=void 0;var r=BigInt(Math.pow(2,32)-1),n=BigInt(32);function i(t){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?{h:Number(t&r),l:Number(t>>n&r)}:{h:0|Number(t>>n&r),l:0|Number(t&r)}}function o(t){for(var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=new Uint32Array(t.length),n=new Uint32Array(t.length),o=0;o<t.length;o++){var a=i(t[o],e),s=[a.h,a.l];r[o]=s[0],n[o]=s[1]}return[r,n]}e.fromBig=i,e.split=o;e.toBig=function(t,e){return BigInt(t>>>0)<<n|BigInt(e>>>0)};function a(t,e,r,n){var i=(e>>>0)+(n>>>0);return{h:t+r+(i/Math.pow(2,32)|0)|0,l:0|i}}e.add=a;var s={fromBig:i,split:o,toBig:e.toBig,shrSH:function(t,e,r){return t>>>r},shrSL:function(t,e,r){return t<<32-r|e>>>r},rotrSH:function(t,e,r){return t>>>r|e<<32-r},rotrSL:function(t,e,r){return t<<32-r|e>>>r},rotrBH:function(t,e,r){return t<<64-r|e>>>r-32},rotrBL:function(t,e,r){return t>>>r-32|e<<64-r},rotr32H:function(t,e){return e},rotr32L:function(t,e){return t},rotlSH:function(t,e,r){return t<<r|e>>>32-r},rotlSL:function(t,e,r){return e<<r|t>>>32-r},rotlBH:function(t,e,r){return e<<r-32|t>>>64-r},rotlBL:function(t,e,r){return t<<r-32|e>>>64-r},add:a,add3L:function(t,e,r){return(t>>>0)+(e>>>0)+(r>>>0)},add3H:function(t,e,r,n){return e+r+n+(t/Math.pow(2,32)|0)|0},add4L:function(t,e,r,n){return(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0)},add4H:function(t,e,r,n,i){return e+r+n+i+(t/Math.pow(2,32)|0)|0},add5H:function(t,e,r,n,i,o){return e+r+n+i+o+(t/Math.pow(2,32)|0)|0},add5L:function(t,e,r,n,i){return(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0)+(i>>>0)}};e.default=s},87580:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.crypto=void 0,e.crypto="object"===typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},77282:function(t,e,r){"use strict";var n=r(56690).default,i=r(89728).default,o=r(61655).default,a=r(26389).default;Object.defineProperty(e,"__esModule",{value:!0}),e.hmac=e.HMAC=void 0;var s=r(28583),u=r(54242),c=function(t){o(r,t);var e=a(r);function r(t,i){var o;n(this,r),(o=e.call(this)).finished=!1,o.destroyed=!1,s.default.hash(t);var a=(0,u.toBytes)(i);if(o.iHash=t.create(),"function"!==typeof o.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");o.blockLen=o.iHash.blockLen,o.outputLen=o.iHash.outputLen;var c=o.blockLen,l=new Uint8Array(c);l.set(a.length>c?t.create().update(a).digest():a);for(var f=0;f<l.length;f++)l[f]^=54;o.iHash.update(l),o.oHash=t.create();for(var h=0;h<l.length;h++)l[h]^=106;return o.oHash.update(l),l.fill(0),o}return i(r,[{key:"update",value:function(t){return s.default.exists(this),this.iHash.update(t),this}},{key:"digestInto",value:function(t){s.default.exists(this),s.default.bytes(t,this.outputLen),this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}},{key:"digest",value:function(){var t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}},{key:"_cloneInto",value:function(t){t||(t=Object.create(Object.getPrototypeOf(this),{}));var e=this.oHash,r=this.iHash,n=this.finished,i=this.destroyed,o=this.blockLen,a=this.outputLen;return t.finished=n,t.destroyed=i,t.blockLen=o,t.outputLen=a,t.oHash=e._cloneInto(t.oHash),t.iHash=r._cloneInto(t.iHash),t}},{key:"destroy",value:function(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}]),r}(u.Hash);e.HMAC=c;e.hmac=function(t,e,r){return new c(t,e).update(r).digest()},e.hmac.create=function(t,e){return new c(t,e)}},15925:function(t,e,r){"use strict";var n=r(56690).default,i=r(89728).default,o=r(61655).default,a=r(26389).default;Object.defineProperty(e,"__esModule",{value:!0}),e.sha224=e.sha256=void 0;var s=r(97236),u=r(54242),c=function(t,e,r){return t&e^t&r^e&r},l=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,2756
2734187,3204031479,3329325298]),f=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),h=new Uint32Array(64),d=function(t){o(r,t);var e=a(r);function r(){var t;return n(this,r),(t=e.call(this,64,32,8,!1)).A=0|f[0],t.B=0|f[1],t.C=0|f[2],t.D=0|f[3],t.E=0|f[4],t.F=0|f[5],t.G=0|f[6],t.H=0|f[7],t}return i(r,[{key:"get",value:function(){return[this.A,this.B,this.C,this.D,this.E,this.F,this.G,this.H]}},{key:"set",value:function(t,e,r,n,i,o,a,s){this.A=0|t,this.B=0|e,this.C=0|r,this.D=0|n,this.E=0|i,this.F=0|o,this.G=0|a,this.H=0|s}},{key:"process",value:function(t,e){for(var r=0;r<16;r++,e+=4)h[r]=t.getUint32(e,!1);for(var n=16;n<64;n++){var i=h[n-15],o=h[n-2],a=(0,u.rotr)(i,7)^(0,u.rotr)(i,18)^i>>>3,s=(0,u.rotr)(o,17)^(0,u.rotr)(o,19)^o>>>10;h[n]=s+h[n-7]+a+h[n-16]|0}for(var f,d=this.A,p=this.B,v=this.C,m=this.D,g=this.E,y=this.F,b=this.G,w=this.H,_=0;_<64;_++){var x=w+((0,u.rotr)(g,6)^(0,u.rotr)(g,11)^(0,u.rotr)(g,25))+((f=g)&y^~f&b)+l[_]+h[_]|0,E=((0,u.rotr)(d,2)^(0,u.rotr)(d,13)^(0,u.rotr)(d,22))+c(d,p,v)|0;w=b,b=y,y=g,g=m+x|0,m=v,v=p,p=d,d=x+E|0}d=d+this.A|0,p=p+this.B|0,v=v+this.C|0,m=m+this.D|0,g=g+this.E|0,y=y+this.F|0,b=b+this.G|0,w=w+this.H|0,this.set(d,p,v,m,g,y,b,w)}},{key:"roundClean",value:function(){h.fill(0)}},{key:"destroy",value:function(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}]),r}(s.SHA2),p=function(t){o(r,t);var e=a(r);function r(){var t;return n(this,r),(t=e.call(this)).A=-1056596264,t.B=914150663,t.C=812702999,t.D=-150054599,t.E=-4191439,t.F=1750603025,t.G=1694076839,t.H=-1090891868,t.outputLen=28,t}return i(r)}(d);e.sha256=(0,u.wrapConstructor)((function(){return new d}
2)),e.sha224=(0,u.wrapConstructor)((function(){return new p}))},29322:function(t,e,r){"use strict";var n=r(56690).default,i=r(89728).default,o=r(61655).default,a=r(26389).default,s=r(27424).default;Object.defineProperty(e,"__esModule",{value:!0}),e.shake256=e.shake128=e.keccak_512=e.keccak_384=e.keccak_256=e.keccak_224=e.sha3_512=e.sha3_384=e.sha3_256=e.sha3_224=e.Keccak=e.keccakP=void 0;for(var u=r(28583),c=r(50815),l=r(54242),f=[],h=[],d=[],p=BigInt(0),v=BigInt(1),m=BigInt(2),g=BigInt(7),y=BigInt(256),b=BigInt(113),w=0,_=v,x=1,E=0;w<24;w++){var A=[E,(2*x+3*E)%5];x=A[0],E=A[1],f.push(2*(5*E+x)),h.push((w+1)*(w+2)/2%64);for(var M=p,k=0;k<7;k++)(_=(_<<v^(_>>g)*b)%y)&m&&(M^=v<<(v<<BigInt(k))-v);d.push(M)}var S=s(c.default.split(d,!0),2),I=S[0],P=S[1],N=function(t,e,r){return r>32?c.default.rotlBH(t,e,r):c.default.rotlSH(t,e,r)},C=function(t,e,r){return r>32?c.default.rotlBL(t,e,r):c.default.rotlSL(t,e,r)};function O(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:24,r=new Uint32Array(10),n=24-e;n<24;n++){for(var i=0;i<10;i++)r[i]=t[i]^t[i+10]^t[i+20]^t[i+30]^t[i+40];for(var o=0;o<10;o+=2)for(var a=(o+8)%10,s=(o+2)%10,u=r[s],c=r[s+1],l=N(u,c,1)^r[a],d=C(u,c,1)^r[a+1],p=0;p<50;p+=10)t[o+p]^=l,t[o+p+1]^=d;for(var v=t[2],m=t[3],g=0;g<24;g++){var y=h[g],b=N(v,m,y),w=C(v,m,y),_=f[g];v=t[_],m=t[_+1],t[_]=b,t[_+1]=w}for(var x=0;x<50;x+=10){for(var E=0;E<10;E++)r[E]=t[x+E];for(var A=0;A<10;A++)t[x+A]^=~r[(A+2)%10]&r[(A+4)%10]}t[0]^=I[n],t[1]^=P[n]}r.fill(0)}e.keccakP=O;var T=function(t){o(r,t);var e=a(r);function r(t,i,o){var a,s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:24;if(n(this,r),(a=e.call(this)).blockLen=t,a.suffix=i,a.outputLen=o,a.enableXOF=s,a.rounds=c,a.pos=0,a.posOut=0,a.finished=!1,a.destroyed=!1,u.default.number(o),0>=a.blockLen||a.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");return a.state=new Uint8Array(200),a.state32=(0,l.u32)(a.state),a}return i(r,[{key:"keccak",value:function(){O(this.state32,this.rounds),this.posOut=0,this.pos=0}},{key:"update",value:function(t){u.default.exists(this);for(var e=this.blockLen,r=this.state,n=(t=(0,l.toBytes)(t)).length,i=0;i<n;){for(var o=Math.min(e-this.pos,n-i),a=0;a<o;a++)r[this.pos++]^=t[i++];this.pos===e&&this.keccak()}return this}},{key:"finish",value:function(){if(!this.finished){this.finished=!0;var t=this.state,e=this.suffix,r=this.pos,n=this.blockLen;t[r]^=e,0!==(128&e)&&r===n-1&&this.keccak(),t[n-1]^=128,this.keccak()}}},{key:"writeInto",value:function(t){u.default.exists(this,!1),u.default.bytes(t),this.finish();for(var e=this.state,r=this.blockLen,n=0,i=t.length;n<i;){this.posOut>=r&&this.keccak();var o=Math.min(r-this.posOut,i-n);t.set(e.subarray(this.posOut,this.posOut+o),n),this.posOut+=o,n+=o}return t}},{key:"xofInto",value:function(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}},{key:"xof",value:function(t){return u.default.number(t),this.xofInto(new Uint8Array(t))}},{key:"digestInto",value:function(t){if(u.default.output(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}},{key:"digest",value:function(){return this.digestInto(new Uint8Array(this.outputLen))}},{key:"destroy",value:function(){this.destroyed=!0,this.state.fill(0)}},{key:"_cloneInto",value:function(t){var e=this.blockLen,n=this.suffix,i=this.outputLen,o=this.rounds,a=this.enableXOF;return t||(t=new r(e,n,i,a,o)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=o,t.suffix=n,t.outputLen=i,t.enableXOF=a,t.destroyed=this.destroyed,t}}]),r}(l.Hash);e.Keccak=T;var R=function(t,e,r){return(0,l.wrapConstructor)((function(){return new T(e,t,r)}))};e.sha3_224=R(6,144,28),e.sha3_256=R(6,136,32),e.sha3_384=R(6,104,48),e.sha3_512=R(6,72,64),e.keccak_224=R(1,144,28),e.keccak_256=R(1,136,32),e.keccak_384=R(1,104,48),e.keccak_512=R(1,72,64);var B=function(t,e,r){return(0,l.wrapXOFConstructorWithOpts)((function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new T(e,t,void 0===n.dkLen?r:n.dkLen,!0)}))};e.shake128=B(31,168,16),e.shake256=B(31,136,32)},54242:function(t,e,r){"use strict";var n=r(56690).default,i=r(89728).default,o=r(17061).default,a=r(17156).default;
2Object.defineProperty(e,"__esModule",{value:!0}),e.randomBytes=e.wrapXOFConstructorWithOpts=e.wrapConstructorWithOpts=e.wrapConstructor=e.checkOpts=e.Hash=e.concatBytes=e.toBytes=e.utf8ToBytes=e.asyncLoop=e.nextTick=e.hexToBytes=e.bytesToHex=e.isLE=e.rotr=e.createView=e.u32=e.u8=void 0;var s=r(87580),u=function(t){return t instanceof Uint8Array};e.u8=function(t){return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)};e.u32=function(t){return new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4))};e.createView=function(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)};if(e.rotr=function(t,e){return t<<32-e|t>>>e},e.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],!e.isLE)throw new Error("Non little-endian hardware is not supported");var c=Array.from({length:256},(function(t,e){return e.toString(16).padStart(2,"0")}));e.bytesToHex=function(t){if(!u(t))throw new Error("Uint8Array expected");for(var e="",r=0;r<t.length;r++)e+=c[t[r]];return e},e.hexToBytes=function(t){if("string"!==typeof t)throw new Error("hex string expected, got "+typeof t);var e=t.length;if(e%2)throw new Error("padded hex string expected, got unpadded hex of length "+e);for(var r=new Uint8Array(e/2),n=0;n<r.length;n++){var i=2*n,o=t.slice(i,i+2),a=Number.parseInt(o,16);if(Number.isNaN(a)||a<0)throw new Error("Invalid byte sequence");r[n]=a}return r};var l=function(){var t=a(o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();function f(){return(f=a(o().mark((function t(r,n,i){var a,s,u;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:a=Date.now(),s=0;case 2:if(!(s<r)){t.next=13;break}if(i(s),!((u=Date.now()-a)>=0&&u<n)){t.next=7;break}return t.abrupt("continue",10);case 7:return t.next=9,(0,e.nextTick)();case 9:a+=u;case 10:s++,t.next=2;break;case 13:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function h(t){if("string"!==typeof t)throw new Error("utf8ToBytes expected string, got ".concat(typeof t));return new Uint8Array((new TextEncoder).encode(t))}function d(t){if("string"===typeof t&&(t=h(t)),!u(t))throw new Error("expected Uint8Array, got ".concat(typeof t));return t}e.nextTick=l,e.asyncLoop=function(t,e,r){return f.apply(this,arguments)},e.utf8ToBytes=h,e.toBytes=d,e.concatBytes=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=new Uint8Array(e.reduce((function(t,e){return t+e.length}),0)),i=0;return e.forEach((function(t){if(!u(t))throw new Error("Uint8Array expected");n.set(t,i),i+=t.length})),n};var p=function(){function t(){n(this,t)}return i(t,[{key:"clone",value:function(){return this._cloneInto()}}]),t}();e.Hash=p;e.checkOpts=function(t,e){if(void 0!==e&&("object"!==typeof e||(r=e,"[object Object]"!==Object.prototype.toString.call(r)||r.constructor!==Object)))throw new Error("Options should be object or undefined");var r;return Object.assign(t,e)},e.wrapConstructor=function(t){var e=function(e){return t().update(d(e)).digest()},r=t();return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=function(){return t()},e},e.wrapConstructorWithOpts=function(t){var e=function(e,r){return t(r).update(d(e)).digest()},r=t({});return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=function(e){return t(e)},e},e.wrapXOFConstructorWithOpts=function(t){var e=function(e,r){return t(r).update(d(e)).digest()},r=t({});return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=function(e){return t(e)},e},e.randomBytes=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32;if(s.crypto&&"function"===typeof s.crypto.getRandomValues)return s.crypto.getRandomValues(new Uint8Array(t));throw new Error("crypto.getRandomValues must be defined")}},6023:function(t,e,r){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function o(t,e,r){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var a;
vendor: 12,340 bytes, line 2
2"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:r(44814).Buffer}catch(I){}function s(t,e){var r=t.charCodeAt(e);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+t)}function u(t,e,r){var n=s(t,r);return r-1>=e&&(n|=s(t,r-1)<<4),n}function c(t,e,r,i){for(var o=0,a=0,s=Math.min(t.length,r),u=e;u<s;u++){var c=t.charCodeAt(u)-48;o*=i,a=c>=49?c-49+10:c>=17?c-17+10:c,n(c>=0&&a<i,"Invalid character"),o+=a}return o}function l(t,e){t.words=e.words,t.length=e.length,t.negative=e.negative,t.red=e.red}if(o.isBN=function(t){return t instanceof o||null!==t&&"object"===typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,r){if("number"===typeof t)return this._initNumber(t,e,r);if("object"===typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,r):(this._parseBase(t,e,i),"le"===r&&this._initArray(this.toArray(),e,r)))},o.prototype._initNumber=function(t,e,r){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initArray=function(t,e,r){if(n("number"===typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===r)for(i=t.length-1,o=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},o.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,a=0;if("be"===r)for(n=t.length-1;n>=e;n-=2)i=u(t,e,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(n=(t.length-e)%2===0?e+1:e;n<t.length;n+=2)i=u(t,e,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},o.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,a=o%n,s=Math.min(o,o-a)+r,u=0,l=r;l<s;l+=n)u=c(t,l,l+n,e),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var f=1;for(u=c(t,l,t.length,e),l=0;l<a;l++)f*=e;this.imuln(f),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this._strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype._move=function(t){l(t,this)},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype._strip=function(){for(;this.length>1&&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")]=f}catch(I){o.prototype.inspect=f}else o.prototype.inspect=f;function f(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var 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"],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],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];o.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<i|o)).toString(16);o=s>>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),r=0!==o||a!==this.length-1?h[6-u.length]+u+r:u+r}for(0!==o&&(r=o.toString(16)+r);r.length%e!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var c=d[t],l=p[t];r="";var f=this.clone();for(f.negative=0;!f.isZero();){var v=f.modrn(l).toString(t);r=(f=f.idivn(l)).isZero()?v+r:h[c-v.length]+v+r}for(this.isZero()&&(r="0"+r);r.length%e!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16,2)},a&&(o.prototype.toBuffer=function(t,e){return this.toArrayLike(a,t,e)}),o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)};function v(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var c=1;c<n;c++){for(var l=u>>>26,f=67108863&u,h=Math.min(c,e.length-1),d=Math.max(0,c-t.length+1);d<=h;d++){var p=c-d|0;l+=(a=(i=0|t.words[p])*(o=0|e.words[d])+f)/67108864|0,f=67108863&a}r.words[c]=0|f,u=0|l}return 0!==u?r.words[c]=0|u:r.length--,r._strip()}o.prototype.toArrayLike=function(t,e,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,o);return this["_toArrayLike"+("le"===e?"LE":"BE")](a,i),a},o.prototype._toArrayLikeLE=function(t,e){for(var r=0,n=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|n;t[r++]=255&a,r<t.length&&(t[r++]=a>>8&255),r<t.length&&(t[r++]=a>>16&255),6===o?(r<t.length&&(t[r++]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r<t.length)for(t[r++]=n;r<t.length;)t[r++]=0},o.prototype._toArrayLikeBE=function(t,e){for(var r=t.length-1,n=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|n;t[r--]=255&a,r>=0&&(t[r--]=a>>8&255),r>=0&&(t[r--]=a>>16&255),6===o?(r>=0&&(t[r--]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r>=0)for(t[r--]=n;r>=0;)t[r--]=0},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0===(8191&e)&&(r+=13,e>>>=13),0===(127&e)&&(r+=7,e>>>=7),0===(15&e)&&(r+=4,e>>>=4),0===(3&e)&&(r+=2,e>>>=2),0===(1&e)&&r++,r},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this._strip()},o.prototype.ior=function(t){return n(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this._strip()},o.prototype.iand=function(t){return n(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this._strip()},o.prototype.ixor=function(t){return n(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"===typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<i:this.words[r]&~(1<<i),this._strip()},o.prototype.iadd=function(t){var e,r,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,a=0;a<n.length;a++)o=(e=(0|r.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&e;for(;0!==o&&a<r.length;a++)o=(e=(0|r.words[a])+o)>>26,this.words[a]=67108863&e;if(0===o&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var m=function(t,e,r){var n,i,o,a=t.words,s=e.words,u=r.words,c=0,l=0|a[0],f=8191&l,h=l>>>13,d=0|a[1],p=8191&d,v=d>>>13,m=0|a[2],g=8191&m,y=m>>>13,b=0|a[3],w=8191&b,_=b>>>13,x=0|a[4],E=8191&x,A=x>>>13,M=0|a[5],k=8191&M,S=M>>>13,I=0|a[6],P=8191&I,N=I>>>13,C=0|a[7],O=8191&C,T=C>>>13,R=0|a[8],B=8191&R,L=R>>>13,Z=0|a[9],j=8191&Z,F=Z>>>13,U=0|s[0],D=8191&U,H=U>>>13,z=0|s[1],$=8191&z,q=z>>>13,G=0|s[2],W=8191&G,V=G>>>13,K=0|s[3],Y=8191&K,X=K>>>13,J=0|s[4],Q=8191&J,tt=J>>>13,et=0|s[5],rt=8191&et,nt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>
vendor: 7,122 bytes, line 2
213,st=0|s[7],ut=8191&st,ct=st>>>13,lt=0|s[8],ft=8191&lt,ht=lt>>>13,dt=0|s[9],pt=8191&dt,vt=dt>>>13;r.negative=t.negative^e.negative,r.length=19;var mt=(c+(n=Math.imul(f,D))|0)+((8191&(i=(i=Math.imul(f,H))+Math.imul(h,D)|0))<<13)|0;c=((o=Math.imul(h,H))+(i>>>13)|0)+(mt>>>26)|0,mt&=67108863,n=Math.imul(p,D),i=(i=Math.imul(p,H))+Math.imul(v,D)|0,o=Math.imul(v,H);var gt=(c+(n=n+Math.imul(f,$)|0)|0)+((8191&(i=(i=i+Math.imul(f,q)|0)+Math.imul(h,$)|0))<<13)|0;c=((o=o+Math.imul(h,q)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(g,D),i=(i=Math.imul(g,H))+Math.imul(y,D)|0,o=Math.imul(y,H),n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,q)|0)+Math.imul(v,$)|0,o=o+Math.imul(v,q)|0;var yt=(c+(n=n+Math.imul(f,W)|0)|0)+((8191&(i=(i=i+Math.imul(f,V)|0)+Math.imul(h,W)|0))<<13)|0;c=((o=o+Math.imul(h,V)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(w,D),i=(i=Math.imul(w,H))+Math.imul(_,D)|0,o=Math.imul(_,H),n=n+Math.imul(g,$)|0,i=(i=i+Math.imul(g,q)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,q)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(v,W)|0,o=o+Math.imul(v,V)|0;var bt=(c+(n=n+Math.imul(f,Y)|0)|0)+((8191&(i=(i=i+Math.imul(f,X)|0)+Math.imul(h,Y)|0))<<13)|0;c=((o=o+Math.imul(h,X)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(E,D),i=(i=Math.imul(E,H))+Math.imul(A,D)|0,o=Math.imul(A,H),n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,q)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,q)|0,n=n+Math.imul(g,W)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(y,W)|0,o=o+Math.imul(y,V)|0,n=n+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(v,Y)|0,o=o+Math.imul(v,X)|0;var wt=(c+(n=n+Math.imul(f,Q)|0)|0)+((8191&(i=(i=i+Math.imul(f,tt)|0)+Math.imul(h,Q)|0))<<13)|0;c=((o=o+Math.imul(h,tt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(k,D),i=(i=Math.imul(k,H))+Math.imul(S,D)|0,o=Math.imul(S,H),n=n+Math.imul(E,$)|0,i=(i=i+Math.imul(E,q)|0)+Math.imul(A,$)|0,o=o+Math.imul(A,q)|0,n=n+Math.imul(w,W)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(_,W)|0,o=o+Math.imul(_,V)|0,n=n+Math.imul(g,Y)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(y,Y)|0,o=o+Math.imul(y,X)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,tt)|0;var _t=(c+(n=n+Math.imul(f,rt)|0)|0)+((8191&(i=(i=i+Math.imul(f,nt)|0)+Math.imul(h,rt)|0))<<13)|0;c=((o=o+Math.imul(h,nt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(P,D),i=(i=Math.imul(P,H))+Math.imul(N,D)|0,o=Math.imul(N,H),n=n+Math.imul(k,$)|0,i=(i=i+Math.imul(k,q)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,q)|0,n=n+Math.imul(E,W)|0,i=(i=i+Math.imul(E,V)|0)+Math.imul(A,W)|0,o=o+Math.imul(A,V)|0,n=n+Math.imul(w,Y)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(_,Y)|0,o=o+Math.imul(_,X)|0,n=n+Math.imul(g,Q)|0,i=(i=i+Math.imul(g,tt)|0)+Math.imul(y,Q)|0,o=o+Math.imul(y,tt)|0,n=n+Math.imul(p,rt)|0,i=(i=i+Math.imul(p,nt)|0)+Math.imul(v,rt)|0,o=o+Math.imul(v,nt)|0;var xt=(c+(n=n+Math.imul(f,ot)|0)|0)+((8191&(i=(i=i+Math.imul(f,at)|0)+Math.imul(h,ot)|0))<<13)|0;c=((o=o+Math.imul(h,at)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(O,D),i=(i=Math.imul(O,H))+Math.imul(T,D)|0,o=Math.imul(T,H),n=n+Math.imul(P,$)|0,i=(i=i+Math.imul(P,q)|0)+Math.imul(N,$)|0,o=o+Math.imul(N,q)|0,n=n+Math.imul(k,W)|0,i=(i=i+Math.imul(k,V)|0)+Math.imul(S,W)|0,o=o+Math.imul(S,V)|0,n=n+Math.imul(E,Y)|0,i=(i=i+Math.imul(E,X)|0)+Math.imul(A,Y)|0,o=o+Math.imul(A,X)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,tt)|0,n=n+Math.imul(g,rt)|0,i=(i=i+Math.imul(g,nt)|0)+Math.imul(y,rt)|0,o=o+Math.imul(y,nt)|0,n=n+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(v,ot)|0,o=o+Math.imul(v,at)|0;var Et=(c+(n=n+Math.imul(f,ut)|0)|0)+((8191&(i=(i=i+Math.imul(f,ct)|0)+Math.imul(h,ut)|0))<<13)|0;c=((o=o+Math.imul(h,ct)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(B,D),i=(i=Math.imul(B,H))+Math.imul(L,D)|0,o=Math.imul(L,H),n=n+Math.imul(O,$)|0,i=(i=i+Math.imul(O,q)|0)+Math.imul(T,$)|0,o=o+Math.imul(T,q)|0,n=n+Math.imul(P,W)|0,i=(i=i+Math.imul(P,V)|0)+Math.imul(N,W)|0,o=o+Math.imul(N,V)|0,n=n+Math.imul(k,Y)|0,i=(i=i+Math.imul(k,X)|0)+Math.imul(S,Y)|0,o=o+Math.imul(S,X)|0,n=n+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,tt)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,tt)|0,n=n+Math.imul(w,rt)|0,i=(i=i+Math.imul(w,nt)|0)+Math.imul(_,rt)|0,o=o+Math.imul(_,nt)|0,n=n+Math.imul(g,ot)|0,i=(i=i+Math.imul(g,at)|0)+Math.imul(y,ot)|0,o=o+Math.imul(y,at)|0,n=n+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,ct)|0)+Math.imul(v,ut)|0,o=o+Math.imul(v,ct)|0;var At=(c+(n=n+Math.imul(f,ft)|0)|0)+((8191&(i=(i=i+Math.imul(f,ht)|0)+Math.imul(h,ft)|0))<<13)|0;c=((o=o+Math.imul(h,ht)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(j,D),i=(i=Math.imul(j,H))+Math.imul(F,D)|0,o=Math.imul(F,H),n=n+Math.imul(B,$)|0,i=(i=i+Math.imul(B,q)|0)+Math.imul(L,$)|0,o=o+Math.imul(L,q)|0,n=n+Math.imul(O,W)|0,i=(i=i+Math.imul(O,V)|0)+Math.imul(T,W)|0,o=o+Math.imul(T,V)|0,n=n+Math.imul(P,Y)|0,i=(i=i+Math.imul(P,X)|0)+Math.imul(N,Y)|0,o=o+Math.imul(N,X)|0,n=n+Math.imul(k,Q)|0,i=(i=i+Math.imul(k,tt)|0)+Math.imul(S,Q)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(E,rt)|0,i=(i=i+Math.imul(E,nt)|0)+Math.imul(A,rt)|0,o=o+Math.imul(A,nt)|0,n=n+Math.imul(w,ot)|0,i=(i=i+Math.imul(w,at)|0)+Math.imul(_,ot)|0,o=o+Math.imul(_,at)|0,n=n+Math.imul(g,ut)|0,i=(i=i+Math.imul(g,ct)|0)+Math.imul(y,ut)|0,o=o+Math.imul(y,ct)|0,n=n+Math.imul(p,ft)|0,i=(i=i+Math.imul(p,ht)|0)+Math.imul(v,ft)|0,o=o+Math.imul(v,ht)|0;var Mt=(c+(n=n+Math.imul(f,pt)|0)|0)+((8191&(i=(i=i+Math.imul(f,vt)|0)+Math.imul(h,pt)|0))<<13)|0;c=((o=o+Math.imul(h,vt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(j,$),i=(i=Math.imul(j,q))+Math.imul(F,$)|0,o=Math.imul(F,q),n=n+Math.imul(B,W)|0,i=(i=i+Math.imul(B,V)|0)+Math.imul(L,W)|0,o=o+Math.imul(L,V)|0,n=n+Math.imul(O,Y)|0,i=(i=i+Math.imul(O,X)|0)+Math.imul(T,Y)|0,o=o+Math.imul(T,X)|0,n=n+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,tt)|0,n=n+Math.imul(k,rt)|0,i=(i=i+Math.imul(k,nt)|0)+Math.imul(S,rt)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(E,ot)|0,i=(i=i+Math.imul(E,at)|0)+Math.imul(A,ot)|0,o=o+Math.imul(A,at)|0,n=n+Math.imul(w,ut)|0,i=(i=i+Math.imul(w,ct)|0)+Math.imul(_,ut)|0,o=o+Math.imul(_,ct)|0,n=n+Math.imul(g,ft)|0,i=(i=i+Math.imul(g,ht)|0)+Math.imul(y,ft)|0,o=o+Math.imul(y,ht)|0;var kt=(c+(n=n+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,vt)|0)+Math.imul(v,pt)|0))<<13)|0;c=((o=o+Math.imul(v,vt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(j,W),i=(i=Math.imul(j,V))+Math.imul(F,W)|0,o=Math.imul(F,V),n=n+Math.imul(B,Y)|0,i=(i=i+Math.imul(B,X)|0)+Math.imul(L,Y)|0,o=o+Math.imul(L,X)|0,n=n+Math.imul(O,Q)|0,i=(i=i+Math.imul(O,tt)|0)+Math.imul(T,Q)|0,o=o+Math.imul(T,tt)|0,n=n+Math.imul(P,rt)|0,i=(i=i+Math.imul(P,nt)|0)+Math.imul(N,rt)|0,o=o+Math.imul(N,nt)|0,n=n+Math.imul(k,ot)|0,i=(i=i+Math.imul(k,at)|0)+Math.imul(S,ot)|0,o=o+Math.imul(S,at)|0,n=n+Math.imul(E,ut)|0,i=(i=i+Math.imul(E,ct)|0)+Math.imul(A,ut)|0,o=o+Math.imul(A,ct)|0,n=n+Math.imul(w,ft)|0,i=(i=i+Math.imul(w,ht)|0)+Math.imul(_,ft)|0,o=o+Math.imul(_,ht)|0;var St=(c+(n=n+Math.imul(g,pt)|0)|0)+((8191&(i=(i=i+Math.imul(g,vt)|0)+Math.imul(y,pt)|0))<<13)|0;c=((o=o+Math.imul(y,vt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(j,Y),i=(i=Math.imul(j,X))+Math.imul(F,Y)|0,o=Math.imul(F,X
vendor: 22,872 bytes, line 2
2),n=n+Math.imul(B,Q)|0,i=(i=i+Math.imul(B,tt)|0)+Math.imul(L,Q)|0,o=o+Math.imul(L,tt)|0,n=n+Math.imul(O,rt)|0,i=(i=i+Math.imul(O,nt)|0)+Math.imul(T,rt)|0,o=o+Math.imul(T,nt)|0,n=n+Math.imul(P,ot)|0,i=(i=i+Math.imul(P,at)|0)+Math.imul(N,ot)|0,o=o+Math.imul(N,at)|0,n=n+Math.imul(k,ut)|0,i=(i=i+Math.imul(k,ct)|0)+Math.imul(S,ut)|0,o=o+Math.imul(S,ct)|0,n=n+Math.imul(E,ft)|0,i=(i=i+Math.imul(E,ht)|0)+Math.imul(A,ft)|0,o=o+Math.imul(A,ht)|0;var It=(c+(n=n+Math.imul(w,pt)|0)|0)+((8191&(i=(i=i+Math.imul(w,vt)|0)+Math.imul(_,pt)|0))<<13)|0;c=((o=o+Math.imul(_,vt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(j,Q),i=(i=Math.imul(j,tt))+Math.imul(F,Q)|0,o=Math.imul(F,tt),n=n+Math.imul(B,rt)|0,i=(i=i+Math.imul(B,nt)|0)+Math.imul(L,rt)|0,o=o+Math.imul(L,nt)|0,n=n+Math.imul(O,ot)|0,i=(i=i+Math.imul(O,at)|0)+Math.imul(T,ot)|0,o=o+Math.imul(T,at)|0,n=n+Math.imul(P,ut)|0,i=(i=i+Math.imul(P,ct)|0)+Math.imul(N,ut)|0,o=o+Math.imul(N,ct)|0,n=n+Math.imul(k,ft)|0,i=(i=i+Math.imul(k,ht)|0)+Math.imul(S,ft)|0,o=o+Math.imul(S,ht)|0;var Pt=(c+(n=n+Math.imul(E,pt)|0)|0)+((8191&(i=(i=i+Math.imul(E,vt)|0)+Math.imul(A,pt)|0))<<13)|0;c=((o=o+Math.imul(A,vt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(j,rt),i=(i=Math.imul(j,nt))+Math.imul(F,rt)|0,o=Math.imul(F,nt),n=n+Math.imul(B,ot)|0,i=(i=i+Math.imul(B,at)|0)+Math.imul(L,ot)|0,o=o+Math.imul(L,at)|0,n=n+Math.imul(O,ut)|0,i=(i=i+Math.imul(O,ct)|0)+Math.imul(T,ut)|0,o=o+Math.imul(T,ct)|0,n=n+Math.imul(P,ft)|0,i=(i=i+Math.imul(P,ht)|0)+Math.imul(N,ft)|0,o=o+Math.imul(N,ht)|0;var Nt=(c+(n=n+Math.imul(k,pt)|0)|0)+((8191&(i=(i=i+Math.imul(k,vt)|0)+Math.imul(S,pt)|0))<<13)|0;c=((o=o+Math.imul(S,vt)|0)+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,n=Math.imul(j,ot),i=(i=Math.imul(j,at))+Math.imul(F,ot)|0,o=Math.imul(F,at),n=n+Math.imul(B,ut)|0,i=(i=i+Math.imul(B,ct)|0)+Math.imul(L,ut)|0,o=o+Math.imul(L,ct)|0,n=n+Math.imul(O,ft)|0,i=(i=i+Math.imul(O,ht)|0)+Math.imul(T,ft)|0,o=o+Math.imul(T,ht)|0;var Ct=(c+(n=n+Math.imul(P,pt)|0)|0)+((8191&(i=(i=i+Math.imul(P,vt)|0)+Math.imul(N,pt)|0))<<13)|0;c=((o=o+Math.imul(N,vt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(j,ut),i=(i=Math.imul(j,ct))+Math.imul(F,ut)|0,o=Math.imul(F,ct),n=n+Math.imul(B,ft)|0,i=(i=i+Math.imul(B,ht)|0)+Math.imul(L,ft)|0,o=o+Math.imul(L,ht)|0;var Ot=(c+(n=n+Math.imul(O,pt)|0)|0)+((8191&(i=(i=i+Math.imul(O,vt)|0)+Math.imul(T,pt)|0))<<13)|0;c=((o=o+Math.imul(T,vt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(j,ft),i=(i=Math.imul(j,ht))+Math.imul(F,ft)|0,o=Math.imul(F,ht);var Tt=(c+(n=n+Math.imul(B,pt)|0)|0)+((8191&(i=(i=i+Math.imul(B,vt)|0)+Math.imul(L,pt)|0))<<13)|0;c=((o=o+Math.imul(L,vt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863;var Rt=(c+(n=Math.imul(j,pt))|0)+((8191&(i=(i=Math.imul(j,vt))+Math.imul(F,pt)|0))<<13)|0;return c=((o=Math.imul(F,vt))+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,u[0]=mt,u[1]=gt,u[2]=yt,u[3]=bt,u[4]=wt,u[5]=_t,u[6]=xt,u[7]=Et,u[8]=At,u[9]=Mt,u[10]=kt,u[11]=St,u[12]=It,u[13]=Pt,u[14]=Nt,u[15]=Ct,u[16]=Ot,u[17]=Tt,u[18]=Rt,0!==c&&(u[19]=c,r.length++),r};function g(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var s=67108863&n,u=Math.min(o,e.length-1),c=Math.max(0,o-t.length+1);c<=u;c++){var l=o-c,f=(0|t.words[l])*(0|e.words[c]),h=67108863&f;s=67108863&(h=h+s|0),i+=(a=(a=a+(f/67108864|0)|0)+(h>>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function y(t,e,r){return g(t,e,r)}function b(t,e){this.x=t,this.y=e}Math.imul||(m=v),o.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?m(this,t,e):r<63?v(this,t,e):r<1024?g(this,t,e):y(this,t,e)},b.prototype.makeRBT=function(t){for(var e=new Array(t),r=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},b.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},b.prototype.permute=function(t,e,r,n,i,o){for(var a=0;a<o;a++)n[a]=e[t[a]],i[a]=r[t[a]]},b.prototype.transform=function(t,e,r,n,i,o){this.permute(o,t,e,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),l=0;l<i;l+=s)for(var f=u,h=c,d=0;d<a;d++){var p=r[l+d],v=n[l+d],m=r[l+d+a],g=n[l+d+a],y=f*m-h*g;g=f*g+h*m,m=y,r[l+d]=p+m,n[l+d]=v+g,r[l+d+a]=p-m,n[l+d+a]=v-g,d!==s&&(y=u*f-c*h,h=u*h+c*f,f=y)}},b.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},b.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},b.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},b.prototype.convert13b=function(t,e,r,i){for(var o=0,a=0;a<e;a++)o+=0|t[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<i;++a)r[a]=0;n(0===o),n(0===(-8192&o))},b.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},b.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),u=new Array(n),c=new Array(n),l=new Array(n),f=new Array(n),h=r.words;h.length=n,this.convert13b(t.words,t.length,a,n),this.convert13b(e.words,e.length,c,n),this.transform(a,o,s,u,n,i),this.transform(c,o,l,f,n,i);for(var d=0;d<n;d++){var p=s[d]*l[d]-u[d]*f[d];u[d]=s[d]*f[d]+u[d]*l[d],s[d]=p}return this.conjugate(s,u,n),this.transform(s,u,h,o,n,i),this.conjugate(h,o,n),this.normalize13b(h,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r._strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),y(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){var e=t<0;e&&(t=-t),n("number"===typeof t),n(t<67108864);for(var r=0,i=0;i<this.length;i++){var o=(0|this.words[i])*t,a=(67108863&o)+(67108863&r);r>>=26,r+=o/67108864|0,r+=a>>>26,this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),e?this.ineg():this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=t.words[n]>>>i&1}return e}(t);if(0===e.length)return new o(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(t){n("number"===typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&o,u=(0|this.words[e])-s<<r;this.words[e]=u|a,a=s>>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this._strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,r){var i;n("number"===typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<<o,u=r;if(i-=a,i=Math.max(0,i),u){for(var c=0;c<a;c++)u.words[c]=this.words[c];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var l=0;for(c=this.length-1;c>=0&&(0!==l||c>=i);c--){var f=0|this.words[c];this.words[c]=l<<26-o|f>>>o,l=f&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<<e;return!(this.length<=r)&&!!(this.words[r]&i)},o.prototype.imaskn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this._strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"===typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<=t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(n("number"===typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this._strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,r){var i,o,a=t.length+r;this._expand(a);var s=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+s;var u=(0|t.words[i])*e;s=((o-=67108863&u)>>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)s=(o=(0|this.words[i+r])+s)>>26,this.words[i+r]=67108863&o;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,u=n.length-i.length;if("mod"!==e){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var l=n.clone()._ishlnsubmul(i,1,u);0===l.negative&&(n=l,s&&(s.words[u]=1));for(var f=u-1;f>=0;f--){var h=67108864*(0|n.words[i.length+f])+(0|n.words[i.length+f-1]);for(h=Math.min(h/a|0,67108863),n._ishlnsubmul(i,h,f);0!==n.negative;)h--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1);s&&(s.words[f]=h)}return s&&s._strip(),n._strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modrn(t.words[0]))}:this._wordDiv(t,e);var i,a,s},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modrn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=(1<<26)%t,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%t;return e?-i:i},o.prototype.modn=function(t){return this.modrn(t)},o.prototype.idivn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/t|0,r=o%t}return this._strip(),e?this.ineg():this},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),c=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var l=r.clone(),f=e.clone();!e.isZero();){for(var h=0,d=1;0===(e.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(e.iushrn(h);h-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(l),a.isub(f)),i.iushrn(1),a.iushrn(1);for(var p=0,v=1;0===(r.words[0]&v)&&p<26;++p,v<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(f)),s.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(s),a.isub(u)):(r.isub(e),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new o(1),s=new o(0),u=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,l=1;0===(e.words[0]&l)&&c<26;++c,l<<=1);if(c>0)for(e.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var f=0,h=1;0===(r.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(r.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),a.isub(s)):(r.isub(e),s.isub(a))}return(i=0===e.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){n("number"===typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new k(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},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(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var w={k256:null,p224:null,p192:null,p25519:null};function _(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function x(){_.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function E(){_.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){_.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){_.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function S(t){k.call(this,t),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 t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},_.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},_.prototype.split=function(t,e){t.iushrn(this.n,0,e)},_.prototype.imulK=function(t){return t.imul(this.k)},i(x,_),x.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i<n;i++)e.words[i]=t.words[i];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&r,i=10;i<t.length;i++){var a=0|t.words[i];t.words[i-10]=(a&r)<<4|o>>>22,o=a}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},x.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(E,_),i(A,_),i(M,_),M.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(w[t])return w[t];var e;if("k256"===t)e=new x;else if("p224"===t)e=new E;else if("p192"===t)e=new A;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new M}return w[t]=e,e},k.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},k.prototype._verify2=function(t,e){n(0===(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},k.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(l(t,t.umod(this.m)._forceRed(this)),t)},k.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},k.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},k.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},k.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},k.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},k.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},k.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},k.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},k.prototype.isqr=function(t){return this.imul(t,t.clone())},k.prototype.sqr=function(t){return this.mul(t,t)},k.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2===1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var f=this.pow(l,i),h=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=a;0!==d.cmp(s);){for(var v=d,m=0;0!==v.cmp(s);m++)v=v.redSqr();n(m<p);var g=this.pow(f,new o(1).iushln(p-m-1));h=h.redMul(g),f=g.redSqr(),d=d.redMul(f),p=m}return h},k.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},k.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this)
2;if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],a=0,s=0,u=e.bitLength()%26;for(0===u&&(u=26),n=e.length-1;n>=0;n--){for(var c=e.words[n],l=u-1;l>=0;l--){var f=c>>l&1;i!==r[0]&&(i=this.sqr(i)),0!==f||0!==a?(a<<=1,a|=f,(4===++s||0===n&&0===l)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}u=26}return i},k.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},k.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new S(t)},i(S,k),S.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},S.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},S.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},S.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},S.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},52641:function(t,e,r){"use strict";r.d(e,{O$:function(){return P}});var n=r(15671),i=r(43144),o=r(89305),a=r.n(o),s=!1,u=!1,c={debug:1,default:2,info:2,warning:3,error:4,off:5},l=c.default,f=null;var h,d,p=function(){try{var t=[];if(["NFD","NFC","NFKD","NFKC"].forEach((function(e){try{if("test"!=="test".normalize(e))throw new Error("bad normalize")}catch(r){t.push(e)}})),t.length)throw new Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(e){return e.message}return null}();!function(t){t.DEBUG="DEBUG",t.INFO="INFO",t.WARNING="WARNING",t.ERROR="ERROR",t.OFF="OFF"}(h||(h={})),function(t){t.UNKNOWN_ERROR="UNKNOWN_ERROR",t.NOT_IMPLEMENTED="NOT_IMPLEMENTED",t.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",t.NETWORK_ERROR="NETWORK_ERROR",t.SERVER_ERROR="SERVER_ERROR",t.TIMEOUT="TIMEOUT",t.BUFFER_OVERRUN="BUFFER_OVERRUN",t.NUMERIC_FAULT="NUMERIC_FAULT",t.MISSING_NEW="MISSING_NEW",t.INVALID_ARGUMENT="INVALID_ARGUMENT",t.MISSING_ARGUMENT="MISSING_ARGUMENT",t.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",t.CALL_EXCEPTION="CALL_EXCEPTION",t.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",t.NONCE_EXPIRED="NONCE_EXPIRED",t.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",t.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",t.TRANSACTION_REPLACED="TRANSACTION_REPLACED",t.ACTION_REJECTED="ACTION_REJECTED"}(d||(d={}));var v="0123456789abcdef",m=function(){function t(e){(0,n.Z)(this,t),Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}return(0,i.Z)(t,[{key:"_log",value:function(t,e){var r=t.toLowerCase();null==c[r]&&this.throwArgumentError("invalid log level name","logLevel",t),l>c[r]||console.log.apply(console,e)}},{key:"debug",value:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];this._log(t.levels.DEBUG,r)}},{key:"info",value:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];this._log(t.levels.INFO,r)}},{key:"warn",value:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];this._log(t.levels.WARNING,r)}},{key:"makeError",value:function(e,r,n){if(u)return this.makeError("censored error",r,{});r||(r=t.errors.UNKNOWN_ERROR),n||(n={});var i=[];Object.keys(n).forEach((function(t){var e=n[t];try{if(e instanceof Uint8Array){for(var r="",o=0;o<e.length;o++)r+=v[e[o]>>4],r+=v[15&e[o]];i.push(t+"=Uint8Array(0x"+r+")")}else i.push(t+"="+JSON.stringify(e))}catch(c){i.push(t+"="+JSON.stringify(n[t].toString()))}})),i.push("code=".concat(r)),i.push("version=".concat(this.version));var o=e,a="";switch(r){case d.NUMERIC_FAULT:a="NUMERIC_FAULT";var s=e;switch(s){case"overflow":case"underflow":case"division-by-zero":a+="-"+s;break;case"negative-power":case"negative-width":a+="-unsupported";break;case"unbound-bitwise-result":a+="-unbound-result"}break;case d.CALL_EXCEPTION:case d.INSUFFICIENT_FUNDS:case d.MISSING_NEW:case d.NONCE_EXPIRED:case d.REPLACEMENT_UNDERPRICED:case d.TRANSACTION_REPLACED:case d.UNPREDICTABLE_GAS_LIMIT:a=r}a&&(e+=" [ See: https://links.ethers.org/v5-errors-"+a+" ]"),i.length&&(e+=" ("+i.join(", ")+")");var c=new Error(e);
2return c.reason=o,c.code=r,Object.keys(n).forEach((function(t){c[t]=n[t]})),c}},{key:"throwError",value:function(t,e,r){throw this.makeError(t,e,r)}},{key:"throwArgumentError",value:function(e,r,n){return this.throwError(e,t.errors.INVALID_ARGUMENT,{argument:r,value:n})}},{key:"assert",value:function(t,e,r,n){t||this.throwError(e,r,n)}},{key:"assertArgument",value:function(t,e,r,n){t||this.throwArgumentError(e,r,n)}},{key:"checkNormalize",value:function(e){null==e&&(e="platform missing String.prototype.normalize"),p&&this.throwError("platform missing String.prototype.normalize",t.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:p})}},{key:"checkSafeUint53",value:function(e,r){"number"===typeof e&&(null==r&&(r="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(r,t.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(r,t.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}},{key:"checkArgumentCount",value:function(e,r,n){n=n?": "+n:"",e<r&&this.throwError("missing argument"+n,t.errors.MISSING_ARGUMENT,{count:e,expectedCount:r}),e>r&&this.throwError("too many arguments"+n,t.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:r})}},{key:"checkNew",value:function(e,r){e!==Object&&null!=e||this.throwError("missing new",t.errors.MISSING_NEW,{name:r.name})}},{key:"checkAbstract",value:function(e,r){e===r?this.throwError("cannot instantiate abstract class "+JSON.stringify(r.name)+" directly; use a sub-class",t.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):e!==Object&&null!=e||this.throwError("missing new",t.errors.MISSING_NEW,{name:r.name})}}],[{key:"globalLogger",value:function(){return f||(f=new t("logger/5.7.0")),f}},{key:"setCensorship",value:function(e,r){if(!e&&r&&this.globalLogger().throwError("cannot permanently disable censorship",t.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),s){if(!e)return;this.globalLogger().throwError("error censorship permanent",t.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}u=!!e,s=!!r}},{key:"setLogLevel",value:function(e){var r=c[e.toLowerCase()];null!=r?l=r:t.globalLogger().warn("invalid log level - "+e)}},{key:"from",value:function(e){return new t(e)}}]),t}();m.errors=d,m.levels=h;var g=new m("bytes/5.7.0");function y(t){return!!t.toHexString}function b(t){return"number"===typeof t&&t==t&&t%1===0}function w(t){if(null==t)return!1;if(t.constructor===Uint8Array)return!0;if("string"===typeof t)return!1;if(!b(t.length)||t.length<0)return!1;for(var e=0;e<t.length;e++){var r=t[e];if(!b(r)||r<0||r>=256)return!1}return!0}function _(t,e){return!("string"!==typeof t||!t.match(/^0x[0-9A-Fa-f]*$/))&&(!e||t.length===2+2*e)}var x="0123456789abcdef";function E(t,e){if(e||(e={}),"number"===typeof t){g.checkSafeUint53(t,"invalid hexlify value");for(var r="";t;)r=x[15&t]+r,t=Math.floor(t/16);return r.length?(r.length%2&&(r="0"+r),"0x"+r):"0x00"}if("bigint"===typeof t)return(t=t.toString(16)).length%2?"0x0"+t:"0x"+t;if(e.allowMissingPrefix&&"string"===typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),y(t))return t.toHexString();if(_(t))return t.length%2&&("left"===e.hexPad?t="0x0"+t.substring(2):"right"===e.hexPad?t+="0":g.throwArgumentError("hex data is odd-length","value",t)),t.toLowerCase();if(w(t)){for(var n="0x",i=0;i<t.length;i++){var o=t[i];n+=x[(240&o)>>4]+x[15&o]}return n}return g.throwArgumentError("invalid hexlify value","value",t)}var A=a().BN,M=new m("bignumber/5.5.0"),k={},S=9007199254740991;var I=!1,P=function(){function t(e,r){(0,n.Z)(this,t),M.checkNew(this instanceof t?this.constructor:void 0,t),e!==k&&M.throwError("cannot call constructor directly; use BigNumber.from",m.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=r,this._isBigNumber=!0,Object.freeze(this)}return(0,i.Z)(t,[{key:"fromTwos",value:function(t){return C(O(this).fromTwos(t))}},{key:"toTwos",value:function(t){return C(O(this).toTwos(t))}},{key:"abs",value:function(){return"-"===this._hex[0]?t.from(this._hex.substring(1)):this}},{key:"add",value:function(t){return C(O(this).add(O(t)))}},{key:"sub",value:function(t){return C(O(this).sub(O(t)))}},{key:"div",value:function(e){return t.from(e).isZero()&&T("division by zero","div"),C(O(this).div(O(e)))}},{key:"mul",value:function(t){return C(O(this).mul(O(t)))}},{key:"mod",value:function(t){var e=O(t);return e.isNeg()&&T("cannot modulo negative values","mod"),C(O(this).umod(e))}},{key:"pow",value:function(t){var e=O(t);return e.isNeg()&&T("cannot raise to negative values","pow"),C(O(this).pow(e))}},{key:"and",value:function(t){var e=O(t);return(this.isNegative()||e.isNeg())&&T("cannot 'and' negative values","and"),C(O(this).and(e))}},{key:"or",value:function(t){var e=O(t);return(this.isNegative()||e.isNeg())&&T("cannot 'or' negative values","or"),C(O(this).or(e))}},{key:"xor",value:function(t){var e=O(t);return(this.isNegative()||e.isNeg())&&T("cannot 'xor' negative values","xor"),C(O(this).xor(e))}},{key:"mask",value:function(t){return(this.isNegative()||t<0)&&T("cannot mask negative values","mask"),C(O(this).maskn(t))}},{key:"shl",value:function(t){return(this.isNegative()||t<0)&&T("cannot shift negative values","shl"),C(O(this).shln(t))}},{key:"shr",value:function(t){return(this.isNegative()||t<0)&&T("cannot shift negative values","shr"),C(O(this).shrn(t))}},{key:"eq",value:function(t){return O(this).eq(O(t))}},{key:"lt",value:function(t){return O(this).lt(O(t))}},{key:"lte",value:function(t){return O(this).lte(O(t))}},{key:"gt",value:function(t){return O(this).gt(O(t))}},{key:"gte",value:function(t){return O(this).gte(O(t))}},{key:"isNegative",value:function(){return"-"===this._hex[0]}},{key:"isZero",value:function(){return O(this).isZero()}},{key:"toNumber",value:function(){try{return O(this).toNumber()}catch(t){T("overflow","toNumber",this.toString())}return null}},{key:"toBigInt",value:function(){try{return BigInt(this.toString())}catch(t){}return M.throwError("this platform does not support BigInt",m.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}},{key:"toString",value:function(){return arguments.length>0&&(10===arguments[0]?I||(I=!0,M.warn("BigNumber.toString does not accept any parameters;
2 base-10 is assumed")):16===arguments[0]?M.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",m.errors.UNEXPECTED_ARGUMENT,{}):M.throwError("BigNumber.toString does not accept parameters",m.errors.UNEXPECTED_ARGUMENT,{})),O(this).toString(10)}},{key:"toHexString",value:function(){return this._hex}},{key:"toJSON",value:function(t){return{type:"BigNumber",hex:this.toHexString()}}}],[{key:"from",value:function(e){if(e instanceof t)return e;if("string"===typeof e)return e.match(/^-?0x[0-9a-f]+$/i)?new t(k,N(e)):e.match(/^-?[0-9]+$/)?new t(k,N(new A(e))):M.throwArgumentError("invalid BigNumber string","value",e);if("number"===typeof e)return e%1&&T("underflow","BigNumber.from",e),(e>=S||e<=-S)&&T("overflow","BigNumber.from",e),t.from(String(e));var r=e;if("bigint"===typeof r)return t.from(r.toString());if(w(r))return t.from(E(r));if(r)if(r.toHexString){var n=r.toHexString();if("string"===typeof n)return t.from(n)}else{var i=r._hex;if(null==i&&"BigNumber"===r.type&&(i=r.hex),"string"===typeof i&&(_(i)||"-"===i[0]&&_(i.substring(1))))return t.from(i)}return M.throwArgumentError("invalid BigNumber value","value",e)}},{key:"isBigNumber",value:function(t){return!(!t||!t._isBigNumber)}}]),t}();function N(t){if("string"!==typeof t)return N(t.toString(16));if("-"===t[0])return"-"===(t=t.substring(1))[0]&&M.throwArgumentError("invalid hex","value",t),"0x00"===(t=N(t))?t:"-"+t;if("0x"!==t.substring(0,2)&&(t="0x"+t),"0x"===t)return"0x00";for(t.length%2&&(t="0x0"+t.substring(2));t.length>4&&"0x00"===t.substring(0,4);)t="0x"+t.substring(4);return t}function C(t){return P.from(N(t))}function O(t){var e=P.from(t).toHexString();return"-"===e[0]?new A("-"+e.substring(3),16):new A(e.substring(2),16)}function T(t,e,r){var n={fault:t,operation:e};return null!=r&&(n.value=r),M.throwError(t,m.errors.NUMERIC_FAULT,n)}},41009:function(t,e,r){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function o(t,e,r){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var a;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:r(68329).Buffer}catch(I){}function s(t,e){var r=t.charCodeAt(e);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+t)}function u(t,e,r){var n=s(t,r);return r-1>=e&&(n|=s(t,r-1)<<4),n}function c(t,e,r,i){for(var o=0,a=0,s=Math.min(t.length,r),u=e;u<s;u++){var c=t.charCodeAt(u)-48;o*=i,a=c>=49?c-49+10:c>=17?c-17+10:c,n(c>=0&&a<i,"Invalid character"),o+=a}return o}function l(t,e){t.words=e.words,t.length=e.length,t.negative=e.negative,t.red=e.red}if(o.isBN=function(t){return t instanceof o||null!==t&&"object"===typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,r){if("number"===typeof t)return this._initNumber(t,e,r);if("object"===typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,r):(this._parseBase(t,e,i),"le"===r&&this._initArray(this.toArray(),e,r)))},o.prototype._initNumber=function(t,e,r){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initArray=function(t,e,r){if(n("number"===typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===r)for(i=t.length-1,o=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>
vendor: 10,404 bytes, line 2
226-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},o.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,a=0;if("be"===r)for(n=t.length-1;n>=e;n-=2)i=u(t,e,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(n=(t.length-e)%2===0?e+1:e;n<t.length;n+=2)i=u(t,e,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},o.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,a=o%n,s=Math.min(o,o-a)+r,u=0,l=r;l<s;l+=n)u=c(t,l,l+n,e),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var f=1;for(u=c(t,l,t.length,e),l=0;l<a;l++)f*=e;this.imuln(f),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this._strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype._move=function(t){l(t,this)},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype._strip=function(){for(;this.length>1&&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")]=f}catch(I){o.prototype.inspect=f}else o.prototype.inspect=f;function f(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var 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"],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],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];o.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<i|o)).toString(16);o=s>>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),r=0!==o||a!==this.length-1?h[6-u.length]+u+r:u+r}for(0!==o&&(r=o.toString(16)+r);r.length%e!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var c=d[t],l=p[t];r="";var f=this.clone();for(f.negative=0;!f.isZero();){var v=f.modrn(l).toString(t);r=(f=f.idivn(l)).isZero()?v+r:h[c-v.length]+v+r}for(this.isZero()&&(r="0"+r);r.length%e!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16,2)},a&&(o.prototype.toBuffer=function(t,e){return this.toArrayLike(a,t,e)}),o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)};function v(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var c=1;c<n;c++){for(var l=u>>>26,f=67108863&u,h=Math.min(c,e.length-1),d=Math.max(0,c-t.length+1);d<=h;d++){var p=c-d|0;l+=(a=(i=0|t.words[p])*(o=0|e.words[d])+f)/67108864|0,f=67108863&a}r.words[c]=0|f,u=0|l}return 0!==u?r.words[c]=0|u:r.length--,r._strip()}o.prototype.toArrayLike=function(t,e,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,o);return this["_toArrayLike"+("le"===e?"LE":"BE")](a,i),a},o.prototype._toArrayLikeLE=function(t,e){for(var r=0,n=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|n;t[r++]=255&a,r<t.length&&(t[r++]=a>>8&255),r<t.length&&(t[r++]=a>>16&255),6===o?(r<t.length&&(t[r++]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r<t.length)for(t[r++]=n;r<t.length;)t[r++]=0},o.prototype._toArrayLikeBE=function(t,e){for(var r=t.length-1,n=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|n;t[r--]=255&a,r>=0&&(t[r--]=a>>8&255),r>=0&&(t[r--]=a>>16&255),6===o?(r>=0&&(t[r--]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r>=0)for(t[r--]=n;r>=0;)t[r--]=0},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0===(8191&e)&&(r+=13,e>>>=13),0===(127&e)&&(r+=7,e>>>=7),0===(15&e)&&(r+=4,e>>>=4),0===(3&e)&&(r+=2,e>>>=2),0===(1&e)&&r++,r},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this._strip()},o.prototype.ior=function(t){return n(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this._strip()},o.prototype.iand=function(t){return n(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this._strip()},o.prototype.ixor=function(t){return n(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"===typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<i:this.words[r]&~(1<<i),this._strip()},o.prototype.iadd=function(t){var e,r,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,a=0;a<n.length;a++)o=(e=(0|r.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&e;for(;0!==o&&a<r.length;a++)o=(e=(0|r.words[a])+o)>>26,this.words[a]=67108863&e;if(0===o&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var m=function(t,e,r){var n,i,o,a=t.words,s=e.words,u=r.words,c=0,l=0|a[0],f=8191&l,h=l>>>13,d=0|a[1],p=8191&d,v=d>>>13,m=0|a[2],g=8191&m,y=m>>>13,b=0|a[3],w=8191&b,_=b>>>13,x=0|a[4],E=8191&x,A=x>>>13,M=0|a[5],k=8191&M,S=M>>>13,I=0|a[6],P=8191&I,N=I>>>13,C=0|a[7],O=8191&C,T=C>>>13,R=0|a[8],B=8191&R,L=R>>>13,Z=0|a[9],j=8191&Z,F=Z>>>13,U=0|s[0],D=8191&U,H=U>>>13,z=0|s[1],$=8191&z,q=z>>>13,G=0|s[2],W=8191&G,V=G>>>13,K=0|s[3],Y=8191&K,X=K>>>13,J=0|s[4],Q=8191&J,tt=J>>>13,et=0|s[5],rt=8191&et,nt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>
vendor: 7,122 bytes, line 2
213,st=0|s[7],ut=8191&st,ct=st>>>13,lt=0|s[8],ft=8191&lt,ht=lt>>>13,dt=0|s[9],pt=8191&dt,vt=dt>>>13;r.negative=t.negative^e.negative,r.length=19;var mt=(c+(n=Math.imul(f,D))|0)+((8191&(i=(i=Math.imul(f,H))+Math.imul(h,D)|0))<<13)|0;c=((o=Math.imul(h,H))+(i>>>13)|0)+(mt>>>26)|0,mt&=67108863,n=Math.imul(p,D),i=(i=Math.imul(p,H))+Math.imul(v,D)|0,o=Math.imul(v,H);var gt=(c+(n=n+Math.imul(f,$)|0)|0)+((8191&(i=(i=i+Math.imul(f,q)|0)+Math.imul(h,$)|0))<<13)|0;c=((o=o+Math.imul(h,q)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(g,D),i=(i=Math.imul(g,H))+Math.imul(y,D)|0,o=Math.imul(y,H),n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,q)|0)+Math.imul(v,$)|0,o=o+Math.imul(v,q)|0;var yt=(c+(n=n+Math.imul(f,W)|0)|0)+((8191&(i=(i=i+Math.imul(f,V)|0)+Math.imul(h,W)|0))<<13)|0;c=((o=o+Math.imul(h,V)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(w,D),i=(i=Math.imul(w,H))+Math.imul(_,D)|0,o=Math.imul(_,H),n=n+Math.imul(g,$)|0,i=(i=i+Math.imul(g,q)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,q)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(v,W)|0,o=o+Math.imul(v,V)|0;var bt=(c+(n=n+Math.imul(f,Y)|0)|0)+((8191&(i=(i=i+Math.imul(f,X)|0)+Math.imul(h,Y)|0))<<13)|0;c=((o=o+Math.imul(h,X)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(E,D),i=(i=Math.imul(E,H))+Math.imul(A,D)|0,o=Math.imul(A,H),n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,q)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,q)|0,n=n+Math.imul(g,W)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(y,W)|0,o=o+Math.imul(y,V)|0,n=n+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(v,Y)|0,o=o+Math.imul(v,X)|0;var wt=(c+(n=n+Math.imul(f,Q)|0)|0)+((8191&(i=(i=i+Math.imul(f,tt)|0)+Math.imul(h,Q)|0))<<13)|0;c=((o=o+Math.imul(h,tt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(k,D),i=(i=Math.imul(k,H))+Math.imul(S,D)|0,o=Math.imul(S,H),n=n+Math.imul(E,$)|0,i=(i=i+Math.imul(E,q)|0)+Math.imul(A,$)|0,o=o+Math.imul(A,q)|0,n=n+Math.imul(w,W)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(_,W)|0,o=o+Math.imul(_,V)|0,n=n+Math.imul(g,Y)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(y,Y)|0,o=o+Math.imul(y,X)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,tt)|0;var _t=(c+(n=n+Math.imul(f,rt)|0)|0)+((8191&(i=(i=i+Math.imul(f,nt)|0)+Math.imul(h,rt)|0))<<13)|0;c=((o=o+Math.imul(h,nt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(P,D),i=(i=Math.imul(P,H))+Math.imul(N,D)|0,o=Math.imul(N,H),n=n+Math.imul(k,$)|0,i=(i=i+Math.imul(k,q)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,q)|0,n=n+Math.imul(E,W)|0,i=(i=i+Math.imul(E,V)|0)+Math.imul(A,W)|0,o=o+Math.imul(A,V)|0,n=n+Math.imul(w,Y)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(_,Y)|0,o=o+Math.imul(_,X)|0,n=n+Math.imul(g,Q)|0,i=(i=i+Math.imul(g,tt)|0)+Math.imul(y,Q)|0,o=o+Math.imul(y,tt)|0,n=n+Math.imul(p,rt)|0,i=(i=i+Math.imul(p,nt)|0)+Math.imul(v,rt)|0,o=o+Math.imul(v,nt)|0;var xt=(c+(n=n+Math.imul(f,ot)|0)|0)+((8191&(i=(i=i+Math.imul(f,at)|0)+Math.imul(h,ot)|0))<<13)|0;c=((o=o+Math.imul(h,at)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(O,D),i=(i=Math.imul(O,H))+Math.imul(T,D)|0,o=Math.imul(T,H),n=n+Math.imul(P,$)|0,i=(i=i+Math.imul(P,q)|0)+Math.imul(N,$)|0,o=o+Math.imul(N,q)|0,n=n+Math.imul(k,W)|0,i=(i=i+Math.imul(k,V)|0)+Math.imul(S,W)|0,o=o+Math.imul(S,V)|0,n=n+Math.imul(E,Y)|0,i=(i=i+Math.imul(E,X)|0)+Math.imul(A,Y)|0,o=o+Math.imul(A,X)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,tt)|0,n=n+Math.imul(g,rt)|0,i=(i=i+Math.imul(g,nt)|0)+Math.imul(y,rt)|0,o=o+Math.imul(y,nt)|0,n=n+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(v,ot)|0,o=o+Math.imul(v,at)|0;var Et=(c+(n=n+Math.imul(f,ut)|0)|0)+((8191&(i=(i=i+Math.imul(f,ct)|0)+Math.imul(h,ut)|0))<<13)|0;c=((o=o+Math.imul(h,ct)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(B,D),i=(i=Math.imul(B,H))+Math.imul(L,D)|0,o=Math.imul(L,H),n=n+Math.imul(O,$)|0,i=(i=i+Math.imul(O,q)|0)+Math.imul(T,$)|0,o=o+Math.imul(T,q)|0,n=n+Math.imul(P,W)|0,i=(i=i+Math.imul(P,V)|0)+Math.imul(N,W)|0,o=o+Math.imul(N,V)|0,n=n+Math.imul(k,Y)|0,i=(i=i+Math.imul(k,X)|0)+Math.imul(S,Y)|0,o=o+Math.imul(S,X)|0,n=n+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,tt)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,tt)|0,n=n+Math.imul(w,rt)|0,i=(i=i+Math.imul(w,nt)|0)+Math.imul(_,rt)|0,o=o+Math.imul(_,nt)|0,n=n+Math.imul(g,ot)|0,i=(i=i+Math.imul(g,at)|0)+Math.imul(y,ot)|0,o=o+Math.imul(y,at)|0,n=n+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,ct)|0)+Math.imul(v,ut)|0,o=o+Math.imul(v,ct)|0;var At=(c+(n=n+Math.imul(f,ft)|0)|0)+((8191&(i=(i=i+Math.imul(f,ht)|0)+Math.imul(h,ft)|0))<<13)|0;c=((o=o+Math.imul(h,ht)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(j,D),i=(i=Math.imul(j,H))+Math.imul(F,D)|0,o=Math.imul(F,H),n=n+Math.imul(B,$)|0,i=(i=i+Math.imul(B,q)|0)+Math.imul(L,$)|0,o=o+Math.imul(L,q)|0,n=n+Math.imul(O,W)|0,i=(i=i+Math.imul(O,V)|0)+Math.imul(T,W)|0,o=o+Math.imul(T,V)|0,n=n+Math.imul(P,Y)|0,i=(i=i+Math.imul(P,X)|0)+Math.imul(N,Y)|0,o=o+Math.imul(N,X)|0,n=n+Math.imul(k,Q)|0,i=(i=i+Math.imul(k,tt)|0)+Math.imul(S,Q)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(E,rt)|0,i=(i=i+Math.imul(E,nt)|0)+Math.imul(A,rt)|0,o=o+Math.imul(A,nt)|0,n=n+Math.imul(w,ot)|0,i=(i=i+Math.imul(w,at)|0)+Math.imul(_,ot)|0,o=o+Math.imul(_,at)|0,n=n+Math.imul(g,ut)|0,i=(i=i+Math.imul(g,ct)|0)+Math.imul(y,ut)|0,o=o+Math.imul(y,ct)|0,n=n+Math.imul(p,ft)|0,i=(i=i+Math.imul(p,ht)|0)+Math.imul(v,ft)|0,o=o+Math.imul(v,ht)|0;var Mt=(c+(n=n+Math.imul(f,pt)|0)|0)+((8191&(i=(i=i+Math.imul(f,vt)|0)+Math.imul(h,pt)|0))<<13)|0;c=((o=o+Math.imul(h,vt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(j,$),i=(i=Math.imul(j,q))+Math.imul(F,$)|0,o=Math.imul(F,q),n=n+Math.imul(B,W)|0,i=(i=i+Math.imul(B,V)|0)+Math.imul(L,W)|0,o=o+Math.imul(L,V)|0,n=n+Math.imul(O,Y)|0,i=(i=i+Math.imul(O,X)|0)+Math.imul(T,Y)|0,o=o+Math.imul(T,X)|0,n=n+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,tt)|0,n=n+Math.imul(k,rt)|0,i=(i=i+Math.imul(k,nt)|0)+Math.imul(S,rt)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(E,ot)|0,i=(i=i+Math.imul(E,at)|0)+Math.imul(A,ot)|0,o=o+Math.imul(A,at)|0,n=n+Math.imul(w,ut)|0,i=(i=i+Math.imul(w,ct)|0)+Math.imul(_,ut)|0,o=o+Math.imul(_,ct)|0,n=n+Math.imul(g,ft)|0,i=(i=i+Math.imul(g,ht)|0)+Math.imul(y,ft)|0,o=o+Math.imul(y,ht)|0;var kt=(c+(n=n+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,vt)|0)+Math.imul(v,pt)|0))<<13)|0;c=((o=o+Math.imul(v,vt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(j,W),i=(i=Math.imul(j,V))+Math.imul(F,W)|0,o=Math.imul(F,V),n=n+Math.imul(B,Y)|0,i=(i=i+Math.imul(B,X)|0)+Math.imul(L,Y)|0,o=o+Math.imul(L,X)|0,n=n+Math.imul(O,Q)|0,i=(i=i+Math.imul(O,tt)|0)+Math.imul(T,Q)|0,o=o+Math.imul(T,tt)|0,n=n+Math.imul(P,rt)|0,i=(i=i+Math.imul(P,nt)|0)+Math.imul(N,rt)|0,o=o+Math.imul(N,nt)|0,n=n+Math.imul(k,ot)|0,i=(i=i+Math.imul(k,at)|0)+Math.imul(S,ot)|0,o=o+Math.imul(S,at)|0,n=n+Math.imul(E,ut)|0,i=(i=i+Math.imul(E,ct)|0)+Math.imul(A,ut)|0,o=o+Math.imul(A,ct)|0,n=n+Math.imul(w,ft)|0,i=(i=i+Math.imul(w,ht)|0)+Math.imul(_,ft)|0,o=o+Math.imul(_,ht)|0;var St=(c+(n=n+Math.imul(g,pt)|0)|0)+((8191&(i=(i=i+Math.imul(g,vt)|0)+Math.imul(y,pt)|0))<<13)|0;c=((o=o+Math.imul(y,vt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(j,Y),i=(i=Math.imul(j,X))+Math.imul(F,Y)|0,o=Math.imul(F,X
vendor: 36,245 bytes, line 2
2),n=n+Math.imul(B,Q)|0,i=(i=i+Math.imul(B,tt)|0)+Math.imul(L,Q)|0,o=o+Math.imul(L,tt)|0,n=n+Math.imul(O,rt)|0,i=(i=i+Math.imul(O,nt)|0)+Math.imul(T,rt)|0,o=o+Math.imul(T,nt)|0,n=n+Math.imul(P,ot)|0,i=(i=i+Math.imul(P,at)|0)+Math.imul(N,ot)|0,o=o+Math.imul(N,at)|0,n=n+Math.imul(k,ut)|0,i=(i=i+Math.imul(k,ct)|0)+Math.imul(S,ut)|0,o=o+Math.imul(S,ct)|0,n=n+Math.imul(E,ft)|0,i=(i=i+Math.imul(E,ht)|0)+Math.imul(A,ft)|0,o=o+Math.imul(A,ht)|0;var It=(c+(n=n+Math.imul(w,pt)|0)|0)+((8191&(i=(i=i+Math.imul(w,vt)|0)+Math.imul(_,pt)|0))<<13)|0;c=((o=o+Math.imul(_,vt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(j,Q),i=(i=Math.imul(j,tt))+Math.imul(F,Q)|0,o=Math.imul(F,tt),n=n+Math.imul(B,rt)|0,i=(i=i+Math.imul(B,nt)|0)+Math.imul(L,rt)|0,o=o+Math.imul(L,nt)|0,n=n+Math.imul(O,ot)|0,i=(i=i+Math.imul(O,at)|0)+Math.imul(T,ot)|0,o=o+Math.imul(T,at)|0,n=n+Math.imul(P,ut)|0,i=(i=i+Math.imul(P,ct)|0)+Math.imul(N,ut)|0,o=o+Math.imul(N,ct)|0,n=n+Math.imul(k,ft)|0,i=(i=i+Math.imul(k,ht)|0)+Math.imul(S,ft)|0,o=o+Math.imul(S,ht)|0;var Pt=(c+(n=n+Math.imul(E,pt)|0)|0)+((8191&(i=(i=i+Math.imul(E,vt)|0)+Math.imul(A,pt)|0))<<13)|0;c=((o=o+Math.imul(A,vt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(j,rt),i=(i=Math.imul(j,nt))+Math.imul(F,rt)|0,o=Math.imul(F,nt),n=n+Math.imul(B,ot)|0,i=(i=i+Math.imul(B,at)|0)+Math.imul(L,ot)|0,o=o+Math.imul(L,at)|0,n=n+Math.imul(O,ut)|0,i=(i=i+Math.imul(O,ct)|0)+Math.imul(T,ut)|0,o=o+Math.imul(T,ct)|0,n=n+Math.imul(P,ft)|0,i=(i=i+Math.imul(P,ht)|0)+Math.imul(N,ft)|0,o=o+Math.imul(N,ht)|0;var Nt=(c+(n=n+Math.imul(k,pt)|0)|0)+((8191&(i=(i=i+Math.imul(k,vt)|0)+Math.imul(S,pt)|0))<<13)|0;c=((o=o+Math.imul(S,vt)|0)+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,n=Math.imul(j,ot),i=(i=Math.imul(j,at))+Math.imul(F,ot)|0,o=Math.imul(F,at),n=n+Math.imul(B,ut)|0,i=(i=i+Math.imul(B,ct)|0)+Math.imul(L,ut)|0,o=o+Math.imul(L,ct)|0,n=n+Math.imul(O,ft)|0,i=(i=i+Math.imul(O,ht)|0)+Math.imul(T,ft)|0,o=o+Math.imul(T,ht)|0;var Ct=(c+(n=n+Math.imul(P,pt)|0)|0)+((8191&(i=(i=i+Math.imul(P,vt)|0)+Math.imul(N,pt)|0))<<13)|0;c=((o=o+Math.imul(N,vt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(j,ut),i=(i=Math.imul(j,ct))+Math.imul(F,ut)|0,o=Math.imul(F,ct),n=n+Math.imul(B,ft)|0,i=(i=i+Math.imul(B,ht)|0)+Math.imul(L,ft)|0,o=o+Math.imul(L,ht)|0;var Ot=(c+(n=n+Math.imul(O,pt)|0)|0)+((8191&(i=(i=i+Math.imul(O,vt)|0)+Math.imul(T,pt)|0))<<13)|0;c=((o=o+Math.imul(T,vt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(j,ft),i=(i=Math.imul(j,ht))+Math.imul(F,ft)|0,o=Math.imul(F,ht);var Tt=(c+(n=n+Math.imul(B,pt)|0)|0)+((8191&(i=(i=i+Math.imul(B,vt)|0)+Math.imul(L,pt)|0))<<13)|0;c=((o=o+Math.imul(L,vt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863;var Rt=(c+(n=Math.imul(j,pt))|0)+((8191&(i=(i=Math.imul(j,vt))+Math.imul(F,pt)|0))<<13)|0;return c=((o=Math.imul(F,vt))+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,u[0]=mt,u[1]=gt,u[2]=yt,u[3]=bt,u[4]=wt,u[5]=_t,u[6]=xt,u[7]=Et,u[8]=At,u[9]=Mt,u[10]=kt,u[11]=St,u[12]=It,u[13]=Pt,u[14]=Nt,u[15]=Ct,u[16]=Ot,u[17]=Tt,u[18]=Rt,0!==c&&(u[19]=c,r.length++),r};function g(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var s=67108863&n,u=Math.min(o,e.length-1),c=Math.max(0,o-t.length+1);c<=u;c++){var l=o-c,f=(0|t.words[l])*(0|e.words[c]),h=67108863&f;s=67108863&(h=h+s|0),i+=(a=(a=a+(f/67108864|0)|0)+(h>>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function y(t,e,r){return g(t,e,r)}function b(t,e){this.x=t,this.y=e}Math.imul||(m=v),o.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?m(this,t,e):r<63?v(this,t,e):r<1024?g(this,t,e):y(this,t,e)},b.prototype.makeRBT=function(t){for(var e=new Array(t),r=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},b.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},b.prototype.permute=function(t,e,r,n,i,o){for(var a=0;a<o;a++)n[a]=e[t[a]],i[a]=r[t[a]]},b.prototype.transform=function(t,e,r,n,i,o){this.permute(o,t,e,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),l=0;l<i;l+=s)for(var f=u,h=c,d=0;d<a;d++){var p=r[l+d],v=n[l+d],m=r[l+d+a],g=n[l+d+a],y=f*m-h*g;g=f*g+h*m,m=y,r[l+d]=p+m,n[l+d]=v+g,r[l+d+a]=p-m,n[l+d+a]=v-g,d!==s&&(y=u*f-c*h,h=u*h+c*f,f=y)}},b.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},b.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},b.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},b.prototype.convert13b=function(t,e,r,i){for(var o=0,a=0;a<e;a++)o+=0|t[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<i;++a)r[a]=0;n(0===o),n(0===(-8192&o))},b.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},b.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),u=new Array(n),c=new Array(n),l=new Array(n),f=new Array(n),h=r.words;h.length=n,this.convert13b(t.words,t.length,a,n),this.convert13b(e.words,e.length,c,n),this.transform(a,o,s,u,n,i),this.transform(c,o,l,f,n,i);for(var d=0;d<n;d++){var p=s[d]*l[d]-u[d]*f[d];u[d]=s[d]*f[d]+u[d]*l[d],s[d]=p}return this.conjugate(s,u,n),this.transform(s,u,h,o,n,i),this.conjugate(h,o,n),this.normalize13b(h,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r._strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),y(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){var e=t<0;e&&(t=-t),n("number"===typeof t),n(t<67108864);for(var r=0,i=0;i<this.length;i++){var o=(0|this.words[i])*t,a=(67108863&o)+(67108863&r);r>>=26,r+=o/67108864|0,r+=a>>>26,this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),e?this.ineg():this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=t.words[n]>>>i&1}return e}(t);if(0===e.length)return new o(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(t){n("number"===typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&o,u=(0|this.words[e])-s<<r;this.words[e]=u|a,a=s>>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this._strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,r){var i;n("number"===typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<<o,u=r;if(i-=a,i=Math.max(0,i),u){for(var c=0;c<a;c++)u.words[c]=this.words[c];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var l=0;for(c=this.length-1;c>=0&&(0!==l||c>=i);c--){var f=0|this.words[c];this.words[c]=l<<26-o|f>>>o,l=f&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<<e;return!(this.length<=r)&&!!(this.words[r]&i)},o.prototype.imaskn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this._strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"===typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<=t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(n("number"===typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this._strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,r){var i,o,a=t.length+r;this._expand(a);var s=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+s;var u=(0|t.words[i])*e;s=((o-=67108863&u)>>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)s=(o=(0|this.words[i+r])+s)>>26,this.words[i+r]=67108863&o;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,u=n.length-i.length;if("mod"!==e){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var l=n.clone()._ishlnsubmul(i,1,u);0===l.negative&&(n=l,s&&(s.words[u]=1));for(var f=u-1;f>=0;f--){var h=67108864*(0|n.words[i.length+f])+(0|n.words[i.length+f-1]);for(h=Math.min(h/a|0,67108863),n._ishlnsubmul(i,h,f);0!==n.negative;)h--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1);s&&(s.words[f]=h)}return s&&s._strip(),n._strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modrn(t.words[0]))}:this._wordDiv(t,e);var i,a,s},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modrn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=(1<<26)%t,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%t;return e?-i:i},o.prototype.modn=function(t){return this.modrn(t)},o.prototype.idivn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/t|0,r=o%t}return this._strip(),e?this.ineg():this},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),c=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var l=r.clone(),f=e.clone();!e.isZero();){for(var h=0,d=1;0===(e.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(e.iushrn(h);h-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(l),a.isub(f)),i.iushrn(1),a.iushrn(1);for(var p=0,v=1;0===(r.words[0]&v)&&p<26;++p,v<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(f)),s.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(s),a.isub(u)):(r.isub(e),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new o(1),s=new o(0),u=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,l=1;0===(e.words[0]&l)&&c<26;++c,l<<=1);if(c>0)for(e.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var f=0,h=1;0===(r.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(r.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),a.isub(s)):(r.isub(e),s.isub(a))}return(i=0===e.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){n("number"===typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new k(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},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(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var w={k256:null,p224:null,p192:null,p25519:null};function _(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function x(){_.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function E(){_.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){_.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){_.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function S(t){k.call(this,t),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 t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},_.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},_.prototype.split=function(t,e){t.iushrn(this.n,0,e)},_.prototype.imulK=function(t){return t.imul(this.k)},i(x,_),x.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i<n;i++)e.words[i]=t.words[i];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&r,i=10;i<t.length;i++){var a=0|t.words[i];t.words[i-10]=(a&r)<<4|o>>>22,o=a}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},x.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(E,_),i(A,_),i(M,_),M.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(w[t])return w[t];var e;if("k256"===t)e=new x;else if("p224"===t)e=new E;else if("p192"===t)e=new A;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new M}return w[t]=e,e},k.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},k.prototype._verify2=function(t,e){n(0===(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},k.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(l(t,t.umod(this.m)._forceRed(this)),t)},k.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},k.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},k.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},k.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},k.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},k.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},k.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},k.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},k.prototype.isqr=function(t){return this.imul(t,t.clone())},k.prototype.sqr=function(t){return this.mul(t,t)},k.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2===1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var f=this.pow(l,i),h=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=a;0!==d.cmp(s);){for(var v=d,m=0;0!==v.cmp(s);m++)v=v.redSqr();n(m<p);var g=this.pow(f,new o(1).iushln(p-m-1));h=h.redMul(g),f=g.redSqr(),d=d.redMul(f),p=m}return h},k.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},k.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],a=0,s=0,u=e.bitLength()%26;for(0===u&&(u=26),n=e.length-1;n>=0;n--){for(var c=e.words[n],l=u-1;l>=0;l--){var f=c>>l&1;i!==r[0]&&(i=this.sqr(i)),0!==f||0!==a?(a<<=1,a|=f,(4===++s||0===n&&0===l)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}u=26}return i},k.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},k.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new S(t)},i(S,k),S.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},S.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},S.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},S.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},S.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},89305:function(t,e,r){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function o(t,e,r){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var a;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:r(5612).Buffer}catch(M){}function s(t,e){var r=t.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function u(t,e,r){var n=s(t,r);return r-1>=e&&(n|=s(t,r-1)<<4),n}function c(t,e,r,n){for(var i=0,o=Math.min(t.length,r),a=e;a<o;a++){var s=t.charCodeAt(a)-48;i*=n,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(t){return t instanceof o||null!==t&&"object"===typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,r){if("number"===typeof t)return this._initNumber(t,e,r);if("object"===typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,r):(this._parseBase(t,e,i),"le"===r&&this._initArray(this.toArray(),e,r)))},o.prototype._initNumber=function(t,e,r){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initArray=function(t,e,r){if(n("number"===typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===r)for(i=t.length-1,o=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,a=0;if("be"===r)for(n=t.length-1;n>=e;n-=2)i=u(t,e,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(n=(t.length-e)%2===0?e+1:e;n<t.length;n+=2)i=u(t,e,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this.strip()},o.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,a=o%n,s=Math.min(o,o-a)+r,u=0,l=r;l<s;l+=n)u=c(t,l,l+n,e),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var f=1;for(u=c(t,l,t.length,e),l=0;l<a;l++)f*=e;this.imuln(f),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&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?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var l=["","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],h=[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 d(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var c=1;c<n;c++){for(var l=u>>>26,f=67108863&u,h=Math.min(c,e.length-1),d=Math.max(0,c-t.length+1);d<=h;d++){var p=c-d|0;l+=(a=(i=0|t.words[p])*(o=0|e.words[d])+f)/67108864|0,f=67108863&a}r.words[c]=0|f,u=0|l}return 0!==u?r.words[c]=0|u:r.length--,r.strip()}o.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<i|o)).toString(16);r=0!==(o=s>>>24-i&16777215)||a!==this.length-1?l[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%e!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var c=f[t],d=h[t];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var v=p.modn(d).toString(t);r=(p=p.idivn(d)).isZero()?v+r:l[c-v.length]+v+r}for(this.isZero()&&(r="0"+r);r.length%e!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return n("undefined"!==typeof a),this.toArrayLike(a,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===e,c=new t(o),l=this.clone();if(u){for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),c[s]=a;for(;s<o;s++)c[s]=0}else{for(s=0;s<o-i;s++)c[s]=0;for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),c[o-s-1]=a}return c},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0===(8191&e)&&(r+=13,e>>>=13),0===(127&e)&&(r+=7,e>>>=7),0===(15&e)&&(r+=4,e>>>=4),0===(3&e)&&(r+=2,e>>>=2),0===(1&e)&&r++,r},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return n(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return n(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return n(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"===typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e,r,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,a=0;a<n.length;a++)o=(e=(0|r.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&e;for(;0!==o&&a<r.length;a++)o=(e=(0|r.words[a])+o)>>26,this.words[a]=67108863&e;if(0===o&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var p=function(t,e,r){var n,i,o,a=t.words,s=e.words,u=r.words,c=0,l=0|a[0],f=8191&l,h=l>>>13,d=0|a[1],p=8191&d,v=d>>>13,m=0|a[2],g=8191&m,y=m>>>13,b=0|a[3],w=8191&b,_=b>>>13,x=0|a[4],E=8191&x,A=x>>>13,M=0|a[5],k=8191&M,S=M>>>13,I=0|a[6],P=8191&I,N=I>>>13,C=0|a[7],O=8191&C,T=C>>>13,R=0|a[8],B=8191&R,L=R>>>13,Z=0|a[9],j=8191&Z,F=Z>>>13,U=0|s[0],D=8191&U,H=U>>>13,z=0|s[1],$=8191&z,q=z>>>13,G=0|s[2],W=8191&G,V=G>>>13,K=0|s[3],Y=8191&K,X=K>>>13,J=0|s[4],Q=8191&J,tt=J>>>13,et=0|s[5],rt=8191&et,nt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>
vendor: 7,122 bytes, line 2
213,st=0|s[7],ut=8191&st,ct=st>>>13,lt=0|s[8],ft=8191&lt,ht=lt>>>13,dt=0|s[9],pt=8191&dt,vt=dt>>>13;r.negative=t.negative^e.negative,r.length=19;var mt=(c+(n=Math.imul(f,D))|0)+((8191&(i=(i=Math.imul(f,H))+Math.imul(h,D)|0))<<13)|0;c=((o=Math.imul(h,H))+(i>>>13)|0)+(mt>>>26)|0,mt&=67108863,n=Math.imul(p,D),i=(i=Math.imul(p,H))+Math.imul(v,D)|0,o=Math.imul(v,H);var gt=(c+(n=n+Math.imul(f,$)|0)|0)+((8191&(i=(i=i+Math.imul(f,q)|0)+Math.imul(h,$)|0))<<13)|0;c=((o=o+Math.imul(h,q)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(g,D),i=(i=Math.imul(g,H))+Math.imul(y,D)|0,o=Math.imul(y,H),n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,q)|0)+Math.imul(v,$)|0,o=o+Math.imul(v,q)|0;var yt=(c+(n=n+Math.imul(f,W)|0)|0)+((8191&(i=(i=i+Math.imul(f,V)|0)+Math.imul(h,W)|0))<<13)|0;c=((o=o+Math.imul(h,V)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(w,D),i=(i=Math.imul(w,H))+Math.imul(_,D)|0,o=Math.imul(_,H),n=n+Math.imul(g,$)|0,i=(i=i+Math.imul(g,q)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,q)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(v,W)|0,o=o+Math.imul(v,V)|0;var bt=(c+(n=n+Math.imul(f,Y)|0)|0)+((8191&(i=(i=i+Math.imul(f,X)|0)+Math.imul(h,Y)|0))<<13)|0;c=((o=o+Math.imul(h,X)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(E,D),i=(i=Math.imul(E,H))+Math.imul(A,D)|0,o=Math.imul(A,H),n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,q)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,q)|0,n=n+Math.imul(g,W)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(y,W)|0,o=o+Math.imul(y,V)|0,n=n+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(v,Y)|0,o=o+Math.imul(v,X)|0;var wt=(c+(n=n+Math.imul(f,Q)|0)|0)+((8191&(i=(i=i+Math.imul(f,tt)|0)+Math.imul(h,Q)|0))<<13)|0;c=((o=o+Math.imul(h,tt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(k,D),i=(i=Math.imul(k,H))+Math.imul(S,D)|0,o=Math.imul(S,H),n=n+Math.imul(E,$)|0,i=(i=i+Math.imul(E,q)|0)+Math.imul(A,$)|0,o=o+Math.imul(A,q)|0,n=n+Math.imul(w,W)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(_,W)|0,o=o+Math.imul(_,V)|0,n=n+Math.imul(g,Y)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(y,Y)|0,o=o+Math.imul(y,X)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,tt)|0;var _t=(c+(n=n+Math.imul(f,rt)|0)|0)+((8191&(i=(i=i+Math.imul(f,nt)|0)+Math.imul(h,rt)|0))<<13)|0;c=((o=o+Math.imul(h,nt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(P,D),i=(i=Math.imul(P,H))+Math.imul(N,D)|0,o=Math.imul(N,H),n=n+Math.imul(k,$)|0,i=(i=i+Math.imul(k,q)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,q)|0,n=n+Math.imul(E,W)|0,i=(i=i+Math.imul(E,V)|0)+Math.imul(A,W)|0,o=o+Math.imul(A,V)|0,n=n+Math.imul(w,Y)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(_,Y)|0,o=o+Math.imul(_,X)|0,n=n+Math.imul(g,Q)|0,i=(i=i+Math.imul(g,tt)|0)+Math.imul(y,Q)|0,o=o+Math.imul(y,tt)|0,n=n+Math.imul(p,rt)|0,i=(i=i+Math.imul(p,nt)|0)+Math.imul(v,rt)|0,o=o+Math.imul(v,nt)|0;var xt=(c+(n=n+Math.imul(f,ot)|0)|0)+((8191&(i=(i=i+Math.imul(f,at)|0)+Math.imul(h,ot)|0))<<13)|0;c=((o=o+Math.imul(h,at)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(O,D),i=(i=Math.imul(O,H))+Math.imul(T,D)|0,o=Math.imul(T,H),n=n+Math.imul(P,$)|0,i=(i=i+Math.imul(P,q)|0)+Math.imul(N,$)|0,o=o+Math.imul(N,q)|0,n=n+Math.imul(k,W)|0,i=(i=i+Math.imul(k,V)|0)+Math.imul(S,W)|0,o=o+Math.imul(S,V)|0,n=n+Math.imul(E,Y)|0,i=(i=i+Math.imul(E,X)|0)+Math.imul(A,Y)|0,o=o+Math.imul(A,X)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,tt)|0,n=n+Math.imul(g,rt)|0,i=(i=i+Math.imul(g,nt)|0)+Math.imul(y,rt)|0,o=o+Math.imul(y,nt)|0,n=n+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(v,ot)|0,o=o+Math.imul(v,at)|0;var Et=(c+(n=n+Math.imul(f,ut)|0)|0)+((8191&(i=(i=i+Math.imul(f,ct)|0)+Math.imul(h,ut)|0))<<13)|0;c=((o=o+Math.imul(h,ct)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(B,D),i=(i=Math.imul(B,H))+Math.imul(L,D)|0,o=Math.imul(L,H),n=n+Math.imul(O,$)|0,i=(i=i+Math.imul(O,q)|0)+Math.imul(T,$)|0,o=o+Math.imul(T,q)|0,n=n+Math.imul(P,W)|0,i=(i=i+Math.imul(P,V)|0)+Math.imul(N,W)|0,o=o+Math.imul(N,V)|0,n=n+Math.imul(k,Y)|0,i=(i=i+Math.imul(k,X)|0)+Math.imul(S,Y)|0,o=o+Math.imul(S,X)|0,n=n+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,tt)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,tt)|0,n=n+Math.imul(w,rt)|0,i=(i=i+Math.imul(w,nt)|0)+Math.imul(_,rt)|0,o=o+Math.imul(_,nt)|0,n=n+Math.imul(g,ot)|0,i=(i=i+Math.imul(g,at)|0)+Math.imul(y,ot)|0,o=o+Math.imul(y,at)|0,n=n+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,ct)|0)+Math.imul(v,ut)|0,o=o+Math.imul(v,ct)|0;var At=(c+(n=n+Math.imul(f,ft)|0)|0)+((8191&(i=(i=i+Math.imul(f,ht)|0)+Math.imul(h,ft)|0))<<13)|0;c=((o=o+Math.imul(h,ht)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(j,D),i=(i=Math.imul(j,H))+Math.imul(F,D)|0,o=Math.imul(F,H),n=n+Math.imul(B,$)|0,i=(i=i+Math.imul(B,q)|0)+Math.imul(L,$)|0,o=o+Math.imul(L,q)|0,n=n+Math.imul(O,W)|0,i=(i=i+Math.imul(O,V)|0)+Math.imul(T,W)|0,o=o+Math.imul(T,V)|0,n=n+Math.imul(P,Y)|0,i=(i=i+Math.imul(P,X)|0)+Math.imul(N,Y)|0,o=o+Math.imul(N,X)|0,n=n+Math.imul(k,Q)|0,i=(i=i+Math.imul(k,tt)|0)+Math.imul(S,Q)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(E,rt)|0,i=(i=i+Math.imul(E,nt)|0)+Math.imul(A,rt)|0,o=o+Math.imul(A,nt)|0,n=n+Math.imul(w,ot)|0,i=(i=i+Math.imul(w,at)|0)+Math.imul(_,ot)|0,o=o+Math.imul(_,at)|0,n=n+Math.imul(g,ut)|0,i=(i=i+Math.imul(g,ct)|0)+Math.imul(y,ut)|0,o=o+Math.imul(y,ct)|0,n=n+Math.imul(p,ft)|0,i=(i=i+Math.imul(p,ht)|0)+Math.imul(v,ft)|0,o=o+Math.imul(v,ht)|0;var Mt=(c+(n=n+Math.imul(f,pt)|0)|0)+((8191&(i=(i=i+Math.imul(f,vt)|0)+Math.imul(h,pt)|0))<<13)|0;c=((o=o+Math.imul(h,vt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(j,$),i=(i=Math.imul(j,q))+Math.imul(F,$)|0,o=Math.imul(F,q),n=n+Math.imul(B,W)|0,i=(i=i+Math.imul(B,V)|0)+Math.imul(L,W)|0,o=o+Math.imul(L,V)|0,n=n+Math.imul(O,Y)|0,i=(i=i+Math.imul(O,X)|0)+Math.imul(T,Y)|0,o=o+Math.imul(T,X)|0,n=n+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,tt)|0,n=n+Math.imul(k,rt)|0,i=(i=i+Math.imul(k,nt)|0)+Math.imul(S,rt)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(E,ot)|0,i=(i=i+Math.imul(E,at)|0)+Math.imul(A,ot)|0,o=o+Math.imul(A,at)|0,n=n+Math.imul(w,ut)|0,i=(i=i+Math.imul(w,ct)|0)+Math.imul(_,ut)|0,o=o+Math.imul(_,ct)|0,n=n+Math.imul(g,ft)|0,i=(i=i+Math.imul(g,ht)|0)+Math.imul(y,ft)|0,o=o+Math.imul(y,ht)|0;var kt=(c+(n=n+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,vt)|0)+Math.imul(v,pt)|0))<<13)|0;c=((o=o+Math.imul(v,vt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(j,W),i=(i=Math.imul(j,V))+Math.imul(F,W)|0,o=Math.imul(F,V),n=n+Math.imul(B,Y)|0,i=(i=i+Math.imul(B,X)|0)+Math.imul(L,Y)|0,o=o+Math.imul(L,X)|0,n=n+Math.imul(O,Q)|0,i=(i=i+Math.imul(O,tt)|0)+Math.imul(T,Q)|0,o=o+Math.imul(T,tt)|0,n=n+Math.imul(P,rt)|0,i=(i=i+Math.imul(P,nt)|0)+Math.imul(N,rt)|0,o=o+Math.imul(N,nt)|0,n=n+Math.imul(k,ot)|0,i=(i=i+Math.imul(k,at)|0)+Math.imul(S,ot)|0,o=o+Math.imul(S,at)|0,n=n+Math.imul(E,ut)|0,i=(i=i+Math.imul(E,ct)|0)+Math.imul(A,ut)|0,o=o+Math.imul(A,ct)|0,n=n+Math.imul(w,ft)|0,i=(i=i+Math.imul(w,ht)|0)+Math.imul(_,ft)|0,o=o+Math.imul(_,ht)|0;var St=(c+(n=n+Math.imul(g,pt)|0)|0)+((8191&(i=(i=i+Math.imul(g,vt)|0)+Math.imul(y,pt)|0))<<13)|0;c=((o=o+Math.imul(y,vt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(j,Y),i=(i=Math.imul(j,X))+Math.imul(F,Y)|0,o=Math.imul(F,X
vendor: 22,518 bytes, line 2
2),n=n+Math.imul(B,Q)|0,i=(i=i+Math.imul(B,tt)|0)+Math.imul(L,Q)|0,o=o+Math.imul(L,tt)|0,n=n+Math.imul(O,rt)|0,i=(i=i+Math.imul(O,nt)|0)+Math.imul(T,rt)|0,o=o+Math.imul(T,nt)|0,n=n+Math.imul(P,ot)|0,i=(i=i+Math.imul(P,at)|0)+Math.imul(N,ot)|0,o=o+Math.imul(N,at)|0,n=n+Math.imul(k,ut)|0,i=(i=i+Math.imul(k,ct)|0)+Math.imul(S,ut)|0,o=o+Math.imul(S,ct)|0,n=n+Math.imul(E,ft)|0,i=(i=i+Math.imul(E,ht)|0)+Math.imul(A,ft)|0,o=o+Math.imul(A,ht)|0;var It=(c+(n=n+Math.imul(w,pt)|0)|0)+((8191&(i=(i=i+Math.imul(w,vt)|0)+Math.imul(_,pt)|0))<<13)|0;c=((o=o+Math.imul(_,vt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(j,Q),i=(i=Math.imul(j,tt))+Math.imul(F,Q)|0,o=Math.imul(F,tt),n=n+Math.imul(B,rt)|0,i=(i=i+Math.imul(B,nt)|0)+Math.imul(L,rt)|0,o=o+Math.imul(L,nt)|0,n=n+Math.imul(O,ot)|0,i=(i=i+Math.imul(O,at)|0)+Math.imul(T,ot)|0,o=o+Math.imul(T,at)|0,n=n+Math.imul(P,ut)|0,i=(i=i+Math.imul(P,ct)|0)+Math.imul(N,ut)|0,o=o+Math.imul(N,ct)|0,n=n+Math.imul(k,ft)|0,i=(i=i+Math.imul(k,ht)|0)+Math.imul(S,ft)|0,o=o+Math.imul(S,ht)|0;var Pt=(c+(n=n+Math.imul(E,pt)|0)|0)+((8191&(i=(i=i+Math.imul(E,vt)|0)+Math.imul(A,pt)|0))<<13)|0;c=((o=o+Math.imul(A,vt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(j,rt),i=(i=Math.imul(j,nt))+Math.imul(F,rt)|0,o=Math.imul(F,nt),n=n+Math.imul(B,ot)|0,i=(i=i+Math.imul(B,at)|0)+Math.imul(L,ot)|0,o=o+Math.imul(L,at)|0,n=n+Math.imul(O,ut)|0,i=(i=i+Math.imul(O,ct)|0)+Math.imul(T,ut)|0,o=o+Math.imul(T,ct)|0,n=n+Math.imul(P,ft)|0,i=(i=i+Math.imul(P,ht)|0)+Math.imul(N,ft)|0,o=o+Math.imul(N,ht)|0;var Nt=(c+(n=n+Math.imul(k,pt)|0)|0)+((8191&(i=(i=i+Math.imul(k,vt)|0)+Math.imul(S,pt)|0))<<13)|0;c=((o=o+Math.imul(S,vt)|0)+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,n=Math.imul(j,ot),i=(i=Math.imul(j,at))+Math.imul(F,ot)|0,o=Math.imul(F,at),n=n+Math.imul(B,ut)|0,i=(i=i+Math.imul(B,ct)|0)+Math.imul(L,ut)|0,o=o+Math.imul(L,ct)|0,n=n+Math.imul(O,ft)|0,i=(i=i+Math.imul(O,ht)|0)+Math.imul(T,ft)|0,o=o+Math.imul(T,ht)|0;var Ct=(c+(n=n+Math.imul(P,pt)|0)|0)+((8191&(i=(i=i+Math.imul(P,vt)|0)+Math.imul(N,pt)|0))<<13)|0;c=((o=o+Math.imul(N,vt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(j,ut),i=(i=Math.imul(j,ct))+Math.imul(F,ut)|0,o=Math.imul(F,ct),n=n+Math.imul(B,ft)|0,i=(i=i+Math.imul(B,ht)|0)+Math.imul(L,ft)|0,o=o+Math.imul(L,ht)|0;var Ot=(c+(n=n+Math.imul(O,pt)|0)|0)+((8191&(i=(i=i+Math.imul(O,vt)|0)+Math.imul(T,pt)|0))<<13)|0;c=((o=o+Math.imul(T,vt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(j,ft),i=(i=Math.imul(j,ht))+Math.imul(F,ft)|0,o=Math.imul(F,ht);var Tt=(c+(n=n+Math.imul(B,pt)|0)|0)+((8191&(i=(i=i+Math.imul(B,vt)|0)+Math.imul(L,pt)|0))<<13)|0;c=((o=o+Math.imul(L,vt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863;var Rt=(c+(n=Math.imul(j,pt))|0)+((8191&(i=(i=Math.imul(j,vt))+Math.imul(F,pt)|0))<<13)|0;return c=((o=Math.imul(F,vt))+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,u[0]=mt,u[1]=gt,u[2]=yt,u[3]=bt,u[4]=wt,u[5]=_t,u[6]=xt,u[7]=Et,u[8]=At,u[9]=Mt,u[10]=kt,u[11]=St,u[12]=It,u[13]=Pt,u[14]=Nt,u[15]=Ct,u[16]=Ot,u[17]=Tt,u[18]=Rt,0!==c&&(u[19]=c,r.length++),r};function v(t,e,r){return(new m).mulp(t,e,r)}function m(t,e){this.x=t,this.y=e}Math.imul||(p=d),o.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return r=10===this.length&&10===t.length?p(this,t,e):n<63?d(this,t,e):n<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var s=67108863&n,u=Math.min(o,e.length-1),c=Math.max(0,o-t.length+1);c<=u;c++){var l=o-c,f=(0|t.words[l])*(0|e.words[c]),h=67108863&f;s=67108863&(h=h+s|0),i+=(a=(a=a+(f/67108864|0)|0)+(h>>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,t,e):v(this,t,e),r},m.prototype.makeRBT=function(t){for(var e=new Array(t),r=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},m.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},m.prototype.permute=function(t,e,r,n,i,o){for(var a=0;a<o;a++)n[a]=e[t[a]],i[a]=r[t[a]]},m.prototype.transform=function(t,e,r,n,i,o){this.permute(o,t,e,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),l=0;l<i;l+=s)for(var f=u,h=c,d=0;d<a;d++){var p=r[l+d],v=n[l+d],m=r[l+d+a],g=n[l+d+a],y=f*m-h*g;g=f*g+h*m,m=y,r[l+d]=p+m,n[l+d]=v+g,r[l+d+a]=p-m,n[l+d+a]=v-g,d!==s&&(y=u*f-c*h,h=u*h+c*f,f=y)}},m.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},m.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},m.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},m.prototype.convert13b=function(t,e,r,i){for(var o=0,a=0;a<e;a++)o+=0|t[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<i;++a)r[a]=0;n(0===o),n(0===(-8192&o))},m.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},m.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),u=new Array(n),c=new Array(n),l=new Array(n),f=new Array(n),h=r.words;h.length=n,this.convert13b(t.words,t.length,a,n),this.convert13b(e.words,e.length,c,n),this.transform(a,o,s,u,n,i),this.transform(c,o,l,f,n,i);for(var d=0;d<n;d++){var p=s[d]*l[d]-u[d]*f[d];u[d]=s[d]*f[d]+u[d]*l[d],s[d]=p}return this.conjugate(s,u,n),this.transform(s,u,h,o,n,i),this.conjugate(h,o,n),this.normalize13b(h,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),v(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){n("number"===typeof t),n(t<67108864);for(var e=0,r=0;r<this.length;r++){var i=(0|this.words[r])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[r]=67108863&o}return 0!==e&&(this.words[r]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=(t.words[n]&1<<i)>>>i}return e}(t);if(0===e.length)return new o(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(t){n("number"===typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&o,u=(0|this.words[e])-s<<r;this.words[e]=u|a,a=s>>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,r){var i;n("number"===typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<<o,u=r;if(i-=a,i=Math.max(0,i),u){for(var c=0;c<a;c++)u.words[c]=this.words[c];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var l=0;for(c=this.length-1;c>=0&&(0!==l||c>=i);c--){var f=0|this.words[c];this.words[c]=l<<26-o|f>>>o,l=f&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<<e;return!(this.length<=r)&&!!(this.words[r]&i)},o.prototype.imaskn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"===typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(n("number"===typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,r){var i,o,a=t.length+r;this._expand(a);var s=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+s;var u=(0|t.words[i])*e;s=((o-=67108863&u)>>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)s=(o=(0|this.words[i+r])+s)>>26,this.words[i+r]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,u=n.length-i.length;if("mod"!==e){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var l=n.clone()._ishlnsubmul(i,1,u);0===l.negative&&(n=l,s&&(s.words[u]=1));for(var f=u-1;f>=0;f--){var h=67108864*(0|n.words[i.length+f])+(0|n.words[i.length+f-1]);for(h=Math.min(h/a|0,67108863),n._ishlnsubmul(i,h,f);0!==n.negative;)h--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1);s&&(s.words[f]=h)}return s&&s.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,a,s},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},o.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),c=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var l=r.clone(),f=e.clone();!e.isZero();){for(var h=0,d=1;0===(e.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(e.iushrn(h);h-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(l),a.isub(f)),i.iushrn(1),a.iushrn(1);for(var p=0,v=1;0===(r.words[0]&v)&&p<26;++p,v<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(f)),s.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(s),a.isub(u)):(r.isub(e),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new o(1),s=new o(0),u=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,l=1;0===(e.words[0]&l)&&c<26;++c,l<<=1);if(c>0)for(e.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var f=0,h=1;0===(r.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(r.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),a.isub(s)):(r.isub(e),s.isub(a))}return(i=0===e.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){n("number"===typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new E(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},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(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var g={k256:null,p224:null,p192:null,p25519:null};function y(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function A(t){E.call(this,t),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)}y.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},y.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},y.prototype.split=function(t,e){t.iushrn(this.n,0,e)},y.prototype.imulK=function(t){return t.imul(this.k)},i(b,y),b.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i<n;i++)e.words[i]=t.words[i];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&r,i=10;i<t.length;i++){var a=0|t.words[i];t.words[i-10]=(a&r)<<4|o>>>22,o=a}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},b.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(w,y),i(_,y),i(x,y),x.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(g[t])return g[t];var e;if("k256"===t)e=new b;else if("p224"===t)e=new w;else if("p192"===t)e=new _;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new x}return g[t]=e,e},E.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},E.prototype._verify2=function(t,e){n(0===(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},E.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},E.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},E.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},E.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},E.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},E.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},E.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},E.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},E.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},E.prototype.isqr=function(t){return this.imul(t,t.clone())},E.prototype.sqr=function(t){return this.mul(t,t)},E.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2===1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var f=this.pow(l,i),h=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=a;0!==d.cmp(s);){for(var v=d,m=0;0!==v.cmp(s);m++)v=v.redSqr();n(m<p);var g=this.pow(f,new o(1).iushln(p-m-1));h=h.redMul(g),f=g.redSqr(),d=d.redMul(f),p=m}return h
2},E.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},E.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],a=0,s=0,u=e.bitLength()%26;for(0===u&&(u=26),n=e.length-1;n>=0;n--){for(var c=e.words[n],l=u-1;l>=0;l--){var f=c>>l&1;i!==r[0]&&(i=this.sqr(i)),0!==f||0!==a?(a<<=1,a|=f,(4===++s||0===n&&0===l)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}u=26}return i},E.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},E.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new A(t)},i(A,E),A.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},A.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},A.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},A.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},A.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},11686:function(t,e,r){"use strict";r.r(e),r.d(e,{AbstractConnector:function(){return o}});var n,i=r(68041);!function(t){t.Update="Web3ReactUpdate",t.Error="Web3ReactError",t.Deactivate="Web3ReactDeactivate"}(n||(n={}));var o=function(t){var e,r;function i(e){var r,n=(void 0===e?{}:e).supportedChainIds;return(r=t.call(this)||this).supportedChainIds=n,r}r=t,(e=i).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var o=i.prototype;return o.emitUpdate=function(t){this.emit(n.Update,t)},o.emitError=function(t){this.emit(n.Error,t)},o.emitDeactivate=function(){this.emit(n.Deactivate)},i}(i.EventEmitter)},65109:function(t){"use strict";for(var e="qpzry9x8gf2tvdw0s3jn54khce6mua7l",r={},n=0;n<32;n++){var i=e.charAt(n);if(void 0!==r[i])throw new TypeError(i+" is ambiguous");r[i]=n}function o(t){var e=t>>25;return(33554431&t)<<5^996825010&-(e>>0&1)^642813549&-(e>>1&1)^513874426&-(e>>2&1)^1027748829&-(e>>3&1)^705979059&-(e>>4&1)}function a(t){for(var e=1,r=0;r<t.length;++r){var n=t.charCodeAt(r);if(n<33||n>126)return"Invalid prefix ("+t+")";e=o(e)^n>>5}for(e=o(e),r=0;r<t.length;++r){var i=t.charCodeAt(r);e=o(e)^31&i}return e}function s(t,e){if(e=e||90,t.length<8)return t+" too short";if(t.length>e)return"Exceeds length limit";var n=t.toLowerCase(),i=t.toUpperCase();if(t!==n&&t!==i)return"Mixed-case string "+t;var s=(t=n).lastIndexOf("1");if(-1===s)return"No separator character for "+t;if(0===s)return"Missing prefix for "+t;var u=t.slice(0,s),c=t.slice(s+1);if(c.length<6)return"Data too short";var l=a(u);if("string"===typeof l)return l;for(var f=[],h=0;h<c.length;++h){var d=c.charAt(h),p=r[d];if(void 0===p)return"Unknown character "+d;l=o(l)^p,h+6>=c.length||f.push(p)}return 1!==l?"Invalid checksum for "+t:{prefix:u,words:f}}function u(t,e,r,n){for(var i=0,o=0,a=(1<<r)-1,s=[],u=0;u<t.length;++u)for(i=i<<e|t[u],o+=e;o>=r;)o-=r,s.push(i>>o&a);if(n)o>0&&s.push(i<<r-o&a);else{if(o>=e)return"Excess padding";if(i<<r-o&a)return"Non-zero padding"}return s}t.exports={decodeUnsafe:function(){var t=s.apply(null,arguments);if("object"===typeof t)return t},decode:function(t){var e=s.apply(null,arguments);if("object"===typeof e)return e;throw new Error(e)},encode:function(t,r,n){if(n=n||90,t.length+7+r.length>n)throw new TypeError("Exceeds length limit");var i=a(t=t.toLowerCase());if("string"===typeof i)throw new Error(i);for(var s=t+"1",u=0;u<r.length;++u){var c=r[u];if(c>>5!==0)throw new Error("Non 5-bit word");i=o(i)^c,s+=e.charAt(c)}for(u=0;
2u<6;++u)i=o(i);for(i^=1,u=0;u<6;++u){s+=e.charAt(i>>5*(5-u)&31)}return s},toWordsUnsafe:function(t){var e=u(t,8,5,!0);if(Array.isArray(e))return e},toWords:function(t){var e=u(t,8,5,!0);if(Array.isArray(e))return e;throw new Error(e)},fromWordsUnsafe:function(t){var e=u(t,5,8,!1);if(Array.isArray(e))return e},fromWords:function(t){var e=u(t,5,8,!1);if(Array.isArray(e))return e;throw new Error(e)}}},64166:function(t,e,r){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function o(t,e,r){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var a;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:r(46601).Buffer}catch(I){}function s(t,e){var r=t.charCodeAt(e);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+t)}function u(t,e,r){var n=s(t,r);return r-1>=e&&(n|=s(t,r-1)<<4),n}function c(t,e,r,i){for(var o=0,a=0,s=Math.min(t.length,r),u=e;u<s;u++){var c=t.charCodeAt(u)-48;o*=i,a=c>=49?c-49+10:c>=17?c-17+10:c,n(c>=0&&a<i,"Invalid character"),o+=a}return o}function l(t,e){t.words=e.words,t.length=e.length,t.negative=e.negative,t.red=e.red}if(o.isBN=function(t){return t instanceof o||null!==t&&"object"===typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,r){if("number"===typeof t)return this._initNumber(t,e,r);if("object"===typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,r):(this._parseBase(t,e,i),"le"===r&&this._initArray(this.toArray(),e,r)))},o.prototype._initNumber=function(t,e,r){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initArray=function(t,e,r){if(n("number"===typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===r)for(i=t.length-1,o=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},o.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,a=0;if("be"===r)for(n=t.length-1;n>=e;n-=2)i=u(t,e,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(n=(t.length-e)%2===0?e+1:e;n<t.length;n+=2)i=u(t,e,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},o.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,a=o%n,s=Math.min(o,o-a)+r,u=0,l=r;l<s;l+=n)u=c(t,l,l+n,e),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var f=1;for(u=c(t,l,t.length,e),l=0;l<a;l++)f*=e;this.imuln(f),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this._strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype._move=function(t){l(t,this)},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype._strip=function(){for(;this.length>1&&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")]=f}catch(I){o.prototype.inspect=f}else o.prototype.inspect=f;function f(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var 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"],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],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16
vendor: 7,850 bytes, line 2
2777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<i|o)).toString(16);o=s>>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),r=0!==o||a!==this.length-1?h[6-u.length]+u+r:u+r}for(0!==o&&(r=o.toString(16)+r);r.length%e!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var c=d[t],l=p[t];r="";var f=this.clone();for(f.negative=0;!f.isZero();){var v=f.modrn(l).toString(t);r=(f=f.idivn(l)).isZero()?v+r:h[c-v.length]+v+r}for(this.isZero()&&(r="0"+r);r.length%e!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16,2)},a&&(o.prototype.toBuffer=function(t,e){return this.toArrayLike(a,t,e)}),o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)};function v(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var c=1;c<n;c++){for(var l=u>>>26,f=67108863&u,h=Math.min(c,e.length-1),d=Math.max(0,c-t.length+1);d<=h;d++){var p=c-d|0;l+=(a=(i=0|t.words[p])*(o=0|e.words[d])+f)/67108864|0,f=67108863&a}r.words[c]=0|f,u=0|l}return 0!==u?r.words[c]=0|u:r.length--,r._strip()}o.prototype.toArrayLike=function(t,e,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,o);return this["_toArrayLike"+("le"===e?"LE":"BE")](a,i),a},o.prototype._toArrayLikeLE=function(t,e){for(var r=0,n=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|n;t[r++]=255&a,r<t.length&&(t[r++]=a>>8&255),r<t.length&&(t[r++]=a>>16&255),6===o?(r<t.length&&(t[r++]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r<t.length)for(t[r++]=n;r<t.length;)t[r++]=0},o.prototype._toArrayLikeBE=function(t,e){for(var r=t.length-1,n=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|n;t[r--]=255&a,r>=0&&(t[r--]=a>>8&255),r>=0&&(t[r--]=a>>16&255),6===o?(r>=0&&(t[r--]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r>=0)for(t[r--]=n;r>=0;)t[r--]=0},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0===(8191&e)&&(r+=13,e>>>=13),0===(127&e)&&(r+=7,e>>>=7),0===(15&e)&&(r+=4,e>>>=4),0===(3&e)&&(r+=2,e>>>=2),0===(1&e)&&r++,r},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this._strip()},o.prototype.ior=function(t){return n(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this._strip()},o.prototype.iand=function(t){return n(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this._strip()},o.prototype.ixor=function(t){return n(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"===typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<i:this.words[r]&~(1<<i),this._strip()},o.prototype.iadd=function(t){var e,r,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,a=0;a<n.length;a++)o=(e=(0|r.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&e;for(;0!==o&&a<r.length;a++)o=(e=(0|r.words[a])+o)>>26,this.words[a]=67108863&e;if(0===o&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var m=function(t,e,r){var n,i,o,a=t.words,s=e.words,u=r.words,c=0,l=0|a[0],f=8191&l,h=l>>>13,d=0|a[1],p=8191&d,v=d>>>13,m=0|a[2],g=8191&m,y=m>>>13,b=0|a[3],w=8191&b,_=b>>>13,x=0|a[4],E=8191&x,A=x>>>13,M=0|a[5],k=8191&M,S=M>>>13,I=0|a[6],P=8191&I,N=I>>>13,C=0|a[7],O=8191&C,T=C>>>13,R=0|a[8],B=8191&R,L=R>>>13,Z=0|a[9],j=8191&Z,F=Z>>>13,U=0|s[0],D=8191&U,H=U>>>13,z=0|s[1],$=8191&z,q=z>>>13,G=0|s[2],W=8191&G,V=G>>>13,K=0|s[3],Y=8191&K,X=K>>>13,J=0|s[4],Q=8191&J,tt=J>>>13,et=0|s[5],rt=8191&et,nt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>
vendor: 7,122 bytes, line 2
213,st=0|s[7],ut=8191&st,ct=st>>>13,lt=0|s[8],ft=8191&lt,ht=lt>>>13,dt=0|s[9],pt=8191&dt,vt=dt>>>13;r.negative=t.negative^e.negative,r.length=19;var mt=(c+(n=Math.imul(f,D))|0)+((8191&(i=(i=Math.imul(f,H))+Math.imul(h,D)|0))<<13)|0;c=((o=Math.imul(h,H))+(i>>>13)|0)+(mt>>>26)|0,mt&=67108863,n=Math.imul(p,D),i=(i=Math.imul(p,H))+Math.imul(v,D)|0,o=Math.imul(v,H);var gt=(c+(n=n+Math.imul(f,$)|0)|0)+((8191&(i=(i=i+Math.imul(f,q)|0)+Math.imul(h,$)|0))<<13)|0;c=((o=o+Math.imul(h,q)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(g,D),i=(i=Math.imul(g,H))+Math.imul(y,D)|0,o=Math.imul(y,H),n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,q)|0)+Math.imul(v,$)|0,o=o+Math.imul(v,q)|0;var yt=(c+(n=n+Math.imul(f,W)|0)|0)+((8191&(i=(i=i+Math.imul(f,V)|0)+Math.imul(h,W)|0))<<13)|0;c=((o=o+Math.imul(h,V)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(w,D),i=(i=Math.imul(w,H))+Math.imul(_,D)|0,o=Math.imul(_,H),n=n+Math.imul(g,$)|0,i=(i=i+Math.imul(g,q)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,q)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(v,W)|0,o=o+Math.imul(v,V)|0;var bt=(c+(n=n+Math.imul(f,Y)|0)|0)+((8191&(i=(i=i+Math.imul(f,X)|0)+Math.imul(h,Y)|0))<<13)|0;c=((o=o+Math.imul(h,X)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(E,D),i=(i=Math.imul(E,H))+Math.imul(A,D)|0,o=Math.imul(A,H),n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,q)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,q)|0,n=n+Math.imul(g,W)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(y,W)|0,o=o+Math.imul(y,V)|0,n=n+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(v,Y)|0,o=o+Math.imul(v,X)|0;var wt=(c+(n=n+Math.imul(f,Q)|0)|0)+((8191&(i=(i=i+Math.imul(f,tt)|0)+Math.imul(h,Q)|0))<<13)|0;c=((o=o+Math.imul(h,tt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(k,D),i=(i=Math.imul(k,H))+Math.imul(S,D)|0,o=Math.imul(S,H),n=n+Math.imul(E,$)|0,i=(i=i+Math.imul(E,q)|0)+Math.imul(A,$)|0,o=o+Math.imul(A,q)|0,n=n+Math.imul(w,W)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(_,W)|0,o=o+Math.imul(_,V)|0,n=n+Math.imul(g,Y)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(y,Y)|0,o=o+Math.imul(y,X)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,tt)|0;var _t=(c+(n=n+Math.imul(f,rt)|0)|0)+((8191&(i=(i=i+Math.imul(f,nt)|0)+Math.imul(h,rt)|0))<<13)|0;c=((o=o+Math.imul(h,nt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(P,D),i=(i=Math.imul(P,H))+Math.imul(N,D)|0,o=Math.imul(N,H),n=n+Math.imul(k,$)|0,i=(i=i+Math.imul(k,q)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,q)|0,n=n+Math.imul(E,W)|0,i=(i=i+Math.imul(E,V)|0)+Math.imul(A,W)|0,o=o+Math.imul(A,V)|0,n=n+Math.imul(w,Y)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(_,Y)|0,o=o+Math.imul(_,X)|0,n=n+Math.imul(g,Q)|0,i=(i=i+Math.imul(g,tt)|0)+Math.imul(y,Q)|0,o=o+Math.imul(y,tt)|0,n=n+Math.imul(p,rt)|0,i=(i=i+Math.imul(p,nt)|0)+Math.imul(v,rt)|0,o=o+Math.imul(v,nt)|0;var xt=(c+(n=n+Math.imul(f,ot)|0)|0)+((8191&(i=(i=i+Math.imul(f,at)|0)+Math.imul(h,ot)|0))<<13)|0;c=((o=o+Math.imul(h,at)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(O,D),i=(i=Math.imul(O,H))+Math.imul(T,D)|0,o=Math.imul(T,H),n=n+Math.imul(P,$)|0,i=(i=i+Math.imul(P,q)|0)+Math.imul(N,$)|0,o=o+Math.imul(N,q)|0,n=n+Math.imul(k,W)|0,i=(i=i+Math.imul(k,V)|0)+Math.imul(S,W)|0,o=o+Math.imul(S,V)|0,n=n+Math.imul(E,Y)|0,i=(i=i+Math.imul(E,X)|0)+Math.imul(A,Y)|0,o=o+Math.imul(A,X)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,tt)|0,n=n+Math.imul(g,rt)|0,i=(i=i+Math.imul(g,nt)|0)+Math.imul(y,rt)|0,o=o+Math.imul(y,nt)|0,n=n+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(v,ot)|0,o=o+Math.imul(v,at)|0;var Et=(c+(n=n+Math.imul(f,ut)|0)|0)+((8191&(i=(i=i+Math.imul(f,ct)|0)+Math.imul(h,ut)|0))<<13)|0;c=((o=o+Math.imul(h,ct)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(B,D),i=(i=Math.imul(B,H))+Math.imul(L,D)|0,o=Math.imul(L,H),n=n+Math.imul(O,$)|0,i=(i=i+Math.imul(O,q)|0)+Math.imul(T,$)|0,o=o+Math.imul(T,q)|0,n=n+Math.imul(P,W)|0,i=(i=i+Math.imul(P,V)|0)+Math.imul(N,W)|0,o=o+Math.imul(N,V)|0,n=n+Math.imul(k,Y)|0,i=(i=i+Math.imul(k,X)|0)+Math.imul(S,Y)|0,o=o+Math.imul(S,X)|0,n=n+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,tt)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,tt)|0,n=n+Math.imul(w,rt)|0,i=(i=i+Math.imul(w,nt)|0)+Math.imul(_,rt)|0,o=o+Math.imul(_,nt)|0,n=n+Math.imul(g,ot)|0,i=(i=i+Math.imul(g,at)|0)+Math.imul(y,ot)|0,o=o+Math.imul(y,at)|0,n=n+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,ct)|0)+Math.imul(v,ut)|0,o=o+Math.imul(v,ct)|0;var At=(c+(n=n+Math.imul(f,ft)|0)|0)+((8191&(i=(i=i+Math.imul(f,ht)|0)+Math.imul(h,ft)|0))<<13)|0;c=((o=o+Math.imul(h,ht)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(j,D),i=(i=Math.imul(j,H))+Math.imul(F,D)|0,o=Math.imul(F,H),n=n+Math.imul(B,$)|0,i=(i=i+Math.imul(B,q)|0)+Math.imul(L,$)|0,o=o+Math.imul(L,q)|0,n=n+Math.imul(O,W)|0,i=(i=i+Math.imul(O,V)|0)+Math.imul(T,W)|0,o=o+Math.imul(T,V)|0,n=n+Math.imul(P,Y)|0,i=(i=i+Math.imul(P,X)|0)+Math.imul(N,Y)|0,o=o+Math.imul(N,X)|0,n=n+Math.imul(k,Q)|0,i=(i=i+Math.imul(k,tt)|0)+Math.imul(S,Q)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(E,rt)|0,i=(i=i+Math.imul(E,nt)|0)+Math.imul(A,rt)|0,o=o+Math.imul(A,nt)|0,n=n+Math.imul(w,ot)|0,i=(i=i+Math.imul(w,at)|0)+Math.imul(_,ot)|0,o=o+Math.imul(_,at)|0,n=n+Math.imul(g,ut)|0,i=(i=i+Math.imul(g,ct)|0)+Math.imul(y,ut)|0,o=o+Math.imul(y,ct)|0,n=n+Math.imul(p,ft)|0,i=(i=i+Math.imul(p,ht)|0)+Math.imul(v,ft)|0,o=o+Math.imul(v,ht)|0;var Mt=(c+(n=n+Math.imul(f,pt)|0)|0)+((8191&(i=(i=i+Math.imul(f,vt)|0)+Math.imul(h,pt)|0))<<13)|0;c=((o=o+Math.imul(h,vt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(j,$),i=(i=Math.imul(j,q))+Math.imul(F,$)|0,o=Math.imul(F,q),n=n+Math.imul(B,W)|0,i=(i=i+Math.imul(B,V)|0)+Math.imul(L,W)|0,o=o+Math.imul(L,V)|0,n=n+Math.imul(O,Y)|0,i=(i=i+Math.imul(O,X)|0)+Math.imul(T,Y)|0,o=o+Math.imul(T,X)|0,n=n+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,tt)|0,n=n+Math.imul(k,rt)|0,i=(i=i+Math.imul(k,nt)|0)+Math.imul(S,rt)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(E,ot)|0,i=(i=i+Math.imul(E,at)|0)+Math.imul(A,ot)|0,o=o+Math.imul(A,at)|0,n=n+Math.imul(w,ut)|0,i=(i=i+Math.imul(w,ct)|0)+Math.imul(_,ut)|0,o=o+Math.imul(_,ct)|0,n=n+Math.imul(g,ft)|0,i=(i=i+Math.imul(g,ht)|0)+Math.imul(y,ft)|0,o=o+Math.imul(y,ht)|0;var kt=(c+(n=n+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,vt)|0)+Math.imul(v,pt)|0))<<13)|0;c=((o=o+Math.imul(v,vt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(j,W),i=(i=Math.imul(j,V))+Math.imul(F,W)|0,o=Math.imul(F,V),n=n+Math.imul(B,Y)|0,i=(i=i+Math.imul(B,X)|0)+Math.imul(L,Y)|0,o=o+Math.imul(L,X)|0,n=n+Math.imul(O,Q)|0,i=(i=i+Math.imul(O,tt)|0)+Math.imul(T,Q)|0,o=o+Math.imul(T,tt)|0,n=n+Math.imul(P,rt)|0,i=(i=i+Math.imul(P,nt)|0)+Math.imul(N,rt)|0,o=o+Math.imul(N,nt)|0,n=n+Math.imul(k,ot)|0,i=(i=i+Math.imul(k,at)|0)+Math.imul(S,ot)|0,o=o+Math.imul(S,at)|0,n=n+Math.imul(E,ut)|0,i=(i=i+Math.imul(E,ct)|0)+Math.imul(A,ut)|0,o=o+Math.imul(A,ct)|0,n=n+Math.imul(w,ft)|0,i=(i=i+Math.imul(w,ht)|0)+Math.imul(_,ft)|0,o=o+Math.imul(_,ht)|0;var St=(c+(n=n+Math.imul(g,pt)|0)|0)+((8191&(i=(i=i+Math.imul(g,vt)|0)+Math.imul(y,pt)|0))<<13)|0;c=((o=o+Math.imul(y,vt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(j,Y),i=(i=Math.imul(j,X))+Math.imul(F,Y)|0,o=Math.imul(F,X
vendor: 22,872 bytes, line 2
2),n=n+Math.imul(B,Q)|0,i=(i=i+Math.imul(B,tt)|0)+Math.imul(L,Q)|0,o=o+Math.imul(L,tt)|0,n=n+Math.imul(O,rt)|0,i=(i=i+Math.imul(O,nt)|0)+Math.imul(T,rt)|0,o=o+Math.imul(T,nt)|0,n=n+Math.imul(P,ot)|0,i=(i=i+Math.imul(P,at)|0)+Math.imul(N,ot)|0,o=o+Math.imul(N,at)|0,n=n+Math.imul(k,ut)|0,i=(i=i+Math.imul(k,ct)|0)+Math.imul(S,ut)|0,o=o+Math.imul(S,ct)|0,n=n+Math.imul(E,ft)|0,i=(i=i+Math.imul(E,ht)|0)+Math.imul(A,ft)|0,o=o+Math.imul(A,ht)|0;var It=(c+(n=n+Math.imul(w,pt)|0)|0)+((8191&(i=(i=i+Math.imul(w,vt)|0)+Math.imul(_,pt)|0))<<13)|0;c=((o=o+Math.imul(_,vt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(j,Q),i=(i=Math.imul(j,tt))+Math.imul(F,Q)|0,o=Math.imul(F,tt),n=n+Math.imul(B,rt)|0,i=(i=i+Math.imul(B,nt)|0)+Math.imul(L,rt)|0,o=o+Math.imul(L,nt)|0,n=n+Math.imul(O,ot)|0,i=(i=i+Math.imul(O,at)|0)+Math.imul(T,ot)|0,o=o+Math.imul(T,at)|0,n=n+Math.imul(P,ut)|0,i=(i=i+Math.imul(P,ct)|0)+Math.imul(N,ut)|0,o=o+Math.imul(N,ct)|0,n=n+Math.imul(k,ft)|0,i=(i=i+Math.imul(k,ht)|0)+Math.imul(S,ft)|0,o=o+Math.imul(S,ht)|0;var Pt=(c+(n=n+Math.imul(E,pt)|0)|0)+((8191&(i=(i=i+Math.imul(E,vt)|0)+Math.imul(A,pt)|0))<<13)|0;c=((o=o+Math.imul(A,vt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(j,rt),i=(i=Math.imul(j,nt))+Math.imul(F,rt)|0,o=Math.imul(F,nt),n=n+Math.imul(B,ot)|0,i=(i=i+Math.imul(B,at)|0)+Math.imul(L,ot)|0,o=o+Math.imul(L,at)|0,n=n+Math.imul(O,ut)|0,i=(i=i+Math.imul(O,ct)|0)+Math.imul(T,ut)|0,o=o+Math.imul(T,ct)|0,n=n+Math.imul(P,ft)|0,i=(i=i+Math.imul(P,ht)|0)+Math.imul(N,ft)|0,o=o+Math.imul(N,ht)|0;var Nt=(c+(n=n+Math.imul(k,pt)|0)|0)+((8191&(i=(i=i+Math.imul(k,vt)|0)+Math.imul(S,pt)|0))<<13)|0;c=((o=o+Math.imul(S,vt)|0)+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,n=Math.imul(j,ot),i=(i=Math.imul(j,at))+Math.imul(F,ot)|0,o=Math.imul(F,at),n=n+Math.imul(B,ut)|0,i=(i=i+Math.imul(B,ct)|0)+Math.imul(L,ut)|0,o=o+Math.imul(L,ct)|0,n=n+Math.imul(O,ft)|0,i=(i=i+Math.imul(O,ht)|0)+Math.imul(T,ft)|0,o=o+Math.imul(T,ht)|0;var Ct=(c+(n=n+Math.imul(P,pt)|0)|0)+((8191&(i=(i=i+Math.imul(P,vt)|0)+Math.imul(N,pt)|0))<<13)|0;c=((o=o+Math.imul(N,vt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(j,ut),i=(i=Math.imul(j,ct))+Math.imul(F,ut)|0,o=Math.imul(F,ct),n=n+Math.imul(B,ft)|0,i=(i=i+Math.imul(B,ht)|0)+Math.imul(L,ft)|0,o=o+Math.imul(L,ht)|0;var Ot=(c+(n=n+Math.imul(O,pt)|0)|0)+((8191&(i=(i=i+Math.imul(O,vt)|0)+Math.imul(T,pt)|0))<<13)|0;c=((o=o+Math.imul(T,vt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(j,ft),i=(i=Math.imul(j,ht))+Math.imul(F,ft)|0,o=Math.imul(F,ht);var Tt=(c+(n=n+Math.imul(B,pt)|0)|0)+((8191&(i=(i=i+Math.imul(B,vt)|0)+Math.imul(L,pt)|0))<<13)|0;c=((o=o+Math.imul(L,vt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863;var Rt=(c+(n=Math.imul(j,pt))|0)+((8191&(i=(i=Math.imul(j,vt))+Math.imul(F,pt)|0))<<13)|0;return c=((o=Math.imul(F,vt))+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,u[0]=mt,u[1]=gt,u[2]=yt,u[3]=bt,u[4]=wt,u[5]=_t,u[6]=xt,u[7]=Et,u[8]=At,u[9]=Mt,u[10]=kt,u[11]=St,u[12]=It,u[13]=Pt,u[14]=Nt,u[15]=Ct,u[16]=Ot,u[17]=Tt,u[18]=Rt,0!==c&&(u[19]=c,r.length++),r};function g(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var s=67108863&n,u=Math.min(o,e.length-1),c=Math.max(0,o-t.length+1);c<=u;c++){var l=o-c,f=(0|t.words[l])*(0|e.words[c]),h=67108863&f;s=67108863&(h=h+s|0),i+=(a=(a=a+(f/67108864|0)|0)+(h>>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function y(t,e,r){return g(t,e,r)}function b(t,e){this.x=t,this.y=e}Math.imul||(m=v),o.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?m(this,t,e):r<63?v(this,t,e):r<1024?g(this,t,e):y(this,t,e)},b.prototype.makeRBT=function(t){for(var e=new Array(t),r=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},b.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},b.prototype.permute=function(t,e,r,n,i,o){for(var a=0;a<o;a++)n[a]=e[t[a]],i[a]=r[t[a]]},b.prototype.transform=function(t,e,r,n,i,o){this.permute(o,t,e,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),l=0;l<i;l+=s)for(var f=u,h=c,d=0;d<a;d++){var p=r[l+d],v=n[l+d],m=r[l+d+a],g=n[l+d+a],y=f*m-h*g;g=f*g+h*m,m=y,r[l+d]=p+m,n[l+d]=v+g,r[l+d+a]=p-m,n[l+d+a]=v-g,d!==s&&(y=u*f-c*h,h=u*h+c*f,f=y)}},b.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},b.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},b.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},b.prototype.convert13b=function(t,e,r,i){for(var o=0,a=0;a<e;a++)o+=0|t[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<i;++a)r[a]=0;n(0===o),n(0===(-8192&o))},b.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},b.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),u=new Array(n),c=new Array(n),l=new Array(n),f=new Array(n),h=r.words;h.length=n,this.convert13b(t.words,t.length,a,n),this.convert13b(e.words,e.length,c,n),this.transform(a,o,s,u,n,i),this.transform(c,o,l,f,n,i);for(var d=0;d<n;d++){var p=s[d]*l[d]-u[d]*f[d];u[d]=s[d]*f[d]+u[d]*l[d],s[d]=p}return this.conjugate(s,u,n),this.transform(s,u,h,o,n,i),this.conjugate(h,o,n),this.normalize13b(h,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r._strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),y(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){var e=t<0;e&&(t=-t),n("number"===typeof t),n(t<67108864);for(var r=0,i=0;i<this.length;i++){var o=(0|this.words[i])*t,a=(67108863&o)+(67108863&r);r>>=26,r+=o/67108864|0,r+=a>>>26,this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),e?this.ineg():this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=t.words[n]>>>i&1}return e}(t);if(0===e.length)return new o(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(t){n("number"===typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&o,u=(0|this.words[e])-s<<r;this.words[e]=u|a,a=s>>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this._strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,r){var i;n("number"===typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<<o,u=r;if(i-=a,i=Math.max(0,i),u){for(var c=0;c<a;c++)u.words[c]=this.words[c];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var l=0;for(c=this.length-1;c>=0&&(0!==l||c>=i);c--){var f=0|this.words[c];this.words[c]=l<<26-o|f>>>o,l=f&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<<e;return!(this.length<=r)&&!!(this.words[r]&i)},o.prototype.imaskn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this._strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"===typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<=t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(n("number"===typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this._strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,r){var i,o,a=t.length+r;this._expand(a);var s=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+s;var u=(0|t.words[i])*e;s=((o-=67108863&u)>>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)s=(o=(0|this.words[i+r])+s)>>26,this.words[i+r]=67108863&o;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,u=n.length-i.length;if("mod"!==e){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var l=n.clone()._ishlnsubmul(i,1,u);0===l.negative&&(n=l,s&&(s.words[u]=1));for(var f=u-1;f>=0;f--){var h=67108864*(0|n.words[i.length+f])+(0|n.words[i.length+f-1]);for(h=Math.min(h/a|0,67108863),n._ishlnsubmul(i,h,f);0!==n.negative;)h--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1);s&&(s.words[f]=h)}return s&&s._strip(),n._strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modrn(t.words[0]))}:this._wordDiv(t,e);var i,a,s},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modrn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=(1<<26)%t,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%t;return e?-i:i},o.prototype.modn=function(t){return this.modrn(t)},o.prototype.idivn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/t|0,r=o%t}return this._strip(),e?this.ineg():this},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),c=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var l=r.clone(),f=e.clone();!e.isZero();){for(var h=0,d=1;0===(e.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(e.iushrn(h);h-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(l),a.isub(f)),i.iushrn(1),a.iushrn(1);for(var p=0,v=1;0===(r.words[0]&v)&&p<26;++p,v<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(f)),s.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(s),a.isub(u)):(r.isub(e),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new o(1),s=new o(0),u=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,l=1;0===(e.words[0]&l)&&c<26;++c,l<<=1);if(c>0)for(e.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var f=0,h=1;0===(r.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(r.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),a.isub(s)):(r.isub(e),s.isub(a))}return(i=0===e.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){n("number"===typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new k(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},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(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var w={k256:null,p224:null,p192:null,p25519:null};function _(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function x(){_.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function E(){_.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){_.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){_.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function S(t){k.call(this,t),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 t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},_.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},_.prototype.split=function(t,e){t.iushrn(this.n,0,e)},_.prototype.imulK=function(t){return t.imul(this.k)},i(x,_),x.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i<n;i++)e.words[i]=t.words[i];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&r,i=10;i<t.length;i++){var a=0|t.words[i];t.words[i-10]=(a&r)<<4|o>>>22,o=a}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},x.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(E,_),i(A,_),i(M,_),M.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(w[t])return w[t];var e;if("k256"===t)e=new x;else if("p224"===t)e=new E;else if("p192"===t)e=new A;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new M}return w[t]=e,e},k.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},k.prototype._verify2=function(t,e){n(0===(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},k.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(l(t,t.umod(this.m)._forceRed(this)),t)},k.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},k.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},k.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},k.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},k.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},k.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},k.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},k.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},k.prototype.isqr=function(t){return this.imul(t,t.clone())},k.prototype.sqr=function(t){return this.mul(t,t)},k.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2===1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var f=this.pow(l,i),h=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=a;0!==d.cmp(s);){for(var v=d,m=0;0!==v.cmp(s);m++)v=v.redSqr();n(m<p);var g=this.pow(f,new o(1).iushln(p-m-1));h=h.redMul(g),f=g.redSqr(),d=d.redMul(f),p=m}return h},k.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},k.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this)
2;if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],a=0,s=0,u=e.bitLength()%26;for(0===u&&(u=26),n=e.length-1;n>=0;n--){for(var c=e.words[n],l=u-1;l>=0;l--){var f=c>>l&1;i!==r[0]&&(i=this.sqr(i)),0!==f||0!==a?(a<<=1,a|=f,(4===++s||0===n&&0===l)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}u=26}return i},k.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},k.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new S(t)},i(S,k),S.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},S.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},S.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},S.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},S.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},50984:function(t){t.exports=function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=90)}({17:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n=r(18),i=function(){function t(){}return t.getFirstMatch=function(t,e){var r=e.match(t);return r&&r.length>0&&r[1]||""},t.getSecondMatch=function(t,e){var r=e.match(t);return r&&r.length>1&&r[2]||""},t.matchAndReturnConst=function(t,e,r){if(t.test(e))return r},t.getWindowsVersionName=function(t){switch(t){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},t.getMacOSVersionName=function(t){var e=t.split(".").splice(0,2).map((function(t){return parseInt(t,10)||0}));if(e.push(0),10===e[0])switch(e[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},t.getAndroidVersionName=function(t){var e=t.split(".").splice(0,2).map((function(t){return parseInt(t,10)||0}));if(e.push(0),!(1===e[0]&&e[1]<5))return 1===e[0]&&e[1]<6?"Cupcake":1===e[0]&&e[1]>=6?"Donut":2===e[0]&&e[1]<2?"Eclair":2===e[0]&&2===e[1]?"Froyo":2===e[0]&&e[1]>2?"Gingerbread":3===e[0]?"Honeycomb":4===e[0]&&e[1]<1?"Ice Cream Sandwich":4===e[0]&&e[1]<4?"Jelly Bean":4===e[0]&&e[1]>=4?"KitKat":5===e[0]?"Lollipop":6===e[0]?"Marshmallow":7===e[0]?"Nougat":8===e[0]?"Oreo":9===e[0]?"Pie":void 0},t.getVersionPrecision=function(t){return t.split(".").length},t.compareVersions=function(e,r,n){void 0===n&&(n=!1);var i=t.getVersionPrecision(e),o=t.getVersionPrecision(r),a=Math.max(i,o),s=0,u=t.map([e,r],(function(e){var r=a-t.getVersionPrecision(e),n=e+new Array(r+1).join(".0");return t.map(n.split("."),(function(t){return new Array(20-t.length).join("0")+t})).reverse()}));for(n&&(s=a-Math.min(i,o)),a-=1;a>=s;){if(u[0][a]>u[1][a])return 1;if(u[0][a]===u[1][a]){if(a===s)return 0;a-=1}else if(u[0][a]<u[1][a])return-1}},t.map=function(t,e){var r,n=[];if(Array.prototype.map)return Array.prototype.map.call(t,e);for(r=0;r<t.length;r+=1)n.push(e(t[r]));return n},t.find=function(t,e){var r,n;if(Array.prototype.find)return Array.prototype.find.call(t,e);for(r=0,n=t.length;r<n;r+=1){var i=t[r];
2if(e(i,r))return i}},t.assign=function(t){for(var e,r,n=t,i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];if(Object.assign)return Object.assign.apply(Object,[t].concat(o));var s=function(){var t=o[e];"object"==typeof t&&null!==t&&Object.keys(t).forEach((function(e){n[e]=t[e]}))};for(e=0,r=o.length;e<r;e+=1)s();return t},t.getBrowserAlias=function(t){return n.BROWSER_ALIASES_MAP[t]},t.getBrowserTypeByAlias=function(t){return n.BROWSER_MAP[t]||""},t}();e.default=i,t.exports=e.default},18:function(t,e,r){"use strict";e.__esModule=!0,e.ENGINE_MAP=e.OS_MAP=e.PLATFORMS_MAP=e.BROWSER_MAP=e.BROWSER_ALIASES_MAP=void 0,e.BROWSER_ALIASES_MAP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},e.BROWSER_MAP={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},e.PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},e.OS_MAP={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},e.ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"}},90:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,i=(n=r(91))&&n.__esModule?n:{default:n},o=r(18);function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var s=function(){function t(){}var e,r,n;return t.getParser=function(t,e){if(void 0===e&&(e=!1),"string"!=typeof t)throw new Error("UserAgent should be a string");return new i.default(t,e)},t.parse=function(t){return new i.default(t).getResult()},e=t,n=[{key:"BROWSER_MAP",get:function(){return o.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return o.ENGINE_MAP}},{key:"OS_MAP",get:function(){return o.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return o.PLATFORMS_MAP}}],(r=null)&&a(e.prototype,r),n&&a(e,n),t}();e.default=s,t.exports=e.default},91:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n=u(r(92)),i=u(r(93)),o=u(r(94)),a=u(r(95)),s=u(r(17));function u(t){return t&&t.__esModule?t:{default:t}}var c=function(){function t(t,e){if(void 0===e&&(e=!1),null==t||""===t)throw new Error("UserAgent parameter can't be empty");this._ua=t,this.parsedResult={},!0!==e&&this.parse()}var e=t.prototype;return e.getUA=function(){return this._ua},e.test=function(t){return t.test(this._ua)},e.parseBrowser=function(){var t=this;this.parsedResult.browser={};var e=s.default.find(n.default,(function(e){if("function"==typeof e.test)return e.test(t);if(e.test instanceof Array)return e.test.some((function(e){return t.test(e)}));
vendor: 11,840 bytes, line 2
2throw new Error("Browser's test function is not valid")}));return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser},e.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},e.getBrowserName=function(t){return t?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},e.getBrowserVersion=function(){return this.getBrowser().version},e.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},e.parseOS=function(){var t=this;this.parsedResult.os={};var e=s.default.find(i.default,(function(e){if("function"==typeof e.test)return e.test(t);if(e.test instanceof Array)return e.test.some((function(e){return t.test(e)}));throw new Error("Browser's test function is not valid")}));return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os},e.getOSName=function(t){var e=this.getOS().name;return t?String(e).toLowerCase()||"":e||""},e.getOSVersion=function(){return this.getOS().version},e.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},e.getPlatformType=function(t){void 0===t&&(t=!1);var e=this.getPlatform().type;return t?String(e).toLowerCase()||"":e||""},e.parsePlatform=function(){var t=this;this.parsedResult.platform={};var e=s.default.find(o.default,(function(e){if("function"==typeof e.test)return e.test(t);if(e.test instanceof Array)return e.test.some((function(e){return t.test(e)}));throw new Error("Browser's test function is not valid")}));return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform},e.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},e.getEngineName=function(t){return t?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},e.parseEngine=function(){var t=this;this.parsedResult.engine={};var e=s.default.find(a.default,(function(e){if("function"==typeof e.test)return e.test(t);if(e.test instanceof Array)return e.test.some((function(e){return t.test(e)}));throw new Error("Browser's test function is not valid")}));return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine},e.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},e.getResult=function(){return s.default.assign({},this.parsedResult)},e.satisfies=function(t){var e=this,r={},n=0,i={},o=0;if(Object.keys(t).forEach((function(e){var a=t[e];"string"==typeof a?(i[e]=a,o+=1):"object"==typeof a&&(r[e]=a,n+=1)})),n>0){var a=Object.keys(r),u=s.default.find(a,(function(t){return e.isOS(t)}));if(u){var c=this.satisfies(r[u]);if(void 0!==c)return c}var l=s.default.find(a,(function(t){return e.isPlatform(t)}));if(l){var f=this.satisfies(r[l]);if(void 0!==f)return f}}if(o>0){var h=Object.keys(i),d=s.default.find(h,(function(t){return e.isBrowser(t,!0)}));if(void 0!==d)return this.compareVersion(i[d])}},e.isBrowser=function(t,e){void 0===e&&(e=!1);var r=this.getBrowserName().toLowerCase(),n=t.toLowerCase(),i=s.default.getBrowserTypeByAlias(n);return e&&i&&(n=i.toLowerCase()),n===r},e.compareVersion=function(t){var e=[0],r=t,n=!1,i=this.getBrowserVersion();if("string"==typeof i)return">"===t[0]||"<"===t[0]?(r=t.substr(1),"="===t[1]?(n=!0,r=t.substr(2)):e=[],">"===t[0]?e.push(1):e.push(-1)):"="===t[0]?r=t.substr(1):"~"===t[0]&&(n=!0,r=t.substr(1)),e.indexOf(s.default.compareVersions(i,r,n))>-1},e.isOS=function(t){return this.getOSName(!0)===String(t).toLowerCase()},e.isPlatform=function(t){return this.getPlatformType(!0)===String(t).toLowerCase()},e.isEngine=function(t){return this.getEngineName(!0)===String(t).toLowerCase()},e.is=function(t,e){return void 0===e&&(e=!1),this.isBrowser(t,e)||this.isOS(t)||this.isPlatform(t)},e.some=function(t){var e=this;return void 0===t&&(t=[]),t.some((function(t){return e.is(t)}))},t}();e.default=c,t.exports=e.default},92:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=/version\/(\d+(\.?_?\d+)+)/i,a=[{test:[/googlebot/i],describe:function(t){var e={name:"Googlebot"},r=i.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,t)||i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/opera/i],describe:function(t){var e={name:"Opera"},r=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/opr\/|opios/i],describe:function(t){var e={name:"Opera"},r=i.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,t)||i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/SamsungBrowser/i],describe:function(t){var e={name:"Samsung Internet for Android"},r=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/Whale/i],describe:function(t){var e={name:"NAVER Whale Browser"},r=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/MZBrowser/i],describe:function(t){var e={name:"MZ Browser"},r=i.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,t)||i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/focus/i],describe:function(t){var e={name:"Focus"},r=i.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,t)||i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/swing/i],describe:function(t){var e={name:"Swing"},r=i.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,t)||i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/coast/i],describe:function(t){var e={name:"Opera Coast"},r=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(t){var e={name:"Opera Touch"},r=i.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,t)||i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/yabrowser/i],describe:function(t){var e={name:"Yandex Browser"},r=i.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,t)||i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/ucbrowser/i],describe:function(t){var e={name:"UC Browser"},r=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/Maxthon|mxios/i],describe:function(t){var e={name:"Maxthon"},r=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/epiphany/i],describe:function(t){var e={name:"Epiphany"},r=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/puffin/i],describe:function(t){var e={name:"Puffin"},r=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/sleipnir/i],describe:function(t){var e={name:"Sleipnir"},r=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/k-meleon/i],describe:function(t){var e={name:"K-Meleon"},r=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/micromessenger/i],describe:function(t){var e={name:"WeChat"},r=i.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,t)||i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/qqbrowser/i],describe:function(t){var e={name:/qqbrowserlite/i.test(t)?"QQ Browser Lite":"QQ Browser"},r=i.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,t)||i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/msie|trident/i],describe:function(t){var e={name:"Internet Explorer"},r=i.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/\sedg\//i],describe:function(t){var e={name:"Microsoft Edge"},r=i.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/edg([ea]|ios)/i],describe:function(t){var e={name:"Microsoft Edge"},r=i.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/vivaldi/i],describe:function(t){var e={name:"Vivaldi"},r=i.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/seamonkey/i],describe:function(t){var e={name:"SeaMonkey"},r=i.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/sailfish/i],describe:function(t){var e={name:"Sailfish"},r=i.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,t);return r&&(e.version=r),e}},{test:[/silk/i],describe:function(t){var e={name:"Amazon Silk"},r=i.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/phantom/i],describe:function(t){var e={name:"PhantomJS"},r=i.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/slimerjs/i],describe:function(t){var e={name:"SlimerJS"},r=i.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(t){var e={name:"BlackBerry"},r=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/(web|hpw)[o0]s/i],describe:function(t){var e={name:"WebOS Browser"},r=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/bada/i],describe:function(t){var e={name:"Bada"},r=i.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/tizen/i],describe:function(t){var e={name:"Tizen"},r=i.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,t)||i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/qupzilla/i],describe:function(t){var e={name:"QupZilla"},r=i.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,t)||i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/firefox|iceweasel|fxios/i],describe:function(t){var e={name:"Firefox"},r=i.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/electron/i],describe:function(t){var e={name:"Electron"},r=i.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/MiuiBrowser/i],describe:function(t){var e={name:"Miui"},r=i.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/chromium/i],describe:function(t){var e={name:"Chromium"},r=i.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,t)||i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/chrome|crios|crmo/i],describe:function(t){var e={name:"Chrome"},r=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/GSA/i],describe:function(t){var e={name:"Google Search"},r=i.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:function(t){var e=!t.test(/like android/i),r=t.test(/android/i);return e&&r},describe:function(t){var e={name:"Android Browser"},r=i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/playstation 4/i],describe:function(t){var e={name:"PlayStation 4"},r=i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/safari|applewebkit/i],describe:function(t){var e={name:"Safari"},r=i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/.*/i],describe:function(t){var e=-1!==t.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:i.default.getFirstMatch(e,t),version:i.default.getSecondMatch(e,t)}}}];e.default=a,t.exports=e.default},93:function(t,e,r){"use strict";
vendor: 4,302 bytes, line 2
2e.__esModule=!0,e.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),a=[{test:[/Roku\/DVP/],describe:function(t){var e=i.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,t);return{name:o.OS_MAP.Roku,version:e}}},{test:[/windows phone/i],describe:function(t){var e=i.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,t);return{name:o.OS_MAP.WindowsPhone,version:e}}},{test:[/windows /i],describe:function(t){var e=i.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,t),r=i.default.getWindowsVersionName(e);return{name:o.OS_MAP.Windows,version:e,versionName:r}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(t){var e={name:o.OS_MAP.iOS},r=i.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,t);return r&&(e.version=r),e}},{test:[/macintosh/i],describe:function(t){var e=i.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,t).replace(/[_\s]/g,"."),r=i.default.getMacOSVersionName(e),n={name:o.OS_MAP.MacOS,version:e};return r&&(n.versionName=r),n}},{test:[/(ipod|iphone|ipad)/i],describe:function(t){var e=i.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,t).replace(/[_\s]/g,".");return{name:o.OS_MAP.iOS,version:e}}},{test:function(t){var e=!t.test(/like android/i),r=t.test(/android/i);return e&&r},describe:function(t){var e=i.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,t),r=i.default.getAndroidVersionName(e),n={name:o.OS_MAP.Android,version:e};return r&&(n.versionName=r),n}},{test:[/(web|hpw)[o0]s/i],describe:function(t){var e=i.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,t),r={name:o.OS_MAP.WebOS};return e&&e.length&&(r.version=e),r}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(t){var e=i.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,t)||i.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,t)||i.default.getFirstMatch(/\bbb(\d+)/i,t);return{name:o.OS_MAP.BlackBerry,version:e}}},{test:[/bada/i],describe:function(t){var e=i.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,t);return{name:o.OS_MAP.Bada,version:e}}},{test:[/tizen/i],describe:function(t){var e=i.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,t);return{name:o.OS_MAP.Tizen,version:e}}},{test:[/linux/i],describe:function(){return{name:o.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:o.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(t){var e=i.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,t);return{name:o.OS_MAP.PlayStation4,version:e}}}];e.default=a,t.exports=e.default},94:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),a=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(t){var e=i.default.getFirstMatch(/(can-l01)/i,t)&&"Nova",r={type:o.PLATFORMS_MAP.mobile,vendor:"Huawei"};return e&&(r.model=e),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(t){var e=t.test(/ipod|iphone/i),r=t.test(/like (ipod|iphone)/i);return e&&!r},describe:function(t){var e=i.default.getFirstMatch(/(ipod|iphone)/i,t);return{type:o.PLATFORMS_MAP.mobile,vendor:"Apple",model:e}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(t){return"blackberry"===t.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(t){return"bada"===t.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(t){return"windows phone"===t.getBrowserName()},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}}
2,{test:function(t){var e=Number(String(t.getOSVersion()).split(".")[0]);return"android"===t.getOSName(!0)&&e>=3},describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(t){return"android"===t.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(t){return"macos"===t.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(t){return"windows"===t.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(t){return"linux"===t.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(t){return"playstation 4"===t.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}},{test:function(t){return"roku"===t.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}}];e.default=a,t.exports=e.default},95:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),a=[{test:function(t){return"microsoft edge"===t.getBrowserName(!0)},describe:function(t){if(/\sedg\//i.test(t))return{name:o.ENGINE_MAP.Blink};var e=i.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,t);return{name:o.ENGINE_MAP.EdgeHTML,version:e}}},{test:[/trident/i],describe:function(t){var e={name:o.ENGINE_MAP.Trident},r=i.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:function(t){return t.test(/presto/i)},describe:function(t){var e={name:o.ENGINE_MAP.Presto},r=i.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:function(t){var e=t.test(/gecko/i),r=t.test(/like gecko/i);return e&&!r},describe:function(t){var e={name:o.ENGINE_MAP.Gecko},r=i.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:o.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(t){var e={name:o.ENGINE_MAP.WebKit},r=i.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}}];e.default=a,t.exports=e.default}})},44680:function(t,e,r){"use strict";var n=r(28476),i=r(59962),o=i(n("String.prototype.indexOf"));t.exports=function(t,e){var r=n(t,!!e);return"function"===typeof r&&o(t,".prototype.")>-1?i(r):r}},59962:function(t,e,r){"use strict";var n=r(1199),i=r(28476),o=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||n.call(a,o),u=i("%Object.getOwnPropertyDescriptor%",!0),c=i("%Object.defineProperty%",!0),l=i("%Math.max%");if(c)try{c({},"a",{value:1})}catch(h){c=null}t.exports=function(t){var e=s(n,a,arguments);u&&c&&(u(e,"length").configurable&&c(e,"length",{value:1+l(0,t.length-(arguments.length-1))}));return e};var f=function(){return s(n,o,arguments)};c?c(t.exports,"apply",{value:f}):t.exports.apply=f},33406:function(t){"use strict";var e=function(t){return function(t){return!!t&&"object"===typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===r}(t)}(t)};var r="function"===typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(t,e){return!1!==e.clone&&e.isMergeableObject(t)?u((r=t,Array.isArray(r)?[]:{}),t,e):t;var r}function i(t,e,r){return t.concat(e).map((function(t){return n(t,r)}))}function o(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return Object.propertyIsEnumerable.call(t,e)})):[]}(t))}function a(t,e){try{return e in t}catch(r){return!1}}function s(t,e,r){var i={};return r.isMergeableObject(t)&&o(t).forEach((function(e){i[e]=n(t[e],r)})),o(e).forEach((function(o){(function(t,e){return a(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,o)||(a(t,o)&&r.isMergeableObject(e[o])?i[o]=function(t,e){if(!e.customMerge)return u;var r=e.customMerge(t);return"function"===typeof r?r:u}(o,r)(t[o],e[o],r):i[o]=n(e[o],r))})),i}function u(t,r,o){(o=o||{}).arrayMerge=o.arrayMerge||i,o.isMergeableObject=o.isMergeableObject||e,o.cloneUnlessOtherwiseSpecified=n;var a=Array.isArray(r);return a===Array.isArray(t)?a?o.arrayMerge(t,r,o):s(t,r,o):n(r,o)}u.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,r){return u(t,r,e)}),{})};var c=u;t.exports=c},54496:function(t,e,r){"use strict";
2Object.defineProperty(e,"__esModule",{value:!0}),e.keccak512=e.keccak384=e.keccak256=e.keccak224=void 0;var n=r(29322),i=r(13078);e.keccak224=(0,i.wrapHash)(n.keccak_224),e.keccak256=function(){var t=(0,i.wrapHash)(n.keccak_256);return t.create=n.keccak_256.create,t}(),e.keccak384=(0,i.wrapHash)(n.keccak_384),e.keccak512=(0,i.wrapHash)(n.keccak_512)},63564:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.secp256k1=void 0;var n=r(55033);Object.defineProperty(e,"secp256k1",{enumerable:!0,get:function(){return n.secp256k1}})},13078:function(t,e,r){"use strict";t=r.nmd(t);var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.crypto=e.wrapHash=e.equalsBytes=e.hexToBytes=e.bytesToUtf8=e.utf8ToBytes=e.createView=e.concatBytes=e.toHex=e.bytesToHex=e.assertBytes=e.assertBool=void 0;var i=n(r(28583)),o=r(54242),a=i.default.bool;e.assertBool=a;var s=i.default.bytes;e.assertBytes=s;var u=r(54242);Object.defineProperty(e,"bytesToHex",{enumerable:!0,get:function(){return u.bytesToHex}}),Object.defineProperty(e,"toHex",{enumerable:!0,get:function(){return u.bytesToHex}}),Object.defineProperty(e,"concatBytes",{enumerable:!0,get:function(){return u.concatBytes}}),Object.defineProperty(e,"createView",{enumerable:!0,get:function(){return u.createView}}),Object.defineProperty(e,"utf8ToBytes",{enumerable:!0,get:function(){return u.utf8ToBytes}}),e.bytesToUtf8=function(t){if(!(t instanceof Uint8Array))throw new TypeError("bytesToUtf8 expected Uint8Array, got ".concat(typeof t));return(new TextDecoder).decode(t)},e.hexToBytes=function(t){var e=t.startsWith("0x")?t.substring(2):t;return(0,o.hexToBytes)(e)},e.equalsBytes=function(t,e){if(t.length!==e.length)return!1;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0},e.wrapHash=function(t){return function(e){return i.default.bytes(e),t(e)}},e.crypto=function(){var e="object"===typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,r="function"===typeof t.require&&t.require.bind(t);return{node:r&&!e?r("crypto"):void 0,web:e}}()},55722:function(t,e,r){"use strict";var n=r(5139),i=r(27723);function o(t){var e=t;if("string"!==typeof e)throw new Error("[ethjs-util] while padding to even, value must be string, is currently "+typeof e+", while padToEven.");return e.length%2&&(e="0"+e),e}function a(t){return"0x"+t.toString(16)}t.exports={arrayContainsArray:function(t,e,r){if(!0!==Array.isArray(t))throw new Error("[ethjs-util] method arrayContainsArray requires input 'superset' to be an array got type '"+typeof t+"'");if(!0!==Array.isArray(e))throw new Error("[ethjs-util] method arrayContainsArray requires input 'subset' to be an array got type '"+typeof e+"'");return e[Boolean(r)?"some":"every"]((function(e){return t.indexOf(e)>=0}))},intToBuffer:function(t){var e=a(t);return new Buffer(o(e.slice(2)),"hex")},getBinarySize:function(t){if("string"!==typeof t)throw new Error("[ethjs-util] while getting binary size, method getBinarySize requires input 'str' to be type String, got '"+typeof t+"'.");return Buffer.byteLength(t,"utf8")},isHexPrefixed:n,stripHexPrefix:i,padToEven:o,intToHex:a,fromAscii:function(t){for(var e="",r=0;r<t.length;r++){var n=t.charCodeAt(r).toString(16);e+=n.length<2?"0"+n:n}return"0x"+e},fromUtf8:function(t){return"0x"+o(new Buffer(t,"utf8").toString("hex")).replace(/^0+|0+$/g,"")},toAscii:function(t){var e="",r=0,n=t.length;for("0x"===t.substring(0,2)&&(r=2);r<n;r+=2){var i=parseInt(t.substr(r,2),16);e+=String.fromCharCode(i)}return e},toUtf8:function(t){return new Buffer(o(i(t).replace(/^0+|0+$/g,"")),"hex").toString("utf8")},getKeys:function(t,e,r){if(!Array.isArray(t))throw new Error("[ethjs-util] method getKeys expecting type Array as 'params' input, got '"+typeof t+"'");if("string"!==typeof e)throw new Error("[ethjs-util] method getKeys expecting type String for input 'key' got '"+typeof e+"'.");for(var n=[],i=0;i<t.length;i++){var o=t[i][e];if(r&&!o)o="";else if("string"!==typeof o)throw new Error("invalid abi");n.push(o)}return n},isHexString:function(t,e){return!("string"!==typeof t||!t.match(/^0x[0-9A-Fa-f]*$/))&&(!e||t.length===2+2*e)}}},20548:function(t){"use strict";var e=Object.prototype.hasOwnProperty,r="~";function n(){}function i(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function o(t,e,n,o,a){if("function"!==typeof n)throw new TypeError("The listener must be a function");var s=new i(n,o||t,a),u=r?r+e:e;return t._events[u]?t._events[u].fn?t._events[u]=[t._events[u],s]:t._events[u].push(s):(t._events[u]=s,t._eventsCount++),t}function a(t,e){0===--t._eventsCount?t._events=new n:delete t._events[e]}function s(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),s.prototype.eventNames=function(){var t,n,i=[];if(0===this._eventsCount)return i;for(n in t=this._events)e.call(t,n)&&i.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},s.prototype.listeners=function(t){var e=r?r+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,o=n.length,a=new Array(o);i<o;i++)a[i]=n[i].fn;return a},s.prototype.listenerCount=function(t){var e=r?r+t:t,n=this._events[e];return n?n.fn?1:n.length:0},s.prototype.emit=function(t,e,n,i,o,a){var s=r?r+t:t;if(!this._events[s])return!1;var u,c,l=this._events[s],f=arguments.length;
2if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,e),!0;case 3:return l.fn.call(l.context,e,n),!0;case 4:return l.fn.call(l.context,e,n,i),!0;case 5:return l.fn.call(l.context,e,n,i,o),!0;case 6:return l.fn.call(l.context,e,n,i,o,a),!0}for(c=1,u=new Array(f-1);c<f;c++)u[c-1]=arguments[c];l.fn.apply(l.context,u)}else{var h,d=l.length;for(c=0;c<d;c++)switch(l[c].once&&this.removeListener(t,l[c].fn,void 0,!0),f){case 1:l[c].fn.call(l[c].context);break;case 2:l[c].fn.call(l[c].context,e);break;case 3:l[c].fn.call(l[c].context,e,n);break;case 4:l[c].fn.call(l[c].context,e,n,i);break;default:if(!u)for(h=1,u=new Array(f-1);h<f;h++)u[h-1]=arguments[h];l[c].fn.apply(l[c].context,u)}}return!0},s.prototype.on=function(t,e,r){return o(this,t,e,r,!1)},s.prototype.once=function(t,e,r){return o(this,t,e,r,!0)},s.prototype.removeListener=function(t,e,n,i){var o=r?r+t:t;if(!this._events[o])return this;if(!e)return a(this,o),this;var s=this._events[o];if(s.fn)s.fn!==e||i&&!s.once||n&&s.context!==n||a(this,o);else{for(var u=0,c=[],l=s.length;u<l;u++)(s[u].fn!==e||i&&!s[u].once||n&&s[u].context!==n)&&c.push(s[u]);c.length?this._events[o]=1===c.length?c[0]:c:a(this,o)}return this},s.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&a(this,e)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,t.exports=s},68041:function(t){"use strict";var e,r="object"===typeof Reflect?Reflect:null,n=r&&"function"===typeof r.apply?r.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};e=r&&"function"===typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var i=Number.isNaN||function(t){return t!==t};function o(){o.init.call(this)}t.exports=o,t.exports.once=function(t,e){return new Promise((function(r,n){function i(r){t.removeListener(e,o),n(r)}function o(){"function"===typeof t.removeListener&&t.removeListener("error",i),r([].slice.call(arguments))}v(t,e,o,{once:!0}),"error"!==e&&function(t,e,r){"function"===typeof t.on&&v(t,"error",e,r)}(t,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(t){if("function"!==typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function u(t){return void 0===t._maxListeners?o.defaultMaxListeners:t._maxListeners}function c(t,e,r,n){var i,o,a,c;if(s(r),void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),o=t._events),a=o[e]),void 0===a)a=o[e]=r,++t._eventsCount;else if("function"===typeof a?a=o[e]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(i=u(t))>0&&a.length>i&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=t,l.type=e,l.count=a.length,c=l,console&&console.warn&&console.warn(c)}return t}function l(){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 f(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},i=l.bind(n);return i.listener=r,n.wrapFn=i,i}function h(t,e,r){var n=t._events;if(void 0===n)return[];var i=n[e];return void 0===i?[]:"function"===typeof i?r?[i.listener||i]:[i]:r?function(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}(i):p(i,i.length)}function d(t){var e=this._events;if(void 0!==e){var r=e[t];if("function"===typeof r)return 1;if(void 0!==r)return r.length}return 0}function p(t,e){for(var r=new Array(e),n=0;n<e;++n)r[n]=t[n];return r}function v(t,e,r,n){if("function"===typeof t.on)n.once?t.once(e,r):t.on(e,r);else{if("function"!==typeof t.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t);t.addEventListener(e,(function i(o){n.once&&t.removeEventListener(e,i),r(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a}
2,set:function(t){if("number"!==typeof t||t<0||i(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");a=t}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(t){if("number"!==typeof t||t<0||i(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(t){for(var e=[],r=1;r<arguments.length;r++)e.push(arguments[r]);var i="error"===t,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var a;if(e.length>0&&(a=e[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=o[t];if(void 0===u)return!1;if("function"===typeof u)n(u,this,e);else{var c=u.length,l=p(u,c);for(r=0;r<c;++r)n(l[r],this,e)}return!0},o.prototype.addListener=function(t,e){return c(this,t,e,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(t,e){return c(this,t,e,!0)},o.prototype.once=function(t,e){return s(e),this.on(t,f(this,t,e)),this},o.prototype.prependOnceListener=function(t,e){return s(e),this.prependListener(t,f(this,t,e)),this},o.prototype.removeListener=function(t,e){var r,n,i,o,a;if(s(e),void 0===(n=this._events))return this;if(void 0===(r=n[t]))return this;if(r===e||r.listener===e)0===--this._eventsCount?this._events=Object.create(null):(delete n[t],n.removeListener&&this.emit("removeListener",t,r.listener||e));else if("function"!==typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===e||r[o].listener===e){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(r,i),1===r.length&&(n[t]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",t,a||e)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(t){var e,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[t]&&(0===--this._eventsCount?this._events=Object.create(null):delete r[t]),this;if(0===arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"===typeof(e=r[t]))this.removeListener(t,e);else if(void 0!==e)for(n=e.length-1;n>=0;n--)this.removeListener(t,e[n]);return this},o.prototype.listeners=function(t){return h(this,t,!0)},o.prototype.rawListeners=function(t){return h(this,t,!1)},o.listenerCount=function(t,e){return"function"===typeof t.listenerCount?t.listenerCount(e):d.call(t,e)},o.prototype.listenerCount=d,o.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},45767:function(t,e,r){"use strict";var n=r(8866),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){if(!n(e))throw new TypeError("iterator must be a function");var a;arguments.length>=3&&(a=r),"[object Array]"===i.call(t)?function(t,e,r){for(var n=0,i=t.length;n<i;n++)o.call(t,n)&&(null==r?e(t[n],n,t):e.call(r,t[n],n,t))}(t,e,a):"string"===typeof t?function(t,e,r){for(var n=0,i=t.length;n<i;n++)null==r?e(t.charAt(n),n,t):e.call(r,t.charAt(n),n,t)}(t,e,a):function(t,e,r){for(var n in t)o.call(t,n)&&(null==r?e(t[n],n,t):e.call(r,t[n],n,t))}(t,e,a)}},2781:function(t){"use strict";var e=Array.prototype.slice,r=Object.prototype.toString;t.exports=function(t){var n=this;if("function"!==typeof n||"[object Function]"!==r.call(n))throw new TypeError("Function.prototype.bind called on incompatible "+n);for(var i,o=e.call(arguments,1),a=Math.max(0,n.length-o.length),s=[],u=0;u<a;u++)s.push("$"+u);if(i=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var r=n.apply(this,o.concat(e.call(arguments)));return Object(r)===r?r:this}return n.apply(t,o.concat(e.call(arguments)))})),n.prototype){var c=function(){};c.prototype=n.prototype,i.prototype=new c,c.prototype=null}return i}},1199:function(t,e,r){"use strict";var n=r(2781);t.exports=Function.prototype.bind||n},28476:function(t,e,r){"use strict";var n,i=SyntaxError,o=Function,a=TypeError,s=function(t){try{return o('"use strict"; return ('+t+").constructor;")()}catch(e){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(N){u=null}var c=function(){throw new a},l=u?function(){try{return c}catch(t){try{return u(arguments,"callee").get}catch(e){return c}}}
vendor: 1,496 bytes, line 2
2():c,f=r(95520)(),h=r(87593)(),d=Object.getPrototypeOf||(h?function(t){return t.__proto__}:null),p={},v="undefined"!==typeof Uint8Array&&d?d(Uint8Array):n,m={"%AggregateError%":"undefined"===typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":f&&d?d([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"===typeof Atomics?n:Atomics,"%BigInt%":"undefined"===typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"===typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"===typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"===typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":p,"%Int8Array%":"undefined"===typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
2IteratorPrototype%":f&&d?d(d([][Symbol.iterator]())):n,"%JSON%":"object"===typeof JSON?JSON:n,"%Map%":"undefined"===typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&f&&d?d((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?n:Promise,"%Proxy%":"undefined"===typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"===typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&f&&d?d((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f&&d?d(""[Symbol.iterator]()):n,"%Symbol%":f?Symbol:n,"%SyntaxError%":i,"%ThrowTypeError%":l,"%TypedArray%":v,"%TypeError%":a,"%Uint8Array%":"undefined"===typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"===typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?n:WeakSet};if(d)try{null.error}catch(N){var g=d(d(N));m["%Error.prototype%"]=g}var y=function t(e){var r;if("%AsyncFunction%"===e)r=s("async function () {}");else if("%GeneratorFunction%"===e)r=s("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=s("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var i=t("%AsyncGenerator%");i&&d&&(r=d(i.prototype))}return m[e]=r,r},b={"%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"]},w=r(1199),_=r(37838),x=w.call(Function.call,Array.prototype.concat),E=w.call(Function.apply,Array.prototype.splice),A=w.call(Function.call,String.prototype.replace),M=w.call(Function.call,String.prototype.slice),k=w.call(Function.call,RegExp.prototype.exec),S=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,I=/\\(\\)?/g,P=function(t,e){var r,n=t;if(_(b,n)&&(n="%"+(r=b[n])[0]+"%"),_(m,n)){var o=m[n];if(o===p&&(o=y(n)),"undefined"===typeof o&&!e)throw new a("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new i("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!==typeof t||0===t.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof e)throw new a('"allowMissing" argument must be a boolean');if(null===k(/^%?[^%]*%?$/,t))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(t){var e=M(t,0,1),r=M(t,-1);if("%"===e&&"%"!==r)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new i("invalid intrinsic syntax, expected opening `%`");var n=[];return A(t,S,(function(t,e,r,i){n[n.length]=r?A(i,I,"$1"):e||t})),n}(t),n=r.length>0?r[0]:"",o=P("%"+n+"%",e),s=o.name,c=o.value,l=!1,f=o.alias;f&&(n=f[0],E(r,x([0,1],f)));for(var h=1,d=!0;h<r.length;h+=1){var p=r[h],v=M(p,0,1),g=M(p,-1);if(('"'===v||"'"===v||"`"===v||'"'===g||"'"===g||"`"===g)&&v!==g)throw new i("property names with quotes must have matching quotes");if("constructor"!==p&&d||(l=!0),_(m,s="%"+(n+="."+p)+"%"))c=m[s];else if(null!=c){if(!(p in c)){if(!e)throw new a("base intrinsic for "+t+" exists, but the property is not available.");return}if(u&&h+1>=r.length){var y=u(c,p);c=(d=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:c[p]}else d=_(c,p),c=c[p];d&&!l&&(m[s]=c)}}return c}},56103:function(t,e,r){"use strict";var n=r(28476)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(i){n=null}t.exports=n},87593:function(t){"use strict";var e={foo:{}},r=Object;t.exports=function(){return{__proto__:e}.foo===e.foo&&!({__proto__:null}instanceof r)}},95520:function(t,e,r){"use strict";var n="undefined"!==typeof Symbol&&Symbol,i=r(80541);t.exports=function(){return"function"===typeof n&&("function"===typeof Symbol&&("symbol"===typeof n("foo")&&("symbol"===typeof Symbol("bar")&&i())))}},80541:function(t){"use strict";
2t.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"===typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"===typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},48857:function(t,e,r){"use strict";var n=r(80541);t.exports=function(){return n()&&!!Symbol.toStringTag}},37838:function(t,e,r){"use strict";var n=r(1199);t.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},37553:function(t,e,r){var n=e;n.utils=r(67657),n.common=r(43345),n.sha=r(90395),n.ripemd=r(85751),n.hmac=r(79161),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},43345:function(t,e,r){"use strict";var n=r(67657),i=r(65701);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}e.BlockHash=o,o.prototype.update=function(t,e){if(t=n.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var r=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-r,t.length),0===this.pending.length&&(this.pending=null),t=n.join32(t,0,t.length-r,this.endian);for(var i=0;i<t.length;i+=this._delta32)this._update(t,i,i+this._delta32)}return this},o.prototype.digest=function(t){return this.update(this._pad()),i(null===this.pending),this._digest(t)},o.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,r=e-(t+this.padLength)%e,n=new Array(r+this.padLength);n[0]=128;for(var i=1;i<r;i++)n[i]=0;if(t<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)n[i++]=0;n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=t>>>24&255,n[i++]=t>>>16&255,n[i++]=t>>>8&255,n[i++]=255&t}else for(n[i++]=255&t,n[i++]=t>>>8&255,n[i++]=t>>>16&255,n[i++]=t>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o<this.padLength;o++)n[i++]=0;return n}},79161:function(t,e,r){"use strict";var n=r(67657),i=r(65701);function o(t,e,r){if(!(this instanceof o))return new o(t,e,r);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(e,r))}t.exports=o,o.prototype._init=function(t){t.length>this.blockSize&&(t=(new this.Hash).update(t).digest()),i(t.length<=this.blockSize);for(var e=t.length;e<this.blockSize;e++)t.push(0);for(e=0;e<t.length;e++)t[e]^=54;for(this.inner=(new this.Hash).update(t),e=0;e<t.length;e++)t[e]^=106;this.outer=(new this.Hash).update(t)},o.prototype.update=function(t,e){return this.inner.update(t,e),this},o.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)}},85751:function(t,e,r){"use strict";var n=r(67657),i=r(43345),o=n.rotl32,a=n.sum32,s=n.sum32_3,u=n.sum32_4,c=i.BlockHash;function l(){if(!(this instanceof l))return new l;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function f(t,e,r,n){return t<=15?e^r^n:t<=31?e&r|~e&n:t<=47?(e|~r)^n:t<=63?e&n|r&~n:e^(r|~n)}function h(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}function d(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0}n.inherits(l,c),e.ripemd160=l,l.blockSize=512,l.outSize=160,l.hmacStrength=192,l.padLength=64,l.prototype._update=function(t,e){for(var r=this.h[0],n=this.h[1],i=this.h[2],c=this.h[3],l=this.h[4],y=r,b=n,w=i,_=c,x=l,E=0;E<80;E++){var A=a(o(u(r,f(E,n,i,c),t[p[E]+e],h(E)),m[E]),l);r=l,l=c,c=o(i,10),i=n,n=A,A=a(o(u(y,f(79-E,b,w,_),t[v[E]+e],d(E)),g[E]),x),y=x,x=_,_=o(w,10),w=b,b=A}A=s(this.h[1],i,_),this.h[1]=s(this.h[2],c,x),this.h[2]=s(this.h[3],l,y),this.h[3]=s(this.h[4],r,b),this.h[4]=s(this.h[0],n,w),this.h[0]=A},l.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var p=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],v=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],m=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],g=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},90395:function(t,e,r){"use strict";e.sha1=r(21405),e.sha224=r(97452),e.sha256=r(51611),e.sha384=r(40996),e.sha512=r(166)},21405:function(t,e,r){"use strict";var n=r(67657),i=r(43345),o=r(53089),a=n.rotl32,s=n.sum32,u=n.sum32_5,c=o.ft_1,l=i.BlockHash,f=[1518500249,1859775393,2400959708,3395469782];function h(){if(!(this instanceof h))return new h;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}
vendor: 4,803 bytes, line 2
2n.inherits(h,l),t.exports=h,h.blockSize=512,h.outSize=160,h.hmacStrength=80,h.padLength=64,h.prototype._update=function(t,e){for(var r=this.W,n=0;n<16;n++)r[n]=t[e+n];for(;n<r.length;n++)r[n]=a(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var i=this.h[0],o=this.h[1],l=this.h[2],h=this.h[3],d=this.h[4];for(n=0;n<r.length;n++){var p=~~(n/20),v=u(a(i,5),c(p,o,l,h),d,r[n],f[p]);d=h,h=l,l=a(o,30),o=i,i=v}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],l),this.h[3]=s(this.h[3],h),this.h[4]=s(this.h[4],d)},h.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},97452:function(t,e,r){"use strict";var n=r(67657),i=r(51611);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(o,i),t.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},51611:function(t,e,r){"use strict";var n=r(67657),i=r(43345),o=r(53089),a=r(65701),s=n.sum32,u=n.sum32_4,c=n.sum32_5,l=o.ch32,f=o.maj32,h=o.s0_256,d=o.s1_256,p=o.g0_256,v=o.g1_256,m=i.BlockHash,g=[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];function y(){if(!(this instanceof y))return new y;m.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=g,this.W=new Array(64)}n.inherits(y,m),t.exports=y,y.blockSize=512,y.outSize=256,y.hmacStrength=192,y.padLength=64,y.prototype._update=function(t,e){for(var r=this.W,n=0;n<16;n++)r[n]=t[e+n];for(;n<r.length;n++)r[n]=u(v(r[n-2]),r[n-7],p(r[n-15]),r[n-16]);var i=this.h[0],o=this.h[1],m=this.h[2],g=this.h[3],y=this.h[4],b=this.h[5],w=this.h[6],_=this.h[7];for(a(this.k.length===r.length),n=0;n<r.length;n++){var x=c(_,d(y),l(y,b,w),this.k[n],r[n]),E=s(h(i),f(i,o,m));_=w,w=b,b=y,y=s(g,x),g=m,m=o,o=i,i=s(x,E)}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],m),this.h[3]=s(this.h[3],g),this.h[4]=s(this.h[4],y),this.h[5]=s(this.h[5],b),this.h[6]=s(this.h[6],w),this.h[7]=s(this.h[7],_)},y.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},40996:function(t,e,r){"use strict";var n=r(67657),i=r(166);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(o,i),t.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},166:function(t,e,r){"use strict";var n=r(67657),i=r(43345),o=r(65701),a=n.rotr64_hi,s=n.rotr64_lo,u=n.shr64_hi,c=n.shr64_lo,l=n.sum64,f=n.sum64_hi,h=n.sum64_lo,d=n.sum64_4_hi,p=n.sum64_4_lo,v=n.sum64_5_hi,m=n.sum64_5_lo,g=i.BlockHash,y=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,
vendor: 6,023 bytes, line 2
21322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function b(){if(!(this instanceof b))return new b;g.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=y,this.W=new Array(160)}function w(t,e,r,n,i){var o=t&r^~t&i;return o<0&&(o+=4294967296),o}function _(t,e,r,n,i,o){var a=e&n^~e&o;return a<0&&(a+=4294967296),a}function x(t,e,r,n,i){var o=t&r^t&i^r&i;return o<0&&(o+=4294967296),o}function E(t,e,r,n,i,o){var a=e&n^e&o^n&o;return a<0&&(a+=4294967296),a}function A(t,e){var r=a(t,e,28)^a(e,t,2)^a(e,t,7);return r<0&&(r+=4294967296),r}function M(t,e){var r=s(t,e,28)^s(e,t,2)^s(e,t,7);return r<0&&(r+=4294967296),r}function k(t,e){var r=a(t,e,14)^a(t,e,18)^a(e,t,9);return r<0&&(r+=4294967296),r}function S(t,e){var r=s(t,e,14)^s(t,e,18)^s(e,t,9);return r<0&&(r+=4294967296),r}function I(t,e){var r=a(t,e,1)^a(t,e,8)^u(t,e,7);return r<0&&(r+=4294967296),r}function P(t,e){var r=s(t,e,1)^s(t,e,8)^c(t,e,7);return r<0&&(r+=4294967296),r}function N(t,e){var r=a(t,e,19)^a(e,t,29)^u(t,e,6);return r<0&&(r+=4294967296),r}function C(t,e){var r=s(t,e,19)^s(e,t,29)^c(t,e,6);return r<0&&(r+=4294967296),r}n.inherits(b,g),t.exports=b,b.blockSize=1024,b.outSize=512,b.hmacStrength=192,b.padLength=128,b.prototype._prepareBlock=function(t,e){for(var r=this.W,n=0;n<32;n++)r[n]=t[e+n];for(;n<r.length;n+=2){var i=N(r[n-4],r[n-3]),o=C(r[n-4],r[n-3]),a=r[n-14],s=r[n-13],u=I(r[n-30],r[n-29]),c=P(r[n-30],r[n-29]),l=r[n-32],f=r[n-31];r[n]=d(i,o,a,s,u,c,l,f),r[n+1]=p(i,o,a,s,u,c,l,f)}},b.prototype._update=function(t,e){this._prepareBlock(t,e);var r=this.W,n=this.h[0],i=this.h[1],a=this.h[2],s=this.h[3],u=this.h[4],c=this.h[5],d=this.h[6],p=this.h[7],g=this.h[8],y=this.h[9],b=this.h[10],I=this.h[11],P=this.h[12],N=this.h[13],C=this.h[14],O=this.h[15];o(this.k.length===r.length);for(var T=0;T<r.length;T+=2){var R=C,B=O,L=k(g,y),Z=S(g,y),j=w(g,y,b,I,P),F=_(g,y,b,I,P,N),U=this.k[T],D=this.k[T+1],H=r[T],z=r[T+1],$=v(R,B,L,Z,j,F,U,D,H,z),q=m(R,B,L,Z,j,F,U,D,H,z);R=A(n,i),B=M(n,i),L=x(n,i,a,s,u),Z=E(n,i,a,s,u,c);var G=f(R,B,L,Z),W=h(R,B,L,Z);C=P,O=N,P=b,N=I,b=g,I=y,g=f(d,p,$,q),y=h(p,p,$,q),d=u,p=c,u=a,c=s,a=n,s=i,n=f($,q,G,W),i=h($,q,G,W)}l(this.h,0,n,i),l(this.h,2,a,s),l(this.h,4,u,c),l(this.h,6,d,p),l(this.h,8,g,y),l(this.h,10,b,I),l(this.h,12,P,N),l(this.h,14,C,O)},b.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},53089:function(t,e,r){"use strict";var n=r(67657).rotr32;function i(t,e,r){return t&e^~t&r}function o(t,e,r){return t&e^t&r^e&r}function a(t,e,r){return t^e^r}e.ft_1=function(t,e,r,n){return 0===t?i(e,r,n):1===t||3===t?a(e,r,n):2===t?o(e,r,n):void 0},e.ch32=i,e.maj32=o,e.p32=a,e.s0_256=function(t){return n(t,2)^n(t,13)^n(t,22)},e.s1_256=function(t){return n(t,6)^n(t,11)^n(t,25)},e.g0_256=function(t){return n(t,7)^n(t,18)^t>>>3},e.g1_256=function(t){return n(t,17)^n(t,19)^t>>>10}},67657:function(t,e,r){"use strict";var n=r(65701),i=r(80273);function o(t,e){return 55296===(64512&t.charCodeAt(e))&&(!(e<0||e+1>=t.length)&&56320===(64512&t.charCodeAt(e+1)))}function a(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function s(t){return 1===t.length?"0"+t:t}function u(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}e.inherits=i,e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if("string"===typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!==0&&(t="0"+t),i=0;i<t.length;i+=2)r.push(parseInt(t[i]+t[i+1],16))}else for(var n=0,i=0;i<t.length;i++){var a=t.charCodeAt(i);a<128?r[n++]=a:a<2048?(r[n++]=a>>6|192,r[n++]=63&a|128):o(t,i)?(a=65536+((1023&a)<<10)+(1023&t.charCodeAt(++i)),r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=63&a|128):(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=63&a|128)}else for(i=0;i<t.length;i++)r[i]=0|t[i];return r},e.toHex=function(t){for(var e="",r=0;r<t.length;r++)e+=s(t[r].toString(16));return e},e.htonl=a,e.toHex32=function(t,e){for(var r="",n=0;n<t.length;n++){var i=t[n];"little"===e&&(i=a(i)),r+=u(i.toString(16))}return r},e.zero2=s,e.zero8=u,e.join32=function(t,e,r,i){var o=r-e;n(o%4===0);for(var a=new Array(o/4),s=0,u=e;s<a.length;s++,u+=4){var c;c="big"===i?t[u]<<24|t[u+1]<<16|t[u+2]<<8|t[u+3]:t[u+3]<<24|t[u+2]<<16|t[u+1]<<8|t[u],a[s]=c>>>0}return a},e.split32=function(t,e){for(var r=new Array(4*t.length),n=0,i=0;n<t.length;n++,i+=4){var o=t[n];"big"===e?(r[i]=o>>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},e.rotr32=function(t,e){return t>>>e|t<<32-e},e.rotl32=function(t,e){return t<<e|t>>>32-e},e.sum32=function(t,e){return t+e>>>0},e.sum32_3=function(t,e,r){return t+e+r>>>0},e.sum32_4=function(t,e,r,n){return t+e+r+n>>>0},e.sum32_5=function(t,e,r,n,i){return t+e+r+n+i>>>0},e.sum64=function(t,e,r,n){var i=t[e],o=n+t[e+1]>>>0,a=(o<n?1:0)+r+i;t[e]=a>>>0,t[e+1]=o},e.sum64_hi=function(t,e,r,n){return(e+n>>>0<e?1:0)+t+r>>>0},e.sum64_lo=function(t,e,r,n){return e+n>>>0},e.sum64_4_hi=function(t,e,r,n,i,o,a,s){var u=0,c=e;return u+=(c=c+n>>>0)<e?1:0,u+=(c=c+o>>>0)<o?1:0,t+r+i+a+(u+=(c=c+s>>>0)<s?1:0)>>>0},e.sum64_4_lo=function(t,e,r,n,i,o,a,s){return e+n+o+s>>>0},e.sum64_5_hi=function(t,e,r,n,i,o,a,s,u,c){var l=0,f=e;return l+=(f=f+n>>>
20)<e?1:0,l+=(f=f+o>>>0)<o?1:0,l+=(f=f+s>>>0)<s?1:0,t+r+i+a+u+(l+=(f=f+c>>>0)<c?1:0)>>>0},e.sum64_5_lo=function(t,e,r,n,i,o,a,s,u,c){return e+n+o+s+c>>>0},e.rotr64_hi=function(t,e,r){return(e<<32-r|t>>>r)>>>0},e.rotr64_lo=function(t,e,r){return(t<<32-r|e>>>r)>>>0},e.shr64_hi=function(t,e,r){return t>>>r},e.shr64_lo=function(t,e,r){return(t<<32-r|e>>>r)>>>0}},80273:function(t){"function"===typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},95021:function(t,e,r){"use strict";var n=r(48857)(),i=r(44680)("Object.prototype.toString"),o=function(t){return!(n&&t&&"object"===typeof t&&Symbol.toStringTag in t)&&"[object Arguments]"===i(t)},a=function(t){return!!o(t)||null!==t&&"object"===typeof t&&"number"===typeof t.length&&t.length>=0&&"[object Array]"!==i(t)&&"[object Function]"===i(t.callee)},s=function(){return o(arguments)}();o.isLegacyArguments=a,t.exports=s?o:a},8866:function(t){"use strict";var e,r,n=Function.prototype.toString,i="object"===typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"===typeof i&&"function"===typeof Object.defineProperty)try{e=Object.defineProperty({},"length",{get:function(){throw r}}),r={},i((function(){throw 42}),null,e)}catch(d){d!==r&&(i=null)}else i=null;var o=/^\s*class\b/,a=function(t){try{var e=n.call(t);return o.test(e)}catch(r){return!1}},s=function(t){try{return!a(t)&&(n.call(t),!0)}catch(e){return!1}},u=Object.prototype.toString,c="function"===typeof Symbol&&!!Symbol.toStringTag,l=!(0 in[,]),f=function(){return!1};if("object"===typeof document){var h=document.all;u.call(h)===u.call(document.all)&&(f=function(t){if((l||!t)&&("undefined"===typeof t||"object"===typeof t))try{var e=u.call(t);return("[object HTMLAllCollection]"===e||"[object HTML document.all class]"===e||"[object HTMLCollection]"===e||"[object Object]"===e)&&null==t("")}catch(r){}return!1})}t.exports=i?function(t){if(f(t))return!0;if(!t)return!1;if("function"!==typeof t&&"object"!==typeof t)return!1;try{i(t,null,e)}catch(n){if(n!==r)return!1}return!a(t)&&s(t)}:function(t){if(f(t))return!0;if(!t)return!1;if("function"!==typeof t&&"object"!==typeof t)return!1;if(c)return s(t);if(a(t))return!1;var e=u.call(t);return!("[object Function]"!==e&&"[object GeneratorFunction]"!==e&&!/^\[object HTML/.test(e))&&s(t)}},7469:function(t,e,r){"use strict";var n,i=Object.prototype.toString,o=Function.prototype.toString,a=/^\s*(?:function)?\*/,s=r(48857)(),u=Object.getPrototypeOf;t.exports=function(t){if("function"!==typeof t)return!1;if(a.test(o.call(t)))return!0;if(!s)return"[object GeneratorFunction]"===i.call(t);if(!u)return!1;if("undefined"===typeof n){var e=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(t){}}();n=!!e&&u(e)}return u(t)===n}},5139:function(t){t.exports=function(t){if("string"!==typeof t)throw new Error("[is-hex-prefixed] value must be type 'string', is currently type "+typeof t+", while checking isHexPrefixed.");return"0x"===t.slice(0,2)}},47397:function(t,e,r){var n=r(66115).default,i=r(17061).default,o=r(17156).default,a=r(42122).default,s=r(27424).default,u=r(3515).default,c=r(61655).default,l=r(26389).default,f=r(33496).default,h=r(861).default,d=r(38416).default,p=r(74704).default,v=r(56690).default,m=r(89728).default;self,t.exports=function(){return t={7629:function(t,e,r){"use strict";var n=r(375),i=r(8571),o=r(9474),a=r(1687),s=r(8652),u=r(8160),c=r(3292),l=r(6354),f=r(8901),g=r(9708),y=r(6914),b=r(2294),w=r(6133),_=r(1152),x=r(8863),E=r(2036),A={Base:function(){function t(e){v(this,t),this.type=e,this.$_root=null,this._definition={},this._reset()}return m(t,[{key:"_reset",value:function(){this._ids=new b.Ids,this._preferences=null,this._refs=new w.Manager,this._cache=null,this._valids=null,this._invalids=null,this._flags={},this._rules=[],this._singleRules=new Map,this.$_terms={},this.$_temp={ruleset:null,whens:{}}}},{key:"describe",value:function(){return n("function"==typeof g.describe,"Manifest functionality disabled"),g.describe(this)}},{key:"allow",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return u.verifyFlat(e,"allow"),this._values(e,"_valids")}},{key:"alter",value:function(t){n(t&&"object"==typeof t&&!Array.isArray(t),"Invalid targets argument"),n(!this._inRuleset(),"Cannot set alterations inside a ruleset");var e=this.clone();for(var r in e.$_terms.alterations=e.$_terms.alterations||[],t){var i=t[r];n("function"==typeof i,"Alteration adjuster for",r,"must be a function"),e.$_terms.alterations.push({target:r,adjuster:i})}return e.$_temp.ruleset=!1,e}},{key:"artifact",value:function(t){return n(void 0!==t,"Artifact cannot be undefined"),n(!this._cache,"Cannot set an artifact with a rule c
2ache"),this.$_setFlag("artifact",t)}},{key:"cast",value:function(t){return n(!1===t||"string"==typeof t,"Invalid to value"),n(!1===t||this._definition.cast[t],"Type",this.type,"does not support casting to",t),this.$_setFlag("cast",!1===t?void 0:t)}},{key:"default",value:function(t,e){return this._default("default",t,e)}},{key:"description",value:function(t){return n(t&&"string"==typeof t,"Description must be a non-empty string"),this.$_setFlag("description",t)}},{key:"empty",value:function(t){var e=this.clone();return void 0!==t&&(t=e.$_compile(t,{override:!1})),e.$_setFlag("empty",t,{clone:!1})}},{key:"error",value:function(t){return n(t,"Missing error"),n(t instanceof Error||"function"==typeof t,"Must provide a valid Error object or a function"),this.$_setFlag("error",t)}},{key:"example",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n(void 0!==t,"Missing example"),u.assertOptions(e,["override"]),this._inner("examples",t,{single:!0,override:e.override})}},{key:"external",value:function(t,e){return"object"==typeof t&&(n(!e,"Cannot combine options with description"),e=t.description,t=t.method),n("function"==typeof t,"Method must be a function"),n(void 0===e||e&&"string"==typeof e,"Description must be a non-empty string"),this._inner("externals",{method:t,description:e},{single:!0})}},{key:"failover",value:function(t,e){return this._default("failover",t,e)}},{key:"forbidden",value:function(){return this.presence("forbidden")}},{key:"id",value:function(t){return t?(n("string"==typeof t,"id must be a non-empty string"),n(/^[^\.]+$/.test(t),"id cannot contain period character"),this.$_setFlag("id",t)):this.$_setFlag("id",void 0)}},{key:"invalid",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this._values(e,"_invalids")}},{key:"label",value:function(t){return n(t&&"string"==typeof t,"Label name must be a non-empty string"),this.$_setFlag("label",t)}},{key:"meta",value:function(t){return n(void 0!==t,"Meta cannot be undefined"),this._inner("metas",t,{single:!0})}},{key:"note",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];n(e.length,"Missing notes");for(var i=0,o=e;i<o.length;i++){var a=o[i];n(a&&"string"==typeof a,"Notes must be non-empty strings")}return this._inner("notes",e)}},{key:"only",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return n("boolean"==typeof t,"Invalid mode:",t),this.$_setFlag("only",t)}},{key:"optional",value:function(){return this.presence("optional")}},{key:"prefs",value:function(t){n(t,"Missing preferences"),n(void 0===t.context,"Cannot override context"),n(void 0===t.externals,"Cannot override externals"),n(void 0===t.warnings,"Cannot override warnings"),n(void 0===t.debug,"Cannot override debug"),u.checkPreferences(t);var e=this.clone();return e._preferences=u.preferences(e._preferences,t),e}},{key:"presence",value:function(t){return n(["optional","required","forbidden"].includes(t),"Unknown presence mode",t),this.$_setFlag("presence",t)}},{key:"raw",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.$_setFlag("result",t?"raw":void 0)}},{key:"result",value:function(t){return n(["raw","strip"].includes(t),"Unknown result mode",t),this.$_setFlag("result",t)}},{key:"required",value:function(){return this.presence("required")}},{key:"strict",value:function(t){var e=this.clone(),r=void 0!==t&&!t;return e._preferences=u.preferences(e._preferences,{convert:r}),e}},{key:"strip",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.$_setFlag("result",t?"strip":void 0)}},{key:"tag",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];n(e.length,"Missing tags");for(var i=0,o=e;i<o.length;i++){var a=o[i];n(a&&"string"==typeof a,"Tags must be non-empty strings")}return this._inner("tags",e)}},{key:"unit",value:function(t){return n(t&&"string"==typeof t,"Unit name must be a non-empty string"),this.$_setFlag("unit",t)}},{key:"valid",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];u.verifyFlat(e,"valid");var n=this.allow.apply(this,e);
2return n.$_setFlag("only",!!n._valids,{clone:!1}),n}},{key:"when",value:function(t,e){var r=this.clone();r.$_terms.whens||(r.$_terms.whens=[]);var i=c.when(r,t,e);if(!["any","link"].includes(r.type)){var o,a=i.is?[i]:i.switch,s=p(a);try{for(s.s();!(o=s.n()).done;){var u=o.value;n(!u.then||"any"===u.then.type||u.then.type===r.type,"Cannot combine",r.type,"with",u.then&&u.then.type),n(!u.otherwise||"any"===u.otherwise.type||u.otherwise.type===r.type,"Cannot combine",r.type,"with",u.otherwise&&u.otherwise.type)}}catch(l){s.e(l)}finally{s.f()}}return r.$_terms.whens.push(i),r.$_mutateRebuild()}},{key:"cache",value:function(t){n(!this._inRuleset(),"Cannot set caching inside a ruleset"),n(!this._cache,"Cannot override schema cache"),n(void 0===this._flags.artifact,"Cannot cache a rule with an artifact");var e=this.clone();return e._cache=t||s.provider.provision(),e.$_temp.ruleset=!1,e}},{key:"clone",value:function(){var t=Object.create(Object.getPrototypeOf(this));return this._assign(t)}},{key:"concat",value:function(t){n(u.isSchema(t),"Invalid schema object"),n("any"===this.type||"any"===t.type||t.type===this.type,"Cannot merge type",this.type,"with another type:",t.type),n(!this._inRuleset(),"Cannot concatenate onto a schema with open ruleset"),n(!t._inRuleset(),"Cannot concatenate a schema with open ruleset");var e=this.clone();if("any"===this.type&&"any"!==t.type){for(var r=t.clone(),i=0,o=Object.keys(e);i<o.length;i++){var s=o[i];"type"!==s&&(r[s]=e[s])}e=r}e._ids.concat(t._ids),e._refs.register(t,w.toSibling),e._preferences=e._preferences?u.preferences(e._preferences,t._preferences):t._preferences,e._valids=E.merge(e._valids,t._valids,t._invalids),e._invalids=E.merge(e._invalids,t._invalids,t._valids);var c,l=p(t._singleRules.keys());try{var f=function(){var t=c.value;e._singleRules.has(t)&&(e._rules=e._rules.filter((function(e){return e.keep||e.name!==t})),e._singleRules.delete(t))};for(l.s();!(c=l.n()).done;)f()}catch(_){l.e(_)}finally{l.f()}var h,d=p(t._rules);try{for(d.s();!(h=d.n()).done;){var v=h.value;t._definition.rules[v.method].multi||e._singleRules.set(v.name,v),e._rules.push(v)}}catch(_){d.e(_)}finally{d.f()}if(e._flags.empty&&t._flags.empty){e._flags.empty=e._flags.empty.c
2oncat(t._flags.empty);var m=Object.assign({},t._flags);delete m.empty,a(e._flags,m)}else if(t._flags.empty){e._flags.empty=t._flags.empty;var g=Object.assign({},t._flags);delete g.empty,a(e._flags,g)}else a(e._flags,t._flags);for(var y in t.$_terms){var b=t.$_terms[y];b?e.$_terms[y]?e.$_terms[y]=e.$_terms[y].concat(b):e.$_terms[y]=b.slice():e.$_terms[y]||(e.$_terms[y]=b)}return this.$_root._tracer&&this.$_root._tracer._combine(e,[this,t]),e.$_mutateRebuild()}},{key:"extend",value:function(t){return n(!t.base,"Cannot extend type with another base"),f.type(this,t)}},{key:"extract",value:function(t){return t=Array.isArray(t)?t:t.split("."),this._ids.reach(t)}},{key:"fork",value:function(t,e){n(!this._inRuleset(),"Cannot fork inside a ruleset");var r,i=this,o=p([].concat(t));try{for(o.s();!(r=o.n()).done;){var a=r.value;a=Array.isArray(a)?a:a.split("."),i=i._ids.fork(a,e,i)}}catch(s){o.e(s)}finally{o.f()}return i.$_temp.ruleset=!1,i}},{key:"rule",value:function(t){var e=this._definition;u.assertOptions(t,Object.keys(e.modifiers)),n(!1!==this.$_temp.ruleset,"Cannot apply rules to empty ruleset or the last rule added does not support rule properties");var r=null===this.$_temp.ruleset?this._rules.length-1:this.$_temp.ruleset;n(r>=0&&r<this._rules.length,"Cannot apply rules to empty ruleset");for(var o=this.clone(),a=r;a<o._rules.length;++a){var s=o._rules[a],c=i(s);for(var l in t)e.modifiers[l](c,t[l]),n(c.name===s.name,"Cannot change rule name");o._rules[a]=c,o._singleRules.get(c.name)===s&&o._singleRules.set(c.name,c)}return o.$_temp.ruleset=!1,o.$_mutateRebuild()}},{key:"ruleset",get:function(){n(!this._inRuleset(),"Cannot start a new ruleset without closing the previous one");var t=this.clone();return t.$_temp.ruleset=t._rules.length,t}},{key:"$",get:function(){return this.ruleset}},{key:"tailor",value:function(t){t=[].concat(t),n(!this._inRuleset(),"Cannot tailor inside a ruleset");var e=this;if(this.$_terms.alterations){var r,i=p(this.$_terms.alterations);try{for(i.s();!(r=i.n()).done;){var o=r.value,a=o.target,s=o.adjuster;t.includes(a)&&(e=s(e),n(u.isSchema(e),"Alteration adjuster for",a,"failed to return a schema object"))}}catch(c){i.e(c)}finally{i.f()}}return(e=e.$_modify({each:function(e){return e.tailor(t)},ref:!1})).$_temp.ruleset=!1,e.$_mutateRebuild()}},{key:"tracer",value:function(){return _.location?_.location(this):this}},{key:"validate",value:function(t,e){return x.entry(t,this,e)}},{key:"validateAsync",value:function(t,e){return x.entryAsync(t,this,e)}},{key:"$_addRule",value:function(t){for(var e in"string"==typeof t&&(t={name:t}),n(t&&"object"==typeof t,"Invalid options"),n(t.name&&"string"==typeof t.name,"Invalid rule name"),t)n("_"!==e[0],"Cannot set private rule properties");var r=Object.assign({},t);r._resolve=[],r.method=r.method||r.name;var i=this._definition.rules[r.method],o=r.args;n(i,"Unknown rule",r.method);var a=this.clone();if(o)for(var s in n(1===Object.keys(o).length||Object.keys(o).length===this._definition.rules[r.name].args.length,"Invalid rule definition for",this.type,r.name),o){var c=o[s];if(i.argsByName){var l=i.argsByName.get(s);if(l.ref&&u.isResolvable(c))r._resolve.push(s),a.$_mutateRegister(c);else if(l.normalize&&(c=l.normalize(c),o[s]=c),l.assert){var f=u.validateArg(c,s,l);n(!f,f,"or reference")}}void 0!==c?o[s]=c:delete o[s]}return i.multi||(a._ruleRemove(r.name,{clone:!1}),a._singleRules.set(r.name,r)),!1===a.$_temp.ruleset&&(a.$_temp.ruleset=null),i.priority?a._rules.unshift(r):a._rules.push(r),a}},{key:"$_compile",value:function(t,e){return c.schema(this.$_root,t,e)}},{key:"$_createError",value:function(t,e,r,n,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=!1!==o.flags?this._flags:{},s=o.messages?y.merge(this._definition.messages,o.messages):this._definition.messages;return new l.Report(t,e,r,a,s,n,i)}},{key:"$_getFlag",value:function(t){return this._flags[t]}},{key:"$_getRule",value:function(t){return this._singleRules.get(t)}},{key:"$_mapLabels",value:function(t){return t=Array.isArray(t)?t:t.split("."),this._ids.labels(t)}},{key:"$_match",value:function(t,e,r,n){(r=Object.assign({},r)).abortEarly=!0,r._externals=!1,e.snapshot();
2var i=!x.validate(t,this,e,r,n).errors;return e.restore(),i}},{key:"$_modify",value:function(t){return u.assertOptions(t,["each","once","ref","schema"]),b.schema(this,t)||this}},{key:"$_mutateRebuild",value:function(){var t=this;return n(!this._inRuleset(),"Cannot add this rule inside a ruleset"),this._refs.reset(),this._ids.reset(),this.$_modify({each:function(e,r){var n=r.source,i=r.name,o=(r.path,r.key),a=t._definition[n][i]&&t._definition[n][i].register;!1!==a&&t.$_mutateRegister(e,{family:a,key:o})}}),this._definition.rebuild&&this._definition.rebuild(this),this.$_temp.ruleset=!1,this}},{key:"$_mutateRegister",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.family,n=e.key;this._refs.register(t,r),this._ids.register(t,{key:n})}},{key:"$_property",value:function(t){return this._definition.properties[t]}},{key:"$_reach",value:function(t){return this._ids.reach(t)}},{key:"$_rootReferences",value:function(){return this._refs.roots()}},{key:"$_setFlag",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n("_"===t[0]||!this._inRuleset(),"Cannot set flag inside a ruleset");var i=this._definition.flags[t]||{};if(o(e,i.default)&&(e=void 0),o(e,this._flags[t]))return this;var a=!1!==r.clone?this.clone():this;return void 0!==e?(a._flags[t]=e,a.$_mutateRegister(e)):delete a._flags[t],"_"!==t[0]&&(a.$_temp.ruleset=!1),a}},{key:"$_parent",value:function(t){for(var e,r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return(e=this[t][u.symbols.parent]).call.apply(e,[this].concat(n))}},{key:"$_validate",value:function(t,e,r){return x.validate(t,this,e,r)}},{key:"_assign",value:function(t){for(var e in t.type=this.type,t.$_root=this.$_root,t.$_temp=Object.assign({},this.$_temp),t.$_temp.whens={},t._ids=this._ids.clone(),t._preferences=this._preferences,t._valids=this._valids&&this._valids.clone(),t._invalids=this._invalids&&this._invalids.clone(),t._rules=this._rules.slice(),t._singleRules=i(this._singleRules,{shallow:!0}),t._refs=this._refs.clone(),t._flags=Object.assign({},this._flags),t._cache=null,t.$_terms={},this.$_terms)t.$_terms[e]=this.$_terms[e]?this.$_terms[e].slice():null;for(var r in t.$_super={},this.$_super)t.$_super[r]=this._super[r].bind(t);return t}},{key:"_bare",value:function(){var t=this.clone();t._reset();var e=t._definition.terms;for(var r in e){var n=e[r];t.$_terms[r]=n.init}return t.$_mutateRebuild()}},{key:"_default",value:function(t,e){var r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return u.assertOptions(i,"literal"),n(void 0!==e,"Missing",t,"value"),n("function"==typeof e||!i.literal,"Only function value supports literal option"),"function"==typeof e&&i.literal&&(d(r={},u.symbols.literal,!0),d(r,"literal",e),e=r),this.$_setFlag(t,e)}},{key:"_generate",value:function(t,e,r){if(!this.$_terms.whens)return{schema:this};for(var n=[],i=[],o=0;o<this.$_terms.whens.length;++o){var a=this.$_terms.whens[o];if(a.concat)n.push(a.concat),i.push("".concat(o,".concat"));else{for(var s=a.ref?a.ref.resolve(t,e,r):t,u=a.is?[a]:a.switch,c=i.length,l=0;l<u.length;++l){var f=u[l],d=f.is,p=f.then,v=f.otherwise,m="".concat(o).concat(a.switch?"."+l:"");if(d.$_match(s,e.nest(d,"".concat(m,".is")),r)){if(p){var g=e.localize([].concat(h(e.path),["".concat(m,".then")]),e.ancestors,e.schemas),y=p._generate(t,g,r),b=y.schema,w=y.id;n.push(b),i.push("".concat(m,".then").concat(w?"(".concat(w,")"):""));break}}else if(v){var _=e.localize([].concat(h(e.path),["".concat(m,".otherwise")]),e.ancestors,e.schemas),x=v._generate(t,_,r),E=x.schema,A=x.id;n.push(E),i.push("".concat(m,".otherwise").concat(A?"(".concat(A,")"):""));break}}if(a.break&&i.length>c)break}}var M=i.join(", ");if(e.mainstay.tracer.debug(e,"rule","when",M),!M)return{schema:this};if(!e.mainstay.tracer.active&&this.$_temp.whens[M])return{schema:this.$_temp.whens[M],id:M};var k=this;this._definition.generate&&(k=this._definition.generate(this,t,e,r));for(var S=0,I=n;S<I.length;S++){var P=I[S];k=k.concat(P)}return this.$_root._tracer&&this.$_root._tracer._combine(k,[this].concat(n)),this.$_temp.whens[M]=k,{schema:k,id:M}}},{key:"_inner",value:function(t,e){var r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n(!this._inRuleset(),"Cannot set ".concat(t," inside a ruleset"));var o=this.clone();return o.$_terms[t]&&!i.override||(o.$_terms[t]=[]),i.single?o.$_terms[t].push(e):(r=o.$_terms[t]).push.apply(r,h(e)),o.$_temp.ruleset=!1,o}},{key:"_inRuleset",value:function(){return null!==this.$_temp.ruleset&&!1!==this.$_temp.ruleset}},{key:"_ruleRemove",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this._singleRules.has(t))return this;var r=!1!==e.clone?this.clone():this;r._singleRules.delete(t);for(var n=[],i=0;i<r._rules.length;++i){var o=r._rules[i];o.name!==t||o.keep?n.push(o):r._inRuleset()&&i<r.$_temp.ruleset&&--r.$_temp.ruleset}return r._rules=n,r}},{key:"_values",value:function(t,e){u.verifyFlat(t,e.slice(1,-1));var r=this.clone(),i=t[0]===u.symbols.override;
2if(i&&(t=t.slice(1)),!r[e]&&t.length?r[e]=new E:i&&(r[e]=t.length?new E:null,r.$_mutateRebuild()),!r[e])return r;i&&r[e].override();var o,a=p(t);try{for(a.s();!(o=a.n()).done;){var s=o.value;n(void 0!==s,"Cannot call allow/valid/invalid with undefined"),n(s!==u.symbols.override,"Override must be the first value");var c="_invalids"===e?"_valids":"_invalids";r[c]&&(r[c].remove(s),r[c].length||(n("_valids"===e||!r._flags.only,"Setting invalid value",s,"leaves schema rejecting all values due to previous valid rule"),r[c]=null)),r[e].add(s,r._refs)}}catch(l){a.e(l)}finally{a.f()}return r}}]),t}()};A.Base.prototype[u.symbols.any]={version:u.version,compile:c.compile,root:"$_root"},A.Base.prototype.isImmutable=!0,A.Base.prototype.deny=A.Base.prototype.invalid,A.Base.prototype.disallow=A.Base.prototype.invalid,A.Base.prototype.equal=A.Base.prototype.valid,A.Base.prototype.exist=A.Base.prototype.required,A.Base.prototype.not=A.Base.prototype.invalid,A.Base.prototype.options=A.Base.prototype.prefs,A.Base.prototype.preferences=A.Base.prototype.prefs,t.exports=new A.Base},8652:function(t,e,r){"use strict";var n=r(375),i=r(8571),o=r(8160),a={max:1e3,supported:new Set(["undefined","boolean","number","string"])};e.provider={provision:function(t){return new a.Cache(t)}},a.Cache=function(){function t(){v(this,t);var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o.assertOptions(e,["max"]),n(void 0===e.max||e.max&&e.max>0&&isFinite(e.max),"Invalid max cache size"),this._max=e.max||a.max,this._map=new Map,this._list=new a.List}return m(t,[{key:"length",get:function(){return this._map.size}},{key:"set",value:function(t,e){if(null===t||a.supported.has(typeof t)){var r=this._map.get(t);if(r)return r.value=e,void this._list.first(r);r=this._list.unshift({key:t,value:e}),this._map.set(t,r),this._compact()}}},{key:"get",value:function(t){var e=this._map.get(t);if(e)return this._list.first(e),i(e.value)}},{key:"_compact",value:function(){if(this._map.size>this._max){var t=this._list.pop();this._map.delete(t.key)}}}]),t}(),a.List=function(){function t(){v(this,t),this.tail=null,this.head=null}return m(t,[{key:"unshift",value:function(t){return t.next=null,t.prev=this.head,this.head&&(this.head.next=t),this.head=t,this.tail||(this.tail=t),t}},{key:"first",value:function(t){t!==this.head&&(this._remove(t),this.unshift(t))}},{key:"pop",value:function(){return this._remove(this.tail)}},{key:"_remove",value:function(t){var e=t.next,r=t.prev;return e.prev=r,r&&(r.next=e),t===this.tail&&(this.tail=e),t.prev=null,t.next=null,t}}]),t}()},8160:function(t,e,r){"use strict";var n,i,o=r(375),a=r(7916),s=r(5934),u={isoDate:/^(?:[-+]\d{2})?(?:\d{4}(?!\d{2}\b))(?:(-?)(?:(?:0[1-9]|1[0-2])(?:\1(?:[12]\d|0[1-9]|3[01]))?|W(?:[0-4]\d|5[0-2])(?:-?[1-7])?|(?:00[1-9]|0[1-9]\d|[12]\d{2}|3(?:[0-5]\d|6[1-6])))(?![T]$|[T][\d]+Z$)(?:[T\s](?:(?:(?:[01]\d|2[0-3])(?:(:?)[0-5]\d)?|24\:?00)(?:[.,]\d+(?!:))?)(?:\2[0-5]\d(?:[.,]\d+)?)?(?:[Z]|(?:[+-])(?:[01]\d|2[0-3])(?::?[0-5]\d)?)?)?)?$/};e.version=s.version,e.defaults={abortEarly:!0,allowUnknown:!1,artifacts:!1,cache:!0,context:null,convert:!0,dateFormat:"iso",errors:{escapeHtml:!1,label:"path",language:null,render:!0,stack:!1,wrap:{label:'"',array:"[]"}},externals:!0,messages:{},nonEnumerables:!1,noDefaults:!1,presence:"optional",skipFunctions:!1,stripUnknown:!1,warnings:!1},e.symbols={any:Symbol.for("@hapi/joi/schema"),arraySingle:Symbol("arraySingle"),deepDefault:Symbol("deepDefault"),errors:Symbol("errors"),literal:Symbol("literal"),override:Symbol("override"),parent:Symbol("parent"),prefs:Symbol("prefs"),ref:Symbol("ref"),template:Symbol("template"),values:Symbol("values")},e.assertOptions=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Options";o(t&&"object"==typeof t&&!Array.isArray(t),"Options must be of type object");var n=Object.keys(t).filter((function(t){return!e.includes(t)}));o(0===n.length,"".concat(r," contain unknown keys: ").concat(n))},e.checkPreferences=function(t){var e=(i=i||r(3378)).preferences.validate(t);if(e.error)throw new a([e.error.details[0].message])},e.compare=function(t,e,r){switch(r){case"=":return t===e;case">":return t>e;case"<":return t<e;case">=":return t>=e;case"<=":return t<=e}},e.default=function(t,e){return void 0===t?e:t}
2,e.isIsoDate=function(t){return u.isoDate.test(t)},e.isNumber=function(t){return"number"==typeof t&&!isNaN(t)},e.isResolvable=function(t){return!!t&&(t[e.symbols.ref]||t[e.symbols.template])},e.isSchema=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t&&t[e.symbols.any];return!!n&&(o(r.legacy||n.version===e.version,"Cannot mix different versions of joi schemas"),!0)},e.isValues=function(t){return t[e.symbols.values]},e.limit=function(t){return Number.isSafeInteger(t)&&t>=0},e.preferences=function(t,i){n=n||r(6914),t=t||{},i=i||{};var o=Object.assign({},t,i);return i.errors&&t.errors&&(o.errors=Object.assign({},t.errors,i.errors),o.errors.wrap=Object.assign({},t.errors.wrap,i.errors.wrap)),i.messages&&(o.messages=n.compile(i.messages,t.messages)),delete o[e.symbols.prefs],o},e.tryWithPath=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{return t()}catch(t){throw void 0!==t.path?t.path=e+"."+t.path:t.path=e,r.append&&(t.message="".concat(t.message," (").concat(t.path,")")),t}},e.validateArg=function(t,r,n){var i=n.assert,o=n.message;if(e.isSchema(i)){var a=i.validate(t);if(!a.error)return;return a.error.message}if(!i(t))return r?"".concat(r," ").concat(o):o},e.verifyFlat=function(t,e){var r,n=p(t);try{for(n.s();!(r=n.n()).done;){var i=r.value;o(!Array.isArray(i),"Method no longer accepts array arguments:",e)}}catch(a){n.e(a)}finally{n.f()}}},3292:function(t,e,r){"use strict";var n=r(375),i=r(8160),o=r(6133),a={};e.schema=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};i.assertOptions(r,["appendPath","override"]);try{return a.schema(t,e,r)}catch(t){throw r.appendPath&&void 0!==t.path&&(t.message="".concat(t.message," (").concat(t.path,")")),t}},a.schema=function(t,e,r){n(void 0!==e,"Invalid undefined schema"),Array.isArray(e)&&(n(e.length,"Invalid empty array schema"),1===e.length&&(e=e[0]));var o=function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return!1!==r.override?e.valid.apply(e,[t.override].concat(i)):e.valid.apply(e,i)};if(a.simple(e))return o(t,e);if("function"==typeof e)return t.custom(e);if(n("object"==typeof e,"Invalid schema content:",typeof e),i.isResolvable(e))return o(t,e);if(i.isSchema(e))return e;if(Array.isArray(e)){var s,u=p(e);try{for(u.s();!(s=u.n()).done;){var c,l=s.value;if(!a.simple(l))return(c=t.alternatives()).try.apply(c,h(e))}}catch(f){u.e(f)}finally{u.f()}return o.apply(void 0,[t].concat(h(e)))}return e instanceof RegExp?t.string().regex(e):e instanceof Date?o(t.date(),e):(n(Object.getPrototypeOf(e)===Object.getPrototypeOf({}),"Schema can only contain plain objects"),t.object().keys(e))},e.ref=function(t,e){return o.isRef(t)?t:o.create(t,e)},e.compile=function(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};i.assertOptions(o,["legacy"]);var s=r&&r[i.symbols.any];if(s)return n(o.legacy||s.version===i.version,"Cannot mix different versions of joi schemas:",s.version,i.version),r;if("object"!=typeof r||!o.legacy)return e.schema(t,r,{appendPath:!0});var u=a.walk(r);return u?u.compile(u.root,r):e.schema(t,r,{appendPath:!0})},a.walk=function(t){if("object"!=typeof t)return null;if(Array.isArray(t)){var e,r=p(t);try{for(r.s();!(e=r.n()).done;){var o=e.value,s=a.walk(o);if(s)return s}}catch(f){r.e(f)}finally{r.f()}return null}var u=t[i.symbols.any];if(u)return{root:t[u.root],compile:u.compile};for(var c in n(Object.getPrototypeOf(t)===Object.getPrototypeOf({}),"Schema can only contain plain objects"),t){var l=a.walk(t[c]);if(l)return l}return null},a.simple=function(t){return null===t||["boolean","string","number"].includes(typeof t)},e.when=function(t,r,s){if(void 0===s&&(n(r&&"object"==typeof r,"Missing options"),s=r,r=o.create(".")),Array.isArray(s)&&(s={switch:s}),i.assertOptions(s,["is","not","then","otherwise","switch","break"]),i.isSchema(r))return n(void 0===s.is,'"is" can not be used with a schema condition'),n(void 0===s.not,'"not" can not be used with a schema condition'),n(void 0===s.switch,'"switch" can not be used with a schema condition'),a.condition(t,{is:r,then:s.then,otherwise:s.otherwise,break:s.break});if(n(o.isRef(r)||"string"==typeof r,"Invalid condition:",r),n(void 0===s.not||void 0===s.is,'Cannot combine "is" with "not"'),void 0===s.switch){var u=s;void 0!==s.not&&(u={is:s.not,then:s.otherwise,otherwise:s.then,break:s.break});
2var c=void 0!==u.is?t.$_compile(u.is):t.$_root.invalid(null,!1,0,"").required();return n(void 0!==u.then||void 0!==u.otherwise,'options must have at least one of "then", "otherwise", or "switch"'),n(void 0===u.break||void 0===u.then||void 0===u.otherwise,"Cannot specify then, otherwise, and break all together"),void 0===s.is||o.isRef(s.is)||i.isSchema(s.is)||(c=c.required()),a.condition(t,{ref:e.ref(r),is:c,then:u.then,otherwise:u.otherwise,break:u.break})}n(Array.isArray(s.switch),'"switch" must be an array'),n(void 0===s.is,'Cannot combine "switch" with "is"'),n(void 0===s.not,'Cannot combine "switch" with "not"'),n(void 0===s.then,'Cannot combine "switch" with "then"');for(var l={ref:e.ref(r),switch:[],break:s.break},f=0;f<s.switch.length;++f){var h=s.switch[f],d=f===s.switch.length-1;i.assertOptions(h,d?["is","then","otherwise"]:["is","then"]),n(void 0!==h.is,'Switch statement missing "is"'),n(void 0!==h.then,'Switch statement missing "then"');var p={is:t.$_compile(h.is),then:t.$_compile(h.then)};if(o.isRef(h.is)||i.isSchema(h.is)||(p.is=p.is.required()),d){n(void 0===s.otherwise||void 0===h.otherwise,'Cannot specify "otherwise" inside and outside a "switch"');var v=void 0!==s.otherwise?s.otherwise:h.otherwise;void 0!==v&&(n(void 0===l.break,"Cannot specify both otherwise and break"),p.otherwise=t.$_compile(v))}l.switch.push(p)}return l},a.condition=function(t,e){for(var r=0,n=["then","otherwise"];r<n.length;r++){var i=n[r];void 0===e[i]?delete e[i]:e[i]=t.$_compile(e[i])}return e}},6354:function(t,e,r){"use strict";var n=r(5688),i=r(8160),o=r(3328);e.Report=function(){function t(r,n,i,o,a,s,u){if(v(this,t),this.code=r,this.flags=o,this.messages=a,this.path=s.path,this.prefs=u,this.state=s,this.value=n,this.message=null,this.template=null,this.local=i||{},this.local.label=e.label(this.flags,this.state,this.prefs,this.messages),void 0===this.value||this.local.hasOwnProperty("value")||(this.local.value=this.value),this.path.length){var c=this.path[this.path.length-1];"object"!=typeof c&&(this.local.key=c)}}return m(t,[{key:"_setTemplate",value:function(t){if(this.template=t,!this.flags.label&&0===this.path.length){var e=this._template(this.template,"root");e&&(this.local.label=e)}}},{key:"toString",value:function(){if(this.message)return this.message;var t=this.code;if(!this.prefs.errors.render)return this.code;var e=this._template(this.template)||this._template(this.prefs.messages)||this._template(this.messages);return void 0===e?'Error code "'.concat(t,'" is not defined, your custom type is missing the correct messages definition'):(this.message=e.render(this.value,this.state,this.prefs,this.local,{errors:this.prefs.errors,messages:[this.prefs.messages,this.messages]}),this.prefs.errors.label||(this.message=this.message.replace(/^"" /,"").trim()),this.message)}},{key:"_template",value:function(t,r){return e.template(this.value,t,r||this.code,this.state,this.prefs)}}]),t}(),e.path=function(t){var e,r="",n=p(t);try{for(n.s();!(e=n.n()).done;){var i=e.value;"object"!=typeof i&&("string"==typeof i?(r&&(r+="."),r+=i):r+="[".concat(i,"]"))}}catch(o){n.e(o)}finally{n.f()}return r},e.template=function(t,e,r,n,a){if(e){if(o.isTemplate(e))return"root"!==r?e:null;var s=a.errors.language;if(i.isResolvable(s)&&(s=s.resolve(t,n,a)),s&&e[s]){if(void 0!==e[s][r])return e[s][r];if(void 0!==e[s]["*"])return e[s]["*"]}return e[r]?e[r]:e["*"]}},e.label=function(t,r,n,i){if(t.label)return t.label;if(!n.errors.label)return"";var o=r.path;return"key"===n.errors.label&&r.path.length>1&&(o=r.path.slice(-1)),e.path(o)||e.template(null,n.messages,"root",r,n)||i&&e.template(null,i,"root",r,n)||"value"},e.process=function(t,r,n){if(!t)return null;var i=e.details(t),o=i.override,a=i.message,s=i.details;if(o)return o;if(n.errors.stack)return new e.ValidationError(a,s,r);var u=Error.stackTraceLimit;Error.stackTraceLimit=0;var c=new e.ValidationError(a,s,r);return Error.stackTraceLimit=u,c},e.details=function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],i=[],o=p(t);try{for(o.s();!(e=o.n()).done;){var a=e.value;if(a instanceof Error){if(!1!==r.override)return{override:a};var s=a.toString();n.push(s),i.push({message:s,type:"override",context:{error:a}})}else{var u=a.toString();n.push(u),i.push({message:u,path:a.path.filter((function(t){return"object"!=typeof t})),type:a.code,context:a.local})}}}catch(c){o.e(c)}finally{o.f()}return n.length>1&&(n=h(new Set(n))),{message:n.join(". "),details:i}},e.ValidationError=function(t){c(n,t);var r=l(n);function n(t,e,i){var o;return v(this,n),(o=r.call(this,t))._original=i,o.details=e,o}return m(n,null,[{key:"isError",value:function(t){return t instanceof e.ValidationError}}]),n}(f(Error)),e.ValidationError.prototype.isJoi=!0,e.ValidationError.prototype.name="ValidationError",e.ValidationError.prototype.annotate=n.error},8901:function(t,e,r){"use strict";var n=r(375),i=r(8571),o=r(8160),a=r(6914),s={};e.type=function(t,e){var r=Object.getPrototypeOf(t),u=i(r),c=t._assign(Object.create(u)),l=Object.assign({},e);delete l.base,u._definition=l;var f=r._definition||{};l.messages=a.merge(f.messages,l.messages),l.properties=Object.assign({},f.properties,l.properties),c.type=l.type,l.flags=Object.assign({},f.flags,l.flags);var h=Object.assign({},f.terms);if(l.terms)for(var v in l.terms){var m=l.terms[v];
2n(void 0===c.$_terms[v],"Invalid term override for",l.type,v),c.$_terms[v]=m.init,h[v]=m}l.terms=h,l.args||(l.args=f.args),l.prepare=s.prepare(l.prepare,f.prepare),l.coerce&&("function"==typeof l.coerce&&(l.coerce={method:l.coerce}),l.coerce.from&&!Array.isArray(l.coerce.from)&&(l.coerce={method:l.coerce.method,from:[].concat(l.coerce.from)})),l.coerce=s.coerce(l.coerce,f.coerce),l.validate=s.validate(l.validate,f.validate);var g=Object.assign({},f.rules);if(l.rules){var y=function(t){var e=l.rules[t];n("object"==typeof e,"Invalid rule definition for",l.type,t);var r=e.method;if(void 0===r&&(r=function(){return this.$_addRule(t)}),r&&(n(!u[t],"Rule conflict in",l.type,t),u[t]=r),n(!g[t],"Rule conflict in",l.type,t),g[t]=e,e.alias){var i,a=[].concat(e.alias),s=p(a);try{for(s.s();!(i=s.n()).done;){var c=i.value;u[c]=e.method}}catch(f){s.e(f)}finally{s.f()}}e.args&&(e.argsByName=new Map,e.args=e.args.map((function(t){return"string"==typeof t&&(t={name:t}),n(!e.argsByName.has(t.name),"Duplicated argument name",t.name),o.isSchema(t.assert)&&(t.assert=t.assert.strict().label(t.name)),e.argsByName.set(t.name,t),t})))};for(var b in l.rules)y(b)}l.rules=g;var w=Object.assign({},f.modifiers);if(l.modifiers){var _=function(t){n(!u[t],"Rule conflict in",l.type,t);var e=l.modifiers[t];n("function"==typeof e,"Invalid modifier definition for",l.type,t);var r=function(e){return this.rule(d({},t,e))};u[t]=r,w[t]=e};for(var x in l.modifiers)_(x)}if(l.modifiers=w,l.overrides){for(var E in u._super=r,c.$_super={},l.overrides)n(r[E],"Cannot override missing",E),l.overrides[E][o.symbols.parent]=r[E],c.$_super[E]=r[E].bind(c);Object.assign(u,l.overrides)}l.cast=Object.assign({},f.cast,l.cast);var A=Object.assign({},f.manifest,l.manifest);return A.build=s.build(l.manifest&&l.manifest.build,f.manifest&&f.manifest.build),l.manifest=A,l.rebuild=s.rebuild(l.rebuild,f.rebuild),c},s.build=function(t,e){return t&&e?function(r,n){return e(t(r,n),n)}:t||e},s.coerce=function(t,e){return t&&e?{from:t.from&&e.from?h(new Set([].concat(h(t.from),h(e.from)))):null,method:function(r,n){var i;if((!e.from||e.from.includes(typeof r))&&(i=e.method(r,n))){if(i.errors||void 0===i.value)return i;r=i.value}if(!t.from||t.from.includes(typeof r)){var o=t.method(r,n);if(o)return o}return i}}:t||e},s.prepare=function(t,e){return t&&e?function(r,n){var i=t(r,n);if(i){if(i.errors||void 0===i.value)return i;r=i.value}return e(r,n)||i}:t||e},s.rebuild=function(t,e){return t&&e?function(r){e(r),t(r)}:t||e},s.validate=function(t,e){return t&&e?function(r,n){var i=e(r,n);if(i){if(i.errors&&(!Array.isArray(i.errors)||i.errors.length))return i;r=i.value}return t(r,n)||i}:t||e}},5107:function(t,e,r){"use strict";var n,i=r(375),o=r(8571),a=r(8652),s=r(8160),c=r(3292),l=r(6354),f=r(8901),d=r(9708),v=r(6133),m=r(3328),g=r(1152),y={types:{alternatives:r(4946),any:r(8068),array:r(546),boolean:r(4937),date:r(7500),function:r(390),link:r(8785),number:r(3832),object:r(8966),string:r(7417),symbol:r(8826)},aliases:{alt:"alternatives",bool:"boolean",func:"function"},root:function(){var t,e={_types:new Set(Object.keys(y.types))},r=p(e._types);try{var n=function(){var r=t.value;e[r]=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return i(!e.length||["alternatives","link","object"].includes(r),"The",r,"type does not allow arguments"),y.generate(this,y.types[r],e)}};for(r.s();!(t=r.n()).done;)n()}catch(l){r.e(l)}finally{r.f()}for(var o=function(){var t=s[a];e[t]=function(){var e;return(e=this.any())[t].apply(e,arguments)}},a=0,s=["allow","custom","disallow","equal","exist","forbidden","invalid","not","only","optional","options","prefs","preferences","required","strip","valid","when"];a<s.length;a++)o();for(var u in Object.assign(e,y.methods),y.aliases){var c=y.aliases[u];e[u]=e[c]}return e.x=e.expression,g.setup&&g.setup(e),e}};y.methods={ValidationError:l.ValidationError,version:s.version,cache:a.provider,assert:function(t,e){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];y.assert(t,e,!0,n)},attempt:function(t,e){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return y.assert(t,e,!1,n)},build:function(t){return i("function"==typeof d.build,"Manifest functionality disabled"),d.build(this,t)},checkPreferences:function(t){s.checkPreferences(t)},compile:function(t,e){return c.compile(this,t,e)},defaults:function(t){i("function"==typeof t,"modifier must be a function");var e,r=Object.assign({},this),n=p(r._types);try{var o=function(){var n=e.value,o=t(r[n]());i(s.isSchema(o),"modifier must return a valid schema object"),r[n]=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return y.generate(this,o,e)}};for(n.s();!(e=n.n()).done;)o()}catch(a){n.e(a)}finally{n.f()}return r},expression:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return u(m,e)},extend:function(){for(var t=this,e=arguments.length,o=new Array(e),a=0;a<e;a++)o[a]=arguments[a];s.verifyFlat(o,"extend"),n=n||r(3378),i(o.length,"You need to provide at least one extension"),this.assert(o,n.extensions);var u=Object.assign({},this);u._types=new Set(u._types);for(var c=0,l=o;c<l.length;c++){var h=l[c];"function"==typeof h&&(h=h(u)),this.assert(h,n.extension);var d,v=y.expandExtension(h,u),m=p(v);try{var g=function(){var e=d.value;i(void 0===u[e.type]||u._types.has(e.type),"Cannot override name",e.type);var r=e.base||t.any(),n=f.type(r,e);u._types.add(e.type),u[e.type]=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return y.generate(this,n,e)}};for(m.s();!(d=m.n()).done;)g()}
2catch(b){m.e(b)}finally{m.f()}}return u},isError:l.ValidationError.isError,isExpression:m.isTemplate,isRef:v.isRef,isSchema:s.isSchema,in:function(){return v.in.apply(v,arguments)},override:s.symbols.override,ref:function(){return v.create.apply(v,arguments)},types:function(){var t,e={},r=p(this._types);try{for(r.s();!(t=r.n()).done;){var n=t.value;e[n]=this[n]()}}catch(o){r.e(o)}finally{r.f()}for(var i in y.aliases)e[i]=this[i]();return e}},y.assert=function(t,e,r,n){var i=n[0]instanceof Error||"string"==typeof n[0]?n[0]:null,a=null!==i?n[1]:n[0],u=e.validate(t,s.preferences({errors:{stack:!0}},a||{})),c=u.error;if(!c)return u.value;if(i instanceof Error)throw i;var f=r&&"function"==typeof c.annotate?c.annotate():c.message;throw c instanceof l.ValidationError==0&&(c=o(c)),c.message=i?"".concat(i," ").concat(f):f,c},y.generate=function(t,e,r){var n;return i(t,"Must be invoked on a Joi instance."),e.$_root=t,e._definition.args&&r.length?(n=e._definition).args.apply(n,[e].concat(h(r))):e},y.expandExtension=function(t,e){if("string"==typeof t.type)return[t];var r,n=[],i=p(e._types);try{for(i.s();!(r=i.n()).done;){var o=r.value;if(t.type.test(o)){var a=Object.assign({},t);a.type=o,a.base=e[o](),n.push(a)}}}catch(s){i.e(s)}finally{i.f()}return n},t.exports=y.root()},6914:function(t,e,r){"use strict";var n=r(375),i=r(8571),o=r(3328);e.compile=function(t,e){if("string"==typeof t)return n(!e,"Cannot set single message string"),new o(t);if(o.isTemplate(t))return n(!e,"Cannot set single message template"),t;for(var r in n("object"==typeof t&&!Array.isArray(t),"Invalid message options"),e=e?i(e):{},t){var a=t[r];if("root"===r||o.isTemplate(a))e[r]=a;else if("string"!=typeof a){n("object"==typeof a&&!Array.isArray(a),"Invalid message for",r);var s=r;for(r in e[s]=e[s]||{},a){var u=a[r];"root"===r||o.isTemplate(u)?e[s][r]=u:(n("string"==typeof u,"Invalid message for",r,"in",s),e[s][r]=new o(u))}}else e[r]=new o(a)}return e},e.decompile=function(t){var e={};for(var r in t){var n=t[r];if("root"!==r)if(o.isTemplate(n))e[r]=n.describe({compact:!0});else{var i=r;for(r in e[i]={},n){var a=n[r];"root"!==r?e[i][r]=a.describe({compact:!0}):e[i].root=a}}else e.root=n}return e},e.merge=function(t,r){if(!t)return e.compile(r);if(!r)return t;if("string"==typeof r)return new o(r);if(o.isTemplate(r))return r;var a=i(t);for(var s in r){var u=r[s];if("root"===s||o.isTemplate(u))a[s]=u;else if("string"!=typeof u){n("object"==typeof u&&!Array.isArray(u),"Invalid message for",s);var c=s;for(s in a[c]=a[c]||{},u){var l=u[s];"root"===s||o.isTemplate(l)?a[c][s]=l:(n("string"==typeof l,"Invalid message for",s,"in",c),a[c][s]=new o(l))}}else a[s]=new o(u)}return a}},2294:function(t,e,r){"use strict";var n=r(375),i=r(8160),o=r(6133),u={};e.Ids=u.Ids=function(){function t(){v(this,t),this._byId=new Map,this._byKey=new Map,this._schemaChain=!1}return m(t,[{key:"clone",value:function(){var t=new u.Ids;return t._byId=new Map(this._byId),t._byKey=new Map(this._byKey),t._schemaChain=this._schemaChain,t}},{key:"concat",value:function(t){t._schemaChain&&(this._schemaChain=!0);var e,r=p(t._byId.entries());try{for(r.s();!(e=r.n()).done;){var i=s(e.value,2),o=i[0],a=i[1];n(!this._byKey.has(o),"Schema id conflicts with existing key:",o),this._byId.set(o,a)}}catch(d){r.e(d)}finally{r.f()}var u,c=p(t._byKey.entries());try{for(c.s();!(u=c.n()).done;){var l=s(u.value,2),f=l[0],h=l[1];n(!this._byId.has(f),"Schema key conflicts with existing id:",f),this._byKey.set(f,h)}}catch(d){c.e(d)}finally{c.f()}}},{key:"fork",value:function(t,e,r){var o=this._collect(t);o.push({schema:r});var a=o.shift(),s={id:a.id,schema:e(a.schema)};n(i.isSchema(s.schema),"adjuster function failed to return a joi schema type");var c,l=p(o);try{for(l.s();!(c=l.n()).done;){var f=c.value;s={id:f.id,schema:u.fork(f.schema,s.id,s.schema)}}}catch(h){l.e(h)}finally{l.f()}return s.schema}},{key:"labels",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=t[0],n=this._get(r);if(!n)return[].concat(h(e),h(t)).join(".");var i=t.slice(1);return e=[].concat(h(e),[n.schema._flags.label||r]),i.length?n.schema._ids.labels(i,e):e.j
2oin(".")}},{key:"reach",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=t[0],i=this._get(r);n(i,"Schema does not contain path",[].concat(h(e),h(t)).join("."));var o=t.slice(1);return o.length?i.schema._ids.reach(o,[].concat(h(e),[r])):i.schema}},{key:"register",value:function(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).key;if(t&&i.isSchema(t)){(t.$_property("schemaChain")||t._ids._schemaChain)&&(this._schemaChain=!0);var r=t._flags.id;if(r){var o=this._byId.get(r);n(!o||o.schema===t,"Cannot add different schemas with the same id:",r),n(!this._byKey.has(r),"Schema id conflicts with existing key:",r),this._byId.set(r,{schema:t,id:r})}e&&(n(!this._byKey.has(e),"Schema already contains key:",e),n(!this._byId.has(e),"Schema key conflicts with existing id:",e),this._byKey.set(e,{schema:t,id:e}))}}},{key:"reset",value:function(){this._byId=new Map,this._byKey=new Map,this._schemaChain=!1}},{key:"_collect",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=t[0],o=this._get(i);n(o,"Schema does not contain path",[].concat(h(e),h(t)).join(".")),r=[o].concat(h(r));var a=t.slice(1);return a.length?o.schema._ids._collect(a,[].concat(h(e),[i]),r):r}},{key:"_get",value:function(t){return this._byId.get(t)||this._byKey.get(t)}}]),t}(),u.fork=function(t,r,n){var i=e.schema(t,{each:function(t,e){var i=e.key;if(r===(t._flags.id||i))return n},ref:!1});return i?i.$_mutateRebuild():t},e.schema=function(t,e){var r;for(var n in t._flags)if("_"!==n[0]){var i=u.scan(t._flags[n],{source:"flags",name:n},e);void 0!==i&&((r=r||t.clone())._flags[n]=i)}for(var o=0;o<t._rules.length;++o){var a=t._rules[o],s=u.scan(a.args,{source:"rules",name:a.name},e);if(void 0!==s){r=r||t.clone();var c=Object.assign({},a);c.args=s,r._rules[o]=c,r._singleRules.get(a.name)===a&&r._singleRules.set(a.name,c)}}for(var l in t.$_terms)if("_"!==l[0]){var f=u.scan(t.$_terms[l],{source:"terms",name:l},e);void 0!==f&&((r=r||t.clone()).$_terms[l]=f)}return r},u.scan=function(t,e,r,n,s){var c=n||[];if(null!==t&&"object"==typeof t){var l;if(Array.isArray(t)){for(var f=0;f<t.length;++f){var d="terms"===e.source&&"keys"===e.name&&t[f].key,p=u.scan(t[f],e,r,[f].concat(h(c)),d);void 0!==p&&((l=l||t.slice())[f]=p)}return l}if(!1!==r.schema&&i.isSchema(t)||!1!==r.ref&&o.isRef(t)){var v=r.each(t,a(a({},e),{},{path:c,key:s}));if(v===t)return;return v}for(var m in t)if("_"!==m[0]){var g=u.scan(t[m],e,r,[m].concat(h(c)),s);void 0!==g&&((l=l||Object.assign({},t))[m]=g)}return l}}},6133:function(t,e,r){"use strict";var n,i=r(375),o=r(8571),u=r(9621),c=r(8160),l={symbol:Symbol("ref"),defaults:{adjust:null,in:!1,iterables:null,map:null,separator:".",type:"value"}};e.create=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i("string"==typeof t,"Invalid reference key:",t),c.assertOptions(e,["adjust","ancestor","in","iterables","map","prefix","render","separator"]),i(!e.prefix||"object"==typeof e.prefix,"options.prefix must be of type object");var r=Object.assign({},l.defaults,e);delete r.prefix;var n=r.separator,o=l.context(t,n,e.prefix);if(r.type=o.type,t=o.key,"value"===r.type)if(o.root&&(i(!n||t[0]!==n,"Cannot specify relative path with root prefix"),r.ancestor="root",t||(t=null)),n&&n===t)t=null,r.ancestor=0;else if(void 0!==r.ancestor)i(!n||!t||t[0]!==n,"Cannot combine prefix with ancestor option");else{var a=l.ancestor(t,n),u=s(a,2),f=u[0],h=u[1];h&&""===(t=t.slice(h))&&(t=null),r.ancestor=f}return r.path=n?null===t?[]:t.split(n):[t],new l.Ref(r)},e.in=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.create(t,a(a({},r),{},{in:!0}))},e.isRef=function(t){return!!t&&!!t[c.symbols.ref]},l.Ref=function(){function t(e){v(this,t),i("object"==typeof e,"Invalid reference construction"),c.assertOptions(e,["adjust","ancestor","in","iterables","map","path","render","separator","type","depth","key","root","display"]),i([!1,void 0].includes(e.separator)||"string"==typeof e.separator&&1===e.separator.length,"Invalid separator"),i(!e.adjust||"function"==typeof e.adjust,"options.adjust must be a function"),i(!e.map||Array.isArray(e.map),"options.map must be an array"),i(!e.map||!e.adjust,"Cannot set both map and adjust options"),Object.assign(this,l.defaults,e),i("value"===this.type||void 0===this.ancestor,"Non-value references cannot reference ancestors"),Array.isArray(this.map)&&(this.map=new Map(this.map)),this.depth=this.path.length,this.key=this.path.length?this.path.join(this.separator):null,this.root=this.path[0],this.updateDisplay()}return m(t,[{key:"resolve",value:function(t,e,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return i(!this.in||o.in,"Invalid in() reference usage"),"global"===this.type?this._resolve(r.context,e,o):"local"===this.type?this._resolve(n,e,o):this.ancestor?"root"===this.ancestor?this._resolve(e.ancestors[e.ancestors.length-1],e,o):(i(this.ancestor<=e.ancestors.length,"Invalid reference exceeds the schema root:",this.display),this._resolve(e.ancestors[this.ancestor-1],e,o)):this._resolve(t,e,o)}},{key:"_resolve",value:function(t,e,r){var n;if("value"===this.type&&e.mainstay.shadow&&!1!==r.shadow&&(n=e.mainstay.shadow.get(this.absolute(e))),void 0===n&&(n=u(t,this.path,{iterables:this.iterables,functions:!0})),this.adjust&&(n=this.adjust(n)),this.map){var i=this.map.get(n);void 0!==i&&(n=i)}return e.mainstay&&e.mainstay.tracer.resolve(e,this,n),n}},{key:"toString",value:function(){return this.display}},{key:"absolute",value:function(t){return[].concat(h(t.path.slice(0,-this.ancestor)),h(this.path))}},{key:"clone",value:function(){return new l.Ref(this)}},{key:"describe",value:function(){var t={path:this.path};
2"value"!==this.type&&(t.type=this.type),"."!==this.separator&&(t.separator=this.separator),"value"===this.type&&1!==this.ancestor&&(t.ancestor=this.ancestor),this.map&&(t.map=h(this.map));for(var e=0,r=["adjust","iterables","render"];e<r.length;e++){var n=r[e];null!==this[n]&&void 0!==this[n]&&(t[n]=this[n])}return!1!==this.in&&(t.in=!0),{ref:t}}},{key:"updateDisplay",value:function(){var t=null!==this.key?this.key:"";if("value"===this.type)if(this.separator)if(this.ancestor)if("root"!==this.ancestor)if(1!==this.ancestor){var e=new Array(this.ancestor+1).fill(this.separator).join("");this.display="ref:".concat(e).concat(t||"")}else this.display="ref:".concat(t||"..");else this.display="ref:root:".concat(t);else this.display="ref:".concat(this.separator).concat(t);else this.display="ref:".concat(t);else this.display="ref:".concat(this.type,":").concat(t)}}]),t}(),l.Ref.prototype[c.symbols.ref]=!0,e.build=function(t){return"value"===(t=Object.assign({},l.defaults,t)).type&&void 0===t.ancestor&&(t.ancestor=1),new l.Ref(t)},l.context=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t=t.trim(),r){var n=void 0===r.global?"$":r.global;if(n!==e&&t.startsWith(n))return{key:t.slice(n.length),type:"global"};var i=void 0===r.local?"#":r.local;if(i!==e&&t.startsWith(i))return{key:t.slice(i.length),type:"local"};var o=void 0===r.root?"/":r.root;if(o!==e&&t.startsWith(o))return{key:t.slice(o.length),type:"value",root:!0}}return{key:t,type:"value"}},l.ancestor=function(t,e){if(!e)return[1,0];if(t[0]!==e)return[1,0];if(t[1]!==e)return[0,1];for(var r=2;t[r]===e;)++r;return[r-1,r]},e.toSibling=0,e.toParent=1,e.Manager=function(){function t(){v(this,t),this.refs=[]}return m(t,[{key:"register",value:function(t,i){if(t)if(i=void 0===i?e.toParent:i,Array.isArray(t)){var o,a=p(t);try{for(a.s();!(o=a.n()).done;){var s=o.value;this.register(s,i)}}catch(h){a.e(h)}finally{a.f()}}else if(c.isSchema(t)){var u,l=p(t._refs.refs);try{for(l.s();!(u=l.n()).done;){var f=u.value;f.ancestor-i>=0&&this.refs.push({ancestor:f.ancestor-i,root:f.root})}}catch(h){l.e(h)}finally{l.f()}}else e.isRef(t)&&"value"===t.type&&t.ancestor-i>=0&&this.refs.push({ancestor:t.ancestor-i,root:t.root}),(n=n||r(3328)).isTemplate(t)&&this.register(t.refs(),i)}},{key:"length",get:function(){return this.refs.length}},{key:"clone",value:function(){var t=new e.Manager;return t.refs=o(this.refs),t}},{key:"reset",value:function(){this.refs=[]}},{key:"roots",value:function(){return this.refs.filter((function(t){return!t.ancestor})).map((function(t){return t.root}))}}]),t}()},3378:function(t,e,r){"use strict";var n=r(5107),i={};i.wrap=n.string().min(1).max(2).allow(!1),e.preferences=n.object({allowUnknown:n.boolean(),abortEarly:n.boolean(),artifacts:n.boolean(),cache:n.boolean(),context:n.object(),convert:n.boolean(),dateFormat:n.valid("date","iso","string","time","utc"),debug:n.boolean(),errors:{escapeHtml:n.boolean(),label:n.valid("path","key",!1),language:[n.string(),n.object().ref()],render:n.boolean(),stack:n.boolean(),wrap:{label:i.wrap,array:i.wrap,string:i.wrap}},externals:n.boolean(),messages:n.object(),noDefaults:n.boolean(),nonEnumerables:n.boolean(),presence:n.valid("required","optional","forbidden"),skipFunctions:n.boolean(),stripUnknown:n.object({arrays:n.boolean(),objects:n.boolean()}).or("arrays","objects").allow(!0,!1),warnings:n.boolean()}).strict(),i.nameRx=/^[a-zA-Z0-9]\w*$/,i.rule=n.object({alias:n.array().items(n.string().pattern(i.nameRx)).single(),args:n.array().items(n.string(),n.object({name:n.string().pattern(i.nameRx).required(),ref:n.boolean(),assert:n.alternatives([n.function(),n.object().schema()]).conditional("ref",{is:!0,then:n.required()}),normalize:n.function(),message:n.string().when("assert",{is:n.function(),then:n.required()})})),convert:n.boolean(),manifest:n.boolean(),method:n.function().allow(!1),multi:n.boolean(),validate:n.function()}),e.extension=n.object({type:n.alternatives([n.string(),n.object().regex()]).required(),args:n.function(),cast:n.object().pattern(i.nameRx,n.object({from:n.function().maxArity(1).required(),to:n.function().minArity(1).maxArity(2).required()})),base:n.object().schema().when("type",{is:n.object().regex(),then:n.forbidden()}),coerce:[n.function().maxArity(3),n.object({method:n.function().maxArity(3).required(),from:n.array().items(n.string()).single()})],flags:n.object().pattern(i.nameRx,n.object({setter:n.string(),default:n.any()})),manifest:{build:n.function().arity(2)},messages:[n.object(),n.string()],modifiers:n.object().pattern(i.nameRx,n.function().minArity(1).maxArity(2)),overrides:n.object().pattern(i.nameRx,n.function()),prepare:n.function().maxArity(3),rebuild:n.function().arity(1),rules:n.object().pattern(i.nameRx,i.rule),terms:n.object().pattern(i.nameRx,n.object({init:n.array().allow(null).required(),manifest:n.object().pattern(/.+/,[n.valid("schema","single"),n.object({mapped:n.object({from:n.string().required(),to:n.string().required()}).required()})])}
2)),validate:n.function().maxArity(3)}).strict(),e.extensions=n.array().items(n.object(),n.function().arity(1)).strict(),i.desc={buffer:n.object({buffer:n.string()}),func:n.object({function:n.function().required(),options:{literal:!0}}),override:n.object({override:!0}),ref:n.object({ref:n.object({type:n.valid("value","global","local"),path:n.array().required(),separator:n.string().length(1).allow(!1),ancestor:n.number().min(0).integer().allow("root"),map:n.array().items(n.array().length(2)).min(1),adjust:n.function(),iterables:n.boolean(),in:n.boolean(),render:n.boolean()}).required()}),regex:n.object({regex:n.string().min(3)}),special:n.object({special:n.valid("deep").required()}),template:n.object({template:n.string().required(),options:n.object()}),value:n.object({value:n.alternatives([n.object(),n.array()]).required()})},i.desc.entity=n.alternatives([n.array().items(n.link("...")),n.boolean(),n.function(),n.number(),n.string(),i.desc.buffer,i.desc.func,i.desc.ref,i.desc.regex,i.desc.special,i.desc.template,i.desc.value,n.link("/")]),i.desc.values=n.array().items(null,n.boolean(),n.function(),n.number().allow(1/0,-1/0),n.string().allow(""),n.symbol(),i.desc.buffer,i.desc.func,i.desc.override,i.desc.ref,i.desc.regex,i.desc.template,i.desc.value),i.desc.messages=n.object().pattern(/.+/,[n.string(),i.desc.template,n.object().pattern(/.+/,[n.string(),i.desc.template])]),e.description=n.object({type:n.string().required(),flags:n.object({cast:n.string(),default:n.any(),description:n.string(),empty:n.link("/"),failover:i.desc.entity,id:n.string(),label:n.string(),only:!0,presence:["optional","required","forbidden"],result:["raw","strip"],strip:n.boolean(),unit:n.string()}).unknown(),preferences:{allowUnknown:n.boolean(),abortEarly:n.boolean(),artifacts:n.boolean(),cache:n.boolean(),convert:n.boolean(),dateFormat:["date","iso","string","time","utc"],errors:{escapeHtml:n.boolean(),label:["path","key"],language:[n.string(),i.desc.ref],wrap:{label:i.wrap,array:i.wrap}},externals:n.boolean(),messages:i.desc.messages,noDefaults:n.boolean(),nonEnumerables:n.boolean(),presence:["required","optional","forbidden"],skipFunctions:n.boolean(),stripUnknown:n.object({arrays:n.boolean(),objects:n.boolean()}).or("arrays","objects").allow(!0,!1),warnings:n.boolean()},allow:i.desc.values,invalid:i.desc.values,rules:n.array().min(1).items({name:n.string().required(),args:n.object().min(1),keep:n.boolean(),message:[n.string(),i.desc.messages],warn:n.boolean()}),keys:n.object().pattern(/.*/,n.link("/")),link:i.desc.ref}).pattern(/^[a-z]\w*$/,n.any())},493:function(t,e,r){"use strict";var n=r(8571),i=r(9621),o=r(8160),a={value:Symbol("value")};t.exports=a.State=function(){function t(e,r,n){v(this,t),this.path=e,this.ancestors=r,this.mainstay=n.mainstay,this.schemas=n.schemas,this.debug=null}return m(t,[{key:"localize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=new a.State(t,e,this);return r&&n.schemas&&(n.schemas=[a.schemas(r)].concat(h(n.schemas))),n}},{key:"nest",value:function(t,e){var r=new a.State(this.path,this.ancestors,this);return r.schemas=r.schemas&&[a.schemas(t)].concat(h(r.schemas)),r.debug=e,r}},{key:"shadow",value:function(t,e){this.mainstay.shadow=this.mainstay.shadow||new a.Shadow,this.mainstay.shadow.set(this.path,t,e)}},{key:"snapshot",value:function(){this.mainstay.shadow&&(this._snapshot=n(this.mainstay.shadow.node(this.path))),this.mainstay.snapshot()}},{key:"restore",value:function(){this.mainstay.shadow&&(this.mainstay.shadow.override(this.path,this._snapshot),this._snapshot=void 0),this.mainstay.restore()}}]),t}(),a.schemas=function(t){return o.isSchema(t)?{schema:t}:t},a.Shadow=function(){function t(){v(this,t),this._values=null}return m(t,[{key:"set",value:function(t,e,r){if(t.length&&("strip"!==r||"number"!=typeof t[t.length-1])){this._values=this._values||new Map;for(var n=this._values,i=0;i<t.length;++i){var o=t[i],s=n.get(o);s||(s=new Map,n.set(o,s)),n=s}n[a.value]=e}}},{key:"get",value:function(t){var e=this.node(t);if(e)return e[a.value]}},{key:"node",value:function(t){if(this._values)return i(this._values,t,{iterables:!0})}},{key:"override",value:function(t,e){if(this._values){var r=t.slice(0,-1),n=t[t.length-1],o=i(this._values,r,{iterables:!0});e?o.set(n,e):o&&o.delete(n)}}}]),t}()},3328:function(t,e,r){"use strict";var n=r(375),i=r(8571),o=r(5277),u=r(1447),c=r(8160),l=r(6354),f=r(6133),d={symbol
2:Symbol("template"),opens:new Array(1e3).join("\0"),closes:new Array(1e3).join("\x01"),dateFormat:{date:Date.prototype.toDateString,iso:Date.prototype.toISOString,string:Date.prototype.toString,time:Date.prototype.toTimeString,utc:Date.prototype.toUTCString}};t.exports=d.Template=function(){function t(e,r){v(this,t),n("string"==typeof e,"Template source must be a string"),n(!e.includes("\0")&&!e.includes("\x01"),"Template source cannot contain reserved control characters"),this.source=e,this.rendered=e,this._template=null,this._settings=i(r),this._parse()}return m(t,[{key:"_parse",value:function(){if(this.source.includes("{")){var t=d.encode(this.source),e=d.split(t),r=!1,n=[],i=e.shift();i&&n.push(i);var o,a=p(e);try{for(a.s();!(o=a.n()).done;){var s=o.value,u="{"!==s[0],c=u?"}":"}}",l=s.indexOf(c);if(-1!==l&&"{"!==s[1]){var f=s.slice(u?0:1,l),h=":"===f[0];h&&(f=f.slice(1));var v=this._ref(d.decode(f),{raw:u,wrapped:h});n.push(v),"string"!=typeof v&&(r=!0);var m=s.slice(l+c.length);m&&n.push(d.decode(m))}else n.push("{".concat(d.decode(s)))}}catch(g){a.e(g)}finally{a.f()}r?this._template=n:this.rendered=n.join("")}}},{key:"describe",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this._settings&&t.compact)return this.source;var e={template:this.source};return this._settings&&(e.options=this._settings),e}},{key:"isDynamic",value:function(){return!!this._template}},{key:"refs",value:function(){if(this._template){var t,e=[],r=p(this._template);try{for(r.s();!(t=r.n()).done;){var n=t.value;"string"!=typeof n&&e.push.apply(e,h(n.refs))}}catch(i){r.e(i)}finally{r.f()}return e}}},{key:"resolve",value:function(t,e,r,n){return this._template&&1===this._template.length?this._part(this._template[0],t,e,r,n,{}):this.render(t,e,r,n)}},{key:"_part",value:function(t){for(var e,r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return t.ref?(e=t.ref).resolve.apply(e,n):t.formula.evaluate(n)}},{key:"render",value:function(t,e,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(!this.isDynamic())return this.rendered;var a,s=[],u=p(this._template);try{for(u.s();!(a=u.n()).done;){var c=a.value;if("string"==typeof c)s.push(c);else{var l=this._part(c,t,e,r,n,i),f=d.stringify(l,t,e,r,n,i);if(void 0!==f){var h=c.raw||!1===(i.errors&&i.errors.escapeHtml)?f:o(f);s.push(d.wrap(h,c.wrapped&&r.errors.wrap.label))}}}}catch(v){u.e(v)}finally{u.f()}return s.join("")}},{key:"_ref",value:function(t,e){var r=this,n=e.raw,i=e.wrapped,o=[],a=function(t){var e=f.create(t,r._settings);return o.push(e),function(t){return e.resolve.apply(e,h(t))}};try{var s=new u.Parser(t,{reference:a,functions:d.functions,constants:d.constants})}catch(e){throw e.message='Invalid template variable "'.concat(t,'" fails due to: ').concat(e.message),e}if(s.single){if("reference"===s.single.type){var c=o[0];return{ref:c,raw:n,refs:o,wrapped:i||"local"===c.type&&"label"===c.key}}return d.stringify(s.single.value)}return{formula:s,raw:n,refs:o}}},{key:"toString",value:function(){return this.source}}],[{key:"date",value:function(t,e){return d.dateFormat[e.dateFormat].call(t)}},{key:"build",value:function(t){return new d.Template(t.template,t.options)}},{key:"isTemplate",value:function(t){return!!t&&!!t[c.symbols.template]}}]),t}(),d.Template.prototype[c.symbols.template]=!0,d.Template.prototype.isImmutable=!0,d.encode=function(t){return t.replace(/\\(\{+)/g,(function(t,e){return d.opens.slice(0,e.length)})).replace(/\\(\}+)/g,(function(t,e){return d.closes.slice(0,e.length)}))},d.decode=function(t){return t.replace(/\u0000/g,"{").replace(/\u0001/g,"}")},d.split=function(t){for(var e=[],r="",n=0;n<t.length;++n){var i=t[n];if("{"===i){for(var o="";n+1<t.length&&"{"===t[n+1];)o+="{",++n;e.push(r),r=o}else r+=i}return e.push(r),e},d.wrap=function(t,e){return e?1===e.length?"".concat(e).concat(t).concat(e):"".concat(e[0]).concat(t).concat(e[1]):t},d.stringify=function(t,e,r,n,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},u=typeof t,c=n&&n.errors&&n.errors.wrap||{},l=!1;if(f.isRef(t)&&t.render&&(l=t.in,t=t.resolve(e,r,n,i,a({in:t.in},o))),null===t)return"null";if("string"===u)return d.wrap(t,o.arrayItems&&c.string);if("number"===u||"function"===u||"symbol"===u)return t.toString();if("object"!==u)return JSON.stringify(t);if(t instanceof Date)return d.Template.date(t,n);if(t instanceof Map){var h,v=[],m=p(t.entries());try{for(m.s();!(h=m.n()).done;){var g=s(h.value,2),y=g[0],b=g[1];v.push("".concat(y.toString()," -> ").concat(b.toString()))}}catch(A){m.e(A)}finally{m.f()}t=v}if(!Array.isArray(t))return t.toString();var w,_=[],x=p(t);try{for(x.s();!(w=x.n()).done;){var E=w.value;_.push(d.stringify(E,e,r,n,i,a({arrayItems:!0},o)))}}catch(A){x.e(A)}finally{x.f()}return d.wrap(_.join(", "),!l&&c.array)},d.constants={true:!0,false:!1,null:null,second:1e3,minute:6e4,hour:36e5,day:864e5},d.functions={if:function(t,e,r){return t?e:r},length:function(t){return"string"==typeof t?t.length:t&&"object"==typeof t?Array.isArray(t)?t.length:Object.keys(t).length:null},msg:function(t){var e=s(this,5),r=e[0],n=e[1],i=e[2],o=e[3],a=e[4],u=a.messages;if(!u)return"";var c=l.template(r,u[0],t,n,i)||l.template(r,u[1],t,n,i);return c?c.render(r,n,i,o,a):""},number:function(t){return"number"==typeof t?t:"string"==typeof t?parseFloat(t):"boolean"==typeof t?t?1:0:t instanceof Date?t.getTime():null}}},4946:function(t,e,r){"use strict";var n=r(375),i=r(1687),o=r(8068),a=r(8160),u=r(3292),c=r(6354),l=r(6133),f={};t.exports=o.extend({type:"alternatives",flags:{match:{default:"any"}},terms:{matches:{init:[],register:l.toSibling}},args:function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];
2return 1===r.length&&Array.isArray(r[0])?t.try.apply(t,h(r[0])):t.try.apply(t,r)},validate:function(t,e){var r=e.schema,n=e.error,o=e.state,a=e.prefs;if(r._flags.match){for(var s=[],u=[],l=0;l<r.$_terms.matches.length;++l){var h=r.$_terms.matches[l],d=o.nest(h.schema,"match.".concat(l));d.snapshot();var p=h.schema.$_validate(t,d,a);p.errors?(u.push(p.errors),d.restore()):s.push(p.value)}if(0===s.length)return{errors:n("alternatives.any",{details:u.map((function(t){return c.details(t,{override:!1})}))})};if("one"===r._flags.match)return 1===s.length?{value:s[0]}:{errors:n("alternatives.one")};if(s.length!==r.$_terms.matches.length)return{errors:n("alternatives.all",{details:u.map((function(t){return c.details(t,{override:!1})}))})};var v=function t(e){return e.$_terms.matches.some((function(e){return"object"===e.schema.type||"alternatives"===e.schema.type&&t(e.schema)}))};return v(r)?{value:s.reduce((function(t,e){return i(t,e,{mergeArrays:!1})}))}:{value:s[s.length-1]}}for(var m=[],g=0;g<r.$_terms.matches.length;++g){var y=r.$_terms.matches[g];if(y.schema){var b=o.nest(y.schema,"match.".concat(g));b.snapshot();var w=y.schema.$_validate(t,b,a);if(!w.errors)return w;b.restore(),m.push({schema:y.schema,reports:w.errors})}else for(var _=y.ref?y.ref.resolve(t,o,a):t,x=y.is?[y]:y.switch,E=0;E<x.length;++E){var A=x[E],M=A.is,k=A.then,S=A.otherwise,I="match.".concat(g).concat(y.switch?"."+E:"");if(M.$_match(_,o.nest(M,"".concat(I,".is")),a)){if(k)return k.$_validate(t,o.nest(k,"".concat(I,".then")),a)}else if(S)return S.$_validate(t,o.nest(S,"".concat(I,".otherwise")),a)}}return f.errors(m,e)},rules:{conditional:{method:function(t,e){n(!this._flags._endedSwitch,"Unreachable condition"),n(!this._flags.match,"Cannot combine match mode",this._flags.match,"with conditional rule"),n(void 0===e.break,"Cannot use break option with alternatives conditional");var r,i=this.clone(),o=u.when(i,t,e),a=o.is?[o]:o.switch,s=p(a);try{for(s.s();!(r=s.n()).done;){var c=r.value;if(c.then&&c.otherwise){i.$_setFlag("_endedSwitch",!0,{clone:!1});break}}}catch(l){s.e(l)}finally{s.f()}return i.$_terms.matches.push(o),i.$_mutateRebuild()}},match:{method:function(t){if(n(["any","one","all"].includes(t),"Invalid alternatives match mode",t),"any"!==t){var e,r=p(this.$_terms.matches);try{for(r.s();!(e=r.n()).done;){var i=e.value;n(i.schema,"Cannot combine match mode",t,"with conditional rules")}}catch(o){r.e(o)}finally{r.f()}}return this.$_setFlag("match",t)}},try:{method:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];n(e.length,"Missing alternative schemas"),a.verifyFlat(e,"try"),n(!this._flags._endedSwitch,"Unreachable condition");for(var i=this.clone(),o=0,s=e;o<s.length;o++){var u=s[o];i.$_terms.matches.push({schema:i.$_compile(u)})}return i.$_mutateRebuild()}}},overrides:{label:function(t){return this.$_parent("label",t).$_modify({each:function(e,r){return"is"!==r.path[0]?e.label(t):void 0},ref:!1})}},rebuild:function(t){t.$_modify({each:function(e){a.isSchema(e)&&"array"===e.type&&t.$_setFlag("_arrayItems",!0,{clone:!1})}})},manifest:{build:function(t,e){if(e.matches){var r,n=p(e.matches);try{for(n.s();!(r=n.n()).done;){var i=r.value,o=i.schema,a=i.ref,s=i.is,u=i.not,c=i.then,l=i.otherwise;t=o?t.try(o):a?t.conditional(a,{is:s,then:c,not:u,otherwise:l,switch:i.switch}):t.conditional(s,{then:c,otherwise:l})}}catch(f){n.e(f)}finally{n.f()}}return t}},messages:{"alternatives.all":"{{#label}} does not match all of the required types","alternatives.any":"{{#label}} does not match any of the allowed types","alternatives.match":"{{#label}} does not match any of the allowed types","alternatives.one":"{{#label}} matches more than one allowed type","alternatives.types":"{{#label}} must be one of {{#types}}"}}),f.errors=function(t,e){var r=e.error,n=e.state;if(!t.length)return{errors:r("alternatives.any")};if(1===t.length)return{errors:t[0].reports};var i,o=new Set,a=[],u=p(t);try{for(u.s();!(i=u.n()).done;){var l=i.value,d=l.reports,v=l.schema;if(d.length>1)return f.unmatched(t,r);var m=d[0];if(m instanceof c.Report==0)return f.unmatched(t,r);if(m.state.path.length===n.path.length)if("any.only"!==m.code){var g=m.code.split("."),y=s(g,2),b=y[0];"base"===y[1]?o.add(b):a.push({type:v.type,report:m})}else{var w,_=p(m.local.valids);try{for(_.s();!(w=_.n()).done;){var x=w.value;o.add(x)}}catch(E){_.e(E)}finally{_.f()}}else a.push({type:v.type,report:m})}}catch(E){u.e(E)}finally{u.f()}return a.length?1===a.length?{errors:a[0].report}:f.unmatched(t,r):{errors:r("alternatives.types",{types:h(o)})}},f.unmatched=function(t,e){var r,n=[],i=p(t);try{for(i.s();!(r=i.n()).done;){var o=r.value;n.push.apply(n,h(o.reports))}}catch(a){i.e(a)}finally{i.f()}return{errors:e("alternatives.match",c.details(n,{override:!1}))}}},8068:function(t,e,r){"use strict";var n=r(375),i=r(7629),o=r(8160),a=r(6914);t.exports=i.extend({type:"any",flags:{only:{default:!1}},terms:{alterations:{init:null},examples:{init:null},externals:{init:null},metas:{init:[]},notes:{init:[]},shared:{init:null},tags:{init:[]},whens:{init:null}},rules:{custom:{method:function(t,e){return n("function"==typeof t,"Method must be a function"),n(void 0===e||e&&"string"==typeof e,"Description must be a non-empty string"),this.$_addRule({name:"custom",args:{method:t,de
2scription:e}})},validate:function(t,e,r){var n=r.method;try{return n(t,e)}catch(t){return e.error("any.custom",{error:t})}},args:["method","description"],multi:!0},messages:{method:function(t){return this.prefs({messages:t})}},shared:{method:function(t){n(o.isSchema(t)&&t._flags.id,"Schema must be a schema with an id");var e=this.clone();return e.$_terms.shared=e.$_terms.shared||[],e.$_terms.shared.push(t),e.$_mutateRegister(t),e}},warning:{method:function(t,e){return n(t&&"string"==typeof t,"Invalid warning code"),this.$_addRule({name:"warning",args:{code:t,local:e},warn:!0})},validate:function(t,e,r){var n=r.code,i=r.local;return e.error(n,i)},args:["code","local"],multi:!0}},modifiers:{keep:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t.keep=e},message:function(t,e){t.message=a.compile(e)},warn:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t.warn=e}},manifest:{build:function(t,e){for(var r in e){var n=e[r];if(["examples","externals","metas","notes","tags"].includes(r)){var i,o=p(n);try{for(o.s();!(i=o.n()).done;){var a=i.value;t=t[r.slice(0,-1)](a)}}catch(k){o.e(k)}finally{o.f()}}else if("alterations"!==r)if("whens"!==r){if("shared"===r){var s,u=p(n);try{for(u.s();!(s=u.n()).done;){var c=s.value;t=t.shared(c)}}catch(k){u.e(k)}finally{u.f()}}}else{var l,f=p(n);try{for(f.s();!(l=f.n()).done;){var h=l.value,d=h.ref,v=h.is,m=h.not,g=h.then,y=h.otherwise,b=h.concat;t=b?t.concat(b):d?t.when(d,{is:v,not:m,then:g,otherwise:y,switch:h.switch,break:h.break}):t.when(v,{then:g,otherwise:y,break:h.break})}}catch(k){f.e(k)}finally{f.f()}}else{var w,_={},x=p(n);try{for(x.s();!(w=x.n()).done;){var E=w.value,A=E.target,M=E.adjuster;_[A]=M}}catch(k){x.e(k)}finally{x.f()}t=t.alter(_)}}return t}},messages:{"any.custom":"{{#label}} failed custom validation because {{#error.message}}","any.default":"{{#label}} threw an error when running default method","any.failover":"{{#label}} threw an error when running failover method","any.invalid":"{{#label}} contains an invalid value","any.only":'{{#label}} must be {if(#valids.length == 1, "", "one of ")}{{#valids}}',"any.ref":"{{#label}} {{#arg}} references {{:#ref}} which {{#reason}}","any.required":"{{#label}} is required","any.unknown":"{{#label}} is not allowed"}})},546:function(t,e,r){"use strict";var n=r(375),i=r(9474),o=r(9621),a=r(8068),s=r(8160),u=r(3292),c={};t.exports=a.extend({type:"array",flags:{single:{default:!1},sparse:{default:!1}},terms:{items:{init:[],manifest:"schema"},ordered:{init:[],manifest:"schema"},_exclusions:{init:[]},_inclusions:{init:[]},_requireds:{init:[]}},coerce:{from:"object",method:function(t,e){var r=e.schema,n=e.state,i=e.prefs;if(Array.isArray(t)){var o=r.$_getRule("sort");return o?c.sort(r,t,o.args.options,n,i):void 0}}},validate:function(t,e){var r=e.schema,n=e.error;if(!Array.isArray(t)){if(r._flags.single){var i=[t];return i[s.symbols.arraySingle]=!0,{value:i}}return{errors:n("array.base")}}if(r.$_getRule("items")||r.$_terms.externals)return{value:t.slice()}},rules:{has:{method:function(t){t=this.$_compile(t,{appendPath:!0});var e=this.$_addRule({name:"has",args:{schema:t}});return e.$_mutateRegister(t),e},validate:function(t,e,r){for(var n=e.state,i=e.prefs,o=e.error,a=r.schema,s=[t].concat(h(n.ancestors)),u=0;u<t.length;++u){var c=n.localize([].concat(h(n.path),[u]),s,a);if(a.$_match(t[u],c,i))return t}var l=a._flags.label;return l?o("array.hasKnown",{patternLabel:l}):o("array.hasUnknown",null)},multi:!0},items:{method:function(){for(var t=this,e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];s.verifyFlat(r,"items");for(var i=this.$_addRule("items"),o=function(e){var n=s.tryWithPath((function(){return t.$_compile(r[e])}),e,{append:!0});i.$_terms.items.push(n)},a=0;a<r.length;++a)o(a);return i.$_mutateRebuild()},validate:function(t,e){var r=e.schema,n=e.error,i=e.state,o=e.prefs,a=e.errorsArray,u=r.$_terms._requireds.slice(),l=r.$_terms.ordered.slice(),f=[].concat(h(r.$_terms._inclusions),h(u)),d=!t[s.symbols.arraySingle];delete t[s.symbols.arraySingle];for(var v=a(),m=t.length,g=0;g<m;++g){var y=t[g],b=!1,w=!1,_=d?g:new Number(g),x=[].concat(h(i.path),[_]);if(r._flags.sparse||void 0!==y){var E,A=[t].concat(h(i.ancestors)),M=p(r.$_terms._exclusions);try{for(M.s();!(E=M.n()).done;){var k=E.value;if(k.$_match(y,i.localize(x,A,k),o,{presence:"ignore"}
2)){if(v.push(n("array.excludes",{pos:g,value:y},i.localize(x))),o.abortEarly)return v;b=!0,l.shift();break}}}catch(D){M.e(D)}finally{M.f()}if(!b){if(r.$_terms.ordered.length){if(l.length){var S=l.shift(),I=S.$_validate(y,i.localize(x,A,S),o);if(I.errors){if(v.push.apply(v,h(I.errors)),o.abortEarly)return v}else if("strip"===S._flags.result)c.fastSplice(t,g),--g,--m;else{if(!r._flags.sparse&&void 0===I.value){if(v.push(n("array.sparse",{key:_,path:x,pos:g,value:void 0},i.localize(x))),o.abortEarly)return v;continue}t[g]=I.value}continue}if(!r.$_terms.items.length){if(v.push(n("array.orderedLength",{pos:g,limit:r.$_terms.ordered.length})),o.abortEarly)return v;break}}for(var P=[],N=u.length,C=0;C<N;++C){var O=i.localize(x,A,u[C]);O.snapshot();var T=u[C].$_validate(y,O,o);if(P[C]=T,!T.errors){if(t[g]=T.value,w=!0,c.fastSplice(u,C),--C,--N,!r._flags.sparse&&void 0===T.value&&(v.push(n("array.sparse",{key:_,path:x,pos:g,value:void 0},i.localize(x))),o.abortEarly))return v;break}O.restore()}if(!w){var R=o.stripUnknown&&!!o.stripUnknown.arrays||!1;N=f.length;var B,L=p(f);try{for(L.s();!(B=L.n()).done;){var Z=B.value,j=void 0,F=u.indexOf(Z);if(-1!==F)j=P[F];else{var U=i.localize(x,A,Z);if(U.snapshot(),!(j=Z.$_validate(y,U,o)).errors){"strip"===Z._flags.result?(c.fastSplice(t,g),--g,--m):r._flags.sparse||void 0!==j.value?t[g]=j.value:(v.push(n("array.sparse",{key:_,path:x,pos:g,value:void 0},i.localize(x))),b=!0),w=!0;break}U.restore()}if(1===N){if(R){c.fastSplice(t,g),--g,--m,w=!0;break}if(v.push.apply(v,h(j.errors)),o.abortEarly)return v;b=!0;break}}}catch(D){L.e(D)}finally{L.f()}if(!b&&(r.$_terms._inclusions.length||r.$_terms._requireds.length)&&!w){if(R){c.fastSplice(t,g),--g,--m;continue}if(v.push(n("array.includes",{pos:g,value:y},i.localize(x))),o.abortEarly)return v}}}}else{if(v.push(n("array.sparse",{key:_,path:x,pos:g,value:void 0},i.localize(x))),o.abortEarly)return v;l.shift()}}return u.length&&c.fillMissedErrors(r,v,u,t,i,o),l.length&&(c.fillOrderedErrors(r,v,l,t,i,o),v.length||c.fillDefault(l,t,i,o)),v.length?v:t},priority:!0,manifest:!1},length:{method:function(t){return this.$_addRule({name:"length",args:{limit:t},operator:"="})},validate:function(t,e,r,n){var i=r.limit,o=n.name,a=n.operator,u=n.args;return s.compare(t.length,i,a)?t:e.error("array."+o,{limit:u.limit,value:t})},args:[{name:"limit",ref:!0,assert:s.limit,message:"must be a positive integer"}]},max:{method:function(t){return this.$_addRule({name:"max",method:"length",args:{limit:t},operator:"<="})}},min:{method:function(t){return this.$_addRule({name:"min",method:"length",args:{limit:t},operator:">="})}},ordered:{method:function(){for(var t=this,e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];s.verifyFlat(r,"ordered");for(var i=this.$_addRule("items"),o=function(e){var n=s.tryWithPath((function(){return t.$_compile(r[e])}),e,{append:!0});c.validateSingle(n,i),i.$_mutateRegister(n),i.$_terms.ordered.push(n)},a=0;a<r.length;++a)o(a);return i.$_mutateRebuild()}},single:{method:function(t){var e=void 0===t||!!t;return n(!e||!this._flags._arrayItems,"Cannot specify single rule when array has array items"),this.$_setFlag("single",e)}},sort:{method:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s.assertOptions(t,["by","order"]);var e={order:t.order||"ascending"};return t.by&&(e.by=u.ref(t.by,{ancestor:0}),n(!e.by.ancestor,"Cannot sort by ancestor")),this.$_addRule({name:"sort",args:{options:e}})},validate:function(t,e,r){var n=e.error,i=e.state,o=e.prefs,a=e.schema,s=r.options,u=c.sort(a,t,s,i,o),l=u.value,f=u.errors;if(f)return f;for(var h=0;h<t.length;++h)if(t[h]!==l[h])return n("array.sort",{order:s.order,by:s.by?s.by.key:"value"});return t},convert:!0},sparse:{method:function(t){var e=void 0===t||!!t;return this._flags.sparse===e?this:(e?this.clone():this.$_addRule("items")).$_setFlag("sparse",e,{clone:!1})}},unique:{method:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n(!t||"function"==typeof t||"string"==typeof t,"comparator must be a function or a string"),s.assertOptions(e,["ignoreUndefined","separator"]);
2var r={name:"unique",args:{options:e,comparator:t}};if(t)if("string"==typeof t){var i=s.default(e.separator,".");r.path=i?t.split(i):[t]}else r.comparator=t;return this.$_addRule(r)},validate:function(t,e,r,a){for(var s=e.state,u=e.error,c=(e.schema,r.comparator),l=r.options,f=a.comparator,d=a.path,p={string:Object.create(null),number:Object.create(null),undefined:Object.create(null),boolean:Object.create(null),object:new Map,function:new Map,custom:new Map},v=f||i,m=l.ignoreUndefined,g=0;g<t.length;++g){var y=d?o(t[g],d):t[g],b=f?p.custom:p[typeof y];if(n(b,"Failed to find unique map container for type",typeof y),b instanceof Map){for(var w=b.entries(),_=void 0;!(_=w.next()).done;)if(v(_.value[0],y)){var x=s.localize([].concat(h(s.path),[g]),[t].concat(h(s.ancestors))),E={pos:g,value:t[g],dupePos:_.value[1],dupeValue:t[_.value[1]]};return d&&(E.path=c),u("array.unique",E,x)}b.set(y,g)}else{if((!m||void 0!==y)&&void 0!==b[y]){var A={pos:g,value:t[g],dupePos:b[y],dupeValue:t[b[y]]};return d&&(A.path=c),u("array.unique",A,s.localize([].concat(h(s.path),[g]),[t].concat(h(s.ancestors))))}b[y]=g}}return t},args:["comparator","options"],multi:!0}},cast:{set:{from:Array.isArray,to:function(t,e){return new Set(t)}}},rebuild:function(t){t.$_terms._inclusions=[],t.$_terms._exclusions=[],t.$_terms._requireds=[];var e,r=p(t.$_terms.items);try{for(r.s();!(e=r.n()).done;){var n=e.value;c.validateSingle(n,t),"required"===n._flags.presence?t.$_terms._requireds.push(n):"forbidden"===n._flags.presence?t.$_terms._exclusions.push(n):t.$_terms._inclusions.push(n)}}catch(s){r.e(s)}finally{r.f()}var i,o=p(t.$_terms.ordered);try{for(o.s();!(i=o.n()).done;){var a=i.value;c.validateSingle(a,t)}}catch(s){o.e(s)}finally{o.f()}},manifest:{build:function(t,e){var r,n;return e.items&&(t=(r=t).items.apply(r,h(e.items))),e.ordered&&(t=(n=t).ordered.apply(n,h(e.ordered))),t}},messages:{"array.base":"{{#label}} must be an array","array.excludes":"{{#label}} contains an excluded value","array.hasKnown":"{{#label}} does not contain at least one required match for type {:#patternLabel}","array.hasUnknown":"{{#label}} does not contain at least one required match","array.includes":"{{#label}} does not match any of the allowed types","array.includesRequiredBoth":"{{#label}} does not contain {{#knownMisses}} and {{#unknownMisses}} other required value(s)","array.includesRequiredKnowns":"{{#label}} does not contain {{#knownMisses}}","array.includesRequiredUnknowns":"{{#label}} does not contain {{#unknownMisses}} required value(s)","array.length":"{{#label}} must contain {{#limit}} items","array.max":"{{#label}} must contain less than or equal to {{#limit}} items","array.min":"{{#label}} must contain at least {{#limit}} items","array.orderedLength":"{{#label}} must contain at most {{#limit}} items","array.sort":"{{#label}} must be sorted in {#order} order by {{#by}}","array.sort.mismatching":"{{#label}} cannot be sorted due to mismatching types","array.sort.unsupported":"{{#label}} cannot be sorted due to unsupported type {#type}","array.sparse":"{{#label}} must not be a sparse array item","array.unique":"{{#label}} contains a duplicate value"}}),c.fillMissedErrors=function(t,e,r,n,i,o){var a,s=[],u=0,c=p(r);try{for(c.s();!(a=c.n()).done;){var l=a.value._flags.label;l?s.push(l):++u}}catch(f){c.e(f)}finally{c.f()}s.length?u?e.push(t.$_createError("array.includesRequiredBoth",n,{knownMisses:s,unknownMisses:u},i,o)):e.push(t.$_createError("array.includesRequiredKnowns",n,{knownMisses:s},i,o)):e.push(t.$_createError("array.includesRequiredUnknowns",n,{unknownMisses:u},i,o))},c.fillOrderedErrors=function(t,e,r,n,i,o){var a,s=[],u=p(r);try{for(u.s();!(a=u.n()).done;){var l=a.value;"required"===l._flags.presence&&s.push(l)}}catch(f){u.e(f)}finally{u.f()}s.length&&c.fillMissedErrors(t,e,s,n,i,o)},c.fillDefault=function(t,e,r,n){for(var i=[],o=!0,a=t.length-1;a>=0;--a){var s=t[a],u=[e].concat(h(r.ancestors)),c=s.$_validate(void 0,r.localize(r.path,u,s),n).value;if(o){if(void 0===c)continue;o=!1}i.unshift(c)}i.length&&e.push.apply(e,i)},c.fastSplice=function(t,e){for(var r=e;r<t.length;)t[r++]=t[r];--t.length},c.validateSingle=function(t,e){("array"===t.type||t._flags._arrayItems)&&(n(!e._flags.single,"Cannot specify array item with single rule enabled"),e.$_setFlag("_arrayItems",!0,{clone:!1}))},c.sort=function(t,e,r,n,i){var o="ascending"===r.order?1:-1,a=-1*o,s=o,u=function(u,l){var f=c.compare(u,l,a,s);if(null!==f)return f;if(r.by&&(u=r.by.resolve(u,n,i),l=r.by.resolve(l,n,i)),null!==(f=c.compare(u,l,a,s)))return f;var h=typeof u;if(h!==typeof l)throw t.$_createError("array.sort.mismatching",e,null,n,i);if("number"!==h&&"string"!==h)throw t.$_createError("array.sort.unsupported",e,{type:h},n,i);return"number"===h?(u-l)*o:u<l?a:s};try{return{value:e.slice().sort(u)}}catch(t){return{errors:t}}},c.compare=function(t,e,r,n){return t===e?0:void 0===t?1:void 0===e?-1:null===t?n:null===e?r:null}},4937:function(t,e,r){"use strict";var n=r(375),i=r(8068),o=r(8160),a=r(2036),s={isBool:function(t){return"boolean"==typeof t}};t.exports=i.extend({type:"boolean",flags:{sensitive:{default:!1}},terms:{falsy:{init:null,manifest:"values"},truthy:{init:null,manifest:"values"}},coerce:function(t,e){var r=e.schema;if("boolean"!=typeof t){if("string"==typeof t){var n=r._flags.sensitive?t:t.toLowerCase();t="true"===n||"false"!==n&&t}return"boolean"!=typeof t&&(t=r.$_terms.truthy&&r.$_terms.truthy.has(t,null,null,!r._flags.sensitive)||(!r.$_terms.falsy||!r.$_terms.falsy.has(t,null,null,!r._flags.sensitive))&&t),{value:t}}},validate:function(t,e){var r=e.error;if("boolean"!=typeof t)return{value:t,errors:r("boolean.base")}},rules:{truthy:{method:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];o.verifyFlat(e,"truthy");var i=this.clone();i.$_terms.truthy=i.$_terms.truthy||new a;for(var s=0;s<e.length;++s){var u=e[s];n(void 0!==u,"Cannot call truthy with undefined"),i.$_terms.truthy.add(u)}return i}},falsy:{method:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];o.verifyFlat(e,"falsy");var i=this.clone();i.$_terms.falsy=i.$_terms.falsy||new a;for(var s=0;s<e.length;++s){var u=e[s];n(void 0!==u,"Cannot call falsy with undefined"),i.$_terms.falsy.add(u)}return i}},sensitive:{method:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.$_setFlag("sensitive",t)}}},cast:{number:{from:s.isBool,to:function(t,e){return t?1:0}},string:{from:s.isBool,to:function(t,e){return t?"true":"false"}}},manifest:{build:function(t,e){var r,n;return e.truthy&&(t=(r=t).truthy.apply(r,h(e.truthy))),e.falsy&&(t=(n=t).falsy.apply(n,h(e.falsy))),t}},messages:{"boolean.base":"{{#label}} must be a boolean"}})},7500:function(t,e,r){"use strict";var n=r(375),i=r(8068),o=r(8160),a=r(3328),s={isDate:function(t){return t instanceof Date}};t.exports=i.extend({type:"date",coerce:{from:["number","string"],method:function(t,e){var r=e.schema;return{value:s.parse(t,r._flags.format)||t}}},validate:function(t,e){var r=e.schema,n=e.error,i=e.prefs;if(!(t instanceof Date)||isNaN(t.getTime())){var o=r._flags.format;return i.convert&&o&&"string"==typeof t?{value:t,errors:n("date.format",{format:o})}:{value:t,errors:n("date.base")}}},rules:{compare:{method:!1,validate:function(t,e,r,n){var i=r.date,a=n.name,s=n.operator,u=n.args,c="now"===i?Date.now():i.getTime();return o.compare(t.getTime(),c,s)?t:e.error("date."+a,{limit:u.date,value:t})},args:[{name:"date",ref:!0,normalize:function(t){return"now"===t?t:s.parse(t)},assert:function(t){return null!==t},message:"must have a valid date format"}]},format:{method:function(t){return n(["iso","javascript","unix"].includes(t),"Unknown date format",t),this.$_setFlag("format",t)}},greater:{method:function(t){return this.$_addRule({name:"greater",method:"compare",args:{date:t},operator:">"})}},iso:{method:function(){return this.format("iso")}},less:{method:function(t){return this.$_addRule({name:"less",method:"compare",args:{date:t},operator:"<"})}},max:{method:function(t){return this.$_addRule({name:"max",method:"compare",args:{date:t},operator:"<="})}},min:{method:function(t){return this.$_addRule({name:"min",method:"compare",args:{date:t},operator:">="})}},timestamp:{method:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"javascript";return n(["javascript","unix"].includes(t),'"type" must be one of "javascript, unix"'),this.format(t)}}},cast:{number:{from:s.isDate,to:function(t,e){return t.getTime()}}
2,string:{from:s.isDate,to:function(t,e){var r=e.prefs;return a.date(t,r)}}},messages:{"date.base":"{{#label}} must be a valid date","date.format":'{{#label}} must be in {msg("date.format." + #format) || #format} format',"date.greater":"{{#label}} must be greater than {{:#limit}}","date.less":"{{#label}} must be less than {{:#limit}}","date.max":"{{#label}} must be less than or equal to {{:#limit}}","date.min":"{{#label}} must be greater than or equal to {{:#limit}}","date.format.iso":"ISO 8601 date","date.format.javascript":"timestamp or number of milliseconds","date.format.unix":"timestamp or number of seconds"}}),s.parse=function(t,e){if(t instanceof Date)return t;if("string"!=typeof t&&(isNaN(t)||!isFinite(t)))return null;if(/^\s*$/.test(t))return null;if("iso"===e)return o.isIsoDate(t)?s.date(t.toString()):null;var r=t;if("string"==typeof t&&/^[+-]?\d+(\.\d+)?$/.test(t)&&(t=parseFloat(t)),e){if("javascript"===e)return s.date(1*t);if("unix"===e)return s.date(1e3*t);if("string"==typeof r)return null}return s.date(t)},s.date=function(t){var e=new Date(t);return isNaN(e.getTime())?null:e}},390:function(t,e,r){"use strict";var n=r(375),i=r(7824);t.exports=i.extend({type:"function",properties:{typeof:"function"},rules:{arity:{method:function(t){return n(Number.isSafeInteger(t)&&t>=0,"n must be a positive integer"),this.$_addRule({name:"arity",args:{n:t}})},validate:function(t,e,r){var n=r.n;return t.length===n?t:e.error("function.arity",{n:n})}},class:{method:function(){return this.$_addRule("class")},validate:function(t,e){return/^\s*class\s/.test(t.toString())?t:e.error("function.class",{value:t})}},minArity:{method:function(t){return n(Number.isSafeInteger(t)&&t>0,"n must be a strict positive integer"),this.$_addRule({name:"minArity",args:{n:t}})},validate:function(t,e,r){var n=r.n;return t.length>=n?t:e.error("function.minArity",{n:n})}},maxArity:{method:function(t){return n(Number.isSafeInteger(t)&&t>=0,"n must be a positive integer"),this.$_addRule({name:"maxArity",args:{n:t}})},validate:function(t,e,r){var n=r.n;return t.length<=n?t:e.error("function.maxArity",{n:n})}}},messages:{"function.arity":"{{#label}} must have an arity of {{#n}}","function.class":"{{#label}} must be a class","function.maxArity":"{{#label}} must have an arity lesser or equal to {{#n}}","function.minArity":"{{#label}} must have an arity greater or equal to {{#n}}"}})},7824:function(t,e,r){"use strict";var n=r(978),i=r(375),o=r(8571),s=r(3652),g=r(8068),y=r(8160),b=r(3292),w=r(6354),_=r(6133),x=r(3328),E={renameDefaults:{alias:!1,multiple:!1,override:!1}};t.exports=g.extend({type:"_keys",properties:{typeof:"object"},flags:{unknown:{default:!1}},terms:{dependencies:{init:null},keys:{init:null,manifest:{mapped:{from:"schema",to:"key"}}},patterns:{init:null},renames:{init:null}},args:function(t,e){return t.keys(e)},validate:function(t,e){var r=e.schema,n=e.error,i=e.state,o=e.prefs;if(!t||typeof t!==r.$_property("typeof")||Array.isArray(t))return{value:t,errors:n("object.base",{type:r.$_property("typeof")})};if(r.$_terms.renames||r.$_terms.dependencies||r.$_terms.keys||r.$_terms.patterns||r.$_terms.externals){t=E.clone(t,o);var a=[];if(r.$_terms.renames&&!E.rename(r,t,i,o,a))return{value:t,errors:a};if(!r.$_terms.keys&&!r.$_terms.patterns&&!r.$_terms.dependencies)return{value:t,errors:a};var s=new Set(Object.keys(t));if(r.$_terms.keys){var u,c=[t].concat(h(i.ancestors)),l=p(r.$_terms.keys);try{for(l.s();!(u=l.n()).done;){var f=u.value,d=f.key,v=t[d];s.delete(d);var m=i.localize([].concat(h(i.path),[d]),c,f),g=f.schema.$_validate(v,m,o);if(g.errors){if(o.abortEarly)return{value:t,errors:g.errors};void 0!==g.value&&(t[d]=g.value),a.push.apply(a,h(g.errors))}else"strip"===f.schema._flags.result||void 0===g.value&&void 0!==v?delete t[d]:void 0!==g.value&&(t[d]=g.value)}}catch(M){l.e(M)}finally{l.f()}}if(s.size||r._flags._hasPatternMatch){var y=E.unknown(r,t,s,a,i,o);if(y)return y}if(r.$_terms.dependencies){var b,w=p(r.$_terms.dependencies);try{for(w.s();!(b=w.n()).done;){var _=b.value;if(null===_.key||!1!==E.isPresent(_.options)(_.key.resolve(t,i,o,null,{shadow:!1}))){var x=E.dependencies[_.rel](r,_,t,i,o);if(x){var A=r.$_createError(x.code,t,x.context,i,o);if(o.abortEarly)return{value:t,errors:A};a.push(A)}}}}catch(M){w.e(M)}finally{w.f()}}return{value:t,errors:a}}},rules:{and:{method:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return y.verifyFlat(e,"and"),E.dependency(this,"and",null,e)}},append:{method:function(t){return null==t||0===Object.keys(t).length?this:this.keys(t)}},assert:{method:function(t,e,r){x.isTemplate(t)||(t=b.ref(t)),i(void 0===r||"string"==typeof r,"Message must be a string"),e=this.$_compile(e,{appendPath:!0});var n=this.$_addRule({name:"assert",args:{subject:t,schema:e,message:r}});return n.$_mutateRegister(t),n.$_mutateRegister(e),n},validate:function(t,e,r){var n=e.error,i=e.prefs,o=e.state,a=r.subject,s=r.schema,u=r.message,c=a.resolve(t,o,i),l=_.isRef(a)?a.absolute(o):[];return s.$_match(c,o.localize(l,[t].concat(h(o.ancestors)),s),i)?t:n("object.assert",{subject:a,message:u})},args:["subject","schema","message"],multi:!0},instance:{method:function(t,e){return i("function"==typeof t,"constructor must be a function"),e=e||t.name,this.$_addRule({name:"instance",args:{constructor:t,name:e}})},validate:function(t,e,r){var n=r.constructor,i=r.name;return t instanceof n?t:e.error("object.instance",{type:i,value:t})},args:["constructor","name"]},keys:{method:function(t){var e=this;i(void 0===t||"object"==typeof t,"Object schema must be a valid object"),i(!y.isSchema(t),"Object schema cannot be a joi schema");var r=this.clone();if(t)if(Object.keys(t).length){r.$_terms.keys=r.$_terms.keys?r.$_terms.keys.filter((function(e){return!t.hasOwnProperty(e.key)})):new E.Keys;var n=function(n){y.tryWithPath((function(){return r.$_terms.keys.push({key:n,schema:e.$_compile(t[n])})}),n)};for(var o in t)n(o)}else r.$_terms.keys=new E.Keys;else r.$_terms.keys=null;return r.$_mutateRebuild()}},length:{method:function(t){return this.$_addRule({name:"length",args:{limit:t},operator:"="})},validate:function(t,e,r,n){var i=r.limit,o=n.name,a=n.operator,s=n.args;return y.compare(Object.keys(t).length,i,a)?t:e.error("object."+o,{limit:s.limit,value:t})},args:[{name:"limit",ref:!0,assert:y.limit,message:"must be a positive integer"}]},max:{method:function(t){return this.$_addRule({name:"max",method:"length",args:{limit:t},operator:"<="})}},min:{method:function(t){return this.$_addRule({name:"min",method:"length",args:{limit:t},operator:">="})}},nand:{method:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return y.verifyFlat(e,"nand"),E.dependency(this,"nand",null,e)}},or:{method:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return y.verifyFlat(e,"or"),E.dependency(this,"or",null,e)}},oxor:{method:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return E.dependency(this,"oxor",null,e)}},pattern:{method:function(t,e){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=t instanceof RegExp;o||(t=this.$_compile(t,{appendPath:!0})),i(void 0!==e,"Invalid rule"),y.assertOptions(n,["fallthrough","matches"]),o&&i(!t.flags.includes("g")&&!t.flags.includes("y"),"pattern should not use global or sticky mode"),e=this.$_compile(e,{appendPath:!0});var a=this.clone();a.$_terms.patterns=a.$_terms.patterns||[];var s=(d(r={},o?"regex":"schema",t),d(r,"rule",e),r);return n.matches&&(s.matches=this.$_compile(n.matches),"array"!==s.matches.type&&(s.matches=s.matches.$_root.array().items(s.matches)),a.$_mutateRegister(s.matches),a.$_setFlag("_hasPatternMatch",!0,{clone:!1})),n.fallthrough&&(s.fallthrough=!0),a.$_terms.patterns.push(s),a.$_mutateRegister(e),a}},ref:{method:function(){return this.$_addRule("ref")},validate:function(t,e){return _.isRef(t)?t:e.error("object.refType",{value:t})}},regex:{method:function(){return this.$_addRule("regex")},validate:function(t,e){return t instanceof RegExp?t:e.error("object.regex",{value:t})}},rename:{method:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};i("string"==typeof t||t instanceof RegExp,"Rename missing the from argument"),i("string"==typeof e||e instanceof x,"Invalid rename to argument"),i(e!==t,"Cannot rename key to 
2same name:",t),y.assertOptions(r,["alias","ignoreUndefined","override","multiple"]);var o=this.clone();o.$_terms.renames=o.$_terms.renames||[];var a,s=p(o.$_terms.renames);try{for(s.s();!(a=s.n()).done;){var u=a.value;i(u.from!==t,"Cannot rename the same key multiple times")}}catch(c){s.e(c)}finally{s.f()}return e instanceof x&&o.$_mutateRegister(e),o.$_terms.renames.push({from:t,to:e,options:n(E.renameDefaults,r)}),o}},schema:{method:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"any";return this.$_addRule({name:"schema",args:{type:t}})},validate:function(t,e,r){var n=r.type;return!y.isSchema(t)||"any"!==n&&t.type!==n?e.error("object.schema",{type:n}):t}},unknown:{method:function(t){return this.$_setFlag("unknown",!1!==t)}},with:{method:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return E.dependency(this,"with",t,e,r)}},without:{method:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return E.dependency(this,"without",t,e,r)}},xor:{method:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return y.verifyFlat(e,"xor"),E.dependency(this,"xor",null,e)}}},overrides:{default:function(t,e){return void 0===t&&(t=y.symbols.deepDefault),this.$_parent("default",t,e)}},rebuild:function(t){if(t.$_terms.keys){var e,r=new s.Sorter,n=p(t.$_terms.keys);try{var i=function(){var t=e.value;y.tryWithPath((function(){return r.add(t,{after:t.schema.$_rootReferences(),group:t.key})}),t.key)};for(n.s();!(e=n.n()).done;)i()}catch(o){n.e(o)}finally{n.f()}t.$_terms.keys=u(E.Keys,h(r.nodes))}},manifest:{build:function(t,e){if(e.keys&&(t=t.keys(e.keys)),e.dependencies){var r,n=p(e.dependencies);try{for(n.s();!(r=n.n()).done;){var i=r.value,o=i.rel,a=i.key,s=void 0===a?null:a,u=i.peers,c=i.options;t=E.dependency(t,o,s,u,c)}}catch(k){n.e(k)}finally{n.f()}}if(e.patterns){var l,f=p(e.patterns);try{for(f.s();!(l=f.n()).done;){var h=l.value,d=h.regex,v=h.schema,m=h.rule,g=h.fallthrough,y=h.matches;t=t.pattern(d||v,m,{fallthrough:g,matches:y})}}catch(k){f.e(k)}finally{f.f()}}if(e.renames){var b,w=p(e.renames);try{for(w.s();!(b=w.n()).done;){var _=b.value,x=_.from,A=_.to,M=_.options;t=t.rename(x,A,M)}}catch(k){w.e(k)}finally{w.f()}}return t}},messages:{"object.and":"{{#label}} contains {{#presentWithLabels}} without its required peers {{#missingWithLabels}}","object.assert":'{{#label}} is invalid because {if(#subject.key, `"` + #subject.key + `" failed to ` + (#message || "pass the assertion test"), #message || "the assertion failed")}',"object.base":"{{#label}} must be of type {{#type}}","object.instance":"{{#label}} must be an instance of {{:#type}}","object.length":'{{#label}} must have {{#limit}} key{if(#limit == 1, "", "s")}',"object.max":'{{#label}} must have less than or equal to {{#limit}} key{if(#limit == 1, "", "s")}',"object.min":'{{#label}} must have at least {{#limit}} key{if(#limit == 1, "", "s")}',"object.missing":"{{#label}} must contain at least one of {{#peersWithLabels}}","object.nand":"{{:#mainWithLabel}} must not exist simultaneously with {{#peersWithLabels}}","object.oxor":"{{#label}} contains a conflict between optional exclusive peers {{#peersWithLabels}}","object.pattern.match":"{{#label}} keys failed to match pattern requirements","object.refType":"{{#label}} must be a Joi reference","object.regex":"{{#label}} must be a RegExp object","object.rename.multiple":"{{#label}} cannot rename {{:#from}} because multiple renames are disabled and another key was already renamed to {{:#to}}","object.rename.override":"{{#label}} cannot rename {{:#from}} because override is disabled and target {{:#to}} exists","object.schema":"{{#label}} must be a Joi schema of {{#type}} type","object.unknown":"{{#label}} is not allowed","object.with":"{{:#mainWithLabel}} missing required peer {{:#peerWithLabel}}","object.without":"{{:#mainWithLabel}} conflict with forbidden peer {{:#peerWithLabel}}","object.xor":"{{#label}} contains a conflict between exclusive peers {{#peersWithLabels}}"}}),E.clone=function(t,e){if("object"==typeof t){if(e.nonEnumerables)return o(t,{shallow:!0});var r=Object.create(Object.getPrototypeOf(t));return Object.assign(r,t),r}var n=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.apply(this,r)};return n.prototype=o(t.prototype),Object.defineProperty(n,"name",{value:t.name,writable:!1}),Object.defineProperty(n,"length",{value:t.length,writable:!1}),Object.assign(n,t),n},E.dependency=function(t,e,r,n,o){i(null===r||"string"==typeof r,e,"key must be a strings"),o||(o=n.length>1&&"object"==typeof n[n.length-1]?n.pop():{}),y.assertOptions(o,["separator","isPresent"]),n=[].concat(n);var a,s=y.default(o.separator,"."),u=[],c=p(n);try{for(c.s();!(a=c.n()).done;){var l=a.value;i("string"==typeof l,e,"peers must be strings"),u.push(b.ref(l,{separator:s,ancestor:0,prefix:!1}))}}catch(h){c.e(h)}finally{c.f()}null!==r&&(r=b.ref(r,{separator:s,ancestor:0,prefix:!1}));var f=t.clone();return f.$_terms.dependencies=f.$_terms.dependencies||[],f.$_terms.dependencies.push(new E.Dependency(e,r,u,n,o)),f},E.dependencies={and:function(t,e,r,n,i){var o,a=[],s=[],u=e.peers.length,c=E.isPresent(e.options),l=p(e.peers);try{for(l.s();!(o=l.n()).done;){var f=o.value;!1===c(f.resolve(r,n,i,null,{shadow:!1}))?a.push(f.key):s.push(f.key)}}catch(h){l.e(h)}finally{l.f()}if(a.length!==u&&s.length!==u)return{code:"object.and",context:{present:s,presentWithLabels:E.keysToLabels(t,s),missing:a,missingWithLabels:E.keysToLabels(t,a)}}},nand:function(t,e,r,n,i){var o,a=[],s=E.isPresent(e.options),u=p(e.peers);try{for(u.s();!(o=u.n()).done;){var c=o.value;s(c.resolve(r,n,i,null,{shadow:!1}))&&a.push(c.key)}}catch(h){u.e(h)}finally{u.f()}if(a.length===e.peers.length){var l=e.paths[0],f=e.paths.slice(1);return{code:"object.nand",context:{main:l,mainWithLabel:E.keysToLabels(t,l),peers:f,peersWithLabels:E.keysToLabels(t,f)}}}},or:function(t,e,r,n,i){var o,a=E.isPresent(e.options),s=p(e.peers);try{for(s.s();!(o=s.n()).done;)if(a(o.value.resolve(r,n,i,null,{shadow:!1})))return}catch(u){s.e(u)}finally{s.f()}return{code:"object.missing",context:{peers:e.paths,peersWithLabels:E.keysToLabels(t,e.paths)}}},oxor:function(t,e,r,n,i){var o,a=[],s=E.isPresent(e.options),u=p(e.peers);try{for(u.s();!(o=u.n()).done;){var c=o.value;s(c.resolve(r,n,i,null,{shadow:!1}))&&a.push(c.key)}}catch(f){u.e(f)}finally{u.f()}if(a.length&&1!==a.length){var l={peers:e.paths,peersWithLabels:E.keysToLabels(t,e.paths)};
2return l.present=a,l.presentWithLabels=E.keysToLabels(t,a),{code:"object.oxor",context:l}}},with:function(t,e,r,n,i){var o,a=E.isPresent(e.options),s=p(e.peers);try{for(s.s();!(o=s.n()).done;){var u=o.value;if(!1===a(u.resolve(r,n,i,null,{shadow:!1})))return{code:"object.with",context:{main:e.key.key,mainWithLabel:E.keysToLabels(t,e.key.key),peer:u.key,peerWithLabel:E.keysToLabels(t,u.key)}}}}catch(c){s.e(c)}finally{s.f()}},without:function(t,e,r,n,i){var o,a=E.isPresent(e.options),s=p(e.peers);try{for(s.s();!(o=s.n()).done;){var u=o.value;if(a(u.resolve(r,n,i,null,{shadow:!1})))return{code:"object.without",context:{main:e.key.key,mainWithLabel:E.keysToLabels(t,e.key.key),peer:u.key,peerWithLabel:E.keysToLabels(t,u.key)}}}}catch(c){s.e(c)}finally{s.f()}},xor:function(t,e,r,n,i){var o,a=[],s=E.isPresent(e.options),u=p(e.peers);try{for(u.s();!(o=u.n()).done;){var c=o.value;s(c.resolve(r,n,i,null,{shadow:!1}))&&a.push(c.key)}}catch(f){u.e(f)}finally{u.f()}if(1!==a.length){var l={peers:e.paths,peersWithLabels:E.keysToLabels(t,e.paths)};return 0===a.length?{code:"object.missing",context:l}:(l.present=a,l.presentWithLabels=E.keysToLabels(t,a),{code:"object.xor",context:l})}}},E.keysToLabels=function(t,e){return Array.isArray(e)?e.map((function(e){return t.$_mapLabels(e)})):t.$_mapLabels(e)},E.isPresent=function(t){return"function"==typeof t.isPresent?t.isPresent:function(t){return void 0!==t}},E.rename=function(t,e,r,n,i){var o,a={},s=p(t.$_terms.renames);try{for(s.s();!(o=s.n()).done;){var u=o.value,c=[],l="string"!=typeof u.from;if(l){for(var f in e)if((void 0!==e[f]||!u.options.ignoreUndefined)&&f!==u.to){var h=u.from.exec(f);h&&c.push({from:f,to:u.to,match:h})}}else!Object.prototype.hasOwnProperty.call(e,u.from)||void 0===e[u.from]&&u.options.ignoreUndefined||c.push(u);for(var d=0,v=c;d<v.length;d++){var m=v[d],g=m.from,y=m.to;if(y instanceof x&&(y=y.render(e,r,n,m.match)),g!==y){if(!u.options.multiple&&a[y]&&(i.push(t.$_createError("object.rename.multiple",e,{from:g,to:y,pattern:l},r,n)),n.abortEarly))return!1;if(Object.prototype.hasOwnProperty.call(e,y)&&!u.options.override&&!a[y]&&(i.push(t.$_createError("object.rename.override",e,{from:g,to:y,pattern:l},r,n)),n.abortEarly))return!1;void 0===e[g]?delete e[y]:e[y]=e[g],a[y]=!0,u.options.alias||delete e[g]}}}}catch(b){s.e(b)}finally{s.f()}return!0},E.unknown=function(t,e,r,n,i,o){if(t.$_terms.patterns){var a,s=!1,u=t.$_terms.patterns.map((function(t){if(t.matches)return s=!0,[]})),c=[e].concat(h(i.ancestors)),l=p(r);try{for(l.s();!(a=l.n()).done;)for(var f=a.value,d=e[f],v=[].concat(h(i.path),[f]),m=0;m<t.$_terms.patterns.length;++m){var g=t.$_terms.patterns[m];if(g.regex){var b=g.regex.test(f);if(i.mainstay.tracer.debug(i,"rule","pattern.".concat(m),b?"pass":"error"),!b)continue}else if(!g.schema.$_match(f,i.nest(g.schema,"pattern.".concat(m)),o))continue;r.delete(f);var _=i.localize(v,c,{schema:g.rule,key:f}),x=g.rule.$_validate(d,_,o);if(x.errors){if(o.abortEarly)return{value:e,errors:x.errors};n.push.apply(n,h(x.errors))}if(g.matches&&u[m].push(f),e[f]=x.value,!g.fallthrough)break}}catch(F){l.e(F)}finally{l.f()}if(s)for(var E=0;E<u.length;++E){var A=u[E];if(A){var M=t.$_terms.patterns[E].matches,k=i.localize(i.path,c,M),S=M.$_validate(A,k,o);if(S.errors){var I=w.details(S.errors,{override:!1});I.matches=A;var P=t.$_createError("object.pattern.match",e,I,i,o);if(o.abortEarly)return{value:e,errors:P};n.push(P)}}}}if(r.size&&(t.$_terms.keys||t.$_terms.patterns)){if(o.stripUnknown&&!t._flags.unknown||o.skipFunctions){var N,C=!(!o.stripUnknown||!0!==o.stripUnknown&&!o.stripUnknown.objects),O=p(r);try{for(O.s();!(N=O.n()).done;){var T=N.value;C?(delete e[T],r.delete(T)):"function"==typeof e[T]&&r.delete(T)}}catch(F){O.e(F)}finally{O.f()}}if(!y.default(t._flags.unknown,o.allowUnknown)){var R,B=p(r);try{for(B.s();!(R=B.n()).done;){var L=R.value,Z=i.localize([].concat(h(i.path),[L]),[]),j=t.$_createError("object.unknown",e[L],{child:L},Z,o,{flags:!1});if(o.abortEarly)return{value:e,errors:j};n.push(j)}}catch(F){B.e(F)}finally{B.f()}}}},E.Dependency=function(){function t(e,r,n,i,o){v(this,t),this.rel=e,this.key=r,this.peers=n,this.paths=i,this.options=o}return m(t,[{key:"describe",value:function(){var t={rel:this.rel,peers:this.paths};return null!==this.key&&(t.key=this.key.key),"."!==this.peers[0].separator&&(t.options=a(a({},t.options),{},{separator:this.peers[0].separator})),this.options.isPresent&&(t.options=a(a({},t.options),{},{isPresent:this.options.isPresent})),t}}]),t}(),E.Keys=function(t){c(r,t);var e=l(r);function r(){return v(this,r),e.apply(this,arguments)}
2return m(r,[{key:"concat",value:function(t){for(var e=this.slice(),r=new Map,n=0;n<e.length;++n)r.set(e[n].key,n);var i,o=p(t);try{for(o.s();!(i=o.n()).done;){var a=i.value,s=a.key,u=r.get(s);void 0!==u?e[u]={key:s,schema:e[u].schema.concat(a.schema)}:e.push(a)}}catch(c){o.e(c)}finally{o.f()}return e}}]),r}(f(Array))},8785:function(t,e,r){"use strict";var n=r(375),i=r(8068),o=r(8160),a=r(3292),s=r(6354),u={};t.exports=i.extend({type:"link",properties:{schemaChain:!0},terms:{link:{init:null,manifest:"single",register:!1}},args:function(t,e){return t.ref(e)},validate:function(t,e){var r=e.schema,i=e.state,o=e.prefs;n(r.$_terms.link,"Uninitialized link schema");var a=u.generate(r,t,i,o),s=r.$_terms.link[0].ref;return a.$_validate(t,i.nest(a,"link:".concat(s.display,":").concat(a.type)),o)},generate:function(t,e,r,n){return u.generate(t,e,r,n)},rules:{ref:{method:function(t){n(!this.$_terms.link,"Cannot reinitialize schema"),t=a.ref(t),n("value"===t.type||"local"===t.type,"Invalid reference type:",t.type),n("local"===t.type||"root"===t.ancestor||t.ancestor>0,"Link cannot reference itself");var e=this.clone();return e.$_terms.link=[{ref:t}],e}},relative:{method:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.$_setFlag("relative",t)}}},overrides:{concat:function(t){n(this.$_terms.link,"Uninitialized link schema"),n(o.isSchema(t),"Invalid schema object"),n("link"!==t.type,"Cannot merge type link with another link");var e=this.clone();return e.$_terms.whens||(e.$_terms.whens=[]),e.$_terms.whens.push({concat:t}),e.$_mutateRebuild()}},manifest:{build:function(t,e){return n(e.link,"Invalid link description missing link"),t.ref(e.link)}}}),u.generate=function(t,e,r,n){var i=r.mainstay.links.get(t);if(i)return i._generate(e,r,n).schema;var o=t.$_terms.link[0].ref,a=u.perspective(o,r),s=a.perspective,c=a.path;u.assert(s,"which is outside of schema boundaries",o,t,r,n);try{i=c.length?s.$_reach(c):s}catch(e){u.assert(!1,"to non-existing schema",o,t,r,n)}return u.assert("link"!==i.type,"which is another link",o,t,r,n),t._flags.relative||r.mainstay.links.set(t,i),i._generate(e,r,n).schema},u.perspective=function(t,e){if("local"===t.type){var r,n=p(e.schemas);try{for(n.s();!(r=n.n()).done;){var i=r.value,o=i.schema,a=i.key;if((o._flags.id||a)===t.path[0])return{perspective:o,path:t.path.slice(1)};if(o.$_terms.shared){var s,u=p(o.$_terms.shared);try{for(u.s();!(s=u.n()).done;){var c=s.value;if(c._flags.id===t.path[0])return{perspective:c,path:t.path.slice(1)}}}catch(l){u.e(l)}finally{u.f()}}}}catch(l){n.e(l)}finally{n.f()}return{perspective:null,path:null}}return"root"===t.ancestor?{perspective:e.schemas[e.schemas.length-1].schema,path:t.path}:{perspective:e.schemas[t.ancestor]&&e.schemas[t.ancestor].schema,path:t.path}},u.assert=function(t,e,r,i,o,a){t||n(!1,'"'.concat(s.label(i._flags,o,a),'" contains link reference "').concat(r.display,'" ').concat(e))}},3832:function(t,e,r){"use strict";var n=r(375),i=r(8068),o=r(8160),a={numberRx:/^\s*[+-]?(?:(?:\d+(?:\.\d*)?)|(?:\.\d+))(?:e([+-]?\d+))?\s*$/i,precisionRx:/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/,exponentialPartRegex:/[eE][+-]?\d+$/,leadingSignAndZerosRegex:/^[+-]?(0*)?/,dotRegex:/\./,trailingZerosRegex:/0+$/};t.exports=i.extend({type:"number",flags:{unsafe:{default:!1}},coerce:{from:"string",method:function(t,e){var r=e.schema,n=e.error;if(t.match(a.numberRx)){t=t.trim();var i={value:parseFloat(t)};if(0===i.value&&(i.value=0),!r._flags.unsafe)if(t.match(/e/i)){if(a.extractSignificantDigits(t)!==a.extractSignificantDigits(String(i.value)))return i.errors=n("number.unsafe"),i}else{var o=i.value.toString();if(o.match(/e/i))return i;if(o!==a.normalizeDecimal(t))return i.errors=n("number.unsafe"),i}return i}}},validate:function(t,e){var r=e.schema,n=e.error,i=e.prefs;if(t===1/0||t===-1/0)return{value:t,errors:n("number.infinity")};if(!o.isNumber(t))return{value:t,errors:n("number.base")};var a={value:t};if(i.convert){var s=r.$_getRule("precision");if(s){var u=Math.pow(10,s.args.limit);a.value=Math.round(a.value*u)/u}}return 0===a.value&&(a.value=0),!r._flags.unsafe&&(t>Number.MAX_SAFE_INTEGER||t<Number.MIN_SAFE_INTEGER)&&(a.errors=n("number.unsafe")),a},rules:{compare:{method:!1,validate:function(t,e,r,n){var i=r.limit,a=n.name,s=n.operator,u=n.args;return o.compare(t,i,s)?t:e.error("number."+a,{limit:u.limit,value:t})},args:[{name:"limit",ref:!0,assert:o.isNumber,message:"must be a number"}]},greater:{method:function(t){return this.$_addRule({name:"greater",method:"compare",args:{limit:t},operator:">"})}},integer:{method:function(){return this.$_addRule("integer")},validate:function(t,e){return Math.trunc(t)-t==0?t:e.error("number.integer")}},less:{method:function(t){return this.$_addRule({name:"less",method:"compare",args:{limit:t},operator:"<"})}},max:{method:function(t){return this.$_addRule({name:"max",method:"compare",args:{limit:t},operator:"<="})}},min:{method:function(t){return this.$_addRule({name:"min",method:"compare",args:{limit:t},operator:">="})}},multiple:{method:function(t){return this.$_addRule({name:"multiple",args:{base:t}})},validate:function(t,e,r,n){return t*(1/r.base)%1==0?t:e.error("number.multiple",{multiple:n.args.base,value:t})},args:[{name:"base",ref:!0,assert:function(t){return"number"==typeof t&&isFinite(t)&&t>0},message:"must be a positive number"}],multi:!0},negative:{method:function(){return this.sign("negative")}},port:{method:function(){return this.$_addRule("port")},validate:function(t,e){return Number.isSafeInteger(t)&&t>=0&&t<=65535?t:e.error("number.port")}},positive:{method:function(){return this.sign("positive")}},precision:{method:function(t){return n(Number.isSafeInteger(t),"limit must be an integer"),this.$_addRule({name:"precision",args:{limit:t}})},validate:function(t,e,r){var n=r.limit,i=t.toString().match(a.precisionRx);return Math.max((i[1]?i[1].length:0)-(i[2]?parseInt(i[2],10):0),0)<=n?t:e.error("number.precision",{limit:n,value:t})},convert:!0},sign:{method:function(t){return n(["negative","positive"].includes(t),"Invalid sign",t),this.$_addRule({name:"sign",args:{sign:t}})},validate:function(t,e,r){var n=r.sign;return"negative"===n&&t<0||"positive"===n&&t>0?t:e.error("number.".concat(n))}},unsafe:{method:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return n("boolean"==typeof t,"enabled must be a boolean"),this.$_setFlag("unsafe",t)}}},cast:{string:{from:function(t){return"number"==typeof t},to:function(t,e){return t.toString()}}},messages:{"number.base":"{{#label}} must be a number","number.greater":"{{#label}} must be greater than {{#limit}}","number.infinity":"{{#label}} cannot be infinity","number.integer":"{{#label}} must be an integer","number.less":"{{#label}} must be less than {{#limit}}","number.max":"{{#label}} must be less than or equal to {{#limit}}","number.min":"{{#label}} must be greater than or equal to {{#limit}}","number.multiple":"{{#label}} must be a multiple of {{#multiple}}","number.negative":"{{#label}} must be a negative number","number.port":"{{#label}} must be a valid port","number.positive":"{{#label}} must be a positive number","number.precision":"{{#label}} must have no more than {{#limit}} decimal places","number.unsafe":"{{#label}} must be a safe number"}}),a.extractSignificantDigits=function(t){return t.replace(a.exponentialPartRegex,"").replace(a.dotRegex,"").replace(a.trailingZerosRegex,"").replace(a.leadingSignAndZerosRegex,"")},a.normalizeDecimal=function(t){return(t=t.replace(/^\+/,"").replace(/\.0*$/,"").replace(/^(-?)\.([^\.]*)$/,"$10.$2").replace(/^(-?)0+([0-9])/,"$1$2")).includes(".")&&t.endsWith("0")&&(t=t.replace(/0+$/,"")),"-0"===t?"0":t}}
2,8966:function(t,e,r){"use strict";var n=r(7824);t.exports=n.extend({type:"object",cast:{map:{from:function(t){return t&&"object"==typeof t},to:function(t,e){return new Map(Object.entries(t))}}}})},7417:function(t,e,r){"use strict";var n=r(375),i=r(5380),o=r(1745),s=r(9959),u=r(6064),c=r(9926),l=r(5752),f=r(8068),h=r(8160),d={tlds:c instanceof Set&&{tlds:{allow:c,deny:null}},base64Regex:{true:{true:/^(?:[\w\-]{2}[\w\-]{2})*(?:[\w\-]{2}==|[\w\-]{3}=)?$/,false:/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/},false:{true:/^(?:[\w\-]{2}[\w\-]{2})*(?:[\w\-]{2}(==)?|[\w\-]{3}=?)?$/,false:/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}(==)?|[A-Za-z0-9+\/]{3}=?)?$/}},dataUriRegex:/^data:[\w+.-]+\/[\w+.-]+;((charset=[\w-]+|base64),)?(.*)$/,hexRegex:/^[a-f0-9]+$/i,ipRegex:s.regex({cidr:"forbidden"}).regex,isoDurationRegex:/^P(?!$)(\d+Y)?(\d+M)?(\d+W)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?$/,guidBrackets:{"{":"}","[":"]","(":")","":""},guidVersions:{uuidv1:"1",uuidv2:"2",uuidv3:"3",uuidv4:"4",uuidv5:"5"},guidSeparators:new Set([void 0,!0,!1,"-",":"]),normalizationForms:["NFC","NFD","NFKC","NFKD"]};t.exports=f.extend({type:"string",flags:{insensitive:{default:!1},truncate:{default:!1}},terms:{replacements:{init:null}},coerce:{from:"string",method:function(t,e){var r=e.schema,n=e.state,i=e.prefs,o=r.$_getRule("normalize");o&&(t=t.normalize(o.args.form));var a=r.$_getRule("case");a&&(t="upper"===a.args.direction?t.toLocaleUpperCase():t.toLocaleLowerCase());var s=r.$_getRule("trim");if(s&&s.args.enabled&&(t=t.trim()),r.$_terms.replacements){var u,c=p(r.$_terms.replacements);try{for(c.s();!(u=c.n()).done;){var l=u.value;t=t.replace(l.pattern,l.replacement)}}catch(y){c.e(y)}finally{c.f()}}var f=r.$_getRule("hex");if(f&&f.args.options.byteAligned&&t.length%2!=0&&(t="0".concat(t)),r.$_getRule("isoDate")){var v=d.isoDate(t);v&&(t=v)}if(r._flags.truncate){var m=r.$_getRule("max");if(m){var g=m.args.limit;if(h.isResolvable(g)&&(g=g.resolve(t,n,i),!h.limit(g)))return{value:t,errors:r.$_createError("any.ref",g,{ref:m.args.limit,arg:"limit",reason:"must be a positive integer"},n,i)};t=t.slice(0,g)}}return{value:t}}},validate:function(t,e){var r=e.schema,n=e.error;if("string"!=typeof t)return{value:t,errors:n("string.base")};if(""===t){var i=r.$_getRule("min");if(i&&0===i.args.limit)return;return{value:t,errors:n("string.empty")}}},rules:{alphanum:{method:function(){return this.$_addRule("alphanum")},validate:function(t,e){return/^[a-zA-Z0-9]+$/.test(t)?t:e.error("string.alphanum")}},base64:{method:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return h.assertOptions(t,["paddingRequired","urlSafe"]),t=a({urlSafe:!1,paddingRequired:!0},t),n("boolean"==typeof t.paddingRequired,"paddingRequired must be boolean"),n("boolean"==typeof t.urlSafe,"urlSafe must be boolean"),this.$_addRule({name:"base64",args:{options:t}})},validate:function(t,e,r){var n=r.options;return d.base64Regex[n.paddingRequired][n.urlSafe].test(t)?t:e.error("string.base64")}},case:{method:function(t){return n(["lower","upper"].includes(t),"Invalid case:",t),this.$_addRule({name:"case",args:{direction:t}})},validate:function(t,e,r){var n=r.direction;return"lower"===n&&t===t.toLocaleLowerCase()||"upper"===n&&t===t.toLocaleUpperCase()?t:e.error("string.".concat(n,"case"))},convert:!0},creditCard:{method:function(){return this.$_addRule("creditCard")},validate:function(t,e){for(var r=t.length,n=0,i=1;r--;){var o=t.charAt(r)*i;n+=o-9*(o>9),i^=3}return n>0&&n%10==0?t:e.error("string.creditCard")}},dataUri:{method:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return h.assertOptions(t,["paddingRequired"]),t=a({paddingRequired:!0},t),n("boolean"==typeof t.paddingRequired,"paddingRequired must be boolean"),this.$_addRule({name:"dataUri",args:{options:t}})},validate:function(t,e,r){var n=r.options,i=t.match(d.dataUriRegex);if(i){if(!i[2])return t;if("base64"!==i[2])return t;if(d.base64Regex[n.paddingRequired].false.test(i[3]))return t}return e.error("string.dataUri")}},domain:{method:function(t){t&&h.assertOptions(t,["allowFullyQualified","allowUnicode","maxDomainSegments","minDomainSegments","tlds"]);var e=d.addressOptions(t);return this.$_addRule({name:"domain",args:{options:t},address:e})},validate:function(t,e,r,n){var o=n.address;return i.isValid(t,o)?t:e.error("string.domain")}},email:{method:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};h.assertOptions(t,["allowFullyQualified","allowUnicode","ignoreLength","maxDomainSegments","minDomainSegments","multiple","separator","tlds"]),n(void 0===t.multiple||"boolean"==typeof t.multiple,"multiple option must be an boolean");var e=d.addressOptions(t),r=new RegExp("\\s*[".concat(t.separator?u(t.separator):",","]\\s*"));return this.$_addRule({name:"email",args:{options:t},regex:r,address:e})},validate:function(t,e,r,n){var i,a=r.options,s=n.regex,u=n.address,c=a.multiple?t.split(s):[t],l=[],f=p(c);try{for(f.s();!(i=f.n()).done;){var h=i.value;o.isValid(h,u)||l.push(h)}}catch(d){f.e(d)}finally{f.f()}
2return l.length?e.error("string.email",{value:t,invalids:l}):t}},guid:{alias:"uuid",method:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};h.assertOptions(t,["version","separator"]);var e="";if(t.version){var r=[].concat(t.version);n(r.length>=1,"version must have at least 1 valid version specified");for(var i=new Set,o=0;o<r.length;++o){var a=r[o];n("string"==typeof a,"version at position "+o+" must be a string");var s=d.guidVersions[a.toLowerCase()];n(s,"version at position "+o+" must be one of "+Object.keys(d.guidVersions).join(", ")),n(!i.has(s),"version at position "+o+" must not be a duplicate"),e+=s,i.add(s)}}n(d.guidSeparators.has(t.separator),'separator must be one of true, false, "-", or ":"');var u=void 0===t.separator?"[:-]?":!0===t.separator?"[:-]":!1===t.separator?"[]?":"\\".concat(t.separator),c=new RegExp("^([\\[{\\(]?)[0-9A-F]{8}(".concat(u,")[0-9A-F]{4}\\2?[").concat(e||"0-9A-F","][0-9A-F]{3}\\2?[").concat(e?"89AB":"0-9A-F","][0-9A-F]{3}\\2?[0-9A-F]{12}([\\]}\\)]?)$"),"i");return this.$_addRule({name:"guid",args:{options:t},regex:c})},validate:function(t,e,r,n){var i=n.regex.exec(t);return i?d.guidBrackets[i[1]]!==i[i.length-1]?e.error("string.guid"):t:e.error("string.guid")}},hex:{method:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return h.assertOptions(t,["byteAligned"]),t=a({byteAligned:!1},t),n("boolean"==typeof t.byteAligned,"byteAligned must be boolean"),this.$_addRule({name:"hex",args:{options:t}})},validate:function(t,e,r){var n=r.options;return d.hexRegex.test(t)?n.byteAligned&&t.length%2!=0?e.error("string.hexAlign"):t:e.error("string.hex")}},hostname:{method:function(){return this.$_addRule("hostname")},validate:function(t,e){return i.isValid(t,{minDomainSegments:1})||d.ipRegex.test(t)?t:e.error("string.hostname")}},insensitive:{method:function(){return this.$_setFlag("insensitive",!0)}},ip:{method:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};h.assertOptions(t,["cidr","version"]);var e=s.regex(t),r=e.cidr,n=e.versions,i=e.regex,o=t.version?n:void 0;return this.$_addRule({name:"ip",args:{options:{cidr:r,version:o}},regex:i})},validate:function(t,e,r,n){var i=r.options;return n.regex.test(t)?t:i.version?e.error("string.ipVersion",{value:t,cidr:i.cidr,version:i.version}):e.error("string.ip",{value:t,cidr:i.cidr})}},isoDate:{method:function(){return this.$_addRule("isoDate")},validate:function(t,e){var r=e.error;return d.isoDate(t)?t:r("string.isoDate")}},isoDuration:{method:function(){return this.$_addRule("isoDuration")},validate:function(t,e){return d.isoDurationRegex.test(t)?t:e.error("string.isoDuration")}},length:{method:function(t,e){return d.length(this,"length",t,"=",e)},validate:function(t,e,r,n){var i=r.limit,o=r.encoding,a=n.name,s=n.operator,u=n.args,c=!o&&t.length;return h.compare(c,i,s)?t:e.error("string."+a,{limit:u.limit,value:t,encoding:o})},args:[{name:"limit",ref:!0,assert:h.limit,message:"must be a positive integer"},"encoding"]},lowercase:{method:function(){return this.case("lower")}},max:{method:function(t,e){return d.length(this,"max",t,"<=",e)},args:["limit","encoding"]},min:{method:function(t,e){return d.length(this,"min",t,">=",e)},args:["limit","encoding"]},normalize:{method:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"NFC";return n(d.normalizationForms.includes(t),"normalization form must be one of "+d.normalizationForms.join(", ")),this.$_addRule({name:"normalize",args:{form:t}})},validate:function(t,e,r){var n=e.error,i=r.form;return t===t.normalize(i)?t:n("string.normalize",{value:t,form:i})},convert:!0},pattern:{alias:"regex",method:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n(t instanceof RegExp,"regex must be a RegExp"),n(!t.flags.includes("g")&&!t.flags.includes("y"),"regex should not use global or sticky mode"),"string"==typeof e&&(e={name:e}),h.assertOptions(e,["invert","name"]);var r=["string.pattern",e.invert?".invert":"",e.name?".name":".base"].join("");return this.$_addRule({name:"pattern",args:{regex:t,options:e},errorCode:r})},validate:function(t,e,r,n){var i=r.regex,o=r.options,a=n.errorCode;return i.test(t)^o.invert?t:e.error(a,{name:o.name,regex:i,value:t})},args:["regex","options"],multi:!0},replace:{method:function(t,e){"string"==typeof t&&(t=new RegExp(u(t),"g")),n(t instanceof RegExp,"pattern must be a RegExp"),n("string"==typeof e,"replacement must be a String");var r=this.clone();return r.$_terms.replacements||(r.$_terms.replacements=[]),r.$_terms.replacements.push({pattern:t,replacement:e}),r}},token:{method:function(){return this.$_addRule("token")}
2,validate:function(t,e){return/^\w+$/.test(t)?t:e.error("string.token")}},trim:{method:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return n("boolean"==typeof t,"enabled must be a boolean"),this.$_addRule({name:"trim",args:{enabled:t}})},validate:function(t,e,r){return r.enabled&&t!==t.trim()?e.error("string.trim"):t},convert:!0},truncate:{method:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return n("boolean"==typeof t,"enabled must be a boolean"),this.$_setFlag("truncate",t)}},uppercase:{method:function(){return this.case("upper")}},uri:{method:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};h.assertOptions(t,["allowRelative","allowQuerySquareBrackets","domain","relativeOnly","scheme"]),t.domain&&h.assertOptions(t.domain,["allowFullyQualified","allowUnicode","maxDomainSegments","minDomainSegments","tlds"]);var e=l.regex(t),r=e.regex,n=e.scheme,i=t.domain?d.addressOptions(t.domain):null;return this.$_addRule({name:"uri",args:{options:t},regex:r,domain:i,scheme:n})},validate:function(t,e,r,n){var o=r.options,a=n.regex,s=n.domain,u=n.scheme;if(["http:/","https:/"].includes(t))return e.error("string.uri");var c=a.exec(t);if(c){var l=c[1]||c[2];return!s||o.allowRelative&&!l||i.isValid(l,s)?t:e.error("string.domain",{value:l})}return o.relativeOnly?e.error("string.uriRelativeOnly"):o.scheme?e.error("string.uriCustomScheme",{scheme:u,value:t}):e.error("string.uri")}}},manifest:{build:function(t,e){if(e.replacements){var r,n=p(e.replacements);try{for(n.s();!(r=n.n()).done;){var i=r.value,o=i.pattern,a=i.replacement;t=t.replace(o,a)}}catch(s){n.e(s)}finally{n.f()}}return t}},messages:{"string.alphanum":"{{#label}} must only contain alpha-numeric characters","string.base":"{{#label}} must be a string","string.base64":"{{#label}} must be a valid base64 string","string.creditCard":"{{#label}} must be a credit card","string.dataUri":"{{#label}} must be a valid dataUri string","string.domain":"{{#label}} must contain a valid domain name","string.email":"{{#label}} must be a valid email","string.empty":"{{#label}} is not allowed to be empty","string.guid":"{{#label}} must be a valid GUID","string.hex":"{{#label}} must only contain hexadecimal characters","string.hexAlign":"{{#label}} hex decoded representation must be byte aligned","string.hostname":"{{#label}} must be a valid hostname","string.ip":"{{#label}} must be a valid ip address with a {{#cidr}} CIDR","string.ipVersion":"{{#label}} must be a valid ip address of one of the following versions {{#version}} with a {{#cidr}} CIDR","string.isoDate":"{{#label}} must be in iso format","string.isoDuration":"{{#label}} must be a valid ISO 8601 duration","string.length":"{{#label}} length must be {{#limit}} characters long","string.lowercase":"{{#label}} must only contain lowercase characters","string.max":"{{#label}} length must be less than or equal to {{#limit}} characters long","string.min":"{{#label}} length must be at least {{#limit}} characters long","string.normalize":"{{#label}} must be unicode normalized in the {{#form}} form","string.token":"{{#label}} must only contain alpha-numeric and underscore characters","string.pattern.base":"{{#label}} with value {:[.]} fails to match the required pattern: {{#regex}}","string.pattern.name":"{{#label}} with value {:[.]} fails to match the {{#name}} pattern","string.pattern.invert.base":"{{#label}} with value {:[.]} matches the inverted pattern: {{#regex}}","string.pattern.invert.name":"{{#label}} with value {:[.]} matches the inverted {{#name}} pattern","string.trim":"{{#label}} must not have leading or trailing whitespace","string.uri":"{{#label}} must be a valid uri","string.uriCustomScheme":"{{#label}} must be a valid uri with a scheme matching the {{#scheme}} pattern","string.uriRelativeOnly":"{{#label}} must be a valid relative uri","string.uppercase":"{{#label}} must only contain uppercase characters"}}),d.addressOptions=function(t){if(!t)return t;if(n(void 0===t.minDomainSegments||Number.isSafeInteger(t.minDomainSegments)&&t.minDomainSegments>0,"minDomainSegments must be a positive integer"),n(void 0===t.maxDomainSegments||Number.isSafeInteger(t.maxDomainSegments)&&t.maxDomainSegments>0,"maxDomainSegments must be a positive integer"),!1===t.tlds)return t;if(!0===t.tlds||void 0===t.tlds)return n(d.tlds,"Built-in TLD list disabled"),Object.assign({},t,d.tlds);n("object"==typeof t.tlds,"tlds must be true, false, or an object");var e=t.tlds.deny;if(e)return Array.isArray(e)&&(t=Object.assign({},t,{tlds:{deny:new Set(e)}})),n(t.tlds.deny instanceof Set,"tlds.deny must be an array, Set, or boolean"),n(!t.tlds.allow,"Cannot specify both tlds.allow and tlds.deny lists"),d.validateTlds(t.tlds.deny,"tlds.deny"),t;var r=t.tlds.allow;return r?!0===r?(n(d.tlds,"Built-in TLD list disabled"),Object.assign({},t,d.tlds)):(Array.isArray(r)&&(t=Object.assign({},t,{tlds:{allow:new Set(r)}})),n(t.tlds.allow instanceof Set,"tlds.allow must be an array, Set, or boolean"),d.validateTlds(t.tlds.allow,"tlds.allow"),t):t},d.validateTlds=function(t,e){var r,o=p(t);try{for(o.s();!(r=o.n()).done;){var a=r.value;n(i.isValid(a,{minDomainSegments:1,maxDomainSegments:1}),"".concat(e," must contain valid top level domain names"))}}catch(s){o.e(s)}finally{o.f()}},d.isoDate=function(t){if(!h.isIsoDate(t))return null;/.*T.*[+-]\d\d$/.test(t)&&(t+="00");var e=new Date(t);return isNaN(e.getTime())?null:e.toISOString()},d.length=function(t,e,r,i,o){return n(!o||!1,"Invalid encoding:",o),t.$_addRule({name:e,method:"length",args:{limit:r,encoding:o},operator:i})}},8826:function(t,e,r){"use strict";var n=r(375),i=r(8068),o={};o.Map=function(t){c(r,t);var e=l(r);function r(){return v(this,r),e.apply(this,arguments)}return m(r,[{key:"slice",value:function(){return new o.Map(this)}}]),r}(f(Map)),t.exports=i.extend({type:"symbol",terms:{map:{init:new o.Map}},coerce:{method:function(t,e){var r=e.schema,n=e.error,i=r.$_terms.map.get(t);return i&&(t=i),r._flags.only&&"symbol"!=typeof t?{value:t,errors:n("symbol.map",{map:r.$_terms.map})}:{value:t}}},validate:function(t,e){var r=e.error;if("symbol"!=typeof t)return{value:t,errors:r("symbol.base")}},rules:{map:{method:function(t){t&&!t[Symbol.iterator]&&"object"==typeof t&&(t=Object.entries(t)),n(t&&t[Symbol.iterator],"Iterable must be an iterable or object");var e,r=this.clone(),i=[],o=p(t);try{for(o.s();!(e=o.n()).done;){var a=e.value;n(a&&a[Symbol.iterator],"Entry must be an iterable");var u=s(a,2),c=u[0],l=u[1];n("object"!=typeof c&&"function"!=typeof c&&"symbol"!=typeof c,"Key must not be of type object, function, or Symbol"),n("symbol"==typeof l,"Value must be a Symbol"),r.$_terms.map.set(c,l),i.push(l)}}catch(f){o.e(f)}finally{o.f()}return r.valid.apply(r,i)}}},manifest:{build:function(t,e){return e.map&&(t=t.map(e.map)),t}},messages:{"symbol.base":"{{#label}} must be a symbol","symbol.map":"{{#label}} must be one of {{#map}}"}})},8863:function(t,e,r){"use strict";var n=r(375),a=r(8571),s=r(738),u=r(9621),c=r(8160),l=r(6354),f=r(493),d={result:Symbol("result")};e.entry=function(t,e,r){var i=c.defaults;r&&(n(void 0===r.warnings,"Cannot override warnings preference in synchronous validation"),n(void 0===r.artifacts,"Cannot override artifacts preference in synchronous validation"),i=c.preferences(c.defaults,r));var o=d.entry(t,e,i);n(!o.mainstay.externals.length,"Schema with external rules must use validateAsync()");var a={value:o.value};return o.error&&(a.error=o.error),o.mainstay.warnings.length&&(a.warning=l.details(o.mainstay.warnings)
2),o.mainstay.debug&&(a.debug=o.mainstay.debug),o.mainstay.artifacts&&(a.artifacts=o.mainstay.artifacts),a},e.entryAsync=function(){var t=o(i().mark((function t(e,r,n){var o,a,s,f,v,m,g,y,b,w;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=c.defaults,n&&(o=c.preferences(c.defaults,n)),a=d.entry(e,r,o),s=a.mainstay,!a.error){t.next=5;break}throw s.debug&&(a.error.debug=s.debug),a.error;case 5:if(!s.externals.length){t.next=31;break}f=a.value,v=[],m=p(s.externals),t.prev=9,y=i().mark((function t(){var r,a,m,y,b,w,_,x,E,A,M,k,S,I;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=g.value,a=r.state.path,m="link"===r.schema.type?s.links.get(r.schema):null,w=f,_=a.length?[f]:[],x=a.length?u(e,a):e,a.length){y=a[a.length-1],E=f,A=p(a.slice(0,-1));try{for(A.s();!(M=A.n()).done;)k=M.value,E=E[k],_.unshift(E)}catch(i){A.e(i)}finally{A.f()}b=_[0],w=b[y]}return t.prev=5,S=function(t,e){return(m||r.schema).$_createError(t,w,e,r.state,o)},t.next=9,r.method(w,{schema:r.schema,linked:m,state:r.state,prefs:n,original:x,error:S,errorsArray:d.errorsArray,warn:function(t,e){return s.warnings.push((m||r.schema).$_createError(t,w,e,r.state,o))},message:function(t,e){return(m||r.schema).$_createError("external",w,e,r.state,o,{messages:t})}});case 9:if(void 0!==(I=t.sent)&&I!==w){t.next=12;break}return t.abrupt("return","continue");case 12:if(!(I instanceof l.Report)){t.next=16;break}if(s.tracer.log(r.schema,r.state,"rule","external","error"),v.push(I),!o.abortEarly){t.next=15;break}return t.abrupt("return","break");case 15:case 19:return t.abrupt("return","continue");case 16:if(!Array.isArray(I)||!I[c.symbols.errors]){t.next=20;break}if(s.tracer.log(r.schema,r.state,"rule","external","error"),v.push.apply(v,h(I)),!o.abortEarly){t.next=19;break}return t.abrupt("return","break");case 20:b?(s.tracer.value(r.state,"rule",w,I,"external"),b[y]=I):(s.tracer.value(r.state,"rule",f,I,"external"),f=I),t.next=26;break;case 23:throw t.prev=23,t.t0=t.catch(5),o.errors.label&&(t.t0.message+=" (".concat(r.label,")")),t.t0;case 26:case"end":return t.stop()}}),t,null,[[5,23]])})),m.s();case 12:if((g=m.n()).done){t.next=21;break}return t.delegateYield(y(),"t0",14);case 14:if("continue"!==(b=t.t0)){t.next=17;break}return t.abrupt("continue",19);case 17:if("break"!==b){t.next=19;break}return t.abrupt("break",21);case 19:t.next=12;break;case 21:t.next=26;break;case 23:t.prev=23,t.t1=t.catch(9),m.e(t.t1);case 26:return t.prev=26,m.f(),t.finish(26);case 29:if(a.value=f,!v.length){t.next=31;break}throw a.error=l.process(v,e,o),s.debug&&(a.error.debug=s.debug),a.error;case 31:if(o.warnings||o.debug||o.artifacts){t.next=33;break}return t.abrupt("return",a.value);case 33:return w={value:a.value},t.abrupt("return",(s.warnings.length&&(w.warning=l.details(s.warnings)),s.debug&&(w.debug=s.debug),s.artifacts&&(w.artifacts=s.artifacts),w));case 35:case"end":return t.stop()}}),t,null,[[9,23,26,29]])})));return function(e,r,n){return t.apply(this,arguments)}}(),d.Mainstay=function(){function t(e,r,n){v(this,t),this.externals=[],this.warnings=[],this.tracer=e,this.debug=r,this.links=n,this.shadow=null,this.artifacts=null,this._snapshots=[]}return m(t,[{key:"snapshot",value:function(){this._snapshots.push({externals:this.externals.slice(),warnings:this.warnings.slice()})}},{key:"restore",value:function(){var t=this._snapshots.pop();this.externals=t.externals,this.warnings=t.warnings}}]),t}(),d.entry=function(t,r,n){var i=d.tracer(r,n),o=i.tracer,a=i.cleanup,s=n.debug?[]:null,u=r._ids._schemaChain?new Map:null,c=new d.Mainstay(o,s,u),h=r._ids._schemaChain?[{schema:r}]:null,p=new f([],[],{mainstay:c,schemas:h}),v=e.validate(t,r,p,n);a&&r.$_root.untrace();var m=l.process(v.errors,t,n);return{value:v.value,error:m,mainstay:c}},d.tracer=function(t,e){return t.$_root._tracer?{tracer:t.$_root._tracer._register(t)}:e.debug?(n(t.$_root.trace,"Debug mode not supported"),{tracer:t.$_root.trace()._register(t),cleanup:!0}):{tracer:d.ignore}},e.validate=function(t,e,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(e.$_terms.whens&&(e=e._generate(t,r,n).schema),e._preferences&&(n=d.prefs(e,n)),e._cache&&n.cache){var o=e._cache.get(t);if(r.mainstay.tracer.debug(r,"validate","cached",!!o),o)return o}var a=function(i,o,a){return e.$_createError(i,t,o,a||r,n)},s={original:t,prefs:n,schema:e,state:r,error:a,errorsArray:d.errorsArray,warn:function(t,e,n){return r.mainstay.warnings.push(a(t,e,n))},message:function(i,o){return e.$_createError("custom",t,o,r,n,{messages:i})}};r.mainstay.tracer.entry(e,r);var u=e._definition;if(u.prepare&&void 0!==t&&n.convert){var l=u.prepare(t,s);if(l){if(r.mainstay.tracer.value(r,"prepare",t,l.value),l.errors)return d.finalize(l.value,[].concat(l.errors),s);t=l.value}}if(u.coerce&&void 0!==t&&n.convert&&(!u.coerce.from||u.coerce.from.includes(typeof t))){var f=u.coerce.method(t,s);if(f){if(r.mainstay.tracer.value(r,"coerced",t,f.value),f.errors)return d.finalize(f.value,[].concat(f.errors),s);t=f.value}}var p=e._flags.empty;p&&p.$_match(d.trim(t,e),r.nest(p),c.defaults)&&(r.mainstay.tracer.value(r,"empty",t,void 0),t=void 0);var v=i.presence||e._flags.presence||(e._flags._endedSwitch?null:n.presence);if(void 0===t){if("forbidden"===v)return d.finalize(t,null,s);if("required"===v)return d.finalize(t,[e.$_createError("any.required",t,null,r,n)],s);if("optional"===v){if(e._flags.default!==c.symbols.deepDefault)return d.finalize(t,null,s);r.mainstay.tracer.value(r,"default",t,{}),t={}}}else if("forbidden"===v)return d.finalize(t,[e.$_createError("any.unknown",t,null,r,n)],s);var m=[];
2if(e._valids){var g=e._valids.get(t,r,n,e._flags.insensitive);if(g)return n.convert&&(r.mainstay.tracer.value(r,"valids",t,g.value),t=g.value),r.mainstay.tracer.filter(e,r,"valid",g),d.finalize(t,null,s);if(e._flags.only){var y=e.$_createError("any.only",t,{valids:e._valids.values({display:!0})},r,n);if(n.abortEarly)return d.finalize(t,[y],s);m.push(y)}}if(e._invalids){var b=e._invalids.get(t,r,n,e._flags.insensitive);if(b){r.mainstay.tracer.filter(e,r,"invalid",b);var w=e.$_createError("any.invalid",t,{invalids:e._invalids.values({display:!0})},r,n);if(n.abortEarly)return d.finalize(t,[w],s);m.push(w)}}if(u.validate){var _=u.validate(t,s);if(_&&(r.mainstay.tracer.value(r,"base",t,_.value),t=_.value,_.errors)){if(!Array.isArray(_.errors))return m.push(_.errors),d.finalize(t,m,s);if(_.errors.length)return m.push.apply(m,h(_.errors)),d.finalize(t,m,s)}}return e._rules.length?d.rules(t,m,s):d.finalize(t,m,s)},d.rules=function(t,e,r){var n,i=r.schema,o=r.state,a=r.prefs,s=p(i._rules);try{for(s.s();!(n=s.n()).done;){var u=n.value,l=i._definition.rules[u.method];if(l.convert&&a.convert)o.mainstay.tracer.log(i,o,"rule",u.name,"full");else{var f=void 0,v=u.args;if(u._resolve.length){v=Object.assign({},v);var m,g=p(u._resolve);try{for(g.s();!(m=g.n()).done;){var y=m.value,b=l.argsByName.get(y),w=v[y].resolve(t,o,a),_=b.normalize?b.normalize(w):w,x=c.validateArg(_,null,b);if(x){f=i.$_createError("any.ref",w,{arg:y,ref:v[y],reason:x},o,a);break}v[y]=_}}catch(M){g.e(M)}finally{g.f()}}f=f||l.validate(t,r,v,u);var E=d.rule(f,u);if(E.errors){if(o.mainstay.tracer.log(i,o,"rule",u.name,"error"),u.warn){var A;(A=o.mainstay.warnings).push.apply(A,h(E.errors));continue}if(a.abortEarly)return d.finalize(t,E.errors,r);e.push.apply(e,h(E.errors))}else o.mainstay.tracer.log(i,o,"rule",u.name,"pass"),o.mainstay.tracer.value(o,"rule",t,E.value,u.name),t=E.value}}}catch(M){s.e(M)}finally{s.f()}return d.finalize(t,e,r)},d.rule=function(t,e){return t instanceof l.Report?(d.error(t,e),{errors:[t],value:null}):Array.isArray(t)&&t[c.symbols.errors]?(t.forEach((function(t){return d.error(t,e)})),{errors:t,value:null}):{errors:null,value:t}},d.error=function(t,e){return e.message&&t._setTemplate(e.message),t},d.finalize=function(t,e,r){e=e||[];var i=r.schema,o=r.state,a=r.prefs;if(e.length){var s=d.default("failover",void 0,e,r);void 0!==s&&(o.mainstay.tracer.value(o,"failover",t,s),t=s,e=[])}if(e.length&&i._flags.error)if("function"==typeof i._flags.error){e=i._flags.error(e),Array.isArray(e)||(e=[e]);var u,c=p(e);try{for(c.s();!(u=c.n()).done;){var f=u.value;n(f instanceof Error||f instanceof l.Report,"error() must return an Error object")}}catch(_){c.e(_)}finally{c.f()}}else e=[i._flags.error];if(void 0===t){var h=d.default("default",t,e,r);o.mainstay.tracer.value(o,"default",t,h),t=h}if(i._flags.cast&&void 0!==t){var v=i._definition.cast[i._flags.cast];if(v.from(t)){var m=v.to(t,r);o.mainstay.tracer.value(o,"cast",t,m,i._flags.cast),t=m}}if(i.$_terms.externals&&a.externals&&!1!==a._externals){var g,y=p(i.$_terms.externals);try{for(y.s();!(g=y.n()).done;){var b=g.value.method;o.mainstay.externals.push({method:b,schema:i,state:o,label:l.label(i._flags,o,a)})}}catch(_){y.e(_)}finally{y.f()}}var w={value:t,errors:e.length?e:null};return i._flags.result&&(w.value="strip"===i._flags.result?void 0:r.original,o.mainstay.tracer.value(o,i._flags.result,t,w.value),o.shadow(t,i._flags.result)),i._cache&&!1!==a.cache&&!i._refs.length&&i._cache.set(r.original,w),void 0===t||w.errors||void 0===i._flags.artifact||(o.mainstay.artifacts=o.mainstay.artifacts||new Map,o.mainstay.artifacts.has(i._flags.artifact)||o.mainstay.artifacts.set(i._flags.artifact,[]),o.mainstay.artifacts.get(i._flags.artifact).push(o.path)),w},d.prefs=function(t,e){var r=e===c.defaults;return r&&t._preferences[c.symbols.prefs]?t._preferences[c.symbols.prefs]:(e=c.preferences(e,t._preferences),r&&(t._preferences[c.symbols.prefs]=e),e)},d.default=function(t,e,r,n){var i=n.schema,o=n.state,s=n.prefs,u=i._flags[t];if(s.noDefaults||void 0===u)return e;if(o.mainstay.tracer.log(i,o,"rule",t,"full"),!u)return u;if("function"==typeof u){var l=u.length?[a(o.ancestors[0]),n]:[];try{return u.apply(void 0,l)}catch(e){return void r.push(i.$_createError("any.".concat(t),null,{error:e},o,s))}}return"object"!=typeof u?u:u[c.symbols.literal]?u.literal:c.isResolvable(u)?u.resolve(e,o,s):a(u)},d.trim=function(t,e){if("string"!=typeof t)return t;var r=e.$_getRule("trim");return r&&r.args.enabled?t.trim():t},d.ignore={active:!1,debug:s,entry:s,filter:s,log:s,resolve:s,value:s},d.errorsArray=function(){var t=[];return t[c.symbols.errors]=!0,t}},2036:function(t,e,r){"use strict";var n=r(375),i=r(9474),o=r(8160),a={};t.exports=a.Values=function(){function t(e,r){v(this,t),this._values=new Set(e),this._refs=new Set(r),this._lowercase=a.lowercases(e),this._override=!1}return m(t,[{key:"length",get:function(){return this._values.size+this._refs.size}},{key:"add",value:function(t,e){o.isResolvable(t)?this._refs.has(t)||(this._refs.add(t),e&&e.register(t)):this.has(t,null,null,!1)||(this._values.add(t),"string"==typeof t&&this._lowercase.set(t.toLowerCase(),t))}},{key:"remove",value:function(t){o.isResolvable(t)?this._refs.delete(t):(this._values.delete(t),"string"==typeof t&&this._lowercase.delete(t.toLowerCase()))}},{key:"has",value:function(t,e,r,n){return!!this.get(t,e,r,n)}},{key:"get",value:function(t,e,r,n){if(!this.length)return!1;if(this._values.has(t))return{value:t};if("string"==typeof t&&t&&n){var o=this._lowercase.get(t.toLowerCase());if(o)return{value:o}}if(!this._refs.size&&"object"!=typeof t)return!1;if("object"==typeof t){var a,s=p(this._values);try{for(s.s();!(a=s.n()).done;){var u=a.value;if(i(u,t))return{value:u}}}catch(y){s.e(y)}finally{s.f()}}if(e){var c,l=p(this._refs);try{for(l.s();!(c=l.n()).done;){var f=c.value,h=f.resolve(t,e,r,null,{in:!0});if(void 0!==h){var d,v=f.in&&"object"==typeof h?Array.isArray(h)?h:Object.keys(h):[h],m=p(v);try{for(m.s();!(d=m.n()).done;){var g=d.value;if(typeof g==typeof t)if(n&&t&&"string"==typeof t){if(g.toLowerCase()===t.toLowerCase())return{value:g,ref:f}}else if(i(g,t))return{value:g,ref:f}}}catch(y){m.e(y)}finally{m.f()}}}}catch(y){l.e(y)}finally{l.f()}}return!1}},{key:"override",value:function(){this._override=!0}}
2,{key:"values",value:function(t){if(t&&t.display){for(var e=[],r=0,n=[].concat(h(this._values),h(this._refs));r<n.length;r++){var i=n[r];void 0!==i&&e.push(i)}return e}return Array.from([].concat(h(this._values),h(this._refs)))}},{key:"clone",value:function(){var t=new a.Values(this._values,this._refs);return t._override=this._override,t}},{key:"concat",value:function(t){n(!t._override,"Cannot concat override set of values");var e=new a.Values([].concat(h(this._values),h(t._values)),[].concat(h(this._refs),h(t._refs)));return e._override=this._override,e}},{key:"describe",value:function(){var t=[];this._override&&t.push({override:!0});var e,r=p(this._values.values());try{for(r.s();!(e=r.n()).done;){var n=e.value;t.push(n&&"object"==typeof n?{value:n}:n)}}catch(s){r.e(s)}finally{r.f()}var i,o=p(this._refs.values());try{for(o.s();!(i=o.n()).done;){var a=i.value;t.push(a.describe())}}catch(s){o.e(s)}finally{o.f()}return t}}],[{key:"merge",value:function(t,e,r){if(t=t||new a.Values,e){if(e._override)return e.clone();for(var n=0,i=[].concat(h(e._values),h(e._refs));n<i.length;n++){var o=i[n];t.add(o)}}if(r)for(var s=0,u=[].concat(h(r._values),h(r._refs));s<u.length;s++){var c=u[s];t.remove(c)}return t.length?t:null}}]),t}(),a.Values.prototype[o.symbols.values]=!0,a.Values.prototype.slice=a.Values.prototype.clone,a.lowercases=function(t){var e=new Map;if(t){var r,n=p(t);try{for(n.s();!(r=n.n()).done;){var i=r.value;"string"==typeof i&&e.set(i.toLowerCase(),i)}}catch(o){n.e(o)}finally{n.f()}}return e}},978:function(t,e,r){"use strict";var n=r(375),i=r(8571),o=r(1687),a=r(9621),s={};t.exports=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(n(t&&"object"==typeof t,"Invalid defaults value: must be an object"),n(!e||!0===e||"object"==typeof e,"Invalid source value: must be true, falsy or an object"),n("object"==typeof r,"Invalid options: must be an object"),!e)return null;if(r.shallow)return s.applyToDefaultsWithShallow(t,e,r);var a=i(t);if(!0===e)return a;var u=void 0!==r.nullOverride&&r.nullOverride;return o(a,e,{nullOverride:u,mergeArrays:!1})},s.applyToDefaultsWithShallow=function(t,e,r){var u=r.shallow;n(Array.isArray(u),"Invalid keys");var c,l=new Map,f=!0===e?null:new Set,h=p(u);try{for(h.s();!(c=h.n()).done;){var d=c.value;d=Array.isArray(d)?d:d.split(".");var v=a(t,d);v&&"object"==typeof v?l.set(v,f&&a(e,d)||v):f&&f.add(d)}}catch(_){h.e(_)}finally{h.f()}var m=i(t,{},l);if(!f)return m;var g,y=p(f);try{for(y.s();!(g=y.n()).done;){var b=g.value;s.reachCopy(m,e,b)}}catch(_){y.e(_)}finally{y.f()}var w=void 0!==r.nullOverride&&r.nullOverride;return o(m,e,{nullOverride:w,mergeArrays:!1})},s.reachCopy=function(t,e,r){var n,i=p(r);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(!(o in e))return;var a=e[o];if("object"!=typeof a||null===a)return;e=a}}catch(f){i.e(f)}finally{i.f()}for(var s=e,u=t,c=0;c<r.length-1;++c){var l=r[c];"object"!=typeof u[l]&&(u[l]={}),u=u[l]}u[r[r.length-1]]=s}},375:function(t,e,r){"use strict";var n=r(7916);t.exports=function(t){if(!t){for(var e=arguments.length,r=new Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];if(1===r.length&&r[0]instanceof Error)throw r[0];throw new n(r)}}},8571:function(t,e,r){"use strict";var n=r(9621),i=r(4277),o=r(7043),a={needsProtoHack:new Set([i.set,i.map,i.weakSet,i.weakMap])};t.exports=a.clone=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if("object"!=typeof t||null===t)return t;var n=a.clone,u=r;if(e.shallow){if(!0!==e.shallow)return a.cloneWithShallow(t,e);n=function(t){return t}}else if(u){var c=u.get(t);if(c)return c}else u=new Map;var l=i.getInternalProto(t);if(l===i.buffer)return!1;if(l===i.date)return new Date(t.getTime());if(l===i.regex)return new RegExp(t);var f=a.base(t,l,e);if(f===t)return t;if(u&&u.set(t,f),l===i.set){var h,d=p(t);try{for(d.s();!(h=d.n()).done;){var v=h.value;f.add(n(v,e,u))}}catch(k){d.e(k)}finally{d.f()}}else if(l===i.map){var m,g=p(t);try{for(g.s();!(m=g.n()).done;){var y=s(m.value,2),b=y[0],w=y[1];f.set(b,n(w,e,u))}}catch(k){g.e(k)}finally{g.f()}}var _,x=o.keys(t,e),E=p(x);try{for(E.s();!(_=E.n()).done;){var A=_.value;if("__proto__"!==A)if(l!==i.array||"length"!==A){var M=Object.getOwnPropertyDescriptor(t,A);M?M.get||M.set?Object.defineProperty(f,A,M):M.enumerable?f[A]=n(t[A],e,u):Object.defineProperty(f,A,{enumerable:!1,writable:!0,configurable:!0,value:n(t[A],e,u)}):Object.defineProperty(f,A,{enumerable:!0,writable:!0,configurable:!0,value:n(t[A],e,u)})}else f.length=t.length}}catch(k){E.e(k)}finally{E.f()}return f},a.cloneWithShallow=function(t,e){var r=e.shallow;(e=Object.assign({},e)).shallow=!1;var i,o=new Map,s=p(r);try{for(s.s();!(i=s.n()).done;){var u=i.value,c=n(t,u);"object"!=typeof c&&"function"!=typeof c||o.set(c,c)}}catch(l){s.e(l)}finally{s.f()}return a.clone(t,e,o)},a.base=function(t,e,r){if(!1===r.prototype)return a.needsProtoHack.has(e)?new e.constructor:e===i.array?[]:{};var n=Object.getPrototypeOf(t);if(n&&n.isImmutable)return t;if(e===i.array){var o=[];return n!==e&&Object.setPrototypeOf(o,n),o}if(a.needsProtoHack.has(e)){var s=new n.constructor;return n!==e&&Object.setPrototypeOf(s,n),s}return Object.create(n)}},9474:function(t,e,r){"use strict";var n=r(4277),i={mismatched:null};t.exports=function(t,e,r){return r=Object.assign({prototype:!0},r),!!i.isDeepEqual(t,e,r,[])},i.isDeepEqual=function(t,e,r,o){if(t===e)return 0!==t||1/t==1/e;var a=typeof t;if(a!==typeof e)return!1;if(null===t||null===e)return!1;if("function"===a){if(!r.deepFunction||t.toString()!==e.toString())return!1}else if("object"!==a)return t!=t&&e!=e;var s=i.getSharedType(t,e,!!r.prototype);switch(s){case n.buffer:return!1;case n.promise:return t===e;case n.regex:return t.toString()===e.toString();case i.mismatched:return!1}for(var u=o.length-1;u>=0;--u)if(o[u].isSame(t,e))return!0;o.push(new i.SeenEntry(t,e));try{return!!i.isDeepEqualObj(s,t,e,r,o)}finally{o.pop()}},i.getSharedType=function(t,e,r){if(r)return Object.getPrototypeOf(t)!==Object.getPrototypeOf(e)?i.mismatched:n.getInternalProto(t);var o=n.getInternalProto(t);return o!==n.getInternalProto(e)?i.mismatched:o},i.valueOf=function(t){var e=t.valueOf;if(void 0===e)return t;try{return e.call(t)}catch(t){return t}},i.hasOwnEnumerableProperty=function(t,e){return Object.prototype.propertyIsEnumerable.call(t,e)},i.isSetSimpleEqual=function(t,e){var r,n=p(Set.prototype.values.call(t));try{for(n.s();!(r=n.n()).done;){var i=r.value;if(!Set.prototype.has.call(e,i))return!1}}catch(o){n.e(o)}finally{n.f()}return!0},i.isDeepEqualObj=function(t,e,r,o,a){var u=i.isDeepEqual,c=i.valueOf,l=i.hasOwnEnumerableProperty,f=Object.keys,h=Object.getOwnPropertySymbols;if(t===n.array){if(!o.part){if(e.length!==r.length)return!1;for(var d=0;d<e.length;++d)if(!u(e[d],r[d],o,a))return!1;return!0}var v,m=p(e);try{for(m.s();!(v=m.n()).done;){var g,y=v.value,b=p(r);try{for(b.s();!(g=b.n()).done;)if(u(y,g.value,o,a))return!0}catch(W){b.e(W)}finally{b.f()}}}
2catch(W){m.e(W)}finally{m.f()}}else if(t===n.set){if(e.size!==r.size)return!1;if(!i.isSetSimpleEqual(e,r)){var w,_=new Set(Set.prototype.values.call(r)),x=p(Set.prototype.values.call(e));try{for(x.s();!(w=x.n()).done;){var E=w.value;if(!_.delete(E)){var A,M=!1,k=p(_);try{for(k.s();!(A=k.n()).done;){var S=A.value;if(u(E,S,o,a)){_.delete(S),M=!0;break}}}catch(W){k.e(W)}finally{k.f()}if(!M)return!1}}}catch(W){x.e(W)}finally{x.f()}}}else if(t===n.map){if(e.size!==r.size)return!1;var I,P=p(Map.prototype.entries.call(e));try{for(P.s();!(I=P.n()).done;){var N=s(I.value,2),C=N[0],O=N[1];if(void 0===O&&!Map.prototype.has.call(r,C))return!1;if(!u(O,Map.prototype.get.call(r,C),o,a))return!1}}catch(W){P.e(W)}finally{P.f()}}else if(t===n.error&&(e.name!==r.name||e.message!==r.message))return!1;var T=c(e),R=c(r);if((e!==T||r!==R)&&!u(T,R,o,a))return!1;var B=f(e);if(!o.part&&B.length!==f(r).length&&!o.skip)return!1;var L,Z=0,j=p(B);try{for(j.s();!(L=j.n()).done;){var F=L.value;if(o.skip&&o.skip.includes(F))void 0===r[F]&&++Z;else{if(!l(r,F))return!1;if(!u(e[F],r[F],o,a))return!1}}}catch(W){j.e(W)}finally{j.f()}if(!o.part&&B.length-Z!==f(r).length)return!1;if(!1!==o.symbols){var U,D=h(e),H=new Set(h(r)),z=p(D);try{for(z.s();!(U=z.n()).done;){var $=U.value;if(!o.skip||!o.skip.includes($))if(l(e,$)){if(!l(r,$))return!1;if(!u(e[$],r[$],o,a))return!1}else if(l(r,$))return!1;H.delete($)}}catch(W){z.e(W)}finally{z.f()}var q,G=p(H);try{for(G.s();!(q=G.n()).done;)if(l(r,q.value))return!1}catch(W){G.e(W)}finally{G.f()}}return!0},i.SeenEntry=function(){function t(e,r){v(this,t),this.obj=e,this.ref=r}return m(t,[{key:"isSame",value:function(t,e){return this.obj===t&&this.ref===e}}]),t}()},7916:function(t,e,r){"use strict";var i=r(8761);t.exports=function(t){c(o,t);var r=l(o);function o(t){var a;return v(this,o),a=r.call(this,t.filter((function(t){return""!==t})).map((function(t){return"string"==typeof t?t:t instanceof Error?t.message:i(t)})).join(" ")||"Unknown error"),"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(n(a),e.assert),a}return m(o)}(f(Error))},5277:function(t){"use strict";var e={};t.exports=function(t){if(!t)return"";for(var r="",n=0;n<t.length;++n){var i=t.charCodeAt(n);e.isSafe(i)?r+=t[n]:r+=e.escapeHtmlChar(i)}return r},e.escapeHtmlChar=function(t){return e.namedHtml.get(t)||(t>=256?"&#"+t+";":"&#x".concat(t.toString(16).padStart(2,"0"),";"))},e.isSafe=function(t){return e.safeCharCodes.has(t)},e.namedHtml=new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[34,"&quot;"],[160,"&nbsp;"],[162,"&cent;"],[163,"&pound;"],[164,"&curren;"],[169,"&copy;"],[174,"&reg;"]]),e.safeCharCodes=function(){for(var t=new Set,e=32;e<123;++e)(e>=97||e>=65&&e<=90||e>=48&&e<=57||32===e||46===e||44===e||45===e||58===e||95===e)&&t.add(e);return t}()},6064:function(t){"use strict";t.exports=function(t){return t.replace(/[\^\$\.\*\+\-\?\=\!\:\|\\\/\(\)\[\]\{\}\,]/g,"\\$&")}},738:function(t){"use strict";t.exports=function(){}},1687:function(t,e,r){"use strict";var n=r(375),i=r(8571),o=r(7043),a={};t.exports=a.merge=function(t,e,r){if(n(t&&"object"==typeof t,"Invalid target value: must be an object"),n(null==e||"object"==typeof e,"Invalid source value: must be null, undefined, or an object"),!e)return t;if(r=Object.assign({nullOverride:!0,mergeArrays:!0},r),Array.isArray(e)){n(Array.isArray(t),"Cannot merge array onto an object"),r.mergeArrays||(t.length=0);for(var s=0;s<e.length;++s)t.push(i(e[s],{symbols:r.symbols}));return t}for(var u=o.keys(e,r),c=0;c<u.length;++c){var l=u[c];if("__proto__"!==l&&Object.prototype.propertyIsEnumerable.call(e,l)){var f=e[l];if(f&&"object"==typeof f){if(t[l]===f)continue;!t[l]||"object"!=typeof t[l]||Array.isArray(t[l])!==Array.isArray(f)||f instanceof Date||f instanceof RegExp?t[l]=i(f,{symbols:r.symbols}):a.merge(t[l],f,r)}else(null!=f||r.nullOverride)&&(t[l]=f)}}return t}},9621:function(t,e,r){"use strict";var n=r(375),i={};t.exports=function(t,e,r){if(!1===e||null==e)return t;"string"==typeof(r=r||{})&&(r={separator:r});var o=Array.isArray(e);n(!o||!r.separator,"Separator option is not valid for array-based chain");for(var a=o?e:e.split(r.separator||"."),s=t,u=0;u<a.length;++u){var c=a[u],l=r.iterables&&i.iterables(s);if(Array.isArray(s)||"set"===l){var f=Number(c);Number.isInteger(f)&&(c=f<0?s.length+f:f)}
2if(!s||"function"==typeof s&&!1===r.functions||!l&&void 0===s[c]){n(!r.strict||u+1===a.length,"Missing segment",c,"in reach path ",e),n("object"==typeof s||!0===r.functions||"function"!=typeof s,"Invalid segment",c,"in reach path ",e),s=r.default;break}s=l?"set"===l?h(s)[c]:s.get(c):s[c]}return s},i.iterables=function(t){return t instanceof Set?"set":t instanceof Map?"map":void 0}},8761:function(t){"use strict";t.exports=function(){try{return JSON.stringify.apply(JSON,arguments)}catch(t){return"[Cannot display object: "+t.message+"]"}}},4277:function(t,e){"use strict";var r={};e=t.exports={array:Array.prototype,buffer:!1,date:Date.prototype,error:Error.prototype,generic:Object.prototype,map:Map.prototype,promise:Promise.prototype,regex:RegExp.prototype,set:Set.prototype,weakMap:WeakMap.prototype,weakSet:WeakSet.prototype},r.typeMap=new Map([["[object Error]",e.error],["[object Map]",e.map],["[object Promise]",e.promise],["[object Set]",e.set],["[object WeakMap]",e.weakMap],["[object WeakSet]",e.weakSet]]),e.getInternalProto=function(t){if(Array.isArray(t))return e.array;if(t instanceof Date)return e.date;if(t instanceof RegExp)return e.regex;if(t instanceof Error)return e.error;var n=Object.prototype.toString.call(t);return r.typeMap.get(n)||e.generic}},7043:function(t,e){"use strict";e.keys=function(t){return!1!==(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).symbols?Reflect.ownKeys(t):Object.getOwnPropertyNames(t)}},3652:function(t,e,r){"use strict";var n=r(375),i={};e.Sorter=function(){function t(){v(this,t),this._items=[],this.nodes=[]}return m(t,[{key:"add",value:function(t,e){var r=[].concat((e=e||{}).before||[]),i=[].concat(e.after||[]),o=e.group||"?",a=e.sort||0;n(!r.includes(o),"Item cannot come before itself: ".concat(o)),n(!r.includes("?"),"Item cannot come before unassociated items"),n(!i.includes(o),"Item cannot come after itself: ".concat(o)),n(!i.includes("?"),"Item cannot come after unassociated items"),Array.isArray(t)||(t=[t]);var s,u=p(t);try{for(u.s();!(s=u.n()).done;){var c=s.value,l={seq:this._items.length,sort:a,before:r,after:i,group:o,node:c};this._items.push(l)}}catch(h){u.e(h)}finally{u.f()}if(!e.manual){var f=this._sort();n(f,"item","?"!==o?"added into group ".concat(o):"","created a dependencies error")}return this.nodes}},{key:"merge",value:function(t){Array.isArray(t)||(t=[t]);var e,r=p(t);try{for(r.s();!(e=r.n()).done;){var o=e.value;if(o){var a,s=p(o._items);try{for(s.s();!(a=s.n()).done;){var u=a.value;this._items.push(Object.assign({},u))}}catch(f){s.e(f)}finally{s.f()}}}}catch(f){r.e(f)}finally{r.f()}this._items.sort(i.mergeSort);for(var c=0;c<this._items.length;++c)this._items[c].seq=c;var l=this._sort();return n(l,"merge created a dependencies error"),this.nodes}},{key:"sort",value:function(){var t=this._sort();return n(t,"sort created a dependencies error"),this.nodes}},{key:"_sort",value:function(){var t,e={},r=Object.create(null),n=Object.create(null),i=p(this._items);try{for(i.s();!(t=i.n()).done;){var o=t.value,a=o.seq,s=o.group;n[s]=n[s]||[],n[s].push(a),e[a]=o.before;var u,c=p(o.after);try{for(c.s();!(u=c.n()).done;){var l=u.value;r[l]=r[l]||[],r[l].push(a)}}catch(H){c.e(H)}finally{c.f()}}}catch(H){i.e(H)}finally{i.f()}for(var f in e){var d=[];for(var v in e[f]){var m=e[f][v];n[m]=n[m]||[],d.push.apply(d,h(n[m]))}e[f]=d}for(var g in r)if(n[g]){var y,b=p(n[g]);try{for(b.s();!(y=b.n()).done;){var w;(w=e[y.value]).push.apply(w,h(r[g]))}}catch(H){b.e(H)}finally{b.f()}}var _={};for(var x in e){var E,A=e[x],M=p(A);try{for(M.s();!(E=M.n()).done;){var k=E.value;_[k]=_[k]||[],_[k].push(x)}}catch(H){M.e(H)}finally{M.f()}}for(var S={},I=[],P=0;P<this._items.length;++P){var N=P;if(_[P]){N=null;for(var C=0;C<this._items.length;++C)if(!0!==S[C]){_[C]||(_[C]=[]);for(var O=_[C].length,T=0,R=0;R<O;++R)S[_[C][R]]&&++T;if(T===O){N=C;break}}}null!==N&&(S[N]=!0,I.push(N))}if(I.length!==this._items.length)return!1;var B,L={},Z=p(this._items);try{for(Z.s();!(B=Z.n()).done;){var j=B.value;L[j.seq]=j}}catch(H){Z.e(H)}finally{Z.f()}this._items=[],this.nodes=[];for(var F=0,U=I;F<U.length;F++){var D=L[U[F]];this.nodes.push(D.node),this._items.push(D)}return!0}}]),t}(),i.mergeSort=function(t,e){return t.sort===e.sort?0:t.sort<e.sort?-1:1}},5380:function(t,e,r){"use strict";var n=r(443),i=r(2178),o={minDomainSegments:2,nonAsciiRx:/[^\x00-\x7f]/,domainControlRx:/[\x00-\x20@\:\/\\#!\$&\'\(\)\*\+,;=\?]/,tldSegmentRx:/^[a-zA-Z](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,domainSegmentRx:/^[a-zA-Z0-9](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,URL:n.URL||URL};e.analyze=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t)return i.code("DOMAIN_NON_EMPTY_STRING");if("string"!=typeof t)throw new Error("Invalid input: domain must be a string");if(t.length>256)return i.code("DOMAIN_TOO_LONG");
2if(o.nonAsciiRx.test(t)){if(!1===e.allowUnicode)return i.code("DOMAIN_INVALID_UNICODE_CHARS");t=t.normalize("NFC")}if(o.domainControlRx.test(t))return i.code("DOMAIN_INVALID_CHARS");t=o.punycode(t),e.allowFullyQualified&&"."===t[t.length-1]&&(t=t.slice(0,-1));var r=e.minDomainSegments||o.minDomainSegments,n=t.split(".");if(n.length<r)return i.code("DOMAIN_SEGMENTS_COUNT");if(e.maxDomainSegments&&n.length>e.maxDomainSegments)return i.code("DOMAIN_SEGMENTS_COUNT_MAX");var a=e.tlds;if(a){var s=n[n.length-1].toLowerCase();if(a.deny&&a.deny.has(s)||a.allow&&!a.allow.has(s))return i.code("DOMAIN_FORBIDDEN_TLDS")}for(var u=0;u<n.length;++u){var c=n[u];if(!c.length)return i.code("DOMAIN_EMPTY_SEGMENT");if(c.length>63)return i.code("DOMAIN_LONG_SEGMENT");if(u<n.length-1){if(!o.domainSegmentRx.test(c))return i.code("DOMAIN_INVALID_CHARS")}else if(!o.tldSegmentRx.test(c))return i.code("DOMAIN_INVALID_TLDS_CHARS")}return null},e.isValid=function(t,r){return!e.analyze(t,r)},o.punycode=function(t){t.includes("%")&&(t=t.replace(/%/g,"%25"));try{return new o.URL("http://".concat(t)).host}catch(e){return t}}},1745:function(t,e,r){"use strict";var n=r(9848),i=r(5380),o=r(2178),a={nonAsciiRx:/[^\x00-\x7f]/,encoder:new(n.TextEncoder||TextEncoder)};e.analyze=function(t,e){return a.email(t,e)},e.isValid=function(t,e){return!a.email(t,e)},a.email=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!=typeof t)throw new Error("Invalid input: email must be a string");if(!t)return o.code("EMPTY_STRING");var r=!a.nonAsciiRx.test(t);if(!r){if(!1===e.allowUnicode)return o.code("FORBIDDEN_UNICODE");t=t.normalize("NFC")}var n=t.split("@");if(2!==n.length)return n.length>2?o.code("MULTIPLE_AT_CHAR"):o.code("MISSING_AT_CHAR");var u=s(n,2),c=u[0],l=u[1];if(!c)return o.code("EMPTY_LOCAL");if(!e.ignoreLength){if(t.length>254)return o.code("ADDRESS_TOO_LONG");if(a.encoder.encode(c).length>64)return o.code("LOCAL_TOO_LONG")}return a.local(c,r)||i.analyze(l,e)},a.local=function(t,e){var r,n=t.split("."),i=p(n);try{for(i.s();!(r=i.n()).done;){var s=r.value;if(!s.length)return o.code("EMPTY_LOCAL_SEGMENT");if(e){if(!a.atextRx.test(s))return o.code("INVALID_LOCAL_CHARS")}else{var u,c=p(s);try{for(c.s();!(u=c.n()).done;){var l=u.value;if(!a.atextRx.test(l)){var f=a.binary(l);if(!a.atomRx.test(f))return o.code("INVALID_LOCAL_CHARS")}}}catch(h){c.e(h)}finally{c.f()}}}}catch(h){i.e(h)}finally{i.f()}},a.binary=function(t){return Array.from(a.encoder.encode(t)).map((function(t){return String.fromCharCode(t)})).join("")},a.atextRx=/^[\w!#\$%&'\*\+\-/=\?\^`\{\|\}~]+$/,a.atomRx=new RegExp(["(?:[\\xc2-\\xdf][\\x80-\\xbf])","(?:\\xe0[\\xa0-\\xbf][\\x80-\\xbf])|(?:[\\xe1-\\xec][\\x80-\\xbf]{2})|(?:\\xed[\\x80-\\x9f][\\x80-\\xbf])|(?:[\\xee-\\xef][\\x80-\\xbf]{2})","(?:\\xf0[\\x90-\\xbf][\\x80-\\xbf]{2})|(?:[\\xf1-\\xf3][\\x80-\\xbf]{3})|(?:\\xf4[\\x80-\\x8f][\\x80-\\xbf]{2})"].join("|"))},2178:function(t,e){"use strict";e.codes={EMPTY_STRING:"Address must be a non-empty string",FORBIDDEN_UNICODE:"Address contains forbidden Unicode characters",MULTIPLE_AT_CHAR:"Address cannot contain more than one @ character",MISSING_AT_CHAR:"Address must contain one @ 
2character",EMPTY_LOCAL:"Address local part cannot be empty",ADDRESS_TOO_LONG:"Address too long",LOCAL_TOO_LONG:"Address local part too long",EMPTY_LOCAL_SEGMENT:"Address local part contains empty dot-separated segment",INVALID_LOCAL_CHARS:"Address local part contains invalid character",DOMAIN_NON_EMPTY_STRING:"Domain must be a non-empty string",DOMAIN_TOO_LONG:"Domain too long",DOMAIN_INVALID_UNICODE_CHARS:"Domain contains forbidden Unicode characters",DOMAIN_INVALID_CHARS:"Domain contains invalid character",DOMAIN_INVALID_TLDS_CHARS:"Domain contains invalid tld character",DOMAIN_SEGMENTS_COUNT:"Domain lacks the minimum required number of segments",DOMAIN_SEGMENTS_COUNT_MAX:"Domain contains too many segments",DOMAIN_FORBIDDEN_TLDS:"Domain uses forbidden TLD",DOMAIN_EMPTY_SEGMENT:"Domain contains empty dot-separated segment",DOMAIN_LONG_SEGMENT:"Domain contains dot-separated segment that is too long"},e.code=function(t){return{code:t,error:e.codes[t]}}},9959:function(t,e,r){"use strict";var n=r(375),i=r(5752);e.regex=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(void 0===t.cidr||"string"==typeof t.cidr,"options.cidr must be a string");var e=t.cidr?t.cidr.toLowerCase():"optional";n(["required","optional","forbidden"].includes(e),"options.cidr must be one of required, optional, forbidden"),n(void 0===t.version||"string"==typeof t.version||Array.isArray(t.version),"options.version must be a string or an array of string");var r=t.version||["ipv4","ipv6","ipvfuture"];Array.isArray(r)||(r=[r]),n(r.length>=1,"options.version must have at least 1 version specified");for(var o=0;o<r.length;++o)n("string"==typeof r[o],"options.version must only contain strings"),r[o]=r[o].toLowerCase(),n(["ipv4","ipv6","ipvfuture"].includes(r[o]),"options.version contains unknown version "+r[o]+" - must be one of ipv4, ipv6, ipvfuture");r=Array.from(new Set(r));var a="(?:".concat(r.map((function(t){if("forbidden"===e)return i.ip[t];var r="\\/".concat("ipv4"===t?i.ip.v4Cidr:i.ip.v6Cidr);return"required"===e?"".concat(i.ip[t]).concat(r):"".concat(i.ip[t],"(?:").concat(r,")?")})).join("|"),")"),s=new RegExp("^".concat(a,"$"));return{cidr:e,versions:r,regex:s,raw:a}}},5752:function(t,e,r){"use strict";var n=r(375),i=r(6064),o={generate:function(){var t={},e="\\dA-Fa-f",r="["+e+"]",n="\\w-\\.~",i="!\\$&'\\(\\)\\*\\+,;=",o="%"+e,a=n+o+i+":@",s="["+a+"]",u="(?:0{0,2}\\d|0?[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])";t.ipv4address="(?:"+u+"\\.){3}"+u;var c=r+"{1,4}",l="(?:"+c+":"+c+"|"+t.ipv4address+")",f="(?:"+c+":){6}"+l,h="::(?:"+c+":){5}"+l,d="(?:"+c+")?::(?:"+c+":){4}"+l,p="(?:(?:"+c+":){0,1}"+c+")?::(?:"+c+":){3}"+l,v="(?:(?:"+c+":){0,2}"+c+")?::(?:"+c+":){2}"+l,m="(?:(?:"+c+":){0,3}"+c+")?::"+c+":"+l,g="(?:(?:"+c+":){0,4}"+c+")?::"+l,y="(?:(?:"+c+":){0,5}"+c+")?::"+c,b="(?:(?:"+c+":){0,6}"+c+")?::";t.ipv4Cidr="(?:\\d|[1-2]\\d|3[0-2])",t.ipv6Cidr="(?:0{0,2}\\d|0?[1-9]\\d|1[01]\\d|12[0-8])",t.ipv6address="(?:"+f+"|"+h+"|"+d+"|"+p+"|"+v+"|"+m+"|"+g+"|"+y+"|"+b+")",t.ipvFuture="v"+r+"+\\.["+n+i+":]+",t.scheme="[a-zA-Z][a-zA-Z\\d+-\\.]*",t.schemeRegex=new RegExp(t.scheme);var w="["+n+o+i+":]*",_="["+n+o+i+"]{1,255}",x="(?:\\[(?:"+t.ipv6address+"|"+t.ipvFuture+")\\]|"+t.ipv4address+"|"+_+")",E="(?:"+w+"@)?"+x+"(?::\\d*)?",A="(?:"+w+"@)?("+x+")(?::\\d*)?",M=s+"*",k=s+"+",S="(?:\\/"+M+")*",I="\\/(?:"+k+S+")?",P=k+S,N="["+n+o+i+"@]+"+S,C="(?:\\/\\/\\/"+M+S+")";return t.hierPart="(?:(?:\\/\\/"+E+S+")|"+I+"|"+P+"|"+C+")",t.hierPartCapture="(?:(?:\\/\\/"+A+S+")|"+I+"|"+P+")",t.relativeRef="(?:(?:\\/\\/"+E+S+")|"+I+"|"+N+"|)",t.relativeRefCapture="(?:(?:\\/\\/"+A+S+")|"+I+"|"+N+"|)",t.query="["+a+"\\/\\?]*(?=#|$)",t.queryWithSquareBrackets="["+a+"\\[\\]\\/\\?]*(?=#|$)",t.fragment="["+a+"\\/\\?]*",t}};o.rfc3986=o.generate(),e.ip={v4Cidr:o.rfc3986.ipv4Cidr,v6Cidr:o.rfc3986.ipv6Cidr,ipv4:o.rfc3986.ipv4address,ipv6:o.rfc3986.ipv6address,ipvfuture:o.rfc3986.ipvFuture},o.createRegex=function(t){var e=o.rfc3986,r="(?:\\?"+(t.allowQuerySquareBrackets?e.queryWithSquareBrackets:e.query)+")?(?:#"+e.fragment+")?",a=t.domain?e.relativeRefCapture:e.relativeRef;if(t.relativeOnly)return o.wrap(a+r);var s="";if(t.scheme){n(t.scheme instanceof RegExp||"string"==typeof t.scheme||Array.isArray(t.scheme),"scheme must be a RegExp, String, or Array");var u=[].concat(t.scheme);n(u.length>=1,"scheme must have at least 1 scheme specified");for(var c=[],l=0;l<u.length;++l){var f=u[l];n(f instanceof RegExp||"string"==typeof f,"scheme at position "+l+" must be a RegExp or String"),f instanceof RegExp?c.push(f.source.toString()):(n(e.sc
2hemeRegex.test(f),"scheme at position "+l+" must be a valid scheme"),c.push(i(f)))}s=c.join("|")}var h="(?:"+(s?"(?:"+s+")":e.scheme)+":"+(t.domain?e.hierPartCapture:e.hierPart)+")",d=t.allowRelative?"(?:"+h+"|"+a+")":h;return o.wrap(d+r,s)},o.wrap=function(t,e){return{raw:t="(?=.)(?!https?:/(?:$|[^/]))(?!https?:///)(?!https?:[^/])".concat(t),regex:new RegExp("^".concat(t,"$")),scheme:e}},o.uriRegex=o.createRegex({}),e.regex=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.scheme||t.allowRelative||t.relativeOnly||t.allowQuerySquareBrackets||t.domain?o.createRegex(t):o.uriRegex}},1447:function(t,e){"use strict";var r={operators:["!","^","*","/","%","+","-","<","<=",">",">=","==","!=","&&","||","??"],operatorCharacters:["!","^","*","/","%","+","-","<","=",">","&","|","?"],operatorsOrder:[["^"],["*","/","%"],["+","-"],["<","<=",">",">="],["==","!="],["&&"],["||","??"]],operatorsPrefix:["!","n"],literals:{'"':'"',"`":"`","'":"'","[":"]"},numberRx:/^(?:[0-9]*(\.[0-9]*)?){1}$/,tokenRx:/^[\w\$\#\.\@\:\{\}]+$/,symbol:Symbol("formula"),settings:Symbol("settings")};e.Parser=function(){function t(e){var n;v(this,t);var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!i[r.settings]&&i.constants)for(var o in i.constants){var a=i.constants[o];if(null!==a&&!["boolean","number","string"].includes(typeof a))throw new Error("Formula constant ".concat(o," contains invalid ").concat(typeof a," value type"))}this.settings=i[r.settings]?i:Object.assign((d(n={},r.settings,!0),d(n,"constants",{}),d(n,"functions",{}),n),i),this.single=null,this._parts=null,this._parse(e)}return m(t,[{key:"_parse",value:function(t){var n,i=this,o=[],a="",s=0,u=!1,c=function(t){if(s)throw new Error("Formula missing closing parenthesis");var n=o.length?o[o.length-1]:null;if(u||a||t){if(n&&"reference"===n.type&&")"===t)return n.type="function",n.value=i._subFormula(a,n.value),void(a="");if(")"===t){var c=new e.Parser(a,i.settings);o.push({type:"segment",value:c})}else if(u){if("]"===u)return o.push({type:"reference",value:a}),void(a="");o.push({type:"literal",value:a})}else if(r.operatorCharacters.includes(a))n&&"operator"===n.type&&r.operators.includes(n.value+a)?n.value+=a:o.push({type:"operator",value:a});else if(a.match(r.numberRx))o.push({type:"constant",value:parseFloat(a)});else if(void 0!==i.settings.constants[a])o.push({type:"constant",value:i.settings.constants[a]});else{if(!a.match(r.tokenRx))throw new Error("Formula contains invalid token: ".concat(a));o.push({type:"reference",value:a})}a=""}},l=p(t);try{for(l.s();!(n=l.n()).done;){var f=n.value;u?f===u?(c(),u=!1):a+=f:s?"("===f?(a+=f,++s):")"===f?--s?a+=f:c(f):a+=f:f in r.literals?u=r.literals[f]:"("===f?(c(),++s):r.operatorCharacters.includes(f)?(c(),a=f,c()):" "!==f?a+=f:c()}}catch(g){l.e(g)}finally{l.f()}c(),o=o.map((function(t,e){return"operator"!==t.type||"-"!==t.value||e&&"operator"!==o[e-1].type?t:{type:"operator",value:"n"}}));var h,d=!1,v=p(o);try{for(v.s();!(h=v.n()).done;){var m=h.value;if("operator"===m.type){if(r.operatorsPrefix.includes(m.value))continue;if(!d)throw new Error("Formula contains an operator in invalid position");if(!r.operators.includes(m.value))throw new Error("Formula contains an unknown operator ".concat(m.value))}else if(d)throw new Error("Formula missing expected operator");d=!d}}catch(g){v.e(g)}finally{v.f()}if(!d)throw new Error("Formula contains invalid trailing operator");1===o.length&&["reference","literal","constant"].includes(o[0].type)&&(this.single={type:"reference"===o[0].type?"reference":"value",value:o[0].value}),this._parts=o.map((function(t){if("operator"===t.type)return r.operatorsPrefix.includes(t.value)?t:t.value;if("reference"!==t.type)return t.value;if(i.settings.tokenRx&&!i.settings.tokenRx.test(t.value))throw new Error("Formula contains invalid reference ".concat(t.value));return i.settings.reference?i.settings.reference(t.value):r.reference(t.value)}))}},{key:"_subFormula",value:function(t,n){var i=this,o=this.settings.functions[n];if("function"!=typeof o)throw new Error("Formula contains unknown function ".concat(n));var a=[];if(t){for(var s="",u=0,c=!1,l=function(){if(!s)throw new Error("Formula contains function ".concat(n," with invali
2d arguments ").concat(t));a.push(s),s=""},f=0;f<t.length;++f){var h=t[f];c?(s+=h,h===c&&(c=!1)):h in r.literals&&!u?(s+=h,c=r.literals[h]):","!==h||u?(s+=h,"("===h?++u:")"===h&&--u):l()}l()}return a=a.map((function(t){return new e.Parser(t,i.settings)})),function(t){var e,r=[],n=p(a);try{for(n.s();!(e=n.n()).done;){var i=e.value;r.push(i.evaluate(t))}}catch(s){n.e(s)}finally{n.f()}return o.call.apply(o,[t].concat(r))}}},{key:"evaluate",value:function(t){for(var e=this._parts.slice(),n=e.length-2;n>=0;--n){var i=e[n];if(i&&"operator"===i.type){var o=e[n+1];e.splice(n+1,1);var a=r.evaluate(o,t);e[n]=r.single(i.value,a)}}return r.operatorsOrder.forEach((function(n){for(var i=1;i<e.length-1;)if(n.includes(e[i])){var o=e[i],a=r.evaluate(e[i-1],t),s=r.evaluate(e[i+1],t);e.splice(i,2);var u=r.calculate(o,a,s);e[i-1]=0===u?0:u}else i+=2})),r.evaluate(e[0],t)}}]),t}(),e.Parser.prototype[r.symbol]=!0,r.reference=function(t){return function(e){return e&&void 0!==e[t]?e[t]:null}},r.evaluate=function(t,e){return null===t?null:"function"==typeof t?t(e):t[r.symbol]?t.evaluate(e):t},r.single=function(t,e){if("!"===t)return!e;var r=-e;return 0===r?0:r},r.calculate=function(t,e,n){if("??"===t)return r.exists(e)?e:n;if("string"==typeof e||"string"==typeof n){if("+"===t)return(e=r.exists(e)?e:"")+(r.exists(n)?n:"")}else switch(t){case"^":return Math.pow(e,n);case"*":return e*n;case"/":return e/n;case"%":return e%n;case"+":return e+n;case"-":return e-n}switch(t){case"<":return e<n;case"<=":return e<=n;case">":return e>n;case">=":return e>=n;case"==":return e===n;case"!=":return e!==n;case"&&":return e&&n;case"||":return e||n}return null},r.exists=function(t){return null!=t}},9926:function(){},5688:function(){},9708:function(){},1152:function(){},443:function(){},9848:function(){},5934:function(t){"use strict";t.exports={version:"17.9.1"}}},e={},function r(n){var i=e[n];if(void 0!==i)return i.exports;var o=e[n]={exports:{}};return t[n](o,o.exports,r),o.exports}(5107);var t,e}()},37676:function(t,e,r){var n;!function(){"use strict";var i="input is invalid type",o="object"===typeof window,a=o?window:{};a.JS_SHA3_NO_WINDOW&&(o=!1);var s=!o&&"object"===typeof self;!a.JS_SHA3_NO_NODE_JS&&"object"===typeof process&&process.versions&&process.versions.node?a=r.g:s&&(a=self);var u=!a.JS_SHA3_NO_COMMON_JS&&t.exports,c=r.amdO,l=!a.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!==typeof ArrayBuffer,f="0123456789abcdef".split(""),h=[4,1024,262144,67108864],d=[0,8,16,24],p=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],v=[224,256,384,512],m=[128,256],g=["hex","buffer","arrayBuffer","array","digest"],y={128:168,256:136};!a.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),!l||!a.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(t){return"object"===typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});for(var b=function(t,e,r){return function(n){return new R(t,e,t).update(n)[r]()}},w=function(t,e,r){return function(n,i){return new R(t,e,i).update(n)[r]()}},_=function(t,e,r){return function(e,n,i,o){return k["cshake"+t].update(e,n,i,o)[r]()}},x=function(t,e,r){return function(e,n,i,o){return k["kmac"+t].update(e,n,i,o)[r]()}},E=function(t,e,r,n){for(var i=0;i<g.length;++i){var o=g[i];t[o]=e(r,n,o)}return t},A=function(t,e){var r=b(t,e,"hex");return r.create=function(){return new R(t,e,t)},r.update=function(t){return r.create().update(t)},E(r,b,t,e)},M=[{name:"keccak",padding:[1,256,65536,16777216],bits:v,createMethod:A},{name:"sha3",padding:[6,1536,393216,100663296],bits:v,createMethod:A},{name:"shake",padding:[31,7936,2031616,520093696],bits:m,createMethod:function(t,e){var r=w(t,e,"hex");return r.create=function(r){return new R(t,e,r)},r.update=function(t,e){return r.create(e).update(t)},E(r,w,t,e)}},{name:"cshake",padding:h,bits:m,createMethod:function(t,e){var r=y[t],n=_(t,0,"hex");return n.create=function(n,i,o){return i||o?new R(t,e,n).bytepad([i,o],r):k["shake"+t].create(n)},n.update=function(t,e,r,i){return n.create(e,r,i).update(t)},E(n,_,t,e)}},{name:"kmac",padding:h,bits:m,createMethod:function(t,e){var r=y[t],n=x(t,0,"hex");return n.create=function(n,i,o){return new B(t,e,i).bytepad(["KMAC",o],r).bytepad([n],r)},n.update=function(t,e,r,i){return n.create(t,r,i).update(e)},E(n,x,t,e)}}],k={},S=[],I=0;I<M.length;++I)for(var P=M[I],N=P.bits,C=0;C<N.length;++C){var O=P.name+"_"+N[C];if(S.push(O),k[O]=P.createMethod(N[C],P.padding),"sha3"!==P.name){var T=P.name+N[C];S.push(T),k[T]=k[O]}}function R(t,e,r){this.blocks=[],this.s=[],this.padding=e,this.outputBits=r,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(t<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}function B(t,e,r){R.call(this,t,e,r)}R.prototype.update=function(t){if(this.finalized)throw new Error("finalize already called");var e,r=typeof t;if("string"!==r){if("object"!==r)throw new Error(i);if(null===t)throw new Error(i);if(l&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!l||!ArrayBuffer.isView(t)))throw new Error(i);e=!0}for(var n,o,a=this.blocks,s=this.byteCount,u=t.length,c=this.blockCount,f=0,h=this.s;f<u;){if(this.reset)for(this.reset=!1,a[0]=this.block,n=1;n<c+1;++n)a[n]=0;if(e)for(n=this.start;f<u&&n<s;++f)a[n>>2]|=t[f]<<d[3&n++];else for(n=this.start;f<u&&n<s;++f)(o=t.charCodeAt(f))<128?a[n>>2]|=o<<d[3&n++]:o<2048?(a[n>>2]|=(192|o>>6)<<d[3&n++],a[n>>2]|=(128|63&o)<<d[3&n++]):o<55296||o>=57344?(a[n>>2]|=(224|o>>12)<<d[3&n++],a[n>>2]|=(128|o>>6&63)<<d[3&n++],a[n>>2]|=(128|63&o)<<d[3&n++]):(o=65536+((1023&o)<<10|1023&t.charCodeAt(++f)),a[n>>2]|=(240|o>>18)<<d[3&n++],a[n>>2]|=(128|o>>12&63)<<d[3&n++],a[n>>2]|=(128|o>>6&63)<<d[3&n++],a[n>>2]|=(128|63&o)<<d[3&n++]);if(this.lastByteIndex=n,n>=s){for(this.start=n-s,this.block=a[c],n=0;n<c;++n)h[n]^=a[n];L(h),this.reset=!0}else this.start=n}return this},R.prototype.encode=function(t,e){var r=255&t,n=1,i=[r];for(r=255&(t>>=8);r>0;)i.unshift(r),r=255&(t>>=8),++n;return e?i.push(n):i.unshift(n),this.update(i),i.length},R.prototype.encodeString=function(t){var e,r=typeof t;if("string"!==r){if("object"!==r)throw new Error(i);if(null===t)throw new Error(i);if(l&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!l||!ArrayBuffer.isView(t)))throw new Error(i);e=!0}var n=0,o=t.length;if(e)n=o;else for(var a=0;a<t.length;++a){var s=t.charCodeAt(a);s<128?n+=1:s<2048?n+=2:s<55296||s>=57344?n+=3:(s=65536+((1023&s)<<10|1023&t.charCodeAt(++a)),n+=4)}return n+=this.encode(8*n),this.update(t),n},R.prototype.bytepad=function(t,e){for(var r=this.encode(e),n=0;n<t.length;++n)r+=this.encodeString(t[n]);var i=e-r%e,o=[];return o.length=i,this.update(o),this},R.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex,r=this.blockCount,n=this.s;if(t[e>>2]|=this.padding[3&e],this.lastByteIndex===this.byteCount)for(t[0]=t[r],e=1;e<r+1;++e)t[e]=0;
2for(t[r-1]|=2147483648,e=0;e<r;++e)n[e]^=t[e];L(n)}},R.prototype.toString=R.prototype.hex=function(){this.finalize();for(var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,a=0,s="";a<n;){for(o=0;o<e&&a<n;++o,++a)t=r[o],s+=f[t>>4&15]+f[15&t]+f[t>>12&15]+f[t>>8&15]+f[t>>20&15]+f[t>>16&15]+f[t>>28&15]+f[t>>24&15];a%e===0&&(L(r),o=0)}return i&&(t=r[o],s+=f[t>>4&15]+f[15&t],i>1&&(s+=f[t>>12&15]+f[t>>8&15]),i>2&&(s+=f[t>>20&15]+f[t>>16&15])),s},R.prototype.arrayBuffer=function(){this.finalize();var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3;t=i?new ArrayBuffer(n+1<<2):new ArrayBuffer(s);for(var u=new Uint32Array(t);a<n;){for(o=0;o<e&&a<n;++o,++a)u[a]=r[o];a%e===0&&L(r)}return i&&(u[o]=r[o],t=t.slice(0,s)),t},R.prototype.buffer=R.prototype.arrayBuffer,R.prototype.digest=R.prototype.array=function(){this.finalize();for(var t,e,r=this.blockCount,n=this.s,i=this.outputBlocks,o=this.extraBytes,a=0,s=0,u=[];s<i;){for(a=0;a<r&&s<i;++a,++s)t=s<<2,e=n[a],u[t]=255&e,u[t+1]=e>>8&255,u[t+2]=e>>16&255,u[t+3]=e>>24&255;s%r===0&&L(n)}return o&&(t=s<<2,e=n[a],u[t]=255&e,o>1&&(u[t+1]=e>>8&255),o>2&&(u[t+2]=e>>16&255)),u},B.prototype=new R,B.prototype.finalize=function(){return this.encode(this.outputBits,!0),R.prototype.finalize.call(this)};var L=function(t){var e,r,n,i,o,a,s,u,c,l,f,h,d,v,m,g,y,b,w,_,x,E,A,M,k,S,I,P,N,C,O,T,R,B,L,Z,j,F,U,D,H,z,$,q,G,W,V,K,Y,X,J,Q,tt,et,rt,nt,it,ot,at,st,ut,ct,lt;for(n=0;n<48;n+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],o=t[1]^t[11]^t[21]^t[31]^t[41],a=t[2]^t[12]^t[22]^t[32]^t[42],s=t[3]^t[13]^t[23]^t[33]^t[43],u=t[4]^t[14]^t[24]^t[34]^t[44],c=t[5]^t[15]^t[25]^t[35]^t[45],l=t[6]^t[16]^t[26]^t[36]^t[46],f=t[7]^t[17]^t[27]^t[37]^t[47],e=(h=t[8]^t[18]^t[28]^t[38]^t[48])^(a<<1|s>>>31),r=(d=t[9]^t[19]^t[29]^t[39]^t[49])^(s<<1|a>>>31),t[0]^=e,t[1]^=r,t[10]^=e,t[11]^=r,t[20]^=e,t[21]^=r,t[30]^=e,t[31]^=r,t[40]^=e,t[41]^=r,e=i^(u<<1|c>>>31),r=o^(c<<1|u>>>31),t[2]^=e,t[3]^=r,t[12]^=e,t[13]^=r,t[22]^=e,t[23]^=r,t[32]^=e,t[33]^=r,t[42]^=e,t[43]^=r,e=a^(l<<1|f>>>31),r=s^(f<<1|l>>>31),t[4]^=e,t[5]^=r,t[14]^=e,t[15]^=r,t[24]^=e,t[25]^=r,t[34]^=e,t[35]^=r,t[44]^=e,t[45]^=r,e=u^(h<<1|d>>>31),r=c^(d<<1|h>>>31),t[6]^=e,t[7]^=r,t[16]^=e,t[17]^=r,t[26]^=e,t[27]^=r,t[36]^=e,t[37]^=r,t[46]^=e,t[47]^=r,e=l^(i<<1|o>>>31),r=f^(o<<1|i>>>31),t[8]^=e,t[9]^=r,t[18]^=e,t[19]^=r,t[28]^=e,t[29]^=r,t[38]^=e,t[39]^=r,t[48]^=e,t[49]^=r,v=t[0],m=t[1],W=t[11]<<4|t[10]>>>28,V=t[10]<<4|t[11]>>>28,P=t[20]<<3|t[21]>>>29,N=t[21]<<3|t[20]>>>29,st=t[31]<<9|t[30]>>>23,ut=t[30]<<9|t[31]>>>23,z=t[40]<<18|t[41]>>>14,$=t[41]<<18|t[40]>>>14,B=t[2]<<1|t[3]>>>31,L=t[3]<<1|t[2]>>>31,g=t[13]<<12|t[12]>>>20,y=t[12]<<12|t[13]>>>20,K=t[22]<<10|t[23]>>>22,Y=t[23]<<10|t[22]>>>22,C=t[33]<<13|t[32]>>>19,O=t[32]<<13|t[33]>>>19,ct=t[42]<<2|t[43]>>>30,lt=t[43]<<2|t[42]>>>30,et=t[5]<<30|t[4]>>>2,rt=t[4]<<30|t[5]>>>2,Z=t[14]<<6|t[15]>>>26,j=t[15]<<6|t[14]>>>26,b=t[25]<<11|t[24]>>>21,w=t[24]<<11|t[25]>>>21,X=t[34]<<15|t[35]>>>17,J=t[35]<<15|t[34]>>>17,T=t[45]<<29|t[44]>>>3,R=t[44]<<29|t[45]>>>3,M=t[6]<<28|t[7]>>>4,k=t[7]<<28|t[6]>>>4,nt=t[17]<<23|t[16]>>>9,it=t[16]<<23|t[17]>>>9,F=t[26]<<25|t[27]>>>7,U=t[27]<<25|t[26]>>>7,_=t[36]<<21|t[37]>>>11,x=t[37]<<21|t[36]>>>11,Q=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,q=t[8]<<27|t[9]>>>5,G=t[9]<<27|t[8]>>>5,S=t[18]<<20|t[19]>>>12,I=t[19]<<20|t[18]>>>12,ot=t[29]<<7|t[28]>>>25,at=t[28]<<7|t[29]>>>25,D=t[38]<<8|t[39]>>>24,H=t[39]<<8|t[38]>>>24,E=t[48]<<14|t[49]>>>18,A=t[49]<<14|t[48]>>>18,t[0]=v^~g&b,t[1]=m^~y&w,t[10]=M^~S&P,t[11]=k^~I&N,t[20]=B^~Z&F,t[21]=L^~j&U,t[30]=q^~W&K,t[31]=G^~V&Y,t[40]=et^~nt&ot,t[41]=rt^~it&at,t[2]=g^~b&_,t[3]=y^~w&x,t[12]=S^~P&C,t[13]=I^~N&O,t[22]=Z^~F&D,t[23]=j^~U&H,t[32]=W^~K&X,t[33]=V^~Y&J,t[42]=nt^~ot&st,t[43]=it^~at&ut,t[4]=b^~_&E,t[5]=w^~x&A,t[14]=P^~C&T,t[15]=N^~O&R,t[24]=F^~D&z,t[25]=U^~H&$,t[34]=K^~X&Q,t[35]=Y^~J&tt,t[44]=ot^~st&ct,t[45]=at^~ut&lt,t[6]=_^~E&v,t[7]=x^~A&m,t[16]=C^~T&M,t[17]=O^~R&k,t[26]=D^~z&B,t[27]=H^~$&L,t[36]=X^~Q&q,t[37]=J^~tt&G,t[46]=st^~ct&et,t[47]=ut^~lt&rt,t[8]=E^~v&g,t[9]=A^~m&y,t[18]=T^~M&S,t[19]=R^~k&I,t[28]=z^~B&Z,t[29]=$^~L&j,t[38]=Q^~q&W,t[39]=tt^~G&V,t[48]=ct^~et&nt,t[49]=lt^~rt&it,t[0]^=p[n],t[1]^=p[n+1]};if(u)t.exports=k;else{for(I=0;I<S.length;++I)a[S[I]]=k[S[I]];c&&(void 0===(n=function(){return k}.call(e,r,e,t))||(t.exports=n))}}()},79305:function(t,e,r){t=r.nmd(t);var n="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",a="[object AsyncFunction]",s="[object Function]",u="[object GeneratorFunction]",c="[object Null]",l="[object Object]",f="[object Proxy]",h="[object Undef
2ined]",d=/^\[object .+?Constructor\]$/,p=/^(?:0|[1-9]\d*)$/,v={};v["[object Float32Array]"]=v["[object Float64Array]"]=v["[object Int8Array]"]=v["[object Int16Array]"]=v["[object Int32Array]"]=v["[object Uint8Array]"]=v["[object Uint8ClampedArray]"]=v["[object Uint16Array]"]=v["[object Uint32Array]"]=!0,v[o]=v["[object Array]"]=v["[object ArrayBuffer]"]=v["[object Boolean]"]=v["[object DataView]"]=v["[object Date]"]=v["[object Error]"]=v[s]=v["[object Map]"]=v["[object Number]"]=v[l]=v["[object RegExp]"]=v["[object Set]"]=v["[object String]"]=v["[object WeakMap]"]=!1;var m="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,g="object"==typeof self&&self&&self.Object===Object&&self,y=m||g||Function("return this")(),b=e&&!e.nodeType&&e,w=b&&t&&!t.nodeType&&t,_=w&&w.exports===b,x=_&&m.process,E=function(){try{var t=w&&w.require&&w.require("util").types;return t||x&&x.binding&&x.binding("util")}catch(e){}}(),A=E&&E.isTypedArray;var M,k,S=Array.prototype,I=Function.prototype,P=Object.prototype,N=y["__core-js_shared__"],C=I.toString,O=P.hasOwnProperty,T=function(){var t=/[^.]+$/.exec(N&&N.keys&&N.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),R=P.toString,B=C.call(Object),L=RegExp("^"+C.call(O).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Z=_?y.Buffer:void 0,j=y.Symbol,F=y.Uint8Array,U=Z?Z.allocUnsafe:void 0,D=(M=Object.getPrototypeOf,k=Object,function(t){return M(k(t))}),H=Object.create,z=P.propertyIsEnumerable,$=S.splice,q=j?j.toStringTag:void 0,G=function(){try{var t=yt(Object,"defineProperty");return t({},"",{}),t}catch(e){}}(),W=Z?Z.isBuffer:void 0,V=Math.max,K=Date.now,Y=yt(y,"Map"),X=yt(Object,"create"),J=function(){function t(){}return function(e){if(!Nt(e))return{};if(H)return H(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();function Q(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function tt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function et(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function rt(t){var e=this.__data__=new tt(t);this.size=e.size}function nt(t,e){var r=Mt(t),n=!r&&At(t),i=!r&&!n&&St(t),o=!r&&!n&&!i&&Ot(t),a=r||n||i||o,s=a?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],u=s.length;for(var c in t)!e&&!O.call(t,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||bt(c,u))||s.push(c);return s}function it(t,e,r){(void 0!==r&&!Et(t[e],r)||void 0===r&&!(e in t))&&st(t,e,r)}function ot(t,e,r){var n=t[e];O.call(t,e)&&Et(n,r)&&(void 0!==r||e in t)||st(t,e,r)}function at(t,e){for(var r=t.length;r--;)if(Et(t[r][0],e))return r;return-1}function st(t,e,r){"__proto__"==e&&G?G(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}Q.prototype.clear=function(){this.__data__=X?X(null):{},this.size=0},Q.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Q.prototype.get=function(t){var e=this.__data__;if(X){var r=e[t];return r===n?void 0:r}return O.call(e,t)?e[t]:void 0},Q.prototype.has=function(t){var e=this.__data__;return X?void 0!==e[t]:O.call(e,t)},Q.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=X&&void 0===e?n:e,this},tt.prototype.clear=function(){this.__data__=[],this.size=0},tt.prototype.delete=function(t){var e=this.__data__,r=at(e,t);return!(r<0)&&(r==e.length-1?e.pop():$.call(e,r,1),--this.size,!0)},tt.prototype.get=function(t){var e=this.__data__,r=at(e,t);return r<0?void 0:e[r][1]},tt.prototype.has=function(t){return at(this.__data__,t)>-1},tt.prototype.set=function(t,e){var r=this.__data__,n=at(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this},et.prototype.clear=function(){this.size=0,this.__data__={hash:new Q,map:new(Y||tt),string:new Q}},et.prototype.delete=function(t){var e=gt(this,t).delete(t);return this.size-=e?1:0,e},et.prototype.get=function(t){return gt(this,t).get(t)},et.prototype.has=function(t){return gt(this,t).has(t)},et.prototype.set=function(t,e){var r=gt(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this},rt.prototype.clear=function(){this.__data__=new tt,this.size=0},rt.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},rt.prototype.get=function(t){return this.__data__.get(t)},rt.prototype.has=function(t){return this.__data__.has(t)},rt.prototype.set=function(t,e){var r=this.__data__;if(r instanceof tt){var n=r.__data__;if(!Y||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new et(n)}return r.set(t,e),this.size=r.size,this};var ut,ct=function(t,e,r){for(var n=-1,i=Object(t),o=r(t),a=o.length;a--;){var s=o[ut?a:++n];if(!1===e(i[s],s,i))break}return t};function lt(t){return null==t?void 0===t?h:c:q&&q in Object(t)?function(t){var e=O.call(t,q),r=t[q];try{t[q]=void 0;var n=!0}catch(o){}var i=R.call(t);n&&(e?t[q]=r:delete t[q]);return i}(t):function(t){return R.call(t)}(t)}function ft(t){return Ct(t)&&lt(t)==o}function ht(t){return!(!Nt(t)||function(t){return!!T&&T in t}(t))&&(It(t)?L:d).test(function(t){if(null!=t){try{return C.call(t)}catch(e){}try{return t+""}catch(e){}}return""}(t))}function dt(t){if(!Nt(t))return function(t){var e=[];
2if(null!=t)for(var r in Object(t))e.push(r);return e}(t);var e=wt(t),r=[];for(var n in t)("constructor"!=n||!e&&O.call(t,n))&&r.push(n);return r}function pt(t,e,r,n,i){t!==e&&ct(e,(function(o,a){if(i||(i=new rt),Nt(o))!function(t,e,r,n,i,o,a){var s=_t(t,r),u=_t(e,r),c=a.get(u);if(c)return void it(t,r,c);var f=o?o(s,u,r+"",t,e,a):void 0,h=void 0===f;if(h){var d=Mt(u),p=!d&&St(u),v=!d&&!p&&Ot(u);f=u,d||p||v?Mt(s)?f=s:Ct(m=s)&&kt(m)?f=function(t,e){var r=-1,n=t.length;e||(e=Array(n));for(;++r<n;)e[r]=t[r];return e}(s):p?(h=!1,f=function(t,e){if(e)return t.slice();var r=t.length,n=U?U(r):new t.constructor(r);return t.copy(n),n}(u,!0)):v?(h=!1,f=function(t,e){var r=e?function(t){var e=new t.constructor(t.byteLength);return new F(e).set(new F(t)),e}(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}(u,!0)):f=[]:function(t){if(!Ct(t)||lt(t)!=l)return!1;var e=D(t);if(null===e)return!0;var r=O.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&C.call(r)==B}(u)||At(u)?(f=s,At(s)?f=function(t){return function(t,e,r,n){var i=!r;r||(r={});var o=-1,a=e.length;for(;++o<a;){var s=e[o],u=n?n(r[s],t[s],s,r,t):void 0;void 0===u&&(u=t[s]),i?st(r,s,u):ot(r,s,u)}return r}(t,Tt(t))}(s):Nt(s)&&!It(s)||(f=function(t){return"function"!=typeof t.constructor||wt(t)?{}:J(D(t))}(u))):h=!1}var m;h&&(a.set(u,f),i(f,u,n,o,a),a.delete(u));it(t,r,f)}(t,e,a,r,pt,n,i);else{var s=n?n(_t(t,a),o,a+"",t,e,i):void 0;void 0===s&&(s=o),it(t,a,s)}}),Tt)}function vt(t,e){return xt(function(t,e,r){return e=V(void 0===e?t.length-1:e,0),function(){for(var n=arguments,i=-1,o=V(n.length-e,0),a=Array(o);++i<o;)a[i]=n[e+i];i=-1;for(var s=Array(e+1);++i<e;)s[i]=n[i];return s[e]=r(a),function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}(t,this,s)}}(t,e,Lt),t+"")}var mt=G?function(t,e){return G(t,"toString",{configurable:!0,enumerable:!1,value:(r=e,function(){return r}),writable:!0});var r}:Lt;function gt(t,e){var r=t.__data__;return function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?r["string"==typeof e?"string":"hash"]:r.map}function yt(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return ht(r)?r:void 0}function bt(t,e){var r=typeof t;return!!(e=null==e?i:e)&&("number"==r||"symbol"!=r&&p.test(t))&&t>-1&&t%1==0&&t<e}function wt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||P)}function _t(t,e){if(("constructor"!==e||"function"!==typeof t[e])&&"__proto__"!=e)return t[e]}var xt=function(t){var e=0,r=0;return function(){var n=K(),i=16-(n-r);if(r=n,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(mt);function Et(t,e){return t===e||t!==t&&e!==e}var At=ft(function(){return arguments}())?ft:function(t){return Ct(t)&&O.call(t,"callee")&&!z.call(t,"callee")},Mt=Array.isArray;function kt(t){return null!=t&&Pt(t.length)&&!It(t)}var St=W||function(){return!1};function It(t){if(!Nt(t))return!1;var e=lt(t);return e==s||e==u||e==a||e==f}function Pt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=i}function Nt(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Ct(t){return null!=t&&"object"==typeof t}var Ot=A?function(t){return function(e){return t(e)}}(A):function(t){return Ct(t)&&Pt(t.length)&&!!v[lt(t)]};function Tt(t){return kt(t)?nt(t,!0):dt(t)}var Rt,Bt=(Rt=function(t,e,r){pt(t,e,r)},vt((function(t,e){var r=-1,n=e.length,i=n>1?e[n-1]:void 0,o=n>2?e[2]:void 0;for(i=Rt.length>3&&"function"==typeof i?(n--,i):void 0,o&&function(t,e,r){if(!Nt(r))return!1;var n=typeof e;return!!("number"==n?kt(r)&&bt(e,r.length):"string"==n&&e in r)&&Et(r[e],t)}(e[0],e[1],o)&&(i=n<3?void 0:i,n=1),t=Object(t);++r<n;){var a=e[r];a&&Rt(t,a,r,i)}return t})));function Lt(t){return t}t.exports=Bt},66257:function(t,e,r){t=r.nmd(t);var n="__lodash_hash_undefined__",i=1,o=2,a=1/0,s=9007199254740991,u="[object Arguments]",c="[object Array]",l="[object Boolean]",f="[object Date]",h="[object Error]",d="[object Function]",p="[object GeneratorFunction]",v="[object Map]",m="[object Number]",g="[object Object]",y="[object Promise]",b="[object RegExp]",w="[object Set]",_="[object String]",x="[object Symbol]",E="[object WeakMap]",A="[object ArrayBuffer]",M="[object DataView]",k=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,S=/^\w*$/,I=/^\./,P=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,N=/\\(\\)?/g,C=/^\[object .+?Constructor\]$/,O=/^(?:0|[1-9]\d*)$/,T={};
2T["[object Float32Array]"]=T["[object Float64Array]"]=T["[object Int8Array]"]=T["[object Int16Array]"]=T["[object Int32Array]"]=T["[object Uint8Array]"]=T["[object Uint8ClampedArray]"]=T["[object Uint16Array]"]=T["[object Uint32Array]"]=!0,T[u]=T[c]=T[A]=T[l]=T[M]=T[f]=T[h]=T[d]=T[v]=T[m]=T[g]=T[b]=T[w]=T[_]=T[E]=!1;var R="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,B="object"==typeof self&&self&&self.Object===Object&&self,L=R||B||Function("return this")(),Z=e&&!e.nodeType&&e,j=Z&&t&&!t.nodeType&&t,F=j&&j.exports===Z&&R.process,U=function(){try{return F&&F.binding("util")}catch(t){}}(),D=U&&U.isTypedArray;function H(t,e,r,n){for(var i=-1,o=t?t.length:0;++i<o;){var a=t[i];e(n,a,r(a),t)}return n}function z(t,e){for(var r=-1,n=t?t.length:0;++r<n;)if(e(t[r],r,t))return!0;return!1}function $(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(r){}return e}function q(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}function G(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}var W,V,K=Array.prototype,Y=Function.prototype,X=Object.prototype,J=L["__core-js_shared__"],Q=function(){var t=/[^.]+$/.exec(J&&J.keys&&J.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),tt=Y.toString,et=X.hasOwnProperty,rt=X.toString,nt=RegExp("^"+tt.call(et).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),it=L.Symbol,ot=L.Uint8Array,at=X.propertyIsEnumerable,st=K.splice,ut=(W=Object.keys,V=Object,function(t){return W(V(t))}),ct=$t(L,"DataView"),lt=$t(L,"Map"),ft=$t(L,"Promise"),ht=$t(L,"Set"),dt=$t(L,"WeakMap"),pt=$t(Object,"create"),vt=Jt(ct),mt=Jt(lt),gt=Jt(ft),yt=Jt(ht),bt=Jt(dt),wt=it?it.prototype:void 0,_t=wt?wt.valueOf:void 0,xt=wt?wt.toString:void 0;function Et(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function At(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Mt(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function kt(t){var e=-1,r=t?t.length:0;for(this.__data__=new Mt;++e<r;)this.add(t[e])}function St(t){this.__data__=new At(t)}function It(t,e){var r=oe(t)||ie(t)?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],n=r.length,i=!!n;for(var o in t)!e&&!et.call(t,o)||i&&("length"==o||Gt(o,n))||r.push(o);return r}function Pt(t,e){for(var r=t.length;r--;)if(ne(t[r][0],e))return r;return-1}function Nt(t,e,r,n){return Tt(t,(function(t,i,o){e(n,t,r(t),o)})),n}Et.prototype.clear=function(){this.__data__=pt?pt(null):{}},Et.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},Et.prototype.get=function(t){var e=this.__data__;if(pt){var r=e[t];return r===n?void 0:r}return et.call(e,t)?e[t]:void 0},Et.prototype.has=function(t){var e=this.__data__;return pt?void 0!==e[t]:et.call(e,t)},Et.prototype.set=function(t,e){return this.__data__[t]=pt&&void 0===e?n:e,this},At.prototype.clear=function(){this.__data__=[]},At.prototype.delete=function(t){var e=this.__data__,r=Pt(e,t);return!(r<0)&&(r==e.length-1?e.pop():st.call(e,r,1),!0)},At.prototype.get=function(t){var e=this.__data__,r=Pt(e,t);return r<0?void 0:e[r][1]},At.prototype.has=function(t){return Pt(this.__data__,t)>-1},At.prototype.set=function(t,e){var r=this.__data__,n=Pt(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},Mt.prototype.clear=function(){this.__data__={hash:new Et,map:new(lt||At),string:new Et}},Mt.prototype.delete=function(t){return zt(this,t).delete(t)},Mt.prototype.get=function(t){return zt(this,t).get(t)},Mt.prototype.has=function(t){return zt(this,t).has(t)},Mt.prototype.set=function(t,e){return zt(this,t).set(t,e),this},kt.prototype.add=kt.prototype.push=function(t){return this.__data__.set(t,n),this},kt.prototype.has=function(t){return this.__data__.has(t)},St.prototype.clear=function(){this.__data__=new At},St.prototype.delete=function(t){return this.__data__.delete(t)},St.prototype.get=function(t){return this.__data__.get(t)},St.prototype.has=function(t){return this.__data__.has(t)},St.prototype.set=function(t,e){var r=this.__data__;if(r instanceof At){var n=r.__data__;if(!lt||n.length<199)return n.push([t,e]),this;r=this.__data__=new Mt(n)}return r.set(t,e),this};var Ct,Ot,Tt=(Ct=function(t,e){return t&&Rt(t,e,de)},function(t,e){if(null==t)return t;if(!ae(t))return Ct(t,e);for(var r=t.length,n=Ot?r:-1,i=Object(t);(Ot?n--:++n<r)&&!1!==e(i[n],n,i););return t}),Rt=function(t){return function(e,r,n){for(var i=-1,o=Object(e),a=n(e),s=a.length;s--;){var u=a[t?s:++i];if(!1===r(o[u],u,o))break}return e}}();function Bt(t,e){for(var r=0,n=(e=Wt(e,t)?[e]:Dt(e)).length;null!=t&&r<n;)t=t[Xt(e[r++])];return r&&r==n?t:void 0}function Lt(t,e){return null!=t&&e in Object(t)}function Zt(t,e,r,n,a){return t===e||(null==t||null==e||!ce(t)&&!le(e)?t!==t&&e!==e:function(t,e,r,n,a,s){var d=oe(t),p=oe(e),y=c,E=c;d||(y=(y=qt(t))==u?g:y);p||(E=(E=qt(e))==u?g:E);var k=y==g&&!$(t),S=E==g&&!$(e),I=y==E;if(I&&!k)return s||(s=new St),d||he(t)?Ht(t,e,r,n,a,s):function(t,e,r,n,a,s,u){switch(r){case M:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case A:return!(t.byteLength!=e.byteLength||!n(new ot(t),new ot(e)));case l:case f:case m:return ne(+t,+e);case h:return t.name==e.name&&t.message==e.message;case b:case _:return t==e+"";case v:var c=q;case w:var d=s&o;if(c||(c=G),t.size!=e.size&&!d)return!1;var p=u.get(t);if(p)return p==e;s|=i,u.set(t,e);var g=Ht(c(t),c(e),n,a,s,u);return u.delete(t),g;case x:if(_t)return _t.call(t)==_t.call(e)}return!1}(t,e,y,r,n,a,s);if(!(a&o)){var P=k&&et.call(t,"__wrapped__"),N=S&&et.call(e,"__wrapped__");
2if(P||N){var C=P?t.value():t,O=N?e.value():e;return s||(s=new St),r(C,O,n,a,s)}}if(!I)return!1;return s||(s=new St),function(t,e,r,n,i,a){var s=i&o,u=de(t),c=u.length,l=de(e),f=l.length;if(c!=f&&!s)return!1;var h=c;for(;h--;){var d=u[h];if(!(s?d in e:et.call(e,d)))return!1}var p=a.get(t);if(p&&a.get(e))return p==e;var v=!0;a.set(t,e),a.set(e,t);var m=s;for(;++h<c;){var g=t[d=u[h]],y=e[d];if(n)var b=s?n(y,g,d,e,t,a):n(g,y,d,t,e,a);if(!(void 0===b?g===y||r(g,y,n,i,a):b)){v=!1;break}m||(m="constructor"==d)}if(v&&!m){var w=t.constructor,_=e.constructor;w==_||!("constructor"in t)||!("constructor"in e)||"function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _||(v=!1)}return a.delete(t),a.delete(e),v}(t,e,r,n,a,s)}(t,e,Zt,r,n,a))}function jt(t){return!(!ce(t)||function(t){return!!Q&&Q in t}(t))&&(se(t)||$(t)?nt:C).test(Jt(t))}function Ft(t){return"function"==typeof t?t:null==t?pe:"object"==typeof t?oe(t)?function(t,e){if(Wt(t)&&Vt(e))return Kt(Xt(t),e);return function(r){var n=function(t,e,r){var n=null==t?void 0:Bt(t,e);return void 0===n?r:n}(r,t);return void 0===n&&n===e?function(t,e){return null!=t&&function(t,e,r){e=Wt(e,t)?[e]:Dt(e);var n,i=-1,o=e.length;for(;++i<o;){var a=Xt(e[i]);if(!(n=null!=t&&r(t,a)))break;t=t[a]}if(n)return n;o=t?t.length:0;return!!o&&ue(o)&&Gt(a,o)&&(oe(t)||ie(t))}(t,e,Lt)}(r,t):Zt(e,n,void 0,i|o)}}(t[0],t[1]):function(t){var e=function(t){var e=de(t),r=e.length;for(;r--;){var n=e[r],i=t[n];e[r]=[n,i,Vt(i)]}return e}(t);if(1==e.length&&e[0][2])return Kt(e[0][0],e[0][1]);return function(r){return r===t||function(t,e,r,n){var a=r.length,s=a,u=!n;if(null==t)return!s;for(t=Object(t);a--;){var c=r[a];if(u&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++a<s;){var l=(c=r[a])[0],f=t[l],h=c[1];if(u&&c[2]){if(void 0===f&&!(l in t))return!1}else{var d=new St;if(n)var p=n(f,h,l,t,e,d);if(!(void 0===p?Zt(h,f,n,i|o,d):p))return!1}}return!0}(r,t,e)}}(t):function(t){return Wt(t)?(e=Xt(t),function(t){return null==t?void 0:t[e]}):function(t){return function(e){return Bt(e,t)}}(t);var e}(t)}function Ut(t){if(!function(t){var e=t&&t.constructor,r="function"==typeof e&&e.prototype||X;return t===r}(t))return ut(t);var e=[];for(var r in Object(t))et.call(t,r)&&"constructor"!=r&&e.push(r);return e}function Dt(t){return oe(t)?t:Yt(t)}function Ht(t,e,r,n,a,s){var u=a&o,c=t.length,l=e.length;if(c!=l&&!(u&&l>c))return!1;var f=s.get(t);if(f&&s.get(e))return f==e;var h=-1,d=!0,p=a&i?new kt:void 0;for(s.set(t,e),s.set(e,t);++h<c;){var v=t[h],m=e[h];if(n)var g=u?n(m,v,h,e,t,s):n(v,m,h,t,e,s);if(void 0!==g){if(g)continue;d=!1;break}if(p){if(!z(e,(function(t,e){if(!p.has(e)&&(v===t||r(v,t,n,a,s)))return p.add(e)}))){d=!1;break}}else if(v!==m&&!r(v,m,n,a,s)){d=!1;break}}return s.delete(t),s.delete(e),d}function zt(t,e){var r=t.__data__;return function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?r["string"==typeof e?"string":"hash"]:r.map}function $t(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return jt(r)?r:void 0}var qt=function(t){return rt.call(t)};function Gt(t,e){return!!(e=null==e?s:e)&&("number"==typeof t||O.test(t))&&t>-1&&t%1==0&&t<e}function Wt(t,e){if(oe(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!fe(t))||(S.test(t)||!k.test(t)||null!=e&&t in Object(e))}function Vt(t){return t===t&&!ce(t)}function Kt(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}}(ct&&qt(new ct(new ArrayBuffer(1)))!=M||lt&&qt(new lt)!=v||ft&&qt(ft.resolve())!=y||ht&&qt(new ht)!=w||dt&&qt(new dt)!=E)&&(qt=function(t){var e=rt.call(t),r=e==g?t.constructor:void 0,n=r?Jt(r):void 0;if(n)switch(n){case vt:return M;case mt:return v;case gt:return y;case yt:return w;case bt:return E}return e});var Yt=re((function(t){var e;t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if(fe(t))return xt?xt.call(t):"";var e=t+"";return"0"==e&&1/t==-a?"-0":e}(e);var r=[];return I.test(t)&&r.push(""),t.replace(P,(function(t,e,n,i){r.push(n?i.replace(N,"$1"):e||t)})),r}));function Xt(t){if("string"==typeof t||fe(t))return t;var e=t+"";return"0"==e&&1/t==-a?"-0":e}function Jt(t){if(null!=t){try{return tt.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var Qt,te,ee=(Qt=function(t,e,r){t[r?0:1].push(e)},te=function(){return[[],[]]},function(t,e){var r=oe(t)?H:Nt,n=te?te():{};return r(t,Qt,Ft(e),n)});function re(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function r(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);
2var a=t.apply(this,n);return r.cache=o.set(i,a),a};return r.cache=new(re.Cache||Mt),r}function ne(t,e){return t===e||t!==t&&e!==e}function ie(t){return function(t){return le(t)&&ae(t)}(t)&&et.call(t,"callee")&&(!at.call(t,"callee")||rt.call(t)==u)}re.Cache=Mt;var oe=Array.isArray;function ae(t){return null!=t&&ue(t.length)&&!se(t)}function se(t){var e=ce(t)?rt.call(t):"";return e==d||e==p}function ue(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=s}function ce(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function le(t){return!!t&&"object"==typeof t}function fe(t){return"symbol"==typeof t||le(t)&&rt.call(t)==x}var he=D?function(t){return function(e){return t(e)}}(D):function(t){return le(t)&&ue(t.length)&&!!T[rt.call(t)]};function de(t){return ae(t)?It(t):Ut(t)}function pe(t){return t}t.exports=ee},28810:function(t,e,r){t=r.nmd(t);var n=200,i="__lodash_hash_undefined__",o=1,a=2,s=1/0,u=9007199254740991,c="[object Arguments]",l="[object Array]",f="[object Boolean]",h="[object Date]",d="[object Error]",p="[object Function]",v="[object GeneratorFunction]",m="[object Map]",g="[object Number]",y="[object Object]",b="[object Promise]",w="[object RegExp]",_="[object Set]",x="[object String]",E="[object Symbol]",A="[object WeakMap]",M="[object ArrayBuffer]",k="[object DataView]",S=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,I=/^\w*$/,P=/^\./,N=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,C=/\\(\\)?/g,O=/^\[object .+?Constructor\]$/,T=/^(?:0|[1-9]\d*)$/,R={};R["[object Float32Array]"]=R["[object Float64Array]"]=R["[object Int8Array]"]=R["[object Int16Array]"]=R["[object Int32Array]"]=R["[object Uint8Array]"]=R["[object Uint8ClampedArray]"]=R["[object Uint16Array]"]=R["[object Uint32Array]"]=!0,R[c]=R[l]=R[M]=R[f]=R[k]=R[h]=R[d]=R[p]=R[m]=R[g]=R[y]=R[w]=R[_]=R[x]=R[A]=!1;var B="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,L="object"==typeof self&&self&&self.Object===Object&&self,Z=B||L||Function("return this")(),j=e&&!e.nodeType&&e,F=j&&t&&!t.nodeType&&t,U=F&&F.exports===j&&B.process,D=function(){try{return U&&U.binding("util")}catch(t){}}(),H=D&&D.isTypedArray;function z(t,e){return!!(t?t.length:0)&&function(t,e,r){if(e!==e)return function(t,e,r,n){var i=t.length,o=r+(n?1:-1);for(;n?o--:++o<i;)if(e(t[o],o,t))return o;return-1}(t,G,r);var n=r-1,i=t.length;for(;++n<i;)if(t[n]===e)return n;return-1}(t,e,0)>-1}function $(t,e,r){for(var n=-1,i=t?t.length:0;++n<i;)if(r(e,t[n]))return!0;return!1}function q(t,e){for(var r=-1,n=t?t.length:0;++r<n;)if(e(t[r],r,t))return!0;return!1}function G(t){return t!==t}function W(t,e){return t.has(e)}function V(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(r){}return e}function K(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}function Y(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}var X,J,Q=Array.prototype,tt=Function.prototype,et=Object.prototype,rt=Z["__core-js_shared__"],nt=function(){var t=/[^.]+$/.exec(rt&&rt.keys&&rt.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),it=tt.toString,ot=et.hasOwnProperty,at=et.toString,st=RegExp("^"+it.call(ot).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ut=Z.Symbol,ct=Z.Uint8Array,lt=et.propertyIsEnumerable,ft=Q.splice,ht=(X=Object.keys,J=Object,function(t){return X(J(t))}),dt=$t(Z,"DataView"),pt=$t(Z,"Map"),vt=$t(Z,"Promise"),mt=$t(Z,"Set"),gt=$t(Z,"WeakMap"),yt=$t(Object,"create"),bt=Jt(dt),wt=Jt(pt),_t=Jt(vt),xt=Jt(mt),Et=Jt(gt),At=ut?ut.prototype:void 0,Mt=At?At.valueOf:void 0,kt=At?At.toString:void 0;function St(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function It(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Pt(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Nt(t){var e=-1,r=t?t.length:0;for(this.__data__=new Pt;++e<r;)this.add(t[e])}function Ct(t){this.__data__=new It(t)}function Ot(t,e){var r=re(t)||ee(t)?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],n=r.length,i=!!n;for(var o in t)!e&&!ot.call(t,o)||i&&("length"==o||Gt(o,n))||r.push(o);return r}function Tt(t,e){for(var r=t.length;r--;)if(te(t[r][0],e))return r;return-1}function Rt(t,e){for(var r=0,n=(e=Wt(e,t)?[e]:Ut(e)).length;null!=t&&r<n;)t=t[Xt(e[r++])];return r&&r==n?t:void 0}function Bt(t,e){return null!=t&&e in Object(t)}function Lt(t,e,r,n,i){return t===e||(null==t||null==e||!ae(t)&&!se(e)?t!==t&&e!==e:function(t,e,r,n,i,s){var u=re(t),p=re(e),v=l,b=l;u||(v=(v=qt(t))==c?y:v);p||(b=(b=qt(e))==c?y:b);var A=v==y&&!V(t),S=b==y&&!V(e),I=v==b;if(I&&!A)return s||(s=new Ct),u||ce(t)?Ht(t,e,r,n,i,s):function(t,e,r,n,i,s,u){switch(r){case k:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case M:return!(t.byteLength!=e.byteLength||!n(new ct(t),new ct(e)));case f:case h:case g:return te(+t,+e);case d:return t.name==e.name&&t.message==e.message;case w:case x:return t==e+"";case m:var c=K;case _:var l=s&a;if(c||(c=Y),t.size!=e.size&&!l)return!1;var p=u.get(t);if(p)return p==e;s|=o,u.set(t,e);var v=Ht(c(t),c(e),n,i,s,u);return u.delete(t),v;case E:if(Mt)return Mt.call(t)==Mt.call(e)}return!1}(t,e,v,r,n,i,s);if(!(i&a)){var P=A&&ot.call(t,"__wrapped__"),N=S&&ot.call(e,"__wrapped__");
2if(P||N){var C=P?t.value():t,O=N?e.value():e;return s||(s=new Ct),r(C,O,n,i,s)}}if(!I)return!1;return s||(s=new Ct),function(t,e,r,n,i,o){var s=i&a,u=le(t),c=u.length,l=le(e),f=l.length;if(c!=f&&!s)return!1;var h=c;for(;h--;){var d=u[h];if(!(s?d in e:ot.call(e,d)))return!1}var p=o.get(t);if(p&&o.get(e))return p==e;var v=!0;o.set(t,e),o.set(e,t);var m=s;for(;++h<c;){var g=t[d=u[h]],y=e[d];if(n)var b=s?n(y,g,d,e,t,o):n(g,y,d,t,e,o);if(!(void 0===b?g===y||r(g,y,n,i,o):b)){v=!1;break}m||(m="constructor"==d)}if(v&&!m){var w=t.constructor,_=e.constructor;w==_||!("constructor"in t)||!("constructor"in e)||"function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _||(v=!1)}return o.delete(t),o.delete(e),v}(t,e,r,n,i,s)}(t,e,Lt,r,n,i))}function Zt(t){return!(!ae(t)||function(t){return!!nt&&nt in t}(t))&&(ie(t)||V(t)?st:O).test(Jt(t))}function jt(t){return"function"==typeof t?t:null==t?fe:"object"==typeof t?re(t)?function(t,e){if(Wt(t)&&Vt(e))return Kt(Xt(t),e);return function(r){var n=function(t,e,r){var n=null==t?void 0:Rt(t,e);return void 0===n?r:n}(r,t);return void 0===n&&n===e?function(t,e){return null!=t&&function(t,e,r){e=Wt(e,t)?[e]:Ut(e);var n,i=-1,o=e.length;for(;++i<o;){var a=Xt(e[i]);if(!(n=null!=t&&r(t,a)))break;t=t[a]}if(n)return n;o=t?t.length:0;return!!o&&oe(o)&&Gt(a,o)&&(re(t)||ee(t))}(t,e,Bt)}(r,t):Lt(e,n,void 0,o|a)}}(t[0],t[1]):function(t){var e=function(t){var e=le(t),r=e.length;for(;r--;){var n=e[r],i=t[n];e[r]=[n,i,Vt(i)]}return e}(t);if(1==e.length&&e[0][2])return Kt(e[0][0],e[0][1]);return function(r){return r===t||function(t,e,r,n){var i=r.length,s=i,u=!n;if(null==t)return!s;for(t=Object(t);i--;){var c=r[i];if(u&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++i<s;){var l=(c=r[i])[0],f=t[l],h=c[1];if(u&&c[2]){if(void 0===f&&!(l in t))return!1}else{var d=new Ct;if(n)var p=n(f,h,l,t,e,d);if(!(void 0===p?Lt(h,f,n,o|a,d):p))return!1}}return!0}(r,t,e)}}(t):function(t){return Wt(t)?(e=Xt(t),function(t){return null==t?void 0:t[e]}):function(t){return function(e){return Rt(e,t)}}(t);var e}(t)}function Ft(t){if(!function(t){var e=t&&t.constructor,r="function"==typeof e&&e.prototype||et;return t===r}(t))return ht(t);var e=[];for(var r in Object(t))ot.call(t,r)&&"constructor"!=r&&e.push(r);return e}function Ut(t){return re(t)?t:Yt(t)}St.prototype.clear=function(){this.__data__=yt?yt(null):{}},St.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},St.prototype.get=function(t){var e=this.__data__;if(yt){var r=e[t];return r===i?void 0:r}return ot.call(e,t)?e[t]:void 0},St.prototype.has=function(t){var e=this.__data__;return yt?void 0!==e[t]:ot.call(e,t)},St.prototype.set=function(t,e){return this.__data__[t]=yt&&void 0===e?i:e,this},It.prototype.clear=function(){this.__data__=[]},It.prototype.delete=function(t){var e=this.__data__,r=Tt(e,t);return!(r<0)&&(r==e.length-1?e.pop():ft.call(e,r,1),!0)},It.prototype.get=function(t){var e=this.__data__,r=Tt(e,t);return r<0?void 0:e[r][1]},It.prototype.has=function(t){return Tt(this.__data__,t)>-1},It.prototype.set=function(t,e){var r=this.__data__,n=Tt(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},Pt.prototype.clear=function(){this.__data__={hash:new St,map:new(pt||It),string:new St}},Pt.prototype.delete=function(t){return zt(this,t).delete(t)},Pt.prototype.get=function(t){return zt(this,t).get(t)},Pt.prototype.has=function(t){return zt(this,t).has(t)},Pt.prototype.set=function(t,e){return zt(this,t).set(t,e),this},Nt.prototype.add=Nt.prototype.push=function(t){return this.__data__.set(t,i),this},Nt.prototype.has=function(t){return this.__data__.has(t)},Ct.prototype.clear=function(){this.__data__=new It},Ct.prototype.delete=function(t){return this.__data__.delete(t)},Ct.prototype.get=function(t){return this.__data__.get(t)},Ct.prototype.has=function(t){return this.__data__.has(t)},Ct.prototype.set=function(t,e){var r=this.__data__;if(r instanceof It){var i=r.__data__;if(!pt||i.length<n-1)return i.push([t,e]),this;r=this.__data__=new Pt(i)}return r.set(t,e),this};var Dt=mt&&1/Y(new mt([,-0]))[1]==s?function(t){return new mt(t)}:function(){};function Ht(t,e,r,n,i,s){var u=i&a,c=t.length,l=e.length;if(c!=l&&!(u&&l>c))return!1;var f=s.get(t);if(f&&s.get(e))return f==e;var h=-1,d=!0,p=i&o?new Nt:void 0;for(s.set(t,e),s.set(e,t);++h<c;){var v=t[h],m=e[h];if(n)var g=u?n(m,v,h,e,t,s):n(v,m,h,t,e,s);if(void 0!==g){if(g)continue;d=!1;break}
2if(p){if(!q(e,(function(t,e){if(!p.has(e)&&(v===t||r(v,t,n,i,s)))return p.add(e)}))){d=!1;break}}else if(v!==m&&!r(v,m,n,i,s)){d=!1;break}}return s.delete(t),s.delete(e),d}function zt(t,e){var r=t.__data__;return function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?r["string"==typeof e?"string":"hash"]:r.map}function $t(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return Zt(r)?r:void 0}var qt=function(t){return at.call(t)};function Gt(t,e){return!!(e=null==e?u:e)&&("number"==typeof t||T.test(t))&&t>-1&&t%1==0&&t<e}function Wt(t,e){if(re(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!ue(t))||(I.test(t)||!S.test(t)||null!=e&&t in Object(e))}function Vt(t){return t===t&&!ae(t)}function Kt(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}}(dt&&qt(new dt(new ArrayBuffer(1)))!=k||pt&&qt(new pt)!=m||vt&&qt(vt.resolve())!=b||mt&&qt(new mt)!=_||gt&&qt(new gt)!=A)&&(qt=function(t){var e=at.call(t),r=e==y?t.constructor:void 0,n=r?Jt(r):void 0;if(n)switch(n){case bt:return k;case wt:return m;case _t:return b;case xt:return _;case Et:return A}return e});var Yt=Qt((function(t){var e;t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if(ue(t))return kt?kt.call(t):"";var e=t+"";return"0"==e&&1/t==-s?"-0":e}(e);var r=[];return P.test(t)&&r.push(""),t.replace(N,(function(t,e,n,i){r.push(n?i.replace(C,"$1"):e||t)})),r}));function Xt(t){if("string"==typeof t||ue(t))return t;var e=t+"";return"0"==e&&1/t==-s?"-0":e}function Jt(t){if(null!=t){try{return it.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function Qt(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function r(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=t.apply(this,n);return r.cache=o.set(i,a),a};return r.cache=new(Qt.Cache||Pt),r}function te(t,e){return t===e||t!==t&&e!==e}function ee(t){return function(t){return se(t)&&ne(t)}(t)&&ot.call(t,"callee")&&(!lt.call(t,"callee")||at.call(t)==c)}Qt.Cache=Pt;var re=Array.isArray;function ne(t){return null!=t&&oe(t.length)&&!ie(t)}function ie(t){var e=ae(t)?at.call(t):"";return e==p||e==v}function oe(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=u}function ae(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function se(t){return!!t&&"object"==typeof t}function ue(t){return"symbol"==typeof t||se(t)&&at.call(t)==E}var ce=H?function(t){return function(e){return t(e)}}(H):function(t){return se(t)&&oe(t.length)&&!!R[at.call(t)]};function le(t){return ne(t)?Ot(t):Ft(t)}function fe(t){return t}t.exports=function(t,e){return t&&t.length?function(t,e,r){var i=-1,o=z,a=t.length,s=!0,u=[],c=u;if(r)s=!1,o=$;else if(a>=n){var l=e?null:Dt(t);if(l)return Y(l);s=!1,o=W,c=new Nt}else c=e?[]:u;t:for(;++i<a;){var f=t[i],h=e?e(f):f;if(f=r||0!==f?f:0,s&&h===h){for(var d=c.length;d--;)if(c[d]===h)continue t;e&&c.push(h),u.push(f)}else o(c,h,r)||(c!==u&&c.push(h),u.push(f))}return u}(t,jt(e)):[]}},2547:function(t,e,r){"use strict";var n=r(17061).default,i=r(17156).default,o=r(42122).default,a=r(89728).default,s=r(56690).default,u=r(61655).default,c=r(26389).default,l=r(33496).default,f=r(18237).default;Object.defineProperty(e,"__esModule",{value:!0}),e.InvalidStatusCodeError=e.InvalidCertError=void 0;var h=Object.freeze({redirect:!0,expectStatusCode:200,headers:{},full:!1,keepAlive:!0,cors:!1,referrer:!1,sslAllowSelfSigned:!1,_redirectCount:0}),d=function(t){u(r,t);var e=c(r);function r(t,n){var i;return s(this,r),(i=e.call(this,t)).fingerprint256=n,i}return a(r)}(l(Error));e.InvalidCertError=d;var p=function(t){u(r,t);var e=c(r);function r(t){var n;return s(this,r),(n=e.call(this,"Request Failed. Status Code: ".concat(t))).statusCode=t,n}return a(r)}(l(Error));function v(t,e){if(!e||"text"===e||"json"===e)try{var r=new TextDecoder("utf8",{fatal:!0}).decode(t);if("text"===e)return r;try{return JSON.parse(r)}catch(n){if("json"===e)throw n;return r}}catch(n){if("text"===e||"json"===e)throw n}return t}e.InvalidStatusCodeError=p;var m={};function g(t,e){var a=o(o({},h),e),s=r(72260),u=r(72895),c=r(31865),l=r(97736).promisify,y=r(13121).resolve,b=!!/^https/.test(t),w={method:a.method||"GET",headers:{"Accept-Encoding":"gzip, deflate, br"}},_=function(t){return t.replace(/:| /g,"").toLowerCase()};if(a.keepAlive){var x,E=[b,b&&(null===(x=a.sslPinnedCertificates)||void 0===x?void 0:x.map((function(t){return _(t)})).sort())].join();w.agent=m[E]||(m[E]=new(b?u:s).Agent({keepAlive:!0,keepAliveMsecs:3e4,maxFreeSockets:1024,maxCachedSessions:1024}))}"json"===a.type&&(w.headers["Content-Type"]="application/json"),a.data&&(a.method||(w.method="POST"),w.body="json"===a.type?JSON.stringify(a.data):a.data),w.headers=o(o({},w.headers),a.headers),a.sslAllowSelfSigned&&(w.rejectUnauthorized=!1);var A=function(){var e=i(n().mark((function e(r){var i,o,s,u,h,d,m,b,w,_,x;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=r.statusCode,!(a.redirect&&300<=i&&i<400&&r.headers.location)){e.
2next=8;break}if(10!=a._redirectCount){e.next=4;break}throw new Error("Request failed. Too much redirects.");case 4:return a._redirectCount+=1,e.next=7,g(y(t,r.headers.location),a);case 7:return e.abrupt("return",e.sent);case 8:if(!a.expectStatusCode||i===a.expectStatusCode){e.next=11;break}throw r.resume(),new p(i);case 11:o=[],s=!1,u=!1,e.prev=14,d=f(r);case 16:return e.next=18,d.next();case 18:if(!(s=!(m=e.sent).done)){e.next=24;break}b=m.value,o.push(b);case 21:s=!1,e.next=16;break;case 24:e.next=30;break;case 26:e.prev=26,e.t0=e.catch(14),u=!0,h=e.t0;case 30:if(e.prev=30,e.prev=31,!s||null==d.return){e.next=35;break}return e.next=35,d.return();case 35:if(e.prev=35,!u){e.next=38;break}throw h;case 38:return e.finish(35);case 39:return e.finish(30);case 40:if(w=Buffer.concat(o),"br"!==(_=r.headers["content-encoding"])){e.next=46;break}return e.next=45,l(c.brotliDecompress)(w);case 45:w=e.sent;case 46:if("gzip"!==_&&"deflate"!==_){e.next=50;break}return e.next=49,l(c.unzip)(w);case 49:w=e.sent;case 50:if(x=v(w,a.type),!a.full){e.next=53;break}return e.abrupt("return",{headers:r.headers,status:i,body:x});case 53:return e.abrupt("return",x);case 54:case"end":return e.stop()}}
2),e,null,[[14,26,30,40],[31,,35,39]])})));return function(t){return e.apply(this,arguments)}}();return new Promise((function(e,r){var c,l=function(){var e=i(n().mark((function e(i){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!i||"DEPTH_ZERO_SELF_SIGNED_CERT"!==i.code){e.next=9;break}return e.prev=1,e.next=4,g(t,o(o({},a),{},{sslAllowSelfSigned:!0,sslPinnedCertificates:[]}));case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),e.t0&&e.t0.fingerprint256&&(i=new d("Self-signed SSL certificate: ".concat(e.t0.fingerprint256),e.t0.fingerprint256));case 9:r(i);case 10:case"end":return e.stop()}}),e,null,[[1,6]])})));return function(t){return e.apply(this,arguments)}}(),f=(b?u:s).request(t,w,(function(t){t.on("error",l),i(n().mark((function i(){return n().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.t0=e,n.next=4,A(t);case 4:n.t1=n.sent,(0,n.t0)(n.t1),n.next=11;break;case 8:n.prev=8,n.t2=n.catch(0),r(n.t2);case 11:case"end":return n.stop()}}),i,null,[[0,8]])})))()}));f.on("error",l);var h=null===(c=a.sslPinnedCertificates)||void 0===c?void 0:c.map((function(t){return _(t)})),p=function(t){var e,r=_((null===(e=t.getPeerCertificate())||void 0===e?void 0:e.fingerprint256)||"");if((r||!t.isSessionReused())&&!h.includes(r))return f.emit("error",new d("Invalid SSL certificate: ".concat(r," Expected: ").concat(h),r)),f.abort()};a.sslPinnedCertificates&&f.on("socket",(function(t){t.listeners("secureConnect").map((function(t){return(t.name||"").replace("bound ","")})).includes("mfetchSecureConnect")||t.on("secureConnect",p.bind(null,t))})),a.keepAlive&&f.setNoDelay(!0),w.body&&f.write(w.body),f.end()}))}var y=new Set(["Accept","Accept-Language","Content-Language","Content-Type"].map((function(t){return t.toLowerCase()}))),b=new Set(["Accept-Charset","Accept-Encoding","Access-Control-Request-Headers","Access-Control-Request-Method","Connection","Content-Length","Cookie","Cookie2","Date","DNT","Expect","Host","Keep-Alive","Origin","Referer","TE","Trailer","Transfer-Encoding","Upgrade","Via"].map((function(t){return t.toLowerCase()})));function w(t,e){return _.apply(this,arguments)}function _(){return(_=i(n().mark((function t(e,r){var i,a,s,u,c,l,f,d,m;return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(c in i=o(o({},h),r),a=new Headers,"json"===i.type&&a.set("Content-Type","application/json"),(s=new URL(e)).username&&(u=btoa("".concat(s.username,":").concat(s.password)),a.set("Authorization","Basic ".concat(u)),s.username="",s.password=""),e=""+s,i.headers)l=c.toLowerCase(),(y.has(l)||i.cors&&!b.has(l))&&a.set(c,i.headers[c]);return f={headers:a,redirect:i.redirect?"follow":"manual"},i.referrer||(f.referrerPolicy="no-referrer"),i.cors&&(f.mode="cors"),i.data&&(i.method||(f.method="POST"),f.body="json"===i.type?JSON.stringify(i.data):i.data),t.next=13,fetch(e,f);case 13:if(d=t.sent,!i.expectStatusCode||d.status===i.expectStatusCode){t.next=16;break}throw new p(d.status);case 16:return t.t0=v,t.t1=Uint8Array,t.next=20,d.arrayBuffer();case 20:if(t.t2=t.sent,t.t3=new t.t1(t.t2),t.t4=i.type,m=(0,t.t0)(t.t3,t.t4),!i.full){t.next=26;break}return t.abrupt("return",{headers:Object.fromEntries(d.headers.entries()),status:d.status,body:m});case 26:return t.abrupt("return",m);case 27:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var x=!!("object"==typeof process&&process.versions&&process.versions.node&&process.versions.v8);e.default=function(t,e){return(x?g:w)(t,e)}},65701:function(t){function e(t,e){if(!t)throw new Error(e||"Assertion failed")}t.exports=e,e.equal=function(t,e,r){if(t!=e)throw new Error(r||"Assertion failed: "+t+" != "+e)}},84603:function(t,e,r){"use strict";r.d(e,{X:function(){return i}});var n=r(95330),i=function(t){function e(e){var r=t.call(this)||this;return r._value=e,r}return(0,n.ZT)(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),e.prototype._subscribe=function(e){var r=t.prototype._subscribe.call(this,e);return!r.closed&&e.next(this._value),r},e.prototype.getValue=function(){var t=this,e=t.hasError,r=t.thrownError,n=t._value;if(e)throw r;return this._throwIfClosed(),n},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(r(99687).x)},36684:function(t,e,r){"use strict";r.d(e,{y:function(){return f}});var n=r(26460),i=r(22448),o=r(5398),a=r(36531);function s(t){return 0===t.length?a.y:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}}var u=r(6068),c=r(93766),l=r(88002),f=function(){function t(t){t&&(this._subscribe=t)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(t,e,r){var o,a=this,s=(o=t)&&o instanceof n.Lv||function(t){return t&&(0,c.m)(t.next)&&(0,c.m)(t.error)&&(0,c.m)(t.complete)}(o)&&(0,i.Nn)(o)?t:new n.Hp(t,e,r);return(0,l.x)((function(){var t=a,e=t.operator,r=t.source;s.add(e?e.call(s,r):r?a._subscribe(s):a._trySubscribe(s))})),s},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},t.prototype.forEach=function(t,e){var r=this;return new(e=h(e))((function(e,i){var o=new n.Hp({next:function(e){try{t(e)}catch(r){i(r),o.unsubscribe()}},error:i,complete:e});r.subscribe(o)}))},t.prototype._subscribe=function(t){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(t)},t.prototype[o.L]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return s(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=h(t))((function(t,r){var n;e.subscribe((function(t){return n=t}),(function(t){return r(t)}),(function(){return t(n)}))}))},t.create=function(e){return new t(e)},t}();function h(t){var e;return null!==(e=null!==t&&void 0!==t?t:u.v.Promise)&&void 0!==e?e:Promise}},99687:function(t,e,r){"use strict";r.d(e,{x:function(){return c}});var n=r(95330),i=r(36684),o=r(22448),a=(0,r(71982).d)((function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}
2)),s=r(11496),u=r(88002),c=function(t){function e(){var e=t.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return(0,n.ZT)(e,t),e.prototype.lift=function(t){var e=new l(this,this);return e.operator=t,e},e.prototype._throwIfClosed=function(){if(this.closed)throw new a},e.prototype.next=function(t){var e=this;(0,u.x)((function(){var r,i;if(e._throwIfClosed(),!e.isStopped){e.currentObservers||(e.currentObservers=Array.from(e.observers));try{for(var o=(0,n.XA)(e.currentObservers),a=o.next();!a.done;a=o.next()){a.value.next(t)}}catch(s){r={error:s}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}}}))},e.prototype.error=function(t){var e=this;(0,u.x)((function(){if(e._throwIfClosed(),!e.isStopped){e.hasError=e.isStopped=!0,e.thrownError=t;for(var r=e.observers;r.length;)r.shift().error(t)}}))},e.prototype.complete=function(){var t=this;(0,u.x)((function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}}))},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(e){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var e=this,r=this,n=r.hasError,i=r.isStopped,a=r.observers;return n||i?o.Lc:(this.currentObservers=null,a.push(t),new o.w0((function(){e.currentObservers=null,(0,s.P)(a,t)})))},e.prototype._checkFinalizedStatuses=function(t){var e=this,r=e.hasError,n=e.thrownError,i=e.isStopped;r?t.error(n):i&&t.complete()},e.prototype.asObservable=function(){var t=new i.y;return t.source=this,t},e.create=function(t,e){return new l(t,e)},e}(i.y),l=function(t){function e(e,r){var n=t.call(this)||this;return n.destination=e,n.source=r,n}return(0,n.ZT)(e,t),e.prototype.next=function(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===r||r.call(e,t)},e.prototype.error=function(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===r||r.call(e,t)},e.prototype.complete=function(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)},e.prototype._subscribe=function(t){var e,r;return null!==(r=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==r?r:o.Lc},e}(c)},26460:function(t,e,r){"use strict";r.d(e,{Hp:function(){return g},Lv:function(){return d}});var n=r(95330),i=r(93766),o=r(22448),a=r(6068),s=r(89394),u=r(1673),c=l("C",void 0,void 0);function l(t,e,r){return{kind:t,value:e,error:r}}var f=r(90122),h=r(88002),d=function(t){function e(e){var r=t.call(this)||this;return r.isStopped=!1,e?(r.destination=e,(0,o.Nn)(e)&&e.add(r)):r.destination=w,r}return(0,n.ZT)(e,t),e.create=function(t,e,r){return new g(t,e,r)},e.prototype.next=function(t){this.isStopped?b(function(t){return l("N",t,void 0)}(t),this):this._next(t)},e.prototype.error=function(t){this.isStopped?b(l("E",void 0,t),this):(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped?b(c,this):(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(o.w0),p=Function.prototype.bind;function v(t,e){return p.call(t,e)}var m=function(){function t(t){this.partialObserver=t}return t.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(r){y(r)}},t.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(r){y(r)}else y(t)},t.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){y(e)}},t}(),g=function(t){function e(e,r,n){var o,s,u=t.call(this)||this;(0,i.m)(e)||!e?o={next:null!==e&&void 0!==e?e:void 0,error:null!==r&&void 0!==r?r:void 0,complete:null!==n&&void 0!==n?n:void 0}
2:u&&a.v.useDeprecatedNextContext?((s=Object.create(e)).unsubscribe=function(){return u.unsubscribe()},o={next:e.next&&v(e.next,s),error:e.error&&v(e.error,s),complete:e.complete&&v(e.complete,s)}):o=e;return u.destination=new m(o),u}return(0,n.ZT)(e,t),e}(d);function y(t){a.v.useDeprecatedSynchronousErrorHandling?(0,h.O)(t):(0,s.h)(t)}function b(t,e){var r=a.v.onStoppedNotification;r&&f.z.setTimeout((function(){return r(t,e)}))}var w={closed:!0,next:u.Z,error:function(t){throw t},complete:u.Z}},22448:function(t,e,r){"use strict";r.d(e,{Lc:function(){return u},w0:function(){return s},Nn:function(){return c}});var n=r(95330),i=r(93766),o=(0,r(71982).d)((function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(t,e){return e+1+") "+t.toString()})).join("\n  "):"",this.name="UnsubscriptionError",this.errors=e}})),a=r(11496),s=function(){function t(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var t,e,r,a,s;if(!this.closed){this.closed=!0;var u=this._parentage;if(u)if(this._parentage=null,Array.isArray(u))try{for(var c=(0,n.XA)(u),f=c.next();!f.done;f=c.next()){f.value.remove(this)}}catch(g){t={error:g}}finally{try{f&&!f.done&&(e=c.return)&&e.call(c)}finally{if(t)throw t.error}}else u.remove(this);var h=this.initialTeardown;if((0,i.m)(h))try{h()}catch(y){s=y instanceof o?y.errors:[y]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var p=(0,n.XA)(d),v=p.next();!v.done;v=p.next()){var m=v.value;try{l(m)}catch(b){s=null!==s&&void 0!==s?s:[],b instanceof o?s=(0,n.ev)((0,n.ev)([],(0,n.CR)(s)),(0,n.CR)(b.errors)):s.push(b)}}}catch(w){r={error:w}}finally{try{v&&!v.done&&(a=p.return)&&a.call(p)}finally{if(r)throw r.error}}}if(s)throw new o(s)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)l(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).push(e)}},t.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},t.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},t.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&(0,a.P)(e,t)},t.prototype.remove=function(e){var r=this._finalizers;r&&(0,a.P)(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=function(){var e=new t;return e.closed=!0,e}(),t}(),u=s.EMPTY;function c(t){return t instanceof s||t&&"closed"in t&&(0,i.m)(t.remove)&&(0,i.m)(t.add)&&(0,i.m)(t.unsubscribe)}function l(t){(0,i.m)(t)?t():t.unsubscribe()}},6068:function(t,e,r){"use strict";r.d(e,{v:function(){return n}});var n={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},262:function(t,e,r){"use strict";r.d(e,{E:function(){return n}});var n=new(r(36684).y)((function(t){return t.complete()}))},15451:function(t,e,r){"use strict";r.d(e,{D:function(){return _}});var n=r(91974),i=r(11851),o=r(64960),a=r(87038);function s(t,e){return void 0===e&&(e=0),(0,o.e)((function(r,n){r.subscribe((0,a.x)(n,(function(r){return(0,i.f)(n,t,(function(){return n.next(r)}),e)}),(function(){return(0,i.f)(n,t,(function(){return n.complete()}),e)}),(function(r){return(0,i.f)(n,t,(function(){return n.error(r)}),e)})))}))}function u(t,e){return void 0===e&&(e=0),(0,o.e)((function(r,n){n.add(t.schedule((function(){return r.subscribe(n)}),e))}))}var c=r(36684);var l=r(21113),f=r(93766);function h(t,e){if(!t)throw new Error("Iterable cannot be null");return new c.y((function(r){(0,i.f)(r,e,(function(){var n=t[Symbol.asyncIterator]();(0,i.f)(r,e,(function(){n.next().then((function(t){t.done?r.complete():r.next(t.value)}))}),0,!0)}))}))}var d=r(54598),p=r(68868),v=r(3150),m=r(44034),g=r(92593),y=r(37471),b=r(93870);function w(t,e){if(null!=t){if((0,d.c)(t))return function(t,e){return(0,n.Xf)(t).pipe(u(e),s(e))}(t,e);if((0,v.z)(t))return function(t,e){return new c.y((function(r){var n=0;return e.schedule((function(){n===t.length?r.complete():(r.next(t[n++]),r.closed||this.schedule())}))}))}(t,e);if((0,p.t)(t))return function(t,e){return(0,n.Xf)(t).pipe(u(e),s(e))}(t,e);if((0,g.D)(t))return h(t,e);if((0,m.T)(t))return function(t,e){return new c.y((function(r){var n;return(0,i.f)(r,e,(function(){n=t[l.h](),(0,i.f)(r,e,(function(){var t,e,i;try{e=(t=n.next()).value,i=t.done}catch(o){return void r.error(o)}i?r.complete():r.next(e)}),0,!0)})),function(){return(0,f.m)(null===n||void 0===n?void 0:n.return)&&n.return()}}))}(t,e);if((0,b.L)(t))return function(t,e){return h((0,b.Q)(t),e)}(t,e)}throw(0,y.z)(t)}function _(t,e){return e?w(t,e):(0,n.Xf)(t)}},91974:function(t,e,r){"use strict";r.d(e,{Xf:function(){return v}});var n=r(95330),i=r(3150),o=r(68868),a=r(36684),s=r(54598),u=r(92593),c=r(37471),l=r(44034),f=r(93870),h=r(93766),d=r(89394),p=r(5398);function v(t){if(t instanceof a.y)return t;if(null!=t){if((0,s.c)(t))return y=t,new a.y((function(t){var e=y[p.L]();if((0,h.m)(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")}));if((0,i.z)(t))return g=t,new a.y((function(t){for(var e=0;e<g.length&&!t.closed;e++)t.next(g[e]);t.complete()}
2));if((0,o.t)(t))return v=t,new a.y((function(t){v.then((function(e){t.closed||(t.next(e),t.complete())}),(function(e){return t.error(e)})).then(null,d.h)}));if((0,u.D)(t))return m(t);if((0,l.T)(t))return r=t,new a.y((function(t){var e,i;try{for(var o=(0,n.XA)(r),a=o.next();!a.done;a=o.next()){var s=a.value;if(t.next(s),t.closed)return}}catch(u){e={error:u}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(e)throw e.error}}t.complete()}));if((0,f.L)(t))return e=t,m((0,f.Q)(e))}var e,r,v,g,y;throw(0,c.z)(t)}function m(t){return new a.y((function(e){(function(t,e){var r,i,o,a;return(0,n.mG)(this,void 0,void 0,(function(){var s,u;return(0,n.Jh)(this,(function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),r=(0,n.KL)(t),c.label=1;case 1:return[4,r.next()];case 2:if((i=c.sent()).done)return[3,4];if(s=i.value,e.next(s),e.closed)return[2];c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return u=c.sent(),o={error:u},[3,11];case 6:return c.trys.push([6,,9,10]),i&&!i.done&&(a=r.return)?[4,a.call(r)]:[3,8];case 7:c.sent(),c.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];case 10:return[7];case 11:return e.complete(),[2]}}))}))})(t,e).catch((function(t){return e.error(t)}))}))}},87038:function(t,e,r){"use strict";r.d(e,{x:function(){return i}});var n=r(95330);function i(t,e,r,n,i){return new o(t,e,r,n,i)}var o=function(t){function e(e,r,n,i,o,a){var s=t.call(this,e)||this;return s.onFinalize=o,s.shouldUnsubscribe=a,s._next=r?function(t){try{r(t)}catch(n){e.error(n)}}:t.prototype._next,s._error=i?function(t){try{i(t)}catch(t){e.error(t)}finally{this.unsubscribe()}}:t.prototype._error,s._complete=n?function(){try{n()}catch(t){e.error(t)}finally{this.unsubscribe()}}:t.prototype._complete,s}return(0,n.ZT)(e,t),e.prototype.unsubscribe=function(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;t.prototype.unsubscribe.call(this),!r&&(null===(e=this.onFinalize)||void 0===e||e.call(this))}},e}(r(26460).Lv)},50250:function(t,e,r){"use strict";r.d(e,{x:function(){return a}});var n=r(36531),i=r(64960),o=r(87038);function a(t,e){return void 0===e&&(e=n.y),t=null!==t&&void 0!==t?t:s,(0,i.e)((function(r,n){var i,a=!0;r.subscribe((0,o.x)(n,(function(r){var o=e(r);!a&&t(i,o)||(a=!1,i=o,n.next(r))})))}))}function s(t,e){return t===e}},93561:function(t,e,r){"use strict";r.d(e,{h:function(){return o}});var n=r(64960),i=r(87038);function o(t,e){return(0,n.e)((function(r,n){var o=0;r.subscribe((0,i.x)(n,(function(r){return t.call(e,r,o++)&&n.next(r)})))}))}},6178:function(t,e,r){"use strict";r.d(e,{U:function(){return o}});var n=r(64960),i=r(87038);function o(t,e){return(0,n.e)((function(r,n){var o=0;r.subscribe((0,i.x)(n,(function(r){n.next(t.call(e,r,o++))})))}))}},84489:function(t,e,r){"use strict";r.d(e,{J:function(){return o}});var n=r(73253),i=r(36531);function o(t){return void 0===t&&(t=1/0),(0,n.z)(i.y,t)}},73253:function(t,e,r){"use strict";r.d(e,{z:function(){return c}});var n=r(6178),i=r(91974),o=r(64960),a=r(11851),s=r(87038);var u=r(93766);function c(t,e,r){return void 0===r&&(r=1/0),(0,u.m)(e)?c((function(r,o){return(0,n.U)((function(t,n){return e(r,t,o,n)}))((0,i.Xf)(t(r,o)))}),r):("number"===typeof e&&(r=e),(0,o.e)((function(e,n){return function(t,e,r,n,o,u,c,l){var f=[],h=0,d=0,p=!1,v=function(){!p||f.length||h||e.complete()},m=function(t){return h<n?g(t):f.push(t)},g=function t(l){u&&e.next(l),h++;var p=!1;(0,i.Xf)(r(l,d++)).subscribe((0,s.x)(e,(function(t){null===o||void 0===o||o(t),u?m(t):e.next(t)}),(function(){p=!0}),void 0,(function(){if(p)try{h--;for(var r=function(){var r=f.shift();c?(0,a.f)(e,c,(function(){return t(r)})):t(r)};f.length&&h<n;)r();v()}catch(i){e.error(i)}})))};return t.subscribe((0,s.x)(e,m,(function(){p=!0,v()}))),function(){null===l||void 0===l||l()}}(e,n,t,r)})))}},80345:function(t,e,r){"use strict";r.d(e,{B:function(){return u}});var n=r(95330),i=r(91974),o=r(99687),a=r(26460),s=r(64960);function u(t){void 0===t&&(t={});var e=t.connector,r=void 0===e?function(){return new o.x}:e,n=t.resetOnError,u=void 0===n||n,l=t.resetOnComplete,f=void 0===l||l,h=t.resetOnRefCountZero,d=void 0===h||h;return function(t){var e,n,o,l=0,h=!1,p=!1,v=function(){null===n||void 0===n||n.unsubscribe(),n=void 0},m=function(){v(),e=o=void 0,h=p=!1},g=function(){var t=e;m(),null===t||void 0===t||t.unsubscribe()};return(0,s.e)((function(t,s){l++,p||h||v();var y=o=null!==o&&void 0!==o?o:r();s.add((function(){0!==--l||p||h||(n=c(g,d))})),y.subscribe(s),!e&&l>0&&(e=new a.Hp({next:function(t){return y.next(t)},error:function(t){p=!0,v(),n=c(m,u,t),y.error(t)},complete:function(){h=!0,v(),n=c(m,f),y.complete()}}),(0,i.Xf)(t).subscribe(e))}))(t)}}function c(t,e){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];if(!0!==e){if(!1!==e){var s=new a.Hp({next:function(){s.unsubscribe(),t()}});return(0,i.Xf)(e.apply(void 0,(0,n.ev)([],(0,n.CR)(r)))).subscribe(s)}}else t()}},56215:function(t,e,r){"use strict";r.d(e,{d:function(){return u}});var n=r(95330),i=r(99687),o=r(67545),a=function(t){function e(e,r,n){void 0===e&&(e=1/0),void 0===r&&(r=1/0),void 0===n&&(n=o.l);var i=t.call(this)||this;return i._bufferSize=e,i._windowTime=r,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=r===1/0,i._bufferSize=Math.max(1,e),i._windowTime=Math.max(1,r),i}return(0,n.ZT)(e,t),e.prototype.next=function(e){var r=this,n=r.isStopped,i=r._buffer,o=r._infiniteTimeWindow,a=r._timestampProvider,s=r._windowTime;n||(i.push(e),!o&&i.push(a.now()+s)),this._trimBuffer(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var e=this._innerSubscribe(t),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i<n.length&&!t.closed;i+=r?1:2)t.next(n[i]);return this._checkFinalizedStatuses(t),e},e.prototype._trimBuffer=function(){var t=this,e=t._bufferSize,r=t._timestampProvider,n=t._buffer,i=t._infiniteTimeWindow,o=(i?1:2)*e;if(e<1/0&&o<n.length&&n.splice(0,n.length-o),!i){for(var a=r.now(),s=0,u=1;u<n.length&&n[u]<=a;u+=2)s=u;s&&n.splice(0,s+1)}},e}(i.x),s=r(80345);function u(t,e,r){var n,i,o,u,c=!1;return t&&"object"===typeof t?(n=t.bufferSize,u=void 0===n?1/0:n,i=t.windowTime,e=void 0===i?1/0:i,c=void 0!==(o=t.refCount)&&o,r=t.scheduler):u=null!==t&&void 0!==t?t:1/0,(0,s.B)({connector:function(){return new a(u,e,r)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:c})}},51486:function(t,e,r){"use strict";r.d(e,{O:function(){return u}});var n=r(84489);var i=r(40049),o=r(15451);function a(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,n.J)(1)((0,o.D)(t,(0,i.yG)(t)))}var s=r(64960);function u(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=(0,i.yG)(t);return(0,s.e)((function(e,n){(r?a(t,e,r):a(t,e)).subscribe(n)}))}},67545:function(t,e,r){"use strict";r.d(e,{l:function(){return n}});var n={now:function(){return(n.delegate||Date).now()},delegate:void 0}},90122:function(t,e,r){"use strict";r.d(e,{z:function(){return i}});var n=r(95330),i={setTimeout:function(t){function e(e,r){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t,e){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var a=i.delegate;return(null===a||void 0===a?void 0:a.setTimeout)?a.setTimeout.apply(a,(0,n.ev)([t,e],(0,n.CR)(r))):setTimeout.apply(void 0,(0,n.ev)([t,e],(0,n.CR)(r)))})),clearTimeout:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t){var e=i.delegate;return((null===e||void 0===e?void 0:e.clearTimeout)||clearTimeout)(t)})),delegate:void 0}},21113:function(t,e,r){"use strict";r.d(e,{h:function(){return n}});var n="function"===typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},5398:function(t,e,r){"use strict";r.d(e,{L:function(){return n}});var n="function"===typeof Symbol&&Symbol.observable||"@@observable"},40049:function(t,e,r){"use strict";r.d(e,{_6:function(){return s},jO:function(){return o},yG:function(){return a}});var n=r(93766);function i(t){return t[t.length-1]}function o(t){return(0,n.m)(i(t))?t.pop():void 0}function a(t){return(e=i(t))&&(0,n.m)(e.schedule)?t.pop():void 0;var e}function s(t,e){return"number"===typeof i(t)?t.pop():e}},11496:function(t,e,r){"use strict";function n(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}r.d(e,{P:function(){return n}})},71982:function(t,e,r){"use strict";function n(t){var e=t((function(t){Error.call(t),t.stack=(new Error).stack}));return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}r.d(e,{d:function(){return n}})},88002:function(t,e,r){"use strict";r.d(e,{O:function(){return a},x:function(){return o}});var n=r(6068),i=null;function o(t){if(n.v.useDeprecatedSynchronousErrorHandling){var e=!i;if(e&&(i={errorThrown:!1,error:null}),t(),e){var r=i,o=r.errorThrown,a=r.error;if(i=null,o)throw a}}else t()}function a(t){n.v.useDeprecatedSynchronousErrorHandling&&i&&(i.errorThrown=!0,i.error=t)}},11851:function(t,e,r){"use strict";function n(t,e,r,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var o=e.schedule((function(){r(),i?t.add(this.schedule(null,n)):this.unsubscribe()}),n);if(t.add(o),!i)return o}r.d(e,{f:function(){return n}})},36531:function(t,e,r){"use strict";function n(t){return t}r.d(e,{y:function(){return n}})},3150:function(t,e,r){"use strict";r.d(e,{z:function(){return n}});var n=function(t){return t&&"number"===typeof t.length&&"function"!==typeof t}},92593:function(t,e,r){"use strict";r.d(e,{D:function(){return i}});var n=r(93766);function i(t){return Symbol.asyncIterator&&(0,n.m)(null===t||void 0===t?void 0:t[Symbol.asyncIterator])}},93766:function(t,e,r){"use strict";function n(t){return"function"===typeof t}r.d(e,{m:function(){return n}})},54598:function(t,e,r){"use strict";r.d(e,{c:function(){return o}});var n=r(5398),i=r(93766);function o(t){return(0,i.m)(t[n.L])}},44034:function(t,e,r){"use strict";r.d(e,{T:function(){return o}});var n=r(21113),i=r(93766);function o(t){return(0,i.m)(null===t||void 0===t?void 0:t[n.h])}},68868:function(t,e,r){"use strict";r.d(e,{t:function(){return i}});var n=r(93766);function i(t){return(0,n.m)(null===t||void 0===t?void 0:t.then)}},93870:function(t,e,r){"use strict";r.d(e,{L:function(){return a},Q:function(){return o}});var n=r(95330),i=r(93766);function o(t){return(0,n.FC)(this,arguments,(function(){var e,r,i;return(0,n.Jh)(this,(function(o){switch(o.label){case 0:e=t.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,(0,n.qq)(e.read())];case 3:return r=o.sent(),i=r.value,r.done?[4,(0,n.qq)(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,(0,n.qq)(i)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return e.releaseLock(),[7];case 10:return[2]}}
2))}))}function a(t){return(0,i.m)(null===t||void 0===t?void 0:t.getReader)}},64960:function(t,e,r){"use strict";r.d(e,{e:function(){return i}});var n=r(93766);function i(t){return function(e){if(function(t){return(0,n.m)(null===t||void 0===t?void 0:t.lift)}(e))return e.lift((function(e){try{return t(e,this)}catch(r){this.error(r)}}));throw new TypeError("Unable to lift unknown Observable type")}}},1673:function(t,e,r){"use strict";function n(){}r.d(e,{Z:function(){return n}})},89394:function(t,e,r){"use strict";r.d(e,{h:function(){return o}});var n=r(6068),i=r(90122);function o(t){i.z.setTimeout((function(){var e=n.v.onUnhandledError;if(!e)throw t;e(t)}))}},37471:function(t,e,r){"use strict";function n(t){return new TypeError("You provided "+(null!==t&&"object"===typeof t?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}r.d(e,{z:function(){return n}})},27723:function(t,e,r){var n=r(5139);t.exports=function(t){return"string"!==typeof t?t:n(t)?t.slice(2):t}},78147:function(t,e,r){"use strict";r.d(e,{_:function(){return Ae},m6:function(){return Kt},F5:function(){return he},S1:function(){return ie},SP:function(){return fe}});var n,i,o,a=r(1413),s=r(45987),u=r(93433),c=r(29439),l=r(57810),f=r(33406),h=r.n(f),d=r(95330);function p(t){return t.type===i.literal}function v(t){return t.type===i.argument}function m(t){return t.type===i.number}function g(t){return t.type===i.date}function y(t){return t.type===i.time}function b(t){return t.type===i.select}function w(t){return t.type===i.plural}function _(t){return t.type===i.pound}function x(t){return t.type===i.tag}function E(t){return!(!t||"object"!==typeof t||t.type!==o.number)}function A(t){return!(!t||"object"!==typeof t||t.type!==o.dateTime)}!function(t){t[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(n||(n={})),function(t){t[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag"}(i||(i={})),function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"}(o||(o={}));var M=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,k=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function S(t){var e={};return t.replace(k,(function(t){var r=t.length;switch(t[0]){case"G":e.era=4===r?"long":5===r?"narrow":"short";break;case"y":e.year=2===r?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":e.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":e.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":e.weekday=4===r?"short":5===r?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][r-4];break;case"a":e.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":e.hourCycle="h12",e.hour=["numeric","2-digit"][r-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][r-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][r-1];break;case"k":e.hourCycle="h24",e.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":e.minute=["numeric","2-digit"][r-1];break;case"s":e.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":e.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),e}var I=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var P=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,N=/^(@+)?(\+|#+)?[rs]?$/g,C=/(\*)(0+)|(#+)(0+)|(0+)/g,O=/^(0+)$/;function T(t){var e={};return"r"===t[t.length-1]?e.roundingPriority="morePrecision":"s"===t[t.length-1]&&(e.roundingPriority="lessPrecision"),t.replace(N,(function(t,r,n){return"string"!==typeof n?(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length):"+"===n?e.minimumSignificantDigits=r.length:"#"===r[0]?e.maximumSignificantDigits=r.length:(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length+("string"===typeof n?n.length:0)),""})),e}function R(t){switch(t){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function B(t){var e;if("E"===t[0]&&"E"===t[1]?(e={notation:"engineering"},t=t.slice(2)):"E"===t[0]&&(e={notation:"scientific"},t=t.slice(1)),e){var r=t.slice(0,2);if("+!"===r?(e.signDisplay="always",t=t.slice(2)):"+?"===r&&(e.signDisplay="exceptZero",t=t.slice(2)),!O.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}function L(t){var e=R(t);return e||{}}function Z(t){for(var e={},r=0,n=t;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=i.options[0];continue;case"group-off":case",_":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":case"unit":e.style="unit",e.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":e.notation="compact",e.compactDisplay="short";continue;case"compact-long":case"KK":e.notation="compact",e.compactDisplay="long";continue;
2case"scientific":e=(0,d.pi)((0,d.pi)((0,d.pi)({},e),{notation:"scientific"}),i.options.reduce((function(t,e){return(0,d.pi)((0,d.pi)({},t),L(e))}),{}));continue;case"engineering":e=(0,d.pi)((0,d.pi)((0,d.pi)({},e),{notation:"engineering"}),i.options.reduce((function(t,e){return(0,d.pi)((0,d.pi)({},t),L(e))}),{}));continue;case"notation-simple":e.notation="standard";continue;case"unit-width-narrow":e.currencyDisplay="narrowSymbol",e.unitDisplay="narrow";continue;case"unit-width-short":e.currencyDisplay="code",e.unitDisplay="short";continue;case"unit-width-full-name":e.currencyDisplay="name",e.unitDisplay="long";continue;case"unit-width-iso-code":e.currencyDisplay="symbol";continue;case"scale":e.scale=parseFloat(i.options[0]);continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(C,(function(t,r,n,i,o,a){if(r)e.minimumIntegerDigits=n.length;else{if(i&&o)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(O.test(i.stem))e.minimumIntegerDigits=i.stem.length;else if(P.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(P,(function(t,r,n,i,o,a){return"*"===n?e.minimumFractionDigits=r.length:i&&"#"===i[0]?e.maximumFractionDigits=i.length:o&&a?(e.minimumFractionDigits=o.length,e.maximumFractionDigits=o.length+a.length):(e.minimumFractionDigits=r.length,e.maximumFractionDigits=r.length),""}));var o=i.options[0];"w"===o?e=(0,d.pi)((0,d.pi)({},e),{trailingZeroDisplay:"stripIfInteger"}):o&&(e=(0,d.pi)((0,d.pi)({},e),T(o)))}else if(N.test(i.stem))e=(0,d.pi)((0,d.pi)({},e),T(i.stem));else{var a=R(i.stem);a&&(e=(0,d.pi)((0,d.pi)({},e),a));var s=B(i.stem);s&&(e=(0,d.pi)((0,d.pi)({},e),s))}}return e}var j,F={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};function U(t){var e=t.hourCycle;if(void 0===e&&t.hourCycles&&t.hourCycles.length&&(e=t.hourCycles[0]),e)switch(e){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r,n=t.language;return"root"!==n&&(r=t.maximize().region),(F[r||""]||F[n||""]||F["".concat(n,"-001")]||F["001"])[0]}var D=new RegExp("^".concat(M.source,"*")),H=new RegExp("".concat(M.source,"*$"));function z(t,e){return{start:t,end:e}}var $=!!String.prototype.startsWith,q=!!String.fromCodePoint,G=!!Object.fromEntries,W=!!String.prototype.codePointAt,V=!!String.prototype.trimStart,K=!!String.prototype.trimEnd,Y=!!Number.isSafeInteger?Number.isSafeInteger:function(t){return"number"===typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},X=!0;try{X="a"===(null===(j=ot("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===j?void 0:j[0])}catch(Me){X=!1}var J,Q=$?function(t,e,r){return t.startsWith(e,r)}:function(t,e,r){return t.slice(r,r+e.length)===e},tt=q?String.fromCodePoint:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r,n="",i=t.length,o=0;i>o;){if((r=t[o++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},et=G?Object.fromEntries:function(t){for(var e={},r=0,n=t;r<n.length;r++){var i=n[r],o=i[0],a=i[1];e[o]=a}return e},rt=W?function(t,e){return t.codePointAt(e)}:function(t,e){var r=t.length;if(!(e<0||e>=r)){var n,i=t.charCodeAt(e);return i<55296||i>56319||e+1===r||(n=t.charCodeAt(e+1))<56320||n>57343?i:n-56320+(i-55296<<10)+65536}},nt=V?function(t){return t.trimStart()}:function(t){return t.replace(D,"")},it=K?function(t){return t.trimEnd()}:function(t){return t.replace(H,"")};function ot(t,e){return new RegExp(t,e)}if(X){var at=ot("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");J=function(t,e){var r;return at.lastIndex=e,null!==(r=at.exec(t)[1])&&void 0!==r?r:""}}else J=function(t,e){for(var r=[];;){var n=rt(t,e);if(void 0===n||lt(n)||ft(n))break;r.push(n),e+=n>=65536?2:1}return tt.apply(void 0,r)};var st=function(){function t(t,e){void 0===e&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.locale=e.locale,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}return t.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(t,e,r){for(var o=[];!this.isEOF();){var a=this.char();if(123===a){if((s=this.parseArgument(t,r)).err)return s;o.push(s.val)}else{if(125===a&&t>0)break;if(35!==a||"plural"!==e&&"selectordinal"!==e){if(60===a&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(n.UNMATCHED_CLOSING_TAG,z(this.clonePosition(),this.clonePosition()))}if(60===a&&!this.ignoreTag&&ut(this.peek()||0)){if((s=this.parseTag(t,e)).err)return s;o.push(s.val)}else{var s;if((s=this.parseLiteral(t,e)).err)return s;o.push(s.val)}}else{var u=this.clonePosition();this.bump(),o.push({type:i.pound,location:z(u,this.clonePosition())})}}}return{val:o,err:null}},t.prototype.parseTag=function(t,e){var r=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:i.literal,value:"<".concat(o,"/>"),location:z(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var a=this.parseMessage(t+1,e,!0);if(a.err)return a;var s=a.val,u=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!ut(this.char()))return this.error(n.INVALID_TAG,z(u,this.clonePosition()));var c=this.clonePosition();return o!==this.parseTagName()?this.error(n.UNMATCHED_CLOSING_TAG,z(c,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:i.tag,value:o,children:s,location:z(r,this.clonePosition())},err:null}:this.error(n.INVALID_TAG,z(u,this.clonePosition())))}return this.error(n.UNCLOSED_TAG,z(r,this.clonePosition()))}return this.error(n.INVALID_TAG,z(r,this.clonePosition()))},t.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&ct(this.char());)this.bump();return this.message.slice(t,this.offset())},t.prototype.parseLiteral=function(t,e){for(var r=this.clonePosition(),n="";;){var o=this.tryParseQuote(e);if(o)n+=o;else{var a=this.tryParseUnquoted(t,e);if(a)n+=a;else{var s=this.tryParseLeftAngleBracket();if(!s)break;n+=s}}}var u=z(r,this.clonePosition());return{val:{type:i.literal,value:n,location:u},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(ut(t=this.peek()||0)||47===t)?null:(this.bump(),"<");var t},t.prototype.tryParseQuote=function(t){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";
2case 123:case 60:case 62:case 125:break;case 35:if("plural"===t||"selectordinal"===t)break;return null;default:return null}this.bump();var e=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}e.push(39),this.bump()}else e.push(r);this.bump()}return tt.apply(void 0,e)},t.prototype.tryParseUnquoted=function(t,e){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===e||"selectordinal"===e)||125===r&&t>0?null:(this.bump(),tt(r))},t.prototype.parseArgument=function(t,e){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(n.EXPECT_ARGUMENT_CLOSING_BRACE,z(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(n.EMPTY_ARGUMENT,z(r,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(n.MALFORMED_ARGUMENT,z(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(n.EXPECT_ARGUMENT_CLOSING_BRACE,z(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:i.argument,value:o,location:z(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(n.EXPECT_ARGUMENT_CLOSING_BRACE,z(r,this.clonePosition())):this.parseArgumentOptions(t,e,o,r);default:return this.error(n.MALFORMED_ARGUMENT,z(r,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),r=J(this.message,e),n=e+r.length;return this.bumpTo(n),{value:r,location:z(t,this.clonePosition())}},t.prototype.parseArgumentOptions=function(t,e,r,a){var s,u=this.clonePosition(),c=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(c){case"":return this.error(n.EXPECT_ARGUMENT_TYPE,z(u,l));case"number":case"date":case"time":this.bumpSpace();var f=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition();if((_=this.parseSimpleArgStyleIfPossible()).err)return _;if(0===(g=it(_.val)).length)return this.error(n.EXPECT_ARGUMENT_STYLE,z(this.clonePosition(),this.clonePosition()));f={style:g,styleLocation:z(h,this.clonePosition())}}if((x=this.tryParseArgumentClose(a)).err)return x;var p=z(a,this.clonePosition());if(f&&Q(null===f||void 0===f?void 0:f.style,"::",0)){var v=nt(f.style.slice(2));if("number"===c)return(_=this.parseNumberSkeletonFromString(v,f.styleLocation)).err?_:{val:{type:i.number,value:r,location:p,style:_.val},err:null};if(0===v.length)return this.error(n.EXPECT_DATE_TIME_SKELETON,p);var m=v;this.locale&&(m=function(t,e){for(var r="",n=0;n<t.length;n++){var i=t.charAt(n);if("j"===i){for(var o=0;n+1<t.length&&t.charAt(n+1)===i;)o++,n++;var a=1+(1&o),s=o<2?1:3+(o>>1),u=U(e);for("H"!=u&&"k"!=u||(s=0);s-- >0;)r+="a";for(;a-- >0;)r=u+r}else r+="J"===i?"H":i}return r}(v,this.locale));var g={type:o.dateTime,pattern:m,location:f.styleLocation,parsedOptions:this.shouldParseSkeletons?S(m):{}};return{val:{type:"date"===c?i.date:i.time,value:r,location:p,style:g},err:null}}return{val:{type:"number"===c?i.number:"date"===c?i.date:i.time,value:r,location:p,style:null!==(s=null===f||void 0===f?void 0:f.style)&&void 0!==s?s:null},err:null};case"plural":case"selectordinal":case"select":var y=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(n.EXPECT_SELECT_ARGUMENT_OPTIONS,z(y,(0,d.pi)({},y)));this.bumpSpace();var b=this.parseIdentifierIfPossible(),w=0;if("select"!==c&&"offset"===b.value){if(!this.bumpIf(":"))return this.error(n.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,z(this.clonePosition(),this.clonePosition()));var _;if(this.bumpSpace(),(_=this.tryParseDecimalInteger(n.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,n.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return _;this.bumpSpace(),b=this.parseIdentifierIfPossible(),w=_.val}var x,E=this.tryParsePluralOrSelectOptions(t,c,e,b);if(E.err)return E;if((x=this.tryParseArgumentClose(a)).err)return x;var A=z(a,this.clonePosition());return"select"===c?{val:{type:i.select,value:r,options:et(E.val),location:A},err:null}:{val:{type:i.plural,value:r,options:et(E.val),offset:w,pluralType:"plural"===c?"cardinal":"ordinal",location:A},err:null};default:return this.error(n.INVALID_ARGUMENT_TYPE,z(u,l))}},t.prototype.tryParseArgumentClose=function(t){return this.isEOF()||125!==this.char()?this.error(n.EXPECT_ARGUMENT_CLOSING_BRACE,z(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,e=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(n.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,z(r,this.clonePosition()));this.bump();break;case 123:t+=1,this.bump();break;case 125:if(!(t>0))return{val:this.message.slice(e.offset,this.offset()),err:null};t-=1;break;default:this.bump()}}return{val:this.message.slice(e.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(t,e){var r=[];try{r=function(t){if(0===t.length)throw new Error("Number skeleton cannot be empty");for(var e=t.split(I).filter((function(t){return t.length>0})),r=[],n=0,i=e;n<i.length;n++){var o=i[n].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var a=o[0],s=o.slice(1),u=0,c=s;u<c.length;u++)if(0===c[u].length)throw new Error("Invalid number skeleton");r.push({stem:a,options:s})}return r}(t)}
2catch(i){return this.error(n.INVALID_NUMBER_SKELETON,e)}return{val:{type:o.number,tokens:r,location:e,parsedOptions:this.shouldParseSkeletons?Z(r):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(t,e,r,i){for(var o,a=!1,s=[],u=new Set,c=i.value,l=i.location;;){if(0===c.length){var f=this.clonePosition();if("select"===e||!this.bumpIf("="))break;var h=this.tryParseDecimalInteger(n.EXPECT_PLURAL_ARGUMENT_SELECTOR,n.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;l=z(f,this.clonePosition()),c=this.message.slice(f.offset,this.offset())}if(u.has(c))return this.error("select"===e?n.DUPLICATE_SELECT_ARGUMENT_SELECTOR:n.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===c&&(a=!0),this.bumpSpace();var d=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?n.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:n.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,z(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(t+1,e,r);if(p.err)return p;var v=this.tryParseArgumentClose(d);if(v.err)return v;s.push([c,{value:p.val,location:z(d,this.clonePosition())}]),u.add(c),this.bumpSpace(),c=(o=this.parseIdentifierIfPossible()).value,l=o.location}return 0===s.length?this.error("select"===e?n.EXPECT_SELECT_ARGUMENT_SELECTOR:n.EXPECT_PLURAL_ARGUMENT_SELECTOR,z(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(n.MISSING_OTHER_CLAUSE,z(this.clonePosition(),this.clonePosition())):{val:s,err:null}},t.prototype.tryParseDecimalInteger=function(t,e){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var a=this.char();if(!(a>=48&&a<=57))break;i=!0,o=10*o+(a-48),this.bump()}var s=z(n,this.clonePosition());return i?Y(o*=r)?{val:o,err:null}:this.error(e,s):this.error(t,s)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},t.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=rt(this.message,t);if(void 0===e)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return e},t.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},t.prototype.bump=function(){if(!this.isEOF()){var t=this.char();10===t?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},t.prototype.bumpIf=function(t){if(Q(this.message,t,this.offset())){for(var e=0;e<t.length;e++)this.bump();return!0}return!1},t.prototype.bumpUntil=function(t){var e=this.offset(),r=this.message.indexOf(t,e);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},t.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var e=this.offset();if(e===t)break;if(e>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&lt(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset(),r=this.message.charCodeAt(e+(t>=65536?2:1));return null!==r&&void 0!==r?r:null},t}();function ut(t){return t>=97&&t<=122||t>=65&&t<=90}function ct(t){return 45===t||46===t||t>=48&&t<=57||95===t||t>=97&&t<=122||t>=65&&t<=90||183==t||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039}function lt(t){return t>=9&&t<=13||32===t||133===t||t>=8206&&t<=8207||8232===t||8233===t}function ft(t){return t>=33&&t<=35||36===t||t>=37&&t<=39||40===t||41===t||42===t||43===t||44===t||45===t||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||91===t||92===t||93===t||94===t||96===t||123===t||124===t||125===t||126===t||161===t||t>=162&&t<=165||166===t||167===t||169===t||171===t||172===t||174===t||176===t||177===t||182===t||187===t||191===t||215===t||247===t||t>=8208&&t<=8213||t>=8214&&t<=8215||8216===t||8217===t||8218===t||t>=8219&&t<=8220||8221===t||8222===t||8223===t||t>=8224&&t<=8231||t>=8240&&t<=8248||8249===t||8250===t||t>=8251&&t<=8254||t>=8257&&t<=8259||8260===t||8261===t||8262===t||t>=8263&&t<=8273||8274===t||8275===t||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||8608===t||t>=8609&&t<=8610||8611===t||t>=8612&&t<=8613||8614===t||t>=8615&&t<=8621||8622===t||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||8658===t||8659===t||8660===t||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||8968===t||8969===t||8970===t||8971===t||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||9001===t||9002===t||t>=9003&&t<=9083||9084===t||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||9655===t||t>
2=9656&&t<=9664||9665===t||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||9839===t||t>=9840&&t<=10087||10088===t||10089===t||10090===t||10091===t||10092===t||10093===t||10094===t||10095===t||10096===t||10097===t||10098===t||10099===t||10100===t||10101===t||t>=10132&&t<=10175||t>=10176&&t<=10180||10181===t||10182===t||t>=10183&&t<=10213||10214===t||10215===t||10216===t||10217===t||10218===t||10219===t||10220===t||10221===t||10222===t||10223===t||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||10627===t||10628===t||10629===t||10630===t||10631===t||10632===t||10633===t||10634===t||10635===t||10636===t||10637===t||10638===t||10639===t||10640===t||10641===t||10642===t||10643===t||10644===t||10645===t||10646===t||10647===t||10648===t||t>=10649&&t<=10711||10712===t||10713===t||10714===t||10715===t||t>=10716&&t<=10747||10748===t||10749===t||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||11158===t||t>=11159&&t<=11263||t>=11776&&t<=11777||11778===t||11779===t||11780===t||11781===t||t>=11782&&t<=11784||11785===t||11786===t||11787===t||11788===t||11789===t||t>=11790&&t<=11798||11799===t||t>=11800&&t<=11801||11802===t||11803===t||11804===t||11805===t||t>=11806&&t<=11807||11808===t||11809===t||11810===t||11811===t||11812===t||11813===t||11814===t||11815===t||11816===t||11817===t||t>=11818&&t<=11822||11823===t||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||11840===t||11841===t||11842===t||t>=11843&&t<=11855||t>=11856&&t<=11857||11858===t||t>=11859&&t<=11903||t>=12289&&t<=12291||12296===t||12297===t||12298===t||12299===t||12300===t||12301===t||12302===t||12303===t||12304===t||12305===t||t>=12306&&t<=12307||12308===t||12309===t||12310===t||12311===t||12312===t||12313===t||12314===t||12315===t||12316===t||12317===t||t>=12318&&t<=12319||12320===t||12336===t||64830===t||64831===t||t>=65093&&t<=65094}function ht(t){t.forEach((function(t){if(delete t.location,b(t)||w(t))for(var e in t.options)delete t.options[e].location,ht(t.options[e].value);else m(t)&&E(t.style)||(g(t)||y(t))&&A(t.style)?delete t.style.location:x(t)&&ht(t.children)}))}function dt(t,e){void 0===e&&(e={}),e=(0,d.pi)({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var r=new st(t,e).parse();if(r.err){var i=SyntaxError(n[r.err.kind]);throw i.location=r.err.location,i.originalMessage=r.err.message,i}return(null===e||void 0===e?void 0:e.captureLocation)||ht(r.val),r.val}function pt(t,e){var r=e&&e.cache?e.cache:xt,n=e&&e.serializer?e.serializer:bt;return(e&&e.strategy?e.strategy:yt)(t,{cache:r,serializer:n})}function vt(t,e,r,n){var i,o=null==(i=n)||"number"===typeof i||"boolean"===typeof i?n:r(n),a=e.get(o);return"undefined"===typeof a&&(a=t.call(this,n),e.set(o,a)),a}function mt(t,e,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=e.get(i);return"undefined"===typeof o&&(o=t.apply(this,n),e.set(i,o)),o}function gt(t,e,r,n,i){return r.bind(e,t,n,i)}function yt(t,e){return gt(t,this,1===t.length?vt:mt,e.cache.create(),e.serializer)}var bt=function(){return JSON.stringify(arguments)};function wt(){this.cache=Object.create(null)}wt.prototype.get=function(t){return this.cache[t]},wt.prototype.set=function(t,e){this.cache[t]=e};var _t,xt={create:function(){return new wt}},Et={variadic:function(t,e){return gt(t,this,mt,e.cache.create(),e.serializer)},monadic:function(t,e){return gt(t,this,vt,e.cache.create(),e.serializer)}};!function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"}(_t||(_t={}));var At,Mt=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.code=r,i.originalMessage=n,i}return(0,d.ZT)(e,t),e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),kt=function(t){function e(e,r,n,i){return t.call(this,'Invalid values for "'.concat(e,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),_t.INVALID_VALUE,i)||this}return(0,d.ZT)(e,t),e}(Mt),St=function(t){function e(e,r,n){return t.call(this,'Value for "'.concat(e,'" must be of type ').concat(r),_t.INVALID_VALUE,n)||this}return(0,d.ZT)(e,t),e}(Mt),It=function(t){function e(e,r){return t.call(this,'The intl str
2ing context variable "'.concat(e,'" was not provided to the string "').concat(r,'"'),_t.MISSING_VALUE,r)||this}return(0,d.ZT)(e,t),e}(Mt);function Pt(t){return"function"===typeof t}function Nt(t,e,r,n,i,o,a){if(1===t.length&&p(t[0]))return[{type:At.literal,value:t[0].value}];for(var s=[],u=0,c=t;u<c.length;u++){var l=c[u];if(p(l))s.push({type:At.literal,value:l.value});else if(_(l))"number"===typeof o&&s.push({type:At.literal,value:r.getNumberFormat(e).format(o)});else{var f=l.value;if(!i||!(f in i))throw new It(f,a);var h=i[f];if(v(l))h&&"string"!==typeof h&&"number"!==typeof h||(h="string"===typeof h||"number"===typeof h?String(h):""),s.push({type:"string"===typeof h?At.literal:At.object,value:h});else if(g(l)){var d="string"===typeof l.style?n.date[l.style]:A(l.style)?l.style.parsedOptions:void 0;s.push({type:At.literal,value:r.getDateTimeFormat(e,d).format(h)})}else if(y(l)){d="string"===typeof l.style?n.time[l.style]:A(l.style)?l.style.parsedOptions:n.time.medium;s.push({type:At.literal,value:r.getDateTimeFormat(e,d).format(h)})}else if(m(l)){(d="string"===typeof l.style?n.number[l.style]:E(l.style)?l.style.parsedOptions:void 0)&&d.scale&&(h*=d.scale||1),s.push({type:At.literal,value:r.getNumberFormat(e,d).format(h)})}else{if(x(l)){var M=l.children,k=l.value,S=i[k];if(!Pt(S))throw new St(k,"function",a);var I=S(Nt(M,e,r,n,i,o).map((function(t){return t.value})));Array.isArray(I)||(I=[I]),s.push.apply(s,I.map((function(t){return{type:"string"===typeof t?At.literal:At.object,value:t}})))}if(b(l)){if(!(P=l.options[h]||l.options.other))throw new kt(l.value,h,Object.keys(l.options),a);s.push.apply(s,Nt(P.value,e,r,n,i))}else if(w(l)){var P;if(!(P=l.options["=".concat(h)])){if(!Intl.PluralRules)throw new Mt('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',_t.MISSING_INTL_API,a);var N=r.getPluralRules(e,{type:l.pluralType}).select(h-(l.offset||0));P=l.options[N]||l.options.other}if(!P)throw new kt(l.value,h,Object.keys(l.options),a);s.push.apply(s,Nt(P.value,e,r,n,i,h-(l.offset||0)))}else;}}}return function(t){return t.length<2?t:t.reduce((function(t,e){var r=t[t.length-1];return r&&r.type===At.literal&&e.type===At.literal?r.value+=e.value:t.push(e),t}),[])}(s)}function Ct(t,e){return e?Object.keys(t).reduce((function(r,n){var i,o;return r[n]=(i=t[n],(o=e[n])?(0,d.pi)((0,d.pi)((0,d.pi)({},i||{}),o||{}),Object.keys(i).reduce((function(t,e){return t[e]=(0,d.pi)((0,d.pi)({},i[e]),o[e]||{}),t}),{})):i),r}),(0,d.pi)({},t)):t}function Ot(t){return{create:function(){return{get:function(e){return t[e]},set:function(e,r){t[e]=r}}}}}!function(t){t[t.literal=0]="literal",t[t.object=1]="object"}(At||(At={}));var Tt,Rt=function(){function t(e,r,n,i){var o,a=this;if(void 0===r&&(r=t.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){var e=a.formatToParts(t);if(1===e.length)return e[0].value;var r=e.reduce((function(t,e){return t.length&&e.type===At.literal&&"string"===typeof t[t.length-1]?t[t.length-1]+=e.value:t.push(e.value),t}),[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(t){return Nt(a.ast,a.locales,a.formatters,a.formats,t,void 0,a.message)},this.resolvedOptions=function(){return{locale:a.resolvedLocale.toString()}},this.getAst=function(){return a.ast},this.locales=r,this.resolvedLocale=t.resolveLocale(r),"string"===typeof e){if(this.message=e,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=t.__parse(e,{ignoreTag:null===i||void 0===i?void 0:i.ignoreTag,locale:this.resolvedLocale})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Ct(t.formats,n),this.formatters=i&&i.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:pt((function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,(0,d.ev)([void 0],e,!1)))}),{cache:Ot(o.number),strategy:Et.variadic}),getDateTimeFormat:pt((function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,(0,d.ev)([void 0],e,!1)))}),{cache:Ot(o.dateTime),strategy:Et.variadic}),getPluralRules:pt((function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,(0,d.ev)([void 0],e,!1)))}),{cache:Ot(o.pluralRules),strategy:Et.variadic})})}return Object.defineProperty(t,"defaultLocale",{get:function(){return t.memoizedDefaultLocale||(t.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),t.memoizedDefaultLocale}
2,enumerable:!1,configurable:!0}),t.memoizedDefaultLocale=null,t.resolveLocale=function(t){var e=Intl.NumberFormat.supportedLocalesOf(t);return e.length>0?new Intl.Locale(e[0]):new Intl.Locale("string"===typeof t?t:t[0])},t.__parse=dt,t.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},t}(),Bt=Rt,Lt=["formats"],Zt=["locale","format"],jt=["locale","format"],Ft=["locale","format"],Ut=["locale"],Dt=["locale"],Ht=["locale"],zt={},$t=function(t,e,r){return r?(e in zt||(zt[e]={}),t in zt[e]||(zt[e][t]=r),r):r},qt=function(t,e){if(null!=e){if(e in zt&&t in zt[e])return zt[e][t];for(var r=ce(e),n=0;n<r.length;n++){var i=Vt(r[n],t);if(i)return $t(t,e,i)}}},Gt=(0,l.fZ)({});function Wt(t){return t in Tt}function Vt(t,e){if(!Wt(t))return null;var r=function(t){return Tt[t]||null}(t);return function(t,e){if(null!=e){if(e in t)return t[e];for(var r=e.split("."),n=t,i=0;i<r.length;i++)if("object"==typeof n){if(i>0){var o=r.slice(i,r.length).join(".");if(o in n){n=n[o];break}}n=n[r[i]]}else n=void 0;return n}}(r,e)}function Kt(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];delete zt[t],Gt.update((function(e){return e[t]=h().all([e[t]||{}].concat(r)),e}))}(0,l.nK)([Gt],(function(t){var e=(0,c.Z)(t,1)[0];return Object.keys(e)}));Gt.subscribe((function(t){return Tt=t}));var Yt={};function Xt(t){return Yt[t]}function Jt(t){return null!=t&&ce(t).some((function(t){var e;return null===(e=Xt(t))||void 0===e?void 0:e.size}))}var Qt={};function te(t){if(!Jt(t))return t in Qt?Qt[t]:Promise.resolve();var e=function(t){return ce(t).map((function(t){var e=Xt(t);return[t,e?(0,u.Z)(e):[]]})).filter((function(t){return(0,c.Z)(t,2)[1].length>0}))}(t);return Qt[t]=Promise.all(e.map((function(t){var e=(0,c.Z)(t,2);return function(t,e){var r=Promise.all(e.map((function(e){return function(t,e){Yt[t].delete(e),0===Yt[t].size&&delete Yt[t]}(t,e),e().then((function(t){return t.default||t}))})));return r.then((function(e){return Kt.apply(void 0,[t].concat((0,u.Z)(e)))}))}(e[0],e[1])}))).then((function(){if(Jt(t))return te(t);delete Qt[t]})),Qt[t]}function ee(t){var e=t.locale,r=t.id;console.warn('[svelte-i18n] The message "'.concat(r,'" was not found in "').concat(ce(e).join('", "'),'".').concat(Jt(le())?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""))}var re={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function ne(){return re}function ie(t){var e=t.formats,r=(0,s.Z)(t,Lt),n=t.initialLocale||t.fallbackLocale;return r.warnOnMissingMessages&&(delete r.warnOnMissingMessages,null==r.handleMissingMessage?r.handleMissingMessage=ee:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(re,r,{initialLocale:n}),e&&("number"in e&&Object.assign(re.formats.number,e.number),"date"in e&&Object.assign(re.formats.date,e.date),"time"in e&&Object.assign(re.formats.time,e.time)),fe.set(n)}var oe,ae=(0,l.fZ)(!1),se=(0,l.fZ)(null);function ue(t){return t.split("-").map((function(t,e,r){return r.slice(0,e+1).join("-")})).reverse()}function ce(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ne().fallbackLocale,r=ue(t);return e?(0,u.Z)(new Set([].concat((0,u.Z)(r),(0,u.Z)(ue(e))))):r}function le(){return null!=oe?oe:void 0}se.subscribe((function(t){oe=null!=t?t:void 0,"undefined"!=typeof window&&null!=t&&document.documentElement.setAttribute("lang",t)}));var fe=(0,a.Z)((0,a.Z)({},se),{},{set:function(t){if(t&&function(t){if(null!=t)for(var e=ce(t),r=0;r<e.length;r++){var n=e[r];if(Wt(n))return n}}(t)&&Jt(t)){var e,r=ne().loadingDelay;return"undefined"!=typeof window&&null!=le()&&r?e=window.setTimeout((function(){return ae.set(!0)}),r):ae.set(!0),te(t).then((function(){se.set(t)})).finally((function(){clearTimeout(e),ae.set(!1)}))}return se.set(t)}}),he=function(){return"undefined"==typeof window?null:window.navigator.language||window.navigator.languages[0]},de=function(t){var e=Object.create(null);return function(r){var n=JSON.stringify(r);return n in e?e[n]:e[n]=t(r)}},pe=function(t,e){var r=ne().formats;if(t in r&&e in r[t])return r[t][e];throw new Error('[svelte-i18n] Unknown "'.concat(e,'" ').concat(t," format."))},ve=de((function(t){var e=t.locale,r=t.format,n=(0,s.Z)(t,Zt);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(n=pe("number",r)),new Intl.NumberFormat(e,n)})),me=de((function(t){var e=t.locale,r=t.format,n=(0,s.Z)(t,jt);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?n=pe("date",r):0===Object.keys(n).length&&(n=pe("date","short")),new Intl.DateTimeFormat(e,n)})),ge=de((function(t){var e=t.locale,r=t.format,n=(0,s.Z)(t,Ft);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?n=pe("time",r):0===Object.keys(n).length&&(n=pe("time","short")),new Intl.DateTimeFormat(e,n)})),ye=de((function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:le();return new Bt(t,e,ne().formats,{ignoreTag:ne().ignoreTag})})),be=function(t){var e,r,n,i,o,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"object"==typeof t&&(t=(a=t).id);var s=a,u=s.values,c=s.locale,l=void 0===c?le():c,f=s.default;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");var h=qt(t,l);if(h){if("string"!=typeof h)return console.warn('[svelte-i18n] Me
2ssage with id "'.concat(t,'" must be of type "string", found: "').concat(typeof h,'". Gettin its value through the "$format" method is deprecated; use the "json" method instead.')),h}else h=null!==(o=null!==(i=null===(n=(r=ne()).handleMissingMessage)||void 0===n?void 0:n.call(r,{locale:l,id:t,defaultValue:f}))&&void 0!==i?i:f)&&void 0!==o?o:t;if(!u)return h;var d=h;try{d=ye(h,l).format(u)}catch(e){e instanceof Error&&console.warn('[svelte-i18n] Message "'.concat(t,'" has syntax error:'),e.message)}return d},we=function(t,e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.locale,r=void 0===e?le():e,n=(0,s.Z)(t,Ht);return ge((0,a.Z)({locale:r},n))}(e).format(t)},_e=function(t,e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.locale,r=void 0===e?le():e,n=(0,s.Z)(t,Dt);return me((0,a.Z)({locale:r},n))}(e).format(t)},xe=function(t,e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.locale,r=void 0===e?le():e,n=(0,s.Z)(t,Ut);return ve((0,a.Z)({locale:r},n))}(e).format(t)},Ee=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:le();return qt(t,e)},Ae=(0,l.nK)([fe,Gt],(function(){return be}));(0,l.nK)([fe],(function(){return we})),(0,l.nK)([fe],(function(){return _e})),(0,l.nK)([fe],(function(){return xe})),(0,l.nK)([fe,Gt],(function(){return Ee}))},68774:function(t){"use strict";t.exports=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.mustBeTallyHo,r=void 0!==e&&e,n=t.silent,i=void 0!==n&&n,o=t.timeout,a=void 0===o?3e3:o;!function(){if("boolean"!==typeof r)throw new Error("@0xzoz/tallyho-detect-provider: Expected option 'mustBeTallyHo' to be a boolean.");if("boolean"!==typeof i)throw new Error("@0xzoz/tallyho-detect-provider: Expected option 'silent' to be a boolean.");if("number"!==typeof a)throw new Error("@0xzoz/tallyho-detect-provider: Expected option 'timeout' to be a number.")}();var s=!1;return new Promise((function(t){function e(){if(!s){s=!0,window.removeEventListener("ethereum#initialized",e);var n=window.ethereum;if(!n||r&&!n.isTally){var o=r&&n?"Non-TallyHo window.ethereum detected.":"Unable to detect window.ethereum.";!i&&console.error("@0xzoz/tallyho-detect-provider:",o),t(null)}else t(n)}}window.ethereum?e():(window.addEventListener("ethereum#initialized",e,{once:!0}),setTimeout((function(){e()}),a))}))}},21292:function(t,e,r){"use strict";r.r(e);e.default=function(t,e){}},13997:function(t){!function(e,r){"use strict";t.exports?t.exports=r():(e.nacl||(e.nacl={}),e.nacl.util=r())}(this,(function(){"use strict";var t={};function e(t){if(!/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.test(t))throw new TypeError("invalid encoding")}return t.decodeUTF8=function(t){if("string"!==typeof t)throw new TypeError("expected string");var e,r=unescape(encodeURIComponent(t)),n=new Uint8Array(r.length);for(e=0;e<r.length;e++)n[e]=r.charCodeAt(e);return n},t.encodeUTF8=function(t){var e,r=[];for(e=0;e<t.length;e++)r.push(String.fromCharCode(t[e]));return decodeURIComponent(escape(r.join("")))},"undefined"===typeof atob?"undefined"!==typeof Buffer.from?(t.encodeBase64=function(t){return Buffer.from(t).toString("base64")},t.decodeBase64=function(t){return e(t),new Uint8Array(Array.prototype.slice.call(Buffer.from(t,"base64"),0))}):(t.encodeBase64=function(t){return new Buffer(t).toString("base64")},t.decodeBase64=function(t){return e(t),new Uint8Array(Array.prototype.slice.call(new Buffer(t,"base64"),0))}):(t.encodeBase64=function(t){var e,r=[],n=t.length;for(e=0;e<n;e++)r.push(String.fromCharCode(t[e]));return btoa(r.join(""))},t.decodeBase64=function(t){e(t);var r,n=atob(t),i=new Uint8Array(n.length);for(r=0;r<n.length;r++)i[r]=n.charCodeAt(r);return i}),t}))},45603:function(t,e,r){"use strict";var n=r(91520);t.exports=function(t){return!!n(t)}},86181:function(t){t.exports=function(t){return t&&"object"===typeof t&&"function"===typeof t.copy&&"function"===typeof t.fill&&"function"===typeof t.readUInt8}},50902:function(t,e,r){"use strict";var n=r(95021),i=r(7469),o=r(91520),a=r(45603);function s(t){return t.call.bind(t)}var u="undefined"!==typeof BigInt,c="undefined"!==typeof Symbol,l=s(Object.prototype.toString),f=s(Number.prototype.valueOf),h=s(String.prototype.valueOf),d=s(Boolean.prototype.valueOf);if(u)var p=s(BigInt.prototype.valueOf);if(c)var v=s(Symbol.prototype.valueOf);function m(t,e){if("object"!==typeof t)return!1;try{return e(t),!0}catch(r){return!1}}function g(t){return"[object Map]"===l(t)}function y(t){return"[object Set]"===l(t)}function b(t){return"[object WeakMap]"===l(t)}function w(t){return"[object WeakSet]"===l(t)}function _(t){return"[object ArrayBuffer]"===l(t)}function x(t){return"undefined"!==typeof ArrayBuffer&&(_.working?_(t):t instanceof ArrayBuffer)}function E(t){return"[object DataView]"===l(t)}
2function A(t){return"undefined"!==typeof DataView&&(E.working?E(t):t instanceof DataView)}e.isArgumentsObject=n,e.isGeneratorFunction=i,e.isTypedArray=a,e.isPromise=function(t){return"undefined"!==typeof Promise&&t instanceof Promise||null!==t&&"object"===typeof t&&"function"===typeof t.then&&"function"===typeof t.catch},e.isArrayBufferView=function(t){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):a(t)||A(t)},e.isUint8Array=function(t){return"Uint8Array"===o(t)},e.isUint8ClampedArray=function(t){return"Uint8ClampedArray"===o(t)},e.isUint16Array=function(t){return"Uint16Array"===o(t)},e.isUint32Array=function(t){return"Uint32Array"===o(t)},e.isInt8Array=function(t){return"Int8Array"===o(t)},e.isInt16Array=function(t){return"Int16Array"===o(t)},e.isInt32Array=function(t){return"Int32Array"===o(t)},e.isFloat32Array=function(t){return"Float32Array"===o(t)},e.isFloat64Array=function(t){return"Float64Array"===o(t)},e.isBigInt64Array=function(t){return"BigInt64Array"===o(t)},e.isBigUint64Array=function(t){return"BigUint64Array"===o(t)},g.working="undefined"!==typeof Map&&g(new Map),e.isMap=function(t){return"undefined"!==typeof Map&&(g.working?g(t):t instanceof Map)},y.working="undefined"!==typeof Set&&y(new Set),e.isSet=function(t){return"undefined"!==typeof Set&&(y.working?y(t):t instanceof Set)},b.working="undefined"!==typeof WeakMap&&b(new WeakMap),e.isWeakMap=function(t){return"undefined"!==typeof WeakMap&&(b.working?b(t):t instanceof WeakMap)},w.working="undefined"!==typeof WeakSet&&w(new WeakSet),e.isWeakSet=function(t){return w(t)},_.working="undefined"!==typeof ArrayBuffer&&_(new ArrayBuffer),e.isArrayBuffer=x,E.working="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof DataView&&E(new DataView(new ArrayBuffer(1),0,1)),e.isDataView=A;var M="undefined"!==typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function k(t){return"[object SharedArrayBuffer]"===l(t)}function S(t){return"undefined"!==typeof M&&("undefined"===typeof k.working&&(k.working=k(new M)),k.working?k(t):t instanceof M)}function I(t){return m(t,f)}function P(t){return m(t,h)}function N(t){return m(t,d)}function C(t){return u&&m(t,p)}function O(t){return c&&m(t,v)}e.isSharedArrayBuffer=S,e.isAsyncFunction=function(t){return"[object AsyncFunction]"===l(t)},e.isMapIterator=function(t){return"[object Map Iterator]"===l(t)},e.isSetIterator=function(t){return"[object Set Iterator]"===l(t)},e.isGeneratorObject=function(t){return"[object Generator]"===l(t)},e.isWebAssemblyCompiledModule=function(t){return"[object WebAssembly.Module]"===l(t)},e.isNumberObject=I,e.isStringObject=P,e.isBooleanObject=N,e.isBigIntObject=C,e.isSymbolObject=O,e.isBoxedPrimitive=function(t){return I(t)||P(t)||N(t)||C(t)||O(t)},e.isAnyArrayBuffer=function(t){return"undefined"!==typeof Uint8Array&&(x(t)||S(t))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(t){Object.defineProperty(e,t,{enumerable:!1,value:function(){throw new Error(t+" is not supported in userland")}})}))},97736:function(t,e,r){var n=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++)r[e[n]]=Object.getOwnPropertyDescriptor(t,e[n]);return r},i=/%[sdj%]/g;e.format=function(t){if(!y(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(u(arguments[r]));return e.join(" ")}r=1;for(var n=arguments,o=n.length,a=String(t).replace(i,(function(t){if("%%"===t)return"%";if(r>=o)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return t}})),s=n[r];r<o;s=n[++r])m(s)||!_(s)?a+=" "+s:a+=" "+u(s);return a},e.deprecate=function(t,r){if("undefined"!==typeof process&&!0===process.noDeprecation)return t;if("undefined"===typeof process)return function(){return e.deprecate(t,r).apply(this,arguments)};var n=!1;return function(){if(!n){if(process.throwDeprecation)throw new Error(r);process.traceDeprecation?console.trace(r):console.error(r),n=!0}return t.apply(this,arguments)}};var o={},a=/^$/;if({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}
vendor: 4,677 bytes, line 2
2.NODE_DEBUG){var s={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.NODE_DEBUG;s=s.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),a=new RegExp("^"+s+"$","i")}function u(t,r){var n={seen:[],stylize:l};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),v(r)?n.showHidden=r:r&&e._extend(n,r),b(n.showHidden)&&(n.showHidden=!1),b(n.depth)&&(n.depth=2),b(n.colors)&&(n.colors=!1),b(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=c),f(n,t,n.depth)}function c(t,e){var r=u.styles[e];return r?"\x1b["+u.colors[r][0]+"m"+t+"\x1b["+u.colors[r][1]+"m":t}function l(t,e){return t}function f(t,r,n){if(t.customInspect&&r&&A(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,t);return y(i)||(i=f(t,i,n)),i}var o=function(t,e){if(b(e))return t.stylize("undefined","undefined");if(y(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}if(g(e))return t.stylize(""+e,"number");if(v(e))return t.stylize(""+e,"boolean");if(m(e))return t.stylize("null","null")}(t,r);if(o)return o;var a=Object.keys(r),s=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(r)),E(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return h(r);if(0===a.length){if(A(r)){var u=r.name?": "+r.name:"";return t.stylize("[Function"+u+"]","special")}if(w(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(x(r))return t.stylize(Date.prototype.toString.call(r),"date");if(E(r))return h(r)}var c,l="",_=!1,M=["{","}"];(p(r)&&(_=!0,M=["[","]"]),A(r))&&(l=" [Function"+(r.name?": "+r.name:"")+"]");return w(r)&&(l=" "+RegExp.prototype.toString.call(r)),x(r)&&(l=" "+Date.prototype.toUTCString.call(r)),E(r)&&(l=" "+h(r)),0!==a.length||_&&0!=r.length?n<0?w(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),c=_?function(t,e,r,n,i){for(var o=[],a=0,s=e.length;a<s;++a)I(e,String(a))?o.push(d(t,e,r,n,String(a),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(d(t,e,r,n,i,!0))})),o}(t,r,n,s,a):a.map((function(e){return d(t,r,n,s,e,_)})),t.seen.pop(),function(t,e,r){var n=t.reduce((function(t,e){return e.indexOf("\n")>=0&&0,t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0);if(n>60)return r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n  ")+" "+r[1];return r[0]+e+" "+t.join(", ")+" "+r[1]}(c,l,M)):M[0]+l+M[1]}function h(t){return"["+Error.prototype.toString.call(t)+"]"}function d(t,e,r,n,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?s=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(s=t.stylize("[Setter]","special")),I(n,i)||(a="["+i+"]"),s||(t.seen.indexOf(u.value)<0?(s=m(r)?f(t,u.value,null):f(t,u.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(t){return"  "+t})).join("\n").slice(2):"\n"+s.split("\n").map((function(t){return"   "+t})).join("\n")):s=t.stylize("[Circular]","special")),b(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=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+s}function p(t){return Array.isArray(t)}function v(t){return"boolean"===typeof t}function m(t){return null===t}function g(t){return"number"===typeof t}function y(t){return"string"===typeof t}function b(t){return void 0===t}function w(t){return _(t)&&"[object RegExp]"===M(t)}function _(t){return"object"===typeof t&&null!==t}function x(t){return _(t)&&"[object Date]"===M(t)}function E(t){return _(t)&&("[object Error]"===M(t)||t instanceof Error)}function A(t){return"function"===typeof t}function M(t){return Object.prototype.toString.call(t)}function k(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(t=t.toUpperCase(),!o[t])if(a.test(t)){var r=process.pid;o[t]=function(){var n=e.format.apply(e,arguments);console.error("%s %d: %s",t,r,n)}}else o[t]=function(){};return o[t]},e.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"},e.types=r(50902),e.isArray=p,e.isBoolean=v,e.isNull=m,e.isNullOrUndefined=function(t){return null==t}
2,e.isNumber=g,e.isString=y,e.isSymbol=function(t){return"symbol"===typeof t},e.isUndefined=b,e.isRegExp=w,e.types.isRegExp=w,e.isObject=_,e.isDate=x,e.types.isDate=x,e.isError=E,e.types.isNativeError=E,e.isFunction=A,e.isPrimitive=function(t){return null===t||"boolean"===typeof t||"number"===typeof t||"string"===typeof t||"symbol"===typeof t||"undefined"===typeof t},e.isBuffer=r(86181);var S=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function I(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){console.log("%s - %s",function(){var t=new Date,e=[k(t.getHours()),k(t.getMinutes()),k(t.getSeconds())].join(":");return[t.getDate(),S[t.getMonth()],e].join(" ")}(),e.format.apply(e,arguments))},e.inherits=r(80273),e._extend=function(t,e){if(!e||!_(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t};var P="undefined"!==typeof Symbol?Symbol("util.promisify.custom"):void 0;function N(t,e){if(!t){var r=new Error("Promise was rejected with a falsy value");r.reason=t,t=r}return e(t)}e.promisify=function(t){if("function"!==typeof t)throw new TypeError('The "original" argument must be of type Function');if(P&&t[P]){var e;if("function"!==typeof(e=t[P]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,P,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,r,n=new Promise((function(t,n){e=t,r=n})),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push((function(t,n){t?r(t):e(n)}));try{t.apply(this,i)}catch(a){r(a)}return n}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),P&&Object.defineProperty(e,P,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,n(t))},e.promisify.custom=P,e.callbackify=function(t){if("function"!==typeof t)throw new TypeError('The "original" argument must be of type Function');function e(){for(var e=[],r=0;r<arguments.length;r++)e.push(arguments[r]);var n=e.pop();if("function"!==typeof n)throw new TypeError("The last argument must be of type Function");var i=this,o=function(){return n.apply(i,arguments)};t.apply(this,e).then((function(t){process.nextTick(o.bind(null,null,t))}),(function(t){process.nextTick(N.bind(null,t,o))}))}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),Object.defineProperties(e,n(t)),e}},95162:function(t,e,r){"use strict";var n;r.d(e,{Z:function(){return f}});var i=new Uint8Array(16);function o(){if(!n&&!(n="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!==typeof msCrypto&&"function"===typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(i)}var a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var s=function(t){return"string"===typeof t&&a.test(t)},u=[],c=0;c<256;++c)u.push((c+256).toString(16).substr(1));var l=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(u[t[e+0]]+u[t[e+1]]+u[t[e+2]]+u[t[e+3]]+"-"+u[t[e+4]]+u[t[e+5]]+"-"+u[t[e+6]]+u[t[e+7]]+"-"+u[t[e+8]]+u[t[e+9]]+"-"+u[t[e+10]]+u[t[e+11]]+u[t[e+12]]+u[t[e+13]]+u[t[e+14]]+u[t[e+15]]).toLowerCase();if(!s(r))throw TypeError("Stringified UUID is invalid");return r};var f=function(t,e,r){var n=(t=t||{}).random||(t.rng||o)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,e){r=r||0;for(var i=0;i<16;++i)e[r+i]=n[i];return e}return l(n)}},91520:function(t,e,r){"use strict";var n=r(45767),i=r(93645),o=r(59962),a=r(44680),s=r(56103),u=a("Object.prototype.toString"),c=r(48857)(),l="undefined"===typeof globalThis?r.g:globalThis,f=i(),h=a("String.prototype.slice"),d=Object.getPrototypeOf,p=a("Array.prototype.indexOf",!0)||function(t,e){for(var r=0;r<t.length;r+=1)if(t[r]===e)return r;return-1},v={__proto__:null};n(f,c&&s&&d?function(t){var e=new l[t];if(Symbol.toStringTag in e){var r=d(e),n=s(r,Symbol.toStringTag);if(!n){var i=d(r);n=s(i,Symbol.toStringTag)}v["$"+t]=o(n.get)}}:function(t){var e=new l[t];v["$"+t]=o(e.slice)});t.exports=function(t){if(!t||"object"!==typeof t)return!1;if(!c){var e=h(u(t),8,-1);return p(f,e)>-1?e:"Object"===e&&function(t){var e=!1;return n(v,(function(r,n){if(!e)try{r(t),e=h(n,1)}catch(i){}})),e}(t)}return s?function(t){var e=!1;return n(v,(function(r,n){if(!e)try{"$"+r(t)===n&&(e=h(n,1))}catch(i){}})),e}(t):null}},85372:function(t){t.exports=function(t){if(Array.isArray(t))return t}
2,t.exports.__esModule=!0,t.exports.default=t.exports},63405:function(t,e,r){var n=r(73897);t.exports=function(t){if(Array.isArray(t))return n(t)},t.exports.__esModule=!0,t.exports.default=t.exports},18237:function(t){function e(t){function r(t){if(Object(t)!==t)return Promise.reject(new TypeError(t+" is not an object."));var e=t.done;return Promise.resolve(t.value).then((function(t){return{value:t,done:e}}))}return e=function(t){this.s=t,this.n=t.next},e.prototype={s:null,n:null,next:function(){return r(this.n.apply(this.s,arguments))},return:function(t){var e=this.s.return;return void 0===e?Promise.resolve({value:t,done:!0}):r(e.apply(this.s,arguments))},throw:function(t){var e=this.s.return;return void 0===e?Promise.reject(t):r(e.apply(this.s,arguments))}},new e(t)}t.exports=function(t){var r,n,i,o=2;for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,i=Symbol.iterator);o--;){if(n&&null!=(r=t[n]))return r.call(t);if(i&&null!=(r=t[i]))return new e(r.call(t));n="@@asyncIterator",i="@@iterator"}throw new TypeError("Object is not async iterable")},t.exports.__esModule=!0,t.exports.default=t.exports},17156:function(t){function e(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(c){return void r(c)}s.done?e(u):Promise.resolve(u).then(n,i)}t.exports=function(t){return function(){var r=this,n=arguments;return new Promise((function(i,o){var a=t.apply(r,n);function s(t){e(a,i,o,s,u,"next",t)}function u(t){e(a,i,o,s,u,"throw",t)}s(void 0)}))}},t.exports.__esModule=!0,t.exports.default=t.exports},3515:function(t,e,r){var n=r(6015),i=r(69617);function o(e,r,a){return i()?(t.exports=o=Reflect.construct.bind(),t.exports.__esModule=!0,t.exports.default=t.exports):(t.exports=o=function(t,e,r){var i=[null];i.push.apply(i,e);var o=new(Function.bind.apply(t,i));return r&&n(o,r.prototype),o},t.exports.__esModule=!0,t.exports.default=t.exports),o.apply(null,arguments)}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},41588:function(t,e,r){var n=r(1753);function i(){return"undefined"!==typeof Reflect&&Reflect.get?(t.exports=i=Reflect.get.bind(),t.exports.__esModule=!0,t.exports.default=t.exports):(t.exports=i=function(t,e,r){var i=n(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},t.exports.__esModule=!0,t.exports.default=t.exports),i.apply(this,arguments)}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports},46035:function(t){t.exports=function(t){return-1!==Function.toString.call(t).indexOf("[native code]")},t.exports.__esModule=!0,t.exports.default=t.exports},79498:function(t){t.exports=function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports.default=t.exports},68872:function(t){t.exports=function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,s=[],u=!0,c=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(l){c=!0,i=l}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}},t.exports.__esModule=!0,t.exports.default=t.exports},12218:function(t){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},42281:function(t){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},17061:function(t,e,r){var n=r(18698).default;function i(){"use strict";t.exports=i=function(){return e},t.exports.__esModule=!0,t.exports.default=t.exports;var e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s="function"==typeof Symbol?Symbol:{},u=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(C){f=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,o=Object.create(i.prototype),s=new I(n||[]);return a(o,"_invoke",{value:A(t,r,s)}),o}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(C){return{type:"throw",arg:C}}}e.wrap=h;var p={};function v(){}function m(){}function g(){}var y={};f(y,u,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(P([])));w&&w!==r&&o.call(w,u)&&(y=w);var _=g.prototype=v.prototype=Object.create(y);function x(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(i,a,s,u){var c=d(t[i],t,a);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==n(f)&&o.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,s,u)}),(function(t){r("throw",t,s,u)})):e.resolve(f).then((function(t){l.value=t,s(l)}),(function(t){return r("throw",t,s,u)}))}u(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}
vendor: 5,142 bytes, line 2
2))}return i=i?i.then(o,o):o()}})}function A(t,e,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return N()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=M(a,r);if(s){if(s===p)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=d(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function M(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,M(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var i=d(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,p;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function P(t){if(t){var e=t[u];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(o.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:N}}function N(){return{value:void 0,done:!0}}return m.prototype=g,a(_,"constructor",{value:g,configurable:!0}),a(g,"constructor",{value:m,configurable:!0}),m.displayName=f(g,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,f(t,l,"GeneratorFunction")),t.prototype=Object.create(_),t},e.awrap=function(t){return{__await:t}},x(E.prototype),f(E.prototype,c,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new E(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(_),f(_,l,"Generator"),f(_,u,(function(){return this})),f(_,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=P,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;S(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}
2t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports},27424:function(t,e,r){var n=r(85372),i=r(68872),o=r(86116),a=r(12218);t.exports=function(t,e){return n(t)||i(t,e)||o(t,e)||a()},t.exports.__esModule=!0,t.exports.default=t.exports},1753:function(t,e,r){var n=r(73808);t.exports=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=n(t)););return t},t.exports.__esModule=!0,t.exports.default=t.exports},861:function(t,e,r){var n=r(63405),i=r(79498),o=r(86116),a=r(42281);t.exports=function(t){return n(t)||i(t)||o(t)||a()},t.exports.__esModule=!0,t.exports.default=t.exports},33496:function(t,e,r){var n=r(73808),i=r(6015),o=r(46035),a=r(3515);function s(e){var r="function"===typeof Map?new Map:void 0;return t.exports=s=function(t){if(null===t||!o(t))return t;if("function"!==typeof t)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof r){if(r.has(t))return r.get(t);r.set(t,e)}function e(){return a(t,arguments,n(this).constructor)}return e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),i(e,t)},t.exports.__esModule=!0,t.exports.default=t.exports,s(e)}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports},35218:function(t,e,r){"use strict";var n=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},i.apply(this,arguments)},o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{u(n.next(t))}catch(e){o(e)}}function s(t){try{u(n.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var r,n,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(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=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++,n=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]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(s){o=[6,s],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};e.__esModule=!0,e.InfinityWalletConnector=e.UserRejectedRequestError=e.NoEthereumProviderError=void 0;var s=r(11686),u=r(21292);function c(t){return t.hasOwnProperty("result")?t.result:t}var l=function(t){function e(){var e=t.call(this)||this;return e.name=e.constructor.name,e.message="No Ethereum provider was found on window.ethereum.",e}return n(e,t),e}(Error);e.NoEthereumProviderError=l;var f=function(t){function e(){var e=t.call(this)||this;return e.name=e.constructor.name,e.message="The user rejected the request.",e}return n(e,t),e}(Error);e.UserRejectedRequestError=f;var h=function(t){function e(e){var r=t.call(this,e)||this;return r.isInfinityWallet=!0,r.handleNetworkChanged=r.handleNetworkChanged.bind(r),r.handleChainChanged=r.handleChainChanged.bind(r),r.handleAccountsChanged=r.handleAccountsChanged.bind(r),r.handleClose=r.handleClose.bind(r),r}return n(e,t),e.prototype.handleChainChanged=function(t){this.emitUpdate({chainId:t,provider:window.ethereum})},e.prototype.handleAccountsChanged=function(t){0===t.length?this.emitDeactivate():this.emitUpdate({account:t[0]})},e.prototype.handleClose=function(t,e){this.emitDeactivate()},e.prototype.handleNetworkChanged=function(t){this.emitUpdate({chainId:t,provider:window.ethereum})},e.prototype.activate=function(){return o(this,void 0,void 0,(function(){var t;return a(this,(function(e){switch(e.label){case 0:if(!window.ethereum)throw new l;window.ethereum.on&&(window.ethereum.on("chainChanged",this.handleChainChanged),window.ethereum.on("accountsChanged",this.handleAccountsChanged),window.ethereum.on("close",this.handleClose),window.ethereum.on("networkChanged",this.handleNetworkChanged)),window.ethereum.isInfinityWallet&&(window.ethereum.autoRefreshOnNetworkChange=!1),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,window.ethereum.send("eth_requestAccounts").then((function(t){return c(t)[0]}))];case 2:return t=e.sent(),[3,4];case 3:if(4001===e.sent().code)throw new f;return(0,u.default)(!1,"eth_requestAccounts was unsuccessful, falling back to enable"),[3,4];case 4:return t?[3,6]:[4,window.ethereum.enable().then((function(t){return t&&c(t)[0]}))];case 5:t=e.sent(),e.label=6;case 6:return[2,i({provider:window.ethereum},t?{account:t}:{})]}}))}))},e.prototype.getProvider=function(){return o(this,void 0,void 0,(function(){return a(this,(function(t){return[2,window.ethereum]}))}))},e.prototype.getChainId=function(){return o(this,void 0,void 0,(function(){var t;return a(this,(function(e){switch(e.label){case 0:if(!window.ethereum)throw new l;e.label=1;case 1:return e.trys.push([1,3,,4]),[4,window.ethereum.send("eth_chainId").then(c)];case 2:return t=e.sent(),[3,4];case 3:return e.sent(),(0,u.default)(!1,"eth_chainId was unsuccessful, falling back to net_version"),[3,4];case 4:if(t)return[3,8];e.label=5;case 5:return e.trys.push([5,7,,8]),[4,window.ethereum.send("net_version").then(c)];case 6:return t=e.sent(),[3,8];case 7:return e.sent(),(0,u.default)(!1,"net_version was unsuccessful, falling back to net version v2"),[3,8];case 8:if(!t)try{t=c(window.ethereum.send({method:"net_version"}))}catch(r){(0,u.default)(!1,"net_version v2 was unsuccessful, falling back to manual matches and static properties")}return t||(t=window.ethereum.isDapper?c(window.ethereum.cachedResults.net_version):window.ethereum.chainId||window.ethereum.netVersion||window.ethereum.networkVersion||window.ethereum._chainId),[2,t]}}))}))},e.prototype.getAccount=function(){return o(this,void 0,void 0,(function(){var t;return a(this,(function(e){switch(e.label){case 0:if(!window.ethereum)throw new l;e.label=1;case 1:return e.trys.push([1,3,,4]),[4,window.ethereum.send("eth_accounts").then((function(t){return c(t)[0]}))];case 2:return t=e.sent(),[3,4];case 3:return e.sent(),(0,u.default)(!1,"eth_accounts was unsuccessful, falling back to enable"),[3,4];case 4:if(t)return[3,8];e.label=5;case 5:return e.trys.push([5,7,,8]),[4,window.ethereum.enable().then((function(t){return c(t)[0]}))];case 6:return t=e.sent(),[3,8];case 7:return e.sent(),(0,u.default)(!1,"enable was unsuccessful, falling back to eth_accounts v2"),[3,8];case 8:return t||(t=c(window.ethereum.send({method:"eth_accounts"}))[0]),[2,t]}}))}))},e.prototype.deactivate=function(){window.ethereum&&window.ethereum.removeListener&&(window.ethereum.removeListener("chainChanged",this.handleChainChanged),window.ethereum.removeListener("accountsChanged",this.handleAccountsChanged),window.ethereum.removeListener("close",this.handleClose),window.ethereum.removeListener("networkChanged",this.handleNetworkChanged))},e.prototype.isAuthorized=function(){return o(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:if(!window.ethereum)return[2,!1];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,window.ethereum.send("eth_accounts").then((function(t){return c(t).length>0}))];case 2:return[2,t.sent()];case 3:return t.sent(),[2,!1];case 4:return[2]}}
2))}))},e}(s.AbstractConnector);e.InfinityWalletConnector=h},86296:function(t,e){"use strict";e.__esModule=!0,e.DeepLinker=void 0,e.DeepLinker=function(t){if(!t)throw new Error("no options");var e=!0,r=!1;function n(){e=!1}function i(t){"hidden"===t.target.visibilityState&&(r=!0)}function o(){r?(t.onReturn&&t.onReturn(),r=!1):!e&&t.onFallback&&setTimeout((function(){r||t.onFallback()}),1e3),e=!0}function a(t){[[window,"blur",n],[document,"visibilitychange",i],[window,"focus",o]].forEach((function(e){e[0][t+"EventListener"](e[1],e[2])}))}a("add"),this.destroy=a.bind(null,"remove"),this.openURL=function(r){setTimeout((function(){e&&t.onIgnored&&t.onIgnored()}),500),window.location=r}}},24496:function(t,e,r){"use strict";e.__esModule=!0,e.openInfinityWallet=e.detectEthereumProvider=void 0;var n=r(86296);e.detectEthereumProvider=function(t){var e=void 0===t?{}:t,r=e.mustBeInfinityWallet,n=void 0!==r&&r,i=e.silent,o=void 0!==i&&i,a=e.timeout,s=void 0===a?3e3:a;!function(){if("boolean"!==typeof n)throw new Error("@InfinityWallet/detect-provider: Expected option 'mustBeInfinityWallet' to be a boolean.");if("boolean"!==typeof o)throw new Error("@InfinityWallet/detect-provider: Expected option 'silent' to be a boolean.");if("number"!==typeof s)throw new Error("@InfinityWallet/detect-provider: Expected option 'timeout' to be a number.")}();var u=!1;return new Promise((function(t){function e(){if(!u){u=!0,window.removeEventListener("ethereum#initialized",e);var r=window.ethereum;if(!r||n&&!r.isInfinityWallet){var i=n&&r?"Non-InfinityWallet window.ethereum detected.":"Unable to detect window.ethereum.";!o&&console.error("@InfinityWallet/detect-provider:",i),t(null)}else t(r)}}window.ethereum?e():(window.addEventListener("ethereum#initialized",e,{once:!0}),setTimeout((function(){e()}),s))}))},e.openInfinityWallet=function(t,e){var r=new n.DeepLinker({onIgnored:function(){window.open("https://infinitywallet.io/download")}});void 0==e&&(e=1),t.includes("://")&&(t=t.split("://")[1]),r.openURL("infinity:?dapp="+t+"&chain="+e)}},2933:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};
2e.__esModule=!0,i(r(35218),e),i(r(24496),e)},93645:function(t,e,r){"use strict";var n=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],i="undefined"===typeof globalThis?r.g:globalThis;t.exports=function(){for(var t=[],e=0;e<n.length;e++)"function"===typeof i[n[e]]&&(t[t.length]=n[e]);return t}},5647:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});var n=r(89611),i=r(78814);function o(t,e,r){return o=(0,i.Z)()?Reflect.construct.bind():function(t,e,r){var i=[null];i.push.apply(i,e);var o=new(Function.bind.apply(t,i));return r&&(0,n.Z)(o,r.prototype),o},o.apply(null,arguments)}},11752:function(t,e,r){"use strict";r.d(e,{Z:function(){return i}});var n=r(61120);function i(){return i="undefined"!==typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=(0,n.Z)(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},i.apply(this,arguments)}},28664:function(t,e,r){"use strict";r.d(e,{Z:function(){return a}});var n=r(61120),i=r(89611);var o=r(5647);function a(t){var e="function"===typeof Map?new Map:void 0;return a=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!==typeof t)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof e){if(e.has(t))return e.get(t);e.set(t,a)}function a(){return(0,o.Z)(t,arguments,(0,n.Z)(this).constructor)}return a.prototype=Object.create(t.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),(0,i.Z)(a,t)},a(t)}},85708:function(t,e,r){"use strict";var n=r(29439),i=r(74165),o=r(15861);e.Z=function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).darkMode,e=void 0!==t&&t;return function(){return{label:"Coinbase Wallet",getIcon:function(){var t=(0,o.Z)((0,i.Z)().mark((function t(){return(0,i.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(8180).then(r.bind(r,88180));case 2:return t.abrupt("return",t.sent.default);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getInterface:function(){var t=(0,o.Z)((0,i.Z)().mark((function t(o){var a,s,u,c,l,f,h,d,p,v,m,g,y,b,w;return(0,i.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=o.chains,s=o.appMetadata,u=(0,n.Z)(a,1),c=u[0],f=(l=s||{}).name,h=l.icon,t.next=5,Promise.all([r.e(2836),r.e(6942)]).then(r.t.bind(r,52836,19));case 5:return d=t.sent,p=d.default,v=p.default?p.default:p,m=window.btoa(h||""),g="data:image/svg+xml;base64,".concat(m),y=new v({appName:f||"",appLogoUrl:g,darkMode:e}),b=y.makeWeb3Provider(c.rpcUrl,parseInt(c.id)),w=b.on.bind(b),b.on=function(t,e){return w(t,(function(r){e("chainChanged"!==t?r:"0x".concat(r.toString(16)))})),b},t.abrupt("return",{provider:b,instance:y});case 15:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}}},36712:function(t,e,r){"use strict";r.r(e),r.d(e,{InterVar:function(){return d},ProviderRpcError:function(){return u},ProviderRpcErrorCode:function(){return n},chainIdValidation:function(){return y},chainNamespaceValidation:function(){return b},chainValidation:function(){return x},createEIP1193Provider:function(){return f},providerConnectionInfoValidation:function(){return w},validate:function(){return g},weiToEth:function(){return v}});var n,i=r(43144),o=r(15671),a=r(60136),s=r(29388),u=function(t){(0,a.Z)(r,t);var e=(0,s.Z)(r);function r(t){var n;return(0,o.Z)(this,r),(n=e.call(this,t.message)).message=t.message,n.code=t.code,n.data=t.data,n}return(0,i.Z)(r)}((0,r(28664).Z)(Error)),c=r(74165),l=r(15861),f=function(t,e){var r;t.request?r=t.request.bind(t):t.sendAsync&&(r=h(t));var n=function(){var t=(0,l.Z)((0,c.Z)().mark((function t(n){var i,o,a;return(0,c.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=n.method,o=n.params,a=i,!e||null!==e[a]){t.next=4;break}throw new u({code:4200,message:"The Provider does not support the requested method: ".concat(i)});case 4:if(!e||!e[a]){t.next=8;break}return t.abrupt("return",e[a]({baseRequest:r,params:o}));case 8:if(!r){t.next=12;break}return t.abrupt("return",r({method:i,params:o}));case 12:throw new u({code:4200,message:"The Provider does not support the requested method: ".concat(i)});case 13:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();return t.request=n,t},h=function(t){return function(e){var r=e.method,n=e.params;return new Promise((function(e,i){t.sendAsync({id:0,jsonrpc:"2.0",method:r,params:n},(function(t,r){var n=r.result;t?i(JSON.parse(t)):e(void 0==n?null:n)}))}))}},d='\n@font-face {\n  font-family: \'Inter\';\n  font-style:  normal;\n  font-weight: 300 600;\n  font-display: swap;\n  src: url("https://rsms.me/inter/font-files/Inter-roman.var.woff2?v=3.19") format("woff2");\n}\n',p=r(52422);function v(t){return new p.Z(t).div(1e18).toString(10)}!function(t){t[t.ACCOUNT_ACCESS_REJECTED=4001]="ACCOUNT_ACCESS_REJECTED",t[t.ACCOUNT_ACCESS_ALREADY_REQUESTED=-32002]="ACCOUNT_ACCESS_ALREADY_REQUESTED",t[t.UNAUTHORIZED=4100]="UNAUTHORIZED",t[t.INVALID_PARAMS=-32602]="INVALID_PARAMS",t[t.UNSUPPORTED_METHOD=4200]="UNSUPPORTED_METHOD",t[t.DISCONNECTED=4900]="DISCONNECTED",t[t.CHAIN_DISCONNECTED=4901]="CHAIN_DISCONNECTED",t[t.CHAIN_NOT_ADDED=4902]="CHAIN_NOT_ADDED",t[t.DOES_NOT_EXIST=-32601]="DOES_NOT_EXIST",t[t.UNRECOGNIZED_CHAIN_ID=-32603]="UNRECOGNIZED_CHAIN_ID"}(n||(n={}));var m=r(47397);function g(t,e){var r=t.validate(e);return r.error?r:null}var y=m.alternatives().try(m.string().pattern(/^0x[0-9a-fA-F]+$/),m.number().positive()),b=m.string().valid("evm"),w=m.object({url:m.string().required(),headers:m.object(),user:m.string(),password:m.string(),allowInsecureAuthentication:m.boolean(),allowGzip:m.boolean(),throttleLimit:m.number(),throttleSlotInterval:m.number(),throttleCallback:m.function(),timeout:m.number()}),_=m.object({address:m.string().required(),icon:m.string().optional()}
2),x=m.object({namespace:b,id:y.required(),rpcUrl:m.string(),label:m.string(),token:m.string(),secondaryTokens:m.array().max(5).items(_).optional(),icon:m.string(),color:m.string(),publicRpcUrl:m.string(),protectedRpcUrl:m.string(),blockExplorerUrl:m.string(),providerConnectionInfoValidation:w})},35847:function(t,e,r){"use strict";r.d(e,{$:function(){return Ru},A:function(){return Iu},B:function(){return Bs},C:function(){return ml},D:function(){return ga},E:function(){return ma},F:function(){return Uu},G:function(){return js},H:function(){return Gs},I:function(){return Du},J:function(){return Ds},K:function(){return Hu},L:function(){return ls},M:function(){return wl},N:function(){return Vu},O:function(){return rl},P:function(){return Kl},Q:function(){return ya},R:function(){return Mf},S:function(){return qu},T:function(){return $s},U:function(){return pu},V:function(){return Nu},W:function(){return $f},X:function(){return af},Y:function(){return hf},Z:function(){return fs},_:function(){return Tu},a:function(){return Ps},a0:function(){return va},a1:function(){return ds},a2:function(){return Ws},a3:function(){return is},a4:function(){return ka},a5:function(){return Ma},a6:function(){return aa},a7:function(){return Lu},a8:function(){return Ou},a9:function(){return of},aA:function(){return fp},aa:function(){return sf},ab:function(){return Fu},ac:function(){return vu},ad:function(){return la},ae:function(){return Ta},af:function(){return Ol},ag:function(){return ja},ah:function(){return su},ai:function(){return pl},aj:function(){return Cu},ak:function(){return au},al:function(){return il},am:function(){return nf},an:function(){return Ia},ao:function(){return Ea},ap:function(){return _a},aq:function(){return wa},ar:function(){return Aa},as:function(){return Xu},at:function(){return cl},au:function(){return Ju},av:function(){return ul},aw:function(){return eu},ax:function(){return ru},ay:function(){return tu},az:function(){return Zu},b:function(){return Ts},c:function(){return ps},d:function(){return Rs},e:function(){return Fs},f:function(){return Xl},g:function(){return cu},h:function(){return Sa},i:function(){return $u},j:function(){return Ls},k:function(){return Hs},l:function(){return ws},m:function(){return Is},n:function(){return os},o:function(){return qs},p:function(){return Us},q:function(){return Bu},r:function(){return xa},s:function(){return hs},t:function(){return Zs},u:function(){return ju},v:function(){return zs},w:function(){return Yu},x:function(){return Su},y:function(){return Mu},z:function(){return ku}});var n=r(4942),i=r(28664),o=r(97326),a=r(60136),s=r(29388),u=r(74165),c=r(29439),l=r(15671),f=r(43144),h=r(93433),d=r(1413),p=r(45987),v=r(15861),m=r(84603),g=r(99687),y=r(36684),b=r(91974);function w(t){return new y.y((function(e){(0,b.Xf)(t()).subscribe(e)}))}var _=r(95330),x=r(73253),E=r(3150),A=r(93766),M=r(6178),k=Array.isArray;function S(t){return(0,M.U)((function(e){return function(t,e){return k(e)?t.apply(void 0,(0,_.ev)([],(0,_.CR)(e))):t(e)}(t,e)}))}var I=["addListener","removeListener"],P=["addEventListener","removeEventListener"],N=["on","off"];function C(t,e,r,n){if((0,A.m)(r)&&(n=r,r=void 0),n)return C(t,e,r).pipe(S(n));var i=(0,_.CR)(function(t){return(0,A.m)(t.addEventListener)&&(0,A.m)(t.removeEventListener)}(t)?P.map((function(n){return function(i){return t[n](e,i,r)}})):function(t){return(0,A.m)(t.addListener)&&(0,A.m)(t.removeListener)}(t)?I.map(O(t,e)):function(t){return(0,A.m)(t.on)&&(0,A.m)(t.off)}(t)?N.map(O(t,e)):[],2),o=i[0],a=i[1];if(!o&&(0,E.z)(t))return(0,x.z)((function(t){return C(t,e,r)}))((0,b.Xf)(t));if(!o)throw new TypeError("Invalid event target");return new y.y((function(t){var e=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return t.next(1<e.length?e:e[0])};return o(e),function(){return a(e)}}))}function O(t,e){return function(r){return function(n){return t[r](e,n)}}}var T=r(64960),R=r(87038),B=r(1673);function L(t){return(0,T.e)((function(e,r){(0,b.Xf)(t).subscribe((0,R.x)(r,(function(){return r.complete()}),B.Z)),!r.closed&&e.subscribe(r)}))}var Z=(0,r(71982).d)((function(t){return function(){t(this),this.name="EmptyError",this.message="no elements in sequence"}})),j=r(26460);function F(t,e){var r="object"===typeof e;return new Promise((function(n,i){var o=new j.Hp({next:function(t){n(t),o.unsubscribe()},error:i,complete:function(){r?n(e.defaultValue):i(new Z)}});t.subscribe(o)}))}function U(t,e,r){return r?U(t,e).pipe(S(r)):new y.y((function(r){var n=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return r.next(1===t.length?t[0]:t)},i=t(n);return(0,A.m)(e)?function(){return e(n,i)}:void 0}))}
2var D=r(51486),H=r(56215),z=r(50250),$=r(93561);function q(t){return(0,M.U)((function(){return t}))}var G=r(262);function W(t){return t<=0?function(){return G.E}:(0,T.e)((function(e,r){var n=0;e.subscribe((0,R.x)(r,(function(e){++n<=t&&(r.next(e),t<=n&&r.complete())})))}))}function V(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=t.length;if(0===r)throw new Error("list of properties cannot be empty.");return(0,M.U)((function(e){for(var n=e,i=0;i<r;i++){var o=null===n||void 0===n?void 0:n[t[i]];if("undefined"===typeof o)return;n=o}return n}))}var K=r(36531),Y=r(40049);function X(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=(0,Y.jO)(t);return(0,T.e)((function(e,n){for(var i=t.length,o=new Array(i),a=t.map((function(){return!1})),s=!1,u=function(e){(0,b.Xf)(t[e]).subscribe((0,R.x)(n,(function(t){o[e]=t,s||a[e]||(a[e]=!0,(s=a.every(K.y))&&(a=null))}),B.Z))},c=0;c<i;c++)u(c);e.subscribe((0,R.x)(n,(function(t){if(s){var e=(0,_.ev)([t],(0,_.CR)(o));n.next(r?r.apply(void 0,(0,_.ev)([],(0,_.CR)(e))):e)}})))}))}var J=r(80345);function Q(t,e){return(0,T.e)((function(r,n){var i=null,o=0,a=!1,s=function(){return a&&!i&&n.complete()};r.subscribe((0,R.x)(n,(function(r){null===i||void 0===i||i.unsubscribe();var a=0,u=o++;(0,b.Xf)(t(r,u)).subscribe(i=(0,R.x)(n,(function(t){return n.next(e?e(r,t,u,a++):t)}),(function(){i=null,s()})))}),(function(){a=!0,s()})))}))}var tt=r(50984),et=r(78147),rt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21;return crypto.getRandomValues(new Uint8Array(t)).reduce((function(t,e){return t+=(e&=63)<36?e.toString(36):e<62?(e-26).toString(36).toUpperCase():e>62?"-":"_"}),"")},nt=r(47397),it=r(36712),ot=r(52422),at=r(57810),st=r(66257),ut=r(11752),ct=r(61120),lt=!1,ft=!1,ht={debug:1,default:2,info:2,warning:3,error:4,off:5},dt=ht.default,pt=null;var vt,mt,gt=function(){try{var t=[];if(["NFD","NFC","NFKD","NFKC"].forEach((function(e){try{if("test"!=="test".normalize(e))throw new Error("bad normalize")}catch(r){t.push(e)}})),t.length)throw new Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(e){return e.message}return null}();!function(t){t.DEBUG="DEBUG",t.INFO="INFO",t.WARNING="WARNING",t.ERROR="ERROR",t.OFF="OFF"}(vt||(vt={})),function(t){t.UNKNOWN_ERROR="UNKNOWN_ERROR",t.NOT_IMPLEMENTED="NOT_IMPLEMENTED",t.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",t.NETWORK_ERROR="NETWORK_ERROR",t.SERVER_ERROR="SERVER_ERROR",t.TIMEOUT="TIMEOUT",t.BUFFER_OVERRUN="BUFFER_OVERRUN",t.NUMERIC_FAULT="NUMERIC_FAULT",t.MISSING_NEW="MISSING_NEW",t.INVALID_ARGUMENT="INVALID_ARGUMENT",t.MISSING_ARGUMENT="MISSING_ARGUMENT",t.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",t.CALL_EXCEPTION="CALL_EXCEPTION",t.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",t.NONCE_EXPIRED="NONCE_EXPIRED",t.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",t.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",t.TRANSACTION_REPLACED="TRANSACTION_REPLACED",t.ACTION_REJECTED="ACTION_REJECTED"}(mt||(mt={}));var yt="0123456789abcdef",bt=function(){function t(e){(0,l.Z)(this,t),Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}return(0,f.Z)(t,[{key:"_log",value:function(t,e){var r=t.toLowerCase();null==ht[r]&&this.throwArgumentError("invalid log level name","logLevel",t),dt>ht[r]||console.log.apply(console,e)}},{key:"debug",value:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];this._log(t.levels.DEBUG,r)}},{key:"info",value:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];this._log(t.levels.INFO,r)}},{key:"warn",value:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];this._log(t.levels.WARNING,r)}},{key:"makeError",value:function(e,r,n){if(ft)return this.makeError("censored error",r,{});r||(r=t.errors.UNKNOWN_ERROR),n||(n={});var i=[];Object.keys(n).forEach((function(t){var e=n[t];try{if(e instanceof Uint8Array){for(var r="",o=0;o<e.length;o++)r+=yt[e[o]>>4],r+=yt[15&e[o]];i.push(t+"=Uint8Array(0x"+r+")")}else i.push(t+"="+JSON.stringify(e))}catch(u){i.push(t+"="+JSON.stringify(n[t].toString()))}})),i.push("code=".concat(r)),i.push("version=".concat(this.version));var o=e,a="";switch(r){case mt.NUMERIC_FAULT:a="NUMERIC_FAULT";var s=e;switch(s){case"overflow":case"underflow":case"division-by-zero":a+="-"+s;break;case"negative-power":case"negative-width":a+="-unsupported";break;case"unbound-bitwise-result":a+="-unbound-result"}break;case mt.CALL_EXCEPTION:case mt.INSUFFICIENT_FUNDS:case mt.MISSING_NEW:case mt.NONCE_EXPIRED:case mt.REPLACEMENT_UNDERPRICED:case mt.TRANSACTION_REPLACED:case mt.UNPREDICTABLE_GAS_LIMIT:a=r}a&&(e+=" [ See: https://links.ethers.org/v5-errors-"+a+" ]"),i.length&&(e+=" ("+i.join(", ")+")");var u=new Error(e);
2return u.reason=o,u.code=r,Object.keys(n).forEach((function(t){u[t]=n[t]})),u}},{key:"throwError",value:function(t,e,r){throw this.makeError(t,e,r)}},{key:"throwArgumentError",value:function(e,r,n){return this.throwError(e,t.errors.INVALID_ARGUMENT,{argument:r,value:n})}},{key:"assert",value:function(t,e,r,n){t||this.throwError(e,r,n)}},{key:"assertArgument",value:function(t,e,r,n){t||this.throwArgumentError(e,r,n)}},{key:"checkNormalize",value:function(e){null==e&&(e="platform missing String.prototype.normalize"),gt&&this.throwError("platform missing String.prototype.normalize",t.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:gt})}},{key:"checkSafeUint53",value:function(e,r){"number"===typeof e&&(null==r&&(r="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(r,t.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(r,t.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}},{key:"checkArgumentCount",value:function(e,r,n){n=n?": "+n:"",e<r&&this.throwError("missing argument"+n,t.errors.MISSING_ARGUMENT,{count:e,expectedCount:r}),e>r&&this.throwError("too many arguments"+n,t.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:r})}},{key:"checkNew",value:function(e,r){e!==Object&&null!=e||this.throwError("missing new",t.errors.MISSING_NEW,{name:r.name})}},{key:"checkAbstract",value:function(e,r){e===r?this.throwError("cannot instantiate abstract class "+JSON.stringify(r.name)+" directly; use a sub-class",t.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):e!==Object&&null!=e||this.throwError("missing new",t.errors.MISSING_NEW,{name:r.name})}}],[{key:"globalLogger",value:function(){return pt||(pt=new t("logger/5.7.0")),pt}},{key:"setCensorship",value:function(e,r){if(!e&&r&&this.globalLogger().throwError("cannot permanently disable censorship",t.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),lt){if(!e)return;this.globalLogger().throwError("error censorship permanent",t.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}ft=!!e,lt=!!r}},{key:"setLogLevel",value:function(e){var r=ht[e.toLowerCase()];null!=r?dt=r:t.globalLogger().warn("invalid log level - "+e)}},{key:"from",value:function(e){return new t(e)}}]),t}();bt.errors=mt,bt.levels=vt;var wt=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{u(n.next(t))}catch(e){o(e)}}function s(t){try{u(n.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},_t=new bt("properties/5.7.0");function xt(t,e,r){Object.defineProperty(t,e,{enumerable:!0,value:r,writable:!1})}function Et(t,e){for(var r=0;r<32;r++){if(t[e])return t[e];if(!t.prototype||"object"!==typeof t.prototype)break;t=Object.getPrototypeOf(t.prototype).constructor}return null}function At(t){return wt(this,void 0,void 0,(0,u.Z)().mark((function e(){var r,n;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Object.keys(t).map((function(e){var r=t[e];return Promise.resolve(r).then((function(t){return{key:e,value:t}}))})),e.next=3,Promise.all(r);case 3:return n=e.sent,e.abrupt("return",n.reduce((function(t,e){return t[e.key]=e.value,t}),{}));case 5:case"end":return e.stop()}}),e)})))}function Mt(t){var e={};for(var r in t)e[r]=t[r];return e}var kt={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function St(t){if(void 0===t||null===t||kt[typeof t])return!0;if(Array.isArray(t)||"object"===typeof t){if(!Object.isFrozen(t))return!1;for(var e=Object.keys(t),r=0;r<e.length;r++){var n=null;try{n=t[e[r]]}catch(i){continue}if(!St(n))return!1}return!0}return _t.throwArgumentError("Cannot deepCopy ".concat(typeof t),"object",t)}function It(t){if(St(t))return t;if(Array.isArray(t))return Object.freeze(t.map((function(t){return Pt(t)})));if("object"===typeof t){var e={};for(var r in t){var n=t[r];void 0!==n&&xt(e,r,Pt(n))}return e}return _t.throwArgumentError("Cannot deepCopy ".concat(typeof t),"object",t)}function Pt(t){return It(t)}var Nt=(0,f.Z)((function t(e){for(var r in(0,l.Z)(this,t),e)this[r]=Pt(e[r])})),Ct="providers/5.5.2",Ot=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{u(n.next(t))}catch(e){o(e)}}function s(t){try{u(n.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},Tt=new bt("abstract-signer/5.7.0"),Rt=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","
2nonce","to","type","value"],Bt=[bt.errors.INSUFFICIENT_FUNDS,bt.errors.NONCE_EXPIRED,bt.errors.REPLACEMENT_UNDERPRICED],Lt=function(){function t(){(0,l.Z)(this,t),Tt.checkAbstract(this instanceof t?this.constructor:void 0,t),xt(this,"_isSigner",!0)}return(0,f.Z)(t,[{key:"getBalance",value:function(t){return Ot(this,void 0,void 0,(0,u.Z)().mark((function e(){return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._checkProvider("getBalance"),e.next=3,this.provider.getBalance(this.getAddress(),t);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})))}},{key:"getTransactionCount",value:function(t){return Ot(this,void 0,void 0,(0,u.Z)().mark((function e(){return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._checkProvider("getTransactionCount"),e.next=3,this.provider.getTransactionCount(this.getAddress(),t);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})))}},{key:"estimateGas",value:function(t){return Ot(this,void 0,void 0,(0,u.Z)().mark((function e(){var r;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._checkProvider("estimateGas"),e.next=3,At(this.checkTransaction(t));case 3:return r=e.sent,e.next=6,this.provider.estimateGas(r);case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}}),e,this)})))}},{key:"call",value:function(t,e){return Ot(this,void 0,void 0,(0,u.Z)().mark((function r(){var n;return(0,u.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return this._checkProvider("call"),r.next=3,At(this.checkTransaction(t));case 3:return n=r.sent,r.next=6,this.provider.call(n,e);case 6:return r.abrupt("return",r.sent);case 7:case"end":return r.stop()}}),r,this)})))}},{key:"sendTransaction",value:function(t){return Ot(this,void 0,void 0,(0,u.Z)().mark((function e(){var r,n;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._checkProvider("sendTransaction"),e.next=3,this.populateTransaction(t);case 3:return r=e.sent,e.next=6,this.signTransaction(r);case 6:return n=e.sent,e.next=9,this.provider.sendTransaction(n);case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e,this)})))}},{key:"getChainId",value:function(){return Ot(this,void 0,void 0,(0,u.Z)().mark((function t(){var e;return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._checkProvider("getChainId"),t.next=3,this.provider.getNetwork();case 3:return e=t.sent,t.abrupt("return",e.chainId);case 5:case"end":return t.stop()}}),t,this)})))}},{key:"getGasPrice",value:function(){return Ot(this,void 0,void 0,(0,u.Z)().mark((function t(){return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._checkProvider("getGasPrice"),t.next=3,this.provider.getGasPrice();case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)})))}},{key:"getFeeData",value:function(){return Ot(this,void 0,void 0,(0,u.Z)().mark((function t(){return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._checkProvider("getFeeData"),t.next=3,this.provider.getFeeData();case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)})))}},{key:"resolveName",value:function(t){return Ot(this,void 0,void 0,(0,u.Z)().mark((function e(){return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._checkProvider("resolveName"),e.next=3,this.provider.resolveName(t);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})))}},{key:"checkTransaction",value:function(t){for(var e in t)-1===Rt.indexOf(e)&&Tt.throwArgumentError("invalid transaction key: "+e,"transaction",t);var r=Mt(t);return null==r.from?r.from=this.getAddress():r.from=Promise.all([Promise.resolve(r.from),this.getAddress()]).then((function(e){return e[0].toLowerCase()!==e[1].toLowerCase()&&Tt.throwArgumentError("from address mismatch","transaction",t),e[0]})),r}},{key:"populateTransaction",value:function(t){return Ot(this,void 0,void 0,(0,u.Z)().mark((function e(){var r,n,i,o,a=this;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,At(this.checkTransaction(t));case 2:if(null!=(r=e.sent).to&&(r.to=Promise.resolve(r.to).then((function(t){return Ot(a,void 0,void 0,(0,u.Z)().mark((function e(){var r;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=t){e.next=2;break}return e.abrupt("return",null);case 2:return e.next=4,this.resolveName(t);case 4:return null==(r=e.sent)&&Tt.throwArgumentError("provided ENS name resolves to null","tx.to",t),e.abrupt("return",r);case 7:case"end":return e.stop()}}),e,this)})))})),r.to.catch((function(t){}))),n=null!=r.maxFeePerGas||null!=r.maxPriorityFeePerGas,null==r.gasPrice||2!==r.type&&!n?0!==r.type&&1!==r.type||!n||Tt.throwArgumentError("pre-eip-1559 transaction do n
2ot support maxFeePerGas/maxPriorityFeePerGas","transaction",t):Tt.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",t),2!==r.type&&null!=r.type||null==r.maxFeePerGas||null==r.maxPriorityFeePerGas){e.next=10;break}r.type=2,e.next=18;break;case 10:if(0!==r.type&&1!==r.type){e.next=14;break}null==r.gasPrice&&(r.gasPrice=this.getGasPrice()),e.next=18;break;case 14:return e.next=16,this.getFeeData();case 16:i=e.sent,null==r.type?null!=i.maxFeePerGas&&null!=i.maxPriorityFeePerGas?(r.type=2,null!=r.gasPrice?(o=r.gasPrice,delete r.gasPrice,r.maxFeePerGas=o,r.maxPriorityFeePerGas=o):(null==r.maxFeePerGas&&(r.maxFeePerGas=i.maxFeePerGas),null==r.maxPriorityFeePerGas&&(r.maxPriorityFeePerGas=i.maxPriorityFeePerGas))):null!=i.gasPrice?(n&&Tt.throwError("network does not support EIP-1559",bt.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),null==r.gasPrice&&(r.gasPrice=i.gasPrice),r.type=0):Tt.throwError("failed to get consistent fee data",bt.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"}):2===r.type&&(null==r.maxFeePerGas&&(r.maxFeePerGas=i.maxFeePerGas),null==r.maxPriorityFeePerGas&&(r.maxPriorityFeePerGas=i.maxPriorityFeePerGas));case 18:return null==r.nonce&&(r.nonce=this.getTransactionCount("pending")),null==r.gasLimit&&(r.gasLimit=this.estimateGas(r).catch((function(t){if(Bt.indexOf(t.code)>=0)throw t;return Tt.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",bt.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,tx:r})}))),null==r.chainId?r.chainId=this.getChainId():r.chainId=Promise.all([Promise.resolve(r.chainId),this.getChainId()]).then((function(e){return 0!==e[1]&&e[0]!==e[1]&&Tt.throwArgumentError("chainId address mismatch","transaction",t),e[0]})),e.next=23,At(r);case 23:return e.abrupt("return",e.sent);case 24:case"end":return e.stop()}}),e,this)})))}},{key:"_checkProvider",value:function(t){this.provider||Tt.throwError("missing provider",bt.errors.UNSUPPORTED_OPERATION,{operation:t||"_checkProvider"})}}],[{key:"isSigner",value:function(t){return!(!t||!t._isSigner)}}]),t}(),Zt=r(41009),jt=r.n(Zt),Ft=new bt("bytes/5.7.0");function Ut(t){return!!t.toHexString}function Dt(t){return t.slice||(t.slice=function(){var e=Array.prototype.slice.call(arguments);return Dt(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function Ht(t){return Vt(t)&&!(t.length%2)||$t(t)}function zt(t){return"number"===typeof t&&t==t&&t%1===0}function $t(t){if(null==t)return!1;if(t.constructor===Uint8Array)return!0;if("string"===typeof t)return!1;if(!zt(t.length)||t.length<0)return!1;for(var e=0;e<t.length;e++){var r=t[e];if(!zt(r)||r<0||r>=256)return!1}return!0}function qt(t,e){if(e||(e={}),"number"===typeof t){Ft.checkSafeUint53(t,"invalid arrayify value");for(var r=[];t;)r.unshift(255&t),t=parseInt(String(t/256));return 0===r.length&&r.push(0),Dt(new Uint8Array(r))}if(e.allowMissingPrefix&&"string"===typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),Ut(t)&&(t=t.toHexString()),Vt(t)){var n=t.substring(2);n.length%2&&("left"===e.hexPad?n="0"+n:"right"===e.hexPad?n+="0":Ft.throwArgumentError("hex data is odd-length","value",t));for(var i=[],o=0;o<n.length;o+=2)i.push(parseInt(n.substring(o,o+2),16));return Dt(new Uint8Array(i))}return $t(t)?Dt(new Uint8Array(t)):Ft.throwArgumentError("invalid arrayify value","value",t)}function Gt(t){var e=t.map((function(t){return qt(t)})),r=e.reduce((function(t,e){return t+e.length}),0),n=new Uint8Array(r);return e.reduce((function(t,e){return n.set(e,t),t+e.length}),0),Dt(n)}function Wt(t){var e=qt(t);if(0===e.length)return e;for(var r=0;r<e.length&&0===e[r];)r++;return r&&(e=e.slice(r)),e}function Vt(t,e){return!("string"!==typeof t||!t.match(/^0x[0-9A-Fa-f]*$/))&&(!e||t.length===2+2*e)}var Kt="0123456789abcdef";function Yt(t,e){if(e||(e={}),"number"===typeof t){Ft.checkSafeUint53(t,"invalid hexlify value");for(var r="";t;)r=Kt[15&t]+r,t=Math.floor(t/16);return r.length?(r.length%2&&(r="0"+r),"0x"+r):"0x00"}if("bigint"===typeof t)return(t=t.toString(16)).length%2?"0x0"+t:"0x"+t;if(e.allowMissingPrefix&&"string"===typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),Ut(t))return t.toHexString();if(Vt(t))return t.length%2&&("left"===e.hexPad?t="0x0"+t.substring(2):"right"===e.hexPad?t+="0":Ft.throwArgumentError("hex data is odd-length","value",t)),t.toLowerCase();if($t(t)){for(var n="0x",i=0;i<t.length;i++){var o=t[i];n+=Kt[(240&o)>>
24]+Kt[15&o]}return n}return Ft.throwArgumentError("invalid hexlify value","value",t)}function Xt(t){if("string"!==typeof t)t=Yt(t);else if(!Vt(t)||t.length%2)return null;return(t.length-2)/2}function Jt(t,e,r){return"string"!==typeof t?t=Yt(t):(!Vt(t)||t.length%2)&&Ft.throwArgumentError("invalid hexData","value",t),e=2+2*e,null!=r?"0x"+t.substring(e,2+2*r):"0x"+t.substring(e)}function Qt(t){var e="0x";return t.forEach((function(t){e+=Yt(t).substring(2)})),e}function te(t){var e=function(t){"string"!==typeof t&&(t=Yt(t));Vt(t)||Ft.throwArgumentError("invalid hex string","value",t);t=t.substring(2);var e=0;for(;e<t.length&&"0"===t[e];)e++;return"0x"+t.substring(e)}(Yt(t,{hexPad:"left"}));return"0x"===e?"0x0":e}function ee(t,e){for("string"!==typeof t?t=Yt(t):Vt(t)||Ft.throwArgumentError("invalid hex string","value",t),t.length>2*e+2&&Ft.throwArgumentError("value out of range","value",arguments[1]);t.length<2*e+2;)t="0x0"+t.substring(2);return t}function re(t){var e={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(Ht(t)){var r=qt(t);64===r.length?(e.v=27+(r[32]>>7),r[32]&=127,e.r=Yt(r.slice(0,32)),e.s=Yt(r.slice(32,64))):65===r.length?(e.r=Yt(r.slice(0,32)),e.s=Yt(r.slice(32,64)),e.v=r[64]):Ft.throwArgumentError("invalid signature string","signature",t),e.v<27&&(0===e.v||1===e.v?e.v+=27:Ft.throwArgumentError("signature invalid v byte","signature",t)),e.recoveryParam=1-e.v%2,e.recoveryParam&&(r[32]|=128),e._vs=Yt(r.slice(32,64))}else{if(e.r=t.r,e.s=t.s,e.v=t.v,e.recoveryParam=t.recoveryParam,e._vs=t._vs,null!=e._vs){var n=function(t,e){(t=qt(t)).length>e&&Ft.throwArgumentError("value out of range","value",arguments[0]);var r=new Uint8Array(e);return r.set(t,e-t.length),Dt(r)}(qt(e._vs),32);e._vs=Yt(n);var i=n[0]>=128?1:0;null==e.recoveryParam?e.recoveryParam=i:e.recoveryParam!==i&&Ft.throwArgumentError("signature recoveryParam mismatch _vs","signature",t),n[0]&=127;var o=Yt(n);null==e.s?e.s=o:e.s!==o&&Ft.throwArgumentError("signature v mismatch _vs","signature",t)}if(null==e.recoveryParam)null==e.v?Ft.throwArgumentError("signature missing v and recoveryParam","signature",t):0===e.v||1===e.v?e.recoveryParam=e.v:e.recoveryParam=1-e.v%2;else if(null==e.v)e.v=27+e.recoveryParam;else{var a=0===e.v||1===e.v?e.v:1-e.v%2;e.recoveryParam!==a&&Ft.throwArgumentError("signature recoveryParam mismatch v","signature",t)}null!=e.r&&Vt(e.r)?e.r=ee(e.r,32):Ft.throwArgumentError("signature missing or invalid r","signature",t),null!=e.s&&Vt(e.s)?e.s=ee(e.s,32):Ft.throwArgumentError("signature missing or invalid s","signature",t);var s=qt(e.s);s[0]>=128&&Ft.throwArgumentError("signature s out of range","signature",t),e.recoveryParam&&(s[0]|=128);var u=Yt(s);e._vs&&(Vt(e._vs)||Ft.throwArgumentError("signature invalid _vs","signature",t),e._vs=ee(e._vs,32)),null==e._vs?e._vs=u:e._vs!==u&&Ft.throwArgumentError("signature _vs mismatch v and s","signature",t)}return e.yParityAndS=e._vs,e.compact=e.r+e.yParityAndS.substring(2),e}var ne=jt().BN,ie=new bt("bignumber/5.7.0"),oe={},ae=9007199254740991;var se=!1,ue=function(){function t(e,r){(0,l.Z)(this,t),e!==oe&&ie.throwError("cannot call constructor directly; use BigNumber.from",bt.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=r,this._isBigNumber=!0,Object.freeze(this)}return(0,f.Z)(t,[{key:"fromTwos",value:function(t){return le(fe(this).fromTwos(t))}},{key:"toTwos",value:function(t){return le(fe(this).toTwos(t))}},{key:"abs",value:function(){return"-"===this._hex[0]?t.from(this._hex.substring(1)):this}},{key:"add",value:function(t){return le(fe(this).add(fe(t)))}},{key:"sub",value:function(t){return le(fe(this).sub(fe(t)))}},{key:"div",value:function(e){return t.from(e).isZero()&&he("division-by-zero","div"),le(fe(this).div(fe(e)))}},{key:"mul",value:function(t){return le(fe(this).mul(fe(t)))}},{key:"mod",value:function(t){var e=fe(t);return e.isNeg()&&he("division-by-zero","mod"),le(fe(this).umod(e))}},{key:"pow",value:function(t){var e=fe(t);return e.isNeg()&&he("negative-power","pow"),le(fe(this).pow(e))}},{key:"and",value:function(t){var e=fe(t);return(this.isNegative()||e.isNeg())&&he("unbound-bitwise-result","and"),le(fe(this).and(e))}},{key:"or",value:function(t){var e=fe(t);return(this.isNegative()||e.isNeg())&&he("unbound-bitwise-result","or"),le(fe(this).or(e))}},{key:"xor",value:function(t){var e=fe(t);return(this.isNegative()||e.isNeg())&&he("unbound-bitwise-result","xor"),le(fe(this).xor(e))}},{key:"mask",value:function(t){return(this.isNegative()||t<0)&&he("negative-width","mask"),le(fe(this).maskn(t))}},{key:"shl",value:function(t){return(this.isNegative()||t<0)&&he("negative-width","shl"),le(fe(this).shln(t))}},{key:"shr",value:function(t){return(this.isNegative()||t<0)&&he("negative-width","shr"),le(fe(this).shrn(t))}},{key:"eq",value:function(t){return fe(this).eq(fe(t))}},{key:"lt",value:function(t){return fe(this).lt(fe(t))}},{key:"lte",value:function(t){return fe(this).lte(fe(t))}},{key:"gt",value:function(t){return fe(this).gt(fe(t))}},{key:"gte",value:function(t){return fe(this).gte(fe(t))}},{key:"isNegative",value:function(){return"-"===this._hex[0]}},{key:"isZero",value:function(){return fe(this).isZero()}},{key:"toNumber",value:function(){try{return fe(this).toNumber()}catch(t){he("overflow","toNumber",this.toString())}return null}},{key:"toBigInt",value:function(){try{return BigInt(this.toString())}catch(t){}return ie.throwError("this platform does not support BigInt",bt.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}},{key:"toString",value:function(){return arguments.length>0&&(10===arguments[0]?se||(se=!0,ie.warn("BigNumber.toString does not accept any parameters;
2 base-10 is assumed")):16===arguments[0]?ie.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",bt.errors.UNEXPECTED_ARGUMENT,{}):ie.throwError("BigNumber.toString does not accept parameters",bt.errors.UNEXPECTED_ARGUMENT,{})),fe(this).toString(10)}},{key:"toHexString",value:function(){return this._hex}},{key:"toJSON",value:function(t){return{type:"BigNumber",hex:this.toHexString()}}}],[{key:"from",value:function(e){if(e instanceof t)return e;if("string"===typeof e)return e.match(/^-?0x[0-9a-f]+$/i)?new t(oe,ce(e)):e.match(/^-?[0-9]+$/)?new t(oe,ce(new ne(e))):ie.throwArgumentError("invalid BigNumber string","value",e);if("number"===typeof e)return e%1&&he("underflow","BigNumber.from",e),(e>=ae||e<=-ae)&&he("overflow","BigNumber.from",e),t.from(String(e));var r=e;if("bigint"===typeof r)return t.from(r.toString());if($t(r))return t.from(Yt(r));if(r)if(r.toHexString){var n=r.toHexString();if("string"===typeof n)return t.from(n)}else{var i=r._hex;if(null==i&&"BigNumber"===r.type&&(i=r.hex),"string"===typeof i&&(Vt(i)||"-"===i[0]&&Vt(i.substring(1))))return t.from(i)}return ie.throwArgumentError("invalid BigNumber value","value",e)}},{key:"isBigNumber",value:function(t){return!(!t||!t._isBigNumber)}}]),t}();function ce(t){if("string"!==typeof t)return ce(t.toString(16));if("-"===t[0])return"-"===(t=t.substring(1))[0]&&ie.throwArgumentError("invalid hex","value",t),"0x00"===(t=ce(t))?t:"-"+t;if("0x"!==t.substring(0,2)&&(t="0x"+t),"0x"===t)return"0x00";for(t.length%2&&(t="0x0"+t.substring(2));t.length>4&&"0x00"===t.substring(0,4);)t="0x"+t.substring(4);return t}function le(t){return ue.from(ce(t))}function fe(t){var e=ue.from(t).toHexString();return"-"===e[0]?new ne("-"+e.substring(3),16):new ne(e.substring(2),16)}function he(t,e,r){var n={fault:t,operation:e};return null!=r&&(n.value=r),ie.throwError(t,bt.errors.NUMERIC_FAULT,n)}var de=r(37676),pe=r.n(de);function ve(t){return"0x"+pe().keccak_256(qt(t))}var me=new bt("rlp/5.7.0");function ge(t){for(var e=[];t;)e.unshift(255&t),t>>=8;return e}function ye(t,e,r){for(var n=0,i=0;i<r;i++)n=256*n+t[e+i];return n}function be(t){if(Array.isArray(t)){var e=[];if(t.forEach((function(t){e=e.concat(be(t))})),e.length<=55)return e.unshift(192+e.length),e;var r=ge(e.length);return r.unshift(247+r.length),r.concat(e)}Ht(t)||me.throwArgumentError("RLP object must be BytesLike","object",t);var n=Array.prototype.slice.call(qt(t));if(1===n.length&&n[0]<=127)return n;if(n.length<=55)return n.unshift(128+n.length),n;var i=ge(n.length);return i.unshift(183+i.length),i.concat(n)}function we(t){return Yt(be(t))}function _e(t,e,r,n){for(var i=[];r<e+1+n;){var o=xe(t,r);i.push(o.result),(r+=o.consumed)>e+1+n&&me.throwError("child data too short",bt.errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:i}}function xe(t,e){if(0===t.length&&me.throwError("data too short",bt.errors.BUFFER_OVERRUN,{}),t[e]>=248){var r=t[e]-247;e+1+r>t.length&&me.throwError("data short segment too short",bt.errors.BUFFER_OVERRUN,{});var n=ye(t,e+1,r);return e+1+r+n>t.length&&me.throwError("data long segment too short",bt.errors.BUFFER_OVERRUN,{}),_e(t,e,e+1+r,r+n)}if(t[e]>=192){var i=t[e]-192;return e+1+i>t.length&&me.throwError("data array too short",bt.errors.BUFFER_OVERRUN,{}),_e(t,e,e+1,i)}if(t[e]>=184){var o=t[e]-183;e+1+o>t.length&&me.throwError("data array too short",bt.errors.BUFFER_OVERRUN,{});var a=ye(t,e+1,o);return e+1+o+a>t.length&&me.throwError("data array too short",bt.errors.BUFFER_OVERRUN,{}),{consumed:1+o+a,result:Yt(t.slice(e+1+o,e+1+o+a))}}if(t[e]>=128){var s=t[e]-128;return e+1+s>t.length&&me.throwError("data too short",bt.errors.BUFFER_OVERRUN,{}),{consumed:1+s,result:Yt(t.slice(e+1,e+1+s))}}return{consumed:1,result:Yt(t[e])}}function Ee(t){var e=qt(t),r=xe(e,0);return r.consumed!==e.length&&me.throwArgumentError("invalid rlp data","data",t),r.result}var Ae=new bt("address/5.7.0");function Me(t){Vt(t,20)||Ae.throwArgumentError("invalid address","address",t);for(var e=(t=t.toLowerCase()).substring(2).split(""),r=new Uint8Array(40),n=0;n<40;n++)r[n]=e[n].charCodeAt(0);for(var i=qt(ve(r)),o=0;o<40;o+=2)i[o>>1]>>4>=8&&(e[o]=e[o].toUpperCase()),(15&i[o>>1])>=8&&(e[o+1]=e[o+1].toUpperCase());return"0x"+e.join("")}for(var ke={},Se=0;Se<10;Se++)ke[String(Se)]=String(Se);for(var Ie=0;Ie<26;Ie++)ke[String.fromCharCode(65+Ie)]=String(10+Ie);var Pe,Ne=Math.floor((Pe=9007199254740991,Math.log10?Math.log10(Pe):Math.log(Pe)/Math.LN10));function Ce(t){for(var e=(t=(t=t.toUpperCase()).substring(4)+t.substring(0,2)+"00").split("").map((function(t){return ke[t]})).join("");e.length>=Ne;){var r=e.substring(0,Ne);e=parseInt(r,10)%97+e.substring(r.length)}for(var n=String(98-parseInt(e,10)%97);n.length<2;)n="0"+n;return n}function Oe(t){var e,r=null;if("string"!==typeof t&&Ae.throwArgumentError("invalid address","address",t),t.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==t.substring(0,2)&&(t="0x"+t),r=Me(t),t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&r!==t&&Ae.throwArgumentError("bad address checksum","address",t);else if(t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(t.substring(2,4)!==Ce(t)&&Ae.throwArgumentError("bad icap checksum","address",t),e=t.substring(4),r=new ne(e,36).toString(16);r.length<40;)r="0"+r;r=Me("0x"+r)}else Ae.throwArgumentError("invalid address","address",t);return r}var Te,Re,Be="hash/5.7.0",Le=new bt("strings/5.7.0");function Ze(t,e,r,n,i){if(t===Re.BAD_PREFIX||t===Re.UNEXPECTED_CONTINUE){for(var o=0,a=e+1;a<r.length&&r[a]>>6===2;a++)o++;return o}return t===Re.OVERRUN?r.length-e-1:0}!function(t){t.current="",t.NFC="NFC",t.NFD="NFD",t.NFKC="NFKC",t.NFKD="NFKD"}(Te||(Te={})),function(t){t.UNEXPECTED_CONTINUE="unexpected continuation byte",t.BAD_PREFIX="bad codepoint prefix",t.OVERRUN="string overrun",t.MISSING_CONTINUE="missing continuation byte",t.OUT_OF_RANGE="out of UTF-8 range",t.UTF16_SURROGATE="UTF-16 surrogate",t.OVERLONG="overlong representation"}(Re||(Re={}));var je=Object.freeze({error:function(t,e,r,n,i){return Le.throwArgumentError("invalid codepoint at offset ".concat(e,"; ").concat(t),"bytes",r)},ignore:Ze,replace:function(t,e,r,n,i){return t===Re.OVERLONG?(n.push(i),0):(n.push(65533),Ze(t,e,r))}});function Fe(t,e){null==e&&(e=je.error),t=qt(t);for(var r=[],n=0;n<t.length;){var i=t[n++];if(i>>7!==0){var o=null,a=null;if(192===(224&i))o=1,a=127;else if(224===(240&i))o=2,a=2047;
2else{if(240!==(248&i)){n+=e(128===(192&i)?Re.UNEXPECTED_CONTINUE:Re.BAD_PREFIX,n-1,t,r);continue}o=3,a=65535}if(n-1+o>=t.length)n+=e(Re.OVERRUN,n-1,t,r);else{for(var s=i&(1<<8-o-1)-1,u=0;u<o;u++){var c=t[n];if(128!=(192&c)){n+=e(Re.MISSING_CONTINUE,n,t,r),s=null;break}s=s<<6|63&c,n++}null!==s&&(s>1114111?n+=e(Re.OUT_OF_RANGE,n-1-o,t,r,s):s>=55296&&s<=57343?n+=e(Re.UTF16_SURROGATE,n-1-o,t,r,s):s<=a?n+=e(Re.OVERLONG,n-1-o,t,r,s):r.push(s))}}else r.push(i)}return r}function Ue(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Te.current;e!=Te.current&&(Le.checkNormalize(),t=t.normalize(e));for(var r=[],n=0;n<t.length;n++){var i=t.charCodeAt(n);if(i<128)r.push(i);else if(i<2048)r.push(i>>6|192),r.push(63&i|128);else if(55296==(64512&i)){n++;var o=t.charCodeAt(n);if(n>=t.length||56320!==(64512&o))throw new Error("invalid utf-8 string");var a=65536+((1023&i)<<10)+(1023&o);r.push(a>>18|240),r.push(a>>12&63|128),r.push(a>>6&63|128),r.push(63&a|128)}else r.push(i>>12|224),r.push(i>>6&63|128),r.push(63&i|128)}return qt(r)}function De(t,e){return Fe(t,e).map((function(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10&1023),56320+(1023&t)))})).join("")}function He(t){return ve(Ue(t))}var ze=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{u(n.next(t))}catch(e){o(e)}}function s(t){try{u(n.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},$e=new bt(Be),qe=new Uint8Array(32);qe.fill(0);var Ge=ue.from(-1),We=ue.from(0),Ve=ue.from(1),Ke=ue.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");var Ye=ee(Ve.toHexString(),32),Xe=ee(We.toHexString(),32),Je={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},Qe=["name","version","chainId","verifyingContract","salt"];function tr(t){return function(e){return"string"!==typeof e&&$e.throwArgumentError("invalid domain value for ".concat(JSON.stringify(t)),"domain.".concat(t),e),e}}var er={name:tr("name"),version:tr("version"),chainId:function(t){try{return ue.from(t).toString()}catch(e){}return $e.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",t)},verifyingContract:function(t){try{return Oe(t).toLowerCase()}catch(e){}return $e.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",t)},salt:function(t){try{var e=qt(t);if(32!==e.length)throw new Error("bad length");return Yt(e)}catch(r){}return $e.throwArgumentError('invalid domain value "salt"',"domain.salt",t)}};function rr(t){var e=t.match(/^(u?)int(\d*)$/);if(e){var r=""===e[1],n=parseInt(e[2]||"256");(n%8!==0||n>256||e[2]&&e[2]!==String(n))&&$e.throwArgumentError("invalid numeric width","type",t);var i=Ke.mask(r?n-1:n),o=r?i.add(Ve).mul(Ge):We;return function(e){var r=ue.from(e);return(r.lt(o)||r.gt(i))&&$e.throwArgumentError("value out-of-bounds for ".concat(t),"value",e),ee(r.toTwos(256).toHexString(),32)}}var a=t.match(/^bytes(\d+)$/);if(a){var s=parseInt(a[1]);return(0===s||s>32||a[1]!==String(s))&&$e.throwArgumentError("invalid bytes width","type",t),function(e){return qt(e).length!==s&&$e.throwArgumentError("invalid length for ".concat(t),"value",e),function(t){var e=qt(t),r=e.length%32;return r?Qt([e,qe.slice(r)]):Yt(e)}(e)}}switch(t){case"address":return function(t){return ee(Oe(t),32)};case"bool":return function(t){return t?Ye:Xe};case"bytes":return function(t){return ve(t)};case"string":return function(t){return He(t)}}return null}function nr(t,e){return"".concat(t,"(").concat(e.map((function(t){var e=t.name;return t.type+" "+e})).join(","),")")}var ir=function(){function t(e){(0,l.Z)(this,t),xt(this,"types",Object.freeze(Pt(e))),xt(this,"_encoderCache",{}),xt(this,"_types",{});var r={},n={},i={};Object.keys(e).forEach((function(t){r[t]={},n[t]=[],i[t]={}}));var o=function(t){var i={};e[t].forEach((function(o){i[o.name]&&$e.throwArgumentError("duplicate variable name ".concat(JSON.stringify(o.name)," in ").concat(JSON.stringify(t)),"types",e),i[o.name]=!0;var a=o.type.match(/^([^\x5b]*)(\x5b|$)/)[1];a===t&&$e.throwArgumentError("circular type reference to ".concat(JSON.stringify(a)),"types",e),rr(a)||(n[a]||$e.throwArgumentError("unknown type ".concat(JSON.stringify(a)),"types",e),n[a].push(t),r[t][a]=!0)}))};for(var a in e)o(a);var s=Object.keys(n).filter((function(t){return 0===n[t].length}));for(var u in 0===s.length?$e.throwArgumentError("missing primary type","types",e):s.length>1&&$e.throwArgumentError("ambiguous primary types or unused types: ".concat(s.map((function(t){return JSON.stringify(t)})).join(", ")),"types",e),xt(this,"primaryType",s[0]),function t(o,a){a[o]&&$e.throwArgumentError("circular type reference to ".concat(JSON.stringify(o)),"types",e),a[o]=!0,Object.keys(r[o]).forEac
2h((function(e){n[e]&&(t(e,a),Object.keys(a).forEach((function(t){i[t][e]=!0})))})),delete a[o]}(this.primaryType,{}),i){var c=Object.keys(i[u]);c.sort(),this._types[u]=nr(u,e[u])+c.map((function(t){return nr(t,e[t])})).join("")}}return(0,f.Z)(t,[{key:"getEncoder",value:function(t){var e=this._encoderCache[t];return e||(e=this._encoderCache[t]=this._getEncoder(t)),e}},{key:"_getEncoder",value:function(t){var e=this,r=rr(t);if(r)return r;var n=t.match(/^(.*)(\x5b(\d*)\x5d)$/);if(n){var i=n[1],o=this.getEncoder(i),a=parseInt(n[3]);return function(t){a>=0&&t.length!==a&&$e.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t);var r=t.map(o);return e._types[i]&&(r=r.map(ve)),ve(Qt(r))}}var s=this.types[t];if(s){var u=He(this._types[t]);return function(t){var r=s.map((function(r){var n=r.name,i=r.type,o=e.getEncoder(i)(t[n]);return e._types[i]?ve(o):o}));return r.unshift(u),Qt(r)}}return $e.throwArgumentError("unknown type: ".concat(t),"type",t)}},{key:"encodeType",value:function(t){var e=this._types[t];return e||$e.throwArgumentError("unknown type: ".concat(JSON.stringify(t)),"name",t),e}},{key:"encodeData",value:function(t,e){return this.getEncoder(t)(e)}},{key:"hashStruct",value:function(t,e){return ve(this.encodeData(t,e))}},{key:"encode",value:function(t){return this.encodeData(this.primaryType,t)}},{key:"hash",value:function(t){return this.hashStruct(this.primaryType,t)}},{key:"_visit",value:function(t,e,r){var n=this;if(rr(t))return r(t,e);var i=t.match(/^(.*)(\x5b(\d*)\x5d)$/);if(i){var o=i[1],a=parseInt(i[3]);return a>=0&&e.length!==a&&$e.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",e),e.map((function(t){return n._visit(o,t,r)}))}var s=this.types[t];return s?s.reduce((function(t,i){var o=i.name,a=i.type;return t[o]=n._visit(a,e[o],r),t}),{}):$e.throwArgumentError("unknown type: ".concat(t),"type",t)}},{key:"visit",value:function(t,e){return this._visit(this.primaryType,t,e)}}],[{key:"from",value:function(e){return new t(e)}},{key:"getPrimaryType",value:function(e){return t.from(e).primaryType}},{key:"hashStruct",value:function(e,r,n){return t.from(r).hashStruct(e,n)}},{key:"hashDomain",value:function(e){var r=[];for(var n in e){var i=Je[n];i||$e.throwArgumentError("invalid typed-data domain key: ".concat(JSON.stringify(n)),"domain",e),r.push({name:n,type:i})}return r.sort((function(t,e){return Qe.indexOf(t.name)-Qe.indexOf(e.name)})),t.hashStruct("EIP712Domain",{EIP712Domain:r},e)}},{key:"encode",value:function(e,r,n){return Qt(["0x1901",t.hashDomain(e),t.from(r).hash(n)])}},{key:"hash",value:function(e,r,n){return ve(t.encode(e,r,n))}},{key:"resolveNames",value:function(e,r,n,i){return ze(this,void 0,void 0,(0,u.Z)().mark((function o(){var a,s,c;return(0,u.Z)().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:e=Mt(e),a={},e.verifyingContract&&!Vt(e.verifyingContract,20)&&(a[e.verifyingContract]="0x"),(s=t.from(r)).visit(n,(function(t,e){return"address"!==t||Vt(e,20)||(a[e]="0x"),e})),o.t0=(0,u.Z)().keys(a);case 6:if((o.t1=o.t0()).done){o.next=13;break}return c=o.t1.value,o.next=10,i(c);case 10:a[c]=o.sent,o.next=6;break;case 13:return e.verifyingContract&&a[e.verifyingContract]&&(e.verifyingContract=a[e.verifyingContract]),n=s.visit(n,(function(t,e){return"address"===t&&a[e]?a[e]:e})),o.abrupt("return",{domain:e,value:n});case 16:case"end":return o.stop()}}),o)})))}},{key:"getPayload",value:function(e,r,n){t.hashDomain(e);var i={},o=[];Qe.forEach((function(t){var r=e[t];null!=r&&(i[t]=er[t](r),o.push({name:t,type:Je[t]}))}));var a=t.from(r),s=Mt(r);return s.EIP712Domain?$e.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",r):s.EIP712Domain=o,a.encode(n),{types:s,domain:i,primaryType:a.primaryType,message:a.visit(n,(function(t,e){if(t.match(/^bytes(\d*)/))return Yt(qt(e));if(t.match(/^u?int/))return ue.from(e).toString();switch(t){case"address":return e.toLowerCase();case"bool":return!!e;case"string":return"string"!==typeof e&&$e.throwArgumentError("invalid string","value",e),e}return $e.throwArgumentError("unsupported type","type",t)}))}}}]),t}(),or=ue.from(0),ar=r(37553),sr=r.n(ar);"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof r.g?r.g:"undefined"!==typeof self&&self;function ur(t,e,r){return r={path:e,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}((void 0===e||null===e)&&r.path)}},t(r,r.exports),r.exports}var cr=lr;function lr(t,e){if(!t)throw new Error(e||"Assertion failed")}lr.equal=function(t,e,r){if(t!=e)throw new Error(r||"Assertion failed: "+t+" != "+e)};var fr=ur((function(t,e){var r=e;function n(t){return 1===t.length?"0"+t:t}function i(t){for(var e="",r=0;r<t.length;r++)e+=n(t[r].toString(16));return e}r.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if("string"!==typeof t){for(var n=0;n<t.length;n++)r[n]=0|t[n];return r}if("hex"===e){(t=t.replace(/[^a-z0-9]+/gi,"")).length%2!==0&&(t="0"+t);for(n=0;n<t.length;n+=2)r.push(parseInt(t[n]+t[n+1],16))}else for(n=0;n<t.length;n++){var i=t.charCodeAt(n),o=i>>8,a=255&i;o?r.push(o,a):r.push(a)}return r},r.zero2=n,r.toHex=i,r.encode=function(t,e){return"hex"===e?i(t):t}})),hr=ur((function(t,e){var r=e;r.assert=cr,r.toArray=fr.toArray,r.zero2=fr.zero2,r.toHex=fr.toHex,r.encode=fr.encode,r.getNAF=function(t,e,r){var n=new Array(Math.max(t.bitLength(),r)+1);n.fill(0);for(var i=1<<e+1,o=t.clone(),a=0;a<n.length;a++){var s,u=o.andln(i-1);o.isOdd()?(s=u>(i>>1)-1?(i>>1)-u:u,o.isubn(s)):s=0,n[a]=s,o.iushrn(1)}return n},r.getJSF=function(t,e){var r=[[],[]];t=t.clone(),e=e.clone();for(var n,i=0,o=0;t.cmpn(-i)>0||e.cmpn(-o)>0;){var a,s,u=t.andln(3)+i&3,c=e.andln(3)+o&3;3===u&&(u=-1),3===c&&(c=-1),a=0===(1&u)?0:3!==(n=t.andln(7)+i&7)&&5!==n||2!==c?u:-u,r[0].push(a),s=0===(1&c)?0:3!==(n=e.andln(7)+o&7)&&5!==n||2!==u?c:-c,r[1].push(s),2*i===a+1&&(i=1-i),2*o===s+1&&(o=1-o),t.iushrn(1),e.iushrn(1)}return r},r.cachedProperty=function(t,e,r){var n="_"+e;t.prototype[e]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},r.parseBytes=function(t){return"string"===typeof t?r.toArray(t,"hex"):t},r.intFromLE=function(t){return new(jt())(t,"hex","le")}})),dr=hr.getNAF,pr=hr.getJSF,vr=hr.assert;function mr(t,e){this.type=t,this.p=new(jt())(e.p,16),this.red=e.prime?jt().red(e.prime):jt().mont(this.p),this.zero=new(jt())(0).toRed(this.red),this.one=new(jt())(1).toRed(this.red),this.two=new(jt())(2).toRed(this.red),this.n=e.n&&new(jt())(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var gr=mr;
vendor: 1,339 bytes, line 2
2function yr(t,e){this.curve=t,this.type=e,this.precomputed=null}mr.prototype.point=function(){throw new Error("Not implemented")},mr.prototype.validate=function(){throw new Error("Not implemented")},mr.prototype._fixedNafMul=function(t,e){vr(t.precomputed);var r=t._getDoubles(),n=dr(e,1,this._bitLength),i=(1<<r.step+1)-(r.step%2===0?2:1);i/=3;var o,a,s=[];for(o=0;o<n.length;o+=r.step){a=0;for(var u=o+r.step-1;u>=o;u--)a=(a<<1)+n[u];s.push(a)}for(var c=this.jpoint(null,null,null),l=this.jpoint(null,null,null),f=i;f>0;f--){for(o=0;o<s.length;o++)(a=s[o])===f?l=l.mixedAdd(r.points[o]):a===-f&&(l=l.mixedAdd(r.points[o].neg()));c=c.add(l)}return c.toP()},mr.prototype._wnafMul=function(t,e){var r=4,n=t._getNAFPoints(r);r=n.wnd;for(var i=n.points,o=dr(e,r,this._bitLength),a=this.jpoint(null,null,null),s=o.length-1;s>=0;s--){for(var u=0;s>=0&&0===o[s];s--)u++;if(s>=0&&u++,a=a.dblp(u),s<0)break;var c=o[s];vr(0!==c),a="affine"===t.type?c>0?a.mixedAdd(i[c-1>>1]):a.mixedAdd(i[-c-1>>1].neg()):c>0?a.add(i[c-1>>1]):a.add(i[-c-1>>1].neg())}return"affine"===t.type?a.toP():a},mr.prototype._wnafMulAdd=function(t,e,r,n,i){var o,a,s,u=this._wnafT1,c=this._wnafT2,l=this._wnafT3,f=0;for(o=0;o<n;o++){var h=(s=e[o])._getNAFPoints(t);u[o]=h.wnd,c[o]=h.points}for(o=n-1;o>=1;o-=2){var d=o-1,p=o;if(1===u[d]&&1===u[p]){var v=[e[d],null,null,e[p]];
20===e[d].y.cmp(e[p].y)?(v[1]=e[d].add(e[p]),v[2]=e[d].toJ().mixedAdd(e[p].neg())):0===e[d].y.cmp(e[p].y.redNeg())?(v[1]=e[d].toJ().mixedAdd(e[p]),v[2]=e[d].add(e[p].neg())):(v[1]=e[d].toJ().mixedAdd(e[p]),v[2]=e[d].toJ().mixedAdd(e[p].neg()));var m=[-3,-1,-5,-7,0,7,5,1,3],g=pr(r[d],r[p]);for(f=Math.max(g[0].length,f),l[d]=new Array(f),l[p]=new Array(f),a=0;a<f;a++){var y=0|g[0][a],b=0|g[1][a];l[d][a]=m[3*(y+1)+(b+1)],l[p][a]=0,c[d]=v}}else l[d]=dr(r[d],u[d],this._bitLength),l[p]=dr(r[p],u[p],this._bitLength),f=Math.max(l[d].length,f),f=Math.max(l[p].length,f)}var w=this.jpoint(null,null,null),_=this._wnafT4;for(o=f;o>=0;o--){for(var x=0;o>=0;){var E=!0;for(a=0;a<n;a++)_[a]=0|l[a][o],0!==_[a]&&(E=!1);if(!E)break;x++,o--}if(o>=0&&x++,w=w.dblp(x),o<0)break;for(a=0;a<n;a++){var A=_[a];0!==A&&(A>0?s=c[a][A-1>>1]:A<0&&(s=c[a][-A-1>>1].neg()),w="affine"===s.type?w.mixedAdd(s):w.add(s))}}for(o=0;o<n;o++)c[o]=null;return i?w:w.toP()},mr.BasePoint=yr,yr.prototype.eq=function(){throw new Error("Not implemented")},yr.prototype.validate=function(){return this.curve.validate(this)},mr.prototype.decodePoint=function(t,e){t=hr.toArray(t,e);var r=this.p.byteLength();if((4===t[0]||6===t[0]||7===t[0])&&t.length-1===2*r)return 6===t[0]?vr(t[t.length-1]%2===0):7===t[0]&&vr(t[t.length-1]%2===1),this.point(t.slice(1,1+r),t.slice(1+r,1+2*r));if((2===t[0]||3===t[0])&&t.length-1===r)return this.pointFromX(t.slice(1,1+r),3===t[0]);throw new Error("Unknown point format")},yr.prototype.encodeCompressed=function(t){return this.encode(t,!0)},yr.prototype._encode=function(t){var e=this.curve.p.byteLength(),r=this.getX().toArray("be",e);return t?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",e))},yr.prototype.encode=function(t,e){return hr.encode(this._encode(e),t)},yr.prototype.precompute=function(t){if(this.precomputed)return this;var e={doubles:null,naf:null,beta:null};return e.naf=this._getNAFPoints(8),e.doubles=this._getDoubles(4,t),e.beta=this._getBeta(),this.precomputed=e,this},yr.prototype._hasDoubles=function(t){if(!this.precomputed)return!1;var e=this.precomputed.doubles;return!!e&&e.points.length>=Math.ceil((t.bitLength()+1)/e.step)},yr.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<e;i+=t){for(var o=0;o<t;o++)n=n.dbl();r.push(n)}return{step:t,points:r}},yr.prototype._getNAFPoints=function(t){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var e=[this],r=(1<<t)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)e[i]=e[i-1].add(n);return{wnd:t,points:e}},yr.prototype._getBeta=function(){return null},yr.prototype.dblp=function(t){for(var e=this,r=0;r<t;r++)e=e.dbl();return e};var br=ur((function(t){"function"===typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}})),wr=hr.assert;function _r(t){gr.call(this,"short",t),this.a=new(jt())(t.a,16).toRed(this.red),this.b=new(jt())(t.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(t),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}br(_r,gr);var xr=_r;function Er(t,e,r,n){gr.BasePoint.call(this,t,"affine"),null===e&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new(jt())(e,16),this.y=new(jt())(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function Ar(t,e,r,n){gr.BasePoint.call(this,t,"jacobian"),null===e&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new(jt())(0)):(this.x=new(jt())(e,16),this.y=new(jt())(r,16),this.z=new(jt())(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}_r.prototype._getEndomorphism=function(t){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var e,r;if(t.beta)e=new(jt())(t.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);e=(e=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(t.lambda)r=new(jt())(t.lambda,16);else{var i=this._getEndoRoots(this.n);0===this.g.mul(i[0]).x.cmp(this.g.x.redMul(e))?r=i[0]:(r=i[1],wr(0===this.g.mul(r).x.cmp(this.g.x.redMul(e))))}return{beta:e,lambda:r,basis:t.basis?t.basis.map((function(t){return{a:new(jt())(t.a,16),b:new(jt())(t.b,16)}})):this._getEndoBasis(r)}}},_r.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:jt().mont(t),r=new(jt())(2).toRed(e).redInvm(),n=r.redNeg(),i=new(jt())(3).toRed(e).redNeg().redSqrt().redMul(r);return[n.redAdd(i).fromRed(),n.redSub(i).fromRed()]},_r.prototype._getEndoBasis=function(t){for(var e,r,n,i,o,a,s,u,c,l=this.n.ushrn(Math.floor(this.n.bitLength()/2)),f=t,h=this.n.clone(),d=new(jt())(1),p=new(jt())(0),v=new(jt())(0),m=new(jt())(1),g=0;0!==f.cmpn(0);){var y=h.div(f);u=h.sub(y.mul(f)),c=v.sub(y.mul(d));var b=m.sub(y.mul(p));if(!n&&u.cmp(l)<0)e=s.neg(),r=d,n=u.neg(),i=c;else if(n&&2===++g)break;
vendor: 15,293 bytes, line 2
2s=u,h=f,f=u,v=d,d=c,m=p,p=b}o=u.neg(),a=c;var w=n.sqr().add(i.sqr());return o.sqr().add(a.sqr()).cmp(w)>=0&&(o=e,a=r),n.negative&&(n=n.neg(),i=i.neg()),o.negative&&(o=o.neg(),a=a.neg()),[{a:n,b:i},{a:o,b:a}]},_r.prototype._endoSplit=function(t){var e=this.endo.basis,r=e[0],n=e[1],i=n.b.mul(t).divRound(this.n),o=r.b.neg().mul(t).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),u=i.mul(r.b),c=o.mul(n.b);return{k1:t.sub(a).sub(s),k2:u.add(c).neg()}},_r.prototype.pointFromX=function(t,e){(t=new(jt())(t,16)).red||(t=t.toRed(this.red));var r=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var i=n.fromRed().isOdd();return(e&&!i||!e&&i)&&(n=n.redNeg()),this.point(t,n)},_r.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,r=t.y,n=this.a.redMul(e),i=e.redSqr().redMul(e).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},_r.prototype._endoWnafMulAdd=function(t,e,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o<t.length;o++){var a=this._endoSplit(e[o]),s=t[o],u=s._getBeta();a.k1.negative&&(a.k1.ineg(),s=s.neg(!0)),a.k2.negative&&(a.k2.ineg(),u=u.neg(!0)),n[2*o]=s,n[2*o+1]=u,i[2*o]=a.k1,i[2*o+1]=a.k2}for(var c=this._wnafMulAdd(1,n,i,2*o,r),l=0;l<2*o;l++)n[l]=null,i[l]=null;return c},br(Er,gr.BasePoint),_r.prototype.point=function(t,e,r){return new Er(this,t,e,r)},_r.prototype.pointFromJSON=function(t,e){return Er.fromJSON(this,t,e)},Er.prototype._getBeta=function(){if(this.curve.endo){var t=this.precomputed;if(t&&t.beta)return t.beta;var e=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(t){var r=this.curve,n=function(t){return r.point(t.x.redMul(r.endo.beta),t.y)};t.beta=e,e.precomputed={beta:null,naf:t.naf&&{wnd:t.naf.wnd,points:t.naf.points.map(n)},doubles:t.doubles&&{step:t.doubles.step,points:t.doubles.points.map(n)}}}return e}},Er.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},Er.fromJSON=function(t,e,r){"string"===typeof e&&(e=JSON.parse(e));var n=t.point(e[0],e[1],r);if(!e[2])return n;function i(e){return t.point(e[0],e[1],r)}var o=e[2];return n.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[n].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[n].concat(o.naf.points.map(i))}},n},Er.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},Er.prototype.isInfinity=function(){return this.inf},Er.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(t.x).redInvm()));var r=e.redSqr().redISub(this.x).redISub(t.x),n=e.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},Er.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(0===t.cmpn(0))return this.curve.point(null,null);var e=this.curve.a,r=this.x.redSqr(),n=t.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(e).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},Er.prototype.getX=function(){return this.x.fromRed()},Er.prototype.getY=function(){return this.y.fromRed()},Er.prototype.mul=function(t){return t=new(jt())(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},Er.prototype.mulAdd=function(t,e,r){var n=[this,e],i=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},Er.prototype.jmulAdd=function(t,e,r){var n=[this,e],i=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},Er.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},Er.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var r=this.precomputed,n=function(t){return t.neg()};e.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return e},Er.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},br(Ar,gr.BasePoint),_r.prototype.jpoint=function(t,e,r){return new Ar(this,t,e,r)},Ar.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),r=this.x.redMul(e),n=this.y.redMul(e).redMul(t);return this.curve.point(r,n)},Ar.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},Ar.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(e),i=t.x.redMul(r),o=this.y.redMul(e.redMul(t.z)),a=t.y.redMul(r.redMul(this.z)),s=n.redSub(i),u=o.redSub(a);if(0===s.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),l=c.redMul(s),f=n.redMul(c),h=u.redSqr().redIAdd(l).redISub(f).redISub(f),d=u.redMul(f.redISub(h)).redISub(o.redMul(l)),p=this.z.redMul(t.z).redMul(s);return this.curve.jpoint(h,d,p)},Ar.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),r=this.x,n=t.x.redMul(e),i=this.y,o=t.y.redMul(e).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),c=u.redMul(a),l=r.redMul(u),f=s.redSqr().redIAdd(c).redISub(l).redISub(l),h=s.redMul(l.redISub(f)).redISub(i.redMul(c)),d=this.z.redMul(a);return this.curve.jpoint(f,h,d)},Ar.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();var e;if(this.curve.zeroA||this.curve.threeA){var r=this;for(e=0;e<t;e++)r=r.dbl();return r}var n=this.curve.a,i=this.curve.tinv,o=this.x,a=this.y,s=this.z,u=s.redSqr().redSqr(),c=a.redAdd(a);for(e=0;e<t;e++){var l=o.redSqr(),f=c.redSqr(),h=f.redSqr(),d=l.redAdd(l).redIAdd(l).redIAdd(n.redMul(u)),p=o.redMul(f),v=d.redSqr().redISub(p.redAdd(p)),m=p.redISub(v),g=d.redMul(m);g=g.redIAdd(g).redISub(h);var y=c.redMul(s);e+1<t&&(u=u.redMul(h)),o=v,s=y,c=g}return this.curve.jpoint(o,c.redMul(i),s)},Ar.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},Ar.prototype._zeroDbl=function(){var t,e,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n),u=s.redSqr().redISub(a).redISub(a),c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),t=u,e=s.redMul(a.redISub(u)).redISub(c),r=this.y.redAdd(this.y)}else{var l=this.x.redSqr(),f=this.y.redSqr(),h=f.redSqr(),d=this.x.redAdd(f).redSqr().redISub(l).redISub(h);d=d.redIAdd(d);var p=l.redAdd(l).redIAdd(l),v=p.redSqr(),m=h.redIAdd(h);m=(m=m.redIAdd(m)).redIAdd(m),t=v.redISub(d).redISub(d),e=p.redMul(d.redISub(t)).redISub(m),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(t,e,r)},Ar.prototype._threeDbl=function(){var t,e,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),u=s.redSqr().redISub(a).redISub(a);t=u;var c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),e=s.redMul(a.redISub(u)).redISub(c),r=this.y.redAdd(this.y)}else{var l=this.z.redSqr(),f=this.y.redSqr(),h=this.x.redMul(f),d=this.x.redSub(l).redMul(this.x.redAdd(l));d=d.redAdd(d).redIAdd(d);var p=h.redIAdd(h),v=(p=p.redIAdd(p)).redAdd(p);t=d.redSqr().redISub(v),r=this.y.redAdd(this.z).redSqr().redISub(f).redISub(l);var m=f.redSqr();m=(m=(m=m.redIAdd(m)).redIAdd(m)).redIAdd(m),e=d.redMul(p.redISub(t)).redISub(m)}return this.curve.jpoint(t,e,r)},Ar.prototype._dbl=function(){var t=this.curve.a,e=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),o=e.redSqr(),a=r.redSqr(),s=o.redAdd(o).redIAdd(o).redIAdd(t.redMul(i)),u=e.redAdd(e),c=(u=u.redIAdd(u)).redMul(a),l=s.redSqr().redISub(c.redAdd(c)),f=c.redISub(l),h=a.redSqr();h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var d=s.redMul(f).redISub(h),p=r.redAdd(r).redMul(n);return this.curve.jpoint(l,d,p)},Ar.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var t=this.x.redSqr(),e=this.y.redSqr(),r=this.z.redSqr(),n=e.redSqr(),i=t.redAdd(t).redIAdd(t),o=i.redSqr(),a=this.x.redAdd(e).redSqr().redISub(t).redISub(n),s=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(o)).redSqr(),u=n.redIAdd(n);u=(u=(u=u.redIAdd(u)).redIAdd(u)).redIAdd(u);var c=i.redIAdd(a).redSqr().redISub(o).redISub(s).redISub(u),l=e.redMul(c);l=(l=l.redIAdd(l)).redIAdd(l);var f=this.x.redMul(s).redISub(l);f=(f=f.redIAdd(f)).redIAdd(f);var h=this.y.redMul(c.redMul(u.redISub(c)).redISub(a.redMul(s)));h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var d=this.z.redAdd(a).redSqr().redISub(r).redISub(s);return this.curve.jpoint(f,h,d)},Ar.prototype.mul=function(t,e){return t=new(jt())(t,e),this.curve._wnafMul(this,t)},Ar.prototype.eq=function(t){if("affine"===t.type)return this.eq(t.toJ());if(this===t)return!0;var e=this.z.redSqr(),r=t.z.redSqr();if(0!==this.x.redMul(r).redISub(t.x.redMul(e)).cmpn(0))return!1;var n=e.redMul(this.z),i=r.redMul(t.z);return 0===this.y.redMul(i).redISub(t.y.redMul(n)).cmpn(0)},Ar.prototype.eqXToP=function(t){var e=this.z.redSqr(),r=t.toRed(this.curve.red).redMul(e);if(0===this.x.cmp(r))return!0;for(var n=t.clone(),i=this.curve.redN.redMul(e);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},Ar.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},Ar.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var Mr=ur((function(t,e){var r=e;r.base=gr,r.short=xr,r.mont=null,r.edwards=null})),kr=ur((function(t,e){var r,n=e,i=hr.assert;function o(t){"short"===t.type?this.curve=new Mr.short(t):"edwards"===t.type?this.curve=new Mr.edwards(t):this.curve=new Mr.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,i(this.g.validate(),"Invalid curve"),i(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function a(t,e){Object.defineProperty(n,t,{configurable:!0,enumerable:!0,get:function(){var r=new o(e);return Object.defineProperty(n,t,{configurable:!0,enumerable:!0,value:r}),r}})}n.PresetCurve=o,a("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:sr().sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),a("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:sr().sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),a("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:sr().sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),a("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:sr().sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),a("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:sr().sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),a("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:sr().sha256,gRed:!1,g:["9"]}),a("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:sr().sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=null.crash()}catch(s){r=void 0}a("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:sr().sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"}
2,{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})}));function Sr(t){if(!(this instanceof Sr))return new Sr(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=fr.toArray(t.entropy,t.entropyEnc||"hex"),r=fr.toArray(t.nonce,t.nonceEnc||"hex"),n=fr.toArray(t.pers,t.persEnc||"hex");cr(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,r,n)}var Ir=Sr;Sr.prototype._init=function(t,e,r){var n=t.concat(e).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},Sr.prototype._hmac=function(){return new(sr().hmac)(this.hash,this.K)},Sr.prototype._update=function(t){var e=this._hmac().update(this.V).update([0]);t&&(e=e.update(t)),this.K=e.digest(),this.V=this._hmac().update(this.V).digest(),t&&(this.K=this._hmac().update(this.V).update([1]).update(t).digest(),this.V=this._hmac().update(this.V).digest())},Sr.prototype.reseed=function(t,e,r,n){"string"!==typeof e&&(n=r,r=e,e=null),t=fr.toArray(t,e),r=fr.toArray(r,n),cr(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(r||[])),this._reseed=1},Sr.prototype.generate=function(t,e,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!==typeof e&&(n=r,r=e,e=null),r&&(r=fr.toArray(r,n||"hex"),this._update(r));for(var i=[];i.length<t;)this.V=this._hmac().update(this.V).digest(),i=i.concat(this.V);var o=i.slice(0,t);return this._update(r),this._reseed++,fr.encode(o,e)};var Pr=hr.assert;function Nr(t,e){this.ec=t,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}var Cr=Nr;Nr.fromPublic=function(t,e,r){return e instanceof Nr?e:new Nr(t,{pub:e,pubEnc:r})},Nr.fromPrivate=function(t,e,r){return e instanceof Nr?e:new Nr(t,{priv:e,privEnc:r})},Nr.prototype.validate=function(){var t=this.getPublic();return t.isInfinity()?{result:!1,reason:"Invalid public key"}:t.validate()?t.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},Nr.prototype.getPublic=function(t,e){return"string"===typeof t&&(e=t,t=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),e?this.pub.encode(e,t):this.pub},Nr.prototype.getPrivate=function(t){return"hex"===t?this.priv.toString(16,2):this.priv},Nr.prototype._importPrivate=function(t,e){this.priv=new(jt())(t,e||16),this.priv=this.priv.umod(this.ec.curve.n)},Nr.prototype._importPublic=function(t,e){if(t.x||t.y)return"mont"===this.ec.curve.type?Pr(t.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||Pr(t.x&&t.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(t.x,t.y));this.pub=this.ec.curve.decodePoint(t,e)},Nr.prototype.derive=function(t){return t.validate()||Pr(t.validate(),"public point not validated"),t.mul(this.priv).getX()},Nr.prototype.sign=function(t,e,r){return this.ec.sign(t,this,e,r)},Nr.prototype.verify=function(t,e){return this.ec.verify(t,e,this)},Nr.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var Or=hr.assert;function Tr(t,e){if(t instanceof Tr)return t;this._importDER(t,e)||(Or(t.r&&t.s,"Signature without r or s"),this.r=new(jt())(t.r,16),this.s=new(jt())(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}var Rr=Tr;function Br(){this.place=0}function Lr(t,e){var r=t[e.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var i=0,o=0,a=e.place;o<n;o++,a++)i<<=8,i|=t[a],i>>>=0;return!(i<=127)&&(e.place=a,i)}function Zr(t){for(var e=0,r=t.length-1;!t[e]&&!(128&t[e+1])&&e<r;)e++;return 0===e?t:t.slice(e)}function jr(t,e){if(e<128)t.push(e);else{var r=1+(Math.log(e)/Math.LN2>>>3);for(t.push(128|r);--r;)t.push(e>>>(r<<3)&255);t.push(e)}}Tr.prototype._importDER=function(t,e){t=hr.toArray(t,e);var r=new Br;if(48!==t[r.place++])return!1;var n=Lr(t,r);
2if(!1===n)return!1;if(n+r.place!==t.length)return!1;if(2!==t[r.place++])return!1;var i=Lr(t,r);if(!1===i)return!1;var o=t.slice(r.place,i+r.place);if(r.place+=i,2!==t[r.place++])return!1;var a=Lr(t,r);if(!1===a)return!1;if(t.length!==a+r.place)return!1;var s=t.slice(r.place,a+r.place);if(0===o[0]){if(!(128&o[1]))return!1;o=o.slice(1)}if(0===s[0]){if(!(128&s[1]))return!1;s=s.slice(1)}return this.r=new(jt())(o),this.s=new(jt())(s),this.recoveryParam=null,!0},Tr.prototype.toDER=function(t){var e=this.r.toArray(),r=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&r[0]&&(r=[0].concat(r)),e=Zr(e),r=Zr(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var n=[2];jr(n,e.length),(n=n.concat(e)).push(2),jr(n,r.length);var i=n.concat(r),o=[48];return jr(o,i.length),o=o.concat(i),hr.encode(o,t)};var Fr=function(){throw new Error("unsupported")},Ur=hr.assert;function Dr(t){if(!(this instanceof Dr))return new Dr(t);"string"===typeof t&&(Ur(Object.prototype.hasOwnProperty.call(kr,t),"Unknown curve "+t),t=kr[t]),t instanceof kr.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}var Hr=Dr;Dr.prototype.keyPair=function(t){return new Cr(this,t)},Dr.prototype.keyFromPrivate=function(t,e){return Cr.fromPrivate(this,t,e)},Dr.prototype.keyFromPublic=function(t,e){return Cr.fromPublic(this,t,e)},Dr.prototype.genKeyPair=function(t){t||(t={});for(var e=new Ir({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||Fr(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),n=this.n.sub(new(jt())(2));;){var i=new(jt())(e.generate(r));if(!(i.cmp(n)>0))return i.iaddn(1),this.keyFromPrivate(i)}},Dr.prototype._truncateToN=function(t,e){var r=8*t.byteLength()-this.n.bitLength();return r>0&&(t=t.ushrn(r)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t},Dr.prototype.sign=function(t,e,r,n){"object"===typeof r&&(n=r,r=null),n||(n={}),e=this.keyFromPrivate(e,r),t=this._truncateToN(new(jt())(t,16));for(var i=this.n.byteLength(),o=e.getPrivate().toArray("be",i),a=t.toArray("be",i),s=new Ir({hash:this.hash,entropy:o,nonce:a,pers:n.pers,persEnc:n.persEnc||"utf8"}),u=this.n.sub(new(jt())(1)),c=0;;c++){var l=n.k?n.k(c):new(jt())(s.generate(this.n.byteLength()));if(!((l=this._truncateToN(l,!0)).cmpn(1)<=0||l.cmp(u)>=0)){var f=this.g.mul(l);if(!f.isInfinity()){var h=f.getX(),d=h.umod(this.n);if(0!==d.cmpn(0)){var p=l.invm(this.n).mul(d.mul(e.getPrivate()).iadd(t));if(0!==(p=p.umod(this.n)).cmpn(0)){var v=(f.getY().isOdd()?1:0)|(0!==h.cmp(d)?2:0);return n.canonical&&p.cmp(this.nh)>0&&(p=this.n.sub(p),v^=1),new Rr({r:d,s:p,recoveryParam:v})}}}}}},Dr.prototype.verify=function(t,e,r,n){t=this._truncateToN(new(jt())(t,16)),r=this.keyFromPublic(r,n);var i=(e=new Rr(e,"hex")).r,o=e.s;if(i.cmpn(1)<0||i.cmp(this.n)>=0)return!1;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var a,s=o.invm(this.n),u=s.mul(t).umod(this.n),c=s.mul(i).umod(this.n);return this.curve._maxwellTrick?!(a=this.g.jmulAdd(u,r.getPublic(),c)).isInfinity()&&a.eqXToP(i):!(a=this.g.mulAdd(u,r.getPublic(),c)).isInfinity()&&0===a.getX().umod(this.n).cmp(i)},Dr.prototype.recoverPubKey=function(t,e,r,n){Ur((3&r)===r,"The recovery param is more than two bits"),e=new Rr(e,n);var i=this.n,o=new(jt())(t),a=e.r,s=e.s,u=1&r,c=r>>1;if(a.cmp(this.curve.p.umod(this.curve.n))>=0&&c)throw new Error("Unable to find sencond key candinate");a=c?this.curve.pointFromX(a.add(this.curve.n),u):this.curve.pointFromX(a,u);var l=e.r.invm(i),f=i.sub(o).mul(l).umod(i),h=s.mul(l).umod(i);return this.g.mulAdd(f,a,h)},Dr.prototype.getKeyRecoveryParam=function(t,e,r,n){if(null!==(e=new Rr(e,n)).recoveryParam)return e.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(t,e,i)}catch(t){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")};var zr=ur((function(t,e){var r=e;r.version="6.5.4",r.utils=hr,r.rand=function(){throw new Error("unsupported")},r.curve=Mr,r.curves=kr,r.ec=Hr,r.eddsa=null})).ec,$r=new bt("signing-key/5.7.0"),qr=null;function Gr(){return qr||(qr=new zr("secp256k1")),qr}var Wr=function(){function t(e){(0,l.Z)(this,t),xt(this,"curve","secp256k1"),xt(this,"privateKey",Yt(e)),32!==Xt(this.privateKey)&&$r.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");var r=Gr().keyFromPrivate(qt(this.privateKey));xt(this,"publicKey","0x"+r.getPublic(!1,"hex")),xt(this,"compressedPublicKey","0x"+r.getPublic(!0,"hex")),xt(this,"_isSigningKey",!0)}return(0,f.Z)(t,[{key:"_addPoint",value:function(t){var e=Gr().keyFromPublic(qt(this.publicKey)),r=Gr().keyFromPublic(qt(t));return"0x"+e.pub.add(r.pub).encodeCompressed("hex")}},{key:"signDigest",value:function(t){var e=Gr().keyFromPrivate(qt(this.privateKey)),r=qt(t);32!==r.length&&$r.throwArgumentError("bad digest length","digest",t);var n=e.sign(r,{canonical:!0});return re({recoveryParam:n.recoveryParam,r:ee("0x"+n.r.toString(16),32),s:ee("0x"+n.s.toString(16),32)})}},{key:"computeSharedSecret",value:function(t){var e=Gr().keyFromPrivate(qt(this.privateKey)),r=Gr().keyFromPublic(qt(Vr(t)));return ee("0x"+e.derive(r.getPublic()).toString(16),32)}}],[{key:"isSigningKey",value:function(t){return!(!t||!t._isSigningKey)}}]),t}();function Vr(t,e){var r=qt(t);if(32===r.length){var n=new Wr(r);return e?"0x"+Gr().keyFromPrivate(r).getPublic(!0,"hex"):n.publicKey}return 33===r.length?e?Yt(r):"0x"+Gr().keyFromPublic(r).getPublic(!1,"hex"):65===r.length?e?"0x"+Gr().keyFromPublic(r).getPublic(!0,"hex"):Yt(r):$r.throwArgumentError("invalid public or private key","key","[REDACTED]")}var Kr,Yr=new bt("transactions/5.7.0");function Xr(t){return"0x"===t?null:Oe(t)}function Jr(t){return"0x"===t?or:ue.from(t)}!function(t){t[t.legacy=0]="legacy",t[t.eip2930=1]="eip2930",t[t.eip1559=2]="eip1559"}(Kr||(Kr={}));function Qr(t,e){return function(t){return Oe(Jt(ve(Jt(Vr(t),1)),12))}(function(t,e){var r=re(e),n={r:qt(r.r),s:qt(r.s)};return"0x"+Gr().recoverPubKey(qt(t),n,r.recoveryParam).encode("hex",!1)}(qt(t),e))}function tn(t,e){var r=Wt(ue.from(t).toHexString());return r.length>32&&Yr.throwArgumentError("invalid length for "+e,"transaction:"+e,t),r}function en(t,e){return{address:Oe(t),storageKeys:(e||[]).map((function(e,r){return 32!==Xt(e)&&Yr.throwArgumentError("invalid access list storageKey","accessList[".concat(t,":").concat(r,"]"),e),e.toLowerCase()}))}}function rn(t){if(Array.isArray(t))return t.map((function(t,e){return Array.isArray(t)?(t.length>2&&Yr.throwArgumentError("access list expected to be [ address, storageKeys[] ]","value[".concat(e,"]"),t),en(t[0],t[1])):en(t.address,t.storageKeys)}));var e=Object.keys(t).map((function(e){var r=t[e].reduce((function(t,e){return t[e]=!0,t}),{});return en(e,Object.keys(r).sort())}));return e.sort((function(t,e){return t.address.localeCompare(e.address)})),e}function nn(t){return rn(t).map((function(t){return[t.address,t.storageKeys]}))}function on(t,e){if(null!=t.gasPrice){var r=ue.from(t.gasPrice),n=ue.from(t.maxFeePerGas||0);r.eq(n)||Yr.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:r,maxFeePerGas:n})}var i=[tn(t.chainId||0,"chainId"),tn(t.nonce||0,"nonce"),tn(t.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),tn(t.maxFeePerGas||0,"maxFeePerGas"),tn(t.gasLimit||0,"gasLim
2it"),null!=t.to?Oe(t.to):"0x",tn(t.value||0,"value"),t.data||"0x",nn(t.accessList||[])];if(e){var o=re(e);i.push(tn(o.recoveryParam,"recoveryParam")),i.push(Wt(o.r)),i.push(Wt(o.s))}return Qt(["0x02",we(i)])}function an(t,e){var r=[tn(t.chainId||0,"chainId"),tn(t.nonce||0,"nonce"),tn(t.gasPrice||0,"gasPrice"),tn(t.gasLimit||0,"gasLimit"),null!=t.to?Oe(t.to):"0x",tn(t.value||0,"value"),t.data||"0x",nn(t.accessList||[])];if(e){var n=re(e);r.push(tn(n.recoveryParam,"recoveryParam")),r.push(Wt(n.r)),r.push(Wt(n.s))}return Qt(["0x01",we(r)])}function sn(t,e,r){try{var n=Jr(e[0]).toNumber();if(0!==n&&1!==n)throw new Error("bad recid");t.v=n}catch(o){Yr.throwArgumentError("invalid v for transaction type: 1","v",e[0])}t.r=ee(e[1],32),t.s=ee(e[2],32);try{var i=ve(r(t));t.from=Qr(i,{r:t.r,s:t.s,recoveryParam:t.v})}catch(o){}}function un(t){var e=qt(t);if(e[0]>127)return function(t){var e=Ee(t);9!==e.length&&6!==e.length&&Yr.throwArgumentError("invalid raw transaction","rawTransaction",t);var r={nonce:Jr(e[0]).toNumber(),gasPrice:Jr(e[1]),gasLimit:Jr(e[2]),to:Xr(e[3]),value:Jr(e[4]),data:e[5],chainId:0};if(6===e.length)return r;try{r.v=ue.from(e[6]).toNumber()}catch(a){return r}if(r.r=ee(e[7],32),r.s=ee(e[8],32),ue.from(r.r).isZero()&&ue.from(r.s).isZero())r.chainId=r.v,r.v=0;else{r.chainId=Math.floor((r.v-35)/2),r.chainId<0&&(r.chainId=0);var n=r.v-27,i=e.slice(0,6);0!==r.chainId&&(i.push(Yt(r.chainId)),i.push("0x"),i.push("0x"),n-=2*r.chainId+8);var o=ve(we(i));try{r.from=Qr(o,{r:Yt(r.r),s:Yt(r.s),recoveryParam:n})}catch(a){}r.hash=ve(t)}return r.type=null,r}(e);switch(e[0]){case 1:return function(t){var e=Ee(t.slice(1));8!==e.length&&11!==e.length&&Yr.throwArgumentError("invalid component count for transaction type: 1","payload",Yt(t));var r={type:1,chainId:Jr(e[0]).toNumber(),nonce:Jr(e[1]).toNumber(),gasPrice:Jr(e[2]),gasLimit:Jr(e[3]),to:Xr(e[4]),value:Jr(e[5]),data:e[6],accessList:rn(e[7])};return 8===e.length||(r.hash=ve(t),sn(r,e.slice(8),an)),r}(e);case 2:return function(t){var e=Ee(t.slice(1));9!==e.length&&12!==e.length&&Yr.throwArgumentError("invalid component count for transaction type: 2","payload",Yt(t));var r=Jr(e[2]),n=Jr(e[3]),i={type:2,chainId:Jr(e[0]).toNumber(),nonce:Jr(e[1]).toNumber(),maxPriorityFeePerGas:r,maxFeePerGas:n,gasPrice:null,gasLimit:Jr(e[4]),to:Xr(e[5]),value:Jr(e[6]),data:e[7],accessList:rn(e[8])};return 9===e.length||(i.hash=ve(t),sn(i,e.slice(9),on)),i}(e)}return Yr.throwError("unsupported transaction type: ".concat(e[0]),bt.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:e[0]})}function cn(t){t=atob(t);for(var e=[],r=0;r<t.length;r++)e.push(t.charCodeAt(r));return qt(e)}function ln(t){t=qt(t);for(var e="",r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return btoa(e)}var fn=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{u(n.next(t))}catch(e){o(e)}}function s(t){try{u(n.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))};function hn(t,e){return fn(this,void 0,void 0,(0,u.Z)().mark((function r(){var n,i,o,a,s;return(0,u.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return null==e&&(e={}),n={method:e.method||"GET",headers:e.headers||{},body:e.body||void 0},!0!==e.skipFetchSetup&&(n.mode="cors",n.cache="no-cache",n.credentials="same-origin",n.redirect="follow",n.referrer="client"),null!=e.fetchOptions&&((i=e.fetchOptions).mode&&(n.mode=i.mode),i.cache&&(n.cache=i.cache),i.credentials&&(n.credentials=i.credentials),i.redirect&&(n.redirect=i.redirect),i.referrer&&(n.referrer=i.referrer)),r.next=7,fetch(t,n);case 7:return o=r.sent,r.next=10,o.arrayBuffer();case 10:return a=r.sent,s={},o.headers.forEach?o.headers.forEach((function(t,e){s[e.toLowerCase()]=t})):o.headers.keys().forEach((function(t){s[t.toLowerCase()]=o.headers.get(t)})),r.abrupt("return",{headers:s,statusCode:o.status,statusMessage:o.statusText,body:qt(new Uint8Array(a))});case 14:case"end":return r.stop()}}),r)})))}var dn=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{u(n.next(t))}catch(e){o(e)}}function s(t){try{u(n.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},pn=new bt("web/5.7.1");function vn(t){return new Promise((function(e){setTimeout(e,t)}))}function mn(t,e){if(null==t)return null;if("string"===typeof t)return t;if(Ht(t)){if(e&&("text"===e.split("/")[0]||"application/json"===e.split(";")[0].trim()))try{return De(t)}catch(r){}return Yt(t)}return t}function gn(t,e,r){var n=null;if(null!=e){n=Ue(e);var i="string"===typeof t?{url:t}:Mt(t);if(i.headers)0!==Object.keys(i.headers).filter((function(t){return"content-type"===t.toLowerCase()})).length||(i.headers=Mt(i.headers),i.headers["content-type"]="application/json");else i.headers={"content-type":"application/json"};t=i}return function(t,e,r){var n="object"===typeof t&&null!=t.throttleLimit?t.throttleLimit:12;pn.assertArgument(n>0&&n%1===0,"invalid connection throttle limit","connection.throttleLimit",n);var i="object"===typeof t?t.throttleCallback:null,o="object"===typeof t&&"number"===typeof t.throttleSlotInterval?t.throttleSlotInterval:100;pn.assertArgument(o>0&&o%1===0,"invalid connection throttle slot interval","connection.throttleSlotInterval",o);var a="object"===typeof t&&!!t.errorPassThrough,s={},c=null,l={method:"GET"},f=!1,h=12e4;if("string"===typeof t)c=t;else if("object"===typeof t){if(null!=t&&null!=t.url||pn.throwArgumentError("missing URL","connection.url",t),c=t.url,"number"===typeof t.timeout&&t.timeout>
20&&(h=t.timeout),t.headers)for(var d in t.headers)s[d.toLowerCase()]={key:d,value:String(t.headers[d])},["if-none-match","if-modified-since"].indexOf(d.toLowerCase())>=0&&(f=!0);if(l.allowGzip=!!t.allowGzip,null!=t.user&&null!=t.password){"https:"!==c.substring(0,6)&&!0!==t.allowInsecureAuthentication&&pn.throwError("basic authentication requires a secure https url",bt.errors.INVALID_ARGUMENT,{argument:"url",url:c,user:t.user,password:"[REDACTED]"});var p=t.user+":"+t.password;s.authorization={key:"Authorization",value:"Basic "+ln(Ue(p))}}null!=t.skipFetchSetup&&(l.skipFetchSetup=!!t.skipFetchSetup),null!=t.fetchOptions&&(l.fetchOptions=Mt(t.fetchOptions))}var v,m=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),g=c?c.match(m):null;if(g)try{var y={statusCode:200,statusMessage:"OK",headers:{"content-type":g[1]||"text/plain"},body:g[2]?cn(g[3]):(v=g[3],Ue(v.replace(/%([0-9a-f][0-9a-f])/gi,(function(t,e){return String.fromCharCode(parseInt(e,16))}))))},b=y.body;return r&&(b=r(y.body,y)),Promise.resolve(b)}catch(E){pn.throwError("processing response error",bt.errors.SERVER_ERROR,{body:mn(g[1],g[2]),error:E,requestBody:null,requestMethod:"GET",url:c})}e&&(l.method="POST",l.body=e,null==s["content-type"]&&(s["content-type"]={key:"Content-Type",value:"application/octet-stream"}),null==s["content-length"]&&(s["content-length"]={key:"Content-Length",value:String(e.length)}));var w={};Object.keys(s).forEach((function(t){var e=s[t];w[e.key]=e.value})),l.headers=w;var _=function(){var t=null;return{promise:new Promise((function(e,r){h&&(t=setTimeout((function(){null!=t&&(t=null,r(pn.makeError("timeout",bt.errors.TIMEOUT,{requestBody:mn(l.body,w["content-type"]),requestMethod:l.method,timeout:h,url:c})))}),h))})),cancel:function(){null!=t&&(clearTimeout(t),t=null)}}}(),x=function(){return dn(this,void 0,void 0,(0,u.Z)().mark((function t(){var e,s,h,d,p,v,m,g,y,b;return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=0;case 1:if(!(e<n)){t.next=65;break}return s=null,t.prev=3,t.next=6,hn(c,l);case 6:if(s=t.sent,!(e<n)){t.next=28;break}if(301!==s.statusCode&&302!==s.statusCode){t.next=15;break}if(h=s.headers.location||"","GET"!==l.method||!h.match(/^https:/)){t.next=13;break}return c=s.headers.location,t.abrupt("continue",62);case 13:t.next=28;break;case 15:if(429!==s.statusCode){t.next=28;break}if(d=!0,!i){t.next=21;break}return t.next=20,i(e,c);case 20:d=t.sent;case 21:if(!d){t.next=28;break}return p=0,v=s.headers["retry-after"],p="string"===typeof v&&v.match(/^[1-9][0-9]*$/)?1e3*parseInt(v):o*parseInt(String(Math.random()*Math.pow(2,e))),t.next=27,vn(p);case 27:return t.abrupt("continue",62);case 28:t.next=34;break;case 30:t.prev=30,t.t0=t.catch(3),null==(s=t.t0.response)&&(_.cancel(),pn.throwError("missing response",bt.errors.SERVER_ERROR,{requestBody:mn(l.body,w["content-type"]),requestMethod:l.method,serverError:t.t0,url:c}));case 34:if(m=s.body,f&&304===s.statusCode?m=null:!a&&(s.statusCode<200||s.statusCode>=300)&&(_.cancel(),pn.throwError("bad response",bt.errors.SERVER_ERROR,{status:s.statusCode,headers:s.headers,body:mn(m,s.headers?s.headers["content-type"]:null),requestBody:mn(l.body,w["content-type"]),requestMethod:l.method,url:c})),!r){t.next=60;break}return t.prev=37,t.next=40,r(m,s);case 40:return g=t.sent,_.cancel(),t.abrupt("return",g);case 45:if(t.prev=45,t.t1=t.catch(37),!(t.t1.throttleRetry&&e<n)){t.next=58;break}if(y=!0,!i){t.next=53;break}return t.next=52,i(e,c);case 52:y=t.sent;case 53:if(!y){t.next=58;break}return b=o*parseInt(String(Math.random()*Math.pow(2,e))),t.next=57,vn(b);case 57:return t.abrupt("continue",62);case 58:_.cancel(),pn.throwError("processing response error",bt.errors.SERVER_ERROR,{body:mn(m,s.headers?s.headers["content-type"]:null),error:t.t1,requestBody:mn(l.body,w["content-type"]),requestMethod:l.method,url:c});case 60:return _.cancel(),t.abrupt("return",m);case 62:e++,t.next=1;break;case 65:return t.abrupt("return",pn.throwError("failed response",bt.errors.SERVER_ERROR,{requestBody:mn(l.body,w["content-type"]),requestMethod:l.method,url:c}));case 66:case"end":return t.stop()}}),t,null,[[3,30],[37,45]])})))}();return Promise.race([_.promise,x])}(t,n,(function(t,e){var n=null;if(null!=t)try{n=JSON.parse(De(t))}catch(i){pn.throwError("invalid JSON",bt.errors.SERVER_ERROR,{body:t,error:i})}return r&&(n=r(n,e)),n}))}function yn(t,e){return e||(e={}),null==(e=Mt(e)).floor&&(e.floor=0),null==e.ceiling&&(e.ceiling=1e4),null==e.interval&&(e.interval=250),new Promise((function(r,n){var i=null,o=!1,a=function(){return!o&&(o=!0,i&&clearTimeout(i),!0)};e.timeout&&(i=setTimeout((function(){a()&&n(new Error("timeout"))}),e.timeout));var s=e.retryLimit,u=0;!function i(){return t().then((function(t){if(void 0!==t)a()&&r(t);else if(e.oncePoll)e.oncePoll.once("poll",i);else if(e.onceBlock)e.onceBlock.once("block",i);else if(!o){if(++u>s)return void(a()&&n(new Error("retry limit reached")));var c=e.interval*parseInt(String(Math.random()*Math.pow(2,u)));c<e.floor&&(c=e.floor),c>e.ceiling&&(c=e.ceiling),setTimeout(i,c)}return null}),(function(t){a()&&n(t)}))}()}))}var bn=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{u(n.next(t))}catch(e){o(e)}}function s(t){try{u(n.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},wn=new bt("abstract-provider/5.7.0"),_n=function(t){(0,a.Z)(r,t);var e=(0,s.Z)(r);function r(){return(0,l.Z)(this,r),e.apply(this,arguments)}return(0,f.Z)(r,null,[{key:"isForkEvent",value:function(t){return!(!t||!t._isForkEvent)}}]),r}(Nt),xn=function(){function t(){(0,l.Z)(this,t),wn.checkAbstract(this instanceof t?this.constructor:void 0,t),xt(this,"_isProvider",!0)}return(0,f.Z)(t,[{key:"getFeeData",value:function(){return bn(this,void 0,void 0,(0,u.Z)().mark((function t(){var e,r,n,i,o,a;return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,At({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch((function(t){return null}))});case 2:return e=t.sent,r=e.block,n=e.gasPrice,i=null,o=null,a=null,r&&r.baseFeePerGas&&(i=r.baseFeePerGas,a=ue.from("1500000000"),o=r.baseFeePerGas.mul(2).add(a)),t.abrupt("return",{lastBaseFeePerGas:i,maxFeePerGas:o,maxPriorityFeePerGas:a,gasPrice:n});case 8:case"end":return t.stop()}}),t,this)})))}},{key:"addListener",value:function(t,e){return this.on(t,e)}},{key:"removeListener",value:function(t,e){return this.off(t,e)}}],[{key:"isProvider",value:function(t){return!(!t||!t._isProvider)}}]),t}(),En=function(){function t(e){(0,l.Z)(this,t),xt(this,"alphabet",e),xt(this,"base",e.length),xt(this,"_alphabetMap",{}),xt(this,"_leader",e.charAt(0));for(var r=0;r<e.length;r++)this._alphabetMap[e.charAt(r)]=r}return(0,f.Z)(t,[{key:"encode",value:function(t){var e=qt(t);if(0===e.length)return"";for(var r=[0],n=0;n<e.length;++n){for(var i=e[n],o=0;o<r.length;++o)i+=r[o]<<8,r[o]=i%this.base,i=i/this.base|0;for(;i>0;)r.push(i%this.base),i=i/this.base|0}for(var a="",s=0;0===e[s]&&s<e.length-1;++s)a+=this._leader;for(var u=r.length-1;u>=0;--u)a+=this.alphabet[r[u]];return a}},{key:"decode",value:function(t){if("string"!==typeof t)throw new TypeError("Expected String");var e=[];
2if(0===t.length)return new Uint8Array(e);e.push(0);for(var r=0;r<t.length;r++){var n=this._alphabetMap[t[r]];if(void 0===n)throw new Error("Non-base"+this.base+" character");for(var i=n,o=0;o<e.length;++o)i+=e[o]*this.base,e[o]=255&i,i>>=8;for(;i>0;)e.push(255&i),i>>=8}for(var a=0;t[a]===this._leader&&a<t.length-1;++a)e.push(0);return qt(new Uint8Array(e.reverse()))}}]),t}(),An=(new En("abcdefghijklmnopqrstuvwxyz234567"),new En("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")),Mn=r(37762);function kn(t,e){null==e&&(e=1);var r=[],n=r.forEach;return function t(e,i){n.call(e,(function(e){i>0&&Array.isArray(e)?t(e,i-1):r.push(e)}))}(t,e),r}function Sn(t){return function(t){var e=0;return function(){return t[e++]}}(function(t){var e=0;function r(){return t[e++]<<8|t[e++]}for(var n=r(),i=1,o=[0,1],a=1;a<n;a++)o.push(i+=r());var s=r(),u=e;e+=s;var c=0,l=0;function f(){return 0==c&&(l=l<<8|t[e++],c=8),l>>--c&1}for(var h=Math.pow(2,31),d=h>>>1,p=d>>1,v=h-1,m=0,g=0;g<31;g++)m=m<<1|f();for(var y=[],b=0,w=h;;){for(var _=Math.floor(((m-b+1)*i-1)/w),x=0,E=n;E-x>1;){var A=x+E>>>1;_<o[A]?E=A:x=A}if(0==x)break;y.push(x);for(var M=b+Math.floor(w*o[x]/i),k=b+Math.floor(w*o[x+1]/i)-1;0==((M^k)&d);)m=m<<1&v|f(),M=M<<1&v,k=k<<1&v|1;for(;M&~k&p;)m=m&d|m<<1&v>>>1|f(),M=M<<1^d,k=(k^d)<<1|d|1;b=M,w=1+k-M}var S=n-4;return y.map((function(e){switch(e-S){case 3:return S+65792+(t[u++]<<16|t[u++]<<8|t[u++]);case 2:return S+256+(t[u++]<<8|t[u++]);case 1:return S+t[u++];default:return e-1}}))}(t))}function In(t){return 1&t?~t>>1:t>>1}function Pn(t,e){for(var r=Array(t),n=0,i=-1;n<t;n++)r[n]=i+=1+e();return r}function Nn(t,e){for(var r=Array(t),n=0,i=0;n<t;n++)r[n]=i+=In(e());return r}function Cn(t,e){for(var r=Pn(t(),t),n=t(),i=Pn(n,t),o=function(t,e){for(var r=Array(t),n=0;n<t;n++)r[n]=1+e();return r}(n,t),a=0;a<n;a++)for(var s=0;s<o[a];s++)r.push(i[a]+s);return e?r.map((function(t){return e[t]})):r}function On(t,e,r){for(var n=Array(t).fill(void 0).map((function(){return[]})),i=0;i<e;i++)Nn(t,r).forEach((function(t,e){return n[e].push(t)}));return n}function Tn(t,e){var r=1+e(),n=e(),i=function(t){for(var e=[];;){var r=t();if(0==r)break;e.push(r)}return e}(e);return kn(On(i.length,1+t,e).map((function(t,e){var o=t[0],a=t.slice(1);return Array(i[e]).fill(void 0).map((function(t,e){var i=e*n;return[o+e*r,a.map((function(t){return t+i}))]}))})))}function Rn(t,e){return On(1+e(),1+t,e).map((function(t){return[t[0],t.slice(1)]}))}var Bn=Sn(cn("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ8Bol8OEBa/A78hrwAPCU8vESNvvwWfHwNfAVoDHr+ZAAED34YaAdJPAK7PLwSEgDLHAGo1Pz8Pvx9fUwMrpb8O/58VTzAPIBoXIyQJNF8hpwIVAT8YGAUADDNBaX3RAMomJCg9EhUeA29MABsZBTMNJipjOhc19gcIDR8bBwQHEggCWi6DIgLuAQYA+BAFCha3A5XiAEsqM7UFFgFLhAMjFTMYE1Klnw74nRVBG/ASCm0BYRN/BrsU3VoWy+S0vV8LQx+vN8gF2AC2AK5EAWwApgYDKmAAroQ0NDQ0AT+OCg7wAAIHRAbpNgVcBV0APTA5BfbPFgMLzcYL/QqqA82eBALKCjQCjqYCht0/k2+OAsXQAoP3ASTKDgDw6ACKAUYCMpIKJpRaAE4A5womABzZvs0REEKiACIQAd5QdAECAj4Ywg/wGqY2AVgAYADYvAoCGAEubA0gvAY2ALAAbpbvqpyEAGAEpgQAJgAG7gAgAEACmghUFwCqAMpAINQIwC4DthRAAPcycKgApoIdABwBfCisABoATwBqASIAvhnSBP8aH/ECeAKXAq40NjgDBTwFYQU6AXs3oABgAD4XNgmcCY1eCl5tIFZeUqGgyoNHABgAEQAaABNwWQAmABMATPMa3T34ADldyprmM1M2XociUQgLzvwAXT3xABgAEQAaABNwIGFAnADD8AAgAD4BBJWzaCcIAIEBFMAWwKoAAdq9BWAF5wLQpALEtQAKUSGkahR4GnJM+gsAwCgeFAiUAECQ0BQuL8AAIAAAADKeIheclvFqQAAETr4iAMxIARMgAMIoHhQIAn0E0pDQFC4HhznoAAAAIAI2C0/4lvFqQAAETgBJJwYCAy4ABgYAFAA8MBKYEH4eRhTkAjYeFcgACAYAeABsOqyQ5gRwDayqugEgaIIAtgoACgDmEABmBAWGme5OBJJA2m4cDeoAmITWAXwrMgOgAGwBCh6CBXYF1Tzg1wKAAFdiuABRAFwAXQBsAG8AdgBrAHYAbwCEAHEwfxQBVE5TEQADVFhTBwBDANILAqcCzgLTApQCrQL6vAAMAL8APLhNBKkE6glGKTAU4Dr4N2EYEwBCkABKk8rHAbYBmwIoAiU4Ajf/Aq4CowCAANIChzgaNBsCsTgeODcFXrgClQKdAqQBiQGYAqsCsjTsNHsfNPA0ixsAWTWiOAMFPDQSNCk2BDZHNow2TTZUNhk28Jk9VzI3QkEoAoICoQKwAqcAQAAxBV4FXbS9BW47YkIXP1ciUqs05DS/FwABUwJW11e6nHuYZmSh/RAYA8oMKvZ8KASoUAJYWAJ6ILAsAZSoqjpgA0ocBIhmDgDWAAawRDQoAAcuAj5iAHABZiR2AIgiHgCaAU68ACxuHAG0ygM8MiZIAlgBdF4GagJqAPZOHAMuBgoATkYAsABiAHgAMLoGDPj0HpKEBAAOJgAuALggTAHWAeAMEDbd20Uege0ADwAWADkAQgA9OHd+2MUQZBBhBgNNDkxxPxUQArEPqwvqERoM1irQ090ANK4H8ANYB/ADWANYB/AH8ANYB/ADWANYA1gDWBwP8B/YxRBkD00EcgWTBZAE2wiIJk4RhgctCNdUEnQjHEwDSgEBIypJITuYMxAlR0wRTQgIATZHbKx9PQNMMbBU+pCnA9AyVDlxBgMedhKlAC8PeCE1uk6DekxxpQpQT7NX9wBFBgASqwAS5gBJDSgAUCwGPQBI4zTYABNGAE2bAE3KAExdGABKaAbgAFBXAFCOAFBJABI2SWdObALDOq0//QomCZhvwHdTBkIQHCemEPgMNAG2ATwN7kvZBPIGPATKH34ZGg/OlZ0Ipi3eDO4m5C6igFsj9iqEBe5L9TzeC05RaQ9aC2YJ5DpkgU8DIgEOIowK3g06CG4Q9ArKbA3mEUYHOgPWSZsApgcCCxIdNhW2JhFirQsKOXgG/Br3C5AmsBMqev0F1BoiBk4BKhsAANAu6IWxWjJcHU9gBgQLJiPIFKlQIQ0mQLh4SRocBxYlqgKSQ3FKiFE3HpQh9zw+DWcuFFF9B/Y8BhlQC4I8n0asRQ8R0z6OPUkiSkwtBDaALDAnjAnQD4YMunxzAVoJIgmyDHITMhEYN8YIOgcaLpclJxYIIkaWYJsE+KAD9BPSAwwFQAlCBxQDthwuEy8VKgUOgSXYAvQ21i60ApBWgQEYBcwPJh/gEFFH4Q7qCJwCZgOEJewALhUiABginAhEZABgj9lTBi7MCMhqbSN1A2gU6GIRdAeSDlgHqBw0FcAc4nDJXgyGCSiksAlcAXYJmgFgBOQICjVcjKEgQmdUi1kYnCBiQUBd/QIyDGYVoES+h3kCjA9sEhwBNgF0BzoNAgJ4Ee4RbBCWCOyGBTW2M/k6JgRQIYQgEgooA1BszwsoJvoM+WoBpBJjAw00PnfvZ6xgtyUX/gcaMsZBYSHyC5NPzgydGsIYQ1QvGeUHwAP0GvQn60FYBgADpAQUOk4z7wS+C2oIjAlAAEoOpBgH2BhrCnKM0QEyjAG4mgNYkoQCcJAGOAcMAGgMiAV65gAeAqgIpAAGANADWAA6Aq4HngAaAIZCAT4DKDABIuYCkAOUCDLMAZYwAfQqBBzEDBYA+DhuSwLDsgKAa2ajBd5ZAo8CSjYBTiYEBk9IUgOwcuIA3ABMBhTgSAEWrEvMG+REAeBwLADIAPwABjYHBkIBzgH0bgC4AWALMgmjtLYBTuoqAIQAFmwB2AKKAN4ANgCA8gFUAE4FWvoF1AJQSgESMhksWGIBvAMgATQBDgB6BsyOpsoIIARuB9QCEBwV4gLvLwe2AgMi4BPOQsYCvd9WADIXUu5eZwqoCqdeaAC0YTQHMnM9UQAPH6k+yAdy/BZIiQImSwBQ5gBQQzSaNTFWSTYBpwGqKQK38AFtqwBI/wK37gK3rQK3sAK6280C0gK33AK3zxAAUEIAUD9SklKDArekArw5AEQAzAHCO147WTteO1k7XjtZO147WTteO1kDmChYI03AVU0oJqkKbV9GYewMpw3VRMk6ShPcYFJgMxPJLbgUwhXPJVcZPhq9JwYl5VUKDwUt1GYxCC00dhe9AEApaYNCY4ceMQpMHOhTklT5LRwAskujM7ANrRsWREEFSHXuYisWDwojAmSCAmJDXE6wXDchAqH4AmiZAmYKAp+FOBwMAmY8AmYnBG8EgAN/FAN+kzkHOXgYOYM6JCQCbB4CMjc4CwJtyAJtr/CLADRoRiwBaADfAOIASwYHmQyOAP8MwwAOtgJ3MAJ2o0ACeUxEAni7Hl3cRa9G9AJ8QAJ6yQJ9CgJ88UgBSH5kJQAsFklZSlwWGErNAtECAtDNSygDiFADh+dExpEzAvKiXQQDA69Lz0wuJgTQTU1NsAKL
2QAKK2cIcCB5EaAa4Ao44Ao5dQZiCAo7aAo5deVG1UzYLUtVUhgKT/AKTDQDqAB1VH1WwVdEHLBwplocy4nhnRTw6ApegAu+zWCKpAFomApaQApZ9nQCqWa1aCoJOADwClrYClk9cRVzSApnMApllXMtdCBoCnJw5wzqeApwXAp+cAp65iwAeEDIrEAKd8gKekwC2PmE1YfACntQCoG8BqgKeoCACnk+mY8lkKCYsAiewAiZ/AqD8AqBN2AKmMAKlzwKoAAB+AqfzaH1osgAESmodatICrOQCrK8CrWgCrQMCVx4CVd0CseLYAx9PbJgCsr4OArLpGGzhbWRtSWADJc4Ctl08QG6RAylGArhfArlIFgK5K3hwN3DiAr0aAy2zAzISAr6JcgMDM3ICvhtzI3NQAsPMAsMFc4N0TDZGdOEDPKgDPJsDPcACxX0CxkgCxhGKAshqUgLIRQLJUALJLwJkngLd03h6YniveSZL0QMYpGcDAmH1GfSVJXsMXpNevBICz2wCz20wTFTT9BSgAMeuAs90ASrrA04TfkwGAtwoAtuLAtJQA1JdA1NgAQIDVY2AikABzBfuYUZ2AILPg44C2sgC2d+EEYRKpz0DhqYAMANkD4ZyWvoAVgLfZgLeuXR4AuIw7RUB8zEoAfScAfLTiALr9ALpcXoAAur6AurlAPpIAboC7ooC652Wq5cEAu5AA4XhmHpw4XGiAvMEAGoDjheZlAL3FAORbwOSiAL3mQL52gL4Z5odmqy8OJsfA52EAv77ARwAOp8dn7QDBY4DpmsDptoA0sYDBmuhiaIGCgMMSgFgASACtgNGAJwEgLpoBgC8BGzAEowcggCEDC6kdjoAJAM0C5IKRoABZCgiAIzw3AYBLACkfng9ogigkgNmWAN6AEQCvrkEVqTGAwCsBRbAA+4iQkMCHR072jI2PTbUNsk2RjY5NvA23TZKNiU3EDcZN5I+RTxDRTBCJkK5VBYKFhZfwQCWygU3AJBRHpu+OytgNxa61A40GMsYjsn7BVwFXQVcBV0FaAVdBVwFXQVcBV0FXAVdBVwFXUsaCNyKAK4AAQUHBwKU7oICoW1e7jAEzgPxA+YDwgCkBFDAwADABKzAAOxFLhitA1UFTDeyPkM+bj51QkRCuwTQWWQ8X+0AWBYzsACNA8xwzAGm7EZ/QisoCTAbLDs6fnLfb8H2GccsbgFw13M1HAVkBW/Jxsm9CNRO8E8FDD0FBQw9FkcClOYCoMFegpDfADgcMiA2AJQACB8AsigKAIzIEAJKeBIApY5yPZQIAKQiHb4fvj5BKSRPQrZCOz0oXyxgOywfKAnGbgMClQaCAkILXgdeCD9IIGUgQj5fPoY+dT52Ao5CM0dAX9BTVG9SDzFwWTQAbxBzJF/lOEIQQglCCkKJIAls5AcClQICoKPMODEFxhi6KSAbiyfIRrMjtCgdWCAkPlFBIitCsEJRzAbMAV/OEyQzDg0OAQQEJ36i328/Mk9AybDJsQlq3tDRApUKAkFzXf1d/j9uALYP6hCoFgCTGD8kPsFKQiobrm0+zj0KSD8kPnVCRBwMDyJRTHFgMTJa5rwXQiQ2YfI/JD7BMEJEHGINTw4TOFlIRzwJO0icMQpyPyQ+wzJCRBv6DVgnKB01NgUKj2bwYzMqCoBkznBgEF+zYDIocwRIX+NgHj4HICNfh2C4CwdwFWpTG/lgUhYGAwRfv2Ts8mAaXzVgml/XYIJfuWC4HI1gUF9pYJZgMR6ilQHMAOwLAlDRefC0in4AXAEJA6PjCwc0IamOANMMCAECRQDFNRTZBgd+CwQlRA+r6+gLBDEFBnwUBXgKATIArwAGRAAHA3cDdAN2A3kDdwN9A3oDdQN7A30DfAN4A3oDfQAYEAAlAtYASwMAUAFsAHcKAHcAmgB3AHUAdQB2AHVu8UgAygDAAHcAdQB1AHYAdQALCgB3AAsAmgB3AAsCOwB3AAtu8UgAygDAAHgKAJoAdwB3AHUAdQB2AHUAeAB1AHUAdgB1bvFIAMoAwAALCgCaAHcACwB3AAsCOwB3AAtu8UgAygDAAH4ACwGgALcBpwC6AahdAu0COwLtbvFIAMoAwAALCgCaAu0ACwLtAAsCOwLtAAtu8UgAygDAA24ACwNvAAu0VsQAAzsAABCkjUIpAAsAUIusOggWcgMeBxVsGwL67U/2HlzmWOEeOgALASvuAAseAfpKUpnpGgYJDCIZM6YyARUE9ThqAD5iXQgnAJYJPnOzw0ZAEZxEKsIAkA4DhAHnTAIDxxUDK0lxCQlPYgIvIQVYJQBVqE1GakUAKGYiDToSBA1EtAYAXQJYAIF8GgMHRyAAIAjOe9YncekRAA0KACUrjwE7Ayc6AAYWAqaiKG4McEcqANoN3+Mg9TwCBhIkuCny+JwUQ29L008JluRxu3K+oAdqiHOqFH0AG5SUIfUJ5SxCGfxdipRzqTmT4V5Zb+r1Uo4Vm+NqSSEl2mNvR2JhIa8SpYO6ntdwFXHCWTCK8f2+Hxo7uiG3drDycAuKIMP5bhi06ACnqArH1rz4Rqg//lm6SgJGEVbF9xJHISaR6HxqxSnkw6shDnelHKNEfGUXSJRJ1GcsmtJw25xrZMDK9gXSm1/YMkdX4/6NKYOdtk/NQ3/NnDASjTc3fPjIjW/5sVfVObX2oTDWkr1dF9f3kxBsD3/3aQO8hPfRz+e0uEiJqt1161griu7gz8hDDwtpy+F+BWtefnKHZPAxcZoWbnznhJpy0e842j36bcNzGnIEusgGX0a8ZxsnjcSsPDZ09yZ36fCQbriHeQ72JRMILNl6ePPf2HWoVwgWAm1fb3V2sAY0+B6rAXqSwPBgseVmoqsBTSrm91+XasMYYySI8eeRxH3ZvHkMz3BQ5aJ3iUVbYPNM3/7emRtjlsMgv/9VyTsyt/mK+8fgWeT6SoFaclXqn42dAIsvAarF5vNNWHzKSkKQ/8Hfk5ZWK7r9yliOsooyBjRhfkHP4Q2DkWXQi6FG/9r/IwbmkV5T7JSopHKn1pJwm9tb5Ot0oyN1Z2mPpKXHTxx2nlK08fKk1hEYA8WgVVWL5lgx0iTv+KdojJeU23ZDjmiubXOxVXJKKi2Wjuh2HLZOFLiSC7Tls5SMh4f+Pj6xUSrNjFqLGehRNB8lC0QSLNmkJJx/wSG3MnjE9T1CkPwJI0wH2lfzwETIiVqUxg0dfu5q39Gt+hwdcxkhhNvQ4TyrBceof3Mhs/IxFci1HmHr4FMZgXEEczPiGCx0HRwzAqDq2j9AVm1kwN0mRVLWLylgtoPNapF5cY4Y1wJh/e0BBwZj44YgZrDNqvD/9Hv7GFYdUQeDJuQ3EWI4HaKqavU1XjC/n41kT4L79kqGq0kLhdTZvgP3TA3fS0ozVz+5piZsoOtIvBUFoMKbNcmBL6YxxaUAusHB38XrS8dQMnQwJfUUkpRoGr5AUeWicvBTzyK9g77+yCkf5PAysL7r/JjcZgrbvRpMW9iyaxZvKO6ceZN2EwIxKwVFPuvFuiEPGCoagbMo+SpydLrXqBzNCDGFCrO/rkcwa2xhokQZ5CdZ0AsU3JfSqJ6n5I14YA+P/uAgfhPU84Tlw7cEFfp7AEE8ey4sP12PTt4Cods1GRgDOB5xvyiR5m+Bx8O5nBCNctU8BevfV5A08x6RHd5jcwPTMDSZJOedIZ1cGQ704lxbAzqZOP05ZxaOghzSdvFBHYqomATARyAADK4elP8Ly3IrUZKfWh23Xy20uBUmLS4Pfagu9+oyVa2iPgqRP3F2CTUsvJ7+RYnN8fFZbU/HVvxvcFFDKkiTqV5UBZ3Gz54JAKByi9hkKMZJvuGgcSYXFmw08UyoQyVdfTD1/dMkCHXcTGAKeROgArsvmRrQTLUOXioOHGK2QkjHuoYFgXciZoTJd6Fs5q1QX1G+p/e26hYsEf7QZD1nnIyl/SFkNtYYmmBhpBrxl9WbY0YpHWRuw2Ll/tj9mD8P4snVzJl4F9J+1arVeTb9E5r2ILH04qStjxQNwn3m4YNqxmaNbLAqW2TN6LidwuJRqS+NXbtqxoeDXpxeGWmxzSkWxjkyCkX4NQRme6q5SAcC+M7+9ETfA/EwrzQajKakCwYyeunP6ZFlxU2oMEn1Pz31zeStW74G406ZJFCl1wAXIoUKkWotYEpOuXB1uVNxJ63dpJEqfxBeptwIHNrPz8BllZoIcBoXwgfJ+8VAUnVPvRvexnw0Ma/WiGYuJO5y8QTvEYBigFmhUxY5RqzE8OcywN/8m4UYrlaniJO75XQ6KSo9+tWHlu+hMi0UVdiKQp7NelnoZUzNaIyBPVeOwK6GNp+FfHuPOoyhaWuNvTYFkvxscMQWDh+zeFCFkgwbXftiV23ywJ4+uwRqmg9k3KzwIQpzppt8DBBOMbrqwQM5Gb05sEwdKzMiAqOloaA/lr0KA+1pr0/+HiWoiIjHA/wir2nIuS3PeU/ji3O6ZwoxcR1SZ9FhtLC5S0FIzFhbBWcGVP/KpxOPSiUoAdWUpqKH++6Scz507iCcxYI6rdMBICPJZea7OcmeFw5mObJSiqpjg2UoWNIs+cFhyDSt6geV5qgi3FunmwwDoGSMgerFOZGX1m0dMCYo5XOruxO063dwENK9DbnVM9wYFREzh4vyU1WYYJ/LRRp6oxgjqP/X5a8/4Af6p6NWkQferzBmXme0zY/4nwMJm/wd1tIqSwGz+E3xPEAOoZlJit3XddD7/BT1pllzOx+8bmQtANQ/S6fZexc6qi3W+Q2xcmXTUhuS5mpHQRvcxZUN0S5+PL9lXWUAaRZhEH8hTdAcuNMMCuVNKTEGtSUKNi3O6KhSaTzck8csZ2vWRZ+d7mW8c4IKwXIYd25S/zIftPkwPzufjEvOHWVD1m+FjpDVUTV0DGDuHj6QnaEwLu/dEgdLQOg9E1Sro9XHJ8ykLAwtPu+pxqKDuFexqON1sKQm7rwbE1E68UCfA/erovrTCG+DBSNg0l4goDQvZN6uNlbyLpcZAwj2UclycvLpIZMgv4yRlpb3YuMftozorbcGVHt/VeDV3+Fdf1TP0iuaCsPi2G4XeGhsyF1ubVDxkoJhmniQ0/jSg/eYML9KLfnCFgISWkp91eauR3IQvED0nAPXK+6hPCYs+n3+hCZbiskmVMG2da+0EsZPonUeIY8EbfusQXjsK/eFDaosbPjEfQS0RKG7yj5GG69M7MeO1HmiUYocgygJHL6M1qzUDDwUSmr99V7Sdr2F3JjQAJY+F0yH33Iv3+C9M38eML7gTgmNu/r2bUMiPvpYbZ6v1/IaESirBHNa7mPKn4dEmYg7v/+HQgPN1G79jBQ1+soydfDC2r+h2Bl/KIc5KjMK7OH6nb1jLsNf0EHVe2KBiE51ox636uyG6Lho0t3J34L5QY/ilE3mikaF4HKXG1mG1rCevT1Vv6GavltxoQe/bMrpZvRggnBxSEPEeEzkEdOxTnPXHVjUYdw8JYvjB/o7Eegc3Ma+NUxLLnsK0kJlinPmUHzHGtrk5+CAbVzFOBqpyy3QVUnzTDfC/0XD94/okH+OB+i7g9lolhWIjSnfIb+Eq43ZXOWmwvjyV/qqD+t0e+7mTEM74qP/Ozt8nmC7mRpyu63OB4KnUzFc074SqoyPUAgM+/TJGFo6T44EHnQU4X4z6qannVqgw/U7zCpwcmXV1AubIrvOmkKHazJAR55ePjp5tLBsN8vAqs3NAHdcEHOR2xQ0lsNAFzSUuxFQCFYvXLZJdOj9p4fNq6p0HBGUik2YzaI4xySy91KzhQ0+q1hjxvImRwPRf76tChlRkhRCi74NXZ9qUNeIwP+s5p+3m5nwPdNOHgSLD79n7O9m1n1uDHiMntq4nkYwV5OZ1ENbXxFd4PgrlvavZsyUO4MqYlqqn1O8W/I1dEZq5dXhrbETLaZIbC2Kj/Aa/QM+fqUOHdf0tXAQ1huZ3cmWECWSXy/43j35+Mvq9xws7JKseriZ1pEWKc8qlzNrGPUGcVgOa9cPJYIJsGnJTAUsEcDOEVULO5x0rXBijc1lgXEzQQKhROf8zIV82w8eswc78YX11KYLWQRcgHNJElBxfXr72lS2RBSl07qTKorO2uUDZr3sFhYsvnhLZn0A94KRzJ/7DEGIAhW5ZWFpL8gEwu1aLA9MuWZzNwl8Oze9Y+bX+v9gywRVnoB5I/8kXTXU3141yRLYrIOOz6SOnyHNy4SieqzkBXharjfjqq1q6tklaEbA8Qfm2DaIPs7OTq/nvJBjKfO2H9bH2cCMh1+5gspfycu8f/cuuRmtDjyqZ7uCIMyjdV3a+p3fqmXsRx4C8lujezIFHnQiVTXLXuI1XrwN3+siYYj2HHTvESUx8DlOTXpak9qFRK+L3mgJ1WsD7F4cu1aJoFoYQnu+wGDMOjJM3kiBQWHCcvhJ/HRdxodOQp45YZaOTA22Nb4XKCVxqkbwMYFhzYQYIAnCW8FW14uf98jhUG2zrKhQQ0q0CEq0t5nXyvUyvR8DvD69LU+g3i+HFWQMQ8PqZuHD+sNKAV0+M6EJC0szq7rEr7B5bQ8BcNHzvDMc9eqB5ZCQdTf80Obn4uzjwpYU7SISdtV0QGa9D3Wrh2BDQtpBKxaNFV+/Cy2P/Sv+8s7Ud0Fd74X4+o/TNztWgETUapy+majNQ68Lq3ee0ZO48VEbTZYiH1Co4OlfWef82RWeyUXo7woM03PyapGfikTnQinoNq5z5veLpeMV3HCAMTaZmA1oGLAn7XS3XYsz+XK7VMQsc4XKrmDXOLU/pSXVNUq8dIqTba///3x6LiLS6xs1xuCAYSfcQ3+rQgmu7uvf3THKt5Ooo97TqcbRqxx7EASizaQCBQllG/rYxVapMLgtLbZS64w1MDBMXX+PQpBKNwqUKOf2DDRDUXQf9EhOS0Qj4nTmlA8dzSLz/G1d+Ud8MTy/6ghhdiLpeerGY/UlDOfiuqFsMUU5/UYlP+BAmgRLuNpvrUaLlVkrqDievNVEAwF+4CoM1MZTmjxjJMsKJq+u8Zd7tNCUFy6LiyYXRJQ4VyvEQFFaCGKsxIwQkk7EzZ6LTJq2hUuPhvAW+gQnSG6J+MszC+7QCRHcnqDdyNRJ6T9xyS87A6MDutbzKGvGktpbXqtzWtXb9HsfK2cBMomjN9a4y+TaJLnXxAeX/HWzmf4cR4vALt/P4w4qgKY04ml4ZdLOinFYS6cup3G/1ie4+t1eOnpBNlqGqs75ilzkT4+DsZQxNvaSKJ//6zIbbk/M7LOhFmRc/1R+kBtz7JFGdZm/COotIdvQoXpTqP/1uqEUmCb/QWoGLMwO5ANcHzxdY48IGP5+J+zKOTBFZ4Pid+GTM+Wq12MV/H86xEJptBa6T+p3kgpwLedManBHC2GgNrFpoN2xnrMz9WFWX/8/ygSBkavq2Uv7FdCsLEYLu9LLIvAU0bNRDtzYl
2+/vXmjpIvuJFYjmI0im6QEYqnIeMsNjXG4vIutIGHijeAG/9EDBozKV5cldkHbLxHh25vT+ZEzbhXlqvpzKJwcEgfNwLAKFeo0/pvEE10XDB+EXRTXtSzJozQKFFAJhMxYkVaCW+E9AL7tMeU8acxidHqzb6lX4691UsDpy/LLRmT+epgW56+5Cw8tB4kMUv6s9lh3eRKbyGs+H/4mQMaYzPTf2OOdokEn+zzgvoD3FqNKk8QqGAXVsqcGdXrT62fSPkR2vROFi68A6se86UxRUk4cajfPyCC4G5wDhD+zNq4jodQ4u4n/m37Lr36n4LIAAsVr02dFi9AiwA81MYs2rm4eDlDNmdMRvEKRHfBwW5DdMNp0jPFZMeARqF/wL4XBfd+EMLBfMzpH5GH6NaW+1vrvMdg+VxDzatk3MXgO3ro3P/DpcC6+Mo4MySJhKJhSR01SGGGp5hPWmrrUgrv3lDnP+HhcI3nt3YqBoVAVTBAQT5iuhTg8nvPtd8ZeYj6w1x6RqGUBrSku7+N1+BaasZvjTk64RoIDlL8brpEcJx3OmY7jLoZsswdtmhfC/G21llXhITOwmvRDDeTTPbyASOa16cF5/A1fZAidJpqju3wYAy9avPR1ya6eNp9K8XYrrtuxlqi+bDKwlfrYdR0RRiKRVTLOH85+ZY7XSmzRpfZBJjaTa81VDcJHpZnZnSQLASGYW9l51ZV/h7eVzTi3Hv6hUsgc/51AqJRTkpbFVLXXszoBL8nBX0u/0jBLT8nH+fJePbrwURT58OY+UieRjd1vs04w0VG5VN2U6MoGZkQzKN/ptz0Q366dxoTGmj7i1NQGHi9GgnquXFYdrCfZBmeb7s0T6yrdlZH5cZuwHFyIJ/kAtGsTg0xH5taAAq44BAk1CPk9KVVbqQzrCUiFdF/6gtlPQ8bHHc1G1W92MXGZ5HEHftyLYs8mbD/9xYRUWkHmlM0zC2ilJlnNgV4bfALpQghxOUoZL7VTqtCHIaQSXm+YUMnpkXybnV+A6xlm2CVy8fn0Xlm2XRa0+zzOa21JWWmixfiPMSCZ7qA4rS93VN3pkpF1s5TonQjisHf7iU9ZGvUPOAKZcR1pbeVf/Ul7OhepGCaId9wOtqo7pJ7yLcBZ0pFkOF28y4zEI/kcUNmutBHaQpBdNM8vjCS6HZRokkeo88TBAjGyG7SR+6vUgTcyK9Imalj0kuxz0wmK+byQU11AiJFk/ya5dNduRClcnU64yGu/ieWSeOos1t3ep+RPIWQ2pyTYVbZltTbsb7NiwSi3AV+8KLWk7LxCnfZUetEM8ThnsSoGH38/nyAwFguJp8FjvlHtcWZuU4hPva0rHfr0UhOOJ/F6vS62FW7KzkmRll2HEc7oUq4fyi5T70Vl7YVIfsPHUCdHesf9Lk7WNVWO75JDkYbMI8TOW8JKVtLY9d6UJRITO8oKo0xS+o99Yy04iniGHAaGj88kEWgwv0OrHdY/nr76DOGNS59hXCGXzTKUvDl9iKpLSWYN1lxIeyywdNpTkhay74w2jFT6NS8qkjo5CxA1yfSYwp6AJIZNKIeEK5PJAW7ORgWgwp0VgzYpqovMrWxbu+DGZ6Lhie1RAqpzm8VUzKJOH3mCzWuTOLsN3VT/dv2eeYe9UjbR8YTBsLz7q60VN1sU51k+um1f8JxD5pPhbhSC8rRaB454tmh6YUWrJI3+GWY0qeWioj/tbkYITOkJaeuGt4JrJvHA+l0Gu7kY7XOaa05alMnRWVCXqFgLIwSY4uF59Ue5SU4QKuc/HamDxbr0x6csCetXGoP7Qn1Bk/J9DsynO/UD6iZ1Hyrz+jit0hDCwi/E9OjgKTbB3ZQKQ/0ZOvevfNHG0NK4Aj3Cp7NpRk07RT1i/S0EL93Ag8GRgKI9CfpajKyK6+Jj/PI1KO5/85VAwz2AwzP8FTBb075IxCXv6T9RVvWT2tUaqxDS92zrGUbWzUYk9mSs82pECH+fkqsDt93VW++4YsR/dHCYcQSYTO/KaBMDj9LSD/J/+z20Kq8XvZUAIHtm9hRPP3ItbuAu2Hm5lkPs92pd7kCxgRs0xOVBnZ13ccdA0aunrwv9SdqElJRC3g+oCu+nXyCgmXUs9yMjTMAIHfxZV+aPKcZeUBWt057Xo85Ks1Ir5gzEHCWqZEhrLZMuF11ziGtFQUds/EESajhagzcKsxamcSZxGth4UII+adPhQkUnx2WyN+4YWR+r3f8MnkyGFuR4zjzxJS8WsQYR5PTyRaD9ixa6Mh741nBHbzfjXHskGDq179xaRNrCIB1z1xRfWfjqw2pHc1zk9xlPpL8sQWAIuETZZhbnmL54rceXVNRvUiKrrqIkeogsl0XXb17ylNb0f4GA9Wd44vffEG8FSZGHEL2fbaTGRcSiCeA8PmA/f6Hz8HCS76fXUHwgwkzSwlI71ekZ7Fapmlk/KC+Hs8hUcw3N2LN5LhkVYyizYFl/uPeVP5lsoJHhhfWvvSWruCUW1ZcJOeuTbrDgywJ/qG07gZJplnTvLcYdNaH0KMYOYMGX+rB4NGPFmQsNaIwlWrfCezxre8zXBrsMT+edVLbLqN1BqB76JH4BvZTqUIMfGwPGEn+EnmTV86fPBaYbFL3DFEhjB45CewkXEAtJxk4/Ms2pPXnaRqdky0HOYdcUcE2zcXq4vaIvW2/v0nHFJH2XXe22ueDmq/18XGtELSq85j9X8q0tcNSSKJIX8FTuJF/Pf8j5PhqG2u+osvsLxYrvvfeVJL+4tkcXcr9JV7v0ERmj/X6fM3NC4j6dS1+9Umr2oPavqiAydTZPLMNRGY23LO9zAVDly7jD+70G5TPPLdhRIl4WxcYjLnM+SNcJ26FOrkrISUtPObIz5Zb3AG612krnpy15RMW+1cQjlnWFI6538qky9axd2oJmHIHP08KyP0ubGO+TQNOYuv2uh17yCIvR8VcStw7o1g0NM60sk+8Tq7YfIBJrtp53GkvzXH7OA0p8/n/u1satf/VJhtR1l8Wa6Gmaug7haSpaCaYQax6ta0mkutlb+eAOSG1aobM81D9A4iS1RRlzBBoVX6tU1S6WE2N9ORY6DfeLRC4l9Rvr5h95XDWB2mR1d4WFudpsgVYwiTwT31ljskD8ZyDOlm5DkGh9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA==")),Ln=new Set(Cn(Bn)),Zn=new Set(Cn(Bn)),jn=function(t){for(var e=[];;){var r=t();if(0==r)break;e.push(Tn(r,t))}for(;;){var n=t()-1;if(n<0)break;e.push(Rn(n,t))}return function(t){for(var e={},r=0;r<t.length;r++){var n=t[r];e[n[0]]=n[1]}return e}(kn(e))}(Bn),Fn=function(t){var e=Cn(t).sort((function(t,e){return t-e}));return function r(){var n=[];for(;;){var i=Cn(t,e);if(0==i.length)break;n.push({set:new Set(i),node:r()})}n.sort((function(t,e){return e.set.size-t.set.size}));var o=t();return{branches:n,valid:o%3,fe0f:!!(1&(o=o/3|0)),save:1==(o>>=1),check:2==o}}()}(Bn),Un=45,Dn=95;function Hn(t){return function(t){return Fe(Ue(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Te.current))}(t)}function zn(t){return t.filter((function(t){return 65039!=t}))}function $n(t){var e,r=(0,Mn.Z)(t.split("."));try{for(r.s();!(e=r.n()).done;){var n=e.value,i=Hn(n);try{for(var o=i.lastIndexOf(Dn)-1;o>=0;o--)if(i[o]!==Dn)throw new Error("underscore only allowed at start");if(i.length>=4&&i.every((function(t){return t<128}))&&i[2]===Un&&i[3]===Un)throw new Error("invalid label extension")}catch(a){throw new Error('Invalid label "'.concat(n,'": ').concat(a.message))}}}catch(a){r.e(a)}finally{r.f()}return t}function qn(t){return $n(function(t,e){var r=Hn(t).reverse(),n=[];for(;r.length;){var i=Gn(r);if(i)n.push.apply(n,(0,h.Z)(e(i)));else{var o=r.pop();if(Ln.has(o))n.push(o);else if(!Zn.has(o)){var a=jn[o];if(!a)throw new Error("Disallowed codepoint: 0x".concat(o.toString(16).toUpperCase()));n.push.apply(n,(0,h.Z)(a))}}}return $n((s=String.fromCodePoint.apply(String,n),s.normalize("NFC")));var s}(t,zn))}function Gn(t,e){var r,n,i,o=Fn,a=[],s=t.length;e&&(e.length=0);for(var u=function(){var u=t[--s];if(o=null===(r=o.branches.find((function(t){return t.set.has(u)}
2)))||void 0===r?void 0:r.node,!o)return"break";if(o.save)i=u;else if(o.check&&u===i)return"break";a.push(u),o.fe0f&&(a.push(65039),s>0&&65039==t[s-1]&&s--),o.valid&&(n=a.slice(),2==o.valid&&n.splice(1,1),e&&e.push.apply(e,(0,h.Z)(t.slice(s).reverse())),t.length=s)};s;){if("break"===u())break}return n}var Wn=new bt(Be),Vn=new Uint8Array(32);function Kn(t){if(0===t.length)throw new Error("invalid ENS name; empty component");return t}function Yn(t){var e=Ue(qn(t)),r=[];if(0===t.length)return r;for(var n=0,i=0;i<e.length;i++){46===e[i]&&(r.push(Kn(e.slice(n,i))),n=i+1)}if(n>=e.length)throw new Error("invalid ENS name; empty component");return r.push(Kn(e.slice(n))),r}function Xn(t){"string"!==typeof t&&Wn.throwArgumentError("invalid ENS name; not a string","name",t);for(var e=Vn,r=Yn(t);r.length;)e=ve(Gt([e,ve(r.pop())]));return Yt(e)}Vn.fill(0);var Jn=new bt("networks/5.7.1");function Qn(t){var e=function(e,r){null==r&&(r={});var n=[];if(e.InfuraProvider&&"-"!==r.infura)try{n.push(new e.InfuraProvider(t,r.infura))}catch(s){}if(e.EtherscanProvider&&"-"!==r.etherscan)try{n.push(new e.EtherscanProvider(t,r.etherscan))}catch(s){}if(e.AlchemyProvider&&"-"!==r.alchemy)try{n.push(new e.AlchemyProvider(t,r.alchemy))}catch(s){}if(e.PocketProvider&&"-"!==r.pocket){try{var i=new e.PocketProvider(t,r.pocket);i.network&&-1===["goerli","ropsten","rinkeby","sepolia"].indexOf(i.network.name)&&n.push(i)}catch(s){}}if(e.CloudflareProvider&&"-"!==r.cloudflare)try{n.push(new e.CloudflareProvider(t))}catch(s){}if(e.AnkrProvider&&"-"!==r.ankr)try{var o=new e.AnkrProvider(t,r.ankr);o.network&&-1===["ropsten"].indexOf(o.network.name)&&n.push(o)}catch(s){}if(0===n.length)return null;if(e.FallbackProvider){var a=1;
2return null!=r.quorum?a=r.quorum:"homestead"===t&&(a=2),new e.FallbackProvider(n,a)}return n[0]};return e.renetwork=function(t){return Qn(t)},e}function ti(t,e){var r=function(r,n){return r.JsonRpcProvider?new r.JsonRpcProvider(t,e):null};return r.renetwork=function(e){return ti(t,e)},r}var ei={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:Qn("homestead")},ri={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:Qn("ropsten")},ni={chainId:63,name:"classicMordor",_defaultProvider:ti("https://www.ethercluster.com/mordor","classicMordor")},ii={unspecified:{chainId:0,name:"unspecified"},homestead:ei,mainnet:ei,morden:{chainId:2,name:"morden"},ropsten:ri,testnet:ri,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:Qn("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:Qn("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:Qn("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},sepolia:{chainId:11155111,name:"sepolia",_defaultProvider:Qn("sepolia")},classic:{chainId:61,name:"classic",_defaultProvider:ti("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:ni,classicTestnet:ni,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:ti("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:Qn("matic")},maticmum:{chainId:80001,name:"maticmum"},optimism:{chainId:10,name:"optimism",_defaultProvider:Qn("optimism")},"optimism-kovan":{chainId:69,name:"optimism-kovan"},"optimism-goerli":{chainId:420,name:"optimism-goerli"},arbitrum:{chainId:42161,name:"arbitrum"},"arbitrum-rinkeby":{chainId:421611,name:"arbitrum-rinkeby"},"arbitrum-goerli":{chainId:421613,name:"arbitrum-goerli"},bnb:{chainId:56,name:"bnb"},bnbt:{chainId:97,name:"bnbt"}};new bt("sha2/5.7.0");function oi(t){return"0x"+sr().sha256().update(qt(t)).digest("hex")}var ai=r(65109),si=r.n(ai),ui=new bt(Ct),ci=function(){function t(){(0,l.Z)(this,t),ui.checkNew(this instanceof t?this.constructor:void 0,t),this.formats=this.getDefaultFormats()}return(0,f.Z)(t,[{key:"getDefaultFormats",value:function(){var e=this,r={},n=this.address.bind(this),i=this.bigNumber.bind(this),o=this.blockTag.bind(this),a=this.data.bind(this),s=this.hash.bind(this),u=this.hex.bind(this),c=this.number.bind(this),l=this.type.bind(this);return r.transaction={hash:s,type:l,accessList:t.allowNull(this.accessList.bind(this),null),blockHash:t.allowNull(s,null),blockNumber:t.allowNull(c,null),transactionIndex:t.allowNull(c,null),confirmations:t.allowNull(c,null),from:n,gasPrice:t.allowNull(i),maxPriorityFeePerGas:t.allowNull(i),maxFeePerGas:t.allowNull(i),gasLimit:i,to:t.allowNull(n,null),value:i,nonce:c,data:a,r:t.allowNull(this.uint256),s:t.allowNull(this.uint256),v:t.allowNull(c),creates:t.allowNull(n,null),raw:t.allowNull(a)},r.transactionRequest={from:t.allowNull(n),nonce:t.allowNull(c),gasLimit:t.allowNull(i),gasPrice:t.allowNull(i),maxPriorityFeePerGas:t.allowNull(i),maxFeePerGas:t.allowNull(i),to:t.allowNull(n),value:t.allowNull(i),data:t.allowNull((function(t){return e.data(t,!0)})),type:t.allowNull(c),accessList:t.allowNull(this.accessList.bind(this),null)},r.receiptLog={transactionIndex:c,blockNumber:c,transactionHash:s,address:n,topics:t.arrayOf(s),data:a,logIndex:c,blockHash:s},r.receipt={to:t.allowNull(this.address,null),from:t.allowNull(this.address,null),contractAddress:t.allowNull(n,null),transactionIndex:c,root:t.allowNull(u),gasUsed:i,logsBloom:t.allowNull(a),blockHash:s,transactionHash:s,logs:t.arrayOf(this.receiptLog.bind(this)),blockNumber:c,confirmations:t.allowNull(c,null),cumulativeGasUsed:i,effectiveGasPrice:t.allowNull(i),status:t.allowNull(c),type:l},r.block={hash:s,parentHash:s,number:c,timestamp:c,nonce:t.allowNull(u),difficulty:this.difficulty.bind(this),gasLimit:i,gasUsed:i,miner:n,extraData:a,transactions:t.allowNull(t.arrayOf(s)),baseFeePerGas:t.allowNull(i)},r.blockWithTransactions=Mt(r.block),r.blockWithTransactions.transactions=t.allowNull(t.arrayOf(this.transactionResponse.bind(this))),r.filter={fromBlock:t.allowNull(o,void 0),toBlock:t.allowNull(o,void 0),blockHash:t.allowNull(s,void 0),address:t.allowNull(n,void 0),topics:t.allowNull(this.topics.bind(this),void 0)},r.filterLog={blockNumber:t.allowNull(c),blockHash:t.allowNull(s),transactionIndex:c,removed:t.allowNull(this.boolean.bind(this)),address:n,data:t.allowFalsish(a,"0x"),topics:t.arrayOf(s),transactionHash:s,logIndex:c},r}},{key:"accessList",value:function(t){return rn(t||[])}},{key:"number",value:function(t){return"0x"===t?0:ue.from(t).toNumber()}},{key:"type",value:function(t){return"0x"===t||null==t?0:ue.from(t).toNumber()}},{key:"bigNumber",value:function(t){return ue.from(t)}},{key:"boolean",value:function(t){if("boolean"===typeof t)return t;if("string"===typeof t){if("true"===(t=t.toLowerCase()))return!0;
2if("false"===t)return!1}throw new Error("invalid boolean - "+t)}},{key:"hex",value:function(t,e){return"string"===typeof t&&(e||"0x"===t.substring(0,2)||(t="0x"+t),Vt(t))?t.toLowerCase():ui.throwArgumentError("invalid hash","value",t)}},{key:"data",value:function(t,e){var r=this.hex(t,e);if(r.length%2!==0)throw new Error("invalid data; odd-length - "+t);return r}},{key:"address",value:function(t){return Oe(t)}},{key:"callAddress",value:function(t){if(!Vt(t,32))return null;var e=Oe(Jt(t,12));return"0x0000000000000000000000000000000000000000"===e?null:e}},{key:"contractAddress",value:function(t){return function(t){var e=null;try{e=Oe(t.from)}catch(r){Ae.throwArgumentError("missing from address","transaction",t)}return Oe(Jt(ve(we([e,Wt(qt(ue.from(t.nonce).toHexString()))])),12))}(t)}},{key:"blockTag",value:function(t){if(null==t)return"latest";if("earliest"===t)return"0x0";if("latest"===t||"pending"===t)return t;if("number"===typeof t||Vt(t))return te(t);throw new Error("invalid blockTag")}},{key:"hash",value:function(t,e){var r=this.hex(t,e);return 32!==Xt(r)?ui.throwArgumentError("invalid hash","value",t):r}},{key:"difficulty",value:function(t){if(null==t)return null;var e=ue.from(t);try{return e.toNumber()}catch(r){}return null}},{key:"uint256",value:function(t){if(!Vt(t))throw new Error("invalid uint256");return ee(t,32)}},{key:"_block",value:function(e,r){null!=e.author&&null==e.miner&&(e.miner=e.author);var n=null!=e._difficulty?e._difficulty:e.difficulty,i=t.check(r,e);return i._difficulty=null==n?null:ue.from(n),i}},{key:"block",value:function(t){return this._block(t,this.formats.block)}},{key:"blockWithTransactions",value:function(t){return this._block(t,this.formats.blockWithTransactions)}},{key:"transactionRequest",value:function(e){return t.check(this.formats.transactionRequest,e)}},{key:"transactionResponse",value:function(e){null!=e.gas&&null==e.gasLimit&&(e.gasLimit=e.gas),e.to&&ue.from(e.to).isZero()&&(e.to="0x0000000000000000000000000000000000000000"),null!=e.input&&null==e.data&&(e.data=e.input),null==e.to&&null==e.creates&&(e.creates=this.contractAddress(e)),1!==e.type&&2!==e.type||null!=e.accessList||(e.accessList=[]);var r=t.check(this.formats.transaction,e);if(null!=e.chainId){var n=e.chainId;Vt(n)&&(n=ue.from(n).toNumber()),r.chainId=n}else{var i=e.networkId;null==i&&null==r.v&&(i=e.chainId),Vt(i)&&(i=ue.from(i).toNumber()),"number"!==typeof i&&null!=r.v&&((i=(r.v-35)/2)<0&&(i=0),i=parseInt(i)),"number"!==typeof i&&(i=0),r.chainId=i}return r.blockHash&&"x"===r.blockHash.replace(/0/g,"")&&(r.blockHash=null),r}},{key:"transaction",value:function(t){return un(t)}},{key:"receiptLog",value:function(e){return t.check(this.formats.receiptLog,e)}},{key:"receipt",value:function(e){var r=t.check(this.formats.receipt,e);if(null!=r.root)if(r.root.length<=4){var n=ue.from(r.root).toNumber();0===n||1===n?(null!=r.status&&r.status!==n&&ui.throwArgumentError("alt-root-status/status mismatch","value",{root:r.root,status:r.status}),r.status=n,delete r.root):ui.throwArgumentError("invalid alt-root-status","value.root",r.root)}else 66!==r.root.length&&ui.throwArgumentError("invalid root hash","value.root",r.root);return null!=r.status&&(r.byzantium=!0),r}},{key:"topics",value:function(t){var e=this;return Array.isArray(t)?t.map((function(t){return e.topics(t)})):null!=t?this.hash(t,!0):null}},{key:"filter",value:function(e){return t.check(this.formats.filter,e)}},{key:"filterLog",value:function(e){return t.check(this.formats.filterLog,e)}}],[{key:"check",value:function(t,e){var r={};for(var n in t)try{var i=t[n](e[n]);void 0!==i&&(r[n]=i)}catch(o){throw o.checkKey=n,o.checkValue=e[n],o}return r}},{key:"allowNull",value:function(t,e){return function(r){return null==r?e:t(r)}}},{key:"allowFalsish",value:function(t,e){return function(r){return r?t(r):e}}},{key:"arrayOf",value:function(t){return function(e){if(!Array.isArray(e))throw new Error("not an array");var r=[];return e.forEach((function(e){r.push(t(e))})),r}}}]),t}();var li=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{u(n.next(t))}catch(e){o(e)}}function s(t){try{u(n.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},fi=new bt(Ct);function hi(t){return null==t?"null":(32!==Xt(t)&&fi.throwArgumentError("invalid topic","topic",t),t.toLowerCase())}function di(t){for(t=t.slice();t.length>0&&null==t[t.length-1];)t.pop();return t.map((function(t){if(Array.isArray(t)){var e={};t.forEach((function(t){e[hi(t)]=!0}));var r=Object.keys(e);return r.sort(),r.join("|")}return hi(t)})).join("&")}function pi(t){if("string"===typeof t){if(32===Xt(t=t.toLowerCase()))return"tx:"+t;if(-1===t.indexOf(":"))return t}else{if(Array.isArray(t))return"filter:*:"+di(t);
2if(_n.isForkEvent(t))throw fi.warn("not implemented"),new Error("not implemented");if(t&&"object"===typeof t)return"filter:"+(t.address||"*")+":"+di(t.topics||[])}throw new Error("invalid event - "+t)}function vi(){return(new Date).getTime()}function mi(t){return new Promise((function(e){setTimeout(e,t)}))}var gi=["block","network","pending","poll"],yi=function(){function t(e,r,n){(0,l.Z)(this,t),xt(this,"tag",e),xt(this,"listener",r),xt(this,"once",n)}return(0,f.Z)(t,[{key:"event",get:function(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag}},{key:"type",get:function(){return this.tag.split(":")[0]}},{key:"hash",get:function(){var t=this.tag.split(":");return"tx"!==t[0]?null:t[1]}},{key:"filter",get:function(){var t=this.tag.split(":");if("filter"!==t[0])return null;var e,r=t[1],n=""===(e=t[2])?[]:e.split(/&/g).map((function(t){if(""===t)return[];var e=t.split("|").map((function(t){return"null"===t?null:t}));return 1===e.length?e[0]:e})),i={};return n.length>0&&(i.topics=n),r&&"*"!==r&&(i.address=r),i}},{key:"pollable",value:function(){return this.tag.indexOf(":")>=0||gi.indexOf(this.tag)>=0}}]),t}(),bi={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function wi(t){return ee(ue.from(t).toHexString(),32)}function _i(t){return An.encode(Gt([t,Jt(oi(oi(t)),0,4)]))}var xi=new RegExp("^(ipfs)://(.*)$","i"),Ei=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),xi,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function Ai(t){try{return De(Mi(t))}catch(e){}return null}function Mi(t){if("0x"===t)return null;var e=ue.from(Jt(t,0,32)).toNumber(),r=ue.from(Jt(t,e,e+32)).toNumber();return Jt(t,e+32,e+32+r)}function ki(t){return"https://gateway.ipfs.io/ipfs/".concat(t.substring(7))}var Si=function(){function t(e,r,n,i){(0,l.Z)(this,t),xt(this,"provider",e),xt(this,"name",n),xt(this,"address",e.formatter.address(r)),xt(this,"_resolvedAddress",i)}return(0,f.Z)(t,[{key:"_fetchBytes",value:function(t,e){return li(this,void 0,void 0,(0,u.Z)().mark((function r(){var n;return(0,u.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={to:this.address,data:Qt([t,Xn(this.name),e||"0x"])},r.prev=1,r.t0=Mi,r.next=5,this.provider.call(n);case 5:return r.t1=r.sent,r.abrupt("return",(0,r.t0)(r.t1));case 9:if(r.prev=9,r.t2=r.catch(1),r.t2.code!==bt.errors.CALL_EXCEPTION){r.next=13;break}return r.abrupt("return",null);case 13:return r.abrupt("return",null);case 14:case"end":return r.stop()}}),r,this,[[1,9]])})))}},{key:"_getAddress",value:function(t,e){var r=bi[String(t)];if(null==r&&fi.throwError("unsupported coin type: ".concat(t),bt.errors.UNSUPPORTED_OPERATION,{operation:"getAddress(".concat(t,")")}),"eth"===r.ilk)return this.provider.formatter.address(e);var n=qt(e);if(null!=r.p2pkh){var i=e.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);if(i){var o=parseInt(i[1],16);if(i[2].length===2*o&&o>=1&&o<=75)return _i(Gt([[r.p2pkh],"0x"+i[2]]))}}if(null!=r.p2sh){var a=e.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(a){var s=parseInt(a[1],16);if(a[2].length===2*s&&s>=1&&s<=75)return _i(Gt([[r.p2sh],"0x"+a[2]]))}}if(null!=r.prefix){var u=n[1],c=n[0];if(0===c?20!==u&&32!==u&&(c=-1):c=-1,c>=0&&n.length===2+u&&u>=1&&u<=75){var l=si().toWords(n.slice(2));return l.unshift(c),si().encode(r.prefix,l)}}return null}},{key:"getAddress",value:function(t){return li(this,void 0,void 0,(0,u.Z)().mark((function e(){var r,n,i,o;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null==t&&(t=60),60!==t){e.next=17;break}return e.prev=2,r={to:this.address,data:"0x3b3b57de"+Xn(this.name).substring(2)},e.next=6,this.provider.call(r);case 6:if("0x"!==(n=e.sent)&&"0x0000000000000000000000000000000000000000000000000000000000000000"!==n){e.next=9;break}return e.abrupt("return",null);case 9:return e.abrupt("return",this.provider.formatter.callAddress(n));case 12:if(e.prev=12,e.t0=e.catch(2),e.t0.code!==bt.errors.CALL_EXCEPTION){e.next=16;break}return e.abrupt("return",null);case 16:throw e.t0;case 17:return e.next=19,this._fetchBytes("0xf1cb7e06",wi(t));case 19:if(null!=(i=e.sent)&&"0x"!==i){e.next=22;break}return e.abrupt("return",null);case 22:return null==(o=this._getAddress(t,i))&&fi.throwError("invalid or unsupported coin data",bt.errors.UNSUPPORTED_OPERATION,{operation:"getAddress(".concat(t,")"),coinType:t,data:i}),e.abrupt("return",o);case 25:case"end":return e.stop()}}),e,this,[[2,12]])})))}},{key:"getAvatar",value:function(){return li(this,void 0,void 0,(0,u.Z)().mark((function t(){var e,r,n,i,o,a,s,c,l,f,h,d,p,v,m,g;return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=[{type:"name",content:this.name}],t.prev=1,t.next=4,this.getText("avatar");case 4:if(null!=(r=t.sent)){t.next=7;break}return t.abrupt("return",null);case 7:n=0;case 8:if(!(n<Ei.length)){t.next=89;break}if(null!=(i=r.match(Ei[n]))){t.next=12;break}return t.abrupt("continue",86);case 12:o=i[1].toLowerCase(),t.t0=o,t.next="https"===t.t0?16:"data"===t.t0?18:"ipfs"===t.t0?20:"erc721"===t.t0||"erc1155"===t.t0?22:86;break;case 16:return e.push({type:"url",content:r}),t.abrupt("return",{linkage:e,url:r});case 18:return e.push({type:"data",content:r}),t.abrupt("return",{linkage:e,url:r});case 20:return e.push({type:"ipfs",content:r}),t.abrupt("return",{linkage:e,url:ki(r)});case 22:if(a="erc721"===o?"0xc87b56dd":"0x0e89341c",e.push({type:o,content:r}),t.t1=this._resolvedAddress,t.t1){t.next=29;break}return t.next=28,this.getAddress();case 28:t.t1=t.sent;case 29:if(s=t.t1,2===(c=(i[2]||"").split("/")).length){t.next=33;break}return t.abrupt("return",null);case 33:return t.next=35,this.provider.formatter.address(c[0]);case 35:if(l=t.sent,f=ee(ue.from(c[1]).toHexString(),32),"erc721"!==o){t.next=48;break}return t.t2=this.provider.formatter,t.next=41,this.provider.call({to:l,data:Qt(["0x6352211e",f])});case 41:if(t.t3=t.sent,h=t.t2.callAddress.call(t.t2,t.t3),s===h){t.next=45;break}return t.abrupt("return",null);case 45:e.push({type:"owner",content:h}),t.next=57;break;case 48:if("erc1155"!==o){t.next=57;break}return t.t4=ue,t.next=52,this.provider.call({to:l,data:Qt(["0x00fdd58e",ee(s,32),f])});case 52:if(t.t5=t.sent,!(d=t.t4.from.call(t.t4,t.t5)).isZero()){t.next=56;break}return t.abrupt("return",null);case 56:e.push({type:"balance",content:d.toString()});case 57:return p={to:this.provider.formatter.address(c[0]),data:Qt([a,f])},t.t6=Ai,t.next=61,this.provider.call(p);case 61:if(t.t7=t.sent,null!=(v=(0,t.t6)(t.t7))){t.next=65;break}return t.abrupt("return",null);case 65:return e.push({type:"metadata-url",content:v}),"erc1155"===o&&(v=v.replace("{id}",f.substring(2)),e.push({type:"metadata-url-expanded",content:v})),t.next=69,gn(v);case 69:if(m=t.sent){t.next=72;break}return t.abrupt("return",null);case 72:if(e.push({type:"metadata",content:JSON.stringify(m)}),"string"===typeof(g=m.image)){t.next=76;break}return t.abrupt("return",null);case 76:if(!g.match(/^(https:\/\/|data:)/i)){t.next=79;break}t.next=84;break;case 79:if(null!=g.match(xi)){t.next=82;break}return t.abrupt("return",null);case 82:e.push({type:"url-ipfs",content:g}),g=ki(g);case 84:return e.push({type:"url",content:g}),t.abrupt("return",{linkage:e,url:g});case 86:n++,t.next=8;break;case 89:t.next=93;break;case 91:t.prev=91,t.t8=t.catch(1);case 93:return t.abrupt("return",null);case 94:case"end":return t.stop()}}),t,this,[[1,91]])})))}},{key:"getContentHash",value:function(){return li(this,void 0,void 0,(0,u.Z)().mark((function t(){var e,r,n,i;return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._fetchBytes("0xbc1c58d1");case 2:if(null!=(e=t.sent)&&"0x"!==e){t.next=5;break}return t.abrupt("return",null);case 5:if(!(r=e.match(/^0xe3010170(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/))){t.next=10;break}if(n=parseInt(r[3],16),r[4].length!==2*n){t.next=10;break}return t.abrupt("return","ipfs://"+An.encode("0x"+r[1]));case 10:if(!(i=e.match(/^0xe40101fa011b20([0-9a-f]*)$/))){t.next=14;break}if(64!==i[1].length){t.next=14;break}
2return t.abrupt("return","bzz://"+i[1]);case 14:return t.abrupt("return",fi.throwError("invalid or unsupported content hash data",bt.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:e}));case 15:case"end":return t.stop()}}),t,this)})))}},{key:"getText",value:function(t){return li(this,void 0,void 0,(0,u.Z)().mark((function e(){var r,n;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Ue(t),(r=Gt([wi(64),wi(r.length),r])).length%32!==0&&(r=Gt([r,ee("0x",32-t.length%32)])),e.next=5,this._fetchBytes("0x59d1d43c",Yt(r));case 5:if(null!=(n=e.sent)&&"0x"!==n){e.next=8;break}return e.abrupt("return",null);case 8:return e.abrupt("return",De(n));case 9:case"end":return e.stop()}}),e,this)})))}}]),t}(),Ii=null,Pi=1,Ni=function(t){(0,a.Z)(r,t);var e=(0,s.Z)(r);function r(t){var n;if((0,l.Z)(this,r),fi.checkNew(this instanceof r?this.constructor:void 0,xn),(n=e.call(this))._events=[],n._emitted={block:-2},n.formatter=(this instanceof r?this.constructor:void 0).getFormatter(),xt((0,o.Z)(n),"anyNetwork","any"===t),n.anyNetwork&&(t=n.detectNetwork()),t instanceof Promise)n._networkPromise=t,t.catch((function(t){})),n._ready().catch((function(t){}));else{var i=Et(this instanceof r?this.constructor:void 0,"getNetwork")(t);
2i?(xt((0,o.Z)(n),"_network",i),n.emit("network",i,null)):fi.throwArgumentError("invalid network","network",t)}return n._maxInternalBlockNumber=-1024,n._lastBlockNumber=-2,n._pollingInterval=4e3,n._fastQueryDate=0,n}return(0,f.Z)(r,[{key:"_ready",value:function(){return li(this,void 0,void 0,(0,u.Z)().mark((function t(){var e;return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!=this._network){t.next=17;break}if(e=null,!this._networkPromise){t.next=11;break}return t.prev=3,t.next=6,this._networkPromise;case 6:e=t.sent,t.next=11;break;case 9:t.prev=9,t.t0=t.catch(3);case 11:if(null!=e){t.next=15;break}return t.next=14,this.detectNetwork();case 14:e=t.sent;case 15:e||fi.throwError("no network detected",bt.errors.UNKNOWN_ERROR,{}),null==this._network&&(this.anyNetwork?this._network=e:xt(this,"_network",e),this.emit("network",e,null));case 17:return t.abrupt("return",this._network);case 18:case"end":return t.stop()}}),t,this,[[3,9]])})))}},{key:"ready",get:function(){var t=this;return yn((function(){return t._ready().then((function(t){return t}),(function(t){if(t.code!==bt.errors.NETWORK_ERROR||"noNetwork"!==t.event)throw t}))}))}},{key:"_getInternalBlockNumber",value:function(t){return li(this,void 0,void 0,(0,u.Z)().mark((function e(){var r,n,i,o,a=this;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._ready();case 2:if(!(t>0)){e.next=20;break}case 3:if(!this._internalBlockNumber){e.next=20;break}return r=this._internalBlockNumber,e.prev=5,e.next=8,r;case 8:if(n=e.sent,!(vi()-n.respTime<=t)){e.next=11;break}return e.abrupt("return",n.blockNumber);case 11:return e.abrupt("break",20);case 14:if(e.prev=14,e.t0=e.catch(5),this._internalBlockNumber!==r){e.next=18;break}return e.abrupt("break",20);case 18:e.next=3;break;case 20:return i=vi(),o=At({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then((function(t){return null}),(function(t){return t}))}).then((function(t){var e=t.blockNumber,r=t.networkError;if(r)throw a._internalBlockNumber===o&&(a._internalBlockNumber=null),r;var n=vi();return(e=ue.from(e).toNumber())<a._maxInternalBlockNumber&&(e=a._maxInternalBlockNumber),a._maxInternalBlockNumber=e,a._setFastBlockNumber(e),{blockNumber:e,reqTime:i,respTime:n}})),this._internalBlockNumber=o,o.catch((function(t){a._internalBlockNumber===o&&(a._internalBlockNumber=null)})),e.next=26,o;case 26:return e.abrupt("return",e.sent.blockNumber);case 27:case"end":return e.stop()}}),e,this,[[5,14]])})))}},{key:"poll",value:function(){return li(this,void 0,void 0,(0,u.Z)().mark((function t(){var e,r,n,i,o=this;return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=Pi++,r=[],n=null,t.prev=3,t.next=6,this._getInternalBlockNumber(100+this.pollingInterval/2);case 6:n=t.sent,t.next=13;break;case 9:return t.prev=9,t.t0=t.catch(3),this.emit("error",t.t0),t.abrupt("return");case 13:if(this._setFastBlockNumber(n),this.emit("poll",e,n),n!==this._lastBlockNumber){t.next=18;break}return this.emit("didPoll",e),t.abrupt("return");case 18:if(-2===this._emitted.block&&(this._emitted.block=n-1),Math.abs(this._emitted.block-n)>1e3)fi.warn("network block skew detected; skipping block events (emitted=".concat(this._emitted.block," blockNumber").concat(n,")")),this.emit("error",fi.makeError("network block skew detected",bt.errors.NETWORK_ERROR,{blockNumber:n,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",n);else for(i=this._emitted.block+1;i<=n;i++)this.emit("block",i);return this._emitted.block!==n&&(this._emitted.block=n,Object.keys(this._emitted).forEach((function(t){if("block"!==t){var e=o._emitted[t];"pending"!==e&&n-e>12&&delete o._emitted[t]}}))),-2===this._lastBlockNumber&&(this._lastBlockNumber=n-1),this._events.forEach((function(t){switch(t.type){case"tx":var e=t.hash,i=o.getTransactionReceipt(e).then((function(t){return t&&null!=t.blockNumber?(o._emitted["t:"+e]=t.blockNumber,o.emit(e,t),null):null})).catch((function(t){o.emit("error",t)}));r.push(i);break;case"filter":var a=t.filter;a.fromBlock=o._lastBlockNumber+1,a.toBlock=n;var s=o.getLogs(a).then((function(t){0!==t.length&&t.forEach((function(t){o._emitted["b:"+t.blockHash]=t.blockNumber,o._emitted["t:"+t.transactionHash]=t.blockNumber,o.emit(a,t)}
2))})).catch((function(t){o.emit("error",t)}));r.push(s)}})),this._lastBlockNumber=n,Promise.all(r).then((function(){o.emit("didPoll",e)})).catch((function(t){o.emit("error",t)})),t.abrupt("return");case 26:case"end":return t.stop()}}),t,this,[[3,9]])})))}},{key:"resetEventsBlock",value:function(t){this._lastBlockNumber=t-1,this.polling&&this.poll()}},{key:"network",get:function(){return this._network}},{key:"detectNetwork",value:function(){return li(this,void 0,void 0,(0,u.Z)().mark((function t(){return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",fi.throwError("provider does not support network detection",bt.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"}));case 1:case"end":return t.stop()}}),t)})))}},{key:"getNetwork",value:function(){return li(this,void 0,void 0,(0,u.Z)().mark((function t(){var e,r,n;return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._ready();case 2:return e=t.sent,t.next=5,this.detectNetwork();case 5:if(r=t.sent,e.chainId===r.chainId){t.next=23;break}if(!this.anyNetwork){t.next=20;break}return this._network=r,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",r,e),t.next=19,mi(0);case 19:return t.abrupt("return",this._network);case 20:throw n=fi.makeError("underlying network changed",bt.errors.NETWORK_ERROR,{event:"changed",network:e,detectedNetwork:r}),this.emit("error",n),n;case 23:return t.abrupt("return",e);case 24:case"end":return t.stop()}}),t,this)})))}},{key:"blockNumber",get:function(){var t=this;return this._getInternalBlockNumber(100+this.pollingInterval/2).then((function(e){t._setFastBlockNumber(e)}),(function(t){})),null!=this._fastBlockNumber?this._fastBlockNumber:-1}},{key:"polling",get:function(){return null!=this._poller},set:function(t){var e=this;t&&!this._poller?(this._poller=setInterval((function(){e.poll()}),this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout((function(){e.poll(),e._bootstrapPoll=setTimeout((function(){e._poller||e.poll(),e._bootstrapPoll=null}),e.pollingInterval)}),0))):!t&&this._poller&&(clearInterval(this._poller),this._poller=null)}},{key:"pollingInterval",get:function(){return this._pollingInterval},set:function(t){var e=this;if("number"!==typeof t||t<=0||parseInt(String(t))!=t)throw new Error("invalid polling interval");this._pollingInterval=t,this._poller&&(clearInterval(this._poller),this._poller=setInterval((function(){e.poll()}),this._pollingInterval))}},{key:"_getFastBlockNumber",value:function(){var t=this,e=vi();return e-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=e,this._fastBlockNumberPromise=this.getBlockNumber().then((function(e){return(null==t._fastBlockNumber||e>t._fastBlockNumber)&&(t._fastBlockNumber=e),t._fastBlockNumber}))),this._fastBlockNumberPromise}},{key:"_setFastBlockNumber",value:function(t){null!=this._fastBlockNumber&&t<this._fastBlockNumber||(this._fastQueryDate=vi(),(null==this._fastBlockNumber||t>this._fastBlockNumber)&&(this._fastBlockNumber=t,this._fastBlockNumberPromise=Promise.resolve(t)))}},{key:"waitForTransaction",value:function(t,e,r){return li(this,void 0,void 0,(0,u.Z)().mark((function n(){return(0,u.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",this._waitForTransaction(t,null==e?1:e,r||0,null));case 1:case"end":return n.stop()}}),n,this)})))}},{key:"_waitForTransaction",value:function(t,e,r,n){return li(this,void 0,void 0,(0,u.Z)().mark((function i(){var o,a=this;return(0,u.Z)().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,this.getTransactionReceipt(t);case 2:if(!(((o=i.sent)?o.confirmations:0)>=e)){i.next=5;break}return i.abrupt("return",o);case 5:return i.abrupt("return",new Promise((function(i,o){var s=[],c=!1,l=function(){return!!c||(c=!0,s.forEach((function(t){t()})),!1)},f=function(t){t.confirmations<e||l()||i(t)};if(a.on(t,f),s.push((function(){a.removeListener(t,f)})),n){var h=n.startBlock,d=null,p=function r(i){return li(a,void 0,void 0,(0,u.Z)().mark((function a(){var s=this;return(0,u.Z)().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(!c){a.next=2;break}return a.abrupt("return");case 2:return a.next=4,mi(1e3);case 4:this.getTransactionCount(n.from).then((function(a){return li(s,void 0,void 0,(0,u.Z)().mark((function s(){var f,p,v,m,g,y;return(0,u.Z)().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:if(!c){s.next=2;break}return s.abrupt("return");case 2:if(!(a<=n.nonce)){s.next=6;break}h=i,s.next=41;break;case 6:return s.next=8,this.getTransaction(t);case 8:if(!(f=s.sent)||null==f.blockNumber){s.next=11;break}return s.abrupt("return");case 11:null==d&&(d=h-3)<n.startBlock&&(d=n.startBlock);case 12:if(!(d<=i)){s.next=41;break}if(!c){s.next=15;break}return s.abrupt("return");case 15:return s.next=17,this.getBlockWithTransactions(d);case 17:p=s.sent,v=0;case 19:if(!(v<p.transactions.length)){s.next=38;break}if((m=p.transactions[v]).hash!==t){s.next=23;break}return s.abrupt("return");case 23:if(m.from!==n.from||m.nonce!==n.nonce){s.next=35;break}if(!c){s.next=26;break}return s.abrupt("return");case 26:return s.next=28,this.waitForTransaction(m.hash,e);case 28:if(g=s.sent,!l()){s.next=31;break}return s.abrupt("return");case 31:return y="replaced",m.data===n.data&&m.to===n.to&&m.value.eq(n.value)?y="repriced":"0x"===m.data&&m.from===m.to&&m.value.isZero()&&(y="cancelled"),o(fi.makeError("transaction was replaced",bt.errors.TRANSACTION_REPLACED,{cancelled:"replaced"===y||"cancelled"===y,reason:y,replacement:this._wrapTransaction(m),hash:t,re
2ceipt:g})),s.abrupt("return");case 35:v++,s.next=19;break;case 38:d++,s.next=12;break;case 41:if(!c){s.next=43;break}return s.abrupt("return");case 43:this.once("block",r);case 44:case"end":return s.stop()}}),s,this)})))}),(function(t){c||s.once("block",r)}));case 5:case"end":return a.stop()}}),a,this)})))};if(c)return;a.once("block",p),s.push((function(){a.removeListener("block",p)}))}if("number"===typeof r&&r>0){var v=setTimeout((function(){l()||o(fi.makeError("timeout exceeded",bt.errors.TIMEOUT,{timeout:r}))}),r);v.unref&&v.unref(),s.push((function(){clearTimeout(v)}))}})));case 6:case"end":return i.stop()}}),i,this)})))}},{key:"getBlockNumber",value:function(){return li(this,void 0,void 0,(0,u.Z)().mark((function t(){return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this._getInternalBlockNumber(0));case 1:case"end":return t.stop()}}),t,this)})))}},{key:"getGasPrice",value:function(){return li(this,void 0,void 0,(0,u.Z)().mark((function t(){var e;return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getNetwork();case 2:return t.next=4,this.perform("getGasPrice",{});case 4:return e=t.sent,t.prev=5,t.abrupt("return",ue.from(e));case 9:return t.prev=9,t.t0=t.catch(5),t.abrupt("return",fi.throwError("bad result from backend",bt.errors.SERVER_ERROR,{method:"getGasPrice",result:e,error:t.t0}));case 12:case"end":return t.stop()}}),t,this,[[5,9]])})))}},{key:"getBalance",value:function(t,e){return li(this,void 0,void 0,(0,u.Z)().mark((function r(){var n,i;return(0,u.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.getNetwork();case 2:return r.next=4,At({address:this._getAddress(t),blockTag:this._getBlockTag(e)});case 4:return n=r.sent,r.next=7,this.perform("getBalance",n);case 7:return i=r.sent,r.prev=8,r.abrupt("return",ue.from(i));case 12:return r.prev=12,r.t0=r.catch(8),r.abrupt("return",fi.throwError("bad result from backend",bt.errors.SERVER_ERROR,{method:"getBalance",params:n,result:i,error:r.t0}));case 15:case"end":return r.stop()}}),r,this,[[8,12]])})))}},{key:"getTransactionCount",value:function(t,e){return li(this,void 0,void 0,(0,u.Z)().mark((function r(){var n,i;return(0,u.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.getNetwork();case 2:return r.next=4,At({address:this._getAddress(t),blockTag:this._getBlockTag(e)});case 4:return n=r.sent,r.next=7,this.perform("getTransactionCount",n);case 7:return i=r.sent,r.prev=8,r.abrupt("return",ue.from(i).toNumber());case 12:return r.prev=12,r.t0=r.catch(8),r.abrupt("return",fi.throwError("bad result from backend",bt.errors.SERVER_ERROR,{method:"getTransactionCount",params:n,result:i,error:r.t0}));case 15:case"end":return r.stop()}}),r,this,[[8,12]])})))}},{key:"getCode",value:function(t,e){return li(this,void 0,void 0,(0,u.Z)().mark((function r(){var n,i;return(0,u.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.getNetwork();case 2:return r.next=4,At({address:this._getAddress(t),blockTag:this._getBlockTag(e)});case 4:return n=r.sent,r.next=7,this.perform("getCode",n);case 7:return i=r.sent,r.prev=8,r.abrupt("return",Yt(i));case 12:return r.prev=12,r.t0=r.catch(8),r.abrupt("return",fi.throwError("bad result from backend",bt.errors.SERVER_ERROR,{method:"getCode",params:n,result:i,error:r.t0}));case 15:case"end":return r.stop()}}),r,this,[[8,12]])})))}},{key:"getStorageAt",value:function(t,e,r){return li(this,void 0,void 0,(0,u.Z)().mark((function n(){var i,o;return(0,u.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.getNetwork();case 2:return n.next=4,At({address:this._getAddress(t),blockTag:this._getBlockTag(r),position:Promise.resolve(e).then((function(t){return te(t)}))});case 4:return i=n.sent,n.next=7,this.perform("getStorageAt",i);case 7:return o=n.sent,n.prev=8,n.abrupt("return",Yt(o));case 12:return n.prev=12,n.t0=n.catch(8),n.abrupt("return",fi.throwError("bad result from backend",bt.errors.SERVER_ERROR,{method:"getStorageAt",params:i,result:o,error:n.t0}));case 15:case"end":return n.stop()}}),n,this,[[8,12]])})))}},{key:"_wrapTransaction",value:function(t,e,r){var n=this;if(null!=e&&32!==Xt(e))throw new Error("invalid response - sendTransaction");var i=t;return null!=e&&t.hash!==e&&fi.throwError("Transaction hash mismatch from Provider.sendTransaction.",bt.errors.UNKNOWN_ERROR,{expectedHash:t.hash,returnedHash:e}),i.wait=function(e,i){return li(n,void 0,void 0,(0,u.Z)().mark((function n(){var o,a;return(0,u.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return null==e&&(e=1),null==i&&(i=0),o=void 0,0!==e&&null!=r&&(o={data:t.data,from:t.from,nonce:t.nonce,to:t.to,value:t.value,startBlock:r}),n.next=6,this._waitForTransaction(t.hash,e,i,o);case 6:if(null!=(a=n.sent)||0!==e){n.next=9;break}return n.abrupt("return",null);case 9:return this._emitted["t:"+t.hash]=a.blockNumber,0===a.status&&fi.throwError("transaction failed",bt.errors.CALL_EXCEPTION,{transactionHash:t.hash,transaction:t,receipt:a}),n.abrupt("return",a);case 12:case"end":return n.stop()}}),n,this)})))},i}},{key:"sendTransaction",value:function(t){return li(this,void 0,void 0,(0,u.Z)().mark((function e(){var r,n,i,o;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getNetwork();case 2:return e.next=4,Promise.resolve(t).then((function(t){return Yt(t)}));case 4:return r=e.sent,null==(n=this.formatter.transaction(t)).confirmations&&(n.confirmations=0),e.next=9,this._getInternalBlockNumber(100+2*this.pollingInterval);case 9:return i=e.sent,e.prev=10,e.next=13,this.perform("sendTransaction",{signedTransaction:r});case 13:return o=e.sent,e.abrupt("return",this._wrapTransaction(n,o,i));case 17:throw e.prev=17,e.t0=e.catch(10),e.t0.transaction=n,e.t0.transactionHash=n.hash,e.t0;case 22:case"end":return e.stop()}}),e,this,[[10,17]])})))}},{key:"_getTransactionRequest",value:function(t){return li(this,void 0,void 0,(0,u.Z)().mark((function e(){var r,n,i=this;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t;case 2:return r=e.sent,n={},["from","to"].forEach((function(t){null!=r[t]&&(n[t]=Promise.resolve(r[t]).then((function(t){return t?i._getAddress(t):null})))})),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach((function(t){null!=r[t]&&(n[t]=Promise.resolve(r[t]).then((function(t){return t?ue.from(t):null})))})),["type"].forEach((function(t){null!=r[t]&&(n[t]=Promise.resolve(r[t]).then((function(t){return null!=t?t:null})))})),r.accessList&&(n.accessList=this.formatter.accessList(r.accessList)),["data"].forEach((function(t){null!=r[t]&&(n[t]=Promise.resolve(r[t]).then((function(t){return t?Yt(t):null})))})),e.t0=this.formatter,e.next=12,At(n);case 12:return e.t1=e.sent,e.abrupt("return",e.t0.transactionRequest.call(e.t0,e.t1));case 14:case"end":return e.stop()}}),e,this)})))}},{key:"_getFilter",value:function(t){return li(this,void 0,void 0,(0,u.Z)().mark((function e(){var r,n=this;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t;case 2:return t=e.sent,r={},null!=t.address&&(r.address=this._getAddress(t.address)),["blockHash","topics"].forEach((function(e){null!=t[e]&&(r[e]=t[e])})),["fromBlock","toBlock"].forEach((function(e){null!=t[e]&&(r[e]=n._getBlockTag(t[e]))})),e.t0=this.formatter,e.next=10,At(r);case 10:return e.t1=e.sent,e.abrupt("return",e.t0.filter.call(e.t0,e.t1));case 12:case"end":return e.stop()}}),e,this)})))}},{key:"call",value:function(t,e){return li(this,void 0,void 0,(0,u.Z)().mark((function r(){var n,i;return(0,u.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.getNetwork();case 2:return r.next=4,At({transaction:this._getTransactionRequest(t),blockTag:this._getBlockTag(e)});case 4:return n=r.sent,r.next=7,this.perform("call",n);case 7:return i=r.sent,r.prev=8,r.abrupt("return",Yt(i));case 12:return r.prev=12,r.t0=r.catch(8),r.abrupt("return",fi.throwError("bad result from backend",bt.errors.SERVER_ERROR,{method:"call",params:n,result:i,error:r.t0}));case 15:case"end":return r.stop()}}),r,this,[[8,12]])})))}},{key:"estimateGas",value:function(t){return li(this,void 0,void 0,(0,u.Z)().mark((function e(){var r,n;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getNetwork();case 2:return e.next=4,At({transaction:this._getTransactionRequest(t)});case 4:return r=e.sent,e.next=7,this.perform("estimateGas",r);case 7:return n=e.sent,e.prev=8,e.abrupt("return",ue.from(n));case 12:return e.prev=12,e.t0=e.catch(8),e.abrupt("return",fi.throwError("bad result from backend",bt.errors.SERVER_ERROR,{method:"estimateGas",params:r,result:n,error:e.t0}));case 15:case"end":return e.stop()}}),e,this,[[8,12]])})))}},{key:"_getAddress",value:function(t){return li(this,void 0,void 0,(0,u.Z)().mark((function e(){var r;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t;case 2:return"string"!==typeof(t=e.sent)&&fi.throwArgumentError("invalid address or ENS name","name",t),e.next=6,this.resolveName(t);case 6:return null==(r=e.sent)&&fi.throwError("ENS name not configured",bt.errors.UNSUPPORTED_OPERATION,{operation:"resolveName(".concat(JSON.stringify(t),")")}),e.abrupt("return",r);case 9:case"end":return e.stop()}}),e,this)})))}},{key:"_getBlock",value:function(t,e){return li(this,void 0,void 0,(0,u.Z)().mark((function r(){var n,i,o=this;return(0,u.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.getNetwork();case 2:return r.next=4,t;case 4:if(t=r.sent,n=-128,i={includeTransactions:!!e},!Vt(t,32)){r.next=11;break}i.blockHash=t,r.next=21;break;case 11:return r.prev=11,r.next=14,this._getBlockTag(t);case 14:i.blockTag=r.sent,Vt(i.blockTag)&&(n=parseInt(i.blockTag.substring(2),16)),r.next=21;break;case 18:r.prev=18,r.t0=r.catch(11),fi.throwArgumentError("invalid block hash or block tag","blockHashOrBlockTag",t);case 21:return r.abrupt("return",yn((function(){return li(o,void 0,void 0,(0,u.Z)().mark((function t(){var r,o,a,s,c,l,f=this;return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.perform("getBlock",i);case 2:if(null!=(r=t.sent)){t.next=11;break}if(null==i.blockHash){t.next=7;break}if(null!=this._emitted["b:"+i.blockHash]){t.next=7;break}return t.abrupt("return",null);case 7:if(null==i.blockTag){t.next=10;break}if(!(n>this._emitted.block)){t.next=10;break}return t.abrupt("return",null);case 10:return t.abrupt("return",void 0);case 11:if(!e){t.next=34;break}o=null,a=0;case 14:if(!(a<r.transactions.length)){t.next=31;break}if(null!=(s=r.transactions[a]).blockNumber){t.next=20;break}s.confirmations=0,t.next=28;break;case 20:if(null!=s.confirmations){t.next=28;break}if(null!=o){t.next=25;break}return t.next=24,this._getInternalBlockNumber(100+2*this.pollingInterval);case 24:o=t.sent;case 25:(c=o-s.blockNumber+1)<=0&&(c=1),s.confirmations=c;case 28:a++,t.next=14;break;case 31:return(l=this.formatter.blockWithTransactions(r)).transactions=l.transactions.map((function(t){return f._wrapTransaction(t)})),t.abrupt("return",l);case 34:return t.abrupt("return",this.formatter.block(r));case 35:case"end":return t.stop()}}),t,this)})))}),{oncePoll:this}));case 22:case"end":return r.stop()}}),r,this,[[11,18]])})))}},{key:"getBlock",value:function(t){return this._getBlock(t,!1)}},{key:"getBlockWithTransactions",value:function(t){return this._getBlock(t,!0)}},{key:"getTransaction",value:function(t){return li(this,void 0,void 0,(0,u.Z)().mark((function e(){var r,n=this;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getNetwork();case 2:return e.next=4,t;case 4:return t=e.sent,r={transactionHash:this.formatter.hash(t,!0)},e.abrupt("return",yn((function(){return li(n,void 0,void 0,(0,u.Z)().mark((function e(){var n,i,o,a;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.perform("getTransaction",r);case 2:if(null!=(n=e.sent)){e.next=7;break}if(null!=this._emitted["t:"+t]){e.next=6;break}return e.abrupt("return",null);case 6:return e.abrupt("return",void 0);case 7:if(null!=(i=this.formatter.transactionResponse(n)).blockNumber){e.next=12;break}i.confirmations=0,e.next=19;break;case 12:if(null!=i.confirmations){e.next=19;break}return e.next=15,this._getInternalBlockNumber(100+2*this.pollingInterval);case 15:o=e.sent,(a=o-i.blockNumber+1)<=0&&(a=1),i.confirmations=a;case 19:return e.abrupt("return",this._wrapTransaction(i));case 20:case"end":return e.stop()}}),e,this)})))}),{oncePoll:this}));case 7:case"end":return e.stop()}}),e,this)})))}},{key:"getTransactionReceipt",value:function(t){return li(this,void 0,void 0,(0,u.Z)().mark((function e(){var r,n=this;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getNetwork();case 2:return e.next=4,t;case 4:return t=e.sent,r={transactionHash:this.formatter.hash(t,!0)},e.abrupt("return",yn((function(){return li(n,void 0,void 0,(0,u.Z)().mark((function e(){var n,i,o,a;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.perform("getTransactionReceipt",r);case 2:if(null!=(n=e.sent)){e.next=7;break}if(null!=this._emitted["t:"+t]){e.next=6;break}return e.abrupt("return",null);case 6:return e.abrupt("return",void 0);case 7:if(null!=n.blockHash){e.next=9;break}return e.abrupt("return",void 0);case 9:if(null!=(i=this.formatter.receipt(n)).blockNumber){e.next=14;break}i.confirmations=0,e.next=21;break;case 14:if(null!=i.confirmations){e.next=21;break}return e.next=17,this._getInternalBlockNumber(100+2*this.pollingInterval);case 17:o=e.sent,(a=o-i.blockNumber+1)<=0&&(a=1),i.confirmations=a;case 21:return e.abrupt("return",i);case 22:case"end":return e.stop()}}),e,this)})))}),{oncePoll:this}));case 7:case"end":return e.stop()}}),e,this)})))}},{key:"getLogs",value:function(t){return li(this,void 0,void 0,(0,u.Z)().mark((function e(){var r,n;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getNetwork();case 2:return e.next=4,At({filter:this._getFilter(t)});case 4:return r=e.sent,e.next=7,this.perform("getLogs",r);case 7:return(n=e.sent).forEach((function(t){null==t.removed&&(t.removed=!1)})),e.abrupt("return",ci.arrayOf(this.formatter.filterLog.bind(this.formatter))(n));case 10:case"end":return e.stop()}}),e,this)})))}},{key:"getEtherPrice",value:function(){return li(this,void 0,void 0,(0,u.Z)().mark((function t(){return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getNetwork();case 2:return t.abrupt("return",this.perform("getEtherPrice",{}));case 3:case"end":return t.stop()}}),t,this)})))}},{key:"_getBlockTag",value:function(t){return li(this,void 0,void 0,(0,u.Z)().mark((function e(){var r;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t;case 2:if(!("number"===typeof(t=e.sent)&&t<0)){e.next=11;break}return t%1&&fi.throwArgumentError("invalid BlockTag","blockTag",t),e.next=7,this._getInternalBlockNumber(100+2*this.pollingInterval);case 7:return r=e.sent,(r+=t)<0&&(r=0),e.abrupt("return",this.formatter.blockTag(r));case 11:return e.abrupt("return",this.formatter.blockTag(t));case 12:case"end":return e.stop()}}),e,this)})))}},{key:"getResolver",value:function(t){return li(this,void 0,void 0,(0,u.Z)().mark((function e(){var r;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this._getResolver(t);case 3:if(null!=(r=e.sent)){e.next=6;break}return e.abrupt("return",null);case 6:return e.abrupt("return",new Si(this,r,t));case 9:if(e.prev=9,e.t0=e.catch(0),e.t0.code!==bt.errors.CALL_EXCEPTION){e.next=13;break}return e.abrupt("return",null);case 13:throw e.t0;case 14:case"end":return e.stop()}}),e,this,[[0,9]])})))}},{key:"_getResolver",value:function(t){return li(this,void 0,void 0,(0,u.Z)().mark((function e(){var r,n;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getNetwork();case 2:return(r=e.sent).ensAddress||fi.throwError("network does not support ENS",bt.errors.UNSUPPORTED_OPERATION,{operation:"ENS",network:r.name}),n={to:r.ensAddress,data:"0x0178b8bf"+Xn(t).substring(2)},e.prev=5,e.t0=this.formatter,e.next=9,this.call(n);case 9:return e.t1=e.sent,e.abrupt("retu
2rn",e.t0.callAddress.call(e.t0,e.t1));case 13:if(e.prev=13,e.t2=e.catch(5),e.t2.code!==bt.errors.CALL_EXCEPTION){e.next=17;break}return e.abrupt("return",null);case 17:throw e.t2;case 18:case"end":return e.stop()}}),e,this,[[5,13]])})))}},{key:"resolveName",value:function(t){return li(this,void 0,void 0,(0,u.Z)().mark((function e(){var r;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t;case 2:return t=e.sent,e.prev=3,e.abrupt("return",Promise.resolve(this.formatter.address(t)));case 7:if(e.prev=7,e.t0=e.catch(3),!Vt(t)){e.next=11;break}throw e.t0;case 11:return"string"!==typeof t&&fi.throwArgumentError("invalid ENS name","name",t),e.next=14,this.getResolver(t);case 14:if(r=e.sent){e.next=17;break}return e.abrupt("return",null);case 17:return e.next=19,r.getAddress();case 19:return e.abrupt("return",e.sent);case 20:case"end":return e.stop()}}),e,this,[[3,7]])})))}},{key:"lookupAddress",value:function(t){return li(this,void 0,void 0,(0,u.Z)().mark((function e(){var r,n,i,o,a;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t;case 2:return t=e.sent,t=this.formatter.address(t),r=t.substring(2).toLowerCase()+".addr.reverse",e.next=7,this._getResolver(r);case 7:if(n=e.sent){e.next=10;break}return e.abrupt("return",null);case 10:return e.t0=qt,e.next=13,this.call({to:n,data:"0x691f3431"+Xn(r).substring(2)});case 13:if(e.t1=e.sent,!((i=(0,e.t0)(e.t1)).length<32)&&ue.from(i.slice(0,32)).eq(32)){e.next=17;break}return e.abrupt("return",null);case 17:if(!((i=i.slice(32)).length<32)){e.next=20;break}return e.abrupt("return",null);case 20:if(o=ue.from(i.slice(0,32)).toNumber(),i=i.slice(32),!(o>i.length)){e.next=24;break}return e.abrupt("return",null);case 24:return a=De(i.slice(0,o)),e.next=27,this.resolveName(a);case 27:if(e.sent==t){e.next=30;break}return e.abrupt("return",null);case 30:return e.abrupt("return",a);case 31:case"end":return e.stop()}}),e,this)})))}},{key:"getAvatar",value:function(t){return li(this,void 0,void 0,(0,u.Z)().mark((function e(){var r,n,i,o,a;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=null,!Vt(t)){e.next=12;break}return n=this.formatter.address(t),i=n.substring(2).toLowerCase()+".addr.reverse",e.next=6,this._getResolver(i);case 6:if(o=e.sent){e.next=9;break}return e.abrupt("return",null);case 9:r=new Si(this,o,"_",n),e.next=17;break;case 12:return e.next=14,this.getResolver(t);case 14:if(r=e.sent){e.next=17;break}return e.abrupt("return",null);case 17:return e.next=19,r.getAvatar();case 19:if(null!=(a=e.sent)){e.next=22;break}return e.abrupt("return",null);case 22:return e.abrupt("return",a.url);case 23:case"end":return e.stop()}}),e,this)})))}},{key:"perform",value:function(t,e){return fi.throwError(t+" not implemented",bt.errors.NOT_IMPLEMENTED,{operation:t})}},{key:"_startEvent",value:function(t){this.polling=this._events.filter((function(t){return t.pollable()})).length>0}},{key:"_stopEvent",value:function(t){this.polling=this._events.filter((function(t){return t.pollable()})).length>0}},{key:"_addEventListener",value:function(t,e,r){var n=new yi(pi(t),e,r);return this._events.push(n),this._startEvent(n),this}},{key:"on",value:function(t,e){return this._addEventListener(t,e,!1)}},{key:"once",value:function(t,e){return this._addEventListener(t,e,!0)}},{key:"emit",value:function(t){for(var e=this,r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];var o=!1,a=[],s=pi(t);return this._events=this._events.filter((function(t){return t.tag!==s||(setTimeout((function(){t.listener.apply(e,n)}),0),o=!0,!t.once||(a.push(t),!1))})),a.forEach((function(t){e._stopEvent(t)})),o}},{key:"listenerCount",value:function(t){if(!t)return this._events.length;var e=pi(t);return this._events.filter((function(t){return t.tag===e})).length}},{key:"listeners",value:function(t){if(null==t)return this._events.map((function(t){return t.listener}));var e=pi(t);return this._events.filter((function(t){return t.tag===e})).map((function(t){return t.listener}))}},{key:"off",value:function(t,e){var r=this;if(null==e)return this.removeAllListeners(t);var n=[],i=!1,o=pi(t);return this._events=this._events.filter((function(t){return t.tag!==o||t.listener!=e||(!!i||(i=!0,n.push(t),!1))}
2)),n.forEach((function(t){r._stopEvent(t)})),this}},{key:"removeAllListeners",value:function(t){var e=this,r=[];if(null==t)r=this._events,this._events=[];else{var n=pi(t);this._events=this._events.filter((function(t){return t.tag!==n||(r.push(t),!1)}))}return r.forEach((function(t){e._stopEvent(t)})),this}}],[{key:"getFormatter",value:function(){return null==Ii&&(Ii=new ci),Ii}},{key:"getNetwork",value:function(t){return function(t){if(null==t)return null;if("number"===typeof t){for(var e in ii){var r=ii[e];if(r.chainId===t)return{name:r.name,chainId:r.chainId,ensAddress:r.ensAddress||null,_defaultProvider:r._defaultProvider||null}}return{chainId:t,name:"unknown"}}if("string"===typeof t){var n=ii[t];return null==n?null:{name:n.name,chainId:n.chainId,ensAddress:n.ensAddress,_defaultProvider:n._defaultProvider||null}}var i=ii[t.name];if(!i)return"number"!==typeof t.chainId&&Jn.throwArgumentError("invalid network chainId","network",t),t;0!==t.chainId&&t.chainId!==i.chainId&&Jn.throwArgumentError("network chainId mismatch","network",t);var o,a=t._defaultProvider||null;return null==a&&i._defaultProvider&&(a=(o=i._defaultProvider)&&"function"===typeof o.renetwork?i._defaultProvider.renetwork(t):i._defaultProvider),{name:t.name,chainId:i.chainId,ensAddress:t.ensAddress||i.ensAddress||null,_defaultProvider:a}}(null==t?"homestead":t)}}]),r}(xn),Ci=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{u(n.next(t))}catch(e){o(e)}}function s(t){try{u(n.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},Oi=new bt(Ct),Ti=["call","estimateGas"];function Ri(t,e,r){if("call"===t&&e.code===bt.errors.SERVER_ERROR){var n=e.error;if(n&&n.message.match("reverted")&&Vt(n.data))return n.data;Oi.throwError("missing revert data in call exception",bt.errors.CALL_EXCEPTION,{error:e,data:"0x"})}var i=e.message;e.code===bt.errors.SERVER_ERROR&&e.error&&"string"===typeof e.error.message?i=e.error.message:"string"===typeof e.body?i=e.body:"string"===typeof e.responseText&&(i=e.responseText),i=(i||"").toLowerCase();var o=r.transaction||r.signedTransaction;throw i.match(/insufficient funds|base fee exceeds gas limit/)&&Oi.throwError("insufficient funds for intrinsic transaction cost",bt.errors.INSUFFICIENT_FUNDS,{error:e,method:t,transaction:o}),i.match(/nonce too low/)&&Oi.throwError("nonce has already been used",bt.errors.NONCE_EXPIRED,{error:e,method:t,transaction:o}),i.match(/replacement transaction underpriced/)&&Oi.throwError("replacement fee too low",bt.errors.REPLACEMENT_UNDERPRICED,{error:e,method:t,transaction:o}),i.match(/only replay-protected/)&&Oi.throwError("legacy pre-eip-155 transactions not supported",bt.errors.UNSUPPORTED_OPERATION,{error:e,method:t,transaction:o}),Ti.indexOf(t)>=0&&i.match(/gas required exceeds allowance|always failing transaction|execution reverted/)&&Oi.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",bt.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,method:t,transaction:o}),e}function Bi(t){return new Promise((function(e){setTimeout(e,t)}))}function Li(t){if(t.error){var e=new Error(t.error.message);throw e.code=t.error.code,e.data=t.error.data,e}return t.result}function Zi(t){return t?t.toLowerCase():t}var ji={},Fi=function(t){(0,a.Z)(r,t);var e=(0,s.Z)(r);function r(t,n,i){var a;if((0,l.Z)(this,r),Oi.checkNew(this instanceof r?this.constructor:void 0,r),a=e.call(this),t!==ji)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");return xt((0,o.Z)(a),"provider",n),null==i&&(i=0),"string"===typeof i?(xt((0,o.Z)(a),"_address",a.provider.formatter.address(i)),xt((0,o.Z)(a),"_index",null)):"number"===typeof i?(xt((0,o.Z)(a),"_index",i),xt((0,o.Z)(a),"_address",null)):Oi.throwArgumentError("invalid address or index","addressOrIndex",i),a}return(0,f.Z)(r,[{key:"connect",value:function(t){return Oi.throwError("cannot alter JSON-RPC Signer connection",bt.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}},{key:"connectUnchecked",value:function(){return new Ui(ji,this.provider,this._address||this._index)}},{key:"getAddress",value:function(){var t=this;return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then((function(e){return e.length<=t._index&&O
2i.throwError("unknown account #"+t._index,bt.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),t.provider.formatter.address(e[t._index])}))}},{key:"sendUncheckedTransaction",value:function(t){var e=this;t=Mt(t);var r=this.getAddress().then((function(t){return t&&(t=t.toLowerCase()),t}));if(null==t.gasLimit){var n=Mt(t);n.from=r,t.gasLimit=this.provider.estimateGas(n)}return null!=t.to&&(t.to=Promise.resolve(t.to).then((function(t){return Ci(e,void 0,void 0,(0,u.Z)().mark((function e(){var r;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=t){e.next=2;break}return e.abrupt("return",null);case 2:return e.next=4,this.provider.resolveName(t);case 4:return null==(r=e.sent)&&Oi.throwArgumentError("provided ENS name resolves to null","tx.to",t),e.abrupt("return",r);case 7:case"end":return e.stop()}}),e,this)})))}))),At({tx:At(t),sender:r}).then((function(r){var n=r.tx,i=r.sender;null!=n.from?n.from.toLowerCase()!==i&&Oi.throwArgumentError("from address mismatch","transaction",t):n.from=i;var o=e.provider.constructor.hexlifyTransaction(n,{from:!0});return e.provider.send("eth_sendTransaction",[o]).then((function(t){return t}),(function(t){return Ri("sendTransaction",t,o)}))}))}},{key:"signTransaction",value:function(t){return Oi.throwError("signing transactions is unsupported",bt.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}},{key:"sendTransaction",value:function(t){return Ci(this,void 0,void 0,(0,u.Z)().mark((function e(){var r,n,i=this;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval);case 2:return r=e.sent,e.next=5,this.sendUncheckedTransaction(t);case 5:return n=e.sent,e.prev=6,e.next=9,yn((function(){return Ci(i,void 0,void 0,(0,u.Z)().mark((function t(){var e;return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.provider.getTransaction(n);case 2:if(null!==(e=t.sent)){t.next=5;break}return t.abrupt("return",void 0);case 5:return t.abrupt("return",this.provider._wrapTransaction(e,n,r));case 6:case"end":return t.stop()}}),t,this)})))}),{oncePoll:this.provider});case 9:return e.abrupt("return",e.sent);case 12:throw e.prev=12,e.t0=e.catch(6),e.t0.transactionHash=n,e.t0;case 16:case"end":return e.stop()}}),e,this,[[6,12]])})))}},{key:"signMessage",value:function(t){return Ci(this,void 0,void 0,(0,u.Z)().mark((function e(){var r,n;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r="string"===typeof t?Ue(t):t,e.next=3,this.getAddress();case 3:return n=e.sent,e.next=6,this.provider.send("personal_sign",[Yt(r),n.toLowerCase()]);case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}}),e,this)})))}},{key:"_legacySignMessage",value:function(t){return Ci(this,void 0,void 0,(0,u.Z)().mark((function e(){var r,n;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r="string"===typeof t?Ue(t):t,e.next=3,this.getAddress();case 3:return n=e.sent,e.next=6,this.provider.send("eth_sign",[n.toLowerCase(),Yt(r)]);case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}}),e,this)})))}},{key:"_signTypedData",value:function(t,e,r){return Ci(this,void 0,void 0,(0,u.Z)().mark((function n(){var i,o,a=this;return(0,u.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,ir.resolveNames(t,e,r,(function(t){return a.provider.resolveName(t)}));case 2:return i=n.sent,n.next=5,this.getAddress();case 5:return o=n.sent,n.next=8,this.provider.send("eth_signTypedData_v4",[o.toLowerCase(),JSON.stringify(ir.getPayload(i.domain,e,i.value))]);case 8:return n.abrupt("return",n.sent);case 9:case"end":return n.stop()}}),n,this)})))}},{key:"unlock",value:function(t){return Ci(this,void 0,void 0,(0,u.Z)().mark((function e(){var r,n;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.provider,e.next=3,this.getAddress();case 3:return n=e.sent,e.abrupt("return",r.send("personal_unlockAccount",[n.toLowerCase(),t,null]));case 5:case"end":return e.stop()}}),e,this)})))}}]),r}(Lt),Ui=function(t){(0,a.Z)(r,t);var e=(0,s.Z)(r);function r(){return(0,l.Z)(this,r),e.apply(this,arguments)}return(0,f.Z)(r,[{key:"sendTransaction",value:function(t){var e=this;return this.sendUncheckedTransaction(t).then((function(t){return{hash:t,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:function(r){return e.provider.waitForTransaction(t,r)}}}))}}]),r}(Fi),Di={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0},Hi=function(t){(0,a.Z)(r,t);var e=(0,s.Z)(r);function r(t,n){var i;(0,l.Z)(this,r),Oi.checkNew(this instanceof r?this.constructor:void 0,r);var a=n;return null==a&&(a=new Promise((function(t,e){setTimeout((function(){i.detectNetwork().then((function(e){t(e)}),(function(t){e(t)}))}),0)}))),i=e.call(this,a),t||(t=Et(i.constructor,"defaultUrl")()),xt((0,o.Z)(i),"connection","string"===typeof t?Object.freeze({url:t}):Object.freeze(Mt(t))),i._nextId=42,i}return(0,f.Z)(r,[{key:"_cache",get:function(){return null==this._eventLoopCache&&(this._eventLoopCache={}),this._eventLoopCache}},{key:"detectNetwork",value:function(){var t=this;return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout((function(){t._cache.detectNetwork=null}),0)),this._cache.detectNetwork}},{key:"_uncachedDetectNetwork",value:function(){return Ci(this,void 0,void 0,(0,u.Z)().mark((function t(){var e,r;return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Bi(0);case 2:return e=null,t.prev=3,t.next=6,this.send("eth_chainId",[]);case 6:e=t.sent,t.next=19;break;case 9:return t.prev=9,t.t0=t.catch(3),t.prev=11,t.next=14,this.send("net_version",[]);case 14:e=t.sent,t.next=19;break;case 17:t.prev=17,t.t1=t.catch(11);case 19:if(null==e){t.next=28;break}return r=Et(this.constructor,"getNetwork"),t.prev=21,t.abrupt("return",r(ue.from(e).toNumber()));case 25:return t.prev=25,t.t2=t.catch(21),t.abrupt("return",Oi.throwError("could not detect network",bt.errors.NETWORK_E
2RROR,{chainId:e,event:"invalidNetwork",serverError:t.t2}));case 28:return t.abrupt("return",Oi.throwError("could not detect network",bt.errors.NETWORK_ERROR,{event:"noNetwork"}));case 29:case"end":return t.stop()}}),t,this,[[3,9],[11,17],[21,25]])})))}},{key:"getSigner",value:function(t){return new Fi(ji,this,t)}},{key:"getUncheckedSigner",value:function(t){return this.getSigner(t).connectUnchecked()}},{key:"listAccounts",value:function(){var t=this;return this.send("eth_accounts",[]).then((function(e){return e.map((function(e){return t.formatter.address(e)}))}))}},{key:"send",value:function(t,e){var r=this,n={method:t,params:e,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:Pt(n),provider:this});var i=["eth_chainId","eth_blockNumber"].indexOf(t)>=0;if(i&&this._cache[t])return this._cache[t];var o=gn(this.connection,JSON.stringify(n),Li).then((function(t){return r.emit("debug",{action:"response",request:n,response:t,provider:r}),t}),(function(t){throw r.emit("debug",{action:"response",error:t,request:n,provider:r}),t}));return i&&(this._cache[t]=o,setTimeout((function(){r._cache[t]=null}),0)),o}},{key:"prepareRequest",value:function(t,e){switch(t){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[Zi(e.address),e.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[Zi(e.address),e.blockTag]];case"getCode":return["eth_getCode",[Zi(e.address),e.blockTag]];case"getStorageAt":return["eth_getStorageAt",[Zi(e.address),e.position,e.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[e.signedTransaction]];case"getBlock":return e.blockTag?["eth_getBlockByNumber",[e.blockTag,!!e.includeTransactions]]:e.blockHash?["eth_getBlockByHash",[e.blockHash,!!e.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[e.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[e.transactionHash]];case"call":return["eth_call",[Et(this.constructor,"hexlifyTransaction")(e.transaction,{from:!0}),e.blockTag]];case"estimateGas":return["eth_estimateGas",[Et(this.constructor,"hexlifyTransaction")(e.transaction,{from:!0})]];case"getLogs":return e.filter&&null!=e.filter.address&&(e.filter.address=Zi(e.filter.address)),["eth_getLogs",[e.filter]]}return null}},{key:"perform",value:function(t,e){return Ci(this,void 0,void 0,(0,u.Z)().mark((function r(){var n,i,o;return(0,u.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("call"!==t&&"estimateGas"!==t){r.next=8;break}if(!(n=e.transaction)||null==n.type||!ue.from(n.type).isZero()){r.next=8;break}if(null!=n.maxFeePerGas||null!=n.maxPriorityFeePerGas){r.next=8;break}return r.next=6,this.getFeeData();case 6:null==(i=r.sent).maxFeePerGas&&null==i.maxPriorityFeePerGas&&((e=Mt(e)).transaction=Mt(n),delete e.transaction.type);case 8:return null==(o=this.prepareRequest(t,e))&&Oi.throwError(t+" not implemented",bt.errors.NOT_IMPLEMENTED,{operation:t}),r.prev=10,r.next=13,this.send(o[0],o[1]);case 13:return r.abrupt("return",r.sent);case 16:return r.prev=16,r.t0=r.catch(10),r.abrupt("return",Ri(t,r.t0,e));case 19:case"end":return r.stop()}}),r,this,[[10,16]])})))}},{key:"_startEvent",value:function(t){"pending"===t.tag&&this._startPending(),(0,ut.Z)((0,ct.Z)(r.prototype),"_startEvent",this).call(this,t)}},{key:"_startPending",value:function(){if(null==this._pendingFilter){var t=this,e=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=e,e.then((function(r){return function n(){t.send("eth_getFilterChanges",[r]).then((function(r){if(t._pendingFilter!=e)return null;var n=Promise.resolve();return r.forEach((function(e){t._emitted["t:"+e.toLowerCase()]="pending",n=n.then((function(){return t.getTransaction(e).then((function(e){return t.emit("pending",e),null}))}))})),n.then((function(){return Bi(1e3)}))})).then((function(){if(t._pendingFilter==e)return setTimeout((function(){n()}),0),null;t.send("eth_uninstallFilter",[r])})).catch((function(t){}))}(),r})).catch((function(t){}))}}},{key:"_stopEvent",value:function(t){"pending"===t.tag&&0===this.listenerCount("pending")&&(this._pe
2ndingFilter=null),(0,ut.Z)((0,ct.Z)(r.prototype),"_stopEvent",this).call(this,t)}}],[{key:"defaultUrl",value:function(){return"http://localhost:8545"}},{key:"hexlifyTransaction",value:function(t,e){var r,n,i=Mt(Di);if(e)for(var o in e)e[o]&&(i[o]=!0);n=i,(r=t)&&"object"===typeof r||_t.throwArgumentError("invalid object","object",r),Object.keys(r).forEach((function(t){n[t]||_t.throwArgumentError("invalid object key - "+t,"transaction:"+t,r)}));var a={};return["gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach((function(e){if(null!=t[e]){var r=te(t[e]);"gasLimit"===e&&(e="gas"),a[e]=r}})),["from","to","data"].forEach((function(e){null!=t[e]&&(a[e]=Yt(t[e]))})),t.accessList&&(a.accessList=rn(t.accessList)),a}}]),r}(Ni),zi=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{u(n.next(t))}catch(e){o(e)}}function s(t){try{u(n.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},$i=new bt(Ct),qi=function(t){(0,a.Z)(r,t);var e=(0,s.Z)(r);function r(){return(0,l.Z)(this,r),e.apply(this,arguments)}return(0,f.Z)(r,[{key:"detectNetwork",value:function(){var t=this,e=Object.create(null,{detectNetwork:{get:function(){return(0,ut.Z)((0,ct.Z)(r.prototype),"detectNetwork",t)}}});return zi(this,void 0,void 0,(0,u.Z)().mark((function t(){var r;return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!=(r=this.network)){t.next=7;break}return t.next=4,e.detectNetwork.call(this);case 4:(r=t.sent)||$i.throwError("no network detected",bt.errors.UNKNOWN_ERROR,{}),null==this._network&&(xt(this,"_network",r),this.emit("network",r,null));case 7:return t.abrupt("return",r);case 8:case"end":return t.stop()}}),t,this)})))}}]),r}(Hi),Gi=!1,Wi=!1,Vi={debug:1,default:2,info:2,warning:3,error:4,off:5},Ki=Vi.default,Yi=null;var Xi,Ji,Qi=function(){try{var t=[];if(["NFD","NFC","NFKD","NFKC"].forEach((function(e){try{if("test"!=="test".normalize(e))throw new Error("bad normalize")}catch(r){t.push(e)}})),t.length)throw new Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(e){return e.message}return null}();!function(t){t.DEBUG="DEBUG",t.INFO="INFO",t.WARNING="WARNING",t.ERROR="ERROR",t.OFF="OFF"}(Xi||(Xi={})),function(t){t.UNKNOWN_ERROR="UNKNOWN_ERROR",t.NOT_IMPLEMENTED="NOT_IMPLEMENTED",t.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",t.NETWORK_ERROR="NETWORK_ERROR",t.SERVER_ERROR="SERVER_ERROR",t.TIMEOUT="TIMEOUT",t.BUFFER_OVERRUN="BUFFER_OVERRUN",t.NUMERIC_FAULT="NUMERIC_FAULT",t.MISSING_NEW="MISSING_NEW",t.INVALID_ARGUMENT="INVALID_ARGUMENT",t.MISSING_ARGUMENT="MISSING_ARGUMENT",t.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",t.CALL_EXCEPTION="CALL_EXCEPTION",t.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",t.NONCE_EXPIRED="NONCE_EXPIRED",t.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",t.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",t.TRANSACTION_REPLACED="TRANSACTION_REPLACED",t.ACTION_REJECTED="ACTION_REJECTED"}(Ji||(Ji={}));var to="0123456789abcdef",eo=function(){function t(e){(0,l.Z)(this,t),Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}return(0,f.Z)(t,[{key:"_log",value:function(t,e){var r=t.toLowerCase();null==Vi[r]&&this.throwArgumentError("invalid log level name","logLevel",t),Ki>Vi[r]||console.log.apply(console,e)}},{key:"debug",value:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];this._log(t.levels.DEBUG,r)}},{key:"info",value:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];this._log(t.levels.INFO,r)}},{key:"warn",value:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];this._log(t.levels.WARNING,r)}},{key:"makeError",value:function(e,r,n){if(Wi)return this.makeError("censored error",r,{});r||(r=t.errors.UNKNOWN_ERROR),n||(n={});var i=[];Object.keys(n).forEach((function(t){var e=n[t];try{if(e instanceof Uint8Array){for(var r="",o=0;o<e.length;o++)r+=to[e[o]>>4],r+=to[15&e[o]];i.push(t+"=Uint8Array(0x"+r+")")}else i.push(t+"="+JSON.stringify(e))}catch(u){i.push(t+"="+JSON.stringify(n[t].toString()))}})),i.push("code=".concat(r)),i.push("version=".concat(this.version));var o=e,a="";switch(r){case Ji.NUMERIC_FAULT:a="NUMERIC_FAULT";var s=e;switch(s){case"overflow":case"underflow":case"division-by-zero":a+="-"+s;break;case"negative-power":case"negative-width":a+="-unsupported";break;case"unbound-bitwise-result":a+="-unbound-result"}break;case Ji.CALL_EXCEPTION:case Ji.INSUFFICIENT_FUNDS:case Ji.MISSING_NEW:case Ji.NONCE_EXPIRED:case Ji.REPLACEMENT_UNDERPRICED:case Ji.TRANSACTION_REPLACED:case Ji.UNPREDICTABLE_GAS_LIMIT:a=r}a&&(e+=" [ See: https://links.ethers.org/v5-errors-"+a+" ]"),i.length&&(e+=" ("+i.join(", ")+")");var u=new Error(e);
2return u.reason=o,u.code=r,Object.keys(n).forEach((function(t){u[t]=n[t]})),u}},{key:"throwError",value:function(t,e,r){throw this.makeError(t,e,r)}},{key:"throwArgumentError",value:function(e,r,n){return this.throwError(e,t.errors.INVALID_ARGUMENT,{argument:r,value:n})}},{key:"assert",value:function(t,e,r,n){t||this.throwError(e,r,n)}},{key:"assertArgument",value:function(t,e,r,n){t||this.throwArgumentError(e,r,n)}},{key:"checkNormalize",value:function(e){null==e&&(e="platform missing String.prototype.normalize"),Qi&&this.throwError("platform missing String.prototype.normalize",t.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:Qi})}},{key:"checkSafeUint53",value:function(e,r){"number"===typeof e&&(null==r&&(r="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(r,t.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(r,t.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}},{key:"checkArgumentCount",value:function(e,r,n){n=n?": "+n:"",e<r&&this.throwError("missing argument"+n,t.errors.MISSING_ARGUMENT,{count:e,expectedCount:r}),e>r&&this.throwError("too many arguments"+n,t.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:r})}},{key:"checkNew",value:function(e,r){e!==Object&&null!=e||this.throwError("missing new",t.errors.MISSING_NEW,{name:r.name})}},{key:"checkAbstract",value:function(e,r){e===r?this.throwError("cannot instantiate abstract class "+JSON.stringify(r.name)+" directly; use a sub-class",t.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):e!==Object&&null!=e||this.throwError("missing new",t.errors.MISSING_NEW,{name:r.name})}}],[{key:"globalLogger",value:function(){return Yi||(Yi=new t("logger/5.7.0")),Yi}},{key:"setCensorship",value:function(e,r){if(!e&&r&&this.globalLogger().throwError("cannot permanently disable censorship",t.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),Gi){if(!e)return;this.globalLogger().throwError("error censorship permanent",t.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}Wi=!!e,Gi=!!r}},{key:"setLogLevel",value:function(e){var r=Vi[e.toLowerCase()];null!=r?Ki=r:t.globalLogger().warn("invalid log level - "+e)}},{key:"from",value:function(e){return new t(e)}}]),t}();eo.errors=Ji,eo.levels=Xi;var ro=new eo("bytes/5.7.0");function no(t){return!!t.toHexString}function io(t){return t.slice||(t.slice=function(){var e=Array.prototype.slice.call(arguments);return io(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function oo(t){return"number"===typeof t&&t==t&&t%1===0}function ao(t){if(null==t)return!1;if(t.constructor===Uint8Array)return!0;if("string"===typeof t)return!1;if(!oo(t.length)||t.length<0)return!1;for(var e=0;e<t.length;e++){var r=t[e];if(!oo(r)||r<0||r>=256)return!1}return!0}function so(t,e){if(e||(e={}),"number"===typeof t){ro.checkSafeUint53(t,"invalid arrayify value");for(var r=[];t;)r.unshift(255&t),t=parseInt(String(t/256));return 0===r.length&&r.push(0),io(new Uint8Array(r))}if(e.allowMissingPrefix&&"string"===typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),no(t)&&(t=t.toHexString()),uo(t)){var n=t.substring(2);n.length%2&&("left"===e.hexPad?n="0"+n:"right"===e.hexPad?n+="0":ro.throwArgumentError("hex data is odd-length","value",t));for(var i=[],o=0;o<n.length;o+=2)i.push(parseInt(n.substring(o,o+2),16));return io(new Uint8Array(i))}return ao(t)?io(new Uint8Array(t)):ro.throwArgumentError("invalid arrayify value","value",t)}function uo(t,e){return!("string"!==typeof t||!t.match(/^0x[0-9A-Fa-f]*$/))&&(!e||t.length===2+2*e)}var co=r(6023),lo=r.n(co)().BN;new eo("bignumber/5.7.0");var fo=new eo("address/5.5.0");function ho(t){uo(t,20)||fo.throwArgumentError("invalid address","address",t);for(var e=(t=t.toLowerCase()).substring(2).split(""),r=new Uint8Array(40),n=0;n<40;n++)r[n]=e[n].charCodeAt(0);for(var i,o=so((i=r,"0x"+pe().keccak_256(so(i)))),a=0;a<40;a+=2)o[a>>1]>>4>=8&&(e[a]=e[a].toUpperCase()),(15&o[a>>1])>=8&&(e[a+1]=e[a+1].toUpperCase());return"0x"+e.join("")}for(var po={},vo=0;vo<10;vo++)po[String(vo)]=String(vo);for(var mo=0;mo<26;mo++)po[String.fromCharCode(65+mo)]=String(10+mo);var go=Math.floor(function(t){return Math.log10?Math.log10(t):Math.log(t)/Math.LN10}(9007199254740991));function yo(t){for(var e=(t=(t=t.toUpperCase()).substring(4)+t.substring(0,2)+"00").split("").map((function(t){return po[t]})).join("");e.length>=go;){var r=e.substring(0,go);e=parseInt(r,10)%97+e.substring(r.length)}for(var n=String(98-parseInt(e,10)%97);n.length<2;)n="0"+n;return n}function bo(t){var e,r=null;if("string"!==typeof t&&fo.throwArgumentError("invalid address","address",t),t.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==t.substring(0,2)&&(t="0x"+t),r=ho(t),t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&r!==t&&fo.throwArgumentError("bad address checksum","address",t);else if(t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(t.substring(2,4)!==yo(t)&&fo.throwArgumentError("bad icap checksum","address",t),e=t.substring(4),r=new lo(e,36).toString(16);r.length<40;)r="0"+r;r=ho("0x"+r)}else fo.throwArgumentError("invalid address","address",t);return r}function wo(t){try{return bo(t),!0}catch(e){}return!1}var _o=new bt(Ct),xo=1;function Eo(t,e){var r="Web3LegacyFetcher";return function(t,n){var i=this,o={method:t,params:n,id:xo++,jsonrpc:"2.0"};return new Promise((function(t,n){i.emit("debug",{action:"request",fetcher:r,request:Pt(o),provider:i}),e(o,(function(e,a){if(e)return i.emit("debug",{action:"response",fetcher:r,error:e,request:o,provider:i}),n(e);if(i.emit("debug",{action:"response",fetcher:r,request:o,response:a,provider:i}),a.error){var s=new Error(a.error.message);return s.code=a.error.code,s.data=a.error.data,n(s)}t(a.result)}))}))}}var Ao=function(t){(0,a.Z)(r,t);var e=(0,s.Z)(r);function r(t,n){var i;(0,l.Z)(this,r),_o.checkNew(this instanceof r?this.constructor:void 0,r),null==t&&_o.throwArgumentError("missing provider","provider",t);var a=null,s=null,u=null;return"function"===typeof t?(a="unknown:",s=t):(!(a=t.host||t.path||"")&&t.isMetaMask&&(a="metamask"),u=t,t.request?(""===a&&(a="eip-1193:"),s=function(t){return function(e,r){var n=this;null==r&&(r=[]);var i={method:e,params:r};
2return this.emit("debug",{action:"request",fetcher:"Eip1193Fetcher",request:Pt(i),provider:this}),t.request(i).then((function(t){return n.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:i,response:t,provider:n}),t}),(function(t){throw n.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:i,error:t,provider:n}),t}))}}(t)):t.sendAsync?s=Eo(0,t.sendAsync.bind(t)):t.send?s=Eo(0,t.send.bind(t)):_o.throwArgumentError("unsupported provider","provider",t),a||(a="unknown:")),i=e.call(this,a,n),xt((0,o.Z)(i),"jsonRpcFetchFunc",s),xt((0,o.Z)(i),"provider",u),i}return(0,f.Z)(r,[{key:"send",value:function(t,e){return this.jsonRpcFetchFunc(t,e)}}]),r}(Hi),Mo=r(62),ko=r(99456),So=r(15157),Io=r(72388),Po=r(28552),No=r(19560),Co=r(52009),Oo=r(54812),To=r(65958),Ro=r(2735),Bo=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{u(n.next(t))}catch(e){o(e)}}function s(t){try{u(n.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},Lo=new Ro.Yd("contracts/5.5.0");function Zo(t,e){return Bo(this,void 0,void 0,(0,u.Z)().mark((function r(){var n,i;return(0,u.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,e;case 2:return"string"!==typeof(n=r.sent)&&Lo.throwArgumentError("invalid address or ENS name","name",n),r.prev=4,r.abrupt("return",(0,Po.Kn)(n));case 8:r.prev=8,r.t0=r.catch(4);case 10:return t||Lo.throwError("a provider or signer is needed to resolve ENS names",Ro.Yd.errors.UNSUPPORTED_OPERATION,{operation:"resolveName"}),r.next=13,t.resolveName(n);case 13:return null==(i=r.sent)&&Lo.throwArgumentError("resolver or addr is not configured for ENS name","name",n),r.abrupt("return",i);case 16:case"end":return r.stop()}}),r,null,[[4,8]])})))}function jo(t,e,r){return Bo(this,void 0,void 0,(0,u.Z)().mark((function n(){return(0,u.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!Array.isArray(r)){n.next=4;break}return n.next=3,Promise.all(r.map((function(r,n){return jo(t,Array.isArray(e)?e[n]:e[r.name],r)})));case 3:case 7:case 11:case 17:return n.abrupt("return",n.sent);case 4:if("address"!==r.type){n.next=8;break}return n.next=7,Zo(t,e);case 8:if("tuple"!==r.type){n.next=12;break}return n.next=11,jo(t,e,r.components);case 12:if("array"!==r.baseType){n.next=18;break}if(Array.isArray(e)){n.next=15;break}return n.abrupt("return",Promise.reject(Lo.makeError("invalid value for array",Ro.Yd.errors.INVALID_ARGUMENT,{argument:"value",value:e})));case 15:return n.next=17,Promise.all(e.map((function(e){return jo(t,e,r.arrayChildren)})));case 18:return n.abrupt("return",e);case 19:case"end":return n.stop()}}),n)})))}function Fo(t,e,r){return Bo(this,void 0,void 0,(0,u.Z)().mark((function n(){var i,o,a,s,c,l,f,h,d,p,v=this;return(0,u.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i={},r.length===e.inputs.length+1&&"object"===typeof r[r.length-1]&&(i=(0,Oo.DC)(r.pop())),Lo.checkArgumentCount(r.length,e.inputs.length,"passed to contract"),t.signer?i.from?i.from=(0,Oo.mE)({override:Zo(t.signer,i.from),signer:t.signer.getAddress()}).then((function(t){return Bo(v,void 0,void 0,(0,u.Z)().mark((function e(){return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(0,Po.Kn)(t.signer)!==t.override&&Lo.throwError("Contract with a Signer cannot override from",Ro.Yd.errors.UNSUPPORTED_OPERATION,{operation:"overrides.from"}),e.abrupt("return",t.override);case 2:case"end":return e.stop()}}),e)})))})):i.from=t.signer.getAddress():i.from&&(i.from=Zo(t.provider,i.from)),n.next=6,(0,Oo.mE)({args:jo(t.signer||t.provider,r,e.inputs),address:t.resolvedAddress,overrides:(0,Oo.mE)(i)||{}});case 6:if(o=n.sent,a=t.interface.encodeFunctionData(e,o.args),s={data:a,to:o.address},null!=(c=o.overrides).nonce&&(s.nonce=No.O$.from(c.nonce).toNumber()),null!=c.gasLimit&&(s.gasLimit=No.O$.from(c.gasLimit)),null!=c.gasPrice&&(s.gasPrice=No.O$.from(c.gasPrice)),null!=c.maxFeePerGas&&(s.maxFeePerGas=No.O$.from(c.maxFeePerGas)),null!=c.maxPriorityFeePerGas&&(s.maxPriorityFeePerGas=No.O$.from(c.maxPriorityFeePerGas)),null!=c.from&&(s.from=c.from),null!=c.type&&(s.type=c.type),null!=c.accessList&&(s.accessList=(0,To.z7)(c.accessList)),null==s.gasLimit&&null!=e.gas){for(l=21e3,f=(0,Co.lE)(a),h=0;h<f.length;h++)l+=4,f[h]&&(l+=64);s.gasLimit=No.O$.from(e.gas).add(l)}return c.value&&((d=No.O$.from(c.value)).isZero()||e.payable||Lo.throwError("non-
2payable method cannot override value",Ro.Yd.errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:i.value}),s.value=d),c.customData&&(s.customData=(0,Oo.DC)(c.customData)),delete i.nonce,delete i.gasLimit,delete i.gasPrice,delete i.from,delete i.value,delete i.type,delete i.accessList,delete i.maxFeePerGas,delete i.maxPriorityFeePerGas,delete i.customData,p=Object.keys(i).filter((function(t){return null!=i[t]})),p.length&&Lo.throwError("cannot override ".concat(p.map((function(t){return JSON.stringify(t)})).join(",")),Ro.Yd.errors.UNSUPPORTED_OPERATION,{operation:"overrides",overrides:p}),n.abrupt("return",s);case 34:case"end":return n.stop()}}),n)})))}function Uo(t,e){var r=e.wait.bind(e);e.wait=function(e){return r(e).then((function(e){return e.events=e.logs.map((function(r){var n=(0,Oo.p$)(r),i=null;try{i=t.interface.parseLog(r)}catch(o){}return i&&(n.args=i.args,n.decode=function(e,r){return t.interface.decodeEventLog(i.eventFragment,e,r)},n.event=i.name,n.eventSignature=i.signature),n.removeListener=function(){return t.provider},n.getBlock=function(){return t.provider.getBlock(e.blockHash)},n.getTransaction=function(){return t.provider.getTransaction(e.transactionHash)},n.getTransactionReceipt=function(){return Promise.resolve(e)},n})),e}))}}function Do(t,e,r){var n=t.signer||t.provider;return function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return Bo(this,void 0,void 0,(0,u.Z)().mark((function i(){var a,s,c,l,f;return(0,u.Z)().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(a=void 0,o.length!==e.inputs.length+1||"object"!==typeof o[o.length-1]){i.next=9;break}if(null==(s=(0,Oo.DC)(o.pop())).blockTag){i.next=7;break}return i.next=6,s.blockTag;case 6:a=i.sent;case 7:delete s.blockTag,o.push(s);case 9:if(null==t.deployTransaction){i.next=12;break}return i.next=12,t._deployed(a);case 12:return i.next=14,Fo(t,e,o);case 14:return c=i.sent,i.next=17,n.call(c,a);case 17:return l=i.sent,i.prev=18,f=t.interface.decodeFunctionResult(e,l),r&&1===e.outputs.length&&(f=f[0]),i.abrupt("return",f);case 24:throw i.prev=24,i.t0=i.catch(18),i.t0.code===Ro.Yd.errors.CALL_EXCEPTION&&(i.t0.address=t.address,i.t0.args=o,i.t0.transaction=c),i.t0;case 28:case"end":return i.stop()}}),i,null,[[18,24]])})))}}function Ho(t,e,r){return e.constant?Do(t,e,r):function(t,e){return function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return Bo(this,void 0,void 0,(0,u.Z)().mark((function r(){var i,o;return(0,u.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.signer||Lo.throwError("sending a transaction requires a signer",Ro.Yd.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction"}),null==t.deployTransaction){r.next=4;break}return r.next=4,t._deployed();case 4:return r.next=6,Fo(t,e,n);case 6:return i=r.sent,r.next=9,t.signer.sendTransaction(i);case 9:return o=r.sent,Uo(t,o),r.abrupt("return",o);case 12:case"end":return r.stop()}}),r)})))}}(t,e)}function zo(t){return!t.address||null!=t.topics&&0!==t.topics.length?(t.address||"*")+"@"+(t.topics?t.topics.map((function(t){return Array.isArray(t)?t.join("|"):t})).join(":"):""):"*"}var $o,qo,Go=function(){function t(e,r){(0,l.Z)(this,t),(0,Oo.zG)(this,"tag",e),(0,Oo.zG)(this,"filter",r),this._listeners=[]}return(0,f.Z)(t,[{key:"addListener",value:function(t,e){this._listeners.push({listener:t,once:e})}},{key:"removeListener",value:function(t){var e=!1;this._listeners=this._listeners.filter((function(r){return!(!e&&r.listener===t)||(e=!0,!1)}))}},{key:"removeAllListeners",value:function(){this._listeners=[]}},{key:"listeners",value:function(){return this._listeners.map((function(t){return t.listener}))}},{key:"listenerCount",value:function(){return this._listeners.length}},{key:"run",value:function(t){var e=this,r=this.listenerCount();return this._listeners=this._listeners.filter((function(r){var n=t.slice();return setTimeout((function(){r.listener.apply(e,n)}),0),!r.once})),r}},{key:"prepareEvent",value:function(t){}},{key:"getEmit",value:function(t){return[t]}}]),t}(),Wo=function(t){(0,a.Z)(r,t);var e=(0,s.Z)(r);function r(){return(0,l.Z)(this,r),e.call(this,"error",null)}return(0,f.Z)(r)}
2(Go),Vo=function(t){(0,a.Z)(r,t);var e=(0,s.Z)(r);function r(t,n,i,a){var s;(0,l.Z)(this,r);var u={address:t},c=n.getEventTopic(i);return a?(c!==a[0]&&Lo.throwArgumentError("topic mismatch","topics",a),u.topics=a.slice()):u.topics=[c],s=e.call(this,zo(u),u),(0,Oo.zG)((0,o.Z)(s),"address",t),(0,Oo.zG)((0,o.Z)(s),"interface",n),(0,Oo.zG)((0,o.Z)(s),"fragment",i),s}return(0,f.Z)(r,[{key:"prepareEvent",value:function(t){var e=this;(0,ut.Z)((0,ct.Z)(r.prototype),"prepareEvent",this).call(this,t),t.event=this.fragment.name,t.eventSignature=this.fragment.format(),t.decode=function(t,r){return e.interface.decodeEventLog(e.fragment,t,r)};try{t.args=this.interface.decodeEventLog(this.fragment,t.data,t.topics)}catch(n){t.args=null,t.decodeError=n}}},{key:"getEmit",value:function(t){var e=(0,Mo.BR)(t.args);if(e.length)throw e[0].error;var r=(t.args||[]).slice();return r.push(t),r}}]),r}(Go),Ko=function(t){(0,a.Z)(r,t);var e=(0,s.Z)(r);function r(t,n){var i;return(0,l.Z)(this,r),i=e.call(this,"*",{address:t}),(0,Oo.zG)((0,o.Z)(i),"address",t),(0,Oo.zG)((0,o.Z)(i),"interface",n),i}return(0,f.Z)(r,[{key:"prepareEvent",value:function(t){var e=this;(0,ut.Z)((0,ct.Z)(r.prototype),"prepareEvent",this).call(this,t);try{var n=this.interface.parseLog(t);t.event=n.name,t.eventSignature=n.signature,t.decode=function(t,r){return e.interface.decodeEventLog(n.eventFragment,t,r)},t.args=n.args}catch(i){}}}]),r}(Go),Yo=function(){function t(e,r,n){var i=this;(0,l.Z)(this,t),Lo.checkNew(this instanceof t?this.constructor:void 0,Xo),(0,Oo.zG)(this,"interface",(0,Oo.tu)(this instanceof t?this.constructor:void 0,"getInterface")(r)),null==n?((0,Oo.zG)(this,"provider",null),(0,Oo.zG)(this,"signer",null)):Io.E.isSigner(n)?((0,Oo.zG)(this,"provider",n.provider||null),(0,Oo.zG)(this,"signer",n)):So.zt.isProvider(n)?((0,Oo.zG)(this,"provider",n),(0,Oo.zG)(this,"signer",null)):Lo.throwArgumentError("invalid signer or provider","signerOrProvider",n),(0,Oo.zG)(this,"callStatic",{}),(0,Oo.zG)(this,"estimateGas",{}),(0,Oo.zG)(this,"functions",{}),(0,Oo.zG)(this,"populateTransaction",{}),(0,Oo.zG)(this,"filters",{});var o={};if(Object.keys(this.interface.events).forEach((function(t){var e=i.interface.events[t];(0,Oo.zG)(i.filters,t,(function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return{address:i.address,topics:i.interface.encodeFilterTopics(e,r)}})),o[e.name]||(o[e.name]=[]),o[e.name].push(t)})),Object.keys(o).forEach((function(t){var e=o[t];1===e.length?(0,Oo.zG)(i.filters,t,i.filters[e[0]]):Lo.warn("Duplicate definition of ".concat(t," (").concat(e.join(", "),")"))})),(0,Oo.zG)(this,"_runningEvents",{}),(0,Oo.zG)(this,"_wrappedEmits",{}),null==e&&Lo.throwArgumentError("invalid contract address or ENS name","addressOrName",e),(0,Oo.zG)(this,"address",e),this.provider)(0,Oo.zG)(this,"resolvedAddress",Zo(this.provider,e));else try{(0,Oo.zG)(this,"resolvedAddress",Promise.resolve((0,Po.Kn)(e)))}catch(c){Lo.throwError("provider is required to use ENS name as contract address",Ro.Yd.errors.UNSUPPORTED_OPERATION,{operation:"new Contract"})}var a={},s={};Object.keys(this.interface.functions).forEach((function(t){var e=i.interface.functions[t];if(s[t])Lo.warn("Duplicate ABI entry for ".concat(JSON.stringify(t)));else{s[t]=!0;var r=e.name;a["%".concat(r)]||(a["%".concat(r)]=[]),a["%".concat(r)].push(t),null==i[t]&&(0,Oo.zG)(i,t,Ho(i,e,!0)),null==i.functions[t]&&(0,Oo.zG)(i.functions,t,Ho(i,e,!1)),null==i.callStatic[t]&&(0,Oo.zG)(i.callStatic,t,Do(i,e,!0)),null==i.populateTransaction[t]&&(0,Oo.zG)(i.populateTransaction,t,function(t,e){return function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return Fo(t,e,n)}}(i,e)),null==i.estimateGas[t]&&(0,Oo.zG)(i.estimateGas,t,function(t,e){var r=t.signer||t.provider;return function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return Bo(this,void 0,void 0,(0,u.Z)().mark((function n(){var o;return(0,u.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r||Lo.throwError("estimate require a provider or signer",Ro.Yd.errors.UNSUPPORTED_OPERATION,{operation:"estimateGas"}),n.next=3,Fo(t,e,i);case 3:return o=n.sent,n.next=6,r.estimateGas(o);case 6:return n.abrupt("return",n.sent);case 7:case"end":return n.stop()}}),n)})))}}(i,e))}}
2)),Object.keys(a).forEach((function(t){var e=a[t];if(!(e.length>1)){t=t.substring(1);var r=e[0];try{null==i[t]&&(0,Oo.zG)(i,t,i[r])}catch(n){}null==i.functions[t]&&(0,Oo.zG)(i.functions,t,i.functions[r]),null==i.callStatic[t]&&(0,Oo.zG)(i.callStatic,t,i.callStatic[r]),null==i.populateTransaction[t]&&(0,Oo.zG)(i.populateTransaction,t,i.populateTransaction[r]),null==i.estimateGas[t]&&(0,Oo.zG)(i.estimateGas,t,i.estimateGas[r])}}))}return(0,f.Z)(t,[{key:"deployed",value:function(){return this._deployed()}},{key:"_deployed",value:function(t){var e=this;return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then((function(){return e})):this._deployedPromise=this.provider.getCode(this.address,t).then((function(t){return"0x"===t&&Lo.throwError("contract not deployed",Ro.Yd.errors.UNSUPPORTED_OPERATION,{contractAddress:e.address,operation:"getDeployed"}),e}))),this._deployedPromise}},{key:"fallback",value:function(t){var e=this;this.signer||Lo.throwError("sending a transactions require a signer",Ro.Yd.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});var r=(0,Oo.DC)(t||{});return["from","to"].forEach((function(t){null!=r[t]&&Lo.throwError("cannot override "+t,Ro.Yd.errors.UNSUPPORTED_OPERATION,{operation:t})})),r.to=this.resolvedAddress,this.deployed().then((function(){return e.signer.sendTransaction(r)}))}},{key:"connect",value:function(t){"string"===typeof t&&(t=new Io.b(t,this.provider));var e=new this.constructor(this.address,this.interface,t);return this.deployTransaction&&(0,Oo.zG)(e,"deployTransaction",this.deployTransaction),e}},{key:"attach",value:function(t){return new this.constructor(t,this.interface,this.signer||this.provider)}},{key:"_normalizeRunningEvent",value:function(t){return this._runningEvents[t.tag]?this._runningEvents[t.tag]:t}},{key:"_getRunningEvent",value:function(t){if("string"===typeof t){if("error"===t)return this._normalizeRunningEvent(new Wo);if("event"===t)return this._normalizeRunningEvent(new Go("event",null));if("*"===t)return this._normalizeRunningEvent(new Ko(this.address,this.interface));var e=this.interface.getEvent(t);return this._normalizeRunningEvent(new Vo(this.address,this.interface,e))}if(t.topics&&t.topics.length>0){try{var r=t.topics[0];if("string"!==typeof r)throw new Error("invalid topic");var n=this.interface.getEvent(r);return this._normalizeRunningEvent(new Vo(this.address,this.interface,n,t.topics))}catch(o){}var i={address:this.address,topics:t.topics};return this._normalizeRunningEvent(new Go(zo(i),i))}return this._normalizeRunningEvent(new Ko(this.address,this.interface))}},{key:"_checkRunningEvents",value:function(t){if(0===t.listenerCount()){delete this._runningEvents[t.tag];var e=this._wrappedEmits[t.tag];e&&t.filter&&(this.provider.off(t.filter,e),delete this._wrappedEmits[t.tag])}}},{key:"_wrapEvent",value:function(t,e,r){var n=this,i=(0,Oo.p$)(e);return i.removeListener=function(){r&&(t.removeListener(r),n._checkRunningEvents(t))},i.getBlock=function(){return n.provider.getBlock(e.blockHash)},i.getTransaction=function(){return n.provider.getTransaction(e.transactionHash)},i.getTransactionReceipt=function(){return n.provider.getTransactionReceipt(e.transactionHash)},t.prepareEvent(i),i}},{key:"_addEventListener",value:function(t,e,r){var n=this;if(this.provider||Lo.throwError("events require a provider or a signer with a provider",Ro.Yd.errors.UNSUPPORTED_OPERATION,{operation:"once"}),t.addListener(e,r),this._runningEvents[t.tag]=t,!this._wrappedEmits[t.tag]){var i=function(r){var i=n._wrapEvent(t,r,e);if(null==i.decodeError)try{var o=t.getEmit(i);n.emit.apply(n,[t.filter].concat((0,h.Z)(o)))}catch(a){i.decodeError=a.error}null!=t.filter&&n.emit("event",i),null!=i.decodeError&&n.emit("error",i.decodeError,i)};this._wrappedEmits[t.tag]=i,null!=t.filter&&this.provider.on(t.filter,i)}}},{key:"queryFilter",value:function(t,e,r){var n=this,i=this._getRunningEvent(t),o=(0,Oo.DC)(i.filter);return"string"===typeof e&&(0,Co.A7)(e,32)?(null!=r&&Lo.throwArgumentError("cannot specify toBlock with blockhash","toBlock",r),o.blockHash=e):(o.fromBlock=null!=e?e:0,o.toBlock=null!=r?r:"latest"),this.provider.getLogs(o).then((function(t){return t.map((function(t){return n._wrapEvent(i,t,null)}))}))}},{key:"on",value:function(t,e){return this._addEventListener(this._getRunningEvent(t),e,!1),this}},{key:"once",value:function(t,e){return this._addEventListener(this._getRunningEvent(t),e,!0),this}},{key:"emit",value:function(t){if(!this.provider)return!1;for(var e=this._getRunningEvent(t),r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];var o=e.run(n)>0;return this._checkRunningEvents(e),o}},{key:"listenerCount",value:function(t){var e=this;return this.provider?null==t?Object.keys(this._runningEvents).reduce((function(t,r){return t+e._runningEvents[r].listenerCount()}),0):this._getRunningEvent(t).listenerCount():0}},{key:"listeners",value:function(t){if(!this.provider)return[];if(null==t){var e=[];for(var r in this._runningEvents)this._runningEvents[r].listeners().forEac
2h((function(t){e.push(t)}));return e}return this._getRunningEvent(t).listeners()}},{key:"removeAllListeners",value:function(t){if(!this.provider)return this;if(null==t){for(var e in this._runningEvents){var r=this._runningEvents[e];r.removeAllListeners(),this._checkRunningEvents(r)}return this}var n=this._getRunningEvent(t);return n.removeAllListeners(),this._checkRunningEvents(n),this}},{key:"off",value:function(t,e){if(!this.provider)return this;var r=this._getRunningEvent(t);return r.removeListener(e),this._checkRunningEvents(r),this}},{key:"removeListener",value:function(t,e){return this.off(t,e)}}],[{key:"getContractAddress",value:function(t){return(0,Po.CR)(t)}},{key:"getInterface",value:function(t){return ko.vU.isInterface(t)?t:new ko.vU(t)}},{key:"isIndexed",value:function(t){return ko.Hk.isIndexed(t)}}]),t}(),Xo=function(t){(0,a.Z)(r,t);var e=(0,s.Z)(r);function r(){return(0,l.Z)(this,r),e.apply(this,arguments)}return(0,f.Z)(r)}(Yo),Jo=r(52641),Qo=r(79305),ta=r(20548),ea=["id"],ra=["id"],na=["id","address"],ia=["namespace","id","rpcUrl"],oa='<svg width="56" height="56" viewBox="0 0 56 56" fill="none" xmlns="http://www.w3.org/2000/svg">\n<rect width="56" height="56" rx="8" fill="#262A3D"/>\n<g clip-path="url(#clip0_15747_103507)">\n<path d="M20.6176 35.9801L16.0142 27.9949H25.2218L29.826 35.9801H20.6176Z" fill="#262A3D"/>\n<path d="M20.6176 35.9801L16.0142 27.9949H25.2218L29.826 35.9801H20.6176Z" fill="white"/>\n<path d="M25.2218 27.9947H16.0142L20.6176 20.0095H29.826L25.2218 27.9947Z" fill="url(#paint0_linear_15747_103507)"/>\n<path d="M34.4302 27.9948L29.826 20.0096H20.6176L16.0142 12.0244H34.4302L43.6379 27.9948H34.4302Z" fill="#262A3D"/>\n<path d="M34.4302 27.9948L29.826 20.0096H20.6176L16.0142 12.0244H34.4302L43.6379 27.9948H34.4302Z" fill="white"/>\n<path d="M34.4302 43.9652H16.0142L20.6176 35.9801H29.826L34.4302 27.9949H43.6379L34.4302 43.9652Z" fill="url(#paint1_linear_15747_103507)"/>\n</g>\n<defs>\n<linearGradient id="paint0_linear_15747_103507" x1="16.0142" y1="24.0021" x2="29.826" y2="24.0021" gradientUnits="userSpaceOnUse">\n<stop stop-color="#55CCFE"/>\n<stop offset="1" stop-color="#5E93EF"/>\n</linearGradient>\n<linearGradient id="paint1_linear_15747_103507" x1="76.5102" y1="5214.05" x2="10391.8" y2="5214.05" gradientUnits="userSpaceOnUse">\n<stop stop-color="#55CCFE"/>\n<stop offset="1" stop-color="#5E93EF"/>\n</linearGradient>\n<clipPath id="clip0_15747_103507">\n<rect width="27.6667" height="32" fill="white" transform="translate(16 12)"/>\n</clipPath>\n</defs>\n</svg>\n',aa='\n<svg width="152" height="16" viewBox="0 0 152 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M4.03641 6.252C3.23241 6.252 2.41641 6.636 2.04441 7.272V6.396H1.00041V14.724H2.04441V11.124C2.41641 11.784 3.20841 12.144 4.04841 12.144C5.58441 12.144 6.84441 10.98 6.84441 9.204C6.84441 7.44 5.57241 6.252 4.03641 6.252ZM3.94041 11.16C3.02841 11.16 2.04441 10.428 2.04441 9.216C2.04441 8.016 2.94441 7.236 3.94041 7.236C4.97241 7.236 5.78841 8.1 5.78841 9.216C5.78841 10.344 4.97241 11.16 3.94041 11.16ZM10.8452 12.144C12.4412 12.144 13.7852 10.968 13.7852 9.192C13.7852 7.416 12.4412 6.252 10.8452 6.252C9.24919 6.252 7.91719 7.416 7.91719 9.192C7.91719 10.968 9.24919 12.144 10.8452 12.144ZM10.8452 11.16C9.82519 11.16 8.97319 10.356 8.97319 9.192C8.97319 8.04 9.82519 7.236 10.8452 7.236C11.8772 7.236 12.7412 8.04 12.7412 9.192C12.7412 10.356 11.8772 11.16 10.8452 11.16ZM22.2729 6.396L20.8449 10.38L19.4049 6.396H18.3849L16.9569 10.38L15.5289 6.396H14.4009L16.5369 12H17.4009L18.8889 7.836L20.4369 12H21.3129L23.4009 6.396H22.2729ZM29.6948 9.18C29.6948 7.404 28.5068 6.252 26.9108 6.252C25.3148 6.252 24.0308 7.404 24.0308 9.18C24.0308 10.956 25.3148 12.144 26.9108 12.144C27.9908 12.144 28.9988 11.616 29.4788 10.644L28.5788 10.284C28.2548 10.848 27.6308 11.16 26.9468 11.16C25.9868 11.16 25.2668 10.644 25.1108 9.648H29.6708C29.6828 9.492 29.6948 9.336 29.6948 9.18ZM25.1228 8.748C25.2908 7.74 25.9628 7.236 26.9108 7.236C27.8348 7.236 28.5188 7.788 28.6508 8.748H25.1228ZM33.7456 6.252C33.0016 6.252 32.4616 6.684 32.1736 7.668V6.396H31.1176V12H32.1736V9.948C32.1736 8.472 32.6176 7.26 33.733
26 7.26C33.9496 7.26 34.2496 7.308 34.5496 7.452L34.7176 6.468C34.5496 6.36 34.1416 6.252 33.7456 6.252ZM40.8627 9.18C40.8627 7.404 39.6747 6.252 38.0787 6.252C36.4827 6.252 35.1987 7.404 35.1987 9.18C35.1987 10.956 36.4827 12.144 38.0787 12.144C39.1587 12.144 40.1667 11.616 40.6467 10.644L39.7467 10.284C39.4227 10.848 38.7987 11.16 38.1147 11.16C37.1547 11.16 36.4347 10.644 36.2787 9.648H40.8387C40.8507 9.492 40.8627 9.336 40.8627 9.18ZM36.2907 8.748C36.4587 7.74 37.1307 7.236 38.0787 7.236C39.0027 7.236 39.6867 7.788 39.8187 8.748H36.2907ZM46.7136 3.348V7.272C46.3416 6.612 45.5496 6.252 44.7096 6.252C43.1736 6.252 41.9136 7.416 41.9136 9.192C41.9136 10.956 43.1856 12.144 44.7216 12.144C45.5256 12.144 46.3416 11.76 46.7136 11.124V12H47.7576V3.348H46.7136ZM44.8056 11.16C43.7856 11.16 42.9696 10.296 42.9696 9.18C42.9696 8.052 43.7856 7.236 44.8056 7.236C45.7296 7.236 46.7136 7.968 46.7136 9.18C46.7136 10.38 45.8136 11.16 44.8056 11.16ZM55.6695 6.252C54.8295 6.252 54.0375 6.612 53.6655 7.272V3.348H52.6215V12H53.6655V11.124C54.0375 11.76 54.8535 12.144 55.6575 12.144C57.1935 12.144 58.4655 10.956 58.4655 9.192C58.4655 7.416 57.2055 6.252 55.6695 6.252ZM55.5615 11.16C54.5655 11.16 53.6655 10.38 53.6655 9.18C53.6655 7.968 54.6495 7.236 55.5615 7.236C56.5935 7.236 57.4095 8.052 57.4095 9.18C57.4095 10.296 56.5935 11.16 55.5615 11.16ZM63.6097 6.396L61.8937 10.524L60.2017 6.396H59.0737L61.3297 11.832L60.1537 14.724H61.2577L64.7377 6.396H63.6097Z" fill="var(--w3o-text-color, #707481)"/>\n<g clip-path="url(#clip0_13558_103869)">\n<path d="M143.502 11.0888L141.863 8.24889H145.142L146.782 11.0888H143.502Z" fill="currentColor"/>\n<path d="M145.142 8.24887H141.863L143.502 5.40895H146.782L145.142 8.24887Z" fill="url(#paint0_linear_13558_103869)"/>\n<path d="M148.421 8.24888L146.782 5.40896H143.502L141.863 2.56903H148.421L151.701 8.24888H148.421Z" fill="currentColor"/>\n<path d="M148.421 13.9287H141.863L143.502 11.0888H146.782L148.421 8.24889H151.701L148.421 13.9287Z" fill="url(#paint1_linear_13558_103869)"/>\n<path d="M76.4774 8.89232C76.4774 10.9327 74.9716 12.5077 73.1366 12.5077C72.1369 12.5077 71.4106 12.1378 70.9181 11.508V12.316H69.1513V2.71994L70.9181 2.17606V6.27771C71.4106 5.64894 72.1369 5.27797 73.1366 5.27797C74.9716 5.27797 76.4774 6.85198 76.4774 8.89232ZM74.7106 8.89232C74.7106 7.73959 73.9037 6.96201 72.8076 6.96201C71.7114 6.96201 70.9213 7.74273 70.9213 8.89232C70.9213 10.0419 71.7292 10.8237 72.8076 10.8237C73.8859 10.8237 74.7106 10.043 74.7106 8.89232Z" fill="currentColor"/>\n<path d="M77.2718 2.71994L79.0376 2.17606V12.316H77.2718V2.71994Z" fill="currentColor"/>\n<path d="M79.8183 8.89232C79.8171 8.17544 80.0286 7.47431 80.4261 6.87774C80.8236 6.28117 81.3893 5.816 82.0514 5.54113C82.7135 5.26627 83.4422 5.19408 84.1454 5.33371C84.8485 5.47333 85.4944 5.8185 86.0013 6.32549C86.5081 6.83247 86.8531 7.47847 86.9925 8.18166C87.1319 8.88486 87.0595 9.61361 86.7845 10.2756C86.5094 10.9376 86.0441 11.5031 85.4474 11.9005C84.8507 12.2978 84.1495 12.5092 83.4326 12.5077C82.9565 12.5128 82.4842 12.4227 82.0433 12.2428C81.6024 12.0629 81.2019 11.7967 80.8653 11.46C80.5286 11.1232 80.2626 10.7227 80.0828 10.2817C79.903 9.84083 79.8131 9.36845 79.8183 8.89232ZM85.2948 8.89232C85.2948 7.78359 84.4869 7.00602 83.4326 7.00602C82.3784 7.00602 81.5841 7.78674 81.5841 8.89232C81.5841 9.9979 82.392 10.7786 83.4326 10.7786C84.4733 10.7786 85.2948 10.0021 85.2948 8.89232Z" fill="currentColor"/>\n<path d="M87.7313 8.89233C87.7313 6.85198 89.2645 5.27797 91.3457 5.27797C92.6881 5.27797 93.8513 5.98952 94.413 7.04375L92.8935 7.93451C92.6189 7.37281 92.03 7.01651 91.3321 7.01651C90.2778 7.01651 89.4971 7.79723 89.4971 8.89233C89.4971 9.98743 90.2778 10.7545 91.3321 10.7545C92.0447 10.7545 92.6326 10.4129 92.904 9.8512L94.4371 10.7273C94.1281 11.2741 93.6779 11.7279 93.1335 12.0413C92.5891 12.3547 91.9706 12.5161 91.3425 12.5088C89.2645 12.5077 87.7313 10.9327 87.7313 8.89233Z" fill="currentColor"/>\n<path d="M99.5123 12.316L97.0203 9.20776V12.316H95.2534V2.71994L97.0203 2.17606V8.48153L99.374 5.46974H101.482L98.7316 8.85145L101.566 12.316H99.5123Z" fill="currentColor"/>\n<path d="M108.623 8.11161V12.316H106.856V8.33377C106.856 7.40215 106.296 6.92324 105.501 6.92324C104.639 6.92324 103.994 7.4294 103.994 8.62091V12.316H102.229V5.46974H103.994V6.23579C104.405 5.6196 105.118 5.27797 106.035 5.27797C107.486 5.27797 108.623 6.29657 108.623 8.11161Z" fill="currentColor"/>\n<path d="M116.74 5.46974V12.316H114.975V11.508C114.481 12.1242 113.742 12.5077 112.743 12.5077C110.921 12.5077 109.415 10.9358 109.415 8.89233C109.415 6.84884 110.921 5.27797 112.743 5.27797C113.742 5.27797 114.481 5.66152 114.975 6.27771V5.46974H116.74ZM114.975 8.89233C114.975 7.73959 114.167 6.96201 113.071 6.96201C111.974 6.96201 111.184 7.74273 111.184 8.89233C111.184 10.0419 111.992 10.8237 113.071 10.8237C114.149 10.8237 114.975 10.043 114.975 8.89233Z" fill="currentColor"/>\n<path d="M121.344 7.16742V5.46975H119.796V3.45665L118.027 4.00053V10.0157C118.027 11.8643 118.866 12.5895 121.342 12.3212V10.7137C120.329 10.7692 119.794 10.7545 119.794 10.0157V7.16742H121.344Z" fill="currentColor"/>\n<path d="M122.582 5.46974H124.347V12.316H122.582V5.46974Z" fill="currentColor"/>\n<path d="M132.293 5.46974L129.691 12.316H127.678L125.077 5.46974H127.021L128.678 10.262L130.348 5.46974H132.293Z" fill="currentColor"/>\n<path d="M136.073 10.9075C136.757 10.9075 137.305 10.6204 137.607 10.2232L139.03 11.0448C138.387 11.9754 137.36 12.5119 136.046 12.5119C133.74 12.5119 132.294 10.94 132.294 8.89652C132.294 6.85303 133.761 5.28217 135.908 5.28217C137.935 5.28217 139.373 6.88447 139.373 8.89652C139.37 9.13886 139.346 9.38049 139.301 9.61856H134.143C134.389 10.5219 135.142 10.9075 136.073 10.9075ZM137.607 8.25099C137.387 7.26487 136.648 6.8677 135.908 6.8677C134.965 6.8677 134.321 7.37491 134.114 8.25099H137.607Z" fill="currentColor"/>\n</g>\n<defs>\n<linearGradient id="paint0_linear_13558_103869" x1="141.863" y1="6.82891" x2="146.782" y2="6.82891" gradientUnits="userSpaceOnUse">\n<stop stop-color="#55CCFE"/>\n<stop offset="1" stop-color="#5E93EF"/>\n</linearGradient>\n<linearGradient id="paint1_linear_13558_103869" x1="6973.93" y1="500.862" x2="7897.53" y2="500.862" gradientUnits="userSpaceOnUse">\n<stop stop-color="#55CCFE"/>\n<stop offset="1" stop-color="#5E93EF"/>\n</linearGradient>\n<clipPath id="clip0_13558_103869">\n<rect width="82.8232" height="12" fill="white" transform="translate(69.0884 2)"/>\n</clipPath>\n</defs>\n</svg>
2\n',sa='\n  <svg height="100%" viewBox="0 0 10 14" fill="none" xmlns="http://www.w3.org/2000/svg">\n    <path d="M4.99902 0.12619V5.20805L9.58065 7.12736L4.99902 0.12619Z" fill="white" fill-opacity="0.602"/>\n    <path d="M4.99923 0.12619L0.416992 7.12736L4.99923 5.20805V0.12619Z" fill="white"/>\n    <path d="M4.99902 10.4207V13.8737L9.58371 7.92728L4.99902 10.4207Z" fill="white" fill-opacity="0.602"/>\n    <path d="M4.99923 13.8737V10.4201L0.416992 7.92728L4.99923 13.8737Z" fill="white"/>\n    <path d="M4.99902 9.62134L9.58065 7.12739L4.99902 5.20923V9.62134Z" fill="white" fill-opacity="0.2"/>\n    <path d="M0.416992 7.12739L4.99923 9.62134V5.20923L0.416992 7.12739Z" fill="white" fill-opacity="0.602"/>\n  </svg>\n',ua='\n  <svg width="100%" viewBox="0 0 14 13" fill="none" xmlns="http://www.w3.org/2000/svg">\n    <path d="M10.5091 4.05856C10.2585 3.91901 9.9362 3.91901 9.64974 4.05856L7.64453 5.20986L6.28385 5.94251L4.31445 7.09382C4.0638 7.23337 3.74154 7.23337 3.45508 7.09382L1.91536 6.18673C1.66471 6.04718 1.48568 5.76807 1.48568 5.45408V3.70968C1.48568 3.43057 1.62891 3.15147 1.91536 2.97703L3.45508 2.10483C3.70573 1.96527 4.02799 1.96527 4.31445 2.10483L5.85417 3.01192C6.10482 3.15147 6.28385 3.43057 6.28385 3.74457V4.89587L7.64453 4.12833V2.94214C7.64453 2.66304 7.5013 2.38393 7.21484 2.20949L4.35026 0.569752C4.09961 0.4302 3.77734 0.4302 3.49089 0.569752L0.554687 2.24438C0.268229 2.38393 0.125 2.66304 0.125 2.94214V6.22162C0.125 6.50072 0.268229 6.77983 0.554687 6.95427L3.45508 8.59401C3.70573 8.73356 4.02799 8.73356 4.31445 8.59401L6.28385 7.47759L7.64453 6.71005L9.61393 5.59363C9.86458 5.45408 10.1868 5.45408 10.4733 5.59363L12.013 6.46583C12.2637 6.60539 12.4427 6.88449 12.4427 7.19848V8.94289C12.4427 9.22199 12.2995 9.50109 12.013 9.67553L10.5091 10.5477C10.2585 10.6873 9.9362 10.6873 9.64974 10.5477L8.11002 9.67553C7.85937 9.53598 7.68034 9.25688 7.68034 8.94289V7.82647L6.31966 8.59401V9.74531C6.31966 10.0244 6.46289 10.3035 6.74935 10.478L9.64974 12.1177C9.90039 12.2572 10.2227 12.2572 10.5091 12.1177L13.4095 10.478C13.6602 10.3384 13.8392 10.0593 13.8392 9.74531V6.43095C13.8392 6.15184 13.696 5.87274 13.4095 5.6983L10.5091 4.05856Z" fill="white"/>\n  </svg>\n',ca='\n  <svg width="100%" viewBox="0 0 17 10" fill="none" xmlns="http://www.w3.org/2000/svg">\n    <path d="M3.33611 9.25254C2.38341 9.25254 1.60287 9.02834 0.99442 8.58002C0.393974 8.1237 0.09375 7.47526 0.09375 6.63462C0.09375 6.45849 0.113782 6.2423 0.153782 5.9861C0.257909 5.40972 0.406006 4.71718 0.598133 3.9086C1.14252 1.707 2.54757 0.606201 4.81323 0.606201C5.42967 0.606201 5.98206 0.710266 6.47044 0.918394C6.95882 1.11852 7.34308 1.42278 7.62327 1.8311C7.90346 2.23135 8.04362 2.71174 8.04362 3.27212C8.04362 3.44025 8.02359 3.65241 7.98352 3.9086C7.86346 4.62111 7.71933 5.31366 7.55121 5.9861C7.27101 7.08294 6.78666 7.90354 6.09815 8.44793C5.40964 8.98431 4.489 9.25254 3.33611 9.25254ZM3.50424 7.52326C3.95262 7.52326 4.33284 7.39116 4.6451 7.12697C4.96535 6.86278 5.19351 6.45849 5.32958 5.9141C5.51371 5.16153 5.65387 4.50502 5.74993 3.94463C5.78193 3.7765 5.79793 3.60441 5.79793 3.42822C5.79793 2.6997 5.41764 2.33542 4.65713 2.33542C4.20875 2.33542 3.82449 2.46751 3.50424 2.7317C3.19205 2.99596 2.96786 3.40025 2.83179 3.94463C2.68766 4.48102 2.54354 5.13753 2.39947 5.9141C2.36741 6.07417 2.35141 6.2423 2.35141 6.41842C2.35141 7.155 2.73573 7.52326 3.50424 7.52326Z" fill="white"/>\n    <path d="M8.59569 9.13247C8.50762 9.13247 8.43953 9.10443 8.39153 9.04837C8.35146 8.98431 8.33949 8.9123 8.35549 8.83224L10.0127 1.02648C10.0287 0.938417 10.0727 0.866353 10.1448 0.810289C10.2169 0.754289 10.2929 0.726257 10.373 0.726257H13.5673C14.456 0.726257 15.1685 0.910385 15.7049 1.27864C16.2493 1.64696 16.5215 2.17931 16.5215 2.87582C16.5215 3.07595 16.4975 3.28415 16.4495 3.50027C16.2493 4.42098 15.845 5.10149 15.2366 5.54
2181C14.6361 5.98213 13.8115 6.20229 12.7627 6.20229H11.1415L10.5892 8.83224C10.5731 8.92031 10.5291 8.99231 10.4571 9.04837C10.385 9.10443 10.3089 9.13247 10.2289 9.13247H8.59569ZM12.8468 4.54507C13.183 4.54507 13.4752 4.45298 13.7234 4.26885C13.9796 4.08472 14.1478 3.82053 14.2278 3.47627C14.2518 3.34015 14.2639 3.22008 14.2639 3.11602C14.2639 2.88383 14.1958 2.7077 14.0597 2.58763C13.9236 2.45951 13.6914 2.3955 13.3632 2.3955H11.9221L11.4658 4.54507H12.8468Z" fill="white"/>\n  </svg>\n',la='\n  <svg width="100%" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n    <path d="M11.07 12.85C11.84 11.46 13.32 10.64 14.18 9.41C15.09 8.12 14.58 5.71 12 5.71C10.31 5.71 9.48 6.99 9.13 8.05L6.54 6.96C7.25 4.83 9.18 3 11.99 3C14.34 3 15.95 4.07 16.77 5.41C17.47 6.56 17.88 8.71 16.8 10.31C15.6 12.08 14.45 12.62 13.83 13.76C13.58 14.22 13.48 14.52 13.48 16H10.59C10.58 15.22 10.46 13.95 11.07 12.85ZM14 20C14 21.1 13.1 22 12 22C10.9 22 10 21.1 10 20C10 18.9 10.9 18 12 18C13.1 18 14 18.9 14 20Z" fill="currentColor"/>\n  </svg>\n',fa='\n  <svg width="100%" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n    <path d="M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM13 17H11V11H13V17ZM13 9H11V7H13V9Z" fill="currentColor"/>\n  </svg>\n',ha='\n  <svg width="100%" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">\n    <path d="M6.74999 12.15L3.59999 9L2.54999 10.05L6.74999 14.25L15.75 5.25L14.7 4.2L6.74999 12.15Z" fill="currentColor"/>\n  </svg>\n';var da=function(t){return null!=t};function pa(t){switch(t){case"0x1":case"0x3":case"0x4":case"0x5":return!0;default:return!1}}function va(t){return t.includes("<svg")}function ma(t){return"".concat(t.slice(0,6),"\u2026").concat(t.slice(-4))}function ga(t){return t.length>11?"".concat(t.slice(0,4),"\u2026").concat(t.slice(-6)):t}function ya(t){return ba.apply(this,arguments)}function ba(){return(ba=(0,v.Z)((0,u.Z)().mark((function t(e){var r;return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,navigator.clipboard.writeText(e);case 3:return r=t.sent,t.abrupt("return",r);case 7:t.prev=7,t.t0=t.catch(0),console.error("Failed to copy: ",t.t0);case 10:case"end":return t.stop()}}),t,null,[[0,7]])})))).apply(this,arguments)}var wa=function(t){return"number"===typeof t?"0x".concat(t.toString(16)):t};function _a(t){return"0x".concat((1e9*t).toString(16))}var xa={"0x1":"Ethereum","0x3":"Ropsten","0x4":"Rinkeby","0x5":"Goerli","0xaa36a7":"Sepolia","0x2a":"Kovan","0x38":"Binance","0x89":"Polygon","0xfa":"Fantom","0xa":"Optimism","0x45":"Optimism Kovan","0xa86a":"Avalanche","0xa4ec":"Celo","0x14a33":"Base Goerli","0x64":"Gnosis","0x63564C40":"Harmony One","0xa4b1":"Arbitrum"},Ea={main:"0x1",ropsten:"0x3",rinkeby:"0x4",goerli:"0x5",kovan:"0x2a",xdai:"0x64","bsc-main":"0x38","matic-main":"0x89","fantom-main":"0xfa","matic-mumbai":"0x80001"},Aa={"0x1":{icon:sa,color:"#627EEA"},"0x3":{icon:sa,color:"#627EEA"},"0x4":{icon:sa,color:"#627EEA"},"0x5":{icon:sa,color:"#627EEA"},"0x2a":{icon:sa,color:"#627EEA"},"0xaa36a7":{icon:sa,color:"#627EEA"},"0x38":{icon:'\n  <svg width="100%" height="100%" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">\n    <path d="M4.32975 5.90275L7 3.2325L9.67163 5.90413L11.2254 4.35038L7 0.125L2.776 4.349L4.32975 5.90275ZM0.125 7L1.67875 5.44625L3.2325 7L1.67875 8.55375L0.125 7ZM4.32975 8.09725L7 10.7675L9.67163 8.09587L11.2254 9.64894L7 13.875L2.776 9.651L2.77394 9.64894L4.32975 8.09725ZM10.7675 7L12.3212 5.44625L13.875 7L12.3212 8.55375L10.7675 7ZM8.57575 6.99863H8.57713V7L7 8.57713L5.42494 7.00275L5.42219 7L5.42494 6.99794L5.70062 6.72156L5.83469 6.5875L7 5.42288L8.57644 6.99931L8.57575 6.99863Z" fill="white"/>\n  </svg>\n',color:"#F3BA2F"},"0x89":{icon:ua,color:"#8247E5"},"0xfa":{icon:'\n  <svg height="100%" viewBox="0 0 12 14" fill="none" xmlns="http://www.w3.org/2000/svg">\n    <path d="M5.26613 0.133876C5.46683 0.0457135 5.68592 0 5.90775 0C6.12958 0 6.34867 0.0457135 6.54938 0.133876L10.2679 1.9598C10.3617 1.99893 10.4437 2.05898 10.5068 2.13465C10.5699 2.21033 10.6121 2.29932 10.6298 2.3938H10.6335V11.5637C10.6245 11.6667 10.5857 11.7654 10.5213 11.8495C10.457 11.9336 10.3694 11.9998 10.2679 12.0411L6.54938 13.8656C6.34867 13.9538 6.12958 13.9995 5.90775 13.9995C5.68592 13.9995 5.46683 13.9538 5.26613 13.8656L1.54762 12.0397C1.44724 11.9979 1.36095 11.9313 1.29799 11.8472C1.23504 11.7631 1.19779 11.6646 1.19025 11.5623C1.19025 11.5465 1.19025 11.5332 1.19025 11.522V2.39205C1.20579 2.29767 1.24673 2.20852 1.30923 2.13292C1.37173 2.05733 1.45375 1.99776 1.54762 1.9598L5.26613 0.133876ZM10.0478 7.50898L6.54938 9.22396C6.34872 9.31229 6.12961 9.35809 5.90775 9.35809C5.68589 9.35809 5.46678 9.31229 5.26613 9.22396L1.77525 7.51283V11.5455L5.26613 13.2493C5.43937 13.3471 5.
262982 13.4154 5.82863 13.4512L5.9085 13.4558C6.12668 13.4357 6.3373 13.3704 6.525 13.2647L10.05 11.5301V7.50898H10.0478ZM0.585375 11.3642C0.568078 11.6186 0.612957 11.8734 0.716625 12.1093C0.805331 12.2602 0.936232 12.3857 1.09538 12.4726L1.10662 12.4796C1.1505 12.5069 1.1985 12.5356 1.25663 12.5692L1.32563 12.6081L1.53675 12.7267L1.23375 13.1922L0.9975 13.0592L0.95775 13.0365C0.889125 12.9973 0.8325 12.9637 0.779625 12.9315C0.214875 12.5769 0.004125 12.1912 0 11.3887V11.3642H0.585H0.585375ZM5.61412 5.05096C5.58845 5.05933 5.5634 5.06926 5.53912 5.08071L1.82137 6.90524L1.81013 6.91119H1.80675L1.81275 6.91469L1.82137 6.91889L5.53988 8.74341C5.56405 8.75505 5.58912 8.76499 5.61487 8.77316L5.61412 5.05096ZM6.201 5.05096V8.77456C6.22675 8.76639 6.25182 8.75645 6.276 8.74481L9.9945 6.92029L10.0057 6.91434H10.0091L10.0031 6.91154L9.9945 6.90699L6.276 5.08246C6.25182 5.07083 6.22675 5.06088 6.201 5.05271V5.05096ZM10.0478 3.04479L6.71025 4.68137L10.0478 6.31795V3.04304V3.04479ZM1.77525 3.04864V6.3141L5.103 4.68137L1.77525 3.04864ZM6.27525 0.61617C6.15894 0.569406 6.03364 0.545286 5.907 0.545286C5.78036 0.545286 5.65506 0.569406 5.53875 0.61617L1.821 2.4393L1.80975 2.4449L1.80638 2.44665L1.81238 2.4498L1.821 2.45365L5.5395 4.27817C5.65571 4.32526 5.78106 4.34956 5.90775 4.34956C6.03444 4.34956 6.15979 4.32526 6.276 4.27817L9.9945 2.45365L10.0057 2.4498L10.0091 2.44805L10.0031 2.4449L9.9945 2.4407L6.27525 0.61617ZM10.5968 0.816717L10.833 0.949365L10.875 0.970015C10.9432 1.00921 10.9999 1.04316 11.0528 1.07501C11.6179 1.42851 11.8282 1.81455 11.8328 2.61709V2.64159H11.2459C11.2632 2.38703 11.2183 2.13212 11.1146 1.8961C11.0258 1.74528 10.8948 1.61983 10.7355 1.53316L10.7242 1.52616C10.6807 1.49851 10.6327 1.47016 10.5743 1.43656L10.5056 1.39981L10.2945 1.28151L10.5975 0.816017L10.5968 0.816717Z" fill="white"/>\n  </svg>\n',color:"#1969FF"},"0xa":{icon:ca,color:"#FF0420"},"0x45":{icon:ca,color:"#FF0420"},"0xa86a":{icon:'\n  <svg width="100%" viewBox="0 0 20 19" fill="none" xmlns="http://www.w3.org/2000/svg">\n    <path d="M19.8682 0.489349H0.110352V18.4468H19.8682V0.489349Z" fill="white"/>\n  </svg>\n',color:"#E84142"},"0xa4ec":{icon:'\n  <svg width="100%" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n    <path d="M19.1511 8.08001C19.1511 4.11201 15.9191 0.880005 11.9511 0.880005C8.94313 0.880005 6.38313 2.70401 5.29513 5.32801C2.73513 6.41601 0.911133 8.976 0.911133 11.952C0.911133 15.92 4.14313 19.152 8.11113 19.152C11.1191 19.152 13.6791 17.328 14.7671 14.704C17.2951 13.616 19.1511 11.056 19.1511 8.08001ZM8.11113 17.36C5.13513 17.36 2.70313 14.928 2.70313 11.952C2.70313 10.256 3.50313 8.72001 4.75113 7.72801C4.75113 7.85601 4.75113 7.98401 4.75113 8.08001C4.75113 12.048 7.98313 15.28 11.9511 15.28C12.1111 15.28 12.2391 15.28 12.3991 15.28C11.3751 16.56 9.83913 17.36 8.11113 17.36ZM13.3591 13.296C12.9111 13.424 12.4311 13.488 11.9511 13.488C8.97513 13.488 6.54313 11.056 6.54313 8.08001C6.54313 7.60001 6.60713 7.15201 6.73513 6.736C7.18313 6.60801 7.66313 6.54401 8.14313 6.54401C11.1191 6.54401 13.5511 8.976 13.5511 11.952C13.5191 12.432 13.4551 12.88 13.3591 13.296ZM15.3111 12.304C15.3111 12.176 15.3111 12.048 15.3111 11.952C15.3111 7.984 12.0791 4.752 8.11113 4.752C7.95113 4.752 7.82313 4.752 7.66313 4.752C8.65513 3.472 10.1911 2.67201 11.9191 2.67201C14.8951 2.67201 17.3271 5.10401 17.3271 8.08001C17.3271 9.80801 16.5271 11.312 15.3111 12.304Z" fill="white"/>\n  </svg>\n',color:"#FBCC5C"},"0x64":{icon:'\n  <svg width="100%" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">\n    <path d="M32 16C32 7.16344 24.8366 0 16 0C7.16344 0 0 7.16344 0 16C0 24.8366 7.16344 32 16 32C24.8366 32 32 24.8366 32 16Z" fill="#04795B"/>\n    <path d="M11.6529 17.4492C12.2831 17.4492 12.8648 17.2392 13.3334 16.8758L9.4877 13.0316C9.12413 13.4919 8.9141 14.0734 8.9141 14.7114C8.906 16.2216 10.134 17.4492 11.6529 17.4492Z" fill="#EFEFEF"/>\n    <path d="M23.0931 14.7033C23.0931 14.0734 22.8831 13.4919 22.5195 13.0234L18.6738 16.8677C19.1343 17.2311 19.716 17.4411 20.3543 17.4411C21.8651 17.4492 23.0931 16.2216 23.0931 14.7033Z" fill="#EFEFEF"/>\n    <path d="M25.0322 10.528L23.3275 12.2321C23.8931 12.9105 24.2324 13.7666 24.2324 14.7195C24.2324 16.8597 22.4954 18.5961 20.3544 18.5961C19.4092 18.5961 18.5447 18.2569 17.866 17.6915L15.9998 19.5571L14.1335 17.6915C13.4549 18.2569 12.5985 18.5961 11.6451 18.5961C9.50416 18.5961 7.7672 16.8597 7.7672 14.7195C7.7672 13.7746 8.10651 12.9105 8.67206 12.2321L7.79947 11.3599L6.96736 10.528C5.99787 12.1271 5.44043 13.9927 5.44043 15.9956C5.44043 21.8265 10.1667 26.543 15.9917 26.543C21.8167 26.543 26.543 21.8185 26.543 15.9956C26.5591 13.9846 26.0017 12.119 25.0322 10.528Z" fill="#EFEFEF"/>\n    <path d="M23.6338 8.71084C21.7191 6.6999 19.0045 5.44 15.9991 5.44C12.9937 5.44 10.2872 6.6999 8.3
26435 8.71084C8.10584 8.98545 7.85539 9.27617 7.62109 9.575L15.991 17.9419L24.361 9.56695C24.1509 9.27617 23.9005 8.97734 23.6338 8.71084ZM15.9991 6.81297C18.4713 6.81297 20.7658 7.76593 22.4866 9.50231L15.9991 15.9874L9.5116 9.50231C11.2405 7.76593 13.5269 6.81297 15.9991 6.81297Z" fill="#EFEFEF"/>\n  </svg>\n',color:"#04795B"},"0x63564C40":{icon:'\n  <svg width="100%" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n    <path d="M12.5484 1.04102e-06C11.6346 -0.000708404 10.7578 0.361217 10.1105 1.00633C9.46322 1.65145 9.09835 2.52703 9.096 3.44089V7.256C8.74045 7.28 8.37689 7.29511 8 7.29511C7.62311 7.29511 7.26133 7.31022 6.904 7.33156V3.44089C6.88946 2.53496 6.51938 1.67105 5.87358 1.03553C5.22779 0.400017 4.35805 0.0438409 3.452 0.0438409C2.54595 0.0438409 1.67621 0.400017 1.03042 1.03553C0.384623 1.67105 0.0145378 2.53496 0 3.44089V12.5591C0.0145378 13.465 0.384623 14.329 1.03042 14.9645C1.67621 15.6 2.54595 15.9562 3.452 15.9562C4.35805 15.9562 5.22779 15.6 5.87358 14.9645C6.51938 14.329 6.88946 13.465 6.904 12.5591V8.744C7.25956 8.72 7.62311 8.70489 8 8.70489C8.37689 8.70489 8.73867 8.68978 9.096 8.66845V12.5591C9.11054 13.465 9.48062 14.329 10.1264 14.9645C10.7722 15.6 11.6419 15.9562 12.548 15.9562C13.4541 15.9562 14.3238 15.6 14.9696 14.9645C15.6154 14.329 15.9855 13.465 16 12.5591V3.44089C15.9976 2.52719 15.6329 1.65173 14.9858 1.00665C14.3387 0.361557 13.4622 -0.000472854 12.5484 1.04102e-06ZM3.45156 1.40978C3.99089 1.40954 4.50828 1.62326 4.89023 2.00404C5.27218 2.38482 5.48748 2.90156 5.48889 3.44089V7.48089C4.47892 7.62724 3.49264 7.90609 2.55556 8.31023C2.14954 8.48842 1.76733 8.71655 1.41778 8.98934V3.44089C1.41919 2.90218 1.634 2.38597 2.01518 2.00529C2.39636 1.62462 2.91284 1.41048 3.45156 1.40978ZM5.48889 12.5591C5.48889 13.0994 5.27424 13.6177 4.89217 13.9997C4.51009 14.3818 3.99189 14.5964 3.45156 14.5964C2.91122 14.5964 2.39302 14.3818 2.01094 13.9997C1.62887 13.6177 1.41422 13.0994 1.41422 12.5591V11.6444C1.41422 10.8364 2.05422 10.0711 3.12711 9.59467C3.88309 9.26852 4.6763 9.03656 5.48889 8.904V12.5591ZM12.5484 14.5902C12.0091 14.5905 11.4917 14.3767 11.1098 13.996C10.7278 13.6152 10.5125 13.0984 10.5111 12.5591V8.51911C11.5211 8.37276 12.5074 8.09392 13.4444 7.68978C13.8505 7.51159 14.2327 7.28345 14.5822 7.01067V12.5591C14.5808 13.0978 14.366 13.614 13.9848 13.9947C13.6036 14.3754 13.0872 14.5895 12.5484 14.5902ZM12.8729 6.4C12.1169 6.72615 11.3237 6.95811 10.5111 7.09067V3.44089C10.5111 2.90056 10.7258 2.38235 11.1078 2.00028C11.4899 1.6182 12.0081 1.40356 12.5484 1.40356C13.0888 1.40356 13.607 1.6182 13.9891 2.00028C14.3711 2.38235 14.5858 2.90056 14.5858 3.44089V4.35556C14.5858 5.16 13.9458 5.92534 12.8729 6.4Z" fill="url(#paint0_linear_10254_2422)"/>\n    <defs>\n      <linearGradient id="paint0_linear_10254_2422" x1="1.01333" y1="14.7674" x2="14.8954" y2="0.847434" gradientUnits="userSpaceOnUse">\n        <stop stop-color="#00AEE9"/>\n        <stop offset="1" stop-color="#69FABD"/>\n      </linearGradient>\n    </defs>\n  </svg>\n',color:"#ffffff"},"0xa4b1":{icon:'\n  <svg height="100%" viewBox="0 0 22 25" fill="none" xmlns="http://www.w3.org/2000/svg">\n    <path d="M13.7827 11.3172L15.5966 8.23933L20.4858 15.8545L20.4881 17.3159L20.4722 7.25942C20.4606 7.0136 20.3301 6.7887 20.1218 6.6561L11.3194 1.5928C11.1135 1.49162 10.8523 1.49269 10.6468 1.59594C10.6191 1.60989 10.593 1.62499 10.568 1.64147L10.5374 1.66079L1.99318 6.6121L1.95999 6.62712C1.91737 6.64674 1.8743 6.67165 1.83382 6.70063C1.67186 6.81683 1.56424 6.98861 1.52944 7.18131C1.52423 7.21052 1.52039 7.24026 1.51855 7.27023L1.53197 15.4653L6.08607 8.40666C6.65942 7.47067 7.90869 7.1692 9.06835 7.1856L10.4295 7.22155L2.40986 20.0827L3.3552 20.627L11.4709 7.23458L15.0581 7.22155L6.96327 20.9519L10.3366 22.8921L10.7396 23.1239C10.9101 23.1932 11.111 23.1967 11.283 23.1347L20.2091 17.9618L18.5026 18.9507L13.7827 11.3172ZM14.4747 21.2849L11.0677 15.9375L13.1474 12.4083L17.622 19.461L14.4747 21.2849Z" fill="#2D374B"/>\n    <path d="M11.0684 15.9375L14.4754 21.2849L17.6228 19.4609L13.1482 12.4083L11.0684 15.9375Z" fill="#28A0F0"/>
2\n    <path d="M20.4887 17.3159L20.4864 15.8545L15.5972 8.23932L13.7832 11.3172L18.5031 18.9507L20.2097 17.9618C20.3771 17.8259 20.4783 17.6264 20.489 17.4111L20.4887 17.3159Z" fill="#28A0F0"/>\n    <path d="M7.71943e-05 18.694L2.41 20.0826L10.4296 7.22152L9.0685 7.18557C7.90883 7.16916 6.65964 7.47063 6.08621 8.40662L1.53211 15.4652L0 17.8193V18.694H7.71943e-05Z" fill="white"/>\n    <path d="M15.0582 7.22156L11.4712 7.23459L3.35547 20.627L6.19211 22.2603L6.96354 20.9519L15.0582 7.22156Z" fill="white"/>\n    <path d="M21.9999 7.20306C21.97 6.45287 21.5638 5.76608 20.9275 5.36626L12.0097 0.237888C11.3803 -0.079066 10.594 -0.0794494 9.96363 0.237658C9.88913 0.275218 1.2912 5.26171 1.2912 5.26171C1.17223 5.31874 1.05764 5.38673 0.949789 5.46384C0.381801 5.87094 0.0355663 6.50346 0 7.19846V17.8194L1.53211 15.4653L1.5187 7.27029C1.52054 7.24032 1.52429 7.21088 1.52958 7.18175C1.56415 6.9889 1.67185 6.81689 1.83397 6.70069C1.87444 6.67171 10.6192 1.60995 10.647 1.596C10.8526 1.49275 11.1137 1.49168 11.3195 1.59286L20.122 6.65616C20.3302 6.78876 20.4608 7.01366 20.4723 7.25948V17.4111C20.4617 17.6265 20.3766 17.8259 20.2092 17.9619L18.5026 18.9508L17.6221 19.461L14.4748 21.285L11.283 23.1347C11.1111 23.1968 10.9101 23.1933 10.7397 23.124L6.96334 20.952L6.19191 22.2603L9.58559 24.2142C9.6978 24.278 9.79784 24.3345 9.87985 24.3807C10.0069 24.452 10.0935 24.4996 10.1241 24.5144C10.3653 24.6315 10.7123 24.6997 11.025 24.6997C11.3118 24.6997 11.5913 24.647 11.8559 24.5434L21.1266 19.1745C21.6587 18.7623 21.9717 18.1406 21.9999 17.467V7.20306Z" fill="#96BEDC"/>\n  </svg>\n',color:"#33394B"},"0x14a33":{icon:'\n<svg height="100%" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">\n<g clip-path="url(#clip0_1607_202)">\n<mask id="mask0_1607_202" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="32" height="32">\n<path d="M32 0H0V32H32V0Z" fill="white"/>\n</mask>\n<g mask="url(#mask0_1607_202)">\n<path d="M16 32C19.1645 32 22.258 31.0616 24.8892 29.3036C27.5204 27.5454 29.571 25.0466 30.782 22.123C31.993 19.1993 32.31 15.9823 31.6926 12.8786C31.0752 9.77486 29.5514 6.92394 27.3138 4.6863C25.076 2.44866 22.2252 0.924806 19.1214 0.307442C16.0177 -0.30992 12.8007 0.0069325 9.87706 1.21793C6.95344 2.42894 4.45458 4.4797 2.69648 7.11088C0.938384 9.74206 0 12.8355 0 16C0 20.2434 1.68571 24.3132 4.6863 27.3138C7.68688 30.3142 11.7565 32 16 32Z" fill="#0052FF"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M15.9624 27.2676C22.1852 27.2676 27.23 22.223 27.23 16C27.23 9.7771 22.1852 4.73242 15.9624 4.73242C10.0588 4.73242 5.21566 9.2726 4.7341 15.0518H21.4546V16.928H4.73242C5.20432 22.7168 10.0519 27.2676 15.9624 27.2676Z" fill="white"/>\n</g>\n</g>\n<defs>\n<clipPath id="clip0_1607_202">\n<rect width="32" height="32" fill="white"/>\n</clipPath>\n</defs>\n</svg>\n',color:"#0259F9"},"0x80001":{icon:ua,color:"#8247E5"}},Ma={icon:la,color:"#33394B"};function ka(t){return t?Aa[t.toLowerCase()]:void 0}function Sa(t,e){return!!e.find((function(e){var r=e.id,n=e.namespace;return r===t.id&&n===t.namespace}))}var Ia={pending:{backgroundColor:"var(--onboard-primary-700, var(--primary-700))",borderColor:"#6370E5",eventIcon:'\n<svg width="100%" height="100%" viewBox="0 0 12 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n  <path d="M0 0L0.0100002 6L4 10L0.0100002 14.01L0 20H12V14L8 10L12 6.01V0H0ZM10 14.5V18H2V14.5L6 10.5L10 14.5Z" fill="#929BED"/>\n</svg>\n'},success:{backgroundColor:"#052E17",borderColor:"var(--onboard-success-300, var(--success-300))",eventIcon:'\n<svg width="14" height="11" viewB
2ox="0 0 14 11" fill="none" xmlns="http://www.w3.org/2000/svg">\n  <path d="M4.48076 8.10881L1.33076 4.95881L0.280762 6.00881L4.48076 10.2088L13.4808 1.20881L12.4308 0.158813L4.48076 8.10881Z" fill="#A4F4C6"/>\n</svg>\n'},error:{backgroundColor:"#FDB1B11A",borderColor:"var(--onboard-danger-300, var(--danger-300))",eventIcon:'<svg width="16" height="13" viewBox="0 0 16 13" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M0.666992 13.0002H15.3337L8.00033 0.333496L0.666992 13.0002ZM8.66699 11.0002H7.33366V9.66683H8.66699V11.0002ZM8.66699 8.3335H7.33366V5.66683H8.66699V8.3335Z" fill="#FFB3B3"/>\n</svg>\n'},hint:{backgroundColor:"var(--onboard-gray-500, var(--gray-500))",borderColor:"var(--onboard-gray-500, var(--gray-500))",iconColor:"var(--onboard-gray-100, var(--gray-100))",eventIcon:fa}},Pa=function(t){return new Promise((function(e){return setTimeout(e,t)}))};function Na(t){try{return localStorage.getItem(t)}catch(e){return null}}function Ca(t,e){try{localStorage.setItem(t,e)}catch(r){return}}function Oa(t){try{localStorage.removeItem(t)}catch(e){return}}var Ta={svelteInstance:null,apiKey:null,device:function(){if("undefined"!==typeof window){var t=tt.getParser(window.navigator.userAgent),e=t.getOS(),r=t.getBrowser();return{type:t.getPlatform().type,os:e,browser:r}}return{type:null,os:null,browser:null}}(),initialWalletInit:[],gas:null,containerElements:{accountCenter:null,connectModal:null},transactionPreview:null,unstoppableResolution:null};function Ra(t){Ta=(0,d.Z)((0,d.Z)({},Ta),t)}var Ba={wallets:[],walletModules:[],chains:[],accountCenter:{enabled:!0,position:"bottomRight",expanded:!1,minimal:!0},notify:{enabled:!0,transactionHandler:function(){},position:"topRight",replacement:{gasPriceProbability:{speedup:80,cancel:95}}},notifications:[],locale:"",connect:{showSidebar:!0,disableClose:!1},appMetadata:null},La={TERMS_AGREEMENT:"onboard.js:agreement",LAST_CONNECTED_WALLET:"onboard.js:last_connected_wallet"},Za=768,ja="https://rpc.blocknative.com/protect",Fa="add_chains",Ua="update_chains",Da="reset_store",Ha="add_wallet",za="update_wallet",$a="remove_wallet",qa="update_account",Ga="update_account_center",Wa="update_connect_modal",Va="set_wallet_modules",Ka="set_locale",Ya="update_notify",Xa="add_notification",Ja="remove_notification",Qa="update_balance",ts="update_app_metadata";var es=new m.X(Ba),rs=new g.x;function ns(t){var e=es.getValue();rs.next(function(t,e){var r=e.type,n=e.payload;switch(r){case Fa:return(0,d.Z)((0,d.Z)({},t),{},{chains:[].concat((0,h.Z)(t.chains),(0,h.Z)(n))});case Ua:var i=n,o=t.chains,a=o.findIndex((function(t){return t.id===i.id}));return o[a]=i,(0,d.Z)((0,d.Z)({},t),{},{chains:o});case Ha:var s=n,u=t.wallets.find((function(t){return t.label===s.label}));return(0,d.Z)((0,d.Z)({},t),{},{wallets:[u||n].concat((0,h.Z)(t.wallets.filter((function(t){return t.label!==s.label}))))});case za:var c=n,l=c.id,f=(0,p.Z)(c,ra),v=t.wallets.map((function(t){return t.label===l?(0,d.Z)((0,d.Z)({},t),f):t}));return(0,d.Z)((0,d.Z)({},t),{},{wallets:v});case $a:var m=n;return(0,d.Z)((0,d.Z)({},t),{},{wallets:t.wallets.filter((function(t){return t.label!==m.id}))});case qa:var g=n,y=g.id,b=g.address,w=(0,p.Z)(g,na),_=t.wallets.map((function(t){return t.label===y&&(t.accounts=t.accounts.map((function(t){return t.address===b?(0,d.Z)((0,d.Z)({},t),w):t}))),t}));return(0,d.Z)((0,d.Z)({},t),{},{wallets:_});case Qa:var x=n;return(0,d.Z)((0,d.Z)({},t),{},{wallets:x});case Wa:var E=n;return(0,d.Z)((0,d.Z)({},t),{},{connect:(0,d.Z)((0,d.Z)({},t.connect),E)});case Ga:var A=n;return(0,d.Z)((0,d.Z)({},t),{},{accountCenter:(0,d.Z)((0,d.Z)({},t.accountCenter),A)});case Ya:var M=n;return(0,d.Z)((0,d.Z)({},t),{},{notify:(0,d.Z)((0,d.Z)({},t.notify),M)});case Xa:var k=n,S=(0,h.Z)(t.notifications),I=S.findIndex((function(t){return t.id===k.id}));return-1!==I?S[I]=k:S.unshift(k),(0,d.Z)((0,d.Z)({},t),{},{notifications:S});case Ja:var P=n;return(0,d.Z)((0,d.Z)({},t),{},{notifications:t.notifications.filter((function(t){return t.id!==P}))});case Va:return(0,d.Z)((0,d.Z)({},t),{},{walletModules:n});case Ka:return et.SP.set(n),(0,d.Z)((0,d.Z)({},t),{},{locale:n});case ts:var N=n;return(0,d.Z)((0,d.Z)({},t),{},{appMetadata:(0,d.Z)((0,d.Z)({},t.appMetadata),N)});case Da:return Ba;default:throw new Error("Unknown type: ".concat(r," in appStore reducer"))}}(e,t))}rs.subscribe(es);var is={select:function(t){if(!t)return rs.asObservable();if(!Object.keys(es.getValue()).includes(String(t)))throw new Error("key: ".concat(t," does not exist on this store"));return rs.asObservable().pipe(function(t,e){return(0,z.x)((function(r,n){return e?e(r[t],n[t]):r[t]===n[t]}))}(t),V(t),(0,$.h)(da))},get:function(){return es.getValue()}};function os(){}var as,ss=function(t){return t};function us(t){return t()}function cs(){return Object.create(null)}function ls(t){t.forEach(us)}function fs(t){return"function"===typeof t}function hs(t,e){return t!=t?e==e:t!==e||t&&"object"===typeof t||"function"===typeof t}function ds(t,e){return as||(as=document.createElement("a")),as.href=e,t===as.href}function ps(t,e,r){t.$$.on_destroy.push(function(t){if(null==t)return os;for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];var i=t.subscribe.apply(t,r);return i.unsubscribe?function(){return i.unsubscribe()}:i}(e,r))}function vs(t,e,r,n){if(t){var i=ms(t,e,r,n);return t[0](i)}}function ms(t,e,r,n){return t[1]&&n?function(t,e){for(var r in e)t[r]=e[r];return t}(r.ctx.slice(),t[1](n(e))):r.ctx}function gs(t,e,r,n){if(t[2]&&n){var i=t[2](n(r));if(void 0===e.dirty)return i;if("object"===typeof i){for(var o=[],a=Math.max(e.dirty.length,i.length),s=0;s<a;s+=1)o[s]=e.dirty[s]|i[s];return o}return e.dirty|i}return e.dirty}function ys(t,e,r,n,i,o){if(i){var a=ms(e,r,n,o);t.p(a,i)}}function bs(t){if(t.ctx.length>32){for(var e=[],r=t.ctx.length/32,n=0;n<r;n++)e[n]=-1;return e}return-1}function ws(t){return null==t?"":t}function _s(t){var e="string"===typeof t&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}var xs="undefined"!==typeof window,Es=xs?function(){return window.performance.now()}:function(){return Date.now()},As=xs?function(t){return requestAnimationFrame(t)}:os,Ms=new Set;function ks(t){Ms.forEach((function(e){e.c(t)||(Ms.delete(e),e.f()
2)})),0!==Ms.size&&As(ks)}function Ss(t){var e;return 0===Ms.size&&As(ks),{promise:new Promise((function(r){Ms.add(e={c:t,f:r})})),abort:function(){Ms.delete(e)}}}function Is(t,e){t.appendChild(e)}function Ps(t,e,r){var n=Ns(t);if(!n.getElementById(e)){var i=Ls("style");i.id=e,i.textContent=r,Os(n,i)}}function Ns(t){if(!t)return document;var e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function Cs(t){var e=Ls("style");return Os(Ns(t),e),e.sheet}function Os(t,e){return Is(t.head||t,e),e.sheet}function Ts(t,e,r){t.insertBefore(e,r||null)}function Rs(t){t.parentNode&&t.parentNode.removeChild(t)}function Bs(t,e){for(var r=0;r<t.length;r+=1)t[r]&&t[r].d(e)}function Ls(t){return document.createElement(t)}function Zs(t){return document.createTextNode(t)}function js(){return Zs(" ")}function Fs(){return Zs("")}function Us(t,e,r,n){return t.addEventListener(e,r,n),function(){return t.removeEventListener(e,r,n)}}function Ds(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function Hs(t,e,r){null==r?t.removeAttribute(e):t.getAttribute(e)!==r&&t.setAttribute(e,r)}function zs(t,e){e=""+e,t.data!==e&&(t.data=e)}function $s(t,e,r,n){null==r?t.style.removeProperty(e):t.style.setProperty(e,r,n?"important":"")}function qs(t,e,r){for(var n=0;n<t.options.length;n+=1){var i=t.options[n];if(i.__value===e)return void(i.selected=!0)}r&&void 0===e||(t.selectedIndex=-1)}function Gs(t,e,r){t.classList[r?"add":"remove"](e)}var Ws=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];(0,l.Z)(this,t),this.is_svg=!1,this.is_svg=e,this.e=this.n=null}return(0,f.Z)(t,[{key:"c",value:function(t){this.h(t)}},{key:"m",value:function(t,e){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.e||(this.is_svg?this.e=(r=e.nodeName,document.createElementNS("http://www.w3.org/2000/svg",r)):this.e=Ls(11===e.nodeType?"TEMPLATE":e.nodeName),this.t="TEMPLATE"!==e.tagName?e:e.content,this.c(t)),this.i(n)}},{key:"h",value:function(t){this.e.innerHTML=t,this.n=Array.from("TEMPLATE"===this.e.nodeName?this.e.content.childNodes:this.e.childNodes)}},{key:"i",value:function(t){for(var e=0;e<this.n.length;e+=1)Ts(this.t,this.n[e],t)}},{key:"p",value:function(t){this.d(),this.h(t),this.i(this.a)}},{key:"d",value:function(){this.n.forEach(Rs)}}]),t}();function Vs(t,e){return new t(e)}var Ks,Ys=new Map,Xs=0;function Js(t,e,r,n,i,o,a){for(var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,u=16.666/n,c="{\n",l=0;l<=1;l+=u){var f=e+(r-e)*o(l);c+=100*l+"%{".concat(a(f,1-f),"}\n")}var h=c+"100% {".concat(a(r,1-r),"}\n}"),d="__svelte_".concat(function(t){for(var e=5381,r=t.length;r--;)e=(e<<5)-e^t.charCodeAt(r);return e>>>0}(h),"_").concat(s),p=Ns(t),v=Ys.get(p)||function(t,e){var r={stylesheet:Cs(e),rules:{}};return Ys.set(t,r),r}(p,t),m=v.stylesheet,g=v.rules;g[d]||(g[d]=!0,m.insertRule("@keyframes ".concat(d," ").concat(h),m.cssRules.length));var y=t.style.animation||"";return t.style.animation="".concat(y?"".concat(y,", "):"").concat(d," ").concat(n,"ms linear ").concat(i,"ms 1 both"),Xs+=1,d}function Qs(t,e){var r=(t.style.animation||"").split(", "),n=r.filter(e?function(t){return t.indexOf(e)<0}:function(t){return-1===t.indexOf("__svelte")}),i=r.length-n.length;i&&(t.style.animation=n.join(", "),(Xs-=i)||As((function(){Xs||(Ys.forEach((function(t){var e=t.stylesheet.ownerNode;e&&Rs(e)})),Ys.clear())})))}function tu(t,e,r,n){if(!e)return os;var i=t.getBoundingClientRect();if(e.left===i.left&&e.right===i.right&&e.top===i.top&&e.bottom===i.bottom)return os;var o,a=r(t,{from:e,to:i},n),s=a.delay,u=void 0===s?0:s,c=a.duration,l=void 0===c?300:c,f=a.easing,h=void 0===f?ss:f,d=a.start,p=void 0===d?Es()+u:d,v=a.end,m=void 0===v?p+l:v,g=a.tick,y=void 0===g?os:g,b=a.css,w=!0,_=!1;function x(){b&&Qs(t,o),w=!1}return Ss((function(t){if(!_&&t>=p&&(_=!0),_&&t>=m&&(y(1,0),x()),!w)return!1;if(_){var e=0+1*h((t-p)/l);y(e,1-e)}return!0})),b&&(o=Js(t,0,1,l,u,h,b)),u||(_=!0),y(0,1),x}function eu(t){var e=getComputedStyle(t);if("absolute"!==e.position&&"fixed"!==e.position){var r=e.width,n=e.he
2ight,i=t.getBoundingClientRect();t.style.position="absolute",t.style.width=r,t.style.height=n,ru(t,i)}}function ru(t,e){var r=t.getBoundingClientRect();if(e.left!==r.left||e.top!==r.top){var n=getComputedStyle(t),i="none"===n.transform?"":n.transform;t.style.transform="".concat(i," translate(").concat(e.left-r.left,"px, ").concat(e.top-r.top,"px)")}}function nu(t){Ks=t}function iu(){if(!Ks)throw new Error("Function called outside component initialization");return Ks}function ou(t){iu().$$.on_mount.push(t)}function au(t){iu().$$.on_destroy.push(t)}function su(t,e){var r=this,n=t.$$.callbacks[e.type];n&&n.slice().forEach((function(t){return t.call(r,e)}))}var uu=[],cu=[],lu=[],fu=[],hu=Promise.resolve(),du=!1;function pu(t){lu.push(t)}function vu(t){fu.push(t)}var mu,gu=new Set,yu=0;function bu(){if(0===yu){var t=Ks;do{try{for(;yu<uu.length;){var e=uu[yu];yu++,nu(e),wu(e.$$)}}catch(i){throw uu.length=0,yu=0,i}for(nu(null),uu.length=0,yu=0;cu.length;)cu.pop()();for(var r=0;r<lu.length;r+=1){var n=lu[r];gu.has(n)||(gu.add(n),n())}lu.length=0}while(uu.length);for(;fu.length;)fu.pop()();du=!1,gu.clear(),nu(t)}}function wu(t){if(null!==t.fragment){t.update(),ls(t.before_update);var e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(pu)}}function _u(){return mu||(mu=Promise.resolve()).then((function(){mu=null})),mu}function xu(t,e,r){t.dispatchEvent(function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.bubbles,i=void 0!==n&&n,o=r.cancelable,a=void 0!==o&&o,s=document.createEvent("CustomEvent");return s.initCustomEvent(t,i,a,e),s}("".concat(e?"intro":"outro").concat(r)))}var Eu,Au=new Set;function Mu(){Eu={r:0,c:[],p:Eu}}function ku(){Eu.r||ls(Eu.c),Eu=Eu.p}function Su(t,e){t&&t.i&&(Au.delete(t),t.i(e))}function Iu(t,e,r,n){if(t&&t.o){if(Au.has(t))return;Au.add(t),Eu.c.push((function(){Au.delete(t),n&&(r&&t.d(1),n())})),t.o(e)}else n&&n()}var Pu={duration:0};function Nu(t,e,r){var n,i,o={direction:"in"},a=e(t,r,o),s=!1,u=0;function c(){n&&Qs(t,n)}function l(){var e=a||Pu,r=e.delay,o=void 0===r?0:r,l=e.duration,f=void 0===l?300:l,h=e.easing,d=void 0===h?ss:h,p=e.tick,v=void 0===p?os:p,m=e.css;m&&(n=Js(t,0,1,f,o,d,m,u++)),v(0,1);var g=Es()+o,y=g+f;i&&i.abort(),s=!0,pu((function(){return xu(t,!0,"start")})),i=Ss((function(e){if(s){if(e>=y)return v(1,0),xu(t,!0,"end"),c(),s=!1;if(e>=g){var r=d((e-g)/f);v(r,1-r)}}return s}))}var f=!1;return{start:function(){f||(f=!0,Qs(t),fs(a)?(a=a(o),_u().then(l)):l())},invalidate:function(){f=!1},end:function(){s&&(c(),s=!1)}}}function Cu(t,e,r){var n,i={direction:"out"},o=e(t,r,i),a=!0,s=Eu;function u(){var e=o||Pu,r=e.delay,i=void 0===r?0:r,u=e.duration,c=void 0===u?300:u,l=e.easing,f=void 0===l?ss:l,h=e.tick,d=void 0===h?os:h,p=e.css;p&&(n=Js(t,1,0,c,i,f,p));var v=Es()+i,m=v+c;pu((function(){return xu(t,!1,"start")})),Ss((function(e){if(a){if(e>=m)return d(0,1),xu(t,!1,"end"),--s.r||ls(s.c),!1;if(e>=v){var r=f((e-v)/c);d(1-r,r)}}return a}))}return s.r+=1,fs(o)?_u().then((function(){o=o(i),u()})):u(),{end:function(e){e&&o.tick&&o.tick(1,0),a&&(n&&Qs(t,n),a=!1)}}}function Ou(t,e,r,n){var i={direction:"both"},o=e(t,r,i),a=n?0:1,s=null,u=null,c=null;function l(){c&&Qs(t,c)}function f(t,e){var r=t.b-a;return e*=Math.abs(r),{a:a,b:t.b,d:r,duration:e,start:t.start,end:t.start+e,group:t.group}}function h(e){var r=o||Pu,n=r.delay,i=void 0===n?0:n,h=r.duration,d=void 0===h?300:h,p=r.easing,v=void 0===p?ss:p,m=r.tick,g=void 0===m?os:m,y=r.css,b={start:Es()+i,b:e};e||(b.group=Eu,Eu.r+=1),s||u?u=b:(y&&(l(),c=Js(t,a,e,d,i,v,y)),e&&g(0,1),s=f(b,d),pu((function(){return xu(t,e,"start")})),Ss((function(e){if(u&&e>u.start&&(s=f(u,d),u=null,xu(t,s.b,"start"),y&&(l(),c=Js(t,a,s.b,s.duration,0,v,o.css))),s)if(e>=s.end)g(a=s.b,1-a),xu(t,s.b,"end"),u||(s.b?l():--s.group.r||ls(s.group.c)),s=null;else if(e>=s.start){var r=e-s.start;a=s.a+s.d*v(r/s.duration),g(a,1-a)}return!(!s&&!u)})))}return{run:function(t){fs(o)?_u().then((function(){o=o(i),h(t)})):h(t)},end:function(){l(),s=u=null}}}function Tu(t,e){var r,n=e.token={};function i(t,r,i,o){if(e.token===n){e.resolved=o;var a=e.ctx;void 0!==i&&((a=a.slice())[i]=o);var s=t&&(e.current=t)(a),u=!1;e.block&&(e.blocks?e.blocks.forEach((function(t,n){n!==r&&t&&(Mu(),Iu(t,1,1,(function(){e.blocks[n]===t&&(e.blocks[n]=null)})),ku())})):e.block.d(1),s.c(),Su(s,1),s.m(e.mount(),e.anchor),u=!0),e.block=s,e.blocks&&(e.blocks[r]=s),u&&bu()}}if(!(r=t)||"object"!==typeof r&&"function"!==typeof r||"function"!==typeof r.then){if(e.current!==e.then)return i(e.then,1,e.value,t),!0;e.resolved=t}else{var o=iu();if(t.then((function(t){nu(o),i(e.then,1,e.value,t),nu(null)}),(function(t){if(nu(o),i(e.catch,2,e.error,t),nu(null),!e.hasCatch)throw t})),e.current!==e.pending)return i(e.pending,0),!0}}function Ru(t,e,r){var n=e.slice(),i=t.resolved;t.current===t.then&&(n[t.value]=i),t.current===t.catch&&(n[t.error]=i),t.block.p(n,r)}function Bu(t,e){t.d(1),e.delete(t.key)}function Lu(t,e){Iu(t,1,1,(function(){e.delete(t.key)}))}function Zu(t,e){t.f(),Lu(t,e)}function ju(t,e,r,n,i,o,a,s,u,c,l,f){for(var h=t.length,d=o.length,p=h,v={};p--;)v[t[p].key]=p;var m=[],g=new Map,y=new Map,b=[];p=d;for(var w=function(){var t=f(i,o,p),s=r(t),u=a.get(s);u?n&&b.push((function(){return u.p(t,e)})):(u=c(s,t)).c(),g.set(s,m[p]=u),s in v&&y.set(s,Math.abs(p-v[s]))};p--;)w();var _=new Set,x=new Set;function E(t){Su(t,1),t.m(s,l),a.set(t.key,t),l=t.first,d--}for(;h&&d;){var A=m[d-1],M=t[h-1],k=A.key,S=M.key;A===M?(l=A.first,h--,d--):g.has(S)?!a.has(k)||_.has(k)?E(A):x.has(S)?h--:y.get(k)>y.get(S)?(x.add(k),E(A)):(_.add(S),h--):(u(M,a),h--)}for(;h--;){var I=t[h];g.has(I.key)||u(I,a)}for(;d;)E(m[d-1]);return ls(b),m}function Fu(t,e,r){var n=t.$$.props[e];void 0!==n&&(t.$$.bound[n]=r,r(t.$$.ctx[n]))}function Uu(t){t&&t.c()}function Du(t,e,r,n){var i=t.$$,o=i.fragment,a=i.after_update;o&&o.m(e,r),n||pu((function(){var e,r=t.$$.on_mount.map(us).filter(fs);t.$$.on_destroy?(e=t.$$.on_destroy).push.apply(e,(0,h.Z)(r)):ls(r);t.$$.on_mount=[]})),a.forEach(pu)}function Hu(t,e){var r=t.$$;null!==r.fragment&&(!function(t){var e=[],r=[];lu.forEach((function(n){return-1===t.indexOf(n)?e.push(n):r.push(n)})),r.forEach((function(t){return t()})),lu=e}(r.after_update),ls(r.on_destroy),r.fragment&&r.fragment.d(e),r.on_destroy=r.fragment=null,r.ctx=[])}function zu(t,e){-1===t.$$.dirty[0]&&(uu.push(t),du||(du=!0,hu.then(bu)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function $u(t,e,r,n,i,o,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1],u=Ks;nu(t);var c=t.$$={fragment:null,ctx:[],props:o,update:os,not_equal:i,bound:cs(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(u?u.$$.context:[])),callbacks:cs(),dirty:s,skip_bound:!1,root:e.target||u.$$.root};a&&a(c.root);var l,f=!1;if(c.ctx=r?r(t,e.props||{},(function(e,r){var n=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:r;return c.ctx&&i(c.ctx[e],c.ctx[e]=n)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](n),f&&zu(t,e)),r}
2)):[],c.update(),f=!0,ls(c.before_update),c.fragment=!!n&&n(c.ctx),e.target){if(e.hydrate){var h=(l=e.target,Array.from(l.childNodes));c.fragment&&c.fragment.l(h),h.forEach(Rs)}else c.fragment&&c.fragment.c();e.intro&&Su(t.$$.fragment),Du(t,e.target,e.anchor,e.customElement),bu()}nu(u)}var qu=function(){function t(){(0,l.Z)(this,t)}return(0,f.Z)(t,[{key:"$destroy",value:function(){Hu(this,1),this.$destroy=os}},{key:"$on",value:function(t,e){if(!fs(e))return os;var r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(e),function(){var t=r.indexOf(e);-1!==t&&r.splice(t,1)}}},{key:"$set",value:function(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}]),t}(),Gu=new g.x,Wu=new g.x,Vu=new m.X({inProgress:!1,actionRequired:""}),Ku=new m.X(null),Yu=is.select("wallets").pipe((0,H.d)(1));Gu.pipe(X(Yu),V("1")).subscribe((function(t){t.forEach((function(t){var e=t.label;Wu.next(e)})),ns({type:Da})}));var Xu=new m.X([]);function Ju(t){var e=Xu.getValue();Xu.next(e.filter((function(e){return e.hash!==t})))}w((function(){var t=new g.x;return ou((function(){t.next()})),t.asObservable().pipe(W(1))}));var Qu=w((function(){var t=new g.x;return au((function(){t.next()})),t.asObservable().pipe(W(1))}));w((function(){var t,e=new g.x;return t=function(){e.next()},iu().$$.after_update.push(t),e.asObservable().pipe(L(Qu))})),w((function(){var t,e=new g.x;return t=function(){e.next()},iu().$$.before_update.push(t),e.asObservable().pipe(L(Qu))}));var tc={default:{"--w3o-background-color":"unset","--w3o-foreground-color":"unset","--w3o-text-color":"unset","--w3o-border-color":"unset","--w3o-action-color":"unset","--w3o-border-radius":"unset","--w3o-font-family":"inherit"},light:{"--w3o-background-color":"#ffffff","--w3o-foreground-color":"#EFF1FC","--w3o-text-color":"#1a1d26","--w3o-border-color":"#d0d4f7","--w3o-action-color":"#6370E5","--w3o-border-radius":"16px","--w3o-font-family":"inherit"},dark:{"--w3o-background-color":"#1A1D26","--w3o-foreground-color":"#242835","--w3o-text-color":"#EFF1FC","--w3o-border-color":"#33394B","--w3o-action-color":"#929bed","--w3o-border-radius":"16px","--w3o-font-family":"inherit"}},ec=function(t){return"string"===typeof t&&"system"===t?ic():rc(t)},rc=function(t){return"string"===typeof t&&t in tc?tc[t]:"object"===typeof t?t:void 0},nc=function(t){Object.keys(t).forEach((function(e){document.documentElement.style.setProperty(e,t[e])}))},ic=function(){var t=window.matchMedia("(prefers-color-scheme: dark)");t.matches?nc(tc.dark):nc(tc.light),C(t,"change").pipe(L(Gu)).subscribe((function(t){t.matches?nc(tc.dark):nc(tc.light)}))},oc=nt.object().unknown(),ac=nt.object({namespace:it.chainNamespaceValidation.required(),id:it.chainIdValidation.required()}),sc=nt.any().allow(nt.object({name:nt.string().required(),avatar:nt.string(),contentHash:nt.any().allow(nt.string(),null),getText:nt.function().arity(1).required()}),null),uc=nt.any().allow(nt.object({name:nt.string().required()}),null),cc=nt.any().allow(nt.object({eth:nt.number()}).unknown(),null),lc=nt.any().allow(nt.object({balance:nt.string().required(),icon:nt.string()}),null),fc=nt.object({address:nt.string().required(),ens:sc,uns:uc,balance:cc,secondaryTokens:lc}),hc=nt.array().items(it.chainValidation).unique((function(t,e){return t.id===e.id})).error((function(t){return"array.unique"===t[0].code?new Error("There is a duplicate Chain ID in your Onboard Chains array: ".concat(t)):new Error("".concat(t))})),dc=nt.array().items(fc),pc=nt.object({label:nt.string(),icon:nt.string(),provider:oc,instance:oc,accounts:dc,chains:nt.array().items(ac)}).required().error(new Error("wallet must be defined")),vc=nt.array().items(pc),mc=nt.object({name:nt.string().required(),url:nt.string().uri().required()}),gc=nt.object({version:nt.string().required(),termsUrl:nt.string().uri(),privacyUrl:nt.string().uri()}),yc=nt.object({name:nt.string().required(),description:nt.string().required(),icon:nt.string(),logo:nt.string(),gettingStartedGuide:nt.string(),email:nt.string(),appUrl:nt.string(),explore:nt.string(),recommendedInjectedWallets:nt.array().items(mc),agreement:gc}),bc=nt.object({name:nt.string(),description:nt.string(),icon:nt.string(),logo:nt.string(),gettingStartedGuide:nt.string(),email:nt.string(),appUrl:nt.string(),explore:nt.string(),recommendedInjectedWallets:nt.array().items(mc),agreement:gc});nt.object({label:nt.string().required(),getInfo:nt.function().arity(1).required(),getInterface:nt.function().arity(1).required()});var wc=nt.array().items(nt.function()).required(),_c=nt.string(),xc=nt.string().valid("topRight","bottomRight","bottomLeft","topLeft"),Ec=[70,80,90,95,99],Ac=nt.object({transactionHandler:nt.function(),enabled:nt.boolean(),position:xc,replacement:nt.object({gasPriceProbability:nt.object({speedup:($o=nt.number()).valid.apply($o,Ec),cancel:(qo=nt.number()).valid.apply(qo,Ec)})})}),Mc=nt.object({desktop:Ac,mobile:Ac}),kc=nt.object({enabled:nt.boolean(),position:xc,minimal:nt.boolean(),containerElement:nt.string(),hideTransactionProtectionBtn:nt.boolean()}),Sc=nt.object({enabled:nt.boolean(),position:xc,expanded:nt.boolean(),minimal:nt.boolean(),hideTransactionProtectionBtn:nt.boolean(),containerElement:nt.string()}),Ic=nt.object({showSidebar:nt.boolean(),disableClose:nt.boolean(),autoConnectLastWallet:nt.boolean(),autoConnectAllPreviousWallet:nt.boolean(),iDontHaveAWalletLink:nt.string(),wheresMyWalletLink:nt.string(),removeWhereIsMyWalletWarning:nt.boolean(),removeIDontHaveAWalletInfoLink:nt.boolean(),disableUDResolution:nt.boolean()}
2),Pc=nt.object({accountCenter:nt.string(),connectModal:nt.string()}),Nc=nt.object({"--w3o-background-color":nt.string(),"--w3o-font-family":nt.string(),"--w3o-foreground-color":nt.string(),"--w3o-text-color":nt.string(),"--w3o-border-color":nt.string(),"--w3o-action-color":nt.string(),"--w3o-border-radius":nt.string()}),Cc=nt.string().valid("default","dark","light","system"),Oc=nt.alternatives().try(Nc,Cc),Tc=nt.object({wallets:wc,chains:hc.required(),appMetadata:yc,i18n:nt.object().unknown(),apiKey:nt.string(),accountCenter:nt.object({desktop:kc,mobile:kc,hideTransactionProtectionBtn:nt.boolean()}),notify:[Mc,Ac],gas:nt.object({get:nt.function().required(),stream:nt.function().required()}),connect:Ic,containerElements:Pc,transactionPreview:nt.object({patchProvider:nt.function().required(),init:nt.function().required(),previewTransaction:nt.function()}),theme:Oc,disableFontDownload:nt.boolean(),unstoppableResolution:nt.function()}),Rc=nt.object({autoSelect:nt.alternatives().try(nt.object({label:nt.string().required(),disableModals:nt.boolean()}),nt.string())}),Bc=nt.object({label:nt.string().required()}).required(),Lc=nt.object({address:nt.string().required(),icon:nt.string().optional()}),Zc=nt.object({chainId:it.chainIdValidation.required(),chainNamespace:it.chainNamespaceValidation,wallet:nt.string(),rpcUrl:nt.string(),label:nt.string(),token:nt.string(),protectedRpcUrl:nt.string(),secondaryTokens:nt.array().max(5).items(Lc).optional()}),jc=nt.object({key:nt.string().required(),type:nt.string().allow("pending","error","success","hint"),eventCode:nt.string(),message:nt.string().required(),id:nt.string().required(),autoDismiss:nt.number(),onClick:nt.function(),link:nt.string()}),Fc=nt.object({sendTransaction:nt.function(),estimateGas:nt.function(),gasPrice:nt.function(),balance:nt.alternatives(nt.string(),nt.number()),txDetails:nt.object({value:nt.alternatives(nt.string(),nt.number()),to:nt.string(),from:nt.string()}),txApproveReminderTimeout:nt.number()}),Uc=nt.object({key:nt.string(),type:nt.string().allow("pending","error","success","hint"),eventCode:nt.string(),message:nt.string(),id:nt.string(),autoDismiss:nt.number(),onClick:nt.function(),link:nt.string()}),Dc=nt.object({id:nt.string().required(),key:nt.string().required(),type:nt.string().allow("pending","error","success","hint").required(),eventCode:nt.string().required(),message:nt.string().required(),autoDismiss:nt.number().required(),network:nt.string().required(),startTime:nt.number(),onClick:nt.function(),link:nt.string()}),Hc=nt.any().allow(jc,nt.boolean().allow(!1));function zc(t){return(0,it.validate)(pc,t)}function $c(t,e){return(0,it.validate)(nt.string().required().label(e||"value"),t)}function qc(t){return(0,it.validate)(Zc,t)}function Gc(t){return(0,it.validate)(_c,t)}function Wc(t){return(0,it.validate)(Ac,t)}function Vc(t){return(0,it.validate)(Dc,t)}function Kc(t){return(0,it.validate)(Uc,t)}function Yc(t){return(0,it.validate)(vc,t)}function Xc(t){return(0,it.validate)(Oc,t)}function Jc(t){var e=qc({label:t.label,token:t.token,rpcUrl:t.rpcUrl,chainId:t.id,chainNamespace:t.namespace});if(e)throw e;ns({type:Ua,payload:t})}function Qc(t){var e=zc(t);if(e)throw console.error(e),e;ns({type:Ha,payload:t})}function tl(t,e){var r=zc(e);if(r)throw console.error(r),r;ns({type:za,payload:(0,d.Z)({id:t},e)})}function el(t){var e=$c(t,"wallet id");if(e)throw e;ns({type:$a,payload:{id:t}})}function rl(t,e){var r=zc(t)||e&&$c(e,"address");if(r)throw r;if(e){var n=t.accounts.find((function(t){return t.address===e}));n&&(t.accounts=[n].concat((0,h.Z)(t.accounts.filter((function(t){return t.address!==n.address})))))}Qc(t)}function nl(t,e,r){ns({type:qa,payload:(0,d.Z)({id:t,address:e},r)})}function il(t){var e,r=(e=t,(0,it.validate)(Sc,e));if(r)throw r;ns({type:Ga,payload:t})}function ol(t){var e,r=(e=t,(0,it.validate)(Ic,e));if(r)throw r;ns({type:Wa,payload:t})}function al(t){var e=Wc(t);if(e)throw e;ns({type:Ya,payload:t})}function sl(t){var e=Vc(t);if(e)throw e;ns({type:Xa,payload:t})}function ul(t){var e,r=(e=t,(0,it.validate)(jc,e));if(r)throw r;ns({type:Xa,payload:t})}function cl(t){if("string"!==typeof t)throw new Error("Notification id must be of type string");ns({type:Ja,payload:t})}function ll(t){var e,r=(e=t,(0,it.validate)(wc,e));if(r)throw r;var n,i=function(t){var e=Ta.device;return t.reduce((function(t,r){var n=r({device:e});
2return n&&t.push.apply(t,(0,h.Z)(Array.isArray(n)?n:[n])),t}),[])}(t),o=(n=i).filter((function(t,e){return t&&n.findIndex((function(e){return e&&e.label===t.label}))===e}));ns({type:Va,payload:o})}function fl(t){var e=Yc(t);if(e)throw e;ns({type:Qa,payload:t})}function hl(t){var e=Xc(t);if(e)throw e;var r=ec(t);r&&nc(r)}function dl(t){var e,r=(e=t,(0,it.validate)(bc,e));if(r)throw r;ns({type:ts,payload:t})}function pl(t){return vl.apply(this,arguments)}function vl(){return(vl=(0,v.Z)((0,u.Z)().mark((function t(e){var r,n,i,o;return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=4;break}if(a=e,!(r=(0,it.validate)(Rc,a))){t.next=4;break}throw r;case 4:if(n=is.get(),n.chains.length){t.next=7;break}throw new Error("At least one chain must be set before attempting to connect a wallet");case 7:if(!(i=(e||{autoSelect:{label:"",disableModals:!1}}).autoSelect)||"string"!==typeof i&&!i.label){t.next=11;break}return t.next=11,Pa(50);case 11:return is.get().walletModules.length||ll(Ta.initialWalletInit),Vu.next({autoSelect:"string"===typeof i?{label:i,disableModals:!1}:i,inProgress:!0}),o=Vu.pipe((0,$.h)((function(t){var e=t.inProgress,r=t.actionRequired;return!1===e&&!r})),X(Yu),V(1)),t.abrupt("return",F(o));case 15:case"end":return t.stop()}var a}),t)})))).apply(this,arguments)}var ml={connect:{selectingWallet:{header:"Available Wallets",sidebar:{heading:"",subheading:"Connect your wallet",paragraph:"Connecting your wallet is like \u201clogging in\u201d to Web3. Select your wallet from the options to get started.",IDontHaveAWallet:"I don't have a wallet"},recommendedWalletsPart1:"{app} only supports",recommendedWalletsPart2:"on this platform. Please use or install one of the supported wallets to continue",installWallet:"You do not have any wallets installed that {app} supports, please use a supported wallet",agreement:{agree:"I agree to the",terms:"Terms & Conditions",and:"and",privacy:"Privacy Policy"},whyDontISeeMyWallet:"Why don't I see my wallet?",learnMore:"Click here to learn more"},connectingWallet:{header:"{connectionRejected, select, false {Connecting to {wallet}...} other {Connection Rejected}}",sidebar:{subheading:"Approve Connection",paragraph:"Please approve the connection in your wallet and authorize access to continue."},mainText:"Connecting...",paragraph:"Make sure to select all accounts that you want to grant access to.",previousConnection:"{wallet} already has a pending connection request, please open the {wallet} app to login and connect.",rejectedText:"Connection Rejected!",rejectedCTA:"Click here to try again",primaryButton:"Back to wallets"},connectedWallet:{header:"Connection Successful",sidebar:{subheading:"Connection Successful!",paragraph:"Your wallet is now connected to {app}"},mainText:"Connected"}},modals:{actionRequired:{heading:"Action required in {wallet}",paragraph:"Please switch the active account in your wallet.",linkText:"Learn more.",buttonText:"Okay"},switchChain:{heading:"Switch Chain",paragraph1:"{app} requires that you switch your wallet to the {nextNetworkName} network to continue.",paragraph2:"*Some wallets may not support changing networks. If you can not change networks in your wallet you may consider switching to a different wallet."},confirmDisconnectAll:{heading:"Disconnect all Wallets",description:"Are you sure that you would like to disconnect all your wallets?",confirm:"Confirm",cancel:"Cancel"},confirmTransactionProtection:{heading:"Enable Transaction Protection",description:"Protect RPC Endpoints hide your transactions from front-running and sandwich bots to reduce unfavorable transaction settlement from slippage.",enable:"Enable",dismiss:"Dismiss"}},accountCenter:{connectAnotherWallet:"Connect another Wallet",disconnectAllWallets:"Disconnect all Wallets",currentNetwork:"Current Network",enableTransactionProtection:"Enable Transaction Protection",appInfo:"App Info",learnMore:"Learn More",gettingStartedGuide:"Getting Started Guide",smartContracts:"Smart Contract(s)",explore:"Explore",poweredBy:"powered by",addAccount:"Add Account",setPrimaryAccount:"Set Primary Account",disconnectWallet:"Disconnect Wallet",copyAddress:"Copy Wallet address"},notify:{transaction:{txRequest:"Your transaction is waiting for you to confirm",nsfFail:"You have insufficient funds for this transaction",txUnderpriced:"The gas price for your transaction is too low, try a higher gas price",txRepeat:"This could be a repeat transaction",txAwaitingApproval:"You have a previous transaction waiting for you to confirm",txConfirmReminder:"Please confirm your transaction to continue",txSendFail:"You rejected the transaction",txSent:"Your transaction has been sent to the network",txStallPending:"Your transaction has stalled before it was sent, please try again",txStuck:"Your transaction is stuck due to a nonce gap",txPool:"Your transaction has started",txStallConfirmed:"Your transaction has stalled and hasn't been confirmed",txSpeedUp:"Your transaction has been sped up",txCancel:"Your transaction is being canceled",txFailed:"Your transaction has failed",txConfirmed:"Your transaction has succeeded",txError:"Oops something went wrong, please try again",txReplaceError:"There was an error replacing your transaction, please try again"},watched:{txPool:"Your account is {verb} {formattedValue} {asset} {preposition} {counterpartyShortened}",txSpeedUp:"Transaction for {formattedValue} {asset} {preposition} {counterpartyShortened} has been sped up",txCancel:"Transaction for {formattedValue} {asset} {preposition} {counterpartyShortened} has been canceled",txConfirmed:"Your account successfully {verb} {formattedValue} {asset} {preposition} {counterpartyShortened}",txFailed:"Your account failed to {verb} {formattedValue} {asset} {preposition} {counterpartyShortened}",txStuck:"Your transaction is stuck due to a nonce gap"},time:{minutes:"min",seconds:"sec"}}},gl={};function yl(t){return t?(gl[t.rpcUrl]||(gl[t.rpcUrl]=new qi(t.providerConnectionInfo&&t.providerConnectionInfo.url?t.providerConnectionInfo:t.rpcUrl)),gl[t.rpcUrl]):null}function bl(t){return t.request({method:"eth_requestAccounts"})}function wl(t){return t.request({method:"eth_selectAccounts"})}function _l(t){return t.request({method:"eth_chainId"})}function xl(t){var e=t.provider,r=t.disconnected$;return U((function(t){e.on("accountsChanged",t)}),(function(t){e.removeListener("accountsChanged",t)})).pipe(L(r))}function El(t,e){var r=Wu.pipe((0,$.h)((function(t){return t===e})),W(1)),n=xl({provider:t,disconnected$:r}).pipe((0,J.B)());n.subscribe(function(){var t=(0,v.Z)((0,u.Z)().mark((function t(r){var n,i,o,a,s,l,f,d,p,v,m,g,y;return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=(0,c.Z)(r,1),i=n[0],t.prev=1,t.next=4,Bl(e);case 4:t.next=9;break;case 6:t.prev=6,t.t0=t.catch(1),console.warn("Web3Onboard: Error whilst trying to sync connected accounts:",t.t0);case 9:if(i){t.next=12;break}return Kl({label:e}),t.abrupt("return");case 12:if(o=is.get(),a=o.wallets,s=a.find((function(t){return t.label===e})),l=s.accounts,f=st(l,(function(t){return t.address===i})),d=(0,c.Z)(f,2),p=(0,c.Z)(d[0],1),v=p[0],m=d[1],tl(e,{accounts:[v||{address:i,ens:null,uns:null,balance:null}].concat((0,h.Z)(m))}),!is.get().notify.enabled||v){t.next=21;break}return t.next=19,ql();case 19:if(g=t.sent){y=is.get().wallets.find((function(t){return t.label===e}));try{g.subscribe({id:i,chainId:y.chains[0].id,type:"account"})}catch(u){}}case 21:case"end":return t.stop()}}),t,null,[[1,6]])})));return function(e){return t.apply(this,arguments)}}()),n.pipe(Q(function(){var t=(0,v.Z)((0,u.Z)().mark((function t(r){var n,i,o,a,s,l,f,h,d,p,v,m,g,y,b,w;return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=(0,c.Z)(r,1),i=n[0]){t.next=3;break}return t.abrupt("return");case 3:return o=is.get(),a=o.wallets,s=o.chains,l=a.find((function(t){return t.label===e})),f=l.chains,h=l.accounts,d=(0,c.Z)(f,1),p=d[0],v=s.find((function(t){var e=t.namespace,r=t.id;return"evm"===e&&r===p.id})),m=Il(i,v),g=Dl(l,i,v),y=h.find((function(t){return t.address===i})),b=y&&y.ens?Promise.resolve(y.ens):pa(p.id)?Al(i,v):Promise.resolve(null),w=y&&y.uns?Promise.resolve(y.uns):kl(i,v),t.abrupt("return",Promise.all([Promise.resolve(i),m,b,w,g]));case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())).subscribe((function(t){if(t){var r=(0,c.Z)(t,5),n=r[0],i=r[1],o=r[2],a=r[3],s=r[4];nl(e,n,{balance:i,ens:o,uns:a,secondaryTokens:s})}}));var i=function(t){var e=t.provider,r=t.disconnected$;return U((function(t){e.on("chainChanged",t)}),(function(t){e.removeListener("chainChanged",t)})).pipe(L(r))}({provider:t,disconnected$:r}).pipe((0,J.B)());i.subscribe(function(){var t=(0,v.Z)((0,u.Z)().mark((function t(r){var n,i,o,a,s,l,f,h,d,p;return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=is.get(),i=n.wallets,o=i.find((function(t){return t.label===e})),a=o.chains,s=o.accounts,l=(0,c.Z)(a,1),f=l[0],r!==f.id){t.next=5;break}return t.abrupt("return");case 5:if(!is.get().notify.enabled){t.next=10;break}return t.next=8,ql();case 8:(h=t.sent)&&(d=is.get().wallets.find((function(t){return t.label===e}
2)),d.accounts.forEach((function(t){var e=t.address;h.unsubscribe({id:e,chainId:d.chains[0].id,timeout:6e4})})),d.accounts.forEach((function(t){var e=t.address;try{h.subscribe({id:e,chainId:r,type:"account"})}catch(n){}})));case 10:p=s.map((function(t){return{address:t.address,ens:null,uns:null,balance:null}})),tl(e,{chains:[{namespace:"evm",id:r}],accounts:p});case 12:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),i.pipe(Q(function(){var t=(0,v.Z)((0,u.Z)().mark((function t(r){var n,i,o,a,s,l;return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=is.get(),i=n.wallets,o=n.chains,a=i.find((function(t){return t.label===e})),s=a.accounts,l=o.find((function(t){var e=t.namespace,n=t.id;return"evm"===e&&n===r})),t.abrupt("return",Promise.all(s.map(function(){var t=(0,v.Z)((0,u.Z)().mark((function t(e){var n,i,o,s,f,h,d,p,v,m,g;return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.address,i=Il(n,l),o=Dl(a,n,l),s=pa(r)?Al(n,l):Promise.resolve(null),f=pa(r)?kl(n,l):Promise.resolve(null),t.next=7,Promise.all([i,s,f,o]);case 7:return h=t.sent,d=(0,c.Z)(h,4),p=d[0],v=d[1],m=d[2],g=d[3],t.abrupt("return",{address:n,balance:p,ens:v,uns:m,secondaryTokens:g});case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())).subscribe((function(t){t&&tl(e,{accounts:t})})),r.subscribe((function(){t.disconnect&&t.disconnect()}))}function Al(t,e){return Ml.apply(this,arguments)}function Ml(){return(Ml=(0,v.Z)((0,u.Z)().mark((function t(e,r){var n,i,o,a,s,l,f,h,d;return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r){t.next=2;break}return t.abrupt("return",null);case 2:return n=yl(r),t.prev=3,t.next=6,n.lookupAddress(e);case 6:if(i=t.sent,o=null,!i){t.next=21;break}return t.next=11,n.getResolver(i);case 11:if(!(a=t.sent)){t.next=21;break}return t.next=15,Promise.all([a.getContentHash(),a.getAvatar()]);case 15:s=t.sent,l=(0,c.Z)(s,2),f=l[0],h=l[1],d=a.getText.bind(a),o={name:i,avatar:h,contentHash:f,getText:d};case 21:return t.abrupt("return",o);case 24:return t.prev=24,t.t0=t.catch(3),console.error(t.t0),t.abrupt("return",null);case 28:case"end":return t.stop()}}),t,null,[[3,24]])})))).apply(this,arguments)}function kl(t,e){return Sl.apply(this,arguments)}function Sl(){return(Sl=(0,v.Z)((0,u.Z)().mark((function t(e,r){var n;return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((n=Ta.unstoppableResolution)&&wo(e)&&r){t.next=3;break}return t.abrupt("return",null);case 3:return t.prev=3,t.next=6,n(e);case 6:return t.abrupt("return",t.sent);case 9:return t.prev=9,t.t0=t.catch(3),console.error(t.t0),t.abrupt("return",null);case 13:case"end":return t.stop()}}),t,null,[[3,9]])})))).apply(this,arguments)}function Il(t,e){return Pl.apply(this,arguments)}function Pl(){return Pl=(0,v.Z)((0,u.Z)().mark((function t(e,r){var i,o,a,s,c;return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r){t.next=2;break}return t.abrupt("return",null);case 2:return i=is.get(),o=i.wallets,t.prev=3,a=o.find((function(t){return!!t.provider})),s=a.provider,t.next=8,s.request({method:"eth_getBalance",params:[e,"latest"]});case 8:return c=t.sent,t.abrupt("return",c?(0,n.Z)({},r.token||"eth",(0,it.weiToEth)(c)):null);case 12:return t.prev=12,t.t0=t.catch(3),console.error(t.t0),t.abrupt("return",null);case 16:case"end":return t.stop()}}),t,null,[[3,12]])}))),Pl.apply(this,arguments)}function Nl(t,e){return t.request({method:"wallet_switchEthereumChain",params:[{chainId:e}]})}function Cl(t,e){return t.request({method:"wallet_addEthereumChain",params:[{chainId:e.id,chainName:e.label,nativeCurrency:{name:e.label,symbol:e.token,decimals:18},rpcUrls:[e.publicRpcUrl||e.rpcUrl],blockExplorerUrls:e.blockExplorerUrl?[e.blockExplorerUrl]:void 0}]})}function Ol(t,e,r){return t.request({method:"wallet_addEthereumChain",params:[{chainId:e.id,chainName:e.label,nativeCurrency:{name:e.label,symbol:e.token,decimals:18},rpcUrls:[r],blockExplorerUrls:e.blockExplorerUrl?[e.blockExplorerUrl]:void 0}]})}function Tl(t){return Rl.apply(this,arguments)}function Rl(){return(Rl=(0,v.Z)((0,u.Z)().mark((function t(e){var r;return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.request({method:"wallet_getPermissions"});case 3:return r=t.sent,t.abrupt("return",Array.isArray(r)?r:[]);case 7:return t.prev=7,t.t0=t.catch(0),t.abrupt("return",[]);case 10:case"end":return t.stop()}}),t,null,[[0,7]])})))).apply(this,arguments)}function Bl(t){return Ll.apply(this,arguments)}function Ll(){return Ll=(0,v.Z)((0,u.Z)().mark((function t(e){var r,n,i,o,a,s;return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=is.get().wallets.find((function(t){return t.label===e})),t.next=3,Tl(r.provider);case 3:n=t.sent,(i=n.find((function(t){return"eth_accounts"===t.parentCapability})))&&(o=i.caveats.find((function(t){return"restrictReturnedAccounts"===t.type}))||{value:null},(a=o.value)&&(s=r.accounts.filter((function(t){var e=t.address;return a.includes(e)})),tl(r.label,(0,d.Z)((0,d.Z)({},r),{},{accounts:s}))));case 6:case"end":return t.stop()}}),t)}))),Ll.apply(this,arguments)}function Zl(t){return jl.apply(this,arguments)}function jl(){return jl=(0,v.Z)((0,u.Z)().mark((function t(e){var r,n,i;return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=is.get(),n=r.wallets,i=r.chains,t.next=3,Promise.all(n.map(function(){var t=(0,v.Z)((0,u.Z)().mark((function t(r){var n,o;return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=i.find((function(t){return t.id===r.chains[0].id})),t.next=3,Promise.all(r.accounts.map(function(){var t=(0,v.Z)((0,u.Z)().mark((function t(i){var o,a;return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Dl(r,i.address,n);case 2:if(o=t.sent,e&&!e.some((function(t){return t.toLowerCase()===i.address.toLowerCase()}))){t.next=8;break}return t.next=6,Il(i.address,n);case 6:return a=t.sent,t.abrupt("return",(0,d.Z)((0,d.Z)({},i),{},{balance:a,secondaryTokens:o}));case 8:return t.abrupt("return",(0,d.Z)((0,d.Z)({},i),{},{secondaryTokens:o}));case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()));case 3:return o=t.sent,t.abrupt("return",(0,d.Z)((0,d.Z)({},r),{},{accounts:o}));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()));case 3:fl(t.sent);case 5:case"end":return t.stop()}}),t)}))),jl.apply(this,arguments)}var Fl,Ul,Dl=function(){var t=(0,v.Z)((0,u.Z)().mark((function t(e,r,n){var i,o,a,s,c;return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n){t.next=2;break}return t.abrupt("return");case 2:if(i=n.rpcUrl,n.secondaryTokens&&n.secondaryTokens.length&&i){t.next=5;break}return t.abrupt("return");case 5:return o=new Ao(e.provider,"any"),a=o.getSigner(),s=[{inputs:[{name:"owner",type:"address"}],name:"balanceOf",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{name:"",type:"string"}],stateMutability:"view",type:"function"}],t.next=10,Promise.all(n.secondaryTokens.map(function(){var t=(0,v.Z)((0,u.Z)().mark((function t(e){var n,i,o;return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,n=new Xo(e.address,s,a),t.next=4,n.balanceOf(r);case 4:return i=t.sent,t.next=7,n.symbol();case 7:return o=t.sent,t.abrupt("return",{name:o,balance:(0,it.weiToEth)(i.toHexString()),icon:e.icon});case 11:t.prev=11,t.t0=t.catch(0),console.error("There was an error fetching balance and/or symbol \n          for token contract: ".concat(e.address," - ").concat(t.t0));case 14:case"end":return t.stop()}}),t,null,[[0,11]])})));return function(e){return t.apply(this,arguments)}}()));case 10:return c=t.sent,t.abrupt("return",c);case 12:case"end":return t.stop()}}),t)})));return function(e,r,n){return t.apply(this,arguments)}}();function Hl(t){var e,r=is.get().notify.transactionHandler(t),n=(e=r,(0,it.validate)(Hc,e));if(n)throw n;"txConfirmed"===t.eventCode&&Zl([t.watchedAddress,t.counterparty]);var i=function(t,e){var r=t.id,n=t.hash,i=t.startTime,o=t.eventCode,a=t.direction,s=t.counterparty,u=t.value,c=t.asset,l=t.network,f=zl(o),h="".concat(r||n,"-").concat("object"===typeof e&&e.eventCode||o),p=s&&s.substring(0,4)+"..."+s.substring(s.length-4),v=new ot.Z(u||0).div(new ot.Z("1000000000000000000")).toString(10),m=s&&u?{messageId:"notify.watched['".concat(o,"']"),values:{verb:"txConfirmed"===o?"incoming"===a?"received":"sent":"incoming"===a?"receiving":"sending",formattedValue:v,preposition:"incoming"===a?"from":"to",counterpartyShortened:p,asset:c}}:{messageId:"notify.transaction['".concat(o,"']"),values:{formattedValue:v,asset:c}}
2,g=(0,at.U2)(et._),y=ml.notify[s?"watched":"transaction"][o],b=g(m.messageId,{values:m.values,default:y}),w={id:r||n,type:f,key:h,network:l,startTime:i||Date.now(),eventCode:o,message:b,autoDismiss:$l("object"===typeof e&&e.type||f)};"object"===typeof e&&(w=(0,d.Z)((0,d.Z)({},w),e));return w}(t,r);sl(i),function(t){var e=Xu.getValue(),r=e.findIndex((function(e){return e.hash===t.hash}));if(-1!==r){var n=e.map((function(e,n){return n===r?t:e}));Xu.next(n)}else Xu.next([].concat((0,h.Z)(e),[t]))}(t)}function zl(t){switch(t){case"txSent":case"txPool":return"pending";case"txSpeedUp":case"txCancel":case"txRequest":case"txRepeat":case"txAwaitingApproval":case"txConfirmReminder":case"txStuck":default:return"hint";case"txError":case"txSendFail":case"txFailed":case"txDropped":case"nsfFail":case"txUnderpriced":return"error";case"txConfirmed":return"success"}}function $l(t){switch(t){case"success":case"hint":return 4e3;default:return 0}}function ql(){return Gl.apply(this,arguments)}function Gl(){return(Gl=(0,v.Z)((0,u.Z)().mark((function t(){var e,n;return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(Ta.apiKey){t.next=3;break}return t.abrupt("return",null);case 3:if(Fl){t.next=10;break}return t.next=6,r.e(6300).then(r.bind(r,6300));case 6:e=t.sent,n=e.default,(Fl=n.multichain({apiKey:Ta.apiKey})).transactions$.subscribe(Hl);case 10:return t.abrupt("return",Fl);case 11:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Wl(){return Vl.apply(this,arguments)}function Vl(){return(Vl=(0,v.Z)((0,u.Z)().mark((function t(){var e,n;return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(Ta.apiKey){t.next=3;break}return t.abrupt("return",null);case 3:if(Ul){t.next=10;break}return t.next=6,r.e(6300).then(r.bind(r,6300));case 6:return e=t.sent,n=e.default,Ul=new n({dappId:Ta.apiKey,networkId:1}),t.abrupt("return",Ul);case 10:return t.abrupt("return",Ul);case 11:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Kl(t){return Yl.apply(this,arguments)}function Yl(){return Yl=(0,v.Z)((0,u.Z)().mark((function t(e){var r,n,i,o,a;return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(s=e,!(r=(0,it.validate)(Bc,s))){t.next=3;break}throw r;case 3:if(n=e.label,!is.get().notify.enabled){t.next=9;break}return t.next=7,ql();case 7:(i=t.sent)&&(o=is.get().wallets.find((function(t){return t.label===n})),o.accounts.forEach((function(t){var e=t.address;i.unsubscribe({id:e,chainId:o.chains[0].id,timeout:6e4})})));case 9:return Wu.next(n),el(n),a=JSON.parse(Na(La.LAST_CONNECTED_WALLET)),Array.isArray(a)&&a.indexOf(n)>=0&&Ca(La.LAST_CONNECTED_WALLET,JSON.stringify(a.filter((function(t){return t!==n})))),"string"===typeof a&&a===n&&Oa(La.LAST_CONNECTED_WALLET),t.abrupt("return",is.get().wallets);case 15:case"end":return t.stop()}var s}),t)}))),Yl.apply(this,arguments)}function Xl(t){return Jl.apply(this,arguments)}function Jl(){return Jl=(0,v.Z)((0,u.Z)().mark((function t(e){var r,n,i,o,a,s,l,f,h,d,p,v,m,g,y,b,w,_;return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(r=qc(e))){t.next=3;break}throw r;case 3:if(n=is.get(),i=n.wallets,o=n.chains,a=e.chainId,s=e.chainNamespace,l=void 0===s?"evm":s,f=e.wallet,h=e.rpcUrl,d=e.label,p=e.token,v=wa(a),m=o.find((function(t){var e=t.namespace,r=t.id;return e===l&&r.toLowerCase()===v.toLowerCase()})),m){t.next=9;break}throw new Error("Chain with chainId: ".concat(a," and chainNamespace: ").concat(l," has not been set and must be added when Onboard is initialized."));case 9:if(g=f?i.find((function(t){return t.label===f})):i[0]){t.next=12;break}throw new Error(f?"Wallet with label ".concat(f," is not connected"):"A wallet must be connected before a chain can be set");case 12:if(y=(0,c.Z)(g.chains,1),(b=y[0]).namespace!==l||b.id!==v){t.next=15;break}return t.abrupt("return",!0);case 15:return t.prev=15,t.next=18,Nl(g.provider,v);case 18:return t.abrupt("return",!0);
2case 21:if(t.prev=21,t.t0=t.catch(15),w=t.t0.code,_=Ku.pipe((0,$.h)((function(t){return null===t})),(0,M.U)((function(){return!1}))),w!==it.ProviderRpcErrorCode.CHAIN_NOT_ADDED&&w!==it.ProviderRpcErrorCode.UNRECOGNIZED_CHAIN_ID){t.next=28;break}return(h||d||p)&&(h&&(m.rpcUrl=h),d&&(m.label=d),p&&(m.token=p),Jc(m)),t.abrupt("return",Ql(g,m,_,v));case 28:if(w!==it.ProviderRpcErrorCode.UNSUPPORTED_METHOD){t.next=31;break}return Ku.next({chain:m}),t.abrupt("return",F(_));case 31:return t.abrupt("return",!1);case 32:case"end":return t.stop()}}),t,null,[[15,21]])}))),Jl.apply(this,arguments)}var Ql=function(){var t=(0,v.Z)((0,u.Z)().mark((function t(e,r,n,i){return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Cl(e.provider,r);case 3:return t.next=5,Nl(e.provider,i);case 5:return t.abrupt("return",!0);case 8:if(t.prev=8,t.t0=t.catch(0),t.t0.code!==it.ProviderRpcErrorCode.ACCOUNT_ACCESS_REJECTED){t.next=13;break}return t.abrupt("return",!1);case 13:return Ku.next({chain:r}),t.abrupt("return",F(n));case 15:case"end":return t.stop()}}),t,null,[[0,8]])})));return function(e,r,n,i){return t.apply(this,arguments)}}();function tf(t){Ps(t,"svelte-1ubf722",".close-button.svelte-1ubf722.svelte-1ubf722{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;height:2rem;width:2rem;border-radius:2rem;cursor:pointer;color:var(--onboard-close-button-color, inherit)}.close-button.svelte-1ubf722.svelte-1ubf722:hover::before{opacity:0.2}.close-button.svelte-1ubf722:hover .svg-box.svelte-1ubf722{opacity:1}.close-button.svelte-1ubf722.svelte-1ubf722::before{content:'';position:absolute;height:inherit;width:inherit;opacity:0.1;background:currentColor;transition:300ms ease-in-out opacity}.svg-box.svelte-1ubf722.svelte-1ubf722{position:absolute;height:1.5rem;width:1.5rem;opacity:0.6;transition:300ms ease-in-out opacity}")}function ef(t){var e,r;return{c:function(){e=Ls("div"),Hs(r=Ls("div"),"class","svg-box svelte-1ubf722"),Hs(e,"class","close-button svelte-1ubf722")},m:function(t,n){Ts(t,e,n),Is(e,r),r.innerHTML='\n  <svg width="100%" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n    <path d="M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z" fill="currentColor"/>\n  </svg>\n'},p:os,i:os,o:os,d:function(t){t&&Rs(e)}}}var rf=function(t){(0,a.Z)(r,t);var e=(0,s.Z)(r);function r(t){var n;return(0,l.Z)(this,r),n=e.call(this),$u((0,o.Z)(n),t,null,ef,hs,{},tf),n}return(0,f.Z)(r)}(qu);function nf(t){var e=t-1;return e*e*e+1}function of(t){return Math.pow(t-1,3)*(1-t)+1}function af(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.delay,n=void 0===r?0:r,i=e.duration,o=void 0===i?400:i,a=e.easing,s=void 0===a?ss:a,u=+getComputedStyle(t).opacity;return{delay:n,duration:o,easing:s,css:function(t){return"opacity: ".concat(t*u)}}}function sf(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.delay,n=void 0===r?0:r,i=e.duration,o=void 0===i?400:i,a=e.easing,s=void 0===a?nf:a,u=e.x,l=void 0===u?0:u,f=e.y,h=void 0===f?0:f,d=e.opacity,p=void 0===d?0:d,v=getComputedStyle(t),m=+v.opacity,g="none"===v.transform?"":v.transform,y=m*(1-p),b=_s(l),w=(0,c.Z)(b,2),_=w[0],x=w[1],E=_s(h),A=(0,c.Z)(E,2),M=A[0],k=A[1];return{delay:n,duration:o,easing:s,css:function(t,e){return"\n\t\t\ttransform: ".concat(g," translate(").concat((1-t)*_).concat(x,", ").concat((1-t)*M).concat(k,");\n\t\t\topacity: ").concat(m-y*e)}}}function uf(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.delay,n=void 0===r?0:r,i=e.duration,o=void 0===i?400:i,a=e.easing,s=void 0===a?nf:a,u=e.axis,c=void 0===u?"y":u,l=getComputedStyle(t),f=+l.opacity,h="y"===c?"height":"width",d=parseFloat(l[h]),p="y"===c?["top","bottom"]:["left","right"],v=p.map((function(t){return"".concat(t[0].toUpperCase()).concat(t.slice(1))})),m=parseFloat(l["padding".concat(v[0])]),g=parseFloat(l["padding".concat(v[1])]),y=parseFloat(l["margin".concat(v[0])]),b=parseFloat(l["margin".concat(v[1])]),w=parseFloat(l["border".concat(v[0],"Width")]),_=parseFloat(l["border".concat(v[1],"Width")]);return{delay:n,duration:o,easing:s,css:function(t){return"overflow: hidden;"+"opacity: ".concat(Math.min(20*t,1)*f,";")+"".concat(h,": ").concat(t*d,"px;")+"padding-".concat(p[0],": ").concat(t*m,"px;")+"padding-".concat(p[1],": ").concat(t*g,"px;")+"margin-".concat(p[0],": ").concat(t*y,"px;")+"margin-".concat(p[1],": ").concat(t*b,"px;")+"border-".concat(p[0],"-width: ").concat(t*w,"px;")+"border-".concat(p[1],"-width: ").concat(t*_,"px;")}}}function cf(t){Ps(t,"svelte-baitaa","section.svelte-baitaa{top:0;left:0;pointer-events:none;z-index:var(--onboard-modal-z-index, var(--modal-z-index))}.background.svelte-baitaa{background:var(--onboard-modal-backdrop, var(--modal-backdrop));pointer-events:all}.full-screen-background.svelte-baitaa{width:100vw;height:100vh}.max-height.svelte-baitaa{max-height:calc(100vh - 2rem)}.modal-position.svelte-baitaa{top:var(--onboard-modal-top, var(--modal-top));bottom:var(--onboard-modal-bottom, var(--modal-bottom));left:var(--onboard-modal-left, var(--modal-left));right:var(--onboard-modal-right, var(--modal-right))}.modal-overflow.svelte-baitaa{overflow:hidden}.modal-styling.svelte-baitaa{--border-radius:var(\n      --onboard-modal-border-radius,\n      var(--w3o-border-radius, 1rem)\n    );border-radius:var(--border-radius) var(--border-radius) 0 0;
2box-shadow:var(--onboard-modal-box-shadow, var(--box-shadow-0));max-width:100vw}.modal.svelte-baitaa{overflow-y:auto;background:var(--onboard-modal-background, white);color:var(--onboard-modal-color, initial)}.width-100.svelte-baitaa{width:100%}.modal-container-mobile.svelte-baitaa{bottom:0}@media all and (min-width: 768px){.modal-styling.svelte-baitaa{border-radius:var(--border-radius)}.modal-container-mobile.svelte-baitaa{bottom:unset;margin:1rem}.width-100.svelte-baitaa{width:unset}}")}function lf(t){var e,r,n,i,o,a,s,u,l,f,h=t[3].default,d=vs(h,t,t[2],null);return{c:function(){e=Ls("section"),r=Ls("div"),n=Ls("div"),i=Ls("div"),o=Ls("div"),a=Ls("div"),d&&d.c(),Hs(a,"class","modal relative svelte-baitaa"),Hs(o,"class","modal-overflow modal-styling relative flex justify-center svelte-baitaa"),Hs(o,"style","".concat(t[1]?"max-width: 100%;":"")),Hs(i,"class","flex relative max-height svelte-baitaa"),Gs(i,"width-100",t[1]),Hs(n,"class","modal-container-mobile modal-position flex svelte-baitaa"),Gs(n,"absolute",!t[1]),Gs(n,"width-100",t[1]),Hs(r,"class","background flex items-center justify-center relative svelte-baitaa"),Gs(r,"full-screen-background",!t[1]),Hs(e,"class","svelte-baitaa"),Gs(e,"fixed",!t[1])},m:function(s,c){Ts(s,e,c),Is(e,r),Is(r,n),Is(n,i),Is(i,o),Is(o,a),d&&d.m(a,null),u=!0,l||(f=[Us(i,"click",Ds(t[4])),Us(r,"click",(function(){fs(t[0])&&t[0].apply(this,arguments)}))],l=!0)},p:function(e,r){var n=(0,c.Z)(r,1)[0];t=e,d&&d.p&&(!u||4&n)&&ys(d,h,t,t[2],u?gs(h,t[2],n,null):bs(t[2]),null)},i:function(t){u||(Su(d,t),pu((function(){u&&(s||(s=Ou(e,af,{},!0)),s.run(1))})),u=!0)},o:function(t){Iu(d,t),s||(s=Ou(e,af,{},!1)),s.run(0),u=!1},d:function(t){t&&Rs(e),d&&d.d(t),t&&s&&s.end(),l=!1,ls(f)}}}function ff(t,e,r){var n=e.$$slots,i=void 0===n?{}:n,o=e.$$scope,a=!!Ta.containerElements.connectModal,s=document.documentElement;ou((function(){a||(s.style.position="sticky",s.style.overflow="hidden")})),au((function(){a||(s.style.position="",s.style.removeProperty("overflow"))}));var u=e.close;return t.$$set=function(t){"close"in t&&r(0,u=t.close),"$$scope"in t&&r(2,o=t.$$scope)},[u,a,o,i,function(e){su.call(this,t,e)}]}var hf=function(t){(0,a.Z)(r,t);var e=(0,s.Z)(r);function r(t){var n;return(0,l.Z)(this,r),n=e.call(this),$u((0,o.Z)(n),t,ff,lf,hs,{close:0},cf),n}return(0,f.Z)(r)}(qu);function df(t){Ps(t,"svelte-tz7ru1",".container.svelte-tz7ru1{padding:var(--onboard-spacing-4, var(--spacing-4));font-size:var(--onboard-font-size-6, var(--font-size-6));line-height:24px}input.svelte-tz7ru1{height:1rem;width:1rem;margin-right:0.5rem}")}function pf(t){var e,r,n,i,o,a,s,u,c,l,f,h,d=t[1]("connect.selectingWallet.agreement.agree")+"",p=t[3]&&function(t){var e,r,n,i=t[1]("connect.selectingWallet.agreement.terms")+"",o=t[4]?" "+t[1]("connect.selectingWallet.agreement.and")+" ":".";return{c:function(){e=Ls("a"),r=Zs(i),n=Zs(o),Hs(e,"href",t[3]),Hs(e,"target","_blank")},m:function(t,i){Ts(t,e,i),Is(e,r),Ts(t,n,i)},p:function(t,e){2&e&&i!==(i=t[1]("connect.selectingWallet.agreement.terms")+"")&&zs(r,i),2&e&&o!==(o=t[4]?" "+t[1]("connect.selectingWallet.agreement.and")+" ":".")&&zs(n,o)},d:function(t){t&&Rs(e),t&&Rs(n)}}}(t),v=t[4]&&function(t){var e,r,n,i=t[1]("connect.selectingWallet.agreement.privacy")+"";return{c:function(){e=Ls("a"),r=Zs(i),n=Zs("."),Hs(e,"href",t[4]),Hs(e,"target","_blank")},m:function(t,i){Ts(t,e,i),Is(e,r),Ts(t,n,i)},p:function(t,e){2&e&&i!==(i=t[1]("connect.selectingWallet.agreement.privacy")+"")&&zs(r,i)},d:function(t){t&&Rs(e),t&&Rs(n)}}}(t);return{c:function(){e=Ls("div"),r=Ls("label"),n=Ls("input"),i=js(),o=Ls("span"),a=Zs(d),s=js(),u=Zs(" "),c=js(),p&&p.c(),l=js(),v&&v.c(),Hs(n,"class"," svelte-tz7ru1"),Hs(n,"type","checkbox"),Hs(r,"class","flex"),Hs(e,"class","container flex items-center svelte-tz7ru1")},m:function(d,m){Ts(d,e,m),Is(e,r),Is(r,n),n.checked=t[0],Is(r,i),Is(r,o),Is(o,a),Is(o,s),Is(o,u),Is(o,c),p&&p.m(o,null),Is(o,l),v&&v.m(o,null),f||(h=Us(n,"change",t[6]),f=!0)},p:function(t,e){1&e&&(n.checked=t[0]),2&e&&d!==(d=t[1]("connect.selectingWallet.agreement.agree")+"")&&zs(a,d),t[3]&&p.p(t,e),t[4]&&v.p(t,e)},d:function(t){t&&Rs(e),p&&p.d(),v&&v.d(),f=!1,h()}}}function vf(t){var e,r=t[5]&&pf(t);return{c:function(){r&&r.c(),e=Fs()},m:function(t,n){r&&r.m(t,n),Ts(t,e,n)},p:function(t,e){var n=(0,c.Z)(e,1)[0];t[5]&&r.p(t,n)},i:os,o:os,d:function(t){r&&r.d(t),t&&Rs(e)}}}function mf(t,e,r){var n,i;ps(t,et._,(function(t){return r(1,i=t)}));var o=e.agreed,a=JSON.parse(Na(La.TERMS_AGREEMENT)||"{}"),s=a.terms,u=a.privacy,c=a.version,l=is.select("appMetadata").pipe((0,D.O)(is.get().appMetadata),(0,H.d)(1));ps(t,l,(function(t){return r(7,n=t)}));var f=n&&n.agreement||{termsUrl:"",privacyUrl:"",version:""},h=f.termsUrl,d=f.privacyUrl,p=f.version,v=!!(h&&!s||d&&!u||p&&p!==c);return o=!v,t.$$set=function(t){"agreed"in t&&r(0,o=t.agreed)},t.$$.update=function(){1&t.$$.dirty&&(o?Ca(La.TERMS_AGREEMENT,JSON.stringify({version:p,terms:!!h,privacy:!!d})):!1===o&&Oa(La.TERMS_AGREEMENT))},[o,i,l,h,d,v,function(){o=this.checked,r(0,o)}]}var gf=function(t){(0,a.Z)(r,t);var e=(0,s.Z)(r);function r(t){var n;return(0,l.Z)(this,r),n=e.call(this),$u((0,o.Z)(n),t,mf,vf,hs,{agreed:0},df),n}return(0,f.Z)(r)}(qu);function yf(t){Ps(t,"svelte-2btye1",".icon.svelte-2btye1{color:var(--onboard-white, var(--white));border-radius:50px;bottom:-0.25rem;right:-0.25rem}.yellow.svelte-2btye1{background:var(--onboard-warning-500, var(--warning-500))}")}function bf(t){var e,r,n;return{c:function(){Hs(e=Ls("div"),"class",r=ws("".concat(t[2]," icon flex absolute"))+" svelte-2btye1"),Hs(e,"style",n="width: ".concat(t[0],"px; height: ").concat(t[0],"px; padding: ").concat(t[0]/6,"px;")),Gs(e,"yellow","yellow"===t[1])},m:function(t,r){Ts(t,e,r),e.innerHTML='\n  <svg width="100%" viewB
2ox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">\n    <path d="M6 2L6.01 8L10 12L6.01 16.01L6 22H18V16L14 12L18 8.01V2H6ZM16 16.5V20H8V16.5L12 12.5L16 16.5Z" fill="currenColor"/>\n  </svg>\n'},p:function(t,i){var o=(0,c.Z)(i,1)[0];4&o&&r!==(r=ws("".concat(t[2]," icon flex absolute"))+" svelte-2btye1")&&Hs(e,"class",r),1&o&&n!==(n="width: ".concat(t[0],"px; height: ").concat(t[0],"px; padding: ").concat(t[0]/6,"px;"))&&Hs(e,"style",n),6&o&&Gs(e,"yellow","yellow"===t[1])},i:os,o:os,d:function(t){t&&Rs(e)}}}function wf(t,e,r){var n=e.size,i=e.color,o=void 0===i?"yellow":i,a=e.class,s=void 0===a?"test":a;return t.$$set=function(t){"size"in t&&r(0,n=t.size),"color"in t&&r(1,o=t.color),"class"in t&&r(2,s=t.class)},[n,o,s]}var _f=function(t){(0,a.Z)(r,t);var e=(0,s.Z)(r);function r(t){var n;return(0,l.Z)(this,r),n=e.call(this),$u((0,o.Z)(n),t,wf,bf,hs,{size:0,color:1,class:2},yf),n}return(0,f.Z)(r)}(qu);function xf(t){Ps(t,"svelte-1bikw7k",".icon.svelte-1bikw7k{color:var(--onboard-white, var(--white));border-radius:50px}.green.svelte-1bikw7k{background:var(--onboard-success-600, var(--success-600))}.blue.svelte-1bikw7k{background:var(--onboard-primary-1, var(--primary-1))}")}function Ef(t){var e,r;return{c:function(){Hs(e=Ls("div"),"class","icon flex svelte-1bikw7k"),Hs(e,"style",r="width: ".concat(t[0],"px; height: ").concat(t[0],"px; padding: ").concat(t[0]/5,"px;")),Gs(e,"green","green"===t[1]),Gs(e,"blue","blue"===t[1])},m:function(t,r){Ts(t,e,r),e.innerHTML=ha},p:function(t,n){var i=(0,c.Z)(n,1)[0];1&i&&r!==(r="width: ".concat(t[0],"px; height: ").concat(t[0],"px; padding: ").concat(t[0]/5,"px;"))&&Hs(e,"style",r),2&i&&Gs(e,"green","green"===t[1]),2&i&&Gs(e,"blue","blue"===t[1])},i:os,o:os,d:function(t){t&&Rs(e)}}}function Af(t,e,r){var n=e.size,i=e.color,o=void 0===i?"green":i;return t.$$set=function(t){"size"in t&&r(0,n=t.size),"color"in t&&r(1,o=t.color)},[n,o]}var Mf=function(t){(0,a.Z)(r,t);var e=(0,s.Z)(r);function r(t){var n;return(0,l.Z)(this,r),n=e.call(this),$u((0,o.Z)(n),t,Af,Ef,hs,{size:0,color:1},xf),n}return(0,f.Z)(r)}(qu);function kf(t){Ps(t,"svelte-1le5672",".loading-container.svelte-1le5672.svelte-1le5672{font-family:inherit;font-size:inherit;color:inherit}span.svelte-1le5672.svelte-1le5672{font-family:inherit;font-size:0.889em;margin-top:1rem}.loading.svelte-1le5672.svelte-1le5672{display:inline-block}.loading.svelte-1le5672 div.svelte-1le5672{font-size:inherit;display:block;position:absolute;border:3px solid;border-radius:50%;animation:svelte-1le5672-bn-loading 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;border-color:currentColor transparent transparent transparent}.loading.svelte-1le5672 .loading-first.svelte-1le5672{animation-delay:-0.45s}.loading.svelte-1le5672 .loading-second.svelte-1le5672{animation-delay:-0.3s}.loading.svelte-1le5672 .loading-third.svelte-1le5672{animation-delay:-0.15s}@keyframes svelte-1le5672-bn-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}")}function Sf(t){var e,r;return{c:function(){e=Ls("span"),r=Zs(t[0]),Hs(e,"class","svelte-1le5672")},m:function(t,n){Ts(t,e,n),Is(e,r)},p:function(t,e){1&e&&zs(r,t[0])},d:function(t){t&&Rs(e)}}}function If(t){var e,r,n,i,o,a,s,u,l,f,h,d,p=t[0]&&Sf(t);return{c:function(){e=Ls("div"),r=Ls("div"),n=Ls("div"),o=js(),a=Ls("div"),u=js(),l=Ls("div"),d=js(),p&&p.c(),Hs(n,"class","loading-first svelte-1le5672"),Hs(n,"style",i="height: ".concat(t[1],"; width: ").concat(t[1],";")),Hs(a,"class","loading-second svelte-1le5672"),Hs(a,"style",s="height: ".concat(t[1],"; width: ").concat(t[1],";")),Hs(l,"class","loading-third svelte-1le5672"),Hs(l,"style",f="height: ".concat(t[1],"; width: ").concat(t[1],";")),Hs(r,"class","loading relative svelte-1le5672"),Hs(r,"style",h="height: ".concat(t[1],"; width: ").concat(t[1],";")),Hs(e,"class","loading-container flex flex-column justify-center items-center absolute svelte-1le5672")},m:function(t,i){Ts(t,e,i),Is(e,r),Is(r,n),Is(r,o),Is(r,a),Is(r,u),Is(r,l),Is(e,d),p&&p.m(e,null)},p:function(t,o){var u=(0,c.Z)(o,1)[0];2&u&&i!==(i="height: ".concat(t[1],"; width: ").concat(t[1],";"))&&Hs(n,"style",i),2&u&&s!==(s="height: ".concat(t[1],"; width: ").concat(t[1],";"))&&Hs(a,"style",s),2&u&&f!==(f="height: ".concat(t[1],"; width: ").concat(t[1],";"))&&Hs(l,"style",f),2&u&&h!==(h="height: ".concat(t[1],"; width: ").concat(t[1],";"))&&Hs(r,"style",h),t[0]?p?p.p(t,u):((p=Sf(t)).c(),p.m(e,null)):p&&(p.d(1),p=null)},i:os,o:os,d:function(t){t&&Rs(e),p&&p.d()}}}function Pf(t,e,r){var n=e.description,i=void 0===n?"":n,o=e.size,a=void 0===o?"2rem":o;return t.$$set=function(t){"description"in t&&r(0,i=t.description),"size"in t&&r(1,a=t.size)},[i,a]}var Nf=function(t){(0,a.Z)(r,t);var e=(0,s.Z)(r);function r(t){var n;return(0,l.Z)(this,r),n=e.call(this),$u((0,o.Z)(n),t,Pf,If,hs,{description:0,size:1},kf),n}return(0,f.Z)(r)}(qu);function Cf(t){Ps(t,"svelte-i129jl",".icon.svelte-i129jl{height:100%}.border-custom.svelte-i129jl{border:1px solid var(--border-color)}.border-yellow.svelte-i129jl{border:1px solid var(--onboard-warning-500, var(--warning-500))}.border-gray.svelte-i129jl{border:1px solid var(--onboard-gray-400, var(--gray-400))}.border-green.svelte-i129jl{border:1px solid var(--onboard-success-500, var(--success-500))}.border-dark-green.svelte-i129jl{border:1px solid var(--onboard-success-700, var(--success-700))}.border-blue.svelte-i129jl{border:1px solid\n      var(\n        --onboard-wallet-app-icon-border-color,\n        var(--onboard-primary-300, var(--primary-300))\n      )}.border-dark-blue.svelte-i129jl{border:1px solid\n      var(\n        --onboard-wallet-app-icon-border-color,\n        var(--onboard-primary-600, var(--primary-600))\n      )}.border-transparent.svelte-i129jl{border:1px solid transparent}.border-black.svelte-i129jl{border:1px solid var(--onboard-gray-600, var(--gray-600))}.background-gray.svelte-i129jl{background:var(\n      --onboard-wallet-app-icon-background-gray,\n      var(--onboard-gray-500, var(--gray-500))\n    )}.background-light-gray.svelte-i129jl{background:var(\n      --onboard-wallet-app-icon-background-light-gray,\n      var(--onboard-gray-100, var(--gray-100))\n    )}.background-light-blue.svelte-i129jl{background:var(\n      --onboard-wallet-app-icon-background-light-blue,\n      var(--onboard-primary-100, var(--primary-100))\n    )}.background-green.svelte-i129jl{background:var(\n      --onboard-wallet-app-icon-background-green,\n      var(--onboard-success-100, var(--success-100))\n    )}.background-white.svelte-i129jl{background:var(\n      --onboard-wallet-app-icon-background-white,\n      var(--onboard-white, var(--white))\n    )}
2.background-transparent.svelte-i129jl{background:var(\n      --onboard-wallet-app-icon-background-transparent,\n      transparent\n    )}@keyframes svelte-i129jl-pulse{from{opacity:0}to{opacity:1}}.placeholder-icon.svelte-i129jl{width:100%;height:100%;background:var(--onboard-gray-100, var(--gray-100));border-radius:32px;animation:svelte-i129jl-pulse infinite 750ms alternate ease-in-out}.spinner-container.svelte-i129jl{color:var(--onboard-primary-300, var(--primary-300))}img.svelte-i129jl{max-width:100%;height:auto}.pending-status-icon{z-index:1;fill:white;box-shadow:0px 2px 12px 0px rgba(0, 0, 0, 0.1)}.status-icon-container.svelte-i129jl{right:-0.25rem;bottom:-0.25rem;position:absolute}")}var Of=function(t){return{}},Tf=function(t){return{}};function Rf(t){var e,r,n,i={ctx:t,current:null,token:null,hasCatch:!1,pending:Df,then:Zf,catch:Lf,value:13,blocks:[,,,]};return Tu(r=t[1],i),{c:function(){e=Fs(),i.block.c()},m:function(t,r){Ts(t,e,r),i.block.m(t,i.anchor=r),i.mount=function(){return e.parentNode},i.anchor=e,n=!0},p:function(e,n){t=e,i.ctx=t,2&n&&r!==(r=t[1])&&Tu(r,i)||Ru(i,t,n)},i:function(t){n||(Su(i.block),n=!0)},o:function(t){for(var e=0;e<3;e+=1){Iu(i.blocks[e])}n=!1},d:function(t){t&&Rs(e),i.block.d(t),i.token=null,i=null}}}function Bf(t){var e,r,n;return r=new Nf({props:{size:"2rem"}}),{c:function(){e=Ls("div"),Uu(r.$$.fragment),Hs(e,"class","spinner-container svelte-i129jl")},m:function(t,i){Ts(t,e,i),Du(r,e,null),n=!0},p:os,i:function(t){n||(Su(r.$$.fragment,t),n=!0)},o:function(t){Iu(r.$$.fragment,t),n=!1},d:function(t){t&&Rs(e),Hu(r)}}}function Lf(t){return{c:os,m:os,p:os,i:os,o:os,d:os}}function Zf(t){var e,r,n,i,o,a;function s(t,e){return 2&e&&(r=null),null==r&&(r=!!va(t[13])),r?Ff:jf}var u=s(t,-1),c=u(t),l=t[2]&&t[9]<=Za&&Uf();return{c:function(){e=Ls("div"),c.c(),i=js(),l&&l.c(),o=Fs(),Hs(e,"class","icon flex justify-center items-center svelte-i129jl")},m:function(t,r){Ts(t,e,r),c.m(e,null),Ts(t,i,r),l&&l.m(t,r),Ts(t,o,r),a=!0},p:function(t,r){u===(u=s(t,r))&&c?c.p(t,r):(c.d(1),(c=u(t))&&(c.c(),c.m(e,null))),t[2]&&t[9]<=Za?l?516&r&&Su(l,1):((l=Uf()).c(),Su(l,1),l.m(o.parentNode,o)):l&&(Mu(),Iu(l,1,1,(function(){l=null})),ku())},i:function(t){a||(t&&(n||pu((function(){(n=Nu(e,af,{})).start()}))),Su(l),a=!0)},o:function(t){Iu(l),a=!1},d:function(t){t&&Rs(e),c.d(),t&&Rs(i),l&&l.d(t),t&&Rs(o)}}}function jf(t){var e,r;return{c:function(){ds((e=Ls("img")).src,r=t[13])||Hs(e,"src",r),Hs(e,"alt","logo"),Hs(e,"class","svelte-i129jl")},m:function(t,r){Ts(t,e,r)},p:function(t,n){2&n&&!ds(e.src,r=t[13])&&Hs(e,"src",r)},d:function(t){t&&Rs(e)}}}function Ff(t){var e,r,n=t[13]+"";return{c:function(){e=new Ws(!1),r=Fs(),e.a=r},m:function(t,i){e.m(n,t,i),Ts(t,r,i)},p:function(t,r){2&r&&n!==(n=t[13]+"")&&e.p(n)},d:function(t){t&&Rs(r),t&&e.d()}}}function Uf(t){var e,r,n;return r=new _f({props:{class:"pending-status-icon",size:20}}),{c:function(){e=Ls("div"),Uu(r.$$.fragment),Hs(e,"class","status-icon-container svelte-i129jl")},m:function(t,i){Ts(t,e,i),Du(r,e,null),n=!0},i:function(t){n||(Su(r.$$.fragment,t),n=!0)},o:function(t){Iu(r.$$.fragment,t),n=!1},d:function(t){t&&Rs(e),Hu(r)}}}function Df(t){var e;return{c:function(){Hs(e=Ls("div"),"class","placeholder-icon svelte-i129jl")},m:function(t,r){Ts(t,e,r)},p:os,i:os,o:os,d:function(t){t&&Rs(e)}}}function Hf(t){var e,r,n,i,o,a,s,u;pu(t[12]);var l=[Bf,Rf],f=[];function h(t,e){return t[2]&&t[9]>=Za?0:1}r=h(t),n=f[r]=l[r](t);var d=t[11].status,p=vs(d,t,t[10],Tf);return{c:function(){e=Ls("div"),n.c(),i=js(),p&&p.c(),Hs(e,"class","relative svelte-i129jl"),Hs(e,"style",o="".concat("custom"===t[6]?"background-color: ".concat(t[7]):"","; padding: ").concat(t[3]-1,"px; width: ").concat(t[0],"px; height: ").concat(t[0],"px; border-radius: ").concat(t[8],"px; color: ").concat(t[4],";")),Gs(e,"border-custom","custom"===t[5]),Gs(e,"border-yellow","yellow"===t[5]),Gs(e,"border-gray","gray"===t[5]),Gs(e,"border-green","green"===t[5]),Gs(e,"border-dark-green","darkGreen"===t[5]),Gs(e,"border-blue","blue"===t[5]),Gs(e,"border-dark-blue","darkBlue"===t[5]),Gs(e,"border-transparent","transparent"===t[5]),Gs(e,"border-black","black"===t[5]),Gs(e,"background-gray","gray"===t[6]),Gs(e,"background-light-gray","lightGray"===t[6]),Gs(e,"background-light-blue","lightBlue"===t[6]),Gs(e,"background-green","green"===t[6]),Gs(e,"background-white","white"===t[6]),Gs(e,"background-trans
2parent","transparent"===t[6])},m:function(n,o){Ts(n,e,o),f[r].m(e,null),Is(e,i),p&&p.m(e,null),a=!0,s||(u=Us(window,"resize",t[12]),s=!0)},p:function(t,s){var u=(0,c.Z)(s,1)[0],v=r;(r=h(t))===v?f[r].p(t,u):(Mu(),Iu(f[v],1,1,(function(){f[v]=null})),ku(),(n=f[r])?n.p(t,u):(n=f[r]=l[r](t)).c(),Su(n,1),n.m(e,i)),p&&p.p&&(!a||1024&u)&&ys(p,d,t,t[10],a?gs(d,t[10],u,Of):bs(t[10]),Tf),(!a||473&u&&o!==(o="".concat("custom"===t[6]?"background-color: ".concat(t[7]):"","; padding: ").concat(t[3]-1,"px; width: ").concat(t[0],"px; height: ").concat(t[0],"px; border-radius: ").concat(t[8],"px; color: ").concat(t[4],";")))&&Hs(e,"style",o),(!a||32&u)&&Gs(e,"border-custom","custom"===t[5]),(!a||32&u)&&Gs(e,"border-yellow","yellow"===t[5]),(!a||32&u)&&Gs(e,"border-gray","gray"===t[5]),(!a||32&u)&&Gs(e,"border-green","green"===t[5]),(!a||32&u)&&Gs(e,"border-dark-green","darkGreen"===t[5]),(!a||32&u)&&Gs(e,"border-blue","blue"===t[5]),(!a||32&u)&&Gs(e,"border-dark-blue","darkBlue"===t[5]),(!a||32&u)&&Gs(e,"border-transparent","transparent"===t[5]),(!a||32&u)&&Gs(e,"border-black","black"===t[5]),(!a||64&u)&&Gs(e,"background-gray","gray"===t[6]),(!a||64&u)&&Gs(e,"background-light-gray","lightGray"===t[6]),(!a||64&u)&&Gs(e,"background-light-blue","lightBlue"===t[6]),(!a||64&u)&&Gs(e,"background-green","green"===t[6]),(!a||64&u)&&Gs(e,"background-white","white"===t[6]),(!a||64&u)&&Gs(e,"background-transparent","transparent"===t[6])},i:function(t){a||(Su(n),Su(p,t),a=!0)},o:function(t){Iu(n),Iu(p,t),a=!1},d:function(t){t&&Rs(e),f[r].d(),p&&p.d(t),s=!1,u()}}}function zf(t,e,r){var n,i=e.$$slots,o=void 0===i?{}:i,a=e.$$scope,s=e.size,u=e.icon,c=e.loading,l=void 0!==c&&c,f=e.padding,h=void 0===f?s/6:f,d=e.color,p=void 0===d?"black":d,v=e.border,m=void 0===v?"transparent":v,g=e.background,y=void 0===g?"transparent":g,b=e.customBackgroundColor,w=void 0===b?"":b,_=e.radius,x=void 0===_?12:_;return t.$$set=function(t){"size"in t&&r(0,s=t.size),"icon"in t&&r(1,u=t.icon),"loading"in t&&r(2,l=t.loading),"padding"in t&&r(3,h=t.padding),"color"in t&&r(4,p=t.color),"border"in t&&r(5,m=t.border),"background"in t&&r(6,y=t.background),"customBackgroundColor"in t&&r(7,w=t.customBackgroundColor),"radius"in t&&r(8,x=t.radius),"$$scope"in t&&r(10,a=t.$$scope)},[s,u,l,h,p,m,y,w,x,n,a,o,function(){r(9,n=window.innerWidth)}]}var $f=function(t){(0,a.Z)(r,t);var e=(0,s.Z)(r);function r(t){var n;return(0,l.Z)(this,r),n=e.call(this),$u((0,o.Z)(n),t,zf,Hf,hs,{size:0,icon:1,loading:2,padding:3,color:4,border:5,background:6,customBackgroundColor:7,radius:8},Cf),n}return(0,f.Z)(r)}(qu);function qf(t){Ps(t,"svelte-q2gson",".container.svelte-q2gson{gap:1rem;padding:0.75rem;color:var(--onboard-warning-700, var(--warning-700));font-size:var(--onboard-font-size-7, var(--font-size-7));line-height:16px;border:1px solid var(--onboard-warning-400, var(--warning-400));background:var(--onboard-warning-100, var(--warning-100));border-radius:12px}.icon.svelte-q2gson{color:var(--onboard-warning-700, var(--warning-700));width:1rem;height:1rem;flex:0 0 auto}")}function Gf(t){var e,r,n,i,o,a,s=t[1].default,u=vs(s,t,t[0],null);return{c:function(){e=Ls("div"),r=Ls("div"),u&&u.c(),n=js(),Hs(i=Ls("div"),"class","icon svelte-q2gson"),Hs(e,"class","container flex justify-between svelte-q2gson")},m:function(t,o){Ts(t,e,o),Is(e,r),u&&u.m(r,null),Is(e,n),Is(e,i),i.innerHTML=fa,a=!0},p:function(t,e){var r=(0,c.Z)(e,1)[0];u&&u.p&&(!a||1&r)&&ys(u,s,t,t[0],a?gs(s,t[0],r,null):bs(t[0]),null)},i:function(t){a||(Su(u,t),t&&(o||pu((function(){(o=Nu(e,uf,{delay:50,duration:500})).start()}))),a=!0)},o:function(t){Iu(u,t),a=!1},d:function(t){t&&Rs(e),u&&u.d(t)}}}function Wf(t,e,r){var n=e.$$slots,i=void 0===n?{}:n,o=e.$$scope;return t.$$set=function(t){"$$scope"in t&&r(0,o=t.$$scope)},[o,i]}var Vf=function(t){(0,a.Z)(r,t);var e=(0,s.Z)(r);function r(t){var n;return(0,l.Z)(this,r),n=e.call(this),$u((0,o.Z)(n),t,Wf,Gf,hs,{},qf),n}return(0,f.Z)(r)}(qu);function Kf(t){Ps(t,"svelte-1kfgpsl",".container.svelte-1kfgpsl{padding:var(--onboard-spacing-4, var(--spacing-4));color:var(\n      --onboard-connect-accent-text-color,\n      var(--onboard-gray-700, var(--gray-700))\n    )}.connecting-container.svelte-1kfgpsl{padding:var(--onboard-spacing-4, var(--spacing-4));border-radius:var(--onboard-border-radius-1, var(--border-radius-1));background:var(--onboard-success-100, var(--success-100));border:1px solid var(--onboard-success-600, var(--success-600));width:100%}.text.svelte-1kfgpsl{right:var(--onboard-spacing-5, var(--spacing-5))}.tick.svelte-1kfgpsl{color:var(--onboard-success-700, var(--success-700))}")}function Yf(t){var e,r,n,i,o,a,s,u,l,f,h,d,p,v,m,g,y,b=t[2]("connect.connectedWallet.mainText",{default:ml.connect.connectedWallet.mainText,values:{wallet:t[0].label}})+"";return o=new $f({props:{size:40,padding:8,background:t[1]&&t[1].icon?"lightBlue":"lightGray",border:"darkGreen",icon:t[1]&&t[1].icon||la}}),u=new Mf({props:{size:17}}),h=new $f({props:{size:40,padding:8,border:"darkGreen",background:"white",icon:t[0].icon}}),{c:function(){e=Ls("div"),r=Ls("div"),n=Ls("div"),i=Ls("div"),Uu(o.$$.fragment),a=js(),s=Ls("div"),Uu(u.$$.fragment),l=js(),f=Ls("div"),Uu(h.$$.fragment),d=js(),p=Ls("div"),v=Zs(b),m=js(),g=Ls("div"),Hs(s,"class","relative"),$s(s,"right","1rem"),$s(s,"top","4px"),$s(s,"z-index","1"),Hs(f,"class","relative"),$s(f,"right","1.75rem"),Hs(i,"class","flex justify-center items-end relative"),Hs(p,"class","text relative svelte-1kfgpsl"),Hs(n,"class","flex items-center"),Hs(g,"class","tick flex items-center svelte-1kfgpsl"),$s(g,"width","24px"),Hs(r,"class","connecting-container flex justify-between items-center svelte-1kfgpsl"),Hs(e,"class","container svelte-1kfgpsl")},m:function(t,c){Ts(t,e,c),Is(e,r),Is(r,n),Is(n,i),Du(o,i,null),Is(i,a),Is(i,s),Du(u,s,null),Is(i,l),Is(i,f),Du(h,f,null),Is(n,d),Is(n,p),Is(p,v),Is(r,m),Is(r,g),g.innerHTML=ha,y=!0},p:function(t,e){var r=(0,c.Z)(e,1)[0],n={};2&r&&(n.background=t[1]&&t[1].icon?"lightBlue":"lightGray"),2&r&&(n.icon=t[1]&&t[1].icon||la),o.$set(n);var i={};1&r&&(i.icon=t[0].icon),h.$set(i),(!y||5&r)&&b!==(b=t[2]("connect.connectedWallet.mainText",{default:ml.connect.connectedWallet.mainText,values:{wallet:t[0].label}})+"")&&zs(v,b)},i:function(t){y||(Su(o.$$.fragment,t),Su(u.$$.fragment,t),Su(h.$$.fragment,t),y=!0)},o:function(t){Iu(o.$$.fragment,t),Iu(u.$$.fragment,t),Iu(h.$$.fragment,t),y=!1}
2,d:function(t){t&&Rs(e),Hu(o),Hu(u),Hu(h)}}}function Xf(t,e,r){var n,i;ps(t,et._,(function(t){return r(2,i=t)}));var o=e.selectedWallet,a=is.select("appMetadata").pipe((0,D.O)(is.get().appMetadata),(0,H.d)(1));return ps(t,a,(function(t){return r(1,n=t)})),t.$$set=function(t){"selectedWallet"in t&&r(0,o=t.selectedWallet)},[o,n,i,a]}var Jf=function(t){(0,a.Z)(r,t);var e=(0,s.Z)(r);function r(t){var n;return(0,l.Z)(this,r),n=e.call(this),$u((0,o.Z)(n),t,Xf,Yf,hs,{selectedWallet:0},Kf),n}return(0,f.Z)(r)}(qu);function Qf(t){Ps(t,"svelte-j1ywa3",".container.svelte-j1ywa3{padding:var(--onboard-spacing-4, var(--spacing-4))}.connecting-container.svelte-j1ywa3{width:100%;padding:var(--onboard-spacing-4, var(--spacing-4));transition:background-color 100ms ease-in-out,\n      border-color 100ms ease-in-out;border-radius:24px;background:var(--onboard-primary-100, var(--primary-100));border:1px solid;border-color:var(--onboard-primary-300, var(--primary-300));color:var(--onboard-gray-600, var(--gray-600))}.connecting-container.warning.svelte-j1ywa3{background:var(--onboard-warning-100, var(--warning-100));border-color:var(--onboard-warning-400, var(--warning-400))}.text.svelte-j1ywa3{line-height:16px;margin-bottom:var(--onboard-spacing-5, var(--spacing-5))}.text.text-rejected.svelte-j1ywa3{line-height:24px;margin-bottom:0}.subtext.svelte-j1ywa3{font-size:var(--onboard-font-size-7, var(--font-size-7));line-height:16px}.rejected-cta.svelte-j1ywa3{color:var(--onboard-primary-500, var(--primary-500))}.onboard-button-primary.svelte-j1ywa3{bottom:var(--onboard-spacing-3, var(--spacing-3))}.ml.svelte-j1ywa3{margin-left:var(--onboard-spacing-4, var(--spacing-4))}@media all and (max-width: 520px){.connecting-container.svelte-j1ywa3{border-radius:var(--onboard-border-radius-4, var(--border-radius-4))}.container.svelte-j1ywa3{padding-bottom:0}.wallet-badges.svelte-j1ywa3{display:none}.connecting-wallet-info.svelte-j1ywa3{margin:0}.onboard-button-primary.svelte-j1ywa3{display:none}}")}function th(t){var e,r,n=t[7]("connect.connectingWallet.".concat(t[5]?"previousConnection":"paragraph"),{default:ml.connect.connectingWallet.paragraph,values:{wallet:t[1].label}})+"";return{c:function(){e=Ls("div"),r=Zs(n),Hs(e,"class","subtext svelte-j1ywa3")},m:function(t,n){Ts(t,e,n),Is(e,r)},p:function(t,e){162&e&&n!==(n=t[7]("connect.connectingWallet.".concat(t[5]?"previousConnection":"paragraph"),{default:ml.connect.connectingWallet.paragraph,values:{wallet:t[1].label}})+"")&&zs(r,n)},d:function(t){t&&Rs(e)}}}function eh(t){var e,r,n,i,o=t[7]("connect.connectingWallet.rejectedCTA",{default:ml.connect.connectingWallet.rejectedCTA,values:{wallet:t[1].label}})+"";return{c:function(){e=Ls("div"),r=Zs(o),Hs(e,"class","rejected-cta pointer subtext svelte-j1ywa3")},m:function(o,a){Ts(o,e,a),Is(e,r),n||(i=Us(e,"click",(function(){fs(t[0])&&t[0].apply(this,arguments)})),n=!0)},p:function(e,n){t=e,130&n&&o!==(o=t[7]("connect.connectingWallet.rejectedCTA",{default:ml.connect.connectingWallet.rejectedCTA,values:{wallet:t[1].label}})+"")&&zs(r,o)},d:function(t){t&&Rs(e),n=!1,i()}}}function rh(t){var e,r,n,i,o,a,s,u,l,f,h,d,p,v,m,g,y,b,w,_=t[7]("connect.connectingWallet.".concat(t[4]?"rejectedText":"mainText"),{default:t[4]?ml.connect.connectingWallet.rejectedText:ml.connect.connectingWallet.mainText,values:{wallet:t[1].label}})+"",x=t[7]("connect.connectingWallet.primaryButton",{default:ml.connect.connectingWallet.primaryButton})+"";function E(t,e){return t[4]?eh:th}o=new $f({props:{size:40,padding:8,icon:t[6]&&t[6].icon||la,border:t[4]||t[5]?"yellow":"blue",background:"lightGray"}}),u=new $f({props:{size:40,padding:8,border:t[4]||t[5]?"yellow":"blue",background:"white",icon:t[1].icon}});var A=E(t),M=A(t);return{c:function(){e=Ls("div"),r=Ls("div"),n=Ls("div"),i=Ls("div"),Uu(o.$$.fragment),a=js(),s=Ls("div"),Uu(u.$$.fragment),l=js(),f=Ls("div"),h=Ls("div"),d=Zs(_),p=js(),M.c(),v=js(),m=Ls("button"),g=Zs(x),Hs(s,"class","relative"),$s(s,"right","0.5rem"),Hs(i,"class","flex justify-center relative wallet-badges svelte-j1ywa3"),Hs(h,"class","text svelte-j1ywa3"),Gs(h,"text-rejected",t[4]),Hs(f,"class","flex flex-column justify-center ml connecting-wallet-info svelte-j1ywa3"),Hs(n,"class","flex"),Hs(r,"class","connecting-container flex justify-between items-center svelte-j1ywa3"),Gs(r,"warning",t[4]||t[5]),Hs(m,"class","onboard-button-primary absolute svelte-j1ywa3"),Hs(e,"class","container flex flex-column items-center svelte-j1ywa3")},m:function(c,_){Ts(c,e,_),Is(e,r),Is(r,n),Is(n,i),Du(o,i,null),Is(i,a),Is(i,s),Du(u,s,null),Is(n,l),Is(n,f),Is(f,h),Is(h,d),Is(f,p),M.m(f,null),Is(e,v),Is(e,m),Is(m,g),y=!0,b||(w=Us(m,"click",t[9]),b=!0)},p:function(t,e){var n=(0,c.Z)(e,1)[0],i={};64&n&&(i.icon=t[6]&&t[6].icon||la),48&n&&(i.border=t[4]||t[5]?"yellow":"blue"),o.$set(i);var a={};48&n&&(a.border=t[4]||t[5]?"yellow":"blue"),2&n&&(a.icon=t[1].icon),u.$set(a
2),(!y||146&n)&&_!==(_=t[7]("connect.connectingWallet.".concat(t[4]?"rejectedText":"mainText"),{default:t[4]?ml.connect.connectingWallet.rejectedText:ml.connect.connectingWallet.mainText,values:{wallet:t[1].label}})+"")&&zs(d,_),(!y||16&n)&&Gs(h,"text-rejected",t[4]),A===(A=E(t))&&M?M.p(t,n):(M.d(1),(M=A(t))&&(M.c(),M.m(f,null))),(!y||48&n)&&Gs(r,"warning",t[4]||t[5]),(!y||128&n)&&x!==(x=t[7]("connect.connectingWallet.primaryButton",{default:ml.connect.connectingWallet.primaryButton})+"")&&zs(g,x)},i:function(t){y||(Su(o.$$.fragment,t),Su(u.$$.fragment,t),y=!0)},o:function(t){Iu(o.$$.fragment,t),Iu(u.$$.fragment,t),y=!1},d:function(t){t&&Rs(e),Hu(o),Hu(u),M.d(),b=!1,w()}}}function nh(t,e,r){var n,i;ps(t,et._,(function(t){return r(7,i=t)}));var o=e.connectWallet,a=e.selectedWallet,s=e.deselectWallet,u=e.setStep,c=e.connectionRejected,l=e.previousConnectionRequest,f=is.select("appMetadata").pipe((0,D.O)(is.get().appMetadata),(0,H.d)(1));ps(t,f,(function(t){return r(6,n=t)}));return t.$$set=function(t){"connectWallet"in t&&r(0,o=t.connectWallet),"selectedWallet"in t&&r(1,a=t.selectedWallet),"deselectWallet"in t&&r(2,s=t.deselectWallet),"setStep"in t&&r(3,u=t.setStep),"connectionRejected"in t&&r(4,c=t.connectionRejected),"previousConnectionRequest"in t&&r(5,l=t.previousConnectionRequest)},[o,a,s,u,c,l,n,i,f,function(){s(a.label),u("selectingWallet")}]}var ih=function(t){(0,a.Z)(r,t);var e=(0,s.Z)(r);function r(t){var n;return(0,l.Z)(this,r),n=e.call(this),$u((0,o.Z)(n),t,nh,rh,hs,{connectWallet:0,selectedWallet:1,deselectWallet:2,setStep:3,connectionRejected:4,previousConnectionRequest:5},Qf),n}return(0,f.Z)(r)}(qu);function oh(t){Ps(t,"svelte-1uy2ffh",".outer-container.svelte-1uy2ffh{padding:var(--onboard-spacing-4, var(--spacing-4))}.link.svelte-1uy2ffh{font-size:var(--onboard-font-size-7, var(--font-size-7));line-height:16px;color:var(--onboard-primary-500, var(--primary-500));text-decoration:none}")}function ah(t,e,r){var n=t.slice();return n[3]=e[r].name,n[4]=e[r].url,n[6]=r,n}function sh(t){var e,r=t[1]("connect.selectingWallet.installWallet",{default:ml.connect.selectingWallet.installWallet,values:{app:t[0].name||"this app"}})+"";return{c:function(){e=Zs(r)},m:function(t,r){Ts(t,e,r)},p:function(t,n){3&n&&r!==(r=t[1]("connect.selectingWallet.installWallet",{default:ml.connect.selectingWallet.installWallet,values:{app:t[0].name||"this app"}})+"")&&zs(e,r)},d:function(t){t&&Rs(e)}}}function uh(t){for(var e,r,n,i,o=t[1]("connect.selectingWallet.recommendedWalletsPart1",{default:ml.connect.selectingWallet.recommendedWalletsPart1,values:{app:t[0].name||"This app"}})+"",a=t[1]("connect.selectingWallet.recommendedWalletsPart2",{default:ml.connect.selectingWallet.recommendedWalletsPart2})+"",s=t[0].recommendedInjectedWallets,u=[],c=0;c<s.length;c+=1)u[c]=ch(ah(t,s,c));return{c:function(){e=Zs(o),r=js();for(var t=0;t<u.length;t+=1)u[t].c();n=js(),i=Zs(a)},m:function(t,o){Ts(t,e,o),Ts(t,r,o);for(var a=0;a<u.length;a+=1)u[a]&&u[a].m(t,o);Ts(t,n,o),Ts(t,i,o)},p:function(t,r){if(3&r&&o!==(o=t[1]("connect.selectingWallet.recommendedWalletsPart1",{default:ml.connect.selectingWallet.recommendedWalletsPart1,values:{app:t[0].name||"This app"}})+"")&&zs(e,o),1&r){var c;for(s=t[0].recommendedInjectedWallets,c=0;c<s.length;c+=1){var l=ah(t,s,c);u[c]?u[c].p(l,r):(u[c]=ch(l),u[c].c(),u[c].m(n.parentNode,n))}for(;c<u.length;c+=1)u[c].d(1);u.length=s.length}2&r&&a!==(a=t[1]("connect.selectingWallet.recommendedWalletsPart2",{default:ml.connect.selectingWallet.recommendedWalletsPart2})+"")&&zs(i,a)},d:function(t){t&&Rs(e),t&&Rs(r),Bs(u,t),t&&Rs(n),t&&Rs(i)}}}function ch(t){var e,r,n,i,o=t[3]+"",a=t[6]<t[0].recommendedInjectedWallets.length-1?", ":"";return{c:function(){e=Ls("a"),r=Zs(o),n=Zs(a),Hs(e,"class","link pointer svelte-1uy2ffh"),Hs(e,"href",i=t[4]),Hs(e,"target","_blank"),Hs(e,"rel","noreferrer noopener")},m:function(t,i){Ts(t,e,i),Is(e,r),Is(e,n)},p:function(t,s){1&s&&o!==(o=t[3]+"")&&zs(r,o),1&s&&a!==(a=t[6]<t[0].recommendedInjectedWallets.length-1?", ":"")&&zs(n,a),1&s&&i!==(i=t[4])&&Hs(e,"href",i)},d:function(t){t&&Rs(e)}}}function lh(t){var e;function r(t,e){return t[0].recommendedInjectedWallets?uh:sh}var n=r(t),i=n(t);return{c:function(){i.c(),e=Fs()},m:function(t,r){i.m(t,r),Ts(t,e,r)},p:function(t,o){n===(n=r(t))&&i?i.p(t,o):(i.d(1),(i=n(t))&&(i.c(),i.m(e.parentNode,e)))},d:function(t){i.d(t),t&&Rs(e)}}}function fh(t){var e,r,n;return r=new Vf({props:{$$slots:{default:[lh]},$$scope:{ctx:t}}}),{c:function(){e=Ls("div"),Uu(r.$$.fragment),Hs(e,"class","outer-container svelte-1uy2ffh")},m:function(t,i){Ts(t,e,i),Du(r,e,null),n=!0},p:function(t,e){var n=(0,c.Z)(e,1)[0],i={};131&n&&(i.$$scope={dirty:n,ctx:t}
2),r.$set(i)},i:function(t){n||(Su(r.$$.fragment,t),n=!0)},o:function(t){Iu(r.$$.fragment,t),n=!1},d:function(t){t&&Rs(e),Hu(r)}}}function hh(t,e,r){var n,i;ps(t,et._,(function(t){return r(1,i=t)}));var o=is.select("appMetadata").pipe((0,D.O)(is.get().appMetadata),(0,H.d)(1));return ps(t,o,(function(t){return r(0,n=t)})),[n,i,o]}var dh=function(t){(0,a.Z)(r,t);var e=(0,s.Z)(r);function r(t){var n;return(0,l.Z)(this,r),n=e.call(this),$u((0,o.Z)(n),t,hh,fh,hs,{},oh),n}return(0,f.Z)(r)}(qu);function ph(t){Ps(t,"svelte-1vlog3j","button.svelte-1vlog3j:disabled{opacity:0.5}button.wallet-button-styling.svelte-1vlog3j{position:relative;align-items:flex-start;flex:1;padding:0;background:none;color:var(--onboard-wallet-button-color, inherit)}.wallet-button-container.svelte-1vlog3j{display:flex}.wallet-button-container-inner.svelte-1vlog3j{position:relative;display:flex;flex-flow:column;align-items:center;gap:0.5rem;padding:0.75rem;width:5rem}.name.svelte-1vlog3j{font-size:var(--onboard-font-size-7, var(--font-size-7));line-height:1rem;text-overflow:ellipsis;max-width:5rem;max-height:2rem;overflow:hidden}.status-icon.svelte-1vlog3j{position:absolute;top:3.5rem;left:3.5rem}@media screen and (min-width: 768px){button.wallet-button-styling.svelte-1vlog3j{transition:background-color 250ms ease-in-out;background:var(--onboard-wallet-button-background, none);border:1px solid transparent;border-color:var(--onboard-wallet-button-border-color, var(--border-color));border-radius:var(--onboard-wallet-button-border-radius, var(--border-radius-1))}button.wallet-button-styling.svelte-1vlog3j:hover{background:var(--onboard-wallet-button-background-hover, var(--foreground-color));color:var(--onboard-wallet-button-color-hover)}.wallet-button-container-inner.svelte-1vlog3j{flex:1;flex-flow:row nowrap;gap:1rem;padding:1rem}button.connected.svelte-1vlog3j{border-color:var(--onboard-success-500, var(--success-500))}.name.svelte-1vlog3j{font-size:1rem;line-height:1.25rem;text-align:initial;max-width:inherit;max-height:3rem}.status-icon.svelte-1vlog3j{top:0;bottom:0;left:auto;right:1rem;margin:auto;height:20px}}")}function vh(t){var e,r,n;return r=new Mf({props:{size:20}}),{c:function(){e=Ls("div"),Uu(r.$$.fragment),Hs(e,"class","status-icon svelte-1vlog3j")},m:function(t,i){Ts(t,e,i),Du(r,e,null),n=!0},i:function(t){n||(Su(r.$$.fragment,t),n=!0)},o:function(t){Iu(r.$$.fragment,t),n=!1},d:function(t){t&&Rs(e),Hu(r)}}}function mh(t){var e,r,n,i,o,a,s,u,l,f,h,d;pu(t[7]),i=new $f({props:{size:t[6]>=Za?48:56,icon:t[0],loading:t[4],border:t[3]?"green":"custom",background:"transparent"}});var p=t[3]&&vh();return{c:function(){e=Ls("div"),r=Ls("button"),n=Ls("div"),Uu(i.$$.fragment),o=js(),a=Ls("div"),s=Zs(t[1]),u=js(),p&&p.c(),Hs(a,"class","name svelte-1vlog3j"),Hs(n,"class","wallet-button-container-inner svelte-1vlog3j"),Hs(r,"class","wallet-button-styling svelte-1vlog3j"),r.disabled=t[5],Gs(r,"connected",t[3]),Hs(e,"class","wallet-button-container svelte-1vlog3j")},m:function(c,l){Ts(c,e,l),Is(e,r),Is(r,n),Du(i,n,null),Is(n,o),Is(n,a),Is(a,s),Is(n,u),p&&p.m(n,null),f=!0,h||(d=[Us(window,"resize",t[7]),Us(r,"click",(function(){fs(t[2])&&t[2].apply(this,arguments)}))],h=!0)},p:function(e,o){var a=(0,c.Z)(o,1)[0];t=e;var u={};64&a&&(u.size=t[6]>=Za?48:56),1&a&&(u.icon=t[0]),16&a&&(u.loading=t[4]),8&a&&(u.border=t[3]?"green":"custom"),i.$set(u),(!f||2&a)&&zs(s,t[1]),t[3]?p?8&a&&Su(p,1):((p=vh()).c(),Su(p,1),p.m(n,null)):p&&(Mu(),Iu(p,1,1,(function(){p=null})),ku()),(!f||32&a)&&(r.disabled=t[5]),(!f||8&a)&&Gs(r,"connected",t[3])},i:function(t){f||(Su(i.$$.fragment,t),Su(p),t&&(l||pu((function(){(l=Nu(r,af,{})).start()}))),f=!0)},o:function(t){Iu(i.$$.fragment,t),Iu(p),f=!1},d:function(t){t&&Rs(e),Hu(i),p&&p.d(),h=!1,ls(d)}}}function gh(t,e,r){var n,i=e.icon,o=e.label,a=e.onClick,s=e.connected,u=e.connecting,c=e.disabled;return t.$$set=function(t){"icon"in t&&r(0,i=t.icon),"label"in t&&r(1,o=t.label),"onClick"in t&&r(2,a=t.onClick),"connected"in t&&r(3,s=t.connected),"connecting"in t&&r(4,u=t.connecting),"disabled"in t&&r(5,c=t.disabled)},[i,o,a,s,u,c,n,function(){r(6,n=window.innerWidth)}]}var yh=function(t){(0,a.Z)(r,t);var e=(0,s.Z)(r);function r(t){var n;return(0,l.Z)(this,r),n=e.call(this),$u((0,o.Z)(n),t,gh,mh,hs,{icon:0,label:1,onClick:2,connected:3,connecting:4,disabled:5},ph),n}return(0,f.Z)(r)}(qu);
2function bh(t){Ps(t,"svelte-kpc6js",".wallets-container.svelte-kpc6js{display:flex;gap:0.5rem;overflow-x:scroll;overflow-y:hidden;padding:0.75rem 0.5rem;border-bottom:1px solid var(--border-color);-ms-overflow-style:none;scrollbar-width:none}.wallets-container.svelte-kpc6js::-webkit-scrollbar{display:none}.warning-container.svelte-kpc6js{margin:1rem 1rem 0}.notice-container.svelte-kpc6js{flex:0 0 100%;margin-top:0.75rem}@media all and (min-width: 768px){.wallets-container.svelte-kpc6js{display:grid;grid-template-columns:repeat(var(--onboard-wallet-columns, 2), 1fr);padding:1rem;border:none}.notice-container.svelte-kpc6js{grid-column:span 2;margin:0}}")}function wh(t,e,r){var n=t.slice();return n[10]=e[r],n}function _h(t){var e,r,n;return r=new Vf({props:{$$slots:{default:[xh]},$$scope:{ctx:t}}}),{c:function(){e=Ls("div"),Uu(r.$$.fragment),Hs(e,"class","warning-container svelte-kpc6js")},m:function(t,i){Ts(t,e,i),Du(r,e,null),n=!0},p:function(t,e){var n={};8200&e&&(n.$$scope={dirty:e,ctx:t}),r.$set(n)},i:function(t){n||(Su(r.$$.fragment,t),n=!0)},o:function(t){Iu(r.$$.fragment,t),n=!1},d:function(t){t&&Rs(e),Hu(r)}}}function xh(t){var e,r;return{c:function(){e=new Ws(!1),r=Fs(),e.a=r},m:function(n,i){e.m(t[3],n,i),Ts(n,r,i)},p:function(t,r){8&r&&e.p(t[3])},d:function(t){t&&Rs(r),t&&e.d()}}}function Eh(t){var e,r;function n(){return t[9](t[10])}return e=new yh({props:{connected:t[7](t[10].label),connecting:t[2]===t[10].label,label:t[10].label,icon:t[10].icon,onClick:n,disabled:t[4]<=Za&&t[2]&&t[2]!==t[10].label}}),{c:function(){Uu(e.$$.fragment)},m:function(t,n){Du(e,t,n),r=!0},p:function(r,i){t=r;var o={};1&i&&(o.connected=t[7](t[10].label)),5&i&&(o.connecting=t[2]===t[10].label),1&i&&(o.label=t[10].label),1&i&&(o.icon=t[10].icon),3&i&&(o.onClick=n),21&i&&(o.disabled=t[4]<=Za&&t[2]&&t[2]!==t[10].label),e.$set(o)},i:function(t){r||(Su(e.$$.fragment,t),r=!0)},o:function(t){Iu(e.$$.fragment,t),r=!1},d:function(t){Hu(e,t)}}}function Ah(t){var e,r,n,i,o,a=t[5]("connect.selectingWallet.whyDontISeeMyWallet",{default:ml.connect.selectingWallet.whyDontISeeMyWallet})+"",s=t[5]("connect.selectingWallet.learnMore",{default:ml.connect.selectingWallet.learnMore})+"";return{c:function(){e=Ls("div"),r=Zs(a),n=js(),i=Ls("a"),o=Zs(s),Hs(i,"class","link pointer"),Hs(i,"href",t[6].wheresMyWalletLink||kh),Hs(i,"target","_blank"),Hs(i,"rel","noreferrer noopener")},m:function(t,a){Ts(t,e,a),Is(e,r),Ts(t,n,a),Ts(t,i,a),Is(i,o)},p:function(t,e){32&e&&a!==(a=t[5]("connect.selectingWallet.whyDontISeeMyWallet",{default:ml.connect.selectingWallet.whyDontISeeMyWallet})+"")&&zs(r,a),32&e&&s!==(s=t[5]("connect.selectingWallet.learnMore",{default:ml.connect.selectingWallet.learnMore})+"")&&zs(o,s)},d:function(t){t&&Rs(e),t&&Rs(n),t&&Rs(i)}}}function Mh(t){var e,r,n,i,o,a,s;pu(t[8]);for(var u=t[3]&&_h(t),l=t[0],f=[],h=0;h<l.length;h+=1)f[h]=Eh(wh(t,l,h));var d=function(t){return Iu(f[t],1,1,(function(){f[t]=null}))},p=!t[6].removeWhereIsMyWalletWarning&&function(t){var e,r,n;return r=new Vf({props:{$$slots:{default:[Ah]},$$scope:{ctx:t}}}),{c:function(){e=Ls("div"),Uu(r.$$.fragment),Hs(e,"class","notice-container svelte-kpc6js")},m:function(t,i){Ts(t,e,i),Du(r,e,null),n=!0},p:function(t,e){var n={};8224&e&&(n.$$scope={dirty:e,ctx:t}),r.$set(n)},i:function(t){n||(Su(r.$$.fragment,t),n=!0)},o:function(t){Iu(r.$$.fragment,t),n=!1},d:function(t){t&&Rs(e),Hu(r)}}}(t);return{c:function(){e=Ls("div"),u&&u.c(),r=js(),n=Ls("div");for(var t=0;t<f.length;t+=1)f[t].c();i=js(),p&&p.c(),Hs(n,"class","wallets-container svelte-kpc6js"),Hs(e,"class","outer-container")},m:function(c,l){Ts(c,e,l),u&&u.m(e,null),Is(e,r),Is(e,n);for(var h=0;h<f.length;h+=1)f[h]&&f[h].m(n,null);Is(n,i),p&&p.m(n,null),o=!0,a||(s=Us(window,"resize",t[8]),a=!0)},p:function(t,o){var a=(0,c.Z)(o,1)[0];if(t[3]?u?(u.p(t,a),8&a&&Su(u,1)):((u=_h(t)).c(),Su(u,1),u.m(e,r)):u&&(Mu(),Iu(u,1,1,(function(){u=null})),ku()),151&a){var s;for(l=t[0],s=0;s<l.length;s+=1){var h=wh(t,l,s);f[s]?(f[s].p(h,a),Su(f[s],1)):(f[s]=Eh(h),f[s].c(),Su(f[s],1),f[s].m(n,i))}for(Mu(),s=l.length;s<f.length;s+=1)d(s);ku()}t[6].removeWhereIsMyWalletWarning||p.p(t,a)},i:function(t){if(!o){Su(u);for(var e=0;e<l.length;e+=1)Su(f[e]);Su(p),o=!0}},o:function(t){Iu(u),f=f.filter(Boolean);for(var e=0;e<f.length;e+=1)Iu(f[e]);Iu(p),o=!1},d:function(t){t&&Rs(e),u&&u.d(),Bs(f,t),p&&p.d(),a=!1,s()}}}var kh="https://www.blocknative.com/blog/metamask-wont-connect-web3-wallet-troubleshooting";function Sh(t,e,r){var n;ps(t,et._,(function(t){return r(5,n=t)}));var i,o=e.wallets,a=e.selectWallet,s=e.connectingWalletLabel,u=e.connectingErrorMessage,c=is.get().connect;return t.$$set=function(t){"wallets"in t&&r(0,o=t.wallets),"selectWallet"in t&&r(1,a=t.selectWallet),"connectingWalletLabel"in t&&r(2,s=t.connectingWalletLabel),"connectingErrorMessage"in t&&r(3,u=t.connectingErrorMessage)},[o,a,s,u,i,n,c,function(t){return!!is.get().wallets.find((function(e){return e.label===t}))},function(){r(4,i=window.innerWidth)},function(t){return a(t)}]}var Ih=function(t){(0,a.Z)(r,t);var e=(0,s.Z)(r);function r(t){var n;return(0,l.Z)(this,r),n=e.call(this),$u((0,o.Z)(n),t,Sh,Mh,hs,{wallets:0,selectWallet:1,connectingWalletLabel:2,connectingErrorMessage:3},bh),n}return(0,f.Z)(r)}(qu);
2function Ph(t){Ps(t,"svelte-obaru3",".sidebar.svelte-obaru3{--background-color:var(\n      --onboard-connect-sidebar-background,\n      var(--w3o-foreground-color, none)\n    );--text-color:var(--onboard-connect-sidebar-color, inherit);--border-color:var(--onboard-connect-sidebar-border-color, inherit);display:flex;flex-flow:column;gap:1rem;padding:1rem;align-items:center}.inner-container.svelte-obaru3{display:flex;flex-flow:column;align-items:center;align-self:stretch;gap:0.5rem;padding:1.5rem;text-align:center;border:1px solid transparent;border-radius:12px;border-color:var(--border-color);background:var(--background-color);color:var(--text-color)}.icon-container.svelte-obaru3{display:flex;height:3.5rem;width:auto;min-width:3.5rem;max-width:100%}.heading.svelte-obaru3{font-size:var(--onboard-font-size-3, var(--font-size-3));margin:0 0 var(--onboard-spacing-5, var(--spacing-5)) 0}.subheading.svelte-obaru3{line-height:1rem}.description.svelte-obaru3{line-height:1.25rem;font-size:var(--onboard-font-size-6, var(--font-size-6))}img.svelte-obaru3{max-width:100%;height:auto}.indicators.svelte-obaru3{margin-top:auto}.indicator.svelte-obaru3{box-sizing:content-box;width:8px;height:8px;border-radius:8px;background:var(\n      --onboard-connect-sidebar-progress-background,\n      var(--onboard-gray-700, var(--gray-700))\n    );transition:background 250ms ease-in-out}.indicator.on.svelte-obaru3{background:var(\n      --onboard-connect-sidebar-progress-color,\n      var(--action-color)\n    );border:2px solid\n      var(\n        --onboard-connect-sidebar-progress-background,\n        var(--onboard-gray-700, var(--gray-700))\n      )}.join.svelte-obaru3{box-sizing:content-box;z-index:1;right:4px;height:2px;background:var(\n      --onboard-connect-sidebar-progress-background,\n      var(--onboard-gray-700, var(--gray-700))\n    );transition:background 250ms ease-in-out}.join.active.svelte-obaru3{background:var(\n      --onboard-connect-sidebar-progress-color,\n      var(--action-color)\n    )}.no-link.svelte-obaru3{display:flex;flex-direction:row;align-items:center;padding:0.25rem 0.5rem 0.25rem 0.75rem;gap:0.25rem;font-size:var(--onboard-font-size-6, var(--font-size-6))}.info-icon.svelte-obaru3{width:1.25rem;display:flex;align-items:center}@media all and (min-width: 768px){.sidebar.svelte-obaru3{max-width:280px;border-right:1px solid;border-color:var(--border-color);background:var(--background-color)}.inner-container.svelte-obaru3{border:none;text-align:initial;flex:1;align-items:flex-start;gap:1rem}.indicators.svelte-obaru3{margin-bottom:0.25rem}}")}function Nh(t){var e,r,n,i=t[3]("connect.".concat(t[0],".sidebar.header"),{default:""});function o(t,e){return t[2]&&(t[2].logo||t[2].icon)?Oh:Ch}var a=o(t),s=a(t),u=i&&Bh(t);return{c:function(){e=Ls("div"),s.c(),r=js(),u&&u.c(),n=Fs(),Hs(e,"class","icon-container svelte-obaru3")},m:function(t,i){Ts(t,e,i),s.m(e,null),Ts(t,r,i),u&&u.m(t,i),Ts(t,n,i)},p:function(t,r){a===(a=o(t))&&s?s.p(t,r):(s.d(1),(s=a(t))&&(s.c(),s.m(e,null))),9&r&&(i=t[3]("connect.".concat(t[0],".sidebar.header"),{default:""})),i?u?u.p(t,r):((u=Bh(t)).c(),u.m(n.parentNode,n)):u&&(u.d(1),u=null)},d:function(t){t&&Rs(e),s.d(),t&&Rs(r),u&&u.d(t),t&&Rs(n)}}}function Ch(t){var e,r;return{c:function(){e=new Ws(!1),r=Fs(),e.a=r},m:function(t,n){e.m(oa,t,n),Ts(t,r,n)},p:os,d:function(t){t&&Rs(r),t&&e.d()}}}function Oh(t){var e,r;function n(t,r){return 4&r&&(e=null),null==e&&(e=!!va(t[2].logo||t[2].icon)),e?Rh:Th}var i=n(t,-1),o=i(t);return{c:function(){o.c(),r=Fs()},m:function(t,e){o.m(t,e),Ts(t,r,e)},p:function(t,e){i===(i=n(t,e))&&o?o.p(t,e):(o.d(1),(o=i(t))&&(o.c(),o.m(r.parentNode,r)))},d:function(t){o.d(t),t&&Rs(r)}}}function Th(t){var e,r;return{c:function(){ds((e=Ls("img")).src,r=t[2].logo||t[2].icon)||Hs(e,"src",r),Hs(e,"alt","logo"),Hs(e,"class","svelte-obaru3")},m:function(t,r){Ts(t,e,r)},p:function(t,n){4&n&&!ds(e.src,r=t[2].logo||t[2].icon)&&Hs(e,"src",r)},d:function(t){t&&Rs(e)}}}function Rh(t){var e,r,n=(t[2].logo||t[2].icon)+"";return{c:function(){e=new Ws(!1),r=Zs("\u200b"),e.a=r},m:function(t,i){e.m(n,t,i),Ts(t,r,i)},p:function(t,r){4&r&&n!==(n=(t[2].logo||t[2].icon)+"")&&e.p(n)},d:function(t){t&&e.d(),t&&Rs(r)}}}function Bh(t){var e,r,n=t[3]("connect.".concat(t[0],".sidebar.header"),{default:t[7]})+"";return{c:function(){e=Ls("div"),r=Zs(n),Hs(e,"class","heading svelte-obaru3")},m:function(t,n){Ts(t,e,n),Is(e,r)},p:function(t,e){9&e&&n!==(n=t[3]("connect.".concat(t[0],".sidebar.header"),{default:t[7]})+"")&&zs(r,n)},d:function(t){t&&Rs(e)}}}function Lh(t){var e,r,n,i,o,a,s,u,c,l,f,h;return{c:function(){e=Ls("div"),r=Ls("div"),n=js(),i=Ls("div"),a=js(),s=Ls("div"),u=js(),c=Ls("div"),f=js(),h=Ls("div"),Hs(r,"class","indicator relative svelte-obaru3"),Gs(r,"on",!0),Hs(i,"class","join relative svelte-obaru3"),Hs(i,"style",o="".concat("selectingWallet"!==t[0]?"right: 4px; width: 52px;":"right: 2px; width: 54px;")),Gs(i,"active","selectingWallet"!==t[0]),Hs(s,"class","indicator relative svelte-obaru3"),Hs(s,"style","right: 8px;"),Gs(s,"on","selectingWallet"!==t[0]),Hs(c,"class","join relative svelte-obaru3"),Hs(c,"style",l="".concat("connectedWallet"===t[0]?"right: 12px; width: 52px;":"right: 10px; width: 54px;")),Gs(c,"active","connectedWallet"===t[0]),Hs(h,"style","right: 16px;"),Hs(h,"class","indicator relative svelte-obaru3"),Gs(h,"on","connectedWallet"===t[0]),Hs(e,"class","indicators flex items-center svelte-obaru3")},m:function(t,o){Ts(t,e,o),Is(e,r),Is(e,n),Is(e,i),Is(e,a),Is(e,s),Is(e,u),Is(e,c),Is(e,f),Is(e,h)},p:function(t,e){1&e&&o!==(o="".concat("selectingWallet"!==t[0]?"right: 4px; width: 52px;":"right: 2px; width: 54px;"))&&Hs(i,"style",o),1&e&&Gs(i,"active","selectingWallet"!==t[0]),1&e&&Gs(s,"on","selectingWallet"!==t[0]),1&e&&l!==(l="".concat("connectedWallet"===t[0]?"right: 12px; width: 52px;":"right: 10px; width: 54px;"))&&Hs(c,"style",l),1&e&&Gs(c,"active","connectedWallet"===t[0]),1&e&&Gs(h,"on","connectedWallet"===t[0])},d:function(t){t&&Rs(e)}}}function Zh(t){var e,r,n,i,o,a,s,u,c,l,f,h;return{c:function(){e=Ls("div"),r=Ls("div"),n=js(),i=Ls("div"),a=js(),s=Ls("div"),u=js(),c=Ls("div"),f=js(),h=Ls("div"),Hs(r,"class","indicator relative svelte-obaru3"),Gs(r,"on",!0),Hs(i,"class","join relative svelte-obaru3"),Hs(i,"style",o="right: 2px; ".concat("selectingWallet"!==t[0]?"width: 78px;":"width: 82px;")),Gs(i,"active","selectingWallet"!==t[0]),Hs(s,"class","indicator relative svelte-obaru3"),Hs(s,"style","right: 4px;"),Gs(s,"on","selectingWallet"!==t[0]),Hs(c,"class","join relative svelte-obaru3"),Hs(c,"style",l="right: 6px; ".concat("connectedWallet"===t[0]?"width: 74px;":"width: 81px;")),Gs(c,"active","connectedWallet"===t[0]),Hs(h,"style","right: 8px;"),Hs(h,"class","indicator relative svelte-obaru3"),Gs(h,"on","connectedWallet"===t[0]),Hs(e,"class","indicators flex items-center svelte-obaru3")},m:function(t,o){Ts(t,e,o),Is(e,r),Is(e,n),Is(e,i),Is(e,a),Is(e,s),Is(e,u),Is(e,c),Is(e,f),Is(e,h)},p:function(t,e){1&e&&o!==(o="right: 2px; ".concat("selectingWallet"!==t[0]?"width: 78px;":"width: 82px;"))&&Hs(i,"style",o),1&e&&Gs(i,"active","selectingWallet"!==t[0]),1&e&&Gs(s,"on","selectingWallet"!==t[0]),1&e&&l!==(l="right: 6px; ".concat("connectedWallet"===t[0]?"width: 74px;":"width: 81px;"))&&Hs(c,"style",l),1&e&&Gs(c,"active","connectedWallet"===t[0]),1&e&&Gs(h,"on","connectedWallet"===t[0])},d:function(t){t&&Rs(e)}}}function jh(t){var e,r,n,i,o,a,s,u,l,f,h,d,p,v,m,g=t[3]("connect.".concat(t[0],".sidebar.subheading"),{default:t[5]})+"",y=t[3]("connect.".concat(t[0],".sidebar.paragraph"),{values:{app:t[2]&&t[2].name||"This App"},default:t[6]})+"";pu(t[9]);var b=t[1]>=Za&&Nh(t),w=!t[4].removeIDontHaveAWalletInfoLink&&function(t){var e,r,n,i,o=t[3]("connect.selectingWallet.sidebar.IDontHaveAWallet",{default:ml.connect.selectingWallet.sidebar.IDontHaveAWallet})+"";return{c:function(){e=Ls("a"),r=Zs(o),n=js(),Hs(i=Ls("div"),"class","info-icon svelte-obaru3"),Hs(e,"href",t[4].iDontHaveAWalletLink||"https://ethereum.org/en/wallets/find-wallet/#main-content"),Hs(e,"target","_blank"),Hs(e,"rel","noreferrer noopener"),Hs(e,"class","no-link svelte-obaru3")},m:function(t,o){Ts(t,e,o),Is(e,r),Is(e,n),Is(e,i),i.innerHTML=fa},p:function(t,e){8&e&&o!==(o=t[3]("connect.selectingWallet.sidebar.IDontHaveAWallet",{default:ml.connect.selectingWallet.sidebar.IDontHaveAWallet})+"")&&zs(r,o)},d:function(t){t&&Rs(e)}}}(t),_=t[1]<Za&&Lh(t),x=t[1]>=Za&&Zh(t);return{c:function(){e=Ls("div"),r=Ls("div"),b&&b.c(),n=js(),i=Ls("div"),o=Zs(g),a=js(),s=Ls("div"),u=Zs(y),l=js(),w&&w.c(),f=js(),_&&_.c(),h=js(),x&&x.c(),d=js(),p=Ls("div"),Hs(i,"class","subheading svelte-obaru3"),Hs(s,"class","description svelte-obaru3"),Hs(r,"class","inner-container svelte-obaru3"),Hs(e,"class","sidebar svelte-obaru3")}
2,m:function(c,g){Ts(c,e,g),Is(e,r),b&&b.m(r,null),Is(r,n),Is(r,i),Is(i,o),Is(r,a),Is(r,s),Is(s,u),Is(r,l),w&&w.m(r,null),Is(r,f),_&&_.m(r,null),Is(e,h),x&&x.m(e,null),Is(e,d),Is(e,p),p.innerHTML=aa,v||(m=Us(window,"resize",t[9]),v=!0)},p:function(t,i){var a=(0,c.Z)(i,1)[0];t[1]>=Za?b?b.p(t,a):((b=Nh(t)).c(),b.m(r,n)):b&&(b.d(1),b=null),9&a&&g!==(g=t[3]("connect.".concat(t[0],".sidebar.subheading"),{default:t[5]})+"")&&zs(o,g),13&a&&y!==(y=t[3]("connect.".concat(t[0],".sidebar.paragraph"),{values:{app:t[2]&&t[2].name||"This App"},default:t[6]})+"")&&zs(u,y),t[4].removeIDontHaveAWalletInfoLink||w.p(t,a),t[1]<Za?_?_.p(t,a):((_=Lh(t)).c(),_.m(r,null)):_&&(_.d(1),_=null),t[1]>=Za?x?x.p(t,a):((x=Zh(t)).c(),x.m(e,d)):x&&(x.d(1),x=null)},i:os,o:os,d:function(t){t&&Rs(e),b&&b.d(),w&&w.d(),_&&_.d(),x&&x.d(),v=!1,m()}}}function Fh(t,e,r){var n,i;ps(t,et._,(function(t){return r(3,i=t)}));var o,a=e.step,s=is.get().connect,u=ml.connect[a].sidebar,c=u.subheading,l=u.paragraph,f=u.heading,h=is.select("appMetadata").pipe((0,D.O)(is.get().appMetadata),(0,H.d)(1));return ps(t,h,(function(t){return r(2,n=t)})),t.$$set=function(t){"step"in t&&r(0,a=t.step)},[a,o,n,i,s,c,l,f,h,function(){r(1,o=window.innerWidth)}]}var Uh=function(t){(0,a.Z)(r,t);var e=(0,s.Z)(r);function r(t){var n;return(0,l.Z)(this,r),n=e.call(this),$u((0,o.Z)(n),t,Fh,jh,hs,{step:0},Ph),n}return(0,f.Z)(r)}(qu);function Dh(t){Ps(t,"svelte-b3j15j",".container.svelte-b3j15j{--background-color:var(\n      --onboard-main-scroll-container-background,\n      var(--w3o-background-color)\n    );--foreground-color:var(--w3o-foreground-color);--text-color:var(--onboard-connect-text-color, var(--w3o-text-color));--border-color:var(--w3o-border-color, var(--gray-200));--action-color:var(--w3o-action-color, var(--primary-500));font-family:var(--onboard-font-family-normal, var(--font-family-normal));font-size:var(--onboard-font-size-5, 1rem);background:var(--background-color);color:var(--text-color);border-color:var(--border-color);line-height:24px;overflow:hidden;position:relative;display:flex;height:min-content;flex-flow:column-reverse}.content.svelte-b3j15j{width:var(--onboard-connect-content-width, 100%)}.header.svelte-b3j15j{display:flex;padding:1rem;border-bottom:1px solid transparent;background:var(--onboard-connect-header-background);color:var(--onboard-connect-header-color);border-color:var(--border-color)}.header-heading.svelte-b3j15j{line-height:1rem}.button-container.svelte-b3j15j{right:0.5rem;top:0.5rem}.mobile-header.svelte-b3j15j{display:flex;gap:0.5rem;height:4.5rem;padding:1rem;border-bottom:1px solid;border-color:var(--border-color)}.mobile-subheader.svelte-b3j15j{opacity:0.6;font-size:0.875rem;font-weight:400;line-height:1rem;margin-top:0.25rem}.icon-container.svelte-b3j15j{display:flex;flex:0 0 auto;height:2.5rem;width:2.5rem;min-width:2.5rem;justify-content:center;align-items:center}.disabled.svelte-b3j15j{opacity:0.2;pointer-events:none;overflow:hidden}.icon-container svg{display:block;height:100%;width:auto}.w-full.svelte-b3j15j{width:100%}.scroll-container.svelte-b3j15j{overflow-y:auto;transition:opacity 250ms ease-in-out;scrollbar-width:none}.scroll-container.svelte-b3j15j::-webkit-scrollbar{display:none}.mobile-safari.svelte-b3j15j{padding-bottom:80px}@media all and (min-width: 768px){.container.svelte-b3j15j{margin:0;flex-flow:row;height:var(--onboard-connect-content-height, 440px)}.content.svelte-b3j15j{width:var(--onboard-connect-content-width, 488px)}.mobile-subheader.svelte-b3j15j{display:none}.icon-container.svelte-b3j15j{display:none}}")}function Hh(t){var e,r;return e=new hf({props:{close:!t[16].disableClose&&t[20],$$slots:{default:[td]},$$scope:{ctx:t}}}),{c:function(){Uu(e.$$.fragment)},m:function(t,n){Du(e,t,n),r=!0},p:function(t,r){var n={};32766&r[0]|32&r[1]&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i:function(t){r||(Su(e.$$.fragment,t),r=!0)},o:function(t){Iu(e.$$.fragment,t),r=!1},d:function(t){Hu(e,t)}}}function zh(t){var e,r,n,i,o,a=t[14]("connect.".concat(t[5],".header"),{default:ml.connect[t[5]].header,values:{connectionRejected:t[1],wallet:t[3]&&t[3].label}})+"",s=("selectingWallet"===t[5]?"(".concat(t[12],")"):"")+"";return{c:function(){e=Ls("div"),r=Ls("div"),n=Zs(a),i=js(),o=Zs(s),Hs(r,"class","header-heading svelte-b3j15j"),Hs(e,"class","header relative flex items-center svelte-b3j15j")},m:function(t,a){Ts(t,e,a),Is(e,r),Is(r,n),Is(r,i),Is(r,o)},p:function(t,e){16426&e[0]&&a!==(a=t[14]("connect.".concat(t[5],".header"),{default:ml.connect[t[5]].header,values:{connectionRejected:t[1],wallet:t[3]&&t[3].label}})+"")&&zs(n,a),4128&e[0]&&s!==(s=("selectingWallet"===t[5]?"(".concat(t[12],")"):"")+"")&&zs(o,s)},d:function(t){t&&Rs(e)}}}function $h(t){var e,r,n,i,o,a,s,u,c,l=t[14]("connectingWallet"===t[5]&&t[3]?"connect.".concat(t[5],".header"):"connect.".concat(t[5],".sidebar.subheading"),{default:"connectingWallet"===t[5]&&t[3]?ml.connect[t[5]].header:ml.connect[t[5]].sidebar.subheading,values:{connectionRejected:t[1],wallet:t[3]&&t[3].label}})+"",f=("selectingWallet"===t[5]?"".concat(t[12]," available wallets"):"1 account selected")+"";function h(t,e){return t[13]&&t[13].icon?Gh:qh}var d=h(t),p=d(t);return{c:function(){e=Ls("div"),r=Ls("div"),p.c(),n=js(),i=Ls("div"),o=Ls("div"),a=Zs(l),s=js(),u=Ls("div"),c=Zs(f),Hs(r,"class","icon-container svelte-b3j15j"),Hs(o,"class","header-heading svelte-b3j15j"),Hs(u,"class","mobile-subheader svelte-b3j15j"),Hs(i,"class","flex flex-column justify-center w-full svelte-b3j15j"),Hs(e,"class","mobile-header svelte-b3j15j")},m:function(t,l){Ts(t,e,l),Is(e,r),p.m(r,null),Is(e,n),Is(e,i),Is(i,o),Is(o,a),Is(i,s),Is(i,u),Is(u,c)},p:function(t,e){d===(d=h(t))&&p?p.p(t,e):(p.d(1),(p=d(t))&&(p.c(),p.m(r,null))),16426&e[0]&&l!==(l=t[14]("connectingWallet"===t[5]&&t[3]?"connect.".concat(t[5],".header"):"connect.".concat(t[5],".sidebar.subheading"),{default:"connectingWallet"===t[5]&&t[3]?ml.connect[t[5]].header:ml.connect[t[5]].sidebar.subheading,values:{connectionRejected:t[1],wallet:t[3]&&t[3].label}})+"")&&zs(a,l),4128&e[0]&&f!==(f=("selectingWallet"===t[5]?"".concat(t[12]," available wallets"):"1 account selected")+"")&&zs(c,f)},d:function(t){t&&Rs(e),p.d()}}}function qh(t){var e,r;return{c:function(){e=new Ws(!1),r=Fs(),e.a=r},m:function(t,n){e.m(oa,t,n),Ts(t,r,n)},p:os,d:function(t){t&&Rs(r),t&&e.d()}}}function Gh(t){var e,r;function n(t,r){return 8192&r[0]&&(e=null),null==e&&(e=!!va(t[13].icon)),e?Vh:Wh}var i=n(t,[-1,-1]),o=i(t);return{c:function(){o.c(),r=Fs()},m:function(t,e){o.m(t,e),Ts(t,r,e)},p:function(t,e){i===(i=n(t,e))&&o?o.p(t,e):(o.d(1),(o=i(t))&&(o.c(),o.m(r.parentNode,r)))},d:function(t){o.d(t),t&&Rs(r)}}}function Wh(t){var e,r;return{c:function(){ds((e=Ls("img")).src,r=t[13].icon)||Hs(e,"src",r),Hs(e,"alt","logo")},m:function(t,r){Ts(t,e,r)},p:function(t,n){8192&n[0]&&!ds(e.src,r=t[13].icon)&&Hs(e,"src",r)},d:function(t){t&&Rs(e)}}}function Vh(t){var e,r,n=t[13].icon+"";return{c:function(){e=new Ws(!1),r=Fs(),e.a=r},m:function(t,i){e.m(n,t,i),Ts(t,r,i)},p:function(t,r){8192&r[0]&&n!==(n=t[13].icon+"")&&e.p(n)},d:function(t){t&&Rs(r),t&&e.d()}}}function Kh(t){var e,r,n,i,o=[Xh,Yh],a=[];function s(t,e){return t[2].length?0:1}return e=s(t),r=a[e]=o[e](t),{c:function(){r.c(),n=Fs()},m:function(t,r){a[e].m(t,r),Ts(t,n,r),i=!0},p:function(t,i){var u=e;(e=s(t))===u?a[e].p(t,i):(Mu(),Iu(a[u],1,1,(function(){a[u]=null})),ku(),(r=a[e])?r.p(t,i):(r=a[e]=o[e](t)).c(),Su(r,1),r.m(n.parentNode,n))},i:function(t){i||(Su(r),i=!0)},o:function(t){Iu(r),i=!1},d:function(t){a[e].d(t),t&&Rs(n)}}}function Yh(t){var e,r;return e=new dh({}),{c:function(){Uu(e.$$.fragment)},m:function(t,n){Du(e,t,n),r=!0},p:os,i:function(t){r||(Su(e.$$.fragment,t),r=!0)},o:function(t){Iu(e.$$.fragment,t),r=!1},d:function(t){Hu(e,t)}}}function Xh(t){var e,r,n,i,o,a;function s(e){t[25](e)}var u={};return void 0!==t[7]&&(u.agreed=t[7]),e=new gf({props:u}),cu.push((function(){return Fu(e,"agreed",s)})),o=new Ih({props:{selectWallet:t[18],wallets:t[2],connectingWalletLabel:t[8],connectingErrorMessage:t[9]}}),{c:function(){Uu(e.$$.fragment),n=js(),i=Ls("div"),Uu(o.$$.fragment),Hs(i,"class","svelte-b3j15j"),Gs(i,"disabled",!t[7])},m:function(t,r){Du(e,t,r),Ts(t,n,r),Ts(t,i,r),Du(o,i,null),a=!0},p:function(t,n){var s={};!r&&128&n[0]&&(r=!0,s.agreed=t[7],vu((function(){return r=!1}))),e.$set(s);var u={};4&n[0]&&(u.wallets=t[2]),256&n[0]&&(u.connectingWalletLabel=t[8]),512&n[0]&&(u.connectingErrorMessage=t[9]),o.$set(u),(!a||128&n[0])&&Gs(i,"disabled",!t[7])},i:function(t){a||(Su(e.$$.fragment,t),Su(o.$$.fragment,t),a=!0)},o:function(t){Iu(e.$$.fragment,t),Iu(o.$$.fragment,t),a=!1},d:function(t){Hu(e,t),t&&Rs(n),t&&Rs(i),Hu(o)}}}function Jh(t){var e,r;return e=new ih({props:{connectWallet:t[21],connectionRejected:t[1],previousConnectionRequest:t[6],setStep:t[22],deselectWallet:t[19],selectedWallet:t[3]}}),{c:function(){Uu(e.$$.fragment)},m:function(t,n){Du(e,t,n),r=!0},p:function(t,r){var n={};2&r[0]&&(n.connectionRejected=t[1]),64&r[0]&&(n.previousConnectionRequest=t[6]),8&r[0]&&(n.selectedWallet=t[3]),e.$set(n)},i:function(t){r||(Su(e.$$.fragment,t),r=!0)},o:function(t){Iu(e.$$.fragment,t),r=!1},d:function(t){Hu(e,t)}}}function Qh(t){var e,r;return e=new Jf({props:{selectedWallet:t[3]}}),{c:function(){Uu(e.$$.fragment)},m:function(t,n){Du(e,t,n),r=!0},p:function(t,r){var n={};8&r[0]&&(n.selectedWallet=t[3]),e.$set(n)},i:function(t){r||(Su(e.$$.fragment,t),r=!0)},o:function(t){Iu(e.$$.fragment,t),r=!1},d:function(t){Hu(e,t)}}}function td(t){var e,r,n,i,o,a,s,u,c,l=t[16].showSidebar&&function(t){var e,r;return e=new Uh({props:{step:t[5]}}),{c:function(){Uu(e.$$.fragment)},m:function(t,n){Du(e,t,n),r=!0},p:function(t,r){var n={};32&r[0]&&(n.step=t[5]),e.$set(n)},i:function(t){r||(Su(e.$$.fragment,t),r=!0)},o:function(t){Iu(e.$$.fragment,t),r=!1},d:function(t){Hu(e,t)}}}(t);function f(t,e){return t[4]<=Za?$h:zh}var h=f(t),d=h(t),p=!t[16].disableClose&&function(t){var e,r,n,i,o;return r=new rf({}),{c:function(){e=Ls("div"),Uu(r.$$.fragment),Hs(e,"class","button-container absolute svelte-b3j15j")},m:function(a,s){Ts(a,e,s),Du(r,e,null),n=!0,i||(o=Us(e,"click",t[20]),i=!0)},p:os,i:function(t){n||(Su(r.$$.fragment,t),n=!0)},o:function(t){Iu(r.$$.fragment,t),n=!1},d:function(t){t&&Rs(e),Hu(r),i=!1,o()}}}
2(t),v=("selectingWallet"===t[5]||t[4]<=Za)&&Kh(t),m=t[11]&&Jh(t),g="connectedWallet"===t[5]&&t[3]&&t[4]>=Za&&Qh(t);return{c:function(){e=Ls("div"),l&&l.c(),r=js(),n=Ls("div"),d.c(),i=js(),p&&p.c(),o=js(),a=Ls("div"),v&&v.c(),s=js(),m&&m.c(),u=js(),g&&g.c(),Hs(a,"class","scroll-container svelte-b3j15j"),Hs(n,"class","content flex flex-column svelte-b3j15j"),Hs(e,"class","container svelte-b3j15j"),Gs(e,"mobile-safari",t[23])},m:function(f,h){Ts(f,e,h),l&&l.m(e,null),Is(e,r),Is(e,n),d.m(n,null),Is(n,i),p&&p.m(n,null),Is(n,o),Is(n,a),v&&v.m(a,null),Is(a,s),m&&m.m(a,null),Is(a,u),g&&g.m(a,null),t[26](a),c=!0},p:function(t,e){t[16].showSidebar&&l.p(t,e),h===(h=f(t))&&d?d.p(t,e):(d.d(1),(d=h(t))&&(d.c(),d.m(n,i))),t[16].disableClose||p.p(t,e),"selectingWallet"===t[5]||t[4]<=Za?v?(v.p(t,e),48&e[0]&&Su(v,1)):((v=Kh(t)).c(),Su(v,1),v.m(a,s)):v&&(Mu(),Iu(v,1,1,(function(){v=null})),ku()),t[11]?m?(m.p(t,e),2048&e[0]&&Su(m,1)):((m=Jh(t)).c(),Su(m,1),m.m(a,u)):m&&(Mu(),Iu(m,1,1,(function(){m=null})),ku()),"connectedWallet"===t[5]&&t[3]&&t[4]>=Za?g?(g.p(t,e),56&e[0]&&Su(g,1)):((g=Qh(t)).c(),Su(g,1),g.m(a,null)):g&&(Mu(),Iu(g,1,1,(function(){g=null})),ku())},i:function(t){c||(Su(l),Su(p),Su(v),Su(m),Su(g),c=!0)},o:function(t){Iu(l),Iu(p),Iu(v),Iu(m),Iu(g),c=!1},d:function(r){r&&Rs(e),l&&l.d(),d.d(),p&&p.d(),v&&v.d(),m&&m.d(),g&&g.d(),t[26](null)}}}function ed(t){var e,r,n,i;pu(t[24]);var o=!t[0].disableModals&&Hh(t);return{c:function(){o&&o.c(),e=Fs()},m:function(a,s){o&&o.m(a,s),Ts(a,e,s),r=!0,n||(i=Us(window,"resize",t[24]),n=!0)},p:function(t,r){t[0].disableModals?o&&(Mu(),Iu(o,1,1,(function(){o=null})),ku()):o?(o.p(t,r),1&r[0]&&Su(o,1)):((o=Hh(t)).c(),Su(o,1),o.m(e.parentNode,e))},i:function(t){r||(Su(o),r=!0)},o:function(t){Iu(o),r=!1},d:function(t){o&&o.d(t),t&&Rs(e),n=!1,i()}}}function rd(t,e,r){var n,i,o,a,s;ps(t,et._,(function(t){return r(14,s=t)}));var l=e.autoSelect,f=is.select("appMetadata").pipe((0,D.O)(is.get().appMetadata),(0,H.d)(1));ps(t,f,(function(t){return r(13,o=t)}));var p,y,b,w,_,x,E=Ta,A=E.unstoppableResolution,M=E.device,k=is.get(),S=k.walletModules,I=k.connect,P=new g.x,N=!1,C=!1,O=[],T=new m.X("selectingWallet");function R(t){return B.apply(this,arguments)}function B(){return B=(0,v.Z)((0,u.Z)().mark((function t(e){var n,i,a,s,c,l,f,h,d,v,m;return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.label,i=e.icon,a=e.getInterface,r(8,b=n),t.prev=2,s=is.get().wallets.find((function(t){return t.label===n})),!s){t.next=9;break}return Qc(s),setTimeout((function(){return Y("connectedWallet")}),1),r(3,p=s),t.abrupt("return");case 9:return c=is.get(),l=c.chains,t.next=12,a({chains:l,BigNumber:Jo.O$,EventEmitter:ta,appMetadata:o});case 12:return f=t.sent,h=f.provider,d=f.instance,t.next=17,i;case 17:v=t.sent,r(3,p={label:n,icon:v,provider:h,instance:d,accounts:[],chains:[{namespace:"evm",id:"0x1"}]}),r(9,w=""),X(),setTimeout((function(){return Y("connectingWallet")}),1),t.next=30;break;case 24:t.prev=24,t.t0=t.catch(2),m=t.t0.message,r(9,w=m),r(8,b=""),X();case 30:case"end":return t.stop()}}),t,null,[[2,24]])}))),B.apply(this,arguments)}function Z(t){r(3,p=(0,d.Z)((0,d.Z)({},p),t))}function j(){return j=(0,v.Z)((0,u.Z)().mark((function t(e){var r,n,i,o;return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=e.getIcon,n=e.getInterface,i=e.label,o=r(),R({label:i,icon:o,getInterface:n});case 3:case"end":return t.stop()}}),t)}))),j.apply(this,arguments)}function U(){return(U=(0,v.Z)((0,u.Z)().mark((function t(){return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r(2,O=S.map((function(t){var e=t.getIcon,r=t.getInterface;return{label:t.label,icon:e(),getInterface:r}})));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function G(){return V.apply(this,arguments)}function V(){return(V=(0,v.Z)((0,u.Z)().mark((function t(){var e,n,i,o,a,s,f,v,m,g,y,b,w;return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r(1,N=!1),n=(e=p).provider,i=e.label,P.next(),t.prev=3,t.next=6,Promise.race([bl(n),F(P.pipe(q([])))]);case 6:if(o=t.sent,a=(0,c.Z)(o,1),s=a[0]){t.next=11;break}return t.abrupt("return");case 11:if(!is.get().connect.autoConnectLastWallet&&!is.get().connect.autoConnectAllPreviousWallet){t.next=28;break}f=Na(La.LAST_CONNECTED_WALLET),t.prev=13,(v=JSON.parse(f))&&Array.isArray(v)&&(m=v,f=(0,h.Z)(new Set([i].concat((0,h.Z)(m))))),t.next=26;break;case 18:if(t.prev=18,t.t0=t.catch(13),!(t.t0 instanceof SyntaxError&&f&&"string"===typeof f)){t.next=25;break}f=[f],t.next=26;break;case 25:throw new Error(t.t0);case 26:f||(f=[i]),Ca(La.LAST_CONNECTED_WALLET,JSON.stringify(f));case 28:return t.next=30,_l(n);case 30:if(g=t.sent,!is.get().notify.enabled){t.next=36;break}return t.next=34,ql();case 34:if(y=t.sent)try{y.subscribe({id:s,chainId:g,type:"account"})}catch(u){}case 36:b={accounts:[{address:s,ens:null,uns:null,balance:null}],chains:[{namespace:"evm",id:g}]},Qc((0,d.Z)((0,d.Z)({},p),b)),El(n,i),Z(b),Y("connectedWallet"),X(),t.next=59;break;case 44:if(t.prev=44,t.t1=t.catch(3),w=t.t1.code,X(),w!==it.ProviderRpcErrorC
2ode.ACCOUNT_ACCESS_REJECTED){t.next=52;break}return r(1,N=!0),l.disableModals?Vu.next({inProgress:!1}):l.label&&r(0,l.label="",l),t.abrupt("return");case 52:if(w!==it.ProviderRpcErrorCode.ACCOUNT_ACCESS_ALREADY_REQUESTED){t.next=59;break}if(r(6,C=!0),!l.disableModals){t.next=57;break}return Vu.next({inProgress:!1}),t.abrupt("return");case 57:return xl({provider:p.provider,disconnected$:Vu.pipe((0,$.h)((function(t){return!t.inProgress})),q(""))}).pipe(W(1)).subscribe((function(t){(0,c.Z)(t,1)[0]&&G()})),t.abrupt("return");case 59:case"end":return t.stop()}}),t,null,[[3,44],[13,18]])})))).apply(this,arguments)}function K(){return K=(0,v.Z)((0,u.Z)().mark((function t(){var e,r,n,i,o,a,s,l,f,h,d,v,m;return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=(e=p).accounts,n=e.chains,i=is.get().chains,o=(0,c.Z)(n,1),a=o[0],s=i.find((function(t){var e=t.namespace,r=t.id;return e===a.namespace&&r===a.id})),l=r[0].address,f=r[0],h=f.balance,d=f.ens,v=f.uns,m=f.secondaryTokens,null===h&&Il(l,s).then((function(t){nl(p.label,l,{balance:t})})),s&&!m&&Array.isArray(s.secondaryTokens)&&s.secondaryTokens.length&&Dl(p,l,s).then((function(t){nl(p.label,l,{secondaryTokens:t})})),null===d&&pa(a.id)&&Al(l,s).then((function(t){nl(p.label,l,{ens:t})})),null===v&&A&&kl(l,s).then((function(t){nl(p.label,l,{uns:t})})),setTimeout((function(){return Vu.next({inProgress:!1})}),1500);case 11:case"end":return t.stop()}}),t)}))),K.apply(this,arguments)}function Y(t){P.next(),T.next(t)}function X(){x&&x.scrollTo(0,0)}ps(t,T,(function(t){return r(5,a=t)})),Vu.pipe((0,z.x)((function(t,e){return t.autoSelect&&e.autoSelect&&t.autoSelect.disableModals===e.autoSelect.disableModals})),(0,$.h)((function(t){var e=t.autoSelect;return e&&!1===e.disableModals})),L(Qu)).subscribe((function(){p&&G()})),T.pipe(L(Qu)).subscribe((function(t){switch(t){case"selectingWallet":if(l.label){var e=S.find((function(t){return t.label.toLowerCase()===l.label.toLowerCase()}));e?function(t){j.apply(this,arguments)}(e):l.disableModals&&Vu.next({inProgress:!1})}else r(8,b=""),function(){U.apply(this,arguments)}();break;case"connectingWallet":G();break;case"connectedWallet":r(8,b=""),function(){K.apply(this,arguments)}()}}));var J="mobile"===M.type&&M.browser.name&&"Safari"===M.browser.name;return t.$$set=function(t){"autoSelect"in t&&r(0,l=t.autoSelect)},t.$$.update=function(){4&t.$$.dirty[0]&&r(12,n=O.length-is.get().wallets.length),58&t.$$.dirty[0]&&r(11,i="connectingWallet"===a&&p&&_>=Za||_<=Za&&N&&"connectingWallet"===a&&p)},[l,N,O,p,_,a,C,y,b,w,x,i,n,o,s,f,I,T,R,function(){r(3,p=null)},function(){Vu.next({inProgress:!1})},G,Y,J,function(){r(4,_=window.innerWidth)},function(t){r(7,y=t)},function(t){cu[t?"unshift":"push"]((function(){r(10,x=t)}))}]}var nd=function(t){(0,a.Z)(r,t);var e=(0,s.Z)(r);function r(t){var n;return(0,l.Z)(this,r),n=e.call(this),$u((0,o.Z)(n),t,rd,ed,hs,{autoSelect:0},Dh,[-1,-1]),n}return(0,f.Z)(r)}(qu);function id(t){Ps(t,"svelte-12yam41",".container.svelte-12yam41{padding:var(--onboard-spacing-4, var(--spacing-4));font-family:var(--onboard-font-family-normal, var(--font-family-normal));line-height:16px;font-size:var(--onboard-font-size-5, var(--font-size-5))}.close.svelte-12yam41{top:var(--onboard-spacing-5, var(--spacing-5));right:var(--onboard-spacing-5, var(--spacing-5));padding:0.5rem}h4.svelte-12yam41{font-size:var(--onboard-font-size-3, var(--font-size-3));margin:var(--onboard-spacing-4, var(--spacing-4)) 0}p.svelte-12yam41{margin:0 0 var(--onboard-spacing-4, var(--spacing-4)) 0;max-width:488px}")}function od(t){var e,r,n,i,o,a,s,u,c,l,f,h,d,p,v,m=t[0]("modals.switchChain.heading",{default:ml.modals.switchChain.heading})+"",g=t[0]("modals.switchChain.paragraph1",{default:ml.modals.switchChain.paragraph1,values:{app:t[1]&&t[1].name||"This app",nextNetworkName:t[2]}})+"",y=t[0]("modals.switchChain.paragraph2",{default:ml.modals.switchChain.paragraph2})+"";return h=new rf({}),{c:function(){e=Ls("div"),r=Ls("h4"),n=Zs(m),i=js(),o=Ls("p"),a=Zs(g),s=js(),u=Ls("p"),c=Zs(y),l=js(),f=Ls("div"),Uu(h.$$.fragment),Hs(r,"class","svelte-12yam41"),Hs(o,"class","svelte-12yam41"),Hs(u,"class","svelte-12yam41"),Hs(f,"class","close absolute svelte-12yam41"),Hs(e,"class","container relative svelte-12yam41")},m:function(m,g){Ts(m,e,g),Is(e,r),Is(r,n),Is(e,i),Is(e,o),Is(o,a),Is(e,s),Is(e,u),Is(u,c),Is(e,l),Is(e,f),Du(h,f,null),d=!0,p||(v=Us(f,"click",t[3]),p=!0)},p:function(t,e){(!d||1&e)&&m!==(m=t[0]("modals.switchChain.heading",{default:ml.modals.switchChain.heading})+"")&&zs(n,m),(!d||3&e)&&g!==(g=t[0]("modals.switchChain.paragraph1",{default:ml.modals.switchChain.paragraph1,values:{app:t[1]&&t[1].name||"This app",nextNetworkName:t[2]}}
2)+"")&&zs(a,g),(!d||1&e)&&y!==(y=t[0]("modals.switchChain.paragraph2",{default:ml.modals.switchChain.paragraph2})+"")&&zs(c,y)},i:function(t){d||(Su(h.$$.fragment,t),d=!0)},o:function(t){Iu(h.$$.fragment,t),d=!1},d:function(t){t&&Rs(e),Hu(h),p=!1,v()}}}function ad(t){var e,r;return e=new hf({props:{close:t[3],$$slots:{default:[od]},$$scope:{ctx:t}}}),{c:function(){Uu(e.$$.fragment)},m:function(t,n){Du(e,t,n),r=!0},p:function(t,r){var n=(0,c.Z)(r,1)[0],i={};67&n&&(i.$$scope={dirty:n,ctx:t}),e.$set(i)},i:function(t){r||(Su(e.$$.fragment,t),r=!0)},o:function(t){Iu(e.$$.fragment,t),r=!1},d:function(t){Hu(e,t)}}}function sd(t,e,r){var n,i,o;ps(t,Ku,(function(t){return r(5,n=t)})),ps(t,et._,(function(t){return r(0,i=t)}));var a=n.chain.label;var s=state.select("appMetadata").pipe(startWith(state.get().appMetadata),shareReplay(1));return ps(t,s,(function(t){return r(1,o=t)})),[i,o,a,function(){Ku.next(null)},s]}var ud=function(t){(0,a.Z)(r,t);var e=(0,s.Z)(r);function r(t){var n;return(0,l.Z)(this,r),n=e.call(this),$u((0,o.Z)(n),t,sd,ad,hs,{},id),n}return(0,f.Z)(r)}(qu);function cd(t){Ps(t,"svelte-z54y2j",".icon.svelte-z54y2j{border-radius:50px;color:var(--onboard-primary-500, var(--primary-500))}")}function ld(t){var e,r;return{c:function(){Hs(e=Ls("div"),"class","icon flex svelte-z54y2j"),Hs(e,"style",r="width: ".concat(t[0],"px; height: ").concat(t[0],"px;"))},m:function(t,r){Ts(t,e,r),e.innerHTML=fa},p:function(t,n){1&(0,c.Z)(n,1)[0]&&r!==(r="width: ".concat(t[0],"px; height: ").concat(t[0],"px;"))&&Hs(e,"style",r)},i:os,o:os,d:function(t){t&&Rs(e)}}}function fd(t,e,r){var n=e.size,i=void 0===n?20:n;return t.$$set=function(t){"size"in t&&r(0,i=t.size)},[i]}var hd=function(t){(0,a.Z)(r,t);var e=(0,s.Z)(r);function r(t){var n;return(0,l.Z)(this,r),n=e.call(this),$u((0,o.Z)(n),t,fd,ld,hs,{size:0},cd),n}return(0,f.Z)(r)}(qu);function dd(t){Ps(t,"svelte-20hjq1",".content.svelte-20hjq1{padding:1rem;width:300px;font-family:var(--onboard-font-family-normal, var(--font-family-normal));font-size:var(--onboard-font-size-5, var(--font-size-5));line-height:24px;background:var(\n      --onboard-action-required-modal-background,\n      var(--onboard-white, var(--white))\n    )}.icon-container.svelte-20hjq1{width:3rem;height:3rem;background:var(--onboard-primary-100, var(--primary-100));border-radius:24px}h4.svelte-20hjq1{margin:1.5rem 0 0.5rem 0;font-weight:600}.action-required-heading.svelte-20hjq1,.action-required-info.svelte-20hjq1{color:var(\n      --onboard-action-required-text-color,\n      var(--onboard-black, inherit)\n    )}.action-required-btn.svelte-20hjq1{color:var(\n      --onboard-action-required-btn-text-color,\n      var(--onboard-black, inherit)\n    )}p.svelte-20hjq1{margin:0;font-weight:400}a.svelte-20hjq1{font-weight:600}button.svelte-20hjq1{margin-top:1.5rem;font-weight:600}")}function pd(t){var e,r,n=t[1]("modals.actionRequired.linkText",{values:{wallet:t[0]}})+"";return{c:function(){e=Ls("a"),r=Zs(n),Hs(e,"href","https://metamask.zendesk.com/hc/en-us/articles/360061346311-Switching-accounts-in-MetaMask"),Hs(e,"target","_blank"),Hs(e,"rel","noreferrer noopener"),Hs(e,"class","svelte-20hjq1")},m:function(t,n){Ts(t,e,n),Is(e,r)},p:function(t,e){3&e&&n!==(n=t[1]("modals.actionRequired.linkText",{values:{wallet:t[0]}})+"")&&zs(r,n)},d:function(t){t&&Rs(e)}}}function vd(t){var e,r,n,i,o,a,s,u,c,l,f,h,d,p,v,m,g=t[1]("modals.actionRequired.heading",{values:{wallet:t[0]}})+"",y=t[1]("modals.actionRequired.paragraph",{values:{wallet:t[0]}})+"",b=t[1]("modals.actionRequired.buttonText")+"";n=new hd({});var w="MetaMask"===t[0]&&pd(t);return{c:function(){e=Ls("div"),r=Ls("div"),Uu(n.$$.fragment),i=js(),o=Ls("h4"),a=Zs(g),s=js(),u=Ls("p"),c=Zs(y),l=js(),w&&w.c(),f=js(),h=Ls("button"),d=Zs(b),Hs(r,"class","icon-container flex justify-center items-center svelte-20hjq1"),Hs(o,"class","action-required-heading svelte-20hjq1"),Hs(u,"class","action-required-info svelte-20hjq1"),Hs(h,"class","button-neutral-solid rounded action-required-btn svelte-20hjq1"),Hs(e,"class","content svelte-20hjq1")},m:function(g,y){Ts(g,e,y),Is(e,r),Du(n,r,null),Is(e,i),Is(e,o),Is(o,a),Is(e,s),Is(e,u),Is(u,c),Is(u,l),w&&w.m(u,null),Is(e,f),Is(e,h),Is(h,d),p=!0,v||(m=Us(h,"click",t[2]),v=!0)},p:function(t,e){(!p||3&e)&&g!==(g=t[1]("modals.actionRequired.heading",{values:{wallet:t[0]}}
2)+"")&&zs(a,g),(!p||3&e)&&y!==(y=t[1]("modals.actionRequired.paragraph",{values:{wallet:t[0]}})+"")&&zs(c,y),"MetaMask"===t[0]?w?w.p(t,e):((w=pd(t)).c(),w.m(u,null)):w&&(w.d(1),w=null),(!p||2&e)&&b!==(b=t[1]("modals.actionRequired.buttonText")+"")&&zs(d,b)},i:function(t){p||(Su(n.$$.fragment,t),p=!0)},o:function(t){Iu(n.$$.fragment,t),p=!1},d:function(t){t&&Rs(e),Hu(n),w&&w.d(),v=!1,m()}}}function md(t){var e,r;return e=new hf({props:{close:t[2],$$slots:{default:[vd]},$$scope:{ctx:t}}}),{c:function(){Uu(e.$$.fragment)},m:function(t,n){Du(e,t,n),r=!0},p:function(t,r){var n=(0,c.Z)(r,1)[0],i={};11&n&&(i.$$scope={dirty:n,ctx:t}),e.$set(i)},i:function(t){r||(Su(e.$$.fragment,t),r=!0)},o:function(t){Iu(e.$$.fragment,t),r=!1},d:function(t){Hu(e,t)}}}function gd(t,e,r){var n;ps(t,et._,(function(t){return r(1,n=t)}));var i=e.wallet;return t.$$set=function(t){"wallet"in t&&r(0,i=t.wallet)},[i,n,function(){Vu.next({inProgress:!1,actionRequired:""})}]}var yd=function(t){(0,a.Z)(r,t);var e=(0,s.Z)(r);function r(t){var n;return(0,l.Z)(this,r),n=e.call(this),$u((0,o.Z)(n),t,gd,md,hs,{wallet:0},dd),n}return(0,f.Z)(r)}(qu);
2function bd(t){Ps(t,"svelte-g9s19b",".flex{display:flex}.inline-flex{display:inline-flex}.flex-column{flex-direction:column}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-center{justify-content:center}.justify-start{justify-content:flex-start}.justify-between{justify-content:space-between}.justify-end{justify-content:flex-end}.justify-around{justify-content:space-around}.relative{position:relative}.absolute{position:absolute}.fixed{position:fixed}.pointer{cursor:pointer}.shadow-1{box-shadow:var(--onboard-shadow-1, var(--shadow-1))}.w-100{width:100%}*{box-sizing:border-box}input{background:var(--onboard-white, var(--white))}input{width:100%;padding:0.5rem 1rem;outline:2px solid var(--onboard-gray-200, var(--gray-200));border:none;border-radius:8px;font-size:1rem;line-height:1.5;color:var(--onboard-gray-600, var(--gray-600));transition:all 200ms ease-in-out}input[type='checkbox']{-webkit-appearance:none;width:auto;background:var(--onboard-white, var(--white));outline:1px solid var(--onboard-gray-300, var(--gray-300));border:none;padding:0.5em;border-radius:3px;display:flex;justify-content:center;align-items:center;position:relative;cursor:pointer}input[type='checkbox']:hover{border-color:var(\n      --onboard-checkbox-background,\n      var(--onboard-primary-500, var(--primary-500))\n    )}input[type='checkbox']:checked{background:var(\n      --onboard-checkbox-background,\n      var(--onboard-primary-500, var(--primary-500))\n    );border-color:var(\n      --onboard-checkbox-background,\n      var(--onboard-primary-500, var(--primary-500))\n    );color:var(--onboard-checkbox-color, var(--onboard-white, var(--white)))}input[type='checkbox']:checked:after{content:url(\"data:image/svg+xml,%3Csvg width='0.885em' height='0.6em' viewBox='0 0 14 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0 6L5 11L14 2L12.59 0.58L5 8.17L1.41 4.59L0 6Z' fill='white'/%3E%3C/svg%3E\");font-size:12px;position:absolute;color:var(--onboard-checkbox-color, var(--onboard-white, var(--white)))}input:hover{border-color:var(\n      --onboard-checkbox-color,\n      var(--onboard-white, var(--white))\n    )}input:focus{border-color:var(--onboard-primary-500, var(--primary-500));box-shadow:0 0 1px 1px\n      var(\n        --onboard-checkbox-background,\n        var(--onboard-primary-500, var(--primary-500))\n      );box-shadow:0 0 0 1px -moz-mac-focusring}input:disabled, textarea:disabled, select:disabled{background:var(--gray-100)}input::-moz-focus-inner{outline:0;padding:0;margin-top:-2px;margin-bottom:-2px}a{color:var(\n      --onboard-link-color,\n      var(--onboard-primary-500, var(--primary-500))\n    );text-decoration:none}a:hover{text-decoration:underline}button{display:flex;align-items:center;justify-content:center;padding:calc(var(--onboard-spacing-4, var(--spacing-4)) - 1px);border-radius:24px;cursor:pointer;font:inherit;border:none;transition:background-color 150ms ease-in-out, color 150ms ease-in-out}.onboard-button-primary{background:var(--onboard-white, var(--white));padding:calc(var(--onboard-spacing-5, var(--spacing-5)) - 1px)\n      calc(var(--onboard-spacing-4, var(--spacing-4)) - 1px);color:var(--onboard-gray-500, var(--gray-500));font-size:var(--onboard-font-size-6, var(--font-size-6));line-height:var(--onboard-font-line-height-3, var(--font-line-height-3));border:1px solid var(--onboard-gray-500, var(--gray-500));font-weight:600}.button-neutral-solid{width:100%;border-radius:8px;background:var(--onboard-gray-500, var(--gray-500));color:var(--onboard-white, var(--white));line-height:var(--onboard-font-line-height-3, var(--font-line-height-3))}.button-neutral-solid-b{width:100%;background:var(--onboard-gray-100, var(--gray-100));color:var(--onboard-gray-500, var(--gray-500));line-height:var(--onboard-font-line-height-3, var(--font-line-height-3))}button.rounded{border-radius:24px}.button-neutral-solid:hover{background:var(--onboard-gray-700, var(--gray-700))}.button-neutral-solid-b:hover{background:var(--onboard-gray-200, var(--gray-200))}.button-neutral-solid:active{color:var(--onboard-gray-300, var(--gray-300))}.button-neutral-solid-b:active{color:var(--onboard-gray-600, var(--gray-600));background:var(--onboard-gray-300, var(--gray-300))}.container.svelte-g9s19b{padding:16px;font-family:var(--onboard-font-family-normal, var(--font-family-normal));pointer-events:none;touch-action:none;width:100%}.z-indexed.svelte-g9s19b{z-index:var(--account-center-z-index)}@media all and (min-width: 428px){.container.svelte-g9s19b{max-width:348px}}")}function wd(t){var e,r;return e=new nd({props:{autoSelect:t[8].autoSelect}}),{c:function(){Uu(e.$$.fragment)},m:function(t,n){Du(e,t,n),r=!0},p:function(t,r){var n={};256&r&&(n.autoSelect=t[8].autoSelect),e.$set(n)},i:function(t){r||(Su(e.$$.fragment,t),r=!0)},o:function(t){Iu(e.$$.fragment,t),r=!1},d:function(t){Hu(e,t)}}}function _d(t){var e,r;
2return e=new yd({props:{wallet:t[8].actionRequired}}),{c:function(){Uu(e.$$.fragment)},m:function(t,n){Du(e,t,n),r=!0},p:function(t,r){var n={};256&r&&(n.wallet=t[8].actionRequired),e.$set(n)},i:function(t){r||(Su(e.$$.fragment,t),r=!0)},o:function(t){Iu(e.$$.fragment,t),r=!1},d:function(t){Hu(e,t)}}}function xd(t){var e,r;return e=new ud({}),{c:function(){Uu(e.$$.fragment)},m:function(t,n){Du(e,t,n),r=!0},i:function(t){r||(Su(e.$$.fragment,t),r=!0)},o:function(t){Iu(e.$$.fragment,t),r=!1},d:function(t){Hu(e,t)}}}function Ed(t){var e;return{c:function(){Hs(e=Ls("div"),"class","container flex flex-column fixed z-indexed svelte-g9s19b"),Hs(e,"style","top: 0; right: 0; "+("mobile"===t[11].type?"padding-bottom: 0;":"")),Hs(e,"id","w3o-transaction-preview-container")},m:function(t,r){Ts(t,e,r)},p:os,d:function(t){t&&Rs(e)}}}function Ad(t){var e,r,n,i,o,a,s,u,c=t[3].position.includes("bottom")&&t[1].position.includes("bottom")&&t[7],l=t[1].position.includes("bottom"),f=t[1].position.includes("top"),h=t[3].position.includes("top")&&t[1].position.includes("top")&&t[7],d=c&&Md(t),p=l&&Pd(),v={ctx:t,current:null,token:null,hasCatch:!1,pending:Od,then:Cd,catch:Nd,value:23,blocks:[,,,]};Tu(t[16],v);var m=f&&Td(),g=h&&Rd(t);return{c:function(){e=Ls("div"),d&&d.c(),r=js(),p&&p.c(),n=js(),i=Ls("div"),v.block.c(),o=js(),m&&m.c(),a=js(),g&&g.c(),Hs(i,"id","account-center-with-notify"),Hs(e,"class","container flex flex-column fixed z-indexed svelte-g9s19b"),Hs(e,"style",s=t[15](Jd)[t[1].position]+"; "+("mobile"===t[11].type&&t[1].position.includes("top")?"padding-bottom: 0;":"mobile"===t[11].type&&t[1].position.includes("bottom")?"padding-top:0;":""))},m:function(t,s){Ts(t,e,s),d&&d.m(e,null),Is(e,r),p&&p.m(e,null),Is(e,n),Is(e,i),v.block.m(i,v.anchor=null),v.mount=function(){return i},v.anchor=null,Is(e,o),m&&m.m(e,null),Is(e,a),g&&g.m(e,null),u=!0},p:function(i,o){t=i,138&o&&(c=t[3].position.includes("bottom")&&t[1].position.includes("bottom")&&t[7]),c?d?(d.p(t,o),138&o&&Su(d,1)):((d=Md(t)).c(),Su(d,1),d.m(e,r)):d&&(Mu(),Iu(d,1,1,(function(){d=null})),ku()),2&o&&(l=t[1].position.includes("bottom")),l?p||((p=Pd()).c(),p.m(e,n)):p&&(p.d(1),p=null),Ru(v,t,o),2&o&&(f=t[1].position.includes("top")),f?m||((m=Td()).c(),m.m(e,a)):m&&(m.d(1),m=null),138&o&&(h=t[3].position.includes("top")&&t[1].position.includes("top")&&t[7]),h?g?(g.p(t,o),138&o&&Su(g,1)):((g=Rd(t)).c(),Su(g,1),g.m(e,null)):g&&(Mu(),Iu(g,1,1,(function(){g=null})),ku()),(!u||2&o&&s!==(s=t[15](Jd)[t[1].position]+"; "+("mobile"===t[11].type&&t[1].position.includes("top")?"padding-bottom: 0;":"mobile"===t[11].type&&t[1].position.includes("bottom")?"padding-top:0;":"")))&&Hs(e,"style",s)},i:function(t){u||(Su(d),Su(v.block),Su(g),u=!0)},o:function(t){Iu(d);for(var e=0;e<3;e+=1){Iu(v.blocks[e])}Iu(g),u=!1},d:function(t){t&&Rs(e),d&&d.d(),p&&p.d(),v.block.d(),v.token=null,v=null,m&&m.d(),g&&g.d()}}}function Md(t){var e,r,n={ctx:t,current:null,token:null,hasCatch:!1,pending:Id,then:Sd,catch:kd,value:22,blocks:[,,,]};return Tu(t[17],n),{c:function(){e=Fs(),n.block.c()},m:function(t,i){Ts(t,e,i),n.block.m(t,n.anchor=i),n.mount=function(){return e.parentNode},n.anchor=e,r=!0},p:function(e,r){Ru(n,t=e,r)},i:function(t){r||(Su(n.block),r=!0)},o:function(t){for(var e=0;e<3;e+=1){Iu(n.blocks[e])}r=!1},d:function(t){t&&Rs(e),n.block.d(t),n.token=null,n=null}}}function kd(t){return{c:os,m:os,p:os,i:os,o:os,d:os}}function Sd(t){var e,r,n=t[22]&&function(t){var e,r,n,i=t[22];function o(t){return{props:{notifications:t[10],position:t[3].position,sharedContainer:t[0]}}}i&&(e=Vs(i,o(t)));return{c:function(){e&&Uu(e.$$.fragment),r=Fs()},m:function(t,i){e&&Du(e,t,i),Ts(t,r,i),n=!0},p:function(t,n){var a={};if(1024&n&&(a.notifications=t[10]),8&n&&(a.position=t[3].position),1&n&&(a.sharedContainer=t[0]),i!==(i=t[22])){if(e){Mu();var s=e;Iu(s.$$.fragment,1,0,(function(){Hu(s,1)})),ku()}i?(Uu((e=Vs(i,o(t))).$$.fragment),Su(e.$$.fragment,1),Du(e,r.parentNode,r)):e=null}else i&&e.$set(a)},i:function(t){n||(e&&Su(e.$$.fragment,t),n=!0)},o:function(t){e&&Iu(e.$$.fragment,t),n=!1},d:function(t){t&&Rs(r),e&&Hu(e,t)}}}(t);return{c:function(){n&&n.c(),e=Fs()},m:function(t,i){n&&n.m(t,i),Ts(t,e,i),r=!0},p:function(t,e){t[22]&&n.p(t,e)},i:function(t){r||(Su(n),r=!0)},o:function(t){Iu(n),r=!1},d:function(t){n&&n.d(t),t&&Rs(e)}}}function Id(t){return{c:os,m:os,p:os,i:os,o:os,d:os}}function Pd(t){var e;return{c:function(){Hs(e=Ls("div"),"id","w3o-transaction-preview-container"),$s(e,"margin-bottom","8px")},m:function(t,r){Ts(t,e,r)},d:function(t){t&&Rs(e)}}}function Nd(t){return{c:os,m:os,p:os,i:os,o:os,d:os}}function Cd(t){var e,r,n=t[23]&&function(t){var e,r,n,i=t[23];function o(t){return{}}i&&(e=Vs(i,o()));return{c:function(){e&&Uu(e.$$.fragment),r=Fs()},m:function(t,i){e&&Du(e,t,i),Ts(t,r,i),n=!0},p:function(t,n){if(i!==(i=t[23])){if(e){Mu();var a=e;Iu(a.$$.fragment,1,0,(function(){Hu(a,1)})),ku()}i?(Uu((e=Vs(i,o())).$$.fragment),Su(e.$$.fragment,1),Du(e,r.parentNode,r)):e=null}},i:function(t){n||(e&&Su(e.$$.fragment,t),n=!0)},o:function(t){e&&Iu(e.$$.fragment,t),n=!1},d:function(t){t&&Rs(r),e&&Hu(e,t)}}}(t);return{c:function(){n&&n.c(),e=Fs()},m:function(t,i){n&&n.m(t,i),Ts(t,e,i),r=!0},p:function(t,e){t[23]&&n.p(t,e)},i:function(t){r||(Su(n),r=!0)},o:function(t){Iu(n),r=!1},d:function(t){n&&n.d(t),t&&Rs(e)}}}function Od(t){return{c:os,m:os,p:os,i:os,o:os,d:os}}function Td(t){var e;return{c:function(){Hs(e=Ls("div"),"id","w3o-transaction-preview-container"),$s(e,"margin-top","8px")},m:function(t,r){Ts(t,e,r)},d:function(t){t&&Rs(e)}}}function Rd(t){var e,r,n={ctx:t,current:null,token:null,hasCatch:!1,pending:Zd,then:Ld,catch:Bd,value:22,blocks:[,,,]};return Tu(t[17],n),{c:function(){e=Fs(),n.block.c()},m:function(t,i){Ts(t,e,i),n.block.m(t,n.anchor=i),n.mount=function(){return e.parentNode},n.anchor=e,r=!0},p:function(e,r){Ru(n,t=e,r)},i:function(t){r||(Su(n.block),r=!0)},o:function(t){for(var e=0;e<3;e+=1){Iu(n.blocks[e])}r=!1},d:function(t){t&&Rs(e),n.block.d(t),n.token=null,n=null}}}function Bd(t){return{c:os,m:os,p:os,i:os,o:os,d:os}}function Ld(t){var e,r,n=t[22]&&function(t){var e,r,n,i=t[22];function o(t){return{props:{notifications:t[10],position:t[3].position,sharedContainer:t[0]}}}i&&(e=Vs(i,o(t)));return{c:function(){e&&Uu(e.$$.fragment),r=Fs()},m:function(t,i){e&&Du(e,t,i),Ts(t,r,i),n=!0},p:function(t,n){var a={};if(1024&n&&(a.notifications=t[10]),8&n&&(a.position=t[3].position),1&n&&(a.sharedContainer=t[0]),i!==(i=t[22])){if
2(e){Mu();var s=e;Iu(s.$$.fragment,1,0,(function(){Hu(s,1)})),ku()}i?(Uu((e=Vs(i,o(t))).$$.fragment),Su(e.$$.fragment,1),Du(e,r.parentNode,r)):e=null}else i&&e.$set(a)},i:function(t){n||(e&&Su(e.$$.fragment,t),n=!0)},o:function(t){e&&Iu(e.$$.fragment,t),n=!1},d:function(t){t&&Rs(r),e&&Hu(e,t)}}}(t);return{c:function(){n&&n.c(),e=Fs()},m:function(t,i){n&&n.m(t,i),Ts(t,e,i),r=!0},p:function(t,e){t[22]&&n.p(t,e)},i:function(t){r||(Su(n),r=!0)},o:function(t){Iu(n),r=!1},d:function(t){n&&n.d(t),t&&Rs(e)}}}function Zd(t){return{c:os,m:os,p:os,i:os,o:os,d:os}}function jd(t){var e,r,n,i,o,a,s=t[1].position.includes("bottom"),u=t[1].position.includes("top"),c=s&&Fd(),l=t[1].enabled&&t[2].length&&Ud(t),f=u&&$d();return{c:function(){e=Ls("div"),c&&c.c(),r=js(),n=Ls("div"),l&&l.c(),i=js(),f&&f.c(),Hs(e,"class","container flex flex-column fixed z-indexed svelte-g9s19b"),Hs(e,"style",o=t[15](Jd)[t[1].position]+"; "+("mobile"===t[11].type&&t[1].position.includes("top")?"padding-bottom: 0;":"mobile"===t[11].type&&t[1].position.includes("bottom")?"padding-top:0;":""))},m:function(t,o){Ts(t,e,o),c&&c.m(e,null),Is(e,r),Is(e,n),l&&l.m(n,null),Is(e,i),f&&f.m(e,null),a=!0},p:function(t,i){2&i&&(s=t[1].position.includes("bottom")),s?c||((c=Fd()).c(),c.m(e,r)):c&&(c.d(1),c=null),t[1].enabled&&t[2].length?l?(l.p(t,i),6&i&&Su(l,1)):((l=Ud(t)).c(),Su(l,1),l.m(n,null)):l&&(Mu(),Iu(l,1,1,(function(){l=null})),ku()),2&i&&(u=t[1].position.includes("top")),u?f||((f=$d()).c(),f.m(e,null)):f&&(f.d(1),f=null),(!a||2&i&&o!==(o=t[15](Jd)[t[1].position]+"; "+("mobile"===t[11].type&&t[1].position.includes("top")?"padding-bottom: 0;":"mobile"===t[11].type&&t[1].position.includes("bottom")?"padding-top:0;":"")))&&Hs(e,"style",o)},i:function(t){a||(Su(l),a=!0)},o:function(t){Iu(l),a=!1},d:function(t){t&&Rs(e),c&&c.d(),l&&l.d(),f&&f.d()}}}function Fd(t){var e;return{c:function(){Hs(e=Ls("div"),"id","w3o-transaction-preview-container"),$s(e,"margin-bottom","8px")},m:function(t,r){Ts(t,e,r)},d:function(t){t&&Rs(e)}}}function Ud(t){var e,r,n={ctx:t,current:null,token:null,hasCatch:!1,pending:zd,then:Hd,catch:Dd,value:23,blocks:[,,,]};return Tu(t[16],n),{c:function(){e=Fs(),n.block.c()},m:function(t,i){Ts(t,e,i),n.block.m(t,n.anchor=i),n.mount=function(){return e.parentNode},n.anchor=e,r=!0},p:function(e,r){Ru(n,t=e,r)},i:function(t){r||(Su(n.block),r=!0)},o:function(t){for(var e=0;e<3;e+=1){Iu(n.blocks[e])}r=!1},d:function(t){t&&Rs(e),n.block.d(t),n.token=null,n=null}}}function Dd(t){return{c:os,m:os,p:os,i:os,o:os,d:os}}function Hd(t){var e,r,n=t[23]&&function(t){var e,r,n,i=t[23];function o(t){return{}}i&&(e=Vs(i,o()));return{c:function(){e&&Uu(e.$$.fragment),r=Fs()},m:function(t,i){e&&Du(e,t,i),Ts(t,r,i),n=!0},p:function(t,n){if(i!==(i=t[23])){if(e){Mu();var a=e;Iu(a.$$.fragment,1,0,(function(){Hu(a,1)})),ku()}i?(Uu((e=Vs(i,o())).$$.fragment),Su(e.$$.fragment,1),Du(e,r.parentNode,r)):e=null}},i:function(t){n||(e&&Su(e.$$.fragment,t),n=!0)},o:function(t){e&&Iu(e.$$.fragment,t),n=!1},d:function(t){t&&Rs(r),e&&Hu(e,t)}}}(t);return{c:function(){n&&n.c(),e=Fs()},m:function(t,i){n&&n.m(t,i),Ts(t,e,i),r=!0},p:function(t,e){t[23]&&n.p(t,e)},i:function(t){r||(Su(n),r=!0)},o:function(t){Iu(n),r=!1},d:function(t){n&&n.d(t),t&&Rs(e)}}}function zd(t){return{c:os,m:os,p:os,i:os,o:os,d:os}}function $d(t){var e;return{c:function(){Hs(e=Ls("div"),"id","w3o-transaction-preview-container"),$s(e,"margin-top","8px")},m:function(t,r){Ts(t,e,r)},d:function(t){t&&Rs(e)}}}function qd(t){var e,r,n,i,o,a=t[3].position.includes("top"),s=t[3].position.includes("bottom"),u=a&&Gd(),c={ctx:t,current:null,token:null,hasCatch:!1,pending:Kd,then:Vd,catch:Wd,value:22,blocks:[,,,]};Tu(t[17],c);var l=s&&Yd();return{c:function(){e=Ls("div"),u&&u.c(),r=js(),c.block.c(),n=js(),l&&l.c(),Hs(e,"class","container flex flex-column fixed z-indexed svelte-g9s19b"),Hs(e,"style",i=t[15](Qd)[t[3].position]+"; "+("mobile"===t[11].type&&t[3].position.includes("top")?"padding-bottom: 0;":"mobile"===t[11].type&&t[3].position.includes("bottom")?"padding-top:0;":""))},m:function(t,i){Ts(t,e,i),u&&u.m(e,null),Is(e,r),c.block.m(e,c.anchor=null),c.mount=function(){return e},c.anchor=n,Is(e,n),l&&l.m(e,null),o=!0},p:function(n,f){t=n,8&f&&(a=t[3].position.includes("top")),a?u||((u=Gd()).c(),u.m(e,r)):u&&(u.d(1),u=null),Ru(c,t,f),8&f&&(s=t[3].position.includes("bottom")),s?l||((l=Yd()).c(),l.m(e,null)):l&&(l.d(1),l=null),(!o||8&f&&i!==(i=t[15](Qd)[t[3].position]+"; "+("mobile"===t[11].type&&t[3].position.includes("top")?"padding-bottom: 0;":"mobile"===t[11].type&&t[3].position.includes("bottom")?"padding-top:0;":"")))&&Hs(e,"style",i)},i:function(t){o||(Su(c.block),o=!0)},o:function(t){for(var e=0;e<3;e+=1){Iu(c.blocks[e])}o=!1},d:function(t){t&&Rs(e),u&&u.d(),c.block.d(),c.token=null,c=null,l&&l.d()}}}function Gd(t){var e;return{c:function(){Hs(e=Ls("div"),"id","w3o-transaction-preview-container")},m:function(t,r){Ts(t,e,r)},d:function(t){t&&Rs(e)}}}function Wd(t){return{c:os,m:os,p:os,i:os,o:os,d:os}}function Vd(t){var e,r,n=t[22]&&function(t){var e,r,n,i=t[22];function o(t){return{props:{notifications:t[10],position:t[3].position,sharedContainer:t[0]}}}i&&(e=Vs(i,o(t)));return{c:function(){e&&Uu(e.$$.fragment),r=Fs()},m:function(t,i){e&&Du(e,t,i),Ts(t,r,i),n=!0},p:function(t,n){var a={};if(1024&n&&(a.notifications=t[10]),8&n&&(a.position=t[3].position),1&n&&(a.sharedContainer=t[0]),i!==(i=t[22])){if
2(e){Mu();var s=e;Iu(s.$$.fragment,1,0,(function(){Hu(s,1)})),ku()}i?(Uu((e=Vs(i,o(t))).$$.fragment),Su(e.$$.fragment,1),Du(e,r.parentNode,r)):e=null}else i&&e.$set(a)},i:function(t){n||(e&&Su(e.$$.fragment,t),n=!0)},o:function(t){e&&Iu(e.$$.fragment,t),n=!1},d:function(t){t&&Rs(r),e&&Hu(e,t)}}}(t);return{c:function(){n&&n.c(),e=Fs()},m:function(t,i){n&&n.m(t,i),Ts(t,e,i),r=!0},p:function(t,e){t[22]&&n.p(t,e)},i:function(t){r||(Su(n),r=!0)},o:function(t){Iu(n),r=!1},d:function(t){n&&n.d(t),t&&Rs(e)}}}function Kd(t){return{c:os,m:os,p:os,i:os,o:os,d:os}}function Yd(t){var e;return{c:function(){Hs(e=Ls("div"),"id","w3o-transaction-preview-container")},m:function(t,r){Ts(t,e,r)},d:function(t){t&&Rs(e)}}}function Xd(t){var e,r,n,i,o,a,s,u,l=t[8].inProgress&&wd(t),f=t[8].actionRequired&&_d(t),h=t[9]&&xd(),d=!t[1].enabled&&!t[3].enabled&&Ed(t),p=t[4]&&Ad(t),v=t[5]&&jd(t),m=t[6]&&qd(t);return{c:function(){l&&l.c(),e=js(),f&&f.c(),r=js(),h&&h.c(),n=js(),d&&d.c(),i=js(),p&&p.c(),o=js(),v&&v.c(),a=js(),m&&m.c(),s=Fs()},m:function(t,c){l&&l.m(t,c),Ts(t,e,c),f&&f.m(t,c),Ts(t,r,c),h&&h.m(t,c),Ts(t,n,c),d&&d.m(t,c),Ts(t,i,c),p&&p.m(t,c),Ts(t,o,c),v&&v.m(t,c),Ts(t,a,c),m&&m.m(t,c),Ts(t,s,c),u=!0},p:function(t,u){var g=(0,c.Z)(u,1)[0];t[8].inProgress?l?(l.p(t,g),256&g&&Su(l,1)):((l=wd(t)).c(),Su(l,1),l.m(e.parentNode,e)):l&&(Mu(),Iu(l,1,1,(function(){l=null})),ku()),t[8].actionRequired?f?(f.p(t,g),256&g&&Su(f,1)):((f=_d(t)).c(),Su(f,1),f.m(r.parentNode,r)):f&&(Mu(),Iu(f,1,1,(function(){f=null})),ku()),t[9]?h?512&g&&Su(h,1):((h=xd()).c(),Su(h,1),h.m(n.parentNode,n)):h&&(Mu(),Iu(h,1,1,(function(){h=null})),ku()),t[1].enabled||t[3].enabled?d&&(d.d(1),d=null):d?d.p(t,g):((d=Ed(t)).c(),d.m(i.parentNode,i)),t[4]?p?(p.p(t,g),16&g&&Su(p,1)):((p=Ad(t)).c(),Su(p,1),p.m(o.parentNode,o)):p&&(Mu(),Iu(p,1,1,(function(){p=null})),ku()),t[5]?v?(v.p(t,g),32&g&&Su(v,1)):((v=jd(t)).c(),Su(v,1),v.m(a.parentNode,a)):v&&(Mu(),Iu(v,1,1,(function(){v=null})),ku()),t[6]?m?(m.p(t,g),64&g&&Su(m,1)):((m=qd(t)).c(),Su(m,1),m.m(s.parentNode,s)):m&&(Mu(),Iu(m,1,1,(function(){m=null})),ku())},i:function(t){u||(Su(l),Su(f),Su(h),Su(p),Su(v),Su(m),u=!0)},o:function(t){Iu(l),Iu(f),Iu(h),Iu(p),Iu(v),Iu(m),u=!1},d:function(t){l&&l.d(t),t&&Rs(e),f&&f.d(t),t&&Rs(r),h&&h.d(t),t&&Rs(n),d&&d.d(t),t&&Rs(i),p&&p.d(t),t&&Rs(o),v&&v.d(t),t&&Rs(a),m&&m.d(t),t&&Rs(s)}}}var Jd="account-center",Qd="notify-onboard-container";function tp(t,e,n){var i,o,a,s,c,l,f,h,d,p,m,g;ps(t,Yu,(function(t){return n(2,h=t)})),ps(t,Vu,(function(t){return n(8,p=t)})),ps(t,Ku,(function(t){return n(9,m=t)}));var y=Ta,b=y.device,w=y.containerElements,_=is.select("accountCenter").pipe((0,D.O)(is.get().accountCenter),(0,H.d)(1));ps(t,_,(function(t){return n(1,f=t)}));var x=is.select("notify").pipe((0,D.O)(is.get().notify),(0,H.d)(1));ps(t,x,(function(t){return n(3,d=t)}));var E=is.select("notifications").pipe((0,D.O)(is.get().notifications));ps(t,E,(function(t){return n(10,g=t)}));var A=f.enabled?r.e(8459).then(r.bind(r,8459)).then((function(t){return t.default})):Promise.resolve(null),M=d.enabled?r.e(610).then(r.bind(r,10610)).then((function(t){return t.default})):Promise.resolve(null),k=f.enabled&&w&&w.accountCenter;k&&function(t,e,r,n){var i=t.attachShadow({mode:"open"}),o=document.querySelector("onboard-v2").shadowRoot.styleSheets,a=new CSSStyleSheet;Object.values(o).forEach((function(t){Object.values(t.cssRules).forEach((function(t){return a.insertRule(t.cssText)}))})),i.adoptedStyleSheets=[a];var s=document.querySelector(e);if(s.appendChild(t),!s)throw new Error("Element with query ".concat(e," does not exist."));var c=function(){var t=(0,v.Z)((0,u.Z)().mark((function t(){var e;return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r;case 2:(e=t.sent)&&new e({target:i,props:{settings:n,mountInContainer:!0}});case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();c()}(document.createElement("onboard-account-center"),k,A,f);return t.$$.update=function(){10&t.$$.dirty&&n(0,i=!k&&f.enabled&&d.enabled&&d.position===f.position),10&t.$$.dirty&&n(7,o="mobile"===b.type||f.position===d.position),10&t.$$.dirty&&n(18,a=d.position.includes("bottom")&&f.position.includes("bottom")||d.position.includes("top")&&f.position.includes("top")),262158&t.$$.dirty&&n(6,s=d.enabled&&(!f.enabled||k||d.position!==f.position&&"mobile"!==b.type||"mobile"===b.type&&!a||!h.length)),262158&t.$$.dirty&&n(5,c=f.enabled&&(!d.enabled||d.position!==f.position&&"mobile"!==b.type||"mobile"===b.type&&!a)&&h.length),262159&t.$$.dirty&&n(4,l=d.enabled&&f.enabled&&(i||"mobile"===b.type&&a)&&h.length)},[i,f,h,d,l,c,s,o,p,m,g,b,_,x,E,function(t){return{topLeft:"\n        top: var(--".concat(t,"-position-top, 0); \n        left: var(--").concat(t,"-position-left, 0);"),topRight:"\n        top: var(--".concat(t,"-position-top, 0); \n        right: var(--").concat(t,"-position-right, 0);"),bottomRight:"\n        bottom: var(--".concat(t,"-position-bottom, 0); \n        right: var(--").concat(t,"-position-right, 0);"),bottomLeft:"\n        bottom: var(--".concat(t,"-position-bottom, 0); \n        left: var(--").concat(t,"-position-left, 0);")}},A,M,a]}var ep,rp=function(t){(0,a.Z)(r,t);var e=(0,s.Z)(r);function r(t){var n;return(0,l.Z)(this,r),n=e.call(this),$u((0,o.Z)(n),t,tp,Xd,hs,{},bd),n}return(0,f.Z)(r)}(qu);function np(){return np=(0,v.Z)((0,u.Z)().mark((function t(e){var r,n,i,o,a,s,l,f,h,d,p,v,m,g,y,b,w,_,x;return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(u=e,!(r=(0,it.validate)(Fc,u))){t.next=3;break}throw r;case 3:return n=e.sendTransaction,i=e.estimateGas,o=e.gasPrice,a=e.balance,s=e.txDetails,l=e.txApproveReminderTimeout,f=l&&l>3e3?l:15e3,t.next=7,cp(i,o);case 7:if(h=t.sent,d=(0,c.Z)(h,2),p=d[0],v=d[1],m=ap(rt()),g=new ot.Z(s&&s.value||0),a&&p&&v&&p.times(v).plus(g).gt(new ot.Z(a))&&("nsfFail",sl(ip("nsfFail",m))),(y=ep.find((function(t){return"txRequest"===t.eventCode})))&&("txAwaitingApproval",sl(ip("txAwaitingApproval",y.id))),setTimeout((function(){var t=ep.find((function(t){return t.id===m&&"txRequest"===t.eventCode}));if(t){sl(ip("txConfirmReminder",t.id))}}),f),"txRequest",sl(ip("txRequest",m)),n){t.next=21;break}return t.abrupt("return",m);case 21:return t.prev=21,t.next=24,n();case 24:b=t.sent,t.next=33;break;case 27:return t.prev=27,t.t0=t.catch(21),w=up(t.t0),_=w.eventCode,x=w.errorMsg,sl(ip(_,m)),console.error(x),t.abrupt("return");case 33:if(cl(m),!b){t.next=36;break}return t.abrupt("return",b);case 36:return t.abrupt("return");case 37:case"end":return t.stop()}var u}),t,null,[[21,27]])}))),np.apply(this,arguments)}is.select("notifications").subscribe((function(t){ep=t}));var ip=function(t,e){return{eventCode:t,type:zl(t),id:e,key:op(e,t),message:sp(t),startTime:Date.now(),network:Object.keys(Ea).find((function(t){return Ea[t]===is.get().chains[0].id})),autoDismiss:0}},op=function(t,e){return"".concat(t,"-").concat(e)},ap=function(t){return"".concat(t,"-preflight")},sp=function(t){var e=ml.notify;return e.transaction,e.transaction[t]};function up(t){if(!t.stack||!t.message)return{eventCode:"txError",errorMsg:"An unknown error occured"};var e=t.stack||t.message;return e.includes("User denied transaction signature")?{eventCode:"txSendFail",errorMsg:"User denied transaction signature"}:e.includes("transaction underpriced")?{eventCode:"txUnderpriced",errorMsg:"Transaction is under priced"}:{eventCode:"txError",errorMsg:e}}var cp=function(){var t=(0,v.Z)((0,u.Z)().mark((function t(e,r){var n,i;return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e&&r){t.next=2;break}return t.abrupt("return",Promise.resolve([]));case 2:if((n=e()).then){t.next=5;break}throw new Error("The `estimateGas` function must return a Promise");case 5:if((i=r()).then){t.next=8;break}throw new Error("The `gasPrice` function must return a Promise");case 8:return t.abrupt("return",Promise.all([n,i]).then((function(t){var e=(0,c.Z)(t,2),r=e[0],n=e[1];if("string"!==typeof r)throw new Error("The Promise returned from calling 'estimateGas' must resolve with a value of type 'string'. Received a value of: ".concat(r," with a type: ").concat(typeof r));if("string"!==typeof n)throw new Error("The Promise returned from calling 'gasPrice' must resolve with a value of type 'string'. Received a value of: ".concat(n," with a type: ").concat(typeof n));return[new ot.Z(r),new ot.Z(n)]})).catch((function(t){throw new Error("There was an error getting gas estimates: ".concat(t))})));case 9:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}(),lp={connectWallet:pl,disconnectWallet:Kl,setChain:Xl,state:{get:is.get,select:is.select,actions:{setWalletModules:ll,setLocale:function(t){var e=Gc(t);if(e)throw e;ns({type:Ka,payload:t})},updateNotify:al,customNotification:function(t){var e=Kc(t);
2if(e)throw e;var r="customNotification-".concat(rt()),n=(0,d.Z)((0,d.Z)({},t),{},{id:r,key:r});ul(n);var i=function(){return cl(n.id)};return ul(n),{dismiss:i,update:function e(r){var o=Kc(t);if(o)throw o;return ul((0,d.Z)((0,d.Z)({},r),{},{id:n.id,key:n.key})),{dismiss:i,update:e}}}},preflightNotifications:function(t){return np.apply(this,arguments)},updateBalances:Zl,updateAccountCenter:il,setPrimaryWallet:rl,updateTheme:hl,updateAppMetadata:dl}}};function fp(t){if("undefined"===typeof window)return lp;if(t){var e=(r=t,(0,it.validate)(Tc,r));if(e)throw e}var r,n=t.wallets,o=t.chains,c=t.appMetadata,h=t.i18n,m=t.accountCenter,g=t.apiKey,y=t.notify,b=t.gas,w=t.connect,_=t.containerElements,x=t.transactionPreview,E=t.theme,A=t.disableFontDownload,M=t.unstoppableResolution;_&&Ra({containerElements:_});var k=Ta,S=k.device,I=k.svelteInstance;if(I&&(console.warn("Re-initializing Onboard and resetting back to initial state"),Gu.next()),function(t){if(t){var e=t.en,r=Qo(ml,e||{});(0,et.m6)("en",r);var n=Object.keys(t).filter((function(t){return"en"!==t}));n.forEach((function(e){var r=t[e];r&&(0,et.m6)(e,r)}))}else(0,et.m6)("en",ml);(0,et.S1)({fallbackLocale:"en",initialLocale:(0,et.F5)()})}(h),function(t){var e={type:Fa,payload:t.map((function(t){var e=t.namespace,r=void 0===e?"evm":e,n=t.id,i=t.rpcUrl,o=(0,p.Z)(t,ia);return(0,d.Z)((0,d.Z)({},o),{},{namespace:r,id:n.toLowerCase(),rpcUrl:i?i.trim():null})}))};ns(e)}(function(t){return t.map((function(t){var e=t.id,r=(0,p.Z)(t,ea),n=wa(e);return(0,d.Z)({id:n},r)}))}(o)),void 0!==typeof w&&ol(w),"undefined"!==typeof m){var P,N=m.hideTransactionProtectionBtn;"mobile"===S.type?P=(0,d.Z)((0,d.Z)({},Ba.accountCenter),{},{hideTransactionProtectionBtn:N},m.mobile?m.mobile:{}):m.desktop&&(P=(0,d.Z)((0,d.Z)({},Ba.accountCenter),{},{hideTransactionProtectionBtn:N},m.desktop)),il(P)}if("undefined"!==typeof y)if("desktop"in y||"mobile"in y){var C,O=function(t){return(0,it.validate)(Mc,t)}(y);if(O)throw O;(!y.desktop||y.desktop&&!y.desktop.position)&&m&&m.desktop&&m.desktop.position&&(y.desktop.position=m.desktop.position),(!y.mobile||y.mobile&&!y.mobile.position)&&m&&m.mobile&&m.mobile.position&&(y.mobile.position=m.mobile.position),"mobile"===S.type&&y.mobile?C=(0,d.Z)((0,d.Z)({},Ba.notify),y.mobile):y.desktop&&(C=(0,d.Z)((0,d.Z)({},Ba.notify),y.desktop)),al(C)}else{var T=Wc(y);if(T)throw T;al((0,d.Z)((0,d.Z)({},Ba.notify),y))}else al(Ba.notify);var R=I||function(t,e){var r=function(t){(0,a.Z)(r,t);var e=(0,s.Z)(r);function r(){return(0,l.Z)(this,r),e.call(this)}return(0,f.Z)(r)}((0,i.Z)(HTMLElement));customElements.get("onboard-v2")||customElements.define("onboard-v2",r);hp(t,e)||dp();var n=document.createElement("onboard-v2"),o=n.attachShadow({mode:"open"});n.style.all="initial",o.innerHTML="\n\n  <style>\n    :host {\n          /* COLORS */\n          --white: white;\n          --black: black;\n          --primary-1: #2F80ED;\n          --primary-100: #eff1fc;\n          --primary-200: #d0d4f7;\n          --primary-300: #b1b8f2;\n          --primary-400: #929bed;\n          --primary-500: #6370e5;\n          --primary-600: #454ea0;\n          --primary-700: #323873;\n          --gray-100: #ebebed;\n          --gray-200: #c2c4c9;\n          --gray-300: #999ca5;\n          --gray-400: #707481;\n          --gray-500: #33394b;\n          --gray-600: #242835;\n          --gray-700: #1a1d26;\n          --success-100: #d1fae3;\n          --success-200: #baf7d5;\n          --success-300: #a4f4c6;\n          --success-400: #8df2b8;\n          --success-500: #5aec99;\n          --success-600: #18ce66;\n          --success-700: #129b4d;\n          --danger-100: #ffe5e6;\n          --danger-200: #ffcccc;\n          --danger-300: #ffb3b3;\n          --danger-400: #ff8080;\n          --danger-500: #ff4f4f;\n          --danger-600: #cc0000;\n          --danger-700: #660000;\n          --warning-100: #ffefcc;\n          --warning-200: #ffe7b3;\n          --warning-300: #ffd780;\n          --warning-400: #ffc74c;\n          --warning-500: #ffaf00;\n          --warning-600: #cc8c00;\n          --warning-700: #664600;\n\n          /* FONTS */\n          --font-family-normal: var(--w3o-font-family, Inter, sans-serif);\n\n          --font-size-1: 3rem;\n          --font-size-2: 2.25rem;\n          --font-size-3: 1.5rem;\n          --font-size-4: 1.25rem;\n          --font-size-5: 1rem;\n          --font-size-6: .875rem;\n          --font-size-7: .75rem;\n\n          --font-line-height-1: 24px;\n          --font-line-height-2: 20px;\n          --font-line-height-3: 16px;\n          --font-line-height-4: 12px;\n\n          /* SPACING */\n          --spacing-1: 3rem;\n          --spacing-2: 2rem;\n          --spacing-3: 1.5rem;\n          --spacing-4: 1rem;\n          --spacing-5: 0.5rem;\n          --spacing-6: 0.25rem;\n          --spacing-7: 0.125rem;\n\n          /* BORDER RADIUS */\n          --border-radius-1: 24px;\n          --border-radius-2: 20px;\n          --border-radius-3: 16px;\n          --border-radius-4: 12px;\n          --border-radius-5: 8px;\n\n          /* SHADOWS */\n          --shadow-0: none;\n          --shadow-1: 0px 4px 12px rgba(0, 0, 0, 0.1);\n          --shadow-2: inset 0px -1px 0px rgba(0, 0, 0, 0.1);\n          --shadow-3: 0px 4px 16px rgba(0, 0, 0, 0.2);\n\n          /* MODAL POSITIONING */\n          --modal-z-index: 10;\n          --modal-top: unset;\n          --modal-right: unset;\n          --modal-bottom: unset;\n          --modal-left: unset;\n\n          /* MODAL STYLES */\n          --modal-backdrop: rgba(0, 0, 0, 0.6);\n\n        }\n      </style>\n    ";
2var u=Ta.containerElements.connectModal||is.get().accountCenter.containerElement||"body",c=document.querySelector(u);if(!c)throw new Error("Element with query ".concat(u," does not exist."));c.appendChild(n);var h=new rp({target:o});return h}(E,A);if(Ra({svelteInstance:R,apiKey:g,initialWalletInit:n,gas:b,transactionPreview:x,unstoppableResolution:M}),c&&dl(c),g&&x){var B=function(){var t=(0,v.Z)((0,u.Z)().mark((function t(){return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=x,t.next=3,Wl();case 3:t.t1=t.sent,t.t2=g,t.t3={containerElement:"#w3o-transaction-preview-container",sdk:t.t1,apiKey:t.t2},t.t0.init.call(t.t0,t.t3),Yu.subscribe((function(t){t.forEach((function(t){var e=t.provider;x.patchProvider(e)}))}));case 8:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();B()}if(E&&hl(E),w&&(w.autoConnectLastWallet||w.autoConnectAllPreviousWallet)){var L=Na(La.LAST_CONNECTED_WALLET);try{var Z=JSON.parse(L);Z&&Array.isArray(Z)&&Z.length&&pp(Z,w)}catch(j){j instanceof SyntaxError&&L&&lp.connectWallet({autoSelect:{label:L,disableModals:!0}})}}return lp}var hp=function(t,e){return!!e||(!(!document.body||!getComputedStyle(document.body).getPropertyValue("--onboard-font-family-normal")&&!getComputedStyle(document.body).getPropertyValue("--w3o-font-family"))||!!t&&!("object"!==typeof t||!t["--w3o-font-family"]))},dp=function(){var t=(0,v.Z)((0,u.Z)().mark((function t(){var e,n,i;return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.resolve().then(r.bind(r,36712));case 2:e=t.sent,n=e.InterVar,(i=document.createElement("style")).innerHTML="\n    ".concat(n,"\n  "),document.body.appendChild(i);case 7:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),pp=function(){var t=(0,v.Z)((0,u.Z)().mark((function t(e,r){var n,i,o,a;return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=[],i=e,r.autoConnectAllPreviousWallet){t.next=7;break}lp.connectWallet({autoSelect:{label:i[0],disableModals:!0}}),n.push(i[0]),t.next=13;break;case 7:o=(0,u.Z)().mark((function t(e){return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,lp.connectWallet({autoSelect:{label:i[e],disableModals:!0}});case 2:t.sent.some((function(t){return t.label===i[e]}))&&n.unshift(i[e]);case 4:case"end":return t.stop()}}),t)})),a=i.length;case 9:if(!a--){t.next=13;break}return t.delegateYield(o(a),"t0",11);case 11:t.next=9;break;case 13:Ca(La.LAST_CONNECTED_WALLET,JSON.stringify(n));case 14:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}()},7826:function(t,e,r){"use strict";r.d(e,{Z:function(){return n.aA}});var n=r(35847);r(50984),r(78147),r(47397),r(36712),r(52422),r(57810),r(66257),r(79305),r(20548)},35068:function(t,e,r){"use strict";var n=r(74165),i=r(15861);e.Z=function(){return"undefined"===typeof window?function(){return null}:function(){return{label:"Frontier",getIcon:function(){var t=(0,i.Z)((0,n.Z)().mark((function t(){return(0,n.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(2483).then(r.bind(r,2483));case 2:return t.abrupt("return",t.sent.default);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getInterface:function(){var t=(0,i.Z)((0,n.Z)().mark((function t(){var e,i,o;return(0,n.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.resolve().then(r.bind(r,36712));case 2:if(e=t.sent,i=e.createEIP1193Provider,!window.hasOwnProperty("ethereum")||!window.ethereum.isFrontier){t.next=9;break}o=i(window.ethereum),t.next=15;break;case 9:if(!window.frontier){t.next=13;break}o=i(window.frontier.ethereum),t.next=15;break;case 13:throw window.open("https://frontier.xyz/browser-extension","_blank"),new Error("Please Install Frontier to use this wallet");case 15:return t.abrupt("return",{provider:o});case 16:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()}}}},63601:function(t,e,r){"use strict";var n=r(74165),i=r(15861);e.Z=function(t){var e=(t||{}).whitelistedDomains,o=void 0===e?[/^https:\/\/gnosis-safe\.io$/,/^https:\/\/app\.safe\.global$/,/^https:\/\/safe\.global$/]:e;return function(){return window.self!==window.top?{label:"Safe",getIcon:function(){var t=(0,i.Z)((0,n.Z)().mark((function t(){return(0,n.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(3415).then(r.bind(r,43415));case 2:return t.abrupt("return",t.sent.default);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getInterface:function(){var t=(0,i.Z)((0,n.Z)().mark((function t(){var e,i,a,s,u,c,l,f,h,d,p;return(0,n.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(5240),r.e(5048)]).then(r.t.bind(r,45048,19));case 2:return e=t.sent,i=e.default,t.next=6,r.e(7200).then(r.t.bind(r,7200,19));case 6:return a=t.sent,s=a.SafeAppProvider,t.next=10,Promise.resolve().then(r.bind(r,36712));case 10:return u=t.sent,c=u.createEIP1193Provider,l=i.default||i,f=new l({whitelistedDomains:o}),t.next=17,Promise.race([f.safe.getInfo(),new Promise((function(t){return setTimeout(t,200)}))]);case 17:if(h=t.sent){t.next=20;break}throw new Error('App must be loaded in a Safe App context, head to <a href="https://gnosis-safe.io/app">the Safe</a> and open this website as an app.');case 20:return d=new s(h,f),p=c(d,{eth_requestAccounts:function(){return Promise.resolve([h.safeAddress])}}),t.abrupt("return",{provider:p,instance:f});case 23:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()}:[]}}},24054:function(t,e,r){"use strict";var n=r(74165),i=r(15861),o=r(2933);e.Z=function(t){return"undefined"===typeof window?function(){return null}:function(){return{label:"Infinity Wallet",getIcon:function(){var t=(0,i.Z)((0,n.Z)().mark((function t(){return(0,n.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(8562).then(r.bind(r,88562));case 2:return t.abrupt("return",t.sent.default);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getInterface:function(){var e=(0,i.Z)((0,n.Z)().mark((function e(){var r;return(0,n.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!window.hasOwnProperty("ethereum")||!window.ethereum.isInfinityWallet){e.next=5;break}r=window.ethereum,e.next=7;break;case 5:throw(0,o.openInfinityWallet)(window.location.href,null===t||void 0===t?void 0:t.chainId),new Error("Opening Infinity Wallet! If not installed first download to use Infinity Wallet");case 7:return e.abrupt("return",{provider:r});case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}}}},34530:function(t,e,r){"use strict";r.d(e,{ZP:function(){return _t}});var n,i,o,a,s=r(74165),u=r(15861),c=r(1413),l=r(93433),f=r(28810);!function(t){t.AlphaWallet="isAlphaWallet",t.ApexWallet="isApexWallet",t.AToken="isAToken",t.BifrostWallet="isBifrost",t.Binance="bbcSignTx",t.Bitpie="isBitpie",t.BlockWallet="isBlockWallet",t.Coinbase="isToshi",t.CoinbaseExtension="isCoinbaseWallet",t.Detected="request",t.Dcent="isDcentWallet",t.Exodus="isExodus",t.Frontier="isFrontier",t.Frame="isFrame",t.HuobiWallet="isHbWallet",t.HyperPay="isHyperPay",t.ImToken="isImToken",t.InfinityWallet="isInfinityWallet",t.Liquality="isLiquality",t.MeetOne="wallet",t.MetaMask="isMetaMask",t.MyKey="isMYKEY",t.OwnBit="isOwnbit",t.Status="isStatus",t.Trust="isTrust",t.TokenPocket="isTokenPocket",t.TP="isTp",t.WalletIo="isWalletIO",t.XDEFI="isXDEFI",t.OneInch="isOneInchIOSWallet",t.Tokenary="isTokenary",t.Tally="isTally",t.BraveWallet="isBraveWallet",t.Rabby="isRabby",t.MathWallet="isMathWallet",t.GameStop="isGamestop",t.BitKeep="isBitKeep",t.Sequence="isSequence",t.Core="isAvalanche",t.Opera="isOpera",t.Bitski="isBitski",t.Enkrypt="isEnkrypt",t.Phantom="isPhantom",t.OKXWallet="isOkxWallet",t.Zeal="isZeal",t.Zerion="isZerion",t.Rainbow="isRainbow",t.SafePal="isSafePal",t.DeFiWallet="isDeficonnectProvider",t.Safeheron="isSafeheron",t.Talisman="isTalisman",t.OneKey="isOneKey",t.Fordefi="isFordefi"}(n||(n={})),function(t){t.Binance="https://www.bnbchain.org/ru/blog/binance-extension-wallet/",t.BitKeep="https://bitkeep.com/en/download?type=0",t.Coinbase="https://www.coinbase.com/wallet/downloads",t.MetaMask="https://metamask.io/download/",t.OKXWallet="https://okx.c
2om/download",t.Phantom="https://phantom.app/download",t.Talisman="https://www.talisman.xyz/",t.Trust="https://trustwallet.com/download/",t.OneKey="https://onekey.so/download/",t.RoninWallet="https://wallet.skymavis.com/"}(i||(i={})),function(t){t.AlphaWallet="AlphaWallet",t.ApexWallet="Apex Wallet",t.AToken="AToken",t.BifrostWallet="Bifrost Wallet",t.Binance="Binance Smart Wallet",t.Bitpie="Bitpie",t.Bitski="Bitski",t.BlockWallet="BlockWallet",t.Brave="Brave Wallet",t.Coinbase="Coinbase Wallet",t.Dcent="D'CENT",t.Detected="Detected Wallet",t.Exodus="Exodus",t.Frame="Frame",t.Frontier="Frontier",t.HuobiWallet="Huobi Wallet",t.HyperPay="HyperPay",t.ImToken="imToken",t.InfinityWallet="Infinity Wallet",t.Liquality="Liquality",t.MeetOne="MeetOne",t.MetaMask="MetaMask",t.MyKey="MyKey",t.Opera="Opera Wallet",t.OwnBit="OwnBit",t.Status="Status Wallet",t.Trust="Trust Wallet",t.TokenPocket="TokenPocket",t.TP="TP Wallet",t.WalletIo="Wallet.io",t.XDEFI="XDEFI Wallet",t.OneInch="1inch Wallet",t.Tokenary="Tokenary Wallet",t.Tally="Taho",t.Rabby="Rabby Wallet",t.MathWallet="MathWallet",t.GameStop="GameStop Wallet",t.BitKeep="BitKeep",t.Sequence="Sequence",t.Core="Core",t.Enkrypt="Enkrypt",t.Zeal="Zeal",t.Phantom="Phantom",t.OKXWallet="OKX Wallet",t.Zerion="Zerion",t.Rainbow="Rainbow",t.SafePal="SafePal",t.DeFiWallet="DeFi Wallet",t.Safeheron="Safeheron",t.Talisman="Talisman",t.OneKey="OneKey",t.Fordefi="Fordefi",t.RoninWallet="Ronin Wallet"}(o||(o={})),function(t){t.Ethereum="ethereum",t.Binance="BinanceChain",t.Tally="tally",t.Web3="web3",t.Arbitrum="arbitrum",t.XFI="xfi",t.GameStop="gamestop",t.BitKeep="bitkeep",t.Avalanche="avalanche",t.Bitski="Bitski",t.Enkrypt="enkrypt",t.Zeal="zeal",t.Phantom="phantom",t.OKXWallet="okxwallet",t.Trust="trustwallet",t.Frontier="frontier",t.DeFiConnectProvider="deficonnectProvider",t.Safeheron="safeheron",t.Talisman="talismanEth",t.OneKey="$onekey",t.RoninWallet="ronin"}(a||(a={}));var h=r(36712),d=null;function p(t,e){return(0,u.Z)((0,s.Z)().mark((function r(){return(0,s.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",{provider:window.ethereum.providers&&Array.isArray(window.ethereum.providers)?v(t,e):window.ethereum});case 1:case"end":return r.stop()}}),r)})))}function v(t,e){return window.ethereum.providers.find((function(r){return e?!!r[t]&&!m(t,r):!!r[t]}))}function m(t,e){return Object.values(n).filter((function(e){return e!==t&&e!==n.Detected})).some((function(t){return!!e[t]}))}var g={label:o.MetaMask,injectedNamespace:a.Ethereum,checkProviderIdentity:function(t){var e=t.provider;return!!e&&!!e[n.MetaMask]&&!m(n.MetaMask,e)},getIcon:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(1017).then(r.bind(r,51017));case 2:return t.abrupt("return",t.sent.default);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getInterface:p(n.MetaMask,!0),platforms:["all"],externalUrl:i.MetaMask},y={label:o.InfinityWallet,injectedNamespace:a.Ethereum,checkProviderIdentity:function(t){var e=t.provider;return!!e&&!!e[n.InfinityWallet]},getIcon:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(8018).then(r.bind(r,98018));case 2:return t.abrupt("return",t.sent.default);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getInterface:p(n.InfinityWallet),platforms:["desktop"]},b={label:o.Exodus,injectedNamespace:a.Ethereum,checkProviderIdentity:function(t){var e=t.provider;return!!e&&!!e[n.Exodus]},getIcon:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(7474).then(r.bind(r,27474));case 2:return t.abrupt("return",t.sent.default);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getInterface:p(n.Exodus),platforms:["all"]},w={label:o.Frontier,injectedNamespace:a.Frontier,checkProviderIdentity:function(t){var e=t.provider;return!!e&&!!e.ethereum&&!!e.ethereum[n.Frontier]},getIcon:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(5396).then(r.bind(r,75396));case 2:return t.abrupt("return",t.sent.default);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getInterface:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",{provider:(0,h.createEIP1193Provider)(window.frontier.ethereum)});case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),platforms:["all"]},_={label:o.Brave,injectedNamespace:a.Ethereum,checkProviderIdentity:function(t){var e=t.provider;return!!e&&!!e[n.BraveWallet]},getIcon:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(2962).then(r.bind(r,95240));case 2:return t.abrupt("return",t.sent.default);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getInterface:p(n.BraveWallet),platforms:["all"]},x={label:o.Binance,injectedNamespace:a.Binance,checkProviderIdentity:function(t){var e=t.provider;return!!e&&!!e[n.Binance]},getIcon:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(6752).then(r.bind(r,6752));case 2:return t.abrupt("return",t.sent.default);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getInterface:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){var e,r,n;return(0,s.Z)().wrap((function(t){for(;;
2)switch(t.prev=t.next){case 0:return e=(0,c.Z)({},window.BinanceChain),window.BinanceChain=e,r=window.BinanceChain.on.bind(window.BinanceChain),window.BinanceChain.on=function(t,e){r(t,"chainChanged"===t?function(t){e("0x".concat(parseInt(t).toString(16)))}:e)},(n=(0,h.createEIP1193Provider)(window.BinanceChain,{eth_chainId:function(t){return(0,t.baseRequest)({method:"eth_chainId"}).then((function(t){return"0x".concat(parseInt(t).toString(16))}))},eth_selectAccounts:d,wallet_switchEthereumChain:d})).removeListener=function(t,e){},t.abrupt("return",{provider:n});case 7:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),platforms:["desktop"],externalUrl:i.Binance},E={label:o.Coinbase,injectedNamespace:a.Ethereum,checkProviderIdentity:function(t){var e=t.provider;return!!e&&!!e[n.Coinbase]||!!e&&!!e[n.CoinbaseExtension]},getIcon:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(7965).then(r.bind(r,47965));case 2:return t.abrupt("return",t.sent.default);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getInterface:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){var e,r,i;return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p(n.CoinbaseExtension)();case 2:return e=t.sent,r=e.provider,i=r.on.bind(r),r.on=function(t,e){i(t,"chainChanged"===t?function(t){e("0x".concat(parseInt(t).toString(16)))}:e)},t.abrupt("return",{provider:r});case 7:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),platforms:["all"],externalUrl:i.Coinbase},A={label:o.Detected,injectedNamespace:a.Ethereum,checkProviderIdentity:function(t){var e=t.provider;return!!e&&!!e[n.Detected]},getIcon:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(363).then(r.bind(r,363));case 2:return t.abrupt("return",t.sent.default);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getInterface:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",{provider:window.ethereum});case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),platforms:["all"]},M={label:o.Trust,injectedNamespace:a.Trust,checkProviderIdentity:function(t){var e=t.provider;return!!e&&!!e[n.Trust]},getIcon:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(2829).then(r.bind(r,82829));case 2:return t.abrupt("return",t.sent.default);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getInterface:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){var e,r;return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=window.hasOwnProperty(a.Ethereum),r=e&&window[a.Ethereum].isTrust?window[a.Ethereum]:window[a.Trust],t.abrupt("return",{provider:r});case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),platforms:["all"],externalUrl:i.Trust},k={label:o.Opera,injectedNamespace:a.Ethereum,checkProviderIdentity:function(t){var e=t.provider;return!!e&&!!e[n.Opera]},getIcon:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(881).then(r.bind(r,10881));case 2:return t.abrupt("return",t.sent.default);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getInterface:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",{provider:(0,h.createEIP1193Provider)(window.ethereum,{eth_requestAccounts:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(e){var r;return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.baseRequest,t.abrupt("return",r({method:"eth_accounts"}));case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),eth_selectAccounts:d})});case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),platforms:["all"]},S={label:o.Status,injectedNamespace:a.Ethereum,checkProviderIdentity:function(t){var e=t.provider;return!!e&&!!e[n.Status]},getIcon:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(8935).then(r.bind(r,78935));case 2:return t.abrupt("return",t.sent.default);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getInterface:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){var e;return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=window.ethereum,t.abrupt("return",{provider:e});case 2:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),platforms:["mobile"]},I={label:o.AlphaWallet,injectedNamespace:a.Ethereum,checkProviderIdentity:function(t){var e=t.provider;return!!e&&!!e[n.AlphaWallet]},getIcon:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(3241).then(r.bind(r,13241));case 2:return t.abrupt("return",t.sent.default);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getInterface:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",{provider:(0,h.createEIP1193Provider)(window.ethereum,{wallet_switchEthereumChain:d,eth_selectAccounts:d})});case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),platforms:["mobile"]},P={label:o.ApexWallet,injectedNamespace:a.Ethereum,checkProviderIdentity:function(t){var e=t.provider;return!!e&&!!e[n.ApexWallet]},getIcon:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(4753).then(r.bind(r,24753));case 2:return t.abrupt("return",t.sent.default);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getInterface:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",{provider:window.ethereum});case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),platforms:["desktop","Chrome","Chromium","Microsoft Edge"]},N={label:o.AToken,injectedNamespace:a.Ethereum,checkProviderIdentity:function(t){var e=t.provider;return!!e&&!!e[n.AToken]},getIcon:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(9843).then(r.bind(r,29843));case 2:return t.abrupt("return",t.sent.default);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getInterface:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",{provider:window.ethereum});case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),platforms:["mobile"]},C={label:o.BifrostWallet,injectedNamespace:a.Ethereum,checkProviderIdentity:function(t){var e=t.provider;return!!e&&!!e[n.BifrostWallet]},getIcon:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(3119).then(r.bind(r,23119));case 2:return t.abrupt("return",t.sent.default);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getInterface:p(n.BifrostWallet),platforms:["all"]},O={label:o.Bitpie,injectedNamespace:a.Ethereum,checkProviderIdentity:function(){return!!window.Bitpie},getIcon:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(6e3).then(r.bind(r,66e3));case 2:return t.abrupt("return",t.sent.default);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getInterface:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",{provider:(0,h.createEIP1193Provider)(window.ethereum,{wallet_switchEthereumChain:d,eth_selectAccounts:d})});case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),platforms:["mobile"]},T={label:o.BlockWallet,injectedNamespace:a.Ethereum,checkProviderIdentity:function(t){var e=t.provider;return!!e&&!!e[n.BlockWallet]},getIcon:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(3142).then(r.bind(r,83142));case 2:return t.abrupt("return",t.sent.default);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getInterface:p(n.BlockWallet),platforms:["desktop"]},R={label:o.Frame,injectedNamespace:a.Ethereum,checkProviderIdentity:function(t){var e=t.provider;return!!e&&!!e[n.Frame]},getIcon:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(7610).then(r.bind(r,67610));case 2:return t.abrupt("return",t.sent.default);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getInterface:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){var e;return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((e=window.ethereum)&&e.connected){t.next=3;break}throw new Error("Frame App must be open with a hot wallet connected. If not installed first download the Frame App.");case 3:return t.abrupt("return",{provider:e});case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),platforms:["desktop"]},B={label:o.HuobiWallet,injectedNamespace:a.Ethereum,checkProviderIdentity:function(t){var e=t.provider;return!!e&&!!e[n.HuobiWallet]},getIcon:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(8687).then(r.bind(r,38687));case 2:return t.abrupt("return",t.sent.default);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getInterface:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",{provider:(0,h.createEIP1193Provider)(window.ethereum,{wallet_switchEthereumChain:d,eth_selectAccounts:d})});case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),platforms:["mobile"]},L={label:o.HyperPay,injectedNamespace:a.Ethereum,checkProviderIdentity:function(){return!!window.hiWallet},getIcon:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(9330).then(r.bind(r,89330));case 2:return t.abrupt("return",t.sent.default);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getInterface:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",{provider:(0,h.createEIP1193Provider)(window.ethereum,{wallet_switchEthereumChain:d,eth_selectAccounts:d})});case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),platforms:["mobile"]},Z={label:o.ImToken,injectedNamespace:a.Ethereum,checkProviderIdentity:function(t){var e=t.provider;return!!e&&!!e[n.ImToken]},getIcon:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(6666).then(r.bind(r,56666));case 2:return t.abrupt("return",t.sent.default);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getInterface:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",{provider:(0,h.createEIP1193Provider)(window.ethereum,{wallet_switchEthereumChain:d,eth_selectAccounts:d})});case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),platforms:["mobile"]},j={label:o.Liquality,injectedNamespace:a.Ethereum,checkProviderIdentity:function(t){var e=t.provider;return!!e&&!!e[n.Liquality]},getIcon:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(786).then(r.bind(r,70786));case 2:return t.abrupt("return",t.sent.default);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getInterface:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){var e;return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(e=(0,h.createEIP1193Provider)(window.ethereum,{wallet_switchEthereumChain:d,eth_selectAccounts:d})).removeListener=function(t,e){},t.abrupt("return",{provider:e});case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),platforms:["desktop"]},F={label:o.MeetOne,injectedNamespace:a.Ethereum,checkProviderIdentity:function(t){var e=t.provider;return!!e&&"MEETONE"===e[n.MeetOne]},getIcon:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(4377).then(r.bind(r,64377));case 2:return t.abrupt("return",t.sent.default);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getInterface:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",{provider:window.ethereum});case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),platforms:["mobile"]},U={label:o.MyKey,injectedNamespace:a.Ethereum,checkProviderIdentity:function(t){var e=t.provider;return!!e&&!!e[n.MyKey]},getIcon:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(9765).then(r.bind(r,89765));case 2:return t.abrupt("return",t.sent.default);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getInterface:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",{provider:window.ethereum});case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),platforms:["mobile"]},D={label:o.OwnBit,injectedNamespace:a.Ethereum,checkProviderIdentity:function(t){var e=t.provider;return!!e&&!!e[n.OwnBit]},getIcon:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(8141).then(r.bind(r,78141));case 2:return t.abrupt("return",t.sent.default);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getInterface:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){var e;return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(e=(0,h.createEIP1193Provider)(window.ethereum,{eth_chainId:function(t){return(0,t.baseRequest)({method:"eth_chainId"}).then((function(t){return"0x".concat(parseInt(t).toString(16))}))},wallet_switchEthereumChain:d,eth_selectAccounts:d})).removeListener=function(t,e){},e.on=function(t,e){},t.abrupt("return",{provider:e});case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),platforms:["mobile"]},H={label:o.TokenPocket,injectedNamespace:a.Ethereum,checkProv
2iderIdentity:function(t){var e=t.provider;return!!e&&!!e[n.TokenPocket]&&!e[n.TP]},getIcon:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(4452).then(r.bind(r,64452));case 2:return t.abrupt("return",t.sent.default);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getInterface:p(n.TokenPocket),platforms:["all"]},z={label:o.TP,injectedNamespace:a.Ethereum,checkProviderIdentity:function(t){var e=t.provider;return!!e&&!!e[n.TP]},getIcon:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(5086).then(r.bind(r,15086));case 2:return t.abrupt("return",t.sent.default);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getInterface:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",{provider:(0,h.createEIP1193Provider)(window.ethereum,{wallet_switchEthereumChain:d,eth_selectAccounts:d})});case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),platforms:["mobile"]},$={label:o.XDEFI,injectedNamespace:a.XFI,checkProviderIdentity:function(t){var e=t.provider;return e&&e.ethereum&&e.ethereum[n.XDEFI]},getIcon:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(5250).then(r.bind(r,15250));case 2:return t.abrupt("return",t.sent.default);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getInterface:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",{provider:window.xfi&&window.xfi.ethereum});case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),platforms:["all"]},q={label:o.OneInch,injectedNamespace:a.Ethereum,checkProviderIdentity:function(t){var e=t.provider;return!!e&&!!e[n.OneInch]},getIcon:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(6021).then(r.bind(r,96021));case 2:return t.abrupt("return",t.sent.default);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getInterface:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",{provider:(0,h.createEIP1193Provider)(window.ethereum)});case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),platforms:["mobile"]},G={label:o.Tokenary,injectedNamespace:a.Ethereum,checkProviderIdentity:function(t){var e=t.provider;return!!e&&!!e[n.Tokenary]},getIcon:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(9935).then(r.bind(r,29935));case 2:return t.abrupt("return",t.sent.default);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getInterface:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",{provider:(0,h.createEIP1193Provider)(window.ethereum)});case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),platforms:["all"]},W={label:o.Tally,injectedNamespace:a.Tally,checkProviderIdentity:function(t){var e=t.provider;return!!e&&!!e[n.Tally]},getIcon:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(5426).then(r.bind(r,45426));case 2:return t.abrupt("return",t.sent.default);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getInterface:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",{provider:(0,h.createEIP1193Provider)(window.tally)});case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),platforms:["desktop"]},V={label:o.Zeal,injectedNamespace:a.Zeal,checkProviderIdentity:function(t){var e=t.provider;return!!e&&!!e[n.Zeal]},getIcon:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(3719).then(r.bind(r,83719));case 2:return t.abrupt("return",t.sent.default);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getInterface:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",{provider:(0,h.createEIP1193Provider)(window.zeal)});case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),platforms:["desktop"]},K={label:o.Rabby,injectedNamespace:a.Ethereum,checkProviderIdentity:function(t){var e=t.provider;return!!e&&!!e[n.Rabby]},getIcon:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(9645).then(r.bind(r,49645));case 2:return t.abrupt("return",t.sent.default);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getInterface:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",{provider:(0,h.createEIP1193Provider)(window.ethereum)});case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),platforms:["desktop"]},Y={label:o.MathWallet,injectedNamespace:a.Ethereum,checkProviderIdentity:function(t){var e=t.provider;return!!e&&!!e[n.MathWallet]},getIcon:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(3287).then(r.bind(r,63287));case 2:return t.abrupt("return",t.sent.default);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getInterface:p(n.MathWallet),platforms:["all"]},X={label:o.GameStop,injectedNamespace:a.GameStop,checkProviderIdentity:function(t){var e=t.provider;return!!e&&!!e[n.GameStop]},getIcon:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(7601).then(r.bind(r,17601));case 2:return t.abrupt("return",t.sent.default);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getInterface:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){var e;return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(e=(0,h.createEIP1193Provider)(window.gamestop,{eth_chainId:function(t){return(0,t.baseRequest)({method:"eth_chainId"}).then((function(t){return"0x".concat(parseInt(t).toString(16))}))},wallet_switchEthereumChain:d})).removeListener=function(t,e){},e.on=function(t,e){},t.abrupt("return",{provider:e});case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),platforms:["desktop"]},J={label:o.BitKeep,injectedNamespace:a.BitKeep,checkProviderIdentity:function(t){var e=t.provider;return!!e&&!!e.ethereum[n.BitKeep]},getIcon:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(2925).then(r.bind(r,42925));case 2:return t.abrupt("return",t.sent.default);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getInterface:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",{provider:window.bitkeep&&window.bitkeep.ethereum});case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),platforms:["all"],externalUrl:i.BitKeep},Q={label:o.Sequence,injectedNamespace:a.Ethereum,checkProviderIdentity:function(t){var e=t.provider;return!!e&&!!e[n.Sequence]},getIcon:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(5352).then(r.bind(r,35352));case 2:return t.abrupt("return",t.sent.default);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getInterface:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",{provider:window.ethereum});case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),platforms:["all"]},tt={label:o.Core,injectedNamespace:a.Avalanche,checkProviderIdentity:function(t){var e=t.provider;return!!e&&!!e[n.Core]},getIcon:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(4881).then(r.bind(r,74881));case 2:return t.abrupt("return",t.sent.default);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getInterface:p(n.Core),platforms:["desktop","Chrome","Chromium","Microsoft Edge"]},et={label:o.Bitski,injectedNamespace:a.Bitski,checkProviderIdentity:function(t){var e=t.provider;return!!e&&!!e.getProvider&&!!e.getProvider().isBitski},getIcon:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(710).then(r.bind(r,50710));case 2:return t.abrupt("return",t.sent.default);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getInterface:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",{provider:window.Bitski&&window.Bitski.getProvider&&window.Bitski.getProvider()});case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),platforms:["all"]},rt={label:o.Zerion,injectedNamespace:a.Ethereum,checkProviderIdentity:function(t){var e=t.provider;return!!e&&!!e[n.Zerion]},getIcon:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(4172).then(r.bind(r,84172));case 2:return t.abrupt("return",t.sent.default);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getInterface:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",{provider:(0,h.createEIP1193Provider)(window.ethereum)});case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),platforms:["all"]},nt={label:o.Enkrypt,injectedNamespace:a.Enkrypt,checkProviderIdentity:function(t){var e=t.provider;return!!e&&!!e.providers&&!!e.providers.ethereum},getIcon:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(7026).then(r.bind(r,97026));case 2:return t.abrupt("return",t.sent.default);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getInterface:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){var e,r;return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=window.enkrypt.providers.ethereum.on.bind(window.enkrypt.providers.ethereum),window.enkrypt.providers.ethereum.on=function(t,r){e(t,"chainChanged"===t?function(t){r("0x".concat(parseInt(t).toString(16)))}:r)},(r=(0,h.createEIP1193Provider)(window.enkrypt.providers.ethereum,{eth_chainId:function(t){return(0,t.baseRequest)({method:"eth_chainId"}).then((function(t){return"0x".concat(parseInt(t).toString(16))}))}})).removeListener=function(t,e){},t.abrupt("return",{provider:r});case 5:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),platforms:["all"]},it={label:o.Phantom,injectedNamespace:a.Phantom,checkProviderIdentity:function(t){var e=t.provider;return!!e&&!!e.ethereum&&!!e.ethereum[n.Phantom]},getIcon:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(2007).then(r.bind(r,12007));case 2:return t.abrupt("return",t.sent.default);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getInterface:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",{provider:(0,h.createEIP1193Provider)(window.phantom.ethereum)});case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),platforms:["all"],externalUrl:i.Phantom},ot={label:o.SafePal,injectedNamespace:a.Ethereum,checkProviderIdentity:function(t){var e=t.provider;return!!e&&!!e[n.SafePal]},getIcon:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(992).then(r.bind(r,40992));case 2:return t.abrupt("return",t.sent.default);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getInterface:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",{provider:(0,h.createEIP1193Provider)(window.ethereum)});case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),platforms:["all"]},at={label:o.Rainbow,injectedNamespace:a.Ethereum,checkProviderIdentity:function(t){var e=t.provider;return!!e&&!!e[n.Rainbow]},getIcon:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(695).then(r.bind(r,20695));case 2:return t.abrupt("return",t.sent.default);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getInterface:p(n.Rainbow),platforms:["all"]},st={label:o.OKXWallet,injectedNamespace:a.OKXWallet,checkProviderIdentity:function(t){var e=t.provider;return!!e&&!!e[n.OKXWallet]},getIcon:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(3289).then(r.bind(r,33289));case 2:return t.abrupt("return",t.sent.default);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getInterface:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",{provider:(0,h.createEIP1193Provider)(window.okxwallet)});case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),platforms:["desktop"],externalUrl:i.OKXWallet},ut={label:o.DeFiWallet,injectedNamespace:a.DeFiConnectProvider,checkProviderIdentity:function(t){var e=t.provider;return!!e&&!!e[n.DeFiWallet]},getIcon:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(4352).then(r.bind(r,14352));case 2:return t.abrupt("return",t.sent.default);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getInterface:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",{provider:(0,h.createEIP1193Provider)(window.deficonnectProvider)});case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),platforms:["all"]},ct={label:o.Safeheron,injectedNamespace:a.Safeheron,checkProviderIdentity:function(t){var e=t.provider;return!!e&&!!e[n.Safeheron]},getIcon:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0
2,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(6098).then(r.bind(r,76098));case 2:return t.abrupt("return",t.sent.default);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getInterface:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",{provider:(0,h.createEIP1193Provider)(window.safeheron)});case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),platforms:["desktop","Chrome","Chromium","Microsoft Edge"]},lt={label:o.Talisman,injectedNamespace:a.Talisman,checkProviderIdentity:function(t){var e=t.provider;return!!e&&!!e[n.Talisman]},getIcon:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(6556).then(r.bind(r,46556));case 2:return t.abrupt("return",t.sent.default);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getInterface:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",{provider:(0,h.createEIP1193Provider)(window.talismanEth)});case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),platforms:["desktop"],externalUrl:i.Talisman},ft={label:o.RoninWallet,injectedNamespace:a.RoninWallet,checkProviderIdentity:function(t){return!!t.provider},getIcon:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(4054).then(r.bind(r,64054));case 2:return t.abrupt("return",t.sent.default);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getInterface:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",{provider:(0,h.createEIP1193Provider)(window.ronin.provider)});case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),platforms:["all"],externalUrl:i.RoninWallet},ht={label:o.OneKey,injectedNamespace:a.OneKey,checkProviderIdentity:function(t){var e=t.provider;return!!e&&!!e.ethereum&&!!e.ethereum[n.OneKey]},getIcon:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(2432).then(r.bind(r,72432));case 2:return t.abrupt("return",t.sent.default);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getInterface:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",{provider:(0,h.createEIP1193Provider)(window.$onekey.ethereum)});case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),platforms:["all"],externalUrl:i.OneKey},dt={label:o.Fordefi,injectedNamespace:a.Ethereum,checkProviderIdentity:function(t){var e=t.provider;return!!e&&!!e[n.Fordefi]&&!m(n.Fordefi,e)},getIcon:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(7059).then(r.bind(r,27059));case 2:return t.abrupt("return",t.sent.default);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getInterface:p(n.Fordefi,!0),platforms:["desktop"]},pt=[V,b,w,g,C,x,E,A,M,k,S,I,P,N,O,T,_,R,B,L,Z,j,F,U,D,H,z,$,q,G,W,K,Y,X,J,Q,tt,et,nt,it,st,rt,at,ot,ut,y,ct,lt,ht,dt,ft],vt=r(47397),mt=vt.object({label:vt.string().required(),getIcon:vt.function().arity(0).required(),getInterface:vt.function().maxArity(1).required(),injectedNamespace:vt.string().required(),checkProviderIdentity:vt.function().arity(1).required(),platforms:vt.array().items(vt.string()),externalUrl:vt.string()}),gt=vt.array().items(mt),yt=vt.object().pattern(/\w+/,vt.any().allow(vt.boolean(),vt.array().items(vt.string()))),bt=vt.object({custom:gt,filter:yt,displayUnavailable:[vt.boolean(),vt.array().items(vt.string())],walletUnavailableMessage:vt.function(),sort:vt.function(),externalUrl:vt.string()}),wt=function(t){var e=t.label,r=t.externalUrl;return r?'Please <a href="'.concat(r,'" target="_blank">install</a> or enable ').concat(e," to continue"):"Please install or enable ".concat(e," to continue")};var _t=function(t){if("undefined"===typeof window)return function(){return null};if(t){var e=(r=t,(0,h.validate)(bt,r));if(e&&e.error)throw e.error}var r;return function(e){var r=e.device,n=t||{},i=n.custom,a=void 0===i?[]:i,h=n.filter,d=void 0===h?{}:h,p=n.displayUnavailable,v=n.sort,m=n.walletUnavailableMessage,g
2=f([].concat((0,l.Z)(a),(0,l.Z)(pt)),(function(t){return t.label})).reduce((function(t,e){var n=e.label,i=e.platforms,o=e.injectedNamespace,a=e.checkProviderIdentity,l=d[n],f=!1===l,h=function(t,e,r){var n;return!!t&&(!!e({provider:t,device:r})||!!(null===(n=t.providers)||void 0===n?void 0:n.some((function(t){return e({provider:t,device:r})}))))}(window[o],a,r),v=!1;Array.isArray(l)&&(l.includes(r.type)||l.includes(r.os.name))&&(v=!0),"unavailable"!==l||h||(v=!0);var g=!i.includes("all")&&!i.includes(r.type)&&!i.includes(r.os.name);return!f&&!v&&!g&&(h||!0===p||Array.isArray(p)&&p.length&&p.includes(e.label))&&t.push((!0===p||Array.isArray(p)&&p.length&&p.includes(e.label))&&!h?(0,c.Z)((0,c.Z)({},e),{},{getInterface:function(){var t=(0,u.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:throw new Error(m?m(e):wt(e));case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()}):e),t}),[]);if(g.length){var y=g.length>1,b=g.filter((function(t){return!(t.label===o.Detected&&y)})).map((function(t){return{label:t.label,getIcon:t.getIcon,getInterface:t.getInterface}})).sort((function(t,e){return t.label<e.label?-1:t.label>e.label?1:0}));return v?v(b):b}return[]}}},14483:function(t,e,r){"use strict";r.d(e,{Z:function(){return y}});var n,i=r(74165),o=r(15861),a=r(43144),s=r(15671),u=r(60136),c=r(29388),l=function(t){(0,u.Z)(r,t);var e=(0,c.Z)(r);function r(t){var n;return(0,s.Z)(this,r),(n=e.call(this,t.message)).message=t.message,n.code=t.code,n.data=t.data,n}return(0,a.Z)(r)}((0,r(28664).Z)(Error)),f=function(t,e){var r;t.request?r=t.request.bind(t):t.sendAsync&&(r=h(t));var n=function(){var t=(0,o.Z)((0,i.Z)().mark((function t(n){var o,a,s;return(0,i.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=n.method,a=n.params,s=o,!e||null!==e[s]){t.next=4;break}throw new l({code:4200,message:"The Provider does not support the requested method: ".concat(o)});case 4:if(!e||!e[s]){t.next=8;break}return t.abrupt("return",e[s]({baseRequest:r,params:a}));case 8:if(!r){t.next=12;break}return t.abrupt("return",r({method:o,params:a}));case 12:throw new l({code:4200,message:"The Provider does not support the requested method: ".concat(o)});case 13:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();return t.request=n,t},h=function(t){return function(e){var r=e.method,n=e.params;return new Promise((function(e,i){t.sendAsync({id:0,jsonrpc:"2.0",method:r,params:n},(function(t,r){var n=r.result;t?i(JSON.parse(t)):e(void 0==n?null:n)}))}))}},d=function(t,e){return e?"function"===typeof e?'Please <a href="#" onclick="'.concat((function(){return e()}),'">install</a> or enable to ').concat(t," to continue"):'Please <a href="'.concat(e,'" target="_blank">install</a> or enable to ').concat(t," to continue"):"Please switch to ".concat(t," to continue")};!function(t){t[t.ACCOUNT_ACCESS_REJECTED=4001]="ACCOUNT_ACCESS_REJECTED",t[t.ACCOUNT_ACCESS_ALREADY_REQUESTED=-32002]="ACCOUNT_ACCESS_ALREADY_REQUESTED",t[t.UNAUTHORIZED=4100]="UNAUTHORIZED",t[t.INVALID_PARAMS=-32602]="INVALID_PARAMS",t[t.UNSUPPORTED_METHOD=4200]="UNSUPPORTED_METHOD",t[t.DISCONNECTED=4900]="DISCONNECTED",t[t.CHAIN_DISCONNECTED=4901]="CHAIN_DISCONNECTED",t[t.CHAIN_NOT_ADDED=4902]="CHAIN_NOT_ADDED",t[t.DOES_NOT_EXIST=-32601]="DOES_NOT_EXIST",t[t.UNRECOGNIZED_CHAIN_ID=-32603]="UNRECOGNIZED_CHAIN_ID"}(n||(n={}));var p=r(47397);var v=p.alternatives().try(p.string().pattern(/^0x[0-9a-fA-F]+$/),p.number().positive()),m=p.string().valid("evm"),g=p.object({address:p.string().required(),icon:p.string().optional()});p.object({namespace:m,id:v.required(),rpcUrl:p.string(),label:p.string(),token:p.string(),secondaryTokens:p.array().max(5).items(g).optional(),icon:p.string(),color:p.string(),publicRpcUrl:p.string(),protectedRpcUrl:p.string(),blockExplorerUrl:p.string()});var y=function(){return"undefined"===typeof window?function(){return null}:function(){return{label:"Phantom",getIcon:function(){var t=(0,o.Z)((0,i.Z)().mark((function t(){return(0,i.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(5880).then(r.bind(r,25880));case 2:return t.abrupt("return",t.sent.default);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getInterface:function(){var t=(0,o.Z)((0,i.Z)().mark((function t(){var e;return(0,i.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!("phantom"in window)){t.next=4;break}if(!("phantom"in(e=window)&&"ethereum"in e.phantom&&e.phantom.ethereum.isPhantom)){t.next=4;break}return t.abrupt("return",{provider:f(e.phantom.ethereum)});case 4:throw new Error(d("Phantom","https://phantom.app/download"));case 5:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),platforms:["all"]}}}},20913:function(t,e,r){"use strict";var n=r(74165),i=r(15861);e.Z=function(t){var e=t||{},o=e.appName,a=void 0===o?"app":o,s=e.network,u=void 0===s?137:s;return function(){var t;return(null===window||void 0===window?void 0:window.ethereum)&&(null===(t=window.ethereum)||void 0===t?void 0:t.isSequence)?[]:{label:"Sequence",getIcon:function(){var t=(0,i.Z)((0,n.Z)().mark((function t(){return(0,n.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(4676).then(r.bind(r,94676));case 2:return t.abrupt("return",t.sent.default);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getInterface:function(){var t=(0,i.Z)((0,n.Z)().mark((function t(){var e,o,s,c,l,f,h;return(0,n.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(5240),r.e(774)]).then(r.bind(r,70774));case 2:return e=t.sent,o=e.sequence,t.next=6,Promise.resolve().then(r.bind(r,36712));case 6:return s=t.sent,c=s.createEIP1193Provider,t.next=10,o.initWallet(u);
2case 10:if((l=t.sent).isConnected()){t.next=17;break}return t.next=14,l.connect({app:a,authorize:!0});case 14:if(t.sent.connected){t.next=17;break}throw new Error("Failed to connect to the wallet");case 17:if(!l.isConnected()){t.next=21;break}return f=l.getProvider(),h=c(f,{eth_requestAccounts:function(){var t=(0,i.Z)((0,n.Z)().mark((function t(){var e;return(0,n.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l.getAddress();case 2:return e=t.sent,t.abrupt("return",[e]);case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),eth_chainId:function(){var t=(0,i.Z)((0,n.Z)().mark((function t(){var e;return(0,n.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l.getChainId();case 2:return e=t.sent,t.abrupt("return","0x".concat(e.toString(16)));case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()}),t.abrupt("return",{provider:h,instance:l});case 21:throw new Error("Failed to connect wallet");case 22:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()}}}},68943:function(t,e,r){"use strict";r.d(e,{Z:function(){return w}});var n=r(74165),i=r(15861),o=r(36712),a=r(68774),s=r(50984),u=r.n(s);function c(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{u(n.next(t))}catch(e){o(e)}}function s(t){try{u(n.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))}function l(t,e){var r,n,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(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=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++,n=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]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(s){o=[6,s],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}var f="INSTALLED",h="NOT_INSTALLED",d="REGISTERED",p="REGISTERING",v="RELOADING",m={CHROME:"https://chrome.google.com/webstore/detail/tally-ho/eajafomhmkipbjmfmhebemolkcicgfmd",FIREFOX:"https://addons.mozilla.org/en-US/firefox/addon/tally/",DEFAULT:"https://tally.cash/"},g="REGISTRATION_IN_PROGRESS",y="FORWARDER_ID",b=function(){function t(e){var r=void 0===e?{}:e,n=r.forwarderOrigin,i=void 0===n?"https://fwd.metamask.io":n,o=r.forwarderMode,a=void 0===o?t.FORWARDER_MODE.INJECT:o;this.forwarderOrigin=i,this.forwarderMode=a,this.state=t.isTallyHoInstalled()?f:h;var s=t._detectBrowser();this.downloadUrl=s?m[s]:m.DEFAULT,this._onMessage=this._onMessage.bind(this),this._onMessageFromForwarder=this._onMessageFromForwarder.bind(this),this._openForwarder=this._openForwarder.bind(this),this._openDownloadPage=this._openDownloadPage.bind(this),this.startOnboarding=this.startOnboarding.bind(this),this.stopOnboarding=this.stopOnboarding.bind(this),window.addEventListener("message",this._onMessage),a===t.FORWARDER_MODE.INJECT&&"true"===sessionStorage.getItem(g)&&t._injectForwarder(this.forwarderOrigin)}return t.prototype._onMessage=function(t){if(t.origin===this.forwarderOrigin)return"tallyho:reload"===t.data.type?this._onMessageFromForwarder(t):void console.debug("Unknown message from '".concat(t.origin,"' with data ").concat(JSON.stringify(t.data)))},t.prototype._onMessageUnknownStateError=function(t){throw new Error("Unknown state: '".concat(t,"'"))},t.prototype._onMessageFromForwarder=function(e){return c(this,void 0,void 0,(function(){return l(this,(function(r){switch(r.label){case 0:switch(this.state){case v:return[3,1];case h:return[3,2];case f:return[3,3];case p:return[3,5];case d:return[3,6]}return[3,7];case 1:return console.debug("Ignoring message while reloading"),[3,8];case 2:return console.debug("Reloading now to register with Tally Ho"),this.state=v,location.reload(),[3,8];case 3:return console.debug("Registering with Tally Ho"),this.state=p,[4,t._register()];case 4:return r.sent(),this.state=d,e.source.postMessage({type:"tallyho:registrationCompleted"},e.origin),this.stopOnboarding(),[3,8];case 5:return console.debug("Already registering - ignoring reload message"),[3,8];case 6:return console.debug("Already registered - ignoring reload message"),[3,8];case 7:this._onMessageUnknownStateError(this.state),r.label=8;case 8:return[2]}}
2))}))},t.prototype.startOnboarding=function(){sessionStorage.setItem(g,"true"),this._openDownloadPage(),this._openForwarder()},t.prototype.stopOnboarding=function(){"true"===sessionStorage.getItem(g)&&(this.forwarderMode===t.FORWARDER_MODE.INJECT&&(console.debug("Removing forwarder"),t._removeForwarder()),sessionStorage.setItem(g,"false"))},t.prototype._openForwarder=function(){this.forwarderMode===t.FORWARDER_MODE.OPEN_TAB?window.open(this.forwarderOrigin,"_blank"):t._injectForwarder(this.forwarderOrigin)},t.prototype._openDownloadPage=function(){window.open(this.downloadUrl,"_blank")},t.isTallyHoInstalled=function(){return Boolean(window.ethereum&&window.ethereum.isTally)},t._register=function(){return window.ethereum.request({method:"wallet_registerOnboarding"})},t._injectForwarder=function(t){var e=document.body,r=document.createElement("iframe");r.setAttribute("height","0"),r.setAttribute("width","0"),r.setAttribute("style","display: none;"),r.setAttribute("src",t),r.setAttribute("id",y),e.insertBefore(r,e.children[0])},t._removeForwarder=function(){var t;null===(t=document.getElementById(y))||void 0===t||t.remove()},t._detectBrowser=function(){var t=u().parse(window.navigator.userAgent);return"Firefox"===t.browser.name?"FIREFOX":["Chrome","Chromium"].includes(t.browser.name||"")?"CHROME":null},t.FORWARDER_MODE={INJECT:"INJECT",OPEN_TAB:"OPEN_TAB"},t}();var w=function(){return"undefined"===typeof window?function(){return null}:function(){return{label:"Taho",injectedNamespace:"tally",checkProviderIdentity:function(t){var e=t.provider;e&&e.isTally},getIcon:function(){var t=(0,i.Z)((0,n.Z)().mark((function t(){return(0,n.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(4420).then(r.bind(r,74420));case 2:return t.abrupt("return",t.sent.default);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getInterface:function(){var t=(0,i.Z)((0,n.Z)().mark((function t(){return(0,n.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,a({mustBeTallyHo:!0});case 2:if(t.sent){t.next=9;break}throw(new b).startOnboarding(),new Error("Please install Taho to use this wallet");case 9:return t.abrupt("return",{provider:(0,o.createEIP1193Provider)(window.tally)});case 10:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),platforms:["desktop"]}}}},23328:function(t,e,r){"use strict";var n=r(74165),i=r(15861);e.Z=function(){return"undefined"===typeof window?function(){return null}:function(){return{label:"Trust Wallet",getIcon:function(){var t=(0,i.Z)((0,n.Z)().mark((function t(){return(0,n.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(5670).then(r.bind(r,55670));case 2:return t.abrupt("return",t.sent.default);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getInterface:function(){var t=(0,i.Z)((0,n.Z)().mark((function t(){var e;return(0,n.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!window.hasOwnProperty("ethereum")||!window.ethereum.isTrust){t.next=5;break}e=window.ethereum,t.next=11;break;case 5:if(!window.trustwallet){t.next=9;break}e=window.trustwallet,t.next=11;break;case 9:throw window.open("https://trustwallet.com/browser-extension","_blank"),new Error("Please Install Trust to use this wallet");case 11:return t.abrupt("return",{provider:e});case 12:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()}}}},52422:function(t,e,r){"use strict";var n=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,i=Math.ceil,o=Math.floor,a="[BigNumber Error] ",s=a+"Number primitive has more than 15 significant digits: ",u=1e14,c=14,l=9007199254740991,f=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],h=1e7,d=1e9;function p(t){var e=0|t;return t>0||t===e?e:e-1}function v(t){for(var e,r,n=1,i=t.length,o=t[0]+"";n<i;){for(e=t[n++]+"",r=c-e.length;r--;e="0"+e);o+=e}for(i=o.length;48===o.charCodeAt(--i););return o.slice(0,i+1||1)}function m(t,e){var r,n,i=t.c,o=e.c,a=t.s,s=e.s,u=t.e,c=e.e;if(!a||!s)return null;
vendor: 15,229 bytes, line 2
2if(r=i&&!i[0],n=o&&!o[0],r||n)return r?n?0:-s:a;if(a!=s)return a;if(r=a<0,n=u==c,!i||!o)return n?0:!i^r?1:-1;if(!n)return u>c^r?1:-1;for(s=(u=i.length)<(c=o.length)?u:c,a=0;a<s;a++)if(i[a]!=o[a])return i[a]>o[a]^r?1:-1;return u==c?0:u>c^r?1:-1}function g(t,e,r,n){if(t<e||t>r||t!==o(t))throw Error(a+(n||"Argument")+("number"==typeof t?t<e||t>r?" out of range: ":" not an integer: ":" not a primitive number: ")+String(t))}function y(t){var e=t.c.length-1;return p(t.e/c)==e&&t.c[e]%2!=0}function b(t,e){return(t.length>1?t.charAt(0)+"."+t.slice(1):t)+(e<0?"e":"e+")+e}function w(t,e,r){var n,i;if(e<0){for(i=r+".";++e;i+=r);t=i+t}else if(++e>(n=t.length)){for(i=r,e-=n;--e;i+=r);t+=i}else e<n&&(t=t.slice(0,e)+"."+t.slice(e));return t}var _=function t(e){var r,_,x,E=Z.prototype={constructor:Z,toString:null,valueOf:null},A=new Z(1),M=20,k=4,S=-7,I=21,P=-1e7,N=1e7,C=!1,O=1,T=0,R={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xa0",suffix:""},B="0123456789abcdefghijklmnopqrstuvwxyz",L=!0;function Z(t,e){var r,i,a,u,f,h,d,p,v=this;if(!(v instanceof Z))return new Z(t,e);if(null==e){if(t&&!0===t._isBigNumber)return v.s=t.s,void(!t.c||t.e>N?v.c=v.e=null:t.e<P?v.c=[v.e=0]:(v.e=t.e,v.c=t.c.slice()));if((h="number"==typeof t)&&0*t==0){if(v.s=1/t<0?(t=-t,-1):1,t===~~t){for(u=0,f=t;f>=10;f/=10,u++);return void(u>N?v.c=v.e=null:(v.e=u,v.c=[t]))}p=String(t)}else{if(!n.test(p=String(t)))return x(v,p,h);v.s=45==p.charCodeAt(0)?(p=p.slice(1),-1):1}(u=p.indexOf("."))>-1&&(p=p.replace(".","")),(f=p.search(/e/i))>0?(u<0&&(u=f),u+=+p.slice(f+1),p=p.substring(0,f)):u<0&&(u=p.length)}else{if(g(e,2,B.length,"Base"),10==e&&L)return D(v=new Z(t),M+v.e+1,k);if(p=String(t),h="number"==typeof t){if(0*t!=0)return x(v,p,h,e);if(v.s=1/t<0?(p=p.slice(1),-1):1,Z.DEBUG&&p.replace(/^0\.0*|\./,"").length>15)throw Error(s+t)}else v.s=45===p.charCodeAt(0)?(p=p.slice(1),-1):1;for(r=B.slice(0,e),u=f=0,d=p.length;f<d;f++)if(r.indexOf(i=p.charAt(f))<0){if("."==i){if(f>u){u=d;continue}}else if(!a&&(p==p.toUpperCase()&&(p=p.toLowerCase())||p==p.toLowerCase()&&(p=p.toUpperCase()))){a=!0,f=-1,u=0;continue}return x(v,String(t),h,e)}h=!1,(u=(p=_(p,e,10,v.s)).indexOf("."))>-1?p=p.replace(".",""):u=p.length}for(f=0;48===p.charCodeAt(f);f++);for(d=p.length;48===p.charCodeAt(--d););if(p=p.slice(f,++d)){if(d-=f,h&&Z.DEBUG&&d>15&&(t>l||t!==o(t)))throw Error(s+v.s*t);if((u=u-f-1)>N)v.c=v.e=null;else if(u<P)v.c=[v.e=0];else{if(v.e=u,v.c=[],f=(u+1)%c,u<0&&(f+=c),f<d){for(f&&v.c.push(+p.slice(0,f)),d-=c;f<d;)v.c.push(+p.slice(f,f+=c));f=c-(p=p.slice(f)).length}else f-=d;for(;f--;p+="0");v.c.push(+p)}}else v.c=[v.e=0]}function j(t,e,r,n){var i,o,a,s,u;if(null==r?r=k:g(r,0,8),!t.c)return t.toString();if(i=t.c[0],a=t.e,null==e)u=v(t.c),u=1==n||2==n&&(a<=S||a>=I)?b(u,a):w(u,a,"0");else if(o=(t=D(new Z(t),e,r)).e,s=(u=v(t.c)).length,1==n||2==n&&(e<=o||o<=S)){for(;s<e;u+="0",s++);u=b(u,o)}else if(e-=a,u=w(u,o,"0"),o+1>s){if(--e>0)for(u+=".";e--;u+="0");}else if((e+=o-s)>0)for(o+1==s&&(u+=".");e--;u+="0");return t.s<0&&i?"-"+u:u}function F(t,e){for(var r,n=1,i=new Z(t[0]);n<t.length;n++){if(!(r=new Z(t[n])).s){i=r;break}e.call(i,r)&&(i=r)}return i}function U(t,e,r){for(var n=1,i=e.length;!e[--i];e.pop());for(i=e[0];i>=10;i/=10,n++);return(r=n+r*c-1)>N?t.c=t.e=null:r<P?t.c=[t.e=0]:(t.e=r,t.c=e),t}function D(t,e,r,n){var a,s,l,h,d,p,v,m=t.c,g=f;if(m){t:{for(a=1,h=m[0];h>=10;h/=10,a++);if((s=e-a)<0)s+=c,l=e,v=(d=m[p=0])/g[a-l-1]%10|0;else if((p=i((s+1)/c))>=m.length){if(!n)break t;for(;m.length<=p;m.push(0));d=v=0,a=1,l=(s%=c)-c+1}else{for(d=h=m[p],a=1;h>=10;h/=10,a++);v=(l=(s%=c)-c+a)<0?0:d/g[a-l-1]%10|0}if(n=n||e<0||null!=m[p+1]||(l<0?d:d%g[a-l-1]),n=r<4?(v||n)&&(0==r||r==(t.s<0?3:2)):v>5||5==v&&(4==r||n||6==r&&(s>0?l>0?d/g[a-l]:0:m[p-1])%10&1||r==(t.s<0?8:7)),e<1||!m[0])return m.length=0,n?(e-=t.e+1,m[0]=g[(c-e%c)%c],t.e=-e||0):m[0]=t.e=0,t;if(0==s?(m.length=p,h=1,p--):(m.length=p+1,h=g[c-s],m[p]=l>0?o(d/g[a-l]%g[l])*h:0),n)for(;;){if(0==p){for(s=1,l=m[0];l>=10;l/=10,s++);for(l=m[0]+=h,h=1;l>=10;l/=10,h++);s!=h&&(t.e++,m[0]==u&&(m[0]=1));break}if(m[p]+=h,m[p]!=u)break;m[p--]=0,h=1}for(s=m.length;0===m[--s];m.pop());}t.e>N?t.c=t.e=null:t.e<P&&(t.c=[t.e=0])}return t}function H(t){var e,r=t.e;return null===r?t.toString():(e=v(t.c),e=r<=S||r>=I?b(e,r):w(e,r,"0"),t.s<0?"-"+e:e)}return Z.clone=t,Z.ROUND_UP=0,Z.ROUND_DOWN=1,Z.ROUND_CEIL=2,Z.ROUND_FLOOR=3,Z.ROUND_HALF_UP=4,Z.ROUND_HALF_DOWN=5,Z.ROUND_HALF_EVEN=6,Z.ROUND_HALF_CEIL=7,Z.ROUND_HALF_FLOOR=8,Z.EUCLID=9,Z.config=Z.set=function(t){var e,r;if(null!=t){if("object"!=typeof t)throw Error(a+"Object expected: "+t);if(t.hasOwnProperty(e="DECIMAL_PLACES")&&(g(r=t[e],0,d,e),M=r),t.hasOwnProperty(e="ROUNDING_MODE")&&(g(r=t[e],0,8,e),k=r),t.hasOwnProperty(e="EXPONENTIAL_AT")&&((r=t[e])&&r.pop?(g(r[0],-d,0,e),g(r[1],0,d,e),S=r[0],I=r[1]):(g(r,-d,d,e),S=-(I=r<0?-r:r))),t.hasOwnProperty(e="RANGE"))if((r=t[e])&&r.pop)g(r[0],-d,-1,e),g(r[1],1,d,e),P=r[0],N=r[1];else{if(g(r,-d,d,e),!r)throw Error(a+e+" cannot be zero: "+r);P=-(N=r<0?-r:r)}if(t.hasOwnProperty(e="CRYPTO")){if((r=t[e])!==!!r)throw Error(a+e+" not true or false: "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw C=!r,Error(a+"crypto unavailable");C=r}else C=r}if(t.hasOwnProperty(e="MODULO_MODE")&&(g(r=t[e],0,9,e),O=r),t.hasOwnProperty(e="POW_PRECISION")&&(g(r=t[e],0,d,e),T=r),t.hasOwnProperty(e="FORMAT")){if("object"!=typeof(r=t[e]))throw Error(a+e+" not an object: "+r);R=r}if(t.hasOwnProperty(e="ALPHABET")){if("string"!=typeof(r=t[e])||/^.?$|[+\-.\s]|(.).*\1/.test(r))throw Error(a+e+" invalid: "+r);L="0123456789"==r.slice(0,10),B=r}}return{DECIMAL_PLACES:M,ROUNDING_MODE:k,EXPONENTIAL_AT:[S,I],RANGE:[P,N],CRYPTO:C,MODULO_MODE:O,POW_PRECISION:T,FORMAT:R,ALPHABET:B}},Z.isBigNumber=function(t){if(!t||!0!==t._isBigNumber)return!1;if(!Z.DEBUG)return!0;var e,r,n=t.c,i=t.e,s=t.s;t:if("[object Array]"=={}.toString.call(n)){if((1===s||-1===s)&&i>=-d&&i<=d&&i===o(i)){if(0===n[0]){if(0===i&&1===n.length)return!0;break t}if((e=(i+1)%c)<1&&(e+=c),String(n[0]).length==e){for(e=0;e<n.length;e++)if((r=n[e])<0||r>=u||r!==o(r))break t;if(0!==r)return!0}}}else if(null===n&&null===i&&(null===s||1===s||-1===s))return!0;throw Error(a+"Invalid BigNumber: "+t)},Z.maximum=Z.max=function(){return F(arguments,E.lt)},Z.minimum=Z.min=function(){return F(arguments,E.gt)},Z.random=function(){var t=9007199254740992,e=Math.random()*t&2097151?function(){return o(Math.random()*t)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)};return function(t){var r,n,s,u,l,h=0,p=[],v=new Z(A);if(null==t?t=M:g(t,0,d),u=i(t/c),C)if(crypto.getRandomValues){for(r=crypto.getRandomValues(new Uint32Array(u*=2));h<u;)(l=131072*r[h]+(r[h+1]>>>11))>=9e15?(n=crypto.getRandomValues(new Uint32Array(2)),r[h]=n[0],r[h+1]=n[1]):(p.push(l%1e14),h+=2);h=u/2}else{if(!crypto.randomBytes)throw C=!1,Error(a+"crypto unavailable");for(r=crypto.randomBytes(u*=7);h<u;)(l=281474976710656*(31&r[h])+1099511627776*r[h+1]+4294967296*r[h+2]+16777216*r[h+3]+(r[h+4]<<16)+(r[h+5]<<8)+r[h+6])>=9e15?crypto.randomBytes(7).copy(r,h):(p.push(l%1e14),h+=7);h=u/7}if(!C)for(;h<u;)(l=e())<9e15&&(p[h++]=l%1e14);for(u=p[--h],t%=c,u&&t&&(l=f[c-t],p[h]=o(u/l)*l);0===p[h];p.pop(),h--);if(h<0)p=[s=0];else{for(s=-1;0===p[0];p.splice(0,1),s-=c);for(h=1,l=p[0];l>=10;l/=10,h++);h<c&&(s-=c-h)}return v.e=s,v.c=p,v}}(),Z.sum=function(){for(var t=1,e=arguments,r=new Z(e[0]);t<e.length;)r=r.plus(e[t++]);return r},_=function(){var t="0123456789";function e(t,e,r,n){for(var i,o,a=[0],s=0,u=t.length;s<u;){for(o=a.length;o--;a[o]*=e);for(a[0]+=n.indexOf(t.charAt(s++)),i=0;i<a.length;i++)a[i]>r-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/r|0,a[i]%=r)}return a.reverse()}return function(n,i,o,a,s){var u,c,l,f,h,d,p,m,g=n.indexOf("."),y=M,b=k;for(g>=0&&(f=T,T=0,n=n.replace(".",""),d=(m=new Z(i)).pow(n.length-g),T=f,m.c=e(w(v(d.c),d.e,"0"),10,o,t),m.e=m.c.length),l=f=(p=e(n,i,o,s?(u=B,t):(u=t,B))).length;0==p[--f];p.pop());if(!p[0])return u.charAt(0);if(g<0?--l:(d.c=p,d.e=l,d.s=a,p=(d=r(d,m,y,b,o)).c,h=d.r,l=d.e),g=p[c=l+y+1],f=o/2,h=h||c<0||null!=p[c+1],h=b<4?(null!=g||h)&&(0==b||b==(d.s<0?3:2)):g>f||g==f&&(4==b||h||6==b&&1&p[c-1]||b==(d.s<0?8:7)),c<1||!p[0])n=h?w(u.charAt(1),-y,u.charAt(0)):u.charAt(0);else{if(p.length=c,h)for(--o;++p[--c]>o;)p[c]=0,c||(++l,p=[1].concat(p));for(f=p.length;!p[--f];);for(g=0,n="";g<=f;n+=u.charAt(p[g++]));n=w(n,l,u.charAt(0))}return n}}(),r=function(){function t(t,e,r){var n,i,o,a,s=0,u=t.length,c=e%h,l=e/h|0;for(t=t.slice();u--;)s=((i=c*(o=t[u]%h)+(n=l*o+(a=t[u]/h|0)*c)%h*h+s)/r|0)+(n/h|0)+l*a,t[u]=i%r;return s&&(t=[s].concat(t)),t}function e(t,e,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(t[i]!=e[i]){o=t[i]>e[i]?1:-1;break}return o}function r(t,e,r,n){for(var i=0;r--;)t[r]-=i,i=t[r]<e[r]?1:0,t[r]=i*n+t[r]-e[r];for(;!t[0]&&t.length>1;t.splice(0,1));}return function(n,i,a,s,l){var f,h,d,v,m,g,y,b,w,_,x,E,A,M,k,S,I,P=n.s==i.s?1:-1,N=n.c,C=i.c;if(!N||!N[0]||!C||!C[0])return new Z(n.s&&i.s&&(N?!C||N[0]!=C[0]:C)?N&&0==N[0]||!C?0*P:P/0:NaN);for(w=(b=new Z(P)).c=[],P=a+(h=n.e-i.e)+1,l||(l=u,h=p(n.e/c)-p(i.e/c),P=P/c|0),d=0;C[d]==(N[d]||0);d++);if(C[d]>(N[d]||0)&&h--,P<0)w.push(1),v=!0;else{for(M=N.length,S=C.length,d=0,P+=2,(m=o(l/(C[0]+1)))>1&&(C=t(C,m,l),N=t(N,m,l),S=C.length,M=N.length),A=S,x=(_=N.slice(0,S)).length;x<S;_[x++]=0);I=C.slice(),I=[0].concat(I),k=C[0],C[1]>=l/2&&k++;do{if(m=0,(f=e(C,_,S,x))<0){if(E=_[0],S!=x&&(E=E*l+(_[1]||0)),(m=o(E/k))>1)for(m>=l&&(m=l-1),y=(g=t(C,m,l)).length,x=_.length;1==e(g,_,y,x);)m--,r(g,S<y?I:C,y,l),y=g.length,f=1;else 0==m&&(f=m=1),y=(g=C.slice()).length;if(y<x&&(g=[0].concat(g)),r(_,g,x,l),x=_.length,-1==f)for(;e(C,_,S,x)<1;)m++,r(_,S<x?I:C,x,l),x=_.length}else 0===f&&(m++,_=[0]);w[d++]=m,_[0]?_[x++]=N[A]||0:(_=[N[A]],x=1)}while((A++<M||null!=_[0])&&P--);v=null!=_[0],w[0]||w.splice(0,1)}if(l==u){for(d=1,P=w[0];P>=10;P/=10,d++);D(b,a+(b.e=d+h*c-1)+1,s,v)}else b.e=h,b.r=+v;return b}}(),x=function(){var t=/^(-?)0([xbo])(?=\w[\w.]*$)/i,e=/^([^.]+)\.$/,r=/^\.([^.]+)$/,n=/^-?(Infinity|NaN)$/,i=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(o,s,u,c){var l,f=u?s:s.replace(i,"");if(n.test(f))o.s=isNaN(f)?null:f<0?-1:1;else{if(!u&&(f=f.replace(t,(function(t,e,r){return l="x"==(r=r.toLowerCase())?16:"b"==r?2:8,c&&c!=l?t:e})),c&&(l=c,f=f.replace(e,"$1").replace(r,"0.$1")),s!=f))return new Z(f,l);if(Z.DEBUG)throw Error(a+"Not a"+(c?" base "+c:"")+" number: "+s);o.s=null}o.c=o.e=null}}(),E.absoluteValue=E.abs=function(){var t=new Z(this);return t.s<0&&(t.s=1),t},E.comparedTo=function(t,e){return m(this,new Z(t,e))},E.decimalPlaces=E.dp=function(t,e){var r,n,i,o=this;if(null!=t)return g(t,0,d),null==e?e=k:g(e,0,8),D(new Z(o),t+o.e+1,e);if(!(r=o.c))return null;if(n=((i=r.length-1)-p(this.e/c))*c,i=r[i])for(;i%10==0;i/=10,n--);return n<0&&(n=0),n},E.dividedBy=E.div=function(t,e){return r(this,new Z(t,e),M,k)},E.dividedToIntegerBy=E.idiv=function(t,e){return r(this,new Z(t,e),0,1)},E.exponentiatedBy=E.pow=function(t,e){var r,n,s,u,l,f,h,d,p=this;if((t=new Z(t)).c&&!t.isInteger())throw Error(a+"Exponent not an integer: "+H(t));if(null!=e&&(e=new Z(e)),l=t.e>14,!p.c||!p.c[0]||1==p.c[0]&&!p.e&&1==p.c.length||!t.c||!t.c[0])return d=new Z(Math.pow(+H(p),l?t.s*(2-y(t)):+H(t))),e?d.mod(e):d;if(f=t.s<0,e){if(e.c?!e.c[0]:!e.s)return new Z(NaN);(n=!f&&p.isInteger()&&e.isInteger())&&(p=p.mod(e))}else{if(t.e>9&&(p.e>0||p.e<-1||(0==p.e?p.c[0]>1||l&&p.c[1]>=24e7:p.c[0]<8e13||l&&p.c[0]<=9999975e7)))return u=p.s<0&&y(t)?-0:0,p.e>-1&&(u=1/u),new Z(f?1/u:u);T&&(u=i(T/c+2))}for(l?(r=new Z(.5),f&&(t.s=1),h=y(t)):h=(s=Math.abs(+H(t)))%2,d=new Z(A);;){if(h){if(!(d=d.times(p)).c)break;u?d.c.length>u&&(d.c.length=u):n&&(d=d.mod(e))}if(s){if(0===(s=o(s/2)))break;h=s%2}else if(D(t=t.times(r),t.e+1,1),t.e>14)h=y(t);else{if(0===(s=+H(t)))break;h=s%2}p=p.times(p),u?p.c&&p.c.length>u&&(p.c.length=u):n&&(p=p.mod(e))}return n?d:(f&&(d=A.div(d)),e?d.mod(e):u?D(d,T,k,undefined):d)},E.integerValue=function(t){var e=new Z(this);return null==t?t=k:g(t,0,8),D(e,e.e+1,t)},E.isEqualTo=E.eq=function(t,e){return 0===m(this,new Z(t,e))},E.isFinite=function(){return!!this.c},E.isGreaterThan=E.gt=function(t,e){return m(this,new Z(t,e))>0},E.isGreaterThanOrEqualTo=E.gte=function(t,e){return 1===(e=m(this,new Z(t,e)))||0===e},E.isInteger=function(){return!!this.c&&p(this.e/c)>this.c.length-2},E.isLessThan=E.lt=function(t,e){return m(this,new Z(t,e))<0},E.isLessThanOrEqualTo=E.lte=function(t,e){return-1===(e=m(this,new Z(t,e)))||0===e},E.isNaN=function(){return!this.s},E.isNegative=function(){return this.s<0},E.isPositive=function(){return this.s>0},E.isZero=function(){return!!this.c&&0==this.c[0]},E.minus=function(t,e){var r,n,i,o,a=this,s=a.s;if(e=(t=new Z(t,e)).s,!s||!e)return new Z(NaN);if(s!=e)return t.s=-e,a.plus(t);var l=a.e/c,f=t.e/c,h=a.c,d=t.c;if(!l||!f){if(!h||!d)return h?(t.s=-e,t):new Z(d?a:NaN);if(!h[0]||!d[0])return d[0]?(t.s=-e,t):new Z(h[0]?a:3==k?-0:0)}if(l=p(l),f=p(f),h=h.slice(),s=l-f){for((o=s<0)?(s=-s,i=h):(f=l,i=d),i.reverse(),e=s;e--;i.push(0));i.reverse()}else for(n=(o=(s=h.length)<(e=d.length))?s:e,s=e=0;e<n;e++)if(h[e]!=d[e]){o=h[e]<d[e];break}if(o&&(i=h,h=d,d=i,t.s=-t.s),(e=(n=d.length)-(r=h.length))>0)for(;e--;h[r++]=0);for(e=u-1;n>s;){if(h[--n]<d[n]){for(r=n;r&&!h[--r];h[r]=e);--h[r],h[n]+=u}h[n]-=d[n]}for(;0==h[0];h.splice(0,1),--f);return h[0]?U(t,h,f):(t.s=3==k?-1:1,t.c=[t.e=0],t)},E.modulo=E.mod=function(t,e){var n,i,o=this;return t=new Z(t,e),!o.c||!t.s||t.c&&!t.c[0]?new Z(NaN):!t.c||o.c&&!o.c[0]?new Z(o):(9==O?(i=t.s,t.s=1,n=r(o,t,0,3),t.s=i,n.s*=i):n=r(o,t,0,O),(t=o.minus(n.times(t))).c[0]||1!=O||(t.s=o.s),t)},E.multipliedBy=E.times=function(t,e){var r,n,i,o,a,s,l,f,d,v,m,g,y,b,w,_=this,x=_.c,E=(t=new Z(t,e)).c;if(!x||!E||!x[0]||!E[0])return!_.s||!t.s||x&&!x[0]&&!E||E&&!E[0]&&!x?t.c=t.e=t.s=null:(t.s*=_.s,x&&E?(t.c=[0],t.e=0):t.c=t.e=null),t;for(n=p(_.e/c)+p(t.e/c),t.s*=_.s,(l=x.length)<(v=E.length)&&(y=x,x=E,E=y,i=l,l=v,v=i),i=l+v,y=[];i--;y.push(0));for(b=u,w=h,i=v;--i>=0;){for(r=0,m=E[i]%w,g=E[i]/w|0,o=i+(a=l);o>i;)r=((f=m*(f=x[--a]%w)+(s=g*f+(d=x[a]/w|0)*m)%w*w+y[o]+r)/b|0)+(s/w|0)+g*d,y[o--]=f%b;y[o]=r}return r?++n:y.splice(0,1),U(t,y,n)},E.negated=function(){var t=new Z(this);return t.s=-t.s||null,t},E.plus=function(t,e){var r,n=this,i=n.s;if(e=(t=new Z(t,e)).s,!i||!e)return new Z(NaN);if(i!=e)return t.s=-e,n.minus(t);var o=n.e/c,a=t.e/c,s=n.c,l=t.c;if(!o||!a){if(!s||!l)return new Z(i/0);if(!s[0]||!l[0])return l[0]?t:new Z(s[0]?n:0*i)}if(o=p(o),a=p(a),s=s.slice(),i=o-a){for(i>0?(a=o,r=l):(i=-i,r=s),r.reverse();i--;r.push(0));r.reverse()}for((i=s.length)-(e=l.length)<0&&(r=l,l=s,s=r,e=i),i=0;e;)i=(s[--e]=s[e]+l[e]+i)/u|0,s[e]=u===s[e]?0:s[e]%u;return i&&(s=[i].concat(s),++a),U(t,s,a)},E.precision=E.sd=function(t,e){var r,n,i,o=this;if(null!=t&&t!==!!t)return g(t,1,d),null==e?e=k:g(e,0,8),D(new Z(o),t,e);if(!(r=o.c))return null;if(n=(i=r.length-1)*c+1,i=r[i]){for(;i%10==0;i/=10,n--);for(i=r[0];i>=10;i/=10,n++);}return t&&o.e+1>n&&(n=o.e+1),n},E.shiftedBy=function(t){return g(t,-9007199254740991,l),this.times("1e"+t)},E.squareRoot=E.sqrt=function(){var t,e,n,i,o,a=this,s=a.c,u=a.s,c=a.e,l=M+4,f=new Z("0.5");
2if(1!==u||!s||!s[0])return new Z(!u||u<0&&(!s||s[0])?NaN:s?a:1/0);if(0==(u=Math.sqrt(+H(a)))||u==1/0?(((e=v(s)).length+c)%2==0&&(e+="0"),u=Math.sqrt(+e),c=p((c+1)/2)-(c<0||c%2),n=new Z(e=u==1/0?"5e"+c:(e=u.toExponential()).slice(0,e.indexOf("e")+1)+c)):n=new Z(u+""),n.c[0])for((u=(c=n.e)+l)<3&&(u=0);;)if(o=n,n=f.times(o.plus(r(a,o,l,1))),v(o.c).slice(0,u)===(e=v(n.c)).slice(0,u)){if(n.e<c&&--u,"9999"!=(e=e.slice(u-3,u+1))&&(i||"4999"!=e)){+e&&(+e.slice(1)||"5"!=e.charAt(0))||(D(n,n.e+M+2,1),t=!n.times(n).eq(a));break}if(!i&&(D(o,o.e+M+2,0),o.times(o).eq(a))){n=o;break}l+=4,u+=4,i=1}return D(n,n.e+M+1,k,t)},E.toExponential=function(t,e){return null!=t&&(g(t,0,d),t++),j(this,t,e,1)},E.toFixed=function(t,e){return null!=t&&(g(t,0,d),t=t+this.e+1),j(this,t,e)},E.toFormat=function(t,e,r){var n,i=this;if(null==r)null!=t&&e&&"object"==typeof e?(r=e,e=null):t&&"object"==typeof t?(r=t,t=e=null):r=R;else if("object"!=typeof r)throw Error(a+"Argument not an object: "+r);if(n=i.toFixed(t,e),i.c){var o,s=n.split("."),u=+r.groupSize,c=+r.secondaryGroupSize,l=r.groupSeparator||"",f=s[0],h=s[1],d=i.s<0,p=d?f.slice(1):f,v=p.length;if(c&&(o=u,u=c,c=o,v-=o),u>0&&v>0){for(o=v%u||u,f=p.substr(0,o);o<v;o+=u)f+=l+p.substr(o,u);c>0&&(f+=l+p.slice(o)),d&&(f="-"+f)}n=h?f+(r.decimalSeparator||"")+((c=+r.fractionGroupSize)?h.replace(new RegExp("\\d{"+c+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):h):f}return(r.prefix||"")+n+(r.suffix||"")},E.toFraction=function(t){var e,n,i,o,s,u,l,h,d,p,m,g,y=this,b=y.c;if(null!=t&&(!(l=new Z(t)).isInteger()&&(l.c||1!==l.s)||l.lt(A)))throw Error(a+"Argument "+(l.isInteger()?"out of range: ":"not an integer: ")+H(l));if(!b)return new Z(y);for(e=new Z(A),d=n=new Z(A),i=h=new Z(A),g=v(b),s=e.e=g.length-y.e-1,e.c[0]=f[(u=s%c)<0?c+u:u],t=!t||l.comparedTo(e)>0?s>0?e:d:l,u=N,N=1/0,l=new Z(g),h.c[0]=0;p=r(l,e,0,1),1!=(o=n.plus(p.times(i))).comparedTo(t);)n=i,i=o,d=h.plus(p.times(o=d)),h=o,e=l.minus(p.times(o=e)),l=o;return o=r(t.minus(n),i,0,1),h=h.plus(o.times(d)),n=n.plus(o.times(i)),h.s=d.s=y.s,m=r(d,i,s*=2,k).minus(y).abs().comparedTo(r(h,n,s,k).minus(y).abs())<1?[d,i]:[h,n],N=u,m},E.toNumber=function(){return+H(this)},E.toPrecision=function(t,e){return null!=t&&g(t,1,d),j(this,t,e,2)},E.toString=function(t){var e,r=this,n=r.s,i=r.e;return null===i?n?(e="Infinity",n<0&&(e="-"+e)):e="NaN":(null==t?e=i<=S||i>=I?b(v(r.c),i):w(v(r.c),i,"0"):10===t&&L?e=w(v((r=D(new Z(r),M+i+1,k)).c),r.e,"0"):(g(t,2,B.length,"Base"),e=_(w(v(r.c),i,"0"),10,t,n,!0)),n<0&&r.c[0]&&(e="-"+e)),e},E.valueOf=E.toJSON=function(){return H(this)},E._isBigNumber=!0,E[Symbol.toStringTag]="BigNumber",E[Symbol.for("nodejs.util.inspect.custom")]=E.valueOf,null!=e&&Z.set(e),Z}();e.Z=_},57810:function(t,e,r){"use strict";r.d(e,{nK:function(){return x},U2:function(){return v},fZ:function(){return _}});var n=r(37762),i=r(28664),o=r(60136),a=r(29388),s=r(15671),u=r(43144);function c(){}function l(t){return t()}function f(t){t.forEach(l)}function h(t){return"function"===typeof t}function d(t){return 0===Object.keys(t).length}function p(t){if(null==t)return c;for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];var i=t.subscribe.apply(t,r);return i.unsubscribe?function(){return i.unsubscribe()}:i}function v(t){var e;return p(t,(function(t){return e=t}))(),e}new Set;var m="undefined"!==typeof window?window:"undefined"!==typeof globalThis?globalThis:global,g=function(){function t(e){(0,s.Z)(this,t),this.options=e,this._listeners="WeakMap"in m?new WeakMap:void 0}return(0,u.Z)(t,[{key:"observe",value:function(t,e){var r=this;return this._listeners.set(t,e),this._getObserver().observe(t,this.options),function(){r._listeners.delete(t),r._observer.unobserve(t)}}},{key:"_getObserver",value:function(){var e,r=this;return null!==(e=this._observer)&&void 0!==e?e:this._observer=new ResizeObserver((function(e){var i,o,a=(0,n.Z)(e);try{for(a.s();!(o=a.n()).done;){var s=o.value;t.entries.set(s.target,s),null===(i=r._listeners.get(s.target))||void 0===i||i(s)}}catch(u){a.e(u)}finally{a.f()}}))}}]),t}();g.entries="WeakMap"in m?new WeakMap:void 0;new Map;var y=[];new Set;new Set;new Set([].concat(["allowfullscreen","allowpaymentrequest","async","autofocus","auto
2play","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"]));function b(t,e){var r=t.$$;null!==r.fragment&&(!function(t){var e=[],r=[];y.forEach((function(n){return-1===t.indexOf(n)?e.push(n):r.push(n)})),r.forEach((function(t){return t()})),y=e}(r.after_update),f(r.on_destroy),r.fragment&&r.fragment.d(e),r.on_destroy=r.fragment=null,r.ctx=[])}"function"===typeof HTMLElement&&HTMLElement;var w=[];function _(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c,i=new Set;function o(r){if(f=r,((l=t)!=l?f==f:l!==f||l&&"object"===typeof l||"function"===typeof l)&&(t=r,e)){var o,a=!w.length,s=(0,n.Z)(i);try{for(s.s();!(o=s.n()).done;){var u=o.value;u[1](),w.push(u,t)}}catch(h){s.e(h)}finally{s.f()}if(a){for(var c=0;c<w.length;c+=2)w[c][0](w[c+1]);w.length=0}}var l,f}return{set:o,update:function(e){o(e(t))},subscribe:function(n){var a=[n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:c];return i.add(a),1===i.size&&(e=r(o)||c),n(t),function(){i.delete(a),0===i.size&&e&&(e(),e=null)}}}}function x(t,e,r){var n,i=!Array.isArray(t),o=i?[t]:t,a=e.length<2;return n=function(t){var r=!1,n=[],s=0,u=c,l=function(){if(!s){u();var r=e(i?n[0]:n,t);a?t(r):u=h(r)?r:c}},d=o.map((function(t,e){return p(t,(function(t){n[e]=t,s&=~(1<<e),r&&l()}),(function(){s|=1<<e}))}));return r=!0,l(),function(){f(d),u(),r=!1}},{subscribe:_(r,n).subscribe}}},95330:function(t,e,r){"use strict";r.d(e,{CR:function(){return c},FC:function(){return h},Jh:function(){return s},KL:function(){return d},XA:function(){return u},ZT:function(){return i},ev:function(){return l},mG:function(){return a},pi:function(){return o},qq:function(){return f}});
2var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)};function i(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var o=function(){return o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};function a(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{u(n.next(t))}catch(e){o(e)}}function s(t){try{u(n.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))}function s(t,e){var r,n,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(s){return function(u){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(u){s=[6,u],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}Object.create;function u(t){var e="function"===typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function c(t,e){var r="function"===typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(s){i={error:s}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function l(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}function f(t){return this instanceof f?(this.v=t,this):new f(t)}function h(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(t,e||[]),o=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(t){i[t]&&(n[t]=function(e){return new Promise((function(r,n){o.push([t,e,r,n])>1||s(t,e)}))})}function s(t,e){try{(r=i[t](e)).value instanceof f?Promise.resolve(r.value.v).then(u,c):l(o[0][2],r)}catch(n){l(o[0][3],n)}var r}function u(t){s("next",t)}function c(t){s("throw",t)}function l(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[0][1])}}function d(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,r=t[Symbol.asyncIterator];return r?r.call(t):(t=u(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(r){e[r]=t[r]&&function(e){return new Promise((function(n,i){(function(t,e,r,n){Promise.resolve(n).then((function(e){t({value:e,done:r})}),e)})(n,i,(e=t[r](e)).done,e.value)}))}}}Object.create}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.