Files
Administrator a0720d80dc fefdwef
2025-11-12 12:54:37 +08:00

5 lines
562 KiB
JavaScript
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

LavaPack.loadBundle([[543,{"./_version":535,"./base-provider":538,"./formatter":544,"@ethersproject/abstract-provider":487,"@ethersproject/bignumber":498,"@ethersproject/bytes":500,"@ethersproject/logger":528,"@ethersproject/properties":534,"@ethersproject/random":557,"@ethersproject/web":583},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))},s=this&&this.__generator||function(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.FallbackProvider=void 0;var a=e("@ethersproject/abstract-provider"),c=e("@ethersproject/bignumber"),u=e("@ethersproject/bytes"),l=e("@ethersproject/properties"),f=e("@ethersproject/random"),d=e("@ethersproject/web"),h=e("./base-provider"),p=e("./formatter"),m=e("@ethersproject/logger"),_=e("./_version"),g=new m.Logger(_.version);function E(){return(new Date).getTime()}function A(e){for(var t=null,r=0;r<e.length;r++){var n=e[r];if(null==n)return null;t?t.name===n.name&&t.chainId===n.chainId&&(t.ensAddress===n.ensAddress||null==t.ensAddress&&null==n.ensAddress)||g.throwArgumentError("provider mismatch","networks",e):t=n}return t}function T(e,t){e=e.slice().sort();var r=Math.floor(e.length/2);if(e.length%2)return e[r];var n=e[r-1],o=e[r];return null!=t&&Math.abs(n-o)>t?null:(n+o)/2}function b(e){if(null===e)return"null";if("number"==typeof e||"boolean"==typeof e)return JSON.stringify(e);if("string"==typeof e)return e;if(c.BigNumber.isBigNumber(e))return e.toString();if(Array.isArray(e))return JSON.stringify(e.map((function(e){return b(e)})));if("object"==typeof e){var t=Object.keys(e);return t.sort(),"{"+t.map((function(t){var r=e[t];return r="function"==typeof r?"[function]":b(r),JSON.stringify(t)+":"+r})).join(",")+"}"}throw new Error("unknown value type: "+typeof e)}var y=1;function v(e){var t=null,r=null,n=new Promise((function(n){t=function(){r&&(clearTimeout(r),r=null),n()},r=setTimeout(t,e)}));return{cancel:t,getPromise:function(){return n},wait:function(e){return n=n.then(e)}}}var I=[m.Logger.errors.CALL_EXCEPTION,m.Logger.errors.INSUFFICIENT_FUNDS,m.Logger.errors.NONCE_EXPIRED,m.Logger.errors.REPLACEMENT_UNDERPRICED,m.Logger.errors.UNPREDICTABLE_GAS_LIMIT],N=["address","args","errorArgs","errorSignature","method","transaction"];function w(e,t){var r={weight:e.weight};return Object.defineProperty(r,"provider",{get:function(){return e.provider}}),e.start&&(r.start=e.start),t&&(r.duration=t-e.start),e.done&&(e.error?r.error=e.error:r.result=e.result||null),r}function S(e,t,r){var n=b;switch(t){case"getBlockNumber":return function(t){var r=t.map((function(e){return e.result})),n=T(t.map((function(e){return e.result})),2);return null==n?undefined:(n=Math.ceil(n),r.indexOf(n+1)>=0&&n++,n>=e._highestBlockNumber&&(e._highestBlockNumber=n),e._highestBlockNumber)};case"getGasPrice":return function(e){var t=e.map((function(e){return e.result}));return t.sort(),t[Math.floor(t.length/2)]};case"getEtherPrice":return function(e){return T(e.map((function(e){return e.result})))};case"getBalance":case"getTransactionCount":case"getCode":case"getStorageAt":case"call":case"estimateGas":case"getLogs":break;case"getTransaction":case"getTransactionReceipt":n=function(e){return null==e?null:((e=(0,l.shallowCopy)(e)).confirmations=-1,b(e))};break;case"getBlock":n=r.includeTransactions?function(e){return null==e?null:((e=(0,l.shallowCopy)(e)).transactions=e.transactions.map((function(e){return(e=(0,l.shallowCopy)(e)).confirmations=-1,e})),b(e))}:function(e){return null==e?null:b(e)};break;default:throw new Error("unknown method: "+t)}return function(e,t){return function(r){var n={};r.forEach((function(t){var r=e(t.result);n[r]||(n[r]={count:0,result:t.result}),n[r].count++}));for(var o=Object.keys(n),i=0;i<o.length;i++){var s=n[o[i]];if(s.count>=t)return s.result}return undefined}}(n,e.quorum)}function O(e,t){return i(this,void 0,void 0,(function(){var r;return s(this,(function(n){return null!=(r=e.provider).blockNumber&&r.blockNumber>=t||-1===t?[2,r]:[2,(0,d.poll)((function(){return new Promise((function(n,o){setTimeout((function(){return r.blockNumber>=t?n(r):e.cancelled?n(null):n(undefined)}),0)}))}),{oncePoll:r})]}))}))}var R=function(e){function t(t,r){var n=this;0===t.length&&g.throwArgumentError("missing providers","providers",t);var o=t.map((function(e,t){if(a.Provider.isProvider(e)){var r=(0,p.isCommunityResource)(e)?2e3:750;return Object.freeze({provider:e,weight:1,stallTimeout:r,priority:1})}var n=(0,l.shallowCopy)(e);null==n.priority&&(n.priority=1),null==n.stallTimeout&&(n.stallTimeout=(0,p.isCommunityResource)(e)?2e3:750),null==n.weight&&(n.weight=1);var o=n.weight;return(o%1||o>512||o<1)&&g.throwArgumentError("invalid weight; must be integer in [1, 512]","providers["+t+"].weight",o),Object.freeze(n)})),i=o.reduce((function(e,t){return e+t.weight}),0);null==r?r=i/2:r>i&&g.throwArgumentError("quorum will always fail; larger than total weight","quorum",r);var s=A(o.map((function(e){return e.provider.network})));return null==s&&(s=new Promise((function(e,t){setTimeout((function(){n.detectNetwork().then(e,t)}),0)}))),n=e.call(this,s)||this,(0,l.defineReadOnly)(n,"providerConfigs",Object.freeze(o)),(0,l.defineReadOnly)(n,"quorum",r),n._highestBlockNumber=-1,n}return o(t,e),t.prototype.detectNetwork=function(){return i(this,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return[4,Promise.all(this.providerConfigs.map((function(e){return e.provider.getNetwork()})))];case 1:return[2,A(e.sent())]}}))}))},t.prototype.perform=function(e,t){return i(this,void 0,void 0,(function(){var r,n,o,a,c,d,h,p,_,A,T,b=this;return s(this,(function(R){switch(R.label){case 0:return"sendTransaction"!==e?[3,2]:[4,Promise.all(this.providerConfigs.map((function(e){return e.provider.sendTransaction(t.signedTransaction).then((function(e){return e.hash}),(function(e){return e}))})))];case 1:for(r=R.sent(),n=0;n<r.length;n++)if("string"==typeof(o=r[n]))return[2,o];throw r[0];case 2:return-1!==this._highestBlockNumber||"getBlockNumber"===e?[3,4]:[4,this.getBlockNumber()];case 3:R.sent(),R.label=4;case 4:a=S(this,e,t),(c=(0,f.shuffled)(this.providerConfigs.map(l.shallowCopy))).sort((function(e,t){return e.priority-t.priority})),d=this._highestBlockNumber,h=0,p=!0,_=function(){var r,n,o,f,_,T,S;return s(this,(function(R){switch(R.label){case 0:for(r=E(),n=c.filter((function(e){return e.runner&&r-e.start<e.stallTimeout})).reduce((function(e,t){return e+t.weight}),0),o=function(){var r=c[h++],o=y++;r.start=E(),r.staller=v(r.stallTimeout),r.staller.wait((function(){r.staller=null})),r.runner=function(e,t,r,n){return i(this,void 0,void 0,(function(){var o,i;return s(this,(function(s){switch(s.label){case 0:switch(o=e.provider,r){case"getBlockNumber":case"getGasPrice":return[3,1];case"getEtherPrice":return[3,2];case"getBalance":case"getTransactionCount":case"getCode":return[3,3];case"getStorageAt":return[3,6];case"getBlock":return[3,9];case"call":case"estimateGas":return[3,12];case"getTransaction":case"getTransactionReceipt":return[3,15];case"getLogs":return[3,16]}return[3,19];case 1:return[2,o[r]()];case 2:return o.getEtherPrice?[2,o.getEtherPrice()]:[3,19];case 3:return n.blockTag&&(0,u.isHexString)(n.blockTag)?[4,O(e,t)]:[3,5];case 4:o=s.sent(),s.label=5;case 5:return[2,o[r](n.address,n.blockTag||"latest")];case 6:return n.blockTag&&(0,u.isHexString)(n.blockTag)?[4,O(e,t)]:[3,8];case 7:o=s.sent(),s.label=8;case 8:return[2,o.getStorageAt(n.address,n.position,n.blockTag||"latest")];case 9:return n.blockTag&&(0,u.isHexString)(n.blockTag)?[4,O(e,t)]:[3,11];case 10:o=s.sent(),s.label=11;case 11:return[2,o[n.includeTransactions?"getBlockWithTransactions":"getBlock"](n.blockTag||n.blockHash)];case 12:return n.blockTag&&(0,u.isHexString)(n.blockTag)?[4,O(e,t)]:[3,14];case 13:o=s.sent(),s.label=14;case 14:return"call"===r&&n.blockTag?[2,o[r](n.transaction,n.blockTag)]:[2,o[r](n.transaction)];case 15:return[2,o[r](n.transactionHash)];case 16:return(i=n.filter).fromBlock&&(0,u.isHexString)(i.fromBlock)||i.toBlock&&(0,u.isHexString)(i.toBlock)?[4,O(e,t)]:[3,18];case 17:o=s.sent(),s.label=18;case 18:return[2,o.getLogs(i)];case 19:return[2,g.throwError("unknown method error",m.Logger.errors.UNKNOWN_ERROR,{method:r,params:n})]}}))}))}(r,d,e,t).then((function(n){r.done=!0,r.result=n,b.listenerCount("debug")&&b.emit("debug",{action:"request",rid:o,backend:w(r,E()),request:{method:e,params:(0,l.deepCopy)(t)},provider:b})}),(function(n){r.done=!0,r.error=n,b.listenerCount("debug")&&b.emit("debug",{action:"request",rid:o,backend:w(r,E()),request:{method:e,params:(0,l.deepCopy)(t)},provider:b})})),A.listenerCount("debug")&&A.emit("debug",{action:"request",rid:o,backend:w(r,null),request:{method:e,params:(0,l.deepCopy)(t)},provider:A}),n+=r.weight};n<A.quorum&&h<c.length;)o();return f=[],c.forEach((function(e){!e.done&&e.runner&&(f.push(e.runner),e.staller&&f.push(e.staller.getPromise()))})),f.length?[4,Promise.race(f)]:[3,2];case 1:R.sent(),R.label=2;case 2:return(_=c.filter((function(e){return e.done&&null==e.error}))).length>=A.quorum?(T=a(_))!==undefined?(c.forEach((function(e){e.staller&&e.staller.cancel(),e.cancelled=!0})),[2,{value:T}]):p?[3,4]:[4,v(100).getPromise()]:[3,5];case 3:R.sent(),R.label=4;case 4:p=!1,R.label=5;case 5:return S=c.reduce((function(e,t){if(!t.done||null==t.error)return e;var r=t.error.code;return I.indexOf(r)>=0&&(e[r]||(e[r]={error:t.error,weight:0}),e[r].weight+=t.weight),e}),{}),Object.keys(S).forEach((function(e){var t=S[e];if(!(t.weight<b.quorum)){c.forEach((function(e){e.staller&&e.staller.cancel(),e.cancelled=!0}));var r=t.error,n={};N.forEach((function(e){null!=r[e]&&(n[e]=r[e])})),g.throwError(r.reason||r.message,e,n)}})),0===c.filter((function(e){return!e.done})).length?[2,"break"]:[2]}}))},A=this,R.label=5;case 5:return[5,_()];case 6:return"object"==typeof(T=R.sent())?[2,T.value]:"break"===T?[3,7]:[3,5];case 7:return c.forEach((function(e){e.staller&&e.staller.cancel(),e.cancelled=!0})),[2,g.throwError("failed to meet quorum",m.Logger.errors.SERVER_ERROR,{method:e,params:t,results:c.map((function(e){return w(e)})),provider:this})]}}))}))},t}(h.BaseProvider);r.FallbackProvider=R}}},{package:"@ethersproject/providers",file:"node_modules/@ethersproject/providers/lib/fallback-provider.js"}],[544,{"./_version":535,"@ethersproject/address":491,"@ethersproject/bignumber":498,"@ethersproject/bytes":500,"@ethersproject/constants":504,"@ethersproject/logger":528,"@ethersproject/properties":534,"@ethersproject/transactions":576},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.showThrottleMessage=r.isCommunityResource=r.isCommunityResourcable=r.Formatter=void 0;var n=e("@ethersproject/address"),o=e("@ethersproject/bignumber"),i=e("@ethersproject/bytes"),s=e("@ethersproject/constants"),a=e("@ethersproject/properties"),c=e("@ethersproject/transactions"),u=e("@ethersproject/logger"),l=e("./_version"),f=new u.Logger(l.version),d=function(){function e(){this.formats=this.getDefaultFormats()}return e.prototype.getDefaultFormats=function(){var t=this,r={},n=this.address.bind(this),o=this.bigNumber.bind(this),i=this.blockTag.bind(this),s=this.data.bind(this),c=this.hash.bind(this),u=this.hex.bind(this),l=this.number.bind(this),f=this.type.bind(this);return r.transaction={hash:c,type:f,accessList:e.allowNull(this.accessList.bind(this),null),blockHash:e.allowNull(c,null),blockNumber:e.allowNull(l,null),transactionIndex:e.allowNull(l,null),confirmations:e.allowNull(l,null),from:n,gasPrice:e.allowNull(o),maxPriorityFeePerGas:e.allowNull(o),maxFeePerGas:e.allowNull(o),gasLimit:o,to:e.allowNull(n,null),value:o,nonce:l,data:s,r:e.allowNull(this.uint256),s:e.allowNull(this.uint256),v:e.allowNull(l),creates:e.allowNull(n,null),raw:e.allowNull(s)},r.transactionRequest={from:e.allowNull(n),nonce:e.allowNull(l),gasLimit:e.allowNull(o),gasPrice:e.allowNull(o),maxPriorityFeePerGas:e.allowNull(o),maxFeePerGas:e.allowNull(o),to:e.allowNull(n),value:e.allowNull(o),data:e.allowNull((function(e){return t.data(e,!0)})),type:e.allowNull(l),accessList:e.allowNull(this.accessList.bind(this),null)},r.receiptLog={transactionIndex:l,blockNumber:l,transactionHash:c,address:n,topics:e.arrayOf(c),data:s,logIndex:l,blockHash:c},r.receipt={to:e.allowNull(this.address,null),from:e.allowNull(this.address,null),contractAddress:e.allowNull(n,null),transactionIndex:l,root:e.allowNull(u),gasUsed:o,logsBloom:e.allowNull(s),blockHash:c,transactionHash:c,logs:e.arrayOf(this.receiptLog.bind(this)),blockNumber:l,confirmations:e.allowNull(l,null),cumulativeGasUsed:o,effectiveGasPrice:e.allowNull(o),status:e.allowNull(l),type:f},r.block={hash:e.allowNull(c),parentHash:c,number:l,timestamp:l,nonce:e.allowNull(u),difficulty:this.difficulty.bind(this),gasLimit:o,gasUsed:o,miner:e.allowNull(n),extraData:s,transactions:e.allowNull(e.arrayOf(c)),baseFeePerGas:e.allowNull(o)},r.blockWithTransactions=(0,a.shallowCopy)(r.block),r.blockWithTransactions.transactions=e.allowNull(e.arrayOf(this.transactionResponse.bind(this))),r.filter={fromBlock:e.allowNull(i,undefined),toBlock:e.allowNull(i,undefined),blockHash:e.allowNull(c,undefined),address:e.allowNull(n,undefined),topics:e.allowNull(this.topics.bind(this),undefined)},r.filterLog={blockNumber:e.allowNull(l),blockHash:e.allowNull(c),transactionIndex:l,removed:e.allowNull(this.boolean.bind(this)),address:n,data:e.allowFalsish(s,"0x"),topics:e.arrayOf(c),transactionHash:c,logIndex:l},r},e.prototype.accessList=function(e){return(0,c.accessListify)(e||[])},e.prototype.number=function(e){return"0x"===e?0:o.BigNumber.from(e).toNumber()},e.prototype.type=function(e){return"0x"===e||null==e?0:o.BigNumber.from(e).toNumber()},e.prototype.bigNumber=function(e){return o.BigNumber.from(e)},e.prototype.boolean=function(e){if("boolean"==typeof e)return e;if("string"==typeof e){if("true"===(e=e.toLowerCase()))return!0;if("false"===e)return!1}throw new Error("invalid boolean - "+e)},e.prototype.hex=function(e,t){return"string"==typeof e&&(t||"0x"===e.substring(0,2)||(e="0x"+e),(0,i.isHexString)(e))?e.toLowerCase():f.throwArgumentError("invalid hash","value",e)},e.prototype.data=function(e,t){var r=this.hex(e,t);if(r.length%2!=0)throw new Error("invalid data; odd-length - "+e);return r},e.prototype.address=function(e){return(0,n.getAddress)(e)},e.prototype.callAddress=function(e){if(!(0,i.isHexString)(e,32))return null;var t=(0,n.getAddress)((0,i.hexDataSlice)(e,12));return t===s.AddressZero?null:t},e.prototype.contractAddress=function(e){return(0,n.getContractAddress)(e)},e.prototype.blockTag=function(e){if(null==e)return"latest";if("earliest"===e)return"0x0";switch(e){case"earliest":return"0x0";case"latest":case"pending":case"safe":case"finalized":return e}if("number"==typeof e||(0,i.isHexString)(e))return(0,i.hexValue)(e);throw new Error("invalid blockTag")},e.prototype.hash=function(e,t){var r=this.hex(e,t);return 32!==(0,i.hexDataLength)(r)?f.throwArgumentError("invalid hash","value",e):r},e.prototype.difficulty=function(e){if(null==e)return null;var t=o.BigNumber.from(e);try{return t.toNumber()}catch(e){}return null},e.prototype.uint256=function(e){if(!(0,i.isHexString)(e))throw new Error("invalid uint256");return(0,i.hexZeroPad)(e,32)},e.prototype._block=function(t,r){null!=t.author&&null==t.miner&&(t.miner=t.author);var n=null!=t._difficulty?t._difficulty:t.difficulty,i=e.check(r,t);return i._difficulty=null==n?null:o.BigNumber.from(n),i},e.prototype.block=function(e){return this._block(e,this.formats.block)},e.prototype.blockWithTransactions=function(e){return this._block(e,this.formats.blockWithTransactions)},e.prototype.transactionRequest=function(t){return e.check(this.formats.transactionRequest,t)},e.prototype.transactionResponse=function(t){null!=t.gas&&null==t.gasLimit&&(t.gasLimit=t.gas),t.to&&o.BigNumber.from(t.to).isZero()&&(t.to="0x0000000000000000000000000000000000000000"),null!=t.input&&null==t.data&&(t.data=t.input),null==t.to&&null==t.creates&&(t.creates=this.contractAddress(t)),1!==t.type&&2!==t.type||null!=t.accessList||(t.accessList=[]);var r=e.check(this.formats.transaction,t);if(null!=t.chainId){var n=t.chainId;(0,i.isHexString)(n)&&(n=o.BigNumber.from(n).toNumber()),r.chainId=n}else{null==(n=t.networkId)&&null==r.v&&(n=t.chainId),(0,i.isHexString)(n)&&(n=o.BigNumber.from(n).toNumber()),"number"!=typeof n&&null!=r.v&&((n=(r.v-35)/2)<0&&(n=0),n=parseInt(n)),"number"!=typeof n&&(n=0),r.chainId=n}return r.blockHash&&"x"===r.blockHash.replace(/0/g,"")&&(r.blockHash=null),r},e.prototype.transaction=function(e){return(0,c.parse)(e)},e.prototype.receiptLog=function(t){return e.check(this.formats.receiptLog,t)},e.prototype.receipt=function(t){var r=e.check(this.formats.receipt,t);if(null!=r.root)if(r.root.length<=4){var n=o.BigNumber.from(r.root).toNumber();0===n||1===n?(null!=r.status&&r.status!==n&&f.throwArgumentError("alt-root-status/status mismatch","value",{root:r.root,status:r.status}),r.status=n,delete r.root):f.throwArgumentError("invalid alt-root-status","value.root",r.root)}else 66!==r.root.length&&f.throwArgumentError("invalid root hash","value.root",r.root);return null!=r.status&&(r.byzantium=!0),r},e.prototype.topics=function(e){var t=this;return Array.isArray(e)?e.map((function(e){return t.topics(e)})):null!=e?this.hash(e,!0):null},e.prototype.filter=function(t){return e.check(this.formats.filter,t)},e.prototype.filterLog=function(t){return e.check(this.formats.filterLog,t)},e.check=function(e,t){var r={};for(var n in e)try{var o=e[n](t[n]);o!==undefined&&(r[n]=o)}catch(e){throw e.checkKey=n,e.checkValue=t[n],e}return r},e.allowNull=function(e,t){return function(r){return null==r?t:e(r)}},e.allowFalsish=function(e,t){return function(r){return r?e(r):t}},e.arrayOf=function(e){return function(t){if(!Array.isArray(t))throw new Error("not an array");var r=[];return t.forEach((function(t){r.push(e(t))})),r}},e}();function h(e){return e&&"function"==typeof e.isCommunityResource}r.Formatter=d,r.isCommunityResourcable=h,r.isCommunityResource=function(e){return h(e)&&e.isCommunityResource()};var p=!1;r.showThrottleMessage=function(){p||(p=!0,console.log("========= NOTICE ========="),console.log("Request-Rate Exceeded (this message will not be repeated)"),console.log(""),console.log("The default API keys for each service are provided as a highly-throttled,"),console.log("community resource for low-traffic projects and early prototyping."),console.log(""),console.log("While your application will continue to function, we highly recommended"),console.log("signing up for your own API keys to improve performance, increase your"),console.log("request rate/limit and enable other perks, such as metrics and advanced APIs."),console.log(""),console.log("For more details: https://docs.ethers.io/api-keys/"),console.log("=========================="))}}}},{package:"@ethersproject/providers",file:"node_modules/@ethersproject/providers/lib/formatter.js"}],[545,{"./_version":535,"./alchemy-provider":536,"./ankr-provider":537,"./base-provider":538,"./cloudflare-provider":541,"./etherscan-provider":542,"./fallback-provider":543,"./formatter":544,"./infura-provider":546,"./ipc-provider":539,"./json-rpc-batch-provider":547,"./json-rpc-provider":548,"./nodesmith-provider":549,"./pocket-provider":550,"./url-json-rpc-provider":551,"./web3-provider":552,"./websocket-provider":553,"@ethersproject/abstract-provider":487,"@ethersproject/logger":528,"@ethersproject/networks":530},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Formatter=r.showThrottleMessage=r.isCommunityResourcable=r.isCommunityResource=r.getNetwork=r.getDefaultProvider=r.JsonRpcSigner=r.IpcProvider=r.WebSocketProvider=r.Web3Provider=r.StaticJsonRpcProvider=r.PocketProvider=r.NodesmithProvider=r.JsonRpcBatchProvider=r.JsonRpcProvider=r.InfuraWebSocketProvider=r.InfuraProvider=r.EtherscanProvider=r.CloudflareProvider=r.AnkrProvider=r.AlchemyWebSocketProvider=r.AlchemyProvider=r.FallbackProvider=r.UrlJsonRpcProvider=r.Resolver=r.BaseProvider=r.Provider=void 0;var n=e("@ethersproject/abstract-provider");Object.defineProperty(r,"Provider",{enumerable:!0,get:function(){return n.Provider}});var o=e("@ethersproject/networks");Object.defineProperty(r,"getNetwork",{enumerable:!0,get:function(){return o.getNetwork}});var i=e("./base-provider");Object.defineProperty(r,"BaseProvider",{enumerable:!0,get:function(){return i.BaseProvider}}),Object.defineProperty(r,"Resolver",{enumerable:!0,get:function(){return i.Resolver}});var s=e("./alchemy-provider");Object.defineProperty(r,"AlchemyProvider",{enumerable:!0,get:function(){return s.AlchemyProvider}}),Object.defineProperty(r,"AlchemyWebSocketProvider",{enumerable:!0,get:function(){return s.AlchemyWebSocketProvider}});var a=e("./ankr-provider");Object.defineProperty(r,"AnkrProvider",{enumerable:!0,get:function(){return a.AnkrProvider}});var c=e("./cloudflare-provider");Object.defineProperty(r,"CloudflareProvider",{enumerable:!0,get:function(){return c.CloudflareProvider}});var u=e("./etherscan-provider");Object.defineProperty(r,"EtherscanProvider",{enumerable:!0,get:function(){return u.EtherscanProvider}});var l=e("./fallback-provider");Object.defineProperty(r,"FallbackProvider",{enumerable:!0,get:function(){return l.FallbackProvider}});var f=e("./ipc-provider");Object.defineProperty(r,"IpcProvider",{enumerable:!0,get:function(){return f.IpcProvider}});var d=e("./infura-provider");Object.defineProperty(r,"InfuraProvider",{enumerable:!0,get:function(){return d.InfuraProvider}}),Object.defineProperty(r,"InfuraWebSocketProvider",{enumerable:!0,get:function(){return d.InfuraWebSocketProvider}});var h=e("./json-rpc-provider");Object.defineProperty(r,"JsonRpcProvider",{enumerable:!0,get:function(){return h.JsonRpcProvider}}),Object.defineProperty(r,"JsonRpcSigner",{enumerable:!0,get:function(){return h.JsonRpcSigner}});var p=e("./json-rpc-batch-provider");Object.defineProperty(r,"JsonRpcBatchProvider",{enumerable:!0,get:function(){return p.JsonRpcBatchProvider}});var m=e("./nodesmith-provider");Object.defineProperty(r,"NodesmithProvider",{enumerable:!0,get:function(){return m.NodesmithProvider}});var _=e("./pocket-provider");Object.defineProperty(r,"PocketProvider",{enumerable:!0,get:function(){return _.PocketProvider}});var g=e("./url-json-rpc-provider");Object.defineProperty(r,"StaticJsonRpcProvider",{enumerable:!0,get:function(){return g.StaticJsonRpcProvider}}),Object.defineProperty(r,"UrlJsonRpcProvider",{enumerable:!0,get:function(){return g.UrlJsonRpcProvider}});var E=e("./web3-provider");Object.defineProperty(r,"Web3Provider",{enumerable:!0,get:function(){return E.Web3Provider}});var A=e("./websocket-provider");Object.defineProperty(r,"WebSocketProvider",{enumerable:!0,get:function(){return A.WebSocketProvider}});var T=e("./formatter");Object.defineProperty(r,"Formatter",{enumerable:!0,get:function(){return T.Formatter}}),Object.defineProperty(r,"isCommunityResourcable",{enumerable:!0,get:function(){return T.isCommunityResourcable}}),Object.defineProperty(r,"isCommunityResource",{enumerable:!0,get:function(){return T.isCommunityResource}}),Object.defineProperty(r,"showThrottleMessage",{enumerable:!0,get:function(){return T.showThrottleMessage}});var b=e("@ethersproject/logger"),y=e("./_version"),v=new b.Logger(y.version);r.getDefaultProvider=function(e,t){if(null==e&&(e="homestead"),"string"==typeof e){var r=e.match(/^(ws|http)s?:/i);if(r)switch(r[1].toLowerCase()){case"http":case"https":return new h.JsonRpcProvider(e);case"ws":case"wss":return new A.WebSocketProvider(e);default:v.throwArgumentError("unsupported URL scheme","network",e)}}var n=(0,o.getNetwork)(e);return n&&n._defaultProvider||v.throwError("unsupported getDefaultProvider network",b.Logger.errors.NETWORK_ERROR,{operation:"getDefaultProvider",network:e}),n._defaultProvider({FallbackProvider:l.FallbackProvider,AlchemyProvider:s.AlchemyProvider,AnkrProvider:a.AnkrProvider,CloudflareProvider:c.CloudflareProvider,EtherscanProvider:u.EtherscanProvider,InfuraProvider:d.InfuraProvider,JsonRpcProvider:h.JsonRpcProvider,NodesmithProvider:m.NodesmithProvider,PocketProvider:_.PocketProvider,Web3Provider:E.Web3Provider,IpcProvider:f.IpcProvider},t)}}}},{package:"@ethersproject/providers",file:"node_modules/@ethersproject/providers/lib/index.js"}],[546,{"./_version":535,"./formatter":544,"./url-json-rpc-provider":551,"./websocket-provider":553,"@ethersproject/logger":528,"@ethersproject/properties":534},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.InfuraProvider=r.InfuraWebSocketProvider=void 0;var i=e("@ethersproject/properties"),s=e("./websocket-provider"),a=e("./formatter"),c=e("@ethersproject/logger"),u=e("./_version"),l=new c.Logger(u.version),f=e("./url-json-rpc-provider"),d="84842078b09946638c03157f83405213",h=function(e){function t(t,r){var n,o=new p(t,r),s=o.connection;s.password&&l.throwError("INFURA WebSocket project secrets unsupported",c.Logger.errors.UNSUPPORTED_OPERATION,{operation:"InfuraProvider.getWebSocketProvider()"});var a=s.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/");return n=e.call(this,a,t)||this,(0,i.defineReadOnly)(n,"apiKey",o.projectId),(0,i.defineReadOnly)(n,"projectId",o.projectId),(0,i.defineReadOnly)(n,"projectSecret",o.projectSecret),n}return o(t,e),t.prototype.isCommunityResource=function(){return this.projectId===d},t}(s.WebSocketProvider);r.InfuraWebSocketProvider=h;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.getWebSocketProvider=function(e,t){return new h(e,t)},t.getApiKey=function(e){var t={apiKey:d,projectId:d,projectSecret:null};return null==e||("string"==typeof e?t.projectId=e:null!=e.projectSecret?(l.assertArgument("string"==typeof e.projectId,"projectSecret requires a projectId","projectId",e.projectId),l.assertArgument("string"==typeof e.projectSecret,"invalid projectSecret","projectSecret","[REDACTED]"),t.projectId=e.projectId,t.projectSecret=e.projectSecret):e.projectId&&(t.projectId=e.projectId),t.apiKey=t.projectId),t},t.getUrl=function(e,t){var r=null;switch(e?e.name:"unknown"){case"homestead":r="mainnet.infura.io";break;case"goerli":r="goerli.infura.io";break;case"sepolia":r="sepolia.infura.io";break;case"matic":r="polygon-mainnet.infura.io";break;case"maticmum":r="polygon-mumbai.infura.io";break;case"optimism":r="optimism-mainnet.infura.io";break;case"optimism-goerli":r="optimism-goerli.infura.io";break;case"arbitrum":r="arbitrum-mainnet.infura.io";break;case"arbitrum-goerli":r="arbitrum-goerli.infura.io";break;default:l.throwError("unsupported network",c.Logger.errors.INVALID_ARGUMENT,{argument:"network",value:e})}var n={allowGzip:!0,url:"https://"+r+"/v3/"+t.projectId,throttleCallback:function(e,r){return t.projectId===d&&(0,a.showThrottleMessage)(),Promise.resolve(!0)}};return null!=t.projectSecret&&(n.user="",n.password=t.projectSecret),n},t.prototype.isCommunityResource=function(){return this.projectId===d},t}(f.UrlJsonRpcProvider);r.InfuraProvider=p}}},{package:"@ethersproject/providers",file:"node_modules/@ethersproject/providers/lib/infura-provider.js"}],[547,{"./json-rpc-provider":548,"@ethersproject/properties":534,"@ethersproject/web":583},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.JsonRpcBatchProvider=void 0;var i=e("@ethersproject/properties"),s=e("@ethersproject/web"),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.send=function(e,t){var r=this,n={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};null==this._pendingBatch&&(this._pendingBatch=[]);var o={request:n,resolve:null,reject:null},a=new Promise((function(e,t){o.resolve=e,o.reject=t}));return this._pendingBatch.push(o),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout((function(){var e=r._pendingBatch;r._pendingBatch=null,r._pendingBatchAggregator=null;var t=e.map((function(e){return e.request}));return r.emit("debug",{action:"requestBatch",request:(0,i.deepCopy)(t),provider:r}),(0,s.fetchJson)(r.connection,JSON.stringify(t)).then((function(n){r.emit("debug",{action:"response",request:t,response:n,provider:r}),e.forEach((function(e,t){var r=n[t];if(r.error){var o=new Error(r.error.message);o.code=r.error.code,o.data=r.error.data,e.reject(o)}else e.resolve(r.result)}))}),(function(n){r.emit("debug",{action:"response",error:n,request:t,provider:r}),e.forEach((function(e){e.reject(n)}))}))}),10)),a},t}(e("./json-rpc-provider").JsonRpcProvider);r.JsonRpcBatchProvider=a}}},{package:"@ethersproject/providers",file:"node_modules/@ethersproject/providers/lib/json-rpc-batch-provider.js"}],[548,{"./_version":535,"./base-provider":538,"@ethersproject/abstract-signer":489,"@ethersproject/bignumber":498,"@ethersproject/bytes":500,"@ethersproject/hash":513,"@ethersproject/logger":528,"@ethersproject/properties":534,"@ethersproject/strings":573,"@ethersproject/transactions":576,"@ethersproject/web":583},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))},s=this&&this.__generator||function(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.JsonRpcProvider=r.JsonRpcSigner=void 0;var a=e("@ethersproject/abstract-signer"),c=e("@ethersproject/bignumber"),u=e("@ethersproject/bytes"),l=e("@ethersproject/hash"),f=e("@ethersproject/properties"),d=e("@ethersproject/strings"),h=e("@ethersproject/transactions"),p=e("@ethersproject/web"),m=e("@ethersproject/logger"),_=e("./_version"),g=new m.Logger(_.version),E=e("./base-provider"),A=["call","estimateGas"];function T(e,t){if(null==e)return null;if("string"==typeof e.message&&e.message.match("reverted")){var r=(0,u.isHexString)(e.data)?e.data:null;if(!t||r)return{message:e.message,data:r}}if("object"==typeof e){for(var n in e){var o=T(e[n],t);if(o)return o}return null}if("string"==typeof e)try{return T(JSON.parse(e),t)}catch(e){}return null}function b(e,t,r){var n=r.transaction||r.signedTransaction;if("call"===e){var o;if(o=T(t,!0))return o.data;g.throwError("missing revert data in call exception; Transaction reverted without a reason string",m.Logger.errors.CALL_EXCEPTION,{data:"0x",transaction:n,error:t})}"estimateGas"===e&&(null==(o=T(t.body,!1))&&(o=T(t,!1)),o&&g.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",m.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{reason:o.message,method:e,transaction:n,error:t}));var i=t.message;throw t.code===m.Logger.errors.SERVER_ERROR&&t.error&&"string"==typeof t.error.message?i=t.error.message:"string"==typeof t.body?i=t.body:"string"==typeof t.responseText&&(i=t.responseText),(i=(i||"").toLowerCase()).match(/insufficient funds|base fee exceeds gas limit|InsufficientFunds/i)&&g.throwError("insufficient funds for intrinsic transaction cost",m.Logger.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:n}),i.match(/nonce (is )?too low/i)&&g.throwError("nonce has already been used",m.Logger.errors.NONCE_EXPIRED,{error:t,method:e,transaction:n}),i.match(/replacement transaction underpriced|transaction gas price.*too low/i)&&g.throwError("replacement fee too low",m.Logger.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:n}),i.match(/only replay-protected/i)&&g.throwError("legacy pre-eip-155 transactions not supported",m.Logger.errors.UNSUPPORTED_OPERATION,{error:t,method:e,transaction:n}),A.indexOf(e)>=0&&i.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&g.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",m.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:n}),t}function y(e){return new Promise((function(t){setTimeout(t,e)}))}function v(e){if(e.error){var t=new Error(e.error.message);throw t.code=e.error.code,t.data=e.error.data,t}return e.result}function I(e){return e?e.toLowerCase():e}var N={},w=function(e){function t(t,r,n){var o=e.call(this)||this;if(t!==N)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");return(0,f.defineReadOnly)(o,"provider",r),null==n&&(n=0),"string"==typeof n?((0,f.defineReadOnly)(o,"_address",o.provider.formatter.address(n)),(0,f.defineReadOnly)(o,"_index",null)):"number"==typeof n?((0,f.defineReadOnly)(o,"_index",n),(0,f.defineReadOnly)(o,"_address",null)):g.throwArgumentError("invalid address or index","addressOrIndex",n),o}return o(t,e),t.prototype.connect=function(e){return g.throwError("cannot alter JSON-RPC Signer connection",m.Logger.errors.UNSUPPORTED_OPERATION,{operation:"connect"})},t.prototype.connectUnchecked=function(){return new S(N,this.provider,this._address||this._index)},t.prototype.getAddress=function(){var e=this;return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then((function(t){return t.length<=e._index&&g.throwError("unknown account #"+e._index,m.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),e.provider.formatter.address(t[e._index])}))},t.prototype.sendUncheckedTransaction=function(e){var t=this;e=(0,f.shallowCopy)(e);var r=this.getAddress().then((function(e){return e&&(e=e.toLowerCase()),e}));if(null==e.gasLimit){var n=(0,f.shallowCopy)(e);n.from=r,e.gasLimit=this.provider.estimateGas(n)}return null!=e.to&&(e.to=Promise.resolve(e.to).then((function(e){return i(t,void 0,void 0,(function(){var t;return s(this,(function(r){switch(r.label){case 0:return null==e?[2,null]:[4,this.provider.resolveName(e)];case 1:return null==(t=r.sent())&&g.throwArgumentError("provided ENS name resolves to null","tx.to",e),[2,t]}}))}))}))),(0,f.resolveProperties)({tx:(0,f.resolveProperties)(e),sender:r}).then((function(r){var n=r.tx,o=r.sender;null!=n.from?n.from.toLowerCase()!==o&&g.throwArgumentError("from address mismatch","transaction",e):n.from=o;var i=t.provider.constructor.hexlifyTransaction(n,{from:!0});return t.provider.send("eth_sendTransaction",[i]).then((function(e){return e}),(function(e){return"string"==typeof e.message&&e.message.match(/user denied/i)&&g.throwError("user rejected transaction",m.Logger.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:n}),b("sendTransaction",e,i)}))}))},t.prototype.signTransaction=function(e){return g.throwError("signing transactions is unsupported",m.Logger.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})},t.prototype.sendTransaction=function(e){return i(this,void 0,void 0,(function(){var t,r,n,o=this;return s(this,(function(a){switch(a.label){case 0:return[4,this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval)];case 1:return t=a.sent(),[4,this.sendUncheckedTransaction(e)];case 2:r=a.sent(),a.label=3;case 3:return a.trys.push([3,5,,6]),[4,(0,p.poll)((function(){return i(o,void 0,void 0,(function(){var e;return s(this,(function(n){switch(n.label){case 0:return[4,this.provider.getTransaction(r)];case 1:return null===(e=n.sent())?[2,undefined]:[2,this.provider._wrapTransaction(e,r,t)]}}))}))}),{oncePoll:this.provider})];case 4:return[2,a.sent()];case 5:throw(n=a.sent()).transactionHash=r,n;case 6:return[2]}}))}))},t.prototype.signMessage=function(e){return i(this,void 0,void 0,(function(){var t,r,n;return s(this,(function(o){switch(o.label){case 0:return t="string"==typeof e?(0,d.toUtf8Bytes)(e):e,[4,this.getAddress()];case 1:r=o.sent(),o.label=2;case 2:return o.trys.push([2,4,,5]),[4,this.provider.send("personal_sign",[(0,u.hexlify)(t),r.toLowerCase()])];case 3:return[2,o.sent()];case 4:throw"string"==typeof(n=o.sent()).message&&n.message.match(/user denied/i)&&g.throwError("user rejected signing",m.Logger.errors.ACTION_REJECTED,{action:"signMessage",from:r,messageData:e}),n;case 5:return[2]}}))}))},t.prototype._legacySignMessage=function(e){return i(this,void 0,void 0,(function(){var t,r,n;return s(this,(function(o){switch(o.label){case 0:return t="string"==typeof e?(0,d.toUtf8Bytes)(e):e,[4,this.getAddress()];case 1:r=o.sent(),o.label=2;case 2:return o.trys.push([2,4,,5]),[4,this.provider.send("eth_sign",[r.toLowerCase(),(0,u.hexlify)(t)])];case 3:return[2,o.sent()];case 4:throw"string"==typeof(n=o.sent()).message&&n.message.match(/user denied/i)&&g.throwError("user rejected signing",m.Logger.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:r,messageData:e}),n;case 5:return[2]}}))}))},t.prototype._signTypedData=function(e,t,r){return i(this,void 0,void 0,(function(){var n,o,i,a=this;return s(this,(function(s){switch(s.label){case 0:return[4,l._TypedDataEncoder.resolveNames(e,t,r,(function(e){return a.provider.resolveName(e)}))];case 1:return n=s.sent(),[4,this.getAddress()];case 2:o=s.sent(),s.label=3;case 3:return s.trys.push([3,5,,6]),[4,this.provider.send("eth_signTypedData_v4",[o.toLowerCase(),JSON.stringify(l._TypedDataEncoder.getPayload(n.domain,t,n.value))])];case 4:return[2,s.sent()];case 5:throw"string"==typeof(i=s.sent()).message&&i.message.match(/user denied/i)&&g.throwError("user rejected signing",m.Logger.errors.ACTION_REJECTED,{action:"_signTypedData",from:o,messageData:{domain:n.domain,types:t,value:n.value}}),i;case 6:return[2]}}))}))},t.prototype.unlock=function(e){return i(this,void 0,void 0,(function(){var t,r;return s(this,(function(n){switch(n.label){case 0:return t=this.provider,[4,this.getAddress()];case 1:return r=n.sent(),[2,t.send("personal_unlockAccount",[r.toLowerCase(),e,null])]}}))}))},t}(a.Signer);r.JsonRpcSigner=w;var S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.sendTransaction=function(e){var t=this;return this.sendUncheckedTransaction(e).then((function(e){return{hash:e,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:function(r){return t.provider.waitForTransaction(e,r)}}}))},t}(w),O={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0},R=function(e){function t(t,r){var n=this,o=r;return null==o&&(o=new Promise((function(e,t){setTimeout((function(){n.detectNetwork().then((function(t){e(t)}),(function(e){t(e)}))}),0)}))),n=e.call(this,o)||this,t||(t=(0,f.getStatic)(n.constructor,"defaultUrl")()),"string"==typeof t?(0,f.defineReadOnly)(n,"connection",Object.freeze({url:t})):(0,f.defineReadOnly)(n,"connection",Object.freeze((0,f.shallowCopy)(t))),n._nextId=42,n}return o(t,e),Object.defineProperty(t.prototype,"_cache",{get:function(){return null==this._eventLoopCache&&(this._eventLoopCache={}),this._eventLoopCache},enumerable:!1,configurable:!0}),t.defaultUrl=function(){return"http://localhost:8545"},t.prototype.detectNetwork=function(){var e=this;return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout((function(){e._cache.detectNetwork=null}),0)),this._cache.detectNetwork},t.prototype._uncachedDetectNetwork=function(){return i(this,void 0,void 0,(function(){var e,t;return s(this,(function(r){switch(r.label){case 0:return[4,y(0)];case 1:r.sent(),e=null,r.label=2;case 2:return r.trys.push([2,4,,9]),[4,this.send("eth_chainId",[])];case 3:return e=r.sent(),[3,9];case 4:r.sent(),r.label=5;case 5:return r.trys.push([5,7,,8]),[4,this.send("net_version",[])];case 6:return e=r.sent(),[3,8];case 7:return r.sent(),[3,8];case 8:return[3,9];case 9:if(null!=e){t=(0,f.getStatic)(this.constructor,"getNetwork");try{return[2,t(c.BigNumber.from(e).toNumber())]}catch(t){return[2,g.throwError("could not detect network",m.Logger.errors.NETWORK_ERROR,{chainId:e,event:"invalidNetwork",serverError:t})]}}return[2,g.throwError("could not detect network",m.Logger.errors.NETWORK_ERROR,{event:"noNetwork"})]}}))}))},t.prototype.getSigner=function(e){return new w(N,this,e)},t.prototype.getUncheckedSigner=function(e){return this.getSigner(e).connectUnchecked()},t.prototype.listAccounts=function(){var e=this;return this.send("eth_accounts",[]).then((function(t){return t.map((function(t){return e.formatter.address(t)}))}))},t.prototype.send=function(e,t){var r=this,n={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:(0,f.deepCopy)(n),provider:this});var o=["eth_chainId","eth_blockNumber"].indexOf(e)>=0;if(o&&this._cache[e])return this._cache[e];var i=(0,p.fetchJson)(this.connection,JSON.stringify(n),v).then((function(e){return r.emit("debug",{action:"response",request:n,response:e,provider:r}),e}),(function(e){throw r.emit("debug",{action:"response",error:e,request:n,provider:r}),e}));return o&&(this._cache[e]=i,setTimeout((function(){r._cache[e]=null}),0)),i},t.prototype.prepareRequest=function(e,t){switch(e){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[I(t.address),t.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[I(t.address),t.blockTag]];case"getCode":return["eth_getCode",[I(t.address),t.blockTag]];case"getStorageAt":return["eth_getStorageAt",[I(t.address),(0,u.hexZeroPad)(t.position,32),t.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[t.signedTransaction]];case"getBlock":return t.blockTag?["eth_getBlockByNumber",[t.blockTag,!!t.includeTransactions]]:t.blockHash?["eth_getBlockByHash",[t.blockHash,!!t.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[t.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[t.transactionHash]];case"call":return["eth_call",[(0,f.getStatic)(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0}),t.blockTag]];case"estimateGas":return["eth_estimateGas",[(0,f.getStatic)(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0})]];case"getLogs":return t.filter&&null!=t.filter.address&&(t.filter.address=I(t.filter.address)),["eth_getLogs",[t.filter]]}return null},t.prototype.perform=function(e,t){return i(this,void 0,void 0,(function(){var r,n,o,i;return s(this,(function(s){switch(s.label){case 0:return"call"!==e&&"estimateGas"!==e?[3,2]:(r=t.transaction)&&null!=r.type&&c.BigNumber.from(r.type).isZero()?null!=r.maxFeePerGas||null!=r.maxPriorityFeePerGas?[3,2]:[4,this.getFeeData()]:[3,2];case 1:null==(n=s.sent()).maxFeePerGas&&null==n.maxPriorityFeePerGas&&((t=(0,f.shallowCopy)(t)).transaction=(0,f.shallowCopy)(r),delete t.transaction.type),s.label=2;case 2:null==(o=this.prepareRequest(e,t))&&g.throwError(e+" not implemented",m.Logger.errors.NOT_IMPLEMENTED,{operation:e}),s.label=3;case 3:return s.trys.push([3,5,,6]),[4,this.send(o[0],o[1])];case 4:return[2,s.sent()];case 5:return i=s.sent(),[2,b(e,i,t)];case 6:return[2]}}))}))},t.prototype._startEvent=function(t){"pending"===t.tag&&this._startPending(),e.prototype._startEvent.call(this,t)},t.prototype._startPending=function(){if(null==this._pendingFilter){var e=this,t=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=t,t.then((function(r){return function n(){e.send("eth_getFilterChanges",[r]).then((function(r){if(e._pendingFilter!=t)return null;var n=Promise.resolve();return r.forEach((function(t){e._emitted["t:"+t.toLowerCase()]="pending",n=n.then((function(){return e.getTransaction(t).then((function(t){return e.emit("pending",t),null}))}))})),n.then((function(){return y(1e3)}))})).then((function(){if(e._pendingFilter==t)return setTimeout((function(){n()}),0),null;e.send("eth_uninstallFilter",[r])})).catch((function(e){}))}(),r})).catch((function(e){}))}},t.prototype._stopEvent=function(t){"pending"===t.tag&&0===this.listenerCount("pending")&&(this._pendingFilter=null),e.prototype._stopEvent.call(this,t)},t.hexlifyTransaction=function(e,t){var r=(0,f.shallowCopy)(O);if(t)for(var n in t)t[n]&&(r[n]=!0);(0,f.checkProperties)(e,r);var o={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach((function(t){if(null!=e[t]){var r=(0,u.hexValue)(c.BigNumber.from(e[t]));"gasLimit"===t&&(t="gas"),o[t]=r}})),["from","to","data"].forEach((function(t){null!=e[t]&&(o[t]=(0,u.hexlify)(e[t]))})),e.accessList&&(o.accessList=(0,h.accessListify)(e.accessList)),o},t}(E.BaseProvider);r.JsonRpcProvider=R}}},{package:"@ethersproject/providers",file:"node_modules/@ethersproject/providers/lib/json-rpc-provider.js"}],[549,{"./_version":535,"./url-json-rpc-provider":551,"@ethersproject/logger":528},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.NodesmithProvider=void 0;var i=e("./url-json-rpc-provider"),s=e("@ethersproject/logger"),a=e("./_version"),c=new s.Logger(a.version),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.getApiKey=function(e){return e&&"string"!=typeof e&&c.throwArgumentError("invalid apiKey","apiKey",e),e||"ETHERS_JS_SHARED"},t.getUrl=function(e,t){c.warn("NodeSmith will be discontinued on 2019-12-20; please migrate to another platform.");var r=null;switch(e.name){case"homestead":r="https://ethereum.api.nodesmith.io/v1/mainnet/jsonrpc";break;case"ropsten":r="https://ethereum.api.nodesmith.io/v1/ropsten/jsonrpc";break;case"rinkeby":r="https://ethereum.api.nodesmith.io/v1/rinkeby/jsonrpc";break;case"goerli":r="https://ethereum.api.nodesmith.io/v1/goerli/jsonrpc";break;case"kovan":r="https://ethereum.api.nodesmith.io/v1/kovan/jsonrpc";break;default:c.throwArgumentError("unsupported network","network",arguments[0])}return r+"?apiKey="+t},t}(i.UrlJsonRpcProvider);r.NodesmithProvider=u}}},{package:"@ethersproject/providers",file:"node_modules/@ethersproject/providers/lib/nodesmith-provider.js"}],[550,{"./_version":535,"./url-json-rpc-provider":551,"@ethersproject/logger":528},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.PocketProvider=void 0;var i=e("@ethersproject/logger"),s=e("./_version"),a=new i.Logger(s.version),c=e("./url-json-rpc-provider"),u="62e1ad51b37b8e00394bda3b",l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.getApiKey=function(e){var t={applicationId:null,loadBalancer:!0,applicationSecretKey:null};return null==e?t.applicationId=u:"string"==typeof e?t.applicationId=e:null!=e.applicationSecretKey?(t.applicationId=e.applicationId,t.applicationSecretKey=e.applicationSecretKey):e.applicationId?t.applicationId=e.applicationId:a.throwArgumentError("unsupported PocketProvider apiKey","apiKey",e),t},t.getUrl=function(e,t){var r=null;switch(e?e.name:"unknown"){case"goerli":r="eth-goerli.gateway.pokt.network";break;case"homestead":r="eth-mainnet.gateway.pokt.network";break;case"kovan":r="poa-kovan.gateway.pokt.network";break;case"matic":r="poly-mainnet.gateway.pokt.network";break;case"maticmum":r="polygon-mumbai-rpc.gateway.pokt.network";break;case"rinkeby":r="eth-rinkeby.gateway.pokt.network";break;case"ropsten":r="eth-ropsten.gateway.pokt.network";break;default:a.throwError("unsupported network",i.Logger.errors.INVALID_ARGUMENT,{argument:"network",value:e})}var n={headers:{},url:"https://"+r+"/v1/lb/"+t.applicationId};return null!=t.applicationSecretKey&&(n.user="",n.password=t.applicationSecretKey),n},t.prototype.isCommunityResource=function(){return this.applicationId===u},t}(c.UrlJsonRpcProvider);r.PocketProvider=l}}},{package:"@ethersproject/providers",file:"node_modules/@ethersproject/providers/lib/pocket-provider.js"}],[551,{"./_version":535,"./json-rpc-provider":548,"@ethersproject/logger":528,"@ethersproject/properties":534},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))},s=this&&this.__generator||function(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.UrlJsonRpcProvider=r.StaticJsonRpcProvider=void 0;var a=e("@ethersproject/properties"),c=e("@ethersproject/logger"),u=e("./_version"),l=new c.Logger(u.version),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.detectNetwork=function(){return i(this,void 0,void 0,(function(){var t;return s(this,(function(r){switch(r.label){case 0:return null!=(t=this.network)?[3,2]:[4,e.prototype.detectNetwork.call(this)];case 1:(t=r.sent())||l.throwError("no network detected",c.Logger.errors.UNKNOWN_ERROR,{}),null==this._network&&((0,a.defineReadOnly)(this,"_network",t),this.emit("network",t,null)),r.label=2;case 2:return[2,t]}}))}))},t}(e("./json-rpc-provider").JsonRpcProvider);r.StaticJsonRpcProvider=f;var d=function(e){function t(r,n){var o,i=this.constructor;l.checkAbstract(i,t),r=(0,a.getStatic)(i,"getNetwork")(r),n=(0,a.getStatic)(i,"getApiKey")(n);var s=(0,a.getStatic)(i,"getUrl")(r,n);return o=e.call(this,s,r)||this,"string"==typeof n?(0,a.defineReadOnly)(o,"apiKey",n):null!=n&&Object.keys(n).forEach((function(e){(0,a.defineReadOnly)(o,e,n[e])})),o}return o(t,e),t.prototype._startPending=function(){l.warn("WARNING: API provider does not support pending filters")},t.prototype.isCommunityResource=function(){return!1},t.prototype.getSigner=function(e){return l.throwError("API provider does not support signing",c.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getSigner"})},t.prototype.listAccounts=function(){return Promise.resolve([])},t.getApiKey=function(e){return e},t.getUrl=function(e,t){return l.throwError("not implemented; sub-classes must override getUrl",c.Logger.errors.NOT_IMPLEMENTED,{operation:"getUrl"})},t}(f);r.UrlJsonRpcProvider=d}}},{package:"@ethersproject/providers",file:"node_modules/@ethersproject/providers/lib/url-json-rpc-provider.js"}],[5514,{buffer:4074},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
var n=e("buffer"),o=n.Buffer;function i(e,t){for(var r in e)t[r]=e[r]}function s(e,t,r){return o(e,t,r)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?t.exports=n:(i(n,r),r.Buffer=s),s.prototype=Object.create(o.prototype),i(o,s),s.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,r)},s.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=o(e);return t!==undefined?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}}}},{package:"koa>content-disposition>safe-buffer",file:"node_modules/safe-buffer/index.js"}],[5515,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const{hasOwnProperty:n}=Object.prototype,o=p();o.configure=p,o.stringify=o,o.default=o,r.stringify=o,r.configure=p,t.exports=o;const i=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(?:[^\ud800-\udbff]|^)[\udc00-\udfff]/;function s(e){return e.length<5e3&&!i.test(e)?`"${e}"`:JSON.stringify(e)}function a(e){if(e.length>200)return e.sort();for(let t=1;t<e.length;t++){const r=e[t];let n=t;for(;0!==n&&e[n-1]>r;)e[n]=e[n-1],n--;e[n]=r}return e}const c=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function u(e){return c.call(e)!==undefined&&0!==e.length}function l(e,t,r){e.length<r&&(r=e.length);const n=","===t?"":" ";let o=`"0":${n}${e[0]}`;for(let i=1;i<r;i++)o+=`${t}"${i}":${n}${e[i]}`;return o}function f(e,t){let r;if(n.call(e,t)&&(r=e[t],"boolean"!=typeof r))throw new TypeError(`The "${t}" argument must be of type boolean`);return r===undefined||r}function d(e,t){let r;if(n.call(e,t)){if(r=e[t],"number"!=typeof r)throw new TypeError(`The "${t}" argument must be of type number`);if(!Number.isInteger(r))throw new TypeError(`The "${t}" argument must be an integer`);if(r<1)throw new RangeError(`The "${t}" argument must be >= 1`)}return r===undefined?Infinity:r}function h(e){return 1===e?"1 item":`${e} items`}function p(e){const t=function(e){if(n.call(e,"strict")){const t=e.strict;if("boolean"!=typeof t)throw new TypeError('The "strict" argument must be of type boolean');if(t)return e=>{let t="Object can not safely be stringified. Received type "+typeof e;throw"function"!=typeof e&&(t+=` (${e.toString()})`),new Error(t)}}}(e={...e});t&&(e.bigint===undefined&&(e.bigint=!1),"circularValue"in e||(e.circularValue=Error));const r=function(e){if(n.call(e,"circularValue")){const t=e.circularValue;if("string"==typeof t)return`"${t}"`;if(null==t)return t;if(t===Error||t===TypeError)return{toString(){throw new TypeError("Converting circular structure to JSON")}};throw new TypeError('The "circularValue" argument must be of type string or the value null or undefined')}return'"[Circular]"'}(e),o=f(e,"bigint"),i=f(e,"deterministic"),c=d(e,"maximumDepth"),p=d(e,"maximumBreadth");function m(e,n,l,f,d,_){let g=n[e];switch("object"==typeof g&&null!==g&&"function"==typeof g.toJSON&&(g=g.toJSON(e)),g=f.call(n,e,g),typeof g){case"string":return s(g);case"object":{if(null===g)return"null";if(-1!==l.indexOf(g))return r;let e="",t=",";const n=_;if(Array.isArray(g)){if(0===g.length)return"[]";if(c<l.length+1)return'"[Array]"';l.push(g),""!==d&&(e+=`\n${_+=d}`,t=`,\n${_}`);const r=Math.min(g.length,p);let o=0;for(;o<r-1;o++){const r=m(String(o),g,l,f,d,_);e+=r!==undefined?r:"null",e+=t}const i=m(String(o),g,l,f,d,_);if(e+=i!==undefined?i:"null",g.length-1>p){e+=`${t}"... ${h(g.length-p-1)} not stringified"`}return""!==d&&(e+=`\n${n}`),l.pop(),`[${e}]`}let o=Object.keys(g);const E=o.length;if(0===E)return"{}";if(c<l.length+1)return'"[Object]"';let A="",T="";""!==d&&(t=`,\n${_+=d}`,A=" ");const b=Math.min(E,p);i&&!u(g)&&(o=a(o)),l.push(g);for(let r=0;r<b;r++){const n=o[r],i=m(n,g,l,f,d,_);i!==undefined&&(e+=`${T}${s(n)}:${A}${i}`,T=t)}if(E>p){e+=`${T}"...":${A}"${h(E-p)} not stringified"`,T=t}return""!==d&&T.length>1&&(e=`\n${_}${e}\n${n}`),l.pop(),`{${e}}`}case"number":return isFinite(g)?String(g):t?t(g):"null";case"boolean":return!0===g?"true":"false";case"undefined":return undefined;case"bigint":if(o)return String(g);default:return t?t(g):undefined}}function _(e,n,i,a,u,l){switch("object"==typeof n&&null!==n&&"function"==typeof n.toJSON&&(n=n.toJSON(e)),typeof n){case"string":return s(n);case"object":{if(null===n)return"null";if(-1!==i.indexOf(n))return r;const e=l;let t="",o=",";if(Array.isArray(n)){if(0===n.length)return"[]";if(c<i.length+1)return'"[Array]"';i.push(n),""!==u&&(t+=`\n${l+=u}`,o=`,\n${l}`);const r=Math.min(n.length,p);let s=0;for(;s<r-1;s++){const e=_(String(s),n[s],i,a,u,l);t+=e!==undefined?e:"null",t+=o}const f=_(String(s),n[s],i,a,u,l);if(t+=f!==undefined?f:"null",n.length-1>p){t+=`${o}"... ${h(n.length-p-1)} not stringified"`}return""!==u&&(t+=`\n${e}`),i.pop(),`[${t}]`}i.push(n);let f="";""!==u&&(o=`,\n${l+=u}`,f=" ");let d="";for(const e of a){const r=_(e,n[e],i,a,u,l);r!==undefined&&(t+=`${d}${s(e)}:${f}${r}`,d=o)}return""!==u&&d.length>1&&(t=`\n${l}${t}\n${e}`),i.pop(),`{${t}}`}case"number":return isFinite(n)?String(n):t?t(n):"null";case"boolean":return!0===n?"true":"false";case"undefined":return undefined;case"bigint":if(o)return String(n);default:return t?t(n):undefined}}function g(e,n,f,d,m){switch(typeof n){case"string":return s(n);case"object":{if(null===n)return"null";if("function"==typeof n.toJSON){if("object"!=typeof(n=n.toJSON(e)))return g(e,n,f,d,m);if(null===n)return"null"}if(-1!==f.indexOf(n))return r;const t=m;if(Array.isArray(n)){if(0===n.length)return"[]";if(c<f.length+1)return'"[Array]"';f.push(n);let e=`\n${m+=d}`;const r=`,\n${m}`,o=Math.min(n.length,p);let i=0;for(;i<o-1;i++){const t=g(String(i),n[i],f,d,m);e+=t!==undefined?t:"null",e+=r}const s=g(String(i),n[i],f,d,m);if(e+=s!==undefined?s:"null",n.length-1>p){e+=`${r}"... ${h(n.length-p-1)} not stringified"`}return e+=`\n${t}`,f.pop(),`[${e}]`}let o=Object.keys(n);const _=o.length;if(0===_)return"{}";if(c<f.length+1)return'"[Object]"';const E=`,\n${m+=d}`;let A="",T="",b=Math.min(_,p);u(n)&&(A+=l(n,E,p),o=o.slice(n.length),b-=n.length,T=E),i&&(o=a(o)),f.push(n);for(let e=0;e<b;e++){const t=o[e],r=g(t,n[t],f,d,m);r!==undefined&&(A+=`${T}${s(t)}: ${r}`,T=E)}if(_>p){A+=`${T}"...": "${h(_-p)} not stringified"`,T=E}return""!==T&&(A=`\n${m}${A}\n${t}`),f.pop(),`{${A}}`}case"number":return isFinite(n)?String(n):t?t(n):"null";case"boolean":return!0===n?"true":"false";case"undefined":return undefined;case"bigint":if(o)return String(n);default:return t?t(n):undefined}}function E(e,n,f){switch(typeof n){case"string":return s(n);case"object":{if(null===n)return"null";if("function"==typeof n.toJSON){if("object"!=typeof(n=n.toJSON(e)))return E(e,n,f);if(null===n)return"null"}if(-1!==f.indexOf(n))return r;let t="";if(Array.isArray(n)){if(0===n.length)return"[]";if(c<f.length+1)return'"[Array]"';f.push(n);const e=Math.min(n.length,p);let r=0;for(;r<e-1;r++){const e=E(String(r),n[r],f);t+=e!==undefined?e:"null",t+=","}const o=E(String(r),n[r],f);if(t+=o!==undefined?o:"null",n.length-1>p){t+=`,"... ${h(n.length-p-1)} not stringified"`}return f.pop(),`[${t}]`}let o=Object.keys(n);const d=o.length;if(0===d)return"{}";if(c<f.length+1)return'"[Object]"';let m="",_=Math.min(d,p);u(n)&&(t+=l(n,",",p),o=o.slice(n.length),_-=n.length,m=","),i&&(o=a(o)),f.push(n);for(let e=0;e<_;e++){const r=o[e],i=E(r,n[r],f);i!==undefined&&(t+=`${m}${s(r)}:${i}`,m=",")}if(d>p){t+=`${m}"...":"${h(d-p)} not stringified"`}return f.pop(),`{${t}}`}case"number":return isFinite(n)?String(n):t?t(n):"null";case"boolean":return!0===n?"true":"false";case"undefined":return undefined;case"bigint":if(o)return String(n);default:return t?t(n):undefined}}return function(e,t,r){if(arguments.length>1){let n="";if("number"==typeof r?n=" ".repeat(Math.min(r,10)):"string"==typeof r&&(n=r.slice(0,10)),null!=t){if("function"==typeof t)return m("",{"":e},[],t,n,"");if(Array.isArray(t))return _("",e,[],function(e){const t=new Set;for(const r of e)"string"!=typeof r&&"number"!=typeof r||t.add(String(r));return t}(t),n,"")}if(0!==n.length)return g("",e,[],n,"")}return E("",e,[])}}}}},{package:"@metamask/eth-json-rpc-middleware>safe-stable-stringify",file:"node_modules/safe-stable-stringify/index.js"}],[5516,{timers:5602},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(e){(function(){!function(n){const o=2147483647;function i(e){const t=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);let r=1779033703,n=3144134277,o=1013904242,i=2773480762,s=1359893119,a=2600822924,c=528734635,u=1541459225;const l=new Uint32Array(64);function f(e){let f=0,d=e.length;for(;d>=64;){let h,p,m,_,g,E=r,A=n,T=o,b=i,y=s,v=a,I=c,N=u;for(p=0;p<16;p++)m=f+4*p,l[p]=(255&e[m])<<24|(255&e[m+1])<<16|(255&e[m+2])<<8|255&e[m+3];for(p=16;p<64;p++)h=l[p-2],_=(h>>>17|h<<15)^(h>>>19|h<<13)^h>>>10,h=l[p-15],g=(h>>>7|h<<25)^(h>>>18|h<<14)^h>>>3,l[p]=(_+l[p-7]|0)+(g+l[p-16]|0)|0;for(p=0;p<64;p++)_=(((y>>>6|y<<26)^(y>>>11|y<<21)^(y>>>25|y<<7))+(y&v^~y&I)|0)+(N+(t[p]+l[p]|0)|0)|0,g=((E>>>2|E<<30)^(E>>>13|E<<19)^(E>>>22|E<<10))+(E&A^E&T^A&T)|0,N=I,I=v,v=y,y=b+_|0,b=T,T=A,A=E,E=_+g|0;r=r+E|0,n=n+A|0,o=o+T|0,i=i+b|0,s=s+y|0,a=a+v|0,c=c+I|0,u=u+N|0,f+=64,d-=64}}f(e);let d,h=e.length%64,p=e.length/536870912|0,m=e.length<<3,_=h<56?56:120,g=e.slice(e.length-h,e.length);for(g.push(128),d=h+1;d<_;d++)g.push(0);return g.push(p>>>24&255),g.push(p>>>16&255),g.push(p>>>8&255),g.push(p>>>0&255),g.push(m>>>24&255),g.push(m>>>16&255),g.push(m>>>8&255),g.push(m>>>0&255),f(g),[r>>>24&255,r>>>16&255,r>>>8&255,r>>>0&255,n>>>24&255,n>>>16&255,n>>>8&255,n>>>0&255,o>>>24&255,o>>>16&255,o>>>8&255,o>>>0&255,i>>>24&255,i>>>16&255,i>>>8&255,i>>>0&255,s>>>24&255,s>>>16&255,s>>>8&255,s>>>0&255,a>>>24&255,a>>>16&255,a>>>8&255,a>>>0&255,c>>>24&255,c>>>16&255,c>>>8&255,c>>>0&255,u>>>24&255,u>>>16&255,u>>>8&255,u>>>0&255]}function s(e,t,r){e=e.length<=64?e:i(e);const n=64+t.length+4,o=new Array(n),s=new Array(64);let a,c=[];for(a=0;a<64;a++)o[a]=54;for(a=0;a<e.length;a++)o[a]^=e[a];for(a=0;a<t.length;a++)o[64+a]=t[a];for(a=n-4;a<n;a++)o[a]=0;for(a=0;a<64;a++)s[a]=92;for(a=0;a<e.length;a++)s[a]^=e[a];function u(){for(let e=n-1;e>=n-4;e--){if(o[e]++,o[e]<=255)return;o[e]=0}}for(;r>=32;)u(),c=c.concat(i(s.concat(i(o)))),r-=32;return r>0&&(u(),c=c.concat(i(s.concat(i(o))).slice(0,r))),c}function a(e,t,r,n,o){let i;for(f(e,16*(2*r-1),o,0,16),i=0;i<2*r;i++)l(e,16*i,o,16),u(o,n),f(o,0,e,t+16*i,16);for(i=0;i<r;i++)f(e,t+2*i*16,e,16*i,16);for(i=0;i<r;i++)f(e,t+16*(2*i+1),e,16*(i+r),16)}function c(e,t){return e<<t|e>>>32-t}function u(e,t){f(e,0,t,0,16);for(let e=8;e>0;e-=2)t[4]^=c(t[0]+t[12],7),t[8]^=c(t[4]+t[0],9),t[12]^=c(t[8]+t[4],13),t[0]^=c(t[12]+t[8],18),t[9]^=c(t[5]+t[1],7),t[13]^=c(t[9]+t[5],9),t[1]^=c(t[13]+t[9],13),t[5]^=c(t[1]+t[13],18),t[14]^=c(t[10]+t[6],7),t[2]^=c(t[14]+t[10],9),t[6]^=c(t[2]+t[14],13),t[10]^=c(t[6]+t[2],18),t[3]^=c(t[15]+t[11],7),t[7]^=c(t[3]+t[15],9),t[11]^=c(t[7]+t[3],13),t[15]^=c(t[11]+t[7],18),t[1]^=c(t[0]+t[3],7),t[2]^=c(t[1]+t[0],9),t[3]^=c(t[2]+t[1],13),t[0]^=c(t[3]+t[2],18),t[6]^=c(t[5]+t[4],7),t[7]^=c(t[6]+t[5],9),t[4]^=c(t[7]+t[6],13),t[5]^=c(t[4]+t[7],18),t[11]^=c(t[10]+t[9],7),t[8]^=c(t[11]+t[10],9),t[9]^=c(t[8]+t[11],13),t[10]^=c(t[9]+t[8],18),t[12]^=c(t[15]+t[14],7),t[13]^=c(t[12]+t[15],9),t[14]^=c(t[13]+t[12],13),t[15]^=c(t[14]+t[13],18);for(let r=0;r<16;++r)e[r]+=t[r]}function l(e,t,r,n){for(let o=0;o<n;o++)r[o]^=e[t+o]}function f(e,t,r,n,o){for(;o--;)r[n++]=e[t++]}function d(e){if(!e||"number"!=typeof e.length)return!1;for(let t=0;t<e.length;t++){const r=e[t];if("number"!=typeof r||r%1||r<0||r>=256)return!1}return!0}function h(e,t){if("number"!=typeof e||e%1)throw new Error("invalid "+t);return e}function p(t,r,n,i,c,u,p){if(n=h(n,"N"),i=h(i,"r"),c=h(c,"p"),u=h(u,"dkLen"),0===n||n&n-1)throw new Error("N must be power of 2");if(n>o/128/i)throw new Error("N too large");if(i>o/128/c)throw new Error("r too large");if(!d(t))throw new Error("password must be an array or buffer");if(t=Array.prototype.slice.call(t),!d(r))throw new Error("salt must be an array or buffer");r=Array.prototype.slice.call(r);let m=s(t,r,128*c*i);const _=new Uint32Array(32*c*i);for(let e=0;e<_.length;e++){const t=4*e;_[e]=(255&m[t+3])<<24|(255&m[t+2])<<16|(255&m[t+1])<<8|255&m[t+0]}const g=new Uint32Array(64*i),E=new Uint32Array(32*i*n),A=32*i,T=new Uint32Array(16),b=new Uint32Array(16),y=c*n*2;let v,I,N=0,w=null,S=!1,O=0,R=0;const C=p?parseInt(1e3/i):4294967295,M=void 0!==e?e:setTimeout,P=function(){if(S)return p(new Error("cancelled"),N/y);let e;switch(O){case 0:I=32*R*i,f(_,I,g,0,A),O=1,v=0;case 1:e=n-v,e>C&&(e=C);for(let t=0;t<e;t++)f(g,0,E,(v+t)*A,A),a(g,A,i,T,b);if(v+=e,N+=e,p){const e=parseInt(1e3*N/y);if(e!==w){if(S=p(null,N/y),S)break;w=e}}if(v<n)break;v=0,O=2;case 2:e=n-v,e>C&&(e=C);for(let t=0;t<e;t++){const e=g[16*(2*i-1)]&n-1;l(E,e*A,g,A),a(g,A,i,T,b)}if(v+=e,N+=e,p){const e=parseInt(1e3*N/y);if(e!==w){if(S=p(null,N/y),S)break;w=e}}if(v<n)break;if(f(g,0,_,I,A),R++,R<c){O=0;break}m=[];for(let e=0;e<_.length;e++)m.push(255&_[e]),m.push(_[e]>>8&255),m.push(_[e]>>16&255),m.push(_[e]>>24&255);const r=s(t,m,u);return p&&p(null,1,r),r}p&&M(P)};if(!p)for(;;){const e=P();if(e!=undefined)return e}P()}const m={scrypt:function(e,t,r,n,o,i,s){return new Promise((function(a,c){let u=0;s&&s(0),p(e,t,r,n,o,i,(function(e,t,r){if(e)c(e);else if(r)s&&1!==u&&s(1),a(new Uint8Array(r));else if(s&&t!==u)return u=t,s(t)}))}))},syncScrypt:function(e,t,r,n,o,i){return new Uint8Array(p(e,t,r,n,o,i))}};void 0!==r?t.exports=m:"function"==typeof define&&define.amd?define(m):n&&(n.scrypt&&(n._scrypt=n.scrypt),n.scrypt=m)}(this)}).call(this)}).call(this,e("timers").setImmediate)}}},{package:"ethers>@ethersproject/json-wallets>scrypt-js",file:"node_modules/scrypt-js/scrypt.js"}],[5517,{"./lib":5519,"./lib/elliptic":5518},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=e("./lib")(e("./lib/elliptic"))}}},{package:"ganache>secp256k1",file:"node_modules/secp256k1/elliptic.js"}],[5518,{elliptic:4248},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=new(0,e("elliptic").ec)("secp256k1"),o=n.curve,i=o.n.constructor;function s(e){const t=e[0];switch(t){case 2:case 3:return 33!==e.length?null:function(e,t){let r=new i(t);if(r.cmp(o.p)>=0)return null;r=r.toRed(o.red);let s=r.redSqr().redIMul(r).redIAdd(o.b).redSqrt();3===e!==s.isOdd()&&(s=s.redNeg());const a=r.redSqr().redIMul(r);return s.redSqr().redISub(a.redIAdd(o.b)).isZero()?n.keyPair({pub:{x:r,y:s}}):null}(t,e.subarray(1,33));case 4:case 6:case 7:return 65!==e.length?null:function(e,t,r){let s=new i(t),a=new i(r);if(s.cmp(o.p)>=0||a.cmp(o.p)>=0)return null;if(s=s.toRed(o.red),a=a.toRed(o.red),(6===e||7===e)&&a.isOdd()!==(7===e))return null;const c=s.redSqr().redIMul(s);return a.redSqr().redISub(c.redIAdd(o.b)).isZero()?n.keyPair({pub:{x:s,y:a}}):null}(t,e.subarray(1,33),e.subarray(33,65));default:return null}}function a(e,t){const r=t.encode(null,33===e.length);for(let t=0;t<e.length;++t)e[t]=r[t]}t.exports={contextRandomize:()=>0,privateKeyVerify(e){const t=new i(e);return t.cmp(o.n)<0&&!t.isZero()?0:1},privateKeyNegate(e){const t=new i(e),r=o.n.sub(t).umod(o.n).toArrayLike(Uint8Array,"be",32);return e.set(r),0},privateKeyTweakAdd(e,t){const r=new i(t);if(r.cmp(o.n)>=0)return 1;if(r.iadd(new i(e)),r.cmp(o.n)>=0&&r.isub(o.n),r.isZero())return 1;const n=r.toArrayLike(Uint8Array,"be",32);return e.set(n),0},privateKeyTweakMul(e,t){let r=new i(t);if(r.cmp(o.n)>=0||r.isZero())return 1;r.imul(new i(e)),r.cmp(o.n)>=0&&(r=r.umod(o.n));const n=r.toArrayLike(Uint8Array,"be",32);return e.set(n),0},publicKeyVerify:e=>null===s(e)?1:0,publicKeyCreate(e,t){const r=new i(t);if(r.cmp(o.n)>=0||r.isZero())return 1;return a(e,n.keyFromPrivate(t).getPublic()),0},publicKeyConvert(e,t){const r=s(t);if(null===r)return 1;return a(e,r.getPublic()),0},publicKeyNegate(e,t){const r=s(t);if(null===r)return 1;const n=r.getPublic();return n.y=n.y.redNeg(),a(e,n),0},publicKeyCombine(e,t){const r=new Array(t.length);for(let e=0;e<t.length;++e)if(r[e]=s(t[e]),null===r[e])return 1;let n=r[0].getPublic();for(let e=1;e<r.length;++e)n=n.add(r[e].pub);return n.isInfinity()?2:(a(e,n),0)},publicKeyTweakAdd(e,t,r){const n=s(t);if(null===n)return 1;if((r=new i(r)).cmp(o.n)>=0)return 2;const c=n.getPublic().add(o.g.mul(r));return c.isInfinity()?2:(a(e,c),0)},publicKeyTweakMul(e,t,r){const n=s(t);if(null===n)return 1;if((r=new i(r)).cmp(o.n)>=0||r.isZero())return 2;return a(e,n.getPublic().mul(r)),0},signatureNormalize(e){const t=new i(e.subarray(0,32)),r=new i(e.subarray(32,64));return t.cmp(o.n)>=0||r.cmp(o.n)>=0?1:(1===r.cmp(n.nh)&&e.set(o.n.sub(r).toArrayLike(Uint8Array,"be",32),32),0)},signatureExport(e,t){const r=t.subarray(0,32),n=t.subarray(32,64);if(new i(r).cmp(o.n)>=0)return 1;if(new i(n).cmp(o.n)>=0)return 1;const{output:s}=e;let a=s.subarray(4,37);a[0]=0,a.set(r,1);let c=33,u=0;for(;c>1&&0===a[u]&&!(128&a[u+1]);--c,++u);if(a=a.subarray(u),128&a[0])return 1;if(c>1&&0===a[0]&&!(128&a[1]))return 1;let l=s.subarray(39,72);l[0]=0,l.set(n,1);let f=33,d=0;for(;f>1&&0===l[d]&&!(128&l[d+1]);--f,++d);return l=l.subarray(d),128&l[0]||f>1&&0===l[0]&&!(128&l[1])?1:(e.outputlen=6+c+f,s[0]=48,s[1]=e.outputlen-2,s[2]=2,s[3]=a.length,s.set(a,4),s[4+c]=2,s[5+c]=l.length,s.set(l,6+c),0)},signatureImport(e,t){if(t.length<8)return 1;if(t.length>72)return 1;if(48!==t[0])return 1;if(t[1]!==t.length-2)return 1;if(2!==t[2])return 1;const r=t[3];if(0===r)return 1;if(5+r>=t.length)return 1;if(2!==t[4+r])return 1;const n=t[5+r];if(0===n)return 1;if(6+r+n!==t.length)return 1;if(128&t[4])return 1;if(r>1&&0===t[4]&&!(128&t[5]))return 1;if(128&t[r+6])return 1;if(n>1&&0===t[r+6]&&!(128&t[r+7]))return 1;let s=t.subarray(4,4+r);if(33===s.length&&0===s[0]&&(s=s.subarray(1)),s.length>32)return 1;let a=t.subarray(6+r);if(33===a.length&&0===a[0]&&(a=a.slice(1)),a.length>32)throw new Error("S length is too long");let c=new i(s);c.cmp(o.n)>=0&&(c=new i(0));let u=new i(t.subarray(6+r));return u.cmp(o.n)>=0&&(u=new i(0)),e.set(c.toArrayLike(Uint8Array,"be",32),0),e.set(u.toArrayLike(Uint8Array,"be",32),32),0},ecdsaSign(e,t,r,s,a){if(a){const e=a;a=n=>{const o=e(t,r,null,s,n);if(!(o instanceof Uint8Array&&32===o.length))throw new Error("This is the way");return new i(o)}}const c=new i(r);if(c.cmp(o.n)>=0||c.isZero())return 1;let u;try{u=n.sign(t,r,{canonical:!0,k:a,pers:s})}catch(e){return 1}return e.signature.set(u.r.toArrayLike(Uint8Array,"be",32),0),e.signature.set(u.s.toArrayLike(Uint8Array,"be",32),32),e.recid=u.recoveryParam,0},ecdsaVerify(e,t,r){const a={r:e.subarray(0,32),s:e.subarray(32,64)},c=new i(a.r),u=new i(a.s);if(c.cmp(o.n)>=0||u.cmp(o.n)>=0)return 1;if(1===u.cmp(n.nh)||c.isZero()||u.isZero())return 3;const l=s(r);if(null===l)return 2;const f=l.getPublic();return n.verify(t,a,f)?0:3},ecdsaRecover(e,t,r,s){const c={r:t.slice(0,32),s:t.slice(32,64)},u=new i(c.r),l=new i(c.s);if(u.cmp(o.n)>=0||l.cmp(o.n)>=0)return 1;if(u.isZero()||l.isZero())return 2;let f;try{f=n.recoverPubKey(s,c,r)}catch(e){return 2}return a(e,f),0},ecdh(e,t,r,a,c,u,l){const f=s(t);if(null===f)return 1;const d=new i(r);if(d.cmp(o.n)>=0||d.isZero())return 2;const h=f.getPublic().mul(d);if(c===undefined){const t=h.encode(null,!0),r=n.hash().update(t).digest();for(let t=0;t<32;++t)e[t]=r[t]}else{u||(u=new Uint8Array(32));const t=h.getX().toArray("be",32);for(let e=0;e<32;++e)u[e]=t[e];l||(l=new Uint8Array(32));const r=h.getY().toArray("be",32);for(let e=0;e<32;++e)l[e]=r[e];const n=c(u,l,a);if(!(n instanceof Uint8Array&&n.length===e.length))return 2;e.set(n)}return 0}}}}},{package:"ganache>secp256k1",file:"node_modules/secp256k1/lib/elliptic.js"}],[5519,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n="Impossible case. Please create issue.",o="The tweak was out of range or the resulted private key is invalid",i="The tweak was out of range or equal to zero",s="Unknow error on context randomization",a="Private Key is invalid",c="Public Key could not be parsed",u="Public Key serialization error",l="The sum of the public keys is not valid",f="Signature could not be parsed",d="The nonce generation function failed, or the private key was invalid",h="Public key could not be recover",p="Scalar was invalid (zero or overflow)";function m(e,t){if(!e)throw new Error(t)}function _(e,t,r){if(m(t instanceof Uint8Array,`Expected ${e} to be an Uint8Array`),r!==undefined)if(Array.isArray(r)){const n=`Expected ${e} to be an Uint8Array with length [${r.join(", ")}]`;m(r.includes(t.length),n)}else{const n=`Expected ${e} to be an Uint8Array with length ${r}`;m(t.length===r,n)}}function g(e){m("Boolean"===A(e),"Expected compressed to be a Boolean")}function E(e=(e=>new Uint8Array(e)),t){return"function"==typeof e&&(e=e(t)),_("output",e,t),e}function A(e){return Object.prototype.toString.call(e).slice(8,-1)}t.exports=e=>({contextRandomize(t){if(m(null===t||t instanceof Uint8Array,"Expected seed to be an Uint8Array or null"),null!==t&&_("seed",t,32),1===e.contextRandomize(t))throw new Error(s)},privateKeyVerify:t=>(_("private key",t,32),0===e.privateKeyVerify(t)),privateKeyNegate(t){switch(_("private key",t,32),e.privateKeyNegate(t)){case 0:return t;case 1:throw new Error(n)}},privateKeyTweakAdd(t,r){switch(_("private key",t,32),_("tweak",r,32),e.privateKeyTweakAdd(t,r)){case 0:return t;case 1:throw new Error(o)}},privateKeyTweakMul(t,r){switch(_("private key",t,32),_("tweak",r,32),e.privateKeyTweakMul(t,r)){case 0:return t;case 1:throw new Error(i)}},publicKeyVerify:t=>(_("public key",t,[33,65]),0===e.publicKeyVerify(t)),publicKeyCreate(t,r=!0,n){switch(_("private key",t,32),g(r),n=E(n,r?33:65),e.publicKeyCreate(n,t)){case 0:return n;case 1:throw new Error(a);case 2:throw new Error(u)}},publicKeyConvert(t,r=!0,n){switch(_("public key",t,[33,65]),g(r),n=E(n,r?33:65),e.publicKeyConvert(n,t)){case 0:return n;case 1:throw new Error(c);case 2:throw new Error(u)}},publicKeyNegate(t,r=!0,o){switch(_("public key",t,[33,65]),g(r),o=E(o,r?33:65),e.publicKeyNegate(o,t)){case 0:return o;case 1:throw new Error(c);case 2:throw new Error(n);case 3:throw new Error(u)}},publicKeyCombine(t,r=!0,n){m(Array.isArray(t),"Expected public keys to be an Array"),m(t.length>0,"Expected public keys array will have more than zero items");for(const e of t)_("public key",e,[33,65]);switch(g(r),n=E(n,r?33:65),e.publicKeyCombine(n,t)){case 0:return n;case 1:throw new Error(c);case 2:throw new Error(l);case 3:throw new Error(u)}},publicKeyTweakAdd(t,r,n=!0,i){switch(_("public key",t,[33,65]),_("tweak",r,32),g(n),i=E(i,n?33:65),e.publicKeyTweakAdd(i,t,r)){case 0:return i;case 1:throw new Error(c);case 2:throw new Error(o)}},publicKeyTweakMul(t,r,n=!0,o){switch(_("public key",t,[33,65]),_("tweak",r,32),g(n),o=E(o,n?33:65),e.publicKeyTweakMul(o,t,r)){case 0:return o;case 1:throw new Error(c);case 2:throw new Error(i)}},signatureNormalize(t){switch(_("signature",t,64),e.signatureNormalize(t)){case 0:return t;case 1:throw new Error(f)}},signatureExport(t,r){_("signature",t,64);const o={output:r=E(r,72),outputlen:72};switch(e.signatureExport(o,t)){case 0:return r.slice(0,o.outputlen);case 1:throw new Error(f);case 2:throw new Error(n)}},signatureImport(t,r){switch(_("signature",t),r=E(r,64),e.signatureImport(r,t)){case 0:return r;case 1:throw new Error(f);case 2:throw new Error(n)}},ecdsaSign(t,r,o={},i){_("message",t,32),_("private key",r,32),m("Object"===A(o),"Expected options to be an Object"),o.data!==undefined&&_("options.data",o.data),o.noncefn!==undefined&&m("Function"===A(o.noncefn),"Expected options.noncefn to be a Function");const s={signature:i=E(i,64),recid:null};switch(e.ecdsaSign(s,t,r,o.data,o.noncefn)){case 0:return s;case 1:throw new Error(d);case 2:throw new Error(n)}},ecdsaVerify(t,r,n){switch(_("signature",t,64),_("message",r,32),_("public key",n,[33,65]),e.ecdsaVerify(t,r,n)){case 0:return!0;case 3:return!1;case 1:throw new Error(f);case 2:throw new Error(c)}},ecdsaRecover(t,r,o,i=!0,s){switch(_("signature",t,64),m("Number"===A(r)&&r>=0&&r<=3,"Expected recovery id to be a Number within interval [0, 3]"),_("message",o,32),g(i),s=E(s,i?33:65),e.ecdsaRecover(s,t,r,o)){case 0:return s;case 1:throw new Error(f);case 2:throw new Error(h);case 3:throw new Error(n)}},ecdh(t,r,n={},o){switch(_("public key",t,[33,65]),_("private key",r,32),m("Object"===A(n),"Expected options to be an Object"),n.data!==undefined&&_("options.data",n.data),n.hashfn!==undefined?(m("Function"===A(n.hashfn),"Expected options.hashfn to be a Function"),n.xbuf!==undefined&&_("options.xbuf",n.xbuf,32),n.ybuf!==undefined&&_("options.ybuf",n.ybuf,32),_("output",o)):o=E(o,32),e.ecdh(o,t,r,n.data,n.hashfn,n.xbuf,n.ybuf)){case 0:return o;case 1:throw new Error(c);case 2:throw new Error(p)}}})}}},{package:"ganache>secp256k1",file:"node_modules/secp256k1/lib/index.js"}],[552,{"./_version":535,"./json-rpc-provider":548,"@ethersproject/logger":528,"@ethersproject/properties":534},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.Web3Provider=void 0;var i=e("@ethersproject/properties"),s=e("@ethersproject/logger"),a=e("./_version"),c=new s.Logger(a.version),u=e("./json-rpc-provider"),l=1;function f(e,t){var r="Web3LegacyFetcher";return function(e,n){var o=this,s={method:e,params:n,id:l++,jsonrpc:"2.0"};return new Promise((function(e,n){o.emit("debug",{action:"request",fetcher:r,request:(0,i.deepCopy)(s),provider:o}),t(s,(function(t,i){if(t)return o.emit("debug",{action:"response",fetcher:r,error:t,request:s,provider:o}),n(t);if(o.emit("debug",{action:"response",fetcher:r,request:s,response:i,provider:o}),i.error){var a=new Error(i.error.message);return a.code=i.error.code,a.data=i.error.data,n(a)}e(i.result)}))}))}}var d=function(e){function t(t,r){var n;null==t&&c.throwArgumentError("missing provider","provider",t);var o=null,s=null,a=null;return"function"==typeof t?(o="unknown:",s=t):(!(o=t.host||t.path||"")&&t.isMetaMask&&(o="metamask"),a=t,t.request?(""===o&&(o="eip-1193:"),s=function(e){return function(t,r){var n=this;null==r&&(r=[]);var o={method:t,params:r};return this.emit("debug",{action:"request",fetcher:"Eip1193Fetcher",request:(0,i.deepCopy)(o),provider:this}),e.request(o).then((function(e){return n.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:o,response:e,provider:n}),e}),(function(e){throw n.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:o,error:e,provider:n}),e}))}}(t)):t.sendAsync?s=f(0,t.sendAsync.bind(t)):t.send?s=f(0,t.send.bind(t)):c.throwArgumentError("unsupported provider","provider",t),o||(o="unknown:")),n=e.call(this,o,r)||this,(0,i.defineReadOnly)(n,"jsonRpcFetchFunc",s),(0,i.defineReadOnly)(n,"provider",a),n}return o(t,e),t.prototype.send=function(e,t){return this.jsonRpcFetchFunc(e,t)},t}(u.JsonRpcProvider);r.Web3Provider=d}}},{package:"@ethersproject/providers",file:"node_modules/@ethersproject/providers/lib/web3-provider.js"}],[5520,{"../functions/cmp":5524,"../internal/debug":5549,"../internal/parse-options":5552,"../internal/re":5553,"./range":5521,"./semver":5522},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=Symbol("SemVer ANY");class o{static get ANY(){return n}constructor(e,t){if(t=i(t),e instanceof o){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),u("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===n?this.value="":this.value=this.operator+this.semver.version,u("comp",this)}parse(e){const t=this.options.loose?s[a.COMPARATORLOOSE]:s[a.COMPARATOR],r=e.match(t);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=r[1]!==undefined?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new l(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(u("Comparator.test",e,this.options.loose),this.semver===n||e===n)return!0;if("string"==typeof e)try{e=new l(e,this.options)}catch(e){return!1}return c(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof o))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new f(e.value,t).test(this.value):""===e.operator?""===e.value||new f(this.value,t).test(e.semver):(!(t=i(t)).includePrerelease||"<0.0.0-0"!==this.value&&"<0.0.0-0"!==e.value)&&(!(!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&(!(!this.operator.startsWith(">")||!e.operator.startsWith(">"))||(!(!this.operator.startsWith("<")||!e.operator.startsWith("<"))||(!(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))||(!!(c(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))||!!(c(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))))))}}t.exports=o;const i=e("../internal/parse-options"),{safeRe:s,t:a}=e("../internal/re"),c=e("../functions/cmp"),u=e("../internal/debug"),l=e("./semver"),f=e("./range")}}},{package:"semver",file:"node_modules/semver/classes/comparator.js"}],[5521,{"../internal/constants":5548,"../internal/debug":5549,"../internal/lrucache":5551,"../internal/parse-options":5552,"../internal/re":5553,"./comparator":5520,"./semver":5522},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=/\s+/g;class o{constructor(e,t){if(t=s(t),e instanceof o)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new o(e.raw,t);if(e instanceof a)return this.raw=e.value,this.set=[[e]],this.formatted=undefined,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(n," "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!g(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&E(e[0])){this.set=[e];break}}this.formatted=undefined}get range(){if(this.formatted===undefined){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");const t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&m)|(this.options.loose&&_))+":"+e,r=i.get(t);if(r)return r;const n=this.options.loose,o=n?l[f.HYPHENRANGELOOSE]:l[f.HYPHENRANGE];e=e.replace(o,C(this.options.includePrerelease)),c("hyphen replace",e),e=e.replace(l[f.COMPARATORTRIM],d),c("comparator trim",e),e=e.replace(l[f.TILDETRIM],h),c("tilde trim",e),e=e.replace(l[f.CARETTRIM],p),c("caret trim",e);let s=e.split(" ").map((e=>T(e,this.options))).join(" ").split(/\s+/).map((e=>R(e,this.options)));n&&(s=s.filter((e=>(c("loose invalid filter",e,this.options),!!e.match(l[f.COMPARATORLOOSE]))))),c("range list",s);const u=new Map,E=s.map((e=>new a(e,this.options)));for(const e of E){if(g(e))return[e];u.set(e.value,e)}u.size>1&&u.has("")&&u.delete("");const A=[...u.values()];return i.set(t,A),A}intersects(e,t){if(!(e instanceof o))throw new TypeError("a Range is required");return this.set.some((r=>A(r,t)&&e.set.some((e=>A(e,t)&&r.every((r=>e.every((e=>r.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(M(this.set[t],e,this.options))return!0;return!1}}t.exports=o;const i=new(e("../internal/lrucache")),s=e("../internal/parse-options"),a=e("./comparator"),c=e("../internal/debug"),u=e("./semver"),{safeRe:l,t:f,comparatorTrimReplace:d,tildeTrimReplace:h,caretTrimReplace:p}=e("../internal/re"),{FLAG_INCLUDE_PRERELEASE:m,FLAG_LOOSE:_}=e("../internal/constants"),g=e=>"<0.0.0-0"===e.value,E=e=>""===e.value,A=(e,t)=>{let r=!0;const n=e.slice();let o=n.pop();for(;r&&n.length;)r=n.every((e=>o.intersects(e,t))),o=n.pop();return r},T=(e,t)=>(c("comp",e,t),e=I(e,t),c("caret",e),e=y(e,t),c("tildes",e),e=w(e,t),c("xrange",e),e=O(e,t),c("stars",e),e),b=e=>!e||"x"===e.toLowerCase()||"*"===e,y=(e,t)=>e.trim().split(/\s+/).map((e=>v(e,t))).join(" "),v=(e,t)=>{const r=t.loose?l[f.TILDELOOSE]:l[f.TILDE];return e.replace(r,((t,r,n,o,i)=>{let s;return c("tilde",e,t,r,n,o,i),b(r)?s="":b(n)?s=`>=${r}.0.0 <${+r+1}.0.0-0`:b(o)?s=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:i?(c("replaceTilde pr",i),s=`>=${r}.${n}.${o}-${i} <${r}.${+n+1}.0-0`):s=`>=${r}.${n}.${o} <${r}.${+n+1}.0-0`,c("tilde return",s),s}))},I=(e,t)=>e.trim().split(/\s+/).map((e=>N(e,t))).join(" "),N=(e,t)=>{c("caret",e,t);const r=t.loose?l[f.CARETLOOSE]:l[f.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,((t,r,o,i,s)=>{let a;return c("caret",e,t,r,o,i,s),b(r)?a="":b(o)?a=`>=${r}.0.0${n} <${+r+1}.0.0-0`:b(i)?a="0"===r?`>=${r}.${o}.0${n} <${r}.${+o+1}.0-0`:`>=${r}.${o}.0${n} <${+r+1}.0.0-0`:s?(c("replaceCaret pr",s),a="0"===r?"0"===o?`>=${r}.${o}.${i}-${s} <${r}.${o}.${+i+1}-0`:`>=${r}.${o}.${i}-${s} <${r}.${+o+1}.0-0`:`>=${r}.${o}.${i}-${s} <${+r+1}.0.0-0`):(c("no pr"),a="0"===r?"0"===o?`>=${r}.${o}.${i}${n} <${r}.${o}.${+i+1}-0`:`>=${r}.${o}.${i}${n} <${r}.${+o+1}.0-0`:`>=${r}.${o}.${i} <${+r+1}.0.0-0`),c("caret return",a),a}))},w=(e,t)=>(c("replaceXRanges",e,t),e.split(/\s+/).map((e=>S(e,t))).join(" ")),S=(e,t)=>{e=e.trim();const r=t.loose?l[f.XRANGELOOSE]:l[f.XRANGE];return e.replace(r,((r,n,o,i,s,a)=>{c("xRange",e,r,n,o,i,s,a);const u=b(o),l=u||b(i),f=l||b(s),d=f;return"="===n&&d&&(n=""),a=t.includePrerelease?"-0":"",u?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&d?(l&&(i=0),s=0,">"===n?(n=">=",l?(o=+o+1,i=0,s=0):(i=+i+1,s=0)):"<="===n&&(n="<",l?o=+o+1:i=+i+1),"<"===n&&(a="-0"),r=`${n+o}.${i}.${s}${a}`):l?r=`>=${o}.0.0${a} <${+o+1}.0.0-0`:f&&(r=`>=${o}.${i}.0${a} <${o}.${+i+1}.0-0`),c("xRange return",r),r}))},O=(e,t)=>(c("replaceStars",e,t),e.trim().replace(l[f.STAR],"")),R=(e,t)=>(c("replaceGTE0",e,t),e.trim().replace(l[t.includePrerelease?f.GTE0PRE:f.GTE0],"")),C=e=>(t,r,n,o,i,s,a,c,u,l,f,d)=>`${r=b(n)?"":b(o)?`>=${n}.0.0${e?"-0":""}`:b(i)?`>=${n}.${o}.0${e?"-0":""}`:s?`>=${r}`:`>=${r}${e?"-0":""}`} ${c=b(u)?"":b(l)?`<${+u+1}.0.0-0`:b(f)?`<${u}.${+l+1}.0-0`:d?`<=${u}.${l}.${f}-${d}`:e?`<${u}.${l}.${+f+1}-0`:`<=${c}`}`.trim(),M=(e,t,r)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let r=0;r<e.length;r++)if(c(e[r].semver),e[r].semver!==a.ANY&&e[r].semver.prerelease.length>0){const n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0}}}},{package:"semver",file:"node_modules/semver/classes/range.js"}],[5522,{"../internal/constants":5548,"../internal/debug":5549,"../internal/identifiers":5550,"../internal/parse-options":5552,"../internal/re":5553},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../internal/debug"),{MAX_LENGTH:o,MAX_SAFE_INTEGER:i}=e("../internal/constants"),{safeRe:s,t:a}=e("../internal/re"),c=e("../internal/parse-options"),{compareIdentifiers:u}=e("../internal/identifiers");class l{constructor(e,t){if(t=c(t),e instanceof l){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>o)throw new TypeError(`version is longer than ${o} characters`);n("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?s[a.LOOSE]:s[a.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<i)return t}return e})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(n("SemVer.compare",this.version,this.options,e),!(e instanceof l)){if("string"==typeof e&&e===this.version)return 0;e=new l(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof l||(e=new l(e,this.options)),u(this.major,e.major)||u(this.minor,e.minor)||u(this.patch,e.patch)}comparePre(e){if(e instanceof l||(e=new l(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const r=this.prerelease[t],o=e.prerelease[t];if(n("prerelease compare",t,r,o),r===undefined&&o===undefined)return 0;if(o===undefined)return 1;if(r===undefined)return-1;if(r!==o)return u(r,o)}while(++t)}compareBuild(e){e instanceof l||(e=new l(e,this.options));let t=0;do{const r=this.build[t],o=e.build[t];if(n("build compare",t,r,o),r===undefined&&o===undefined)return 0;if(o===undefined)return 1;if(r===undefined)return-1;if(r!==o)return u(r,o)}while(++t)}inc(e,t,r){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,r),this.inc("pre",t,r);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,r),this.inc("pre",t,r);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(r)?1:0;if(!t&&!1===r)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[e];else{let n=this.prerelease.length;for(;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(t===this.prerelease.join(".")&&!1===r)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let n=[t,e];!1===r&&(n=[t]),0===u(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}t.exports=l}}},{package:"semver",file:"node_modules/semver/classes/semver.js"}],[5523,{"./parse":5539},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./parse");t.exports=(e,t)=>{const r=n(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}}}},{package:"semver",file:"node_modules/semver/functions/clean.js"}],[5524,{"./eq":5530,"./gt":5531,"./gte":5532,"./lt":5534,"./lte":5535,"./neq":5538},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./eq"),o=e("./neq"),i=e("./gt"),s=e("./gte"),a=e("./lt"),c=e("./lte");t.exports=(e,t,r,u)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return n(e,r,u);case"!=":return o(e,r,u);case">":return i(e,r,u);case">=":return s(e,r,u);case"<":return a(e,r,u);case"<=":return c(e,r,u);default:throw new TypeError(`Invalid operator: ${t}`)}}}}},{package:"semver",file:"node_modules/semver/functions/cmp.js"}],[5525,{"../classes/semver":5522,"../internal/re":5553,"./parse":5539},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/semver"),o=e("./parse"),{safeRe:i,t:s}=e("../internal/re");t.exports=(e,t)=>{if(e instanceof n)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let r=null;if((t=t||{}).rtl){const n=t.includePrerelease?i[s.COERCERTLFULL]:i[s.COERCERTL];let o;for(;(o=n.exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&o.index+o[0].length===r.index+r[0].length||(r=o),n.lastIndex=o.index+o[1].length+o[2].length;n.lastIndex=-1}else r=e.match(t.includePrerelease?i[s.COERCEFULL]:i[s.COERCE]);if(null===r)return null;const a=r[2],c=r[3]||"0",u=r[4]||"0",l=t.includePrerelease&&r[5]?`-${r[5]}`:"",f=t.includePrerelease&&r[6]?`+${r[6]}`:"";return o(`${a}.${c}.${u}${l}${f}`,t)}}}},{package:"semver",file:"node_modules/semver/functions/coerce.js"}],[5526,{"../classes/semver":5522},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/semver");t.exports=(e,t,r)=>{const o=new n(e,r),i=new n(t,r);return o.compare(i)||o.compareBuild(i)}}}},{package:"semver",file:"node_modules/semver/functions/compare-build.js"}],[5527,{"./compare":5528},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./compare");t.exports=(e,t)=>n(e,t,!0)}}},{package:"semver",file:"node_modules/semver/functions/compare-loose.js"}],[5528,{"../classes/semver":5522},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/semver");t.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))}}},{package:"semver",file:"node_modules/semver/functions/compare.js"}],[5529,{"./parse.js":5539},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./parse.js");t.exports=(e,t)=>{const r=n(e,null,!0),o=n(t,null,!0),i=r.compare(o);if(0===i)return null;const s=i>0,a=s?r:o,c=s?o:r,u=!!a.prerelease.length;if(!!c.prerelease.length&&!u)return c.patch||c.minor?a.patch?"patch":a.minor?"minor":"major":"major";const l=u?"pre":"";return r.major!==o.major?l+"major":r.minor!==o.minor?l+"minor":r.patch!==o.patch?l+"patch":"prerelease"}}}},{package:"semver",file:"node_modules/semver/functions/diff.js"}],[553,{"./_version":535,"./json-rpc-provider":548,"./ws":540,"@ethersproject/bignumber":498,"@ethersproject/logger":528,"@ethersproject/properties":534},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))},s=this&&this.__generator||function(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.WebSocketProvider=void 0;var a=e("@ethersproject/bignumber"),c=e("@ethersproject/properties"),u=e("./json-rpc-provider"),l=e("./ws"),f=e("@ethersproject/logger"),d=e("./_version"),h=new f.Logger(d.version),p=1,m=function(e){function t(t,r){var n=this;"any"===r&&h.throwError("WebSocketProvider does not support 'any' network yet",f.Logger.errors.UNSUPPORTED_OPERATION,{operation:"network:any"}),(n="string"==typeof t?e.call(this,t,r)||this:e.call(this,"_websocket",r)||this)._pollingInterval=-1,n._wsReady=!1,"string"==typeof t?(0,c.defineReadOnly)(n,"_websocket",new l.WebSocket(n.connection.url)):(0,c.defineReadOnly)(n,"_websocket",t),(0,c.defineReadOnly)(n,"_requests",{}),(0,c.defineReadOnly)(n,"_subs",{}),(0,c.defineReadOnly)(n,"_subIds",{}),(0,c.defineReadOnly)(n,"_detectNetwork",e.prototype.detectNetwork.call(n)),n.websocket.onopen=function(){n._wsReady=!0,Object.keys(n._requests).forEach((function(e){n.websocket.send(n._requests[e].payload)}))},n.websocket.onmessage=function(e){var t=e.data,r=JSON.parse(t);if(null!=r.id){var o=String(r.id),i=n._requests[o];if(delete n._requests[o],r.result!==undefined)i.callback(null,r.result),n.emit("debug",{action:"response",request:JSON.parse(i.payload),response:r.result,provider:n});else{var s=null;r.error?(s=new Error(r.error.message||"unknown error"),(0,c.defineReadOnly)(s,"code",r.error.code||null),(0,c.defineReadOnly)(s,"response",t)):s=new Error("unknown error"),i.callback(s,undefined),n.emit("debug",{action:"response",error:s,request:JSON.parse(i.payload),provider:n})}}else if("eth_subscription"===r.method){var a=n._subs[r.params.subscription];a&&a.processFunc(r.params.result)}else console.warn("this should not happen")};var o=setInterval((function(){n.emit("poll")}),1e3);return o.unref&&o.unref(),n}return o(t,e),Object.defineProperty(t.prototype,"websocket",{get:function(){return this._websocket},enumerable:!1,configurable:!0}),t.prototype.detectNetwork=function(){return this._detectNetwork},Object.defineProperty(t.prototype,"pollingInterval",{get:function(){return 0},set:function(e){h.throwError("cannot set polling interval on WebSocketProvider",f.Logger.errors.UNSUPPORTED_OPERATION,{operation:"setPollingInterval"})},enumerable:!1,configurable:!0}),t.prototype.resetEventsBlock=function(e){h.throwError("cannot reset events block on WebSocketProvider",f.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resetEventBlock"})},t.prototype.poll=function(){return i(this,void 0,void 0,(function(){return s(this,(function(e){return[2,null]}))}))},Object.defineProperty(t.prototype,"polling",{set:function(e){e&&h.throwError("cannot set polling on WebSocketProvider",f.Logger.errors.UNSUPPORTED_OPERATION,{operation:"setPolling"})},enumerable:!1,configurable:!0}),t.prototype.send=function(e,t){var r=this,n=p++;return new Promise((function(o,i){var s=JSON.stringify({method:e,params:t,id:n,jsonrpc:"2.0"});r.emit("debug",{action:"request",request:JSON.parse(s),provider:r}),r._requests[String(n)]={callback:function(e,t){return e?i(e):o(t)},payload:s},r._wsReady&&r.websocket.send(s)}))},t.defaultUrl=function(){return"ws://localhost:8546"},t.prototype._subscribe=function(e,t,r){return i(this,void 0,void 0,(function(){var n,o,i=this;return s(this,(function(s){switch(s.label){case 0:return null==(n=this._subIds[e])&&(n=Promise.all(t).then((function(e){return i.send("eth_subscribe",e)})),this._subIds[e]=n),[4,n];case 1:return o=s.sent(),this._subs[o]={tag:e,processFunc:r},[2]}}))}))},t.prototype._startEvent=function(e){var t=this;switch(e.type){case"block":this._subscribe("block",["newHeads"],(function(e){var r=a.BigNumber.from(e.number).toNumber();t._emitted.block=r,t.emit("block",r)}));break;case"pending":this._subscribe("pending",["newPendingTransactions"],(function(e){t.emit("pending",e)}));break;case"filter":this._subscribe(e.tag,["logs",this._getFilter(e.filter)],(function(r){null==r.removed&&(r.removed=!1),t.emit(e.filter,t.formatter.filterLog(r))}));break;case"tx":var r=function(e){var r=e.hash;t.getTransactionReceipt(r).then((function(e){e&&t.emit(r,e)}))};r(e),this._subscribe("tx",["newHeads"],(function(e){t._events.filter((function(e){return"tx"===e.type})).forEach(r)}));break;case"debug":case"poll":case"willPoll":case"didPoll":case"error":break;default:console.log("unhandled:",e)}},t.prototype._stopEvent=function(e){var t=this,r=e.tag;if("tx"===e.type){if(this._events.filter((function(e){return"tx"===e.type})).length)return;r="tx"}else if(this.listenerCount(e.event))return;var n=this._subIds[r];n&&(delete this._subIds[r],n.then((function(e){t._subs[e]&&(delete t._subs[e],t.send("eth_unsubscribe",[e]))})))},t.prototype.destroy=function(){return i(this,void 0,void 0,(function(){var e=this;return s(this,(function(t){switch(t.label){case 0:return this.websocket.readyState!==l.WebSocket.CONNECTING?[3,2]:[4,new Promise((function(t){e.websocket.onopen=function(){t(!0)},e.websocket.onerror=function(){t(!1)}}))];case 1:t.sent(),t.label=2;case 2:return this.websocket.close(1e3),[2]}}))}))},t}(u.JsonRpcProvider);r.WebSocketProvider=m}}},{package:"@ethersproject/providers",file:"node_modules/@ethersproject/providers/lib/websocket-provider.js"}],[5530,{"./compare":5528},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./compare");t.exports=(e,t,r)=>0===n(e,t,r)}}},{package:"semver",file:"node_modules/semver/functions/eq.js"}],[5531,{"./compare":5528},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./compare");t.exports=(e,t,r)=>n(e,t,r)>0}}},{package:"semver",file:"node_modules/semver/functions/gt.js"}],[5532,{"./compare":5528},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./compare");t.exports=(e,t,r)=>n(e,t,r)>=0}}},{package:"semver",file:"node_modules/semver/functions/gte.js"}],[5533,{"../classes/semver":5522},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/semver");t.exports=(e,t,r,o,i)=>{"string"==typeof r&&(i=o,o=r,r=undefined);try{return new n(e instanceof n?e.version:e,r).inc(t,o,i).version}catch(e){return null}}}}},{package:"semver",file:"node_modules/semver/functions/inc.js"}],[5534,{"./compare":5528},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./compare");t.exports=(e,t,r)=>n(e,t,r)<0}}},{package:"semver",file:"node_modules/semver/functions/lt.js"}],[5535,{"./compare":5528},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./compare");t.exports=(e,t,r)=>n(e,t,r)<=0}}},{package:"semver",file:"node_modules/semver/functions/lte.js"}],[5536,{"../classes/semver":5522},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/semver");t.exports=(e,t)=>new n(e,t).major}}},{package:"semver",file:"node_modules/semver/functions/major.js"}],[5537,{"../classes/semver":5522},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/semver");t.exports=(e,t)=>new n(e,t).minor}}},{package:"semver",file:"node_modules/semver/functions/minor.js"}],[5538,{"./compare":5528},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./compare");t.exports=(e,t,r)=>0!==n(e,t,r)}}},{package:"semver",file:"node_modules/semver/functions/neq.js"}],[5539,{"../classes/semver":5522},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/semver");t.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}}}},{package:"semver",file:"node_modules/semver/functions/parse.js"}],[554,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){for(var n="qpzry9x8gf2tvdw0s3jn54khce6mua7l",o={},i=0;i<32;i++){var s=n.charAt(i);if(o[s]!==undefined)throw new TypeError(s+" is ambiguous");o[s]=i}function a(e){var t=e>>25;return(33554431&e)<<5^996825010&-(1&t)^642813549&-(t>>1&1)^513874426&-(t>>2&1)^1027748829&-(t>>3&1)^705979059&-(t>>4&1)}function c(e){for(var t=1,r=0;r<e.length;++r){var n=e.charCodeAt(r);if(n<33||n>126)return"Invalid prefix ("+e+")";t=a(t)^n>>5}for(t=a(t),r=0;r<e.length;++r){var o=e.charCodeAt(r);t=a(t)^31&o}return t}function u(e,t){if(t=t||90,e.length<8)return e+" too short";if(e.length>t)return"Exceeds length limit";var r=e.toLowerCase(),n=e.toUpperCase();if(e!==r&&e!==n)return"Mixed-case string "+e;var i=(e=r).lastIndexOf("1");if(-1===i)return"No separator character for "+e;if(0===i)return"Missing prefix for "+e;var s=e.slice(0,i),u=e.slice(i+1);if(u.length<6)return"Data too short";var l=c(s);if("string"==typeof l)return l;for(var f=[],d=0;d<u.length;++d){var h=u.charAt(d),p=o[h];if(p===undefined)return"Unknown character "+h;l=a(l)^p,d+6>=u.length||f.push(p)}return 1!==l?"Invalid checksum for "+e:{prefix:s,words:f}}function l(e,t,r,n){for(var o=0,i=0,s=(1<<r)-1,a=[],c=0;c<e.length;++c)for(o=o<<t|e[c],i+=t;i>=r;)i-=r,a.push(o>>i&s);if(n)i>0&&a.push(o<<r-i&s);else{if(i>=t)return"Excess padding";if(o<<r-i&s)return"Non-zero padding"}return a}t.exports={decodeUnsafe:function(){var e=u.apply(null,arguments);if("object"==typeof e)return e},decode:function(e){var t=u.apply(null,arguments);if("object"==typeof t)return t;throw new Error(t)},encode:function(e,t,r){if(r=r||90,e.length+7+t.length>r)throw new TypeError("Exceeds length limit");var o=c(e=e.toLowerCase());if("string"==typeof o)throw new Error(o);for(var i=e+"1",s=0;s<t.length;++s){var u=t[s];if(u>>5)throw new Error("Non 5-bit word");o=a(o)^u,i+=n.charAt(u)}for(s=0;s<6;++s)o=a(o);for(o^=1,s=0;s<6;++s){i+=n.charAt(o>>5*(5-s)&31)}return i},toWordsUnsafe:function(e){var t=l(e,8,5,!0);if(Array.isArray(t))return t},toWords:function(e){var t=l(e,8,5,!0);if(Array.isArray(t))return t;throw new Error(t)},fromWordsUnsafe:function(e){var t=l(e,5,8,!1);if(Array.isArray(t))return t},fromWords:function(e){var t=l(e,5,8,!1);if(Array.isArray(t))return t;throw new Error(t)}}}}},{package:"@ethersproject/providers>bech32",file:"node_modules/@ethersproject/providers/node_modules/bech32/index.js"}],[5540,{"../classes/semver":5522},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/semver");t.exports=(e,t)=>new n(e,t).patch}}},{package:"semver",file:"node_modules/semver/functions/patch.js"}],[5541,{"./parse":5539},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./parse");t.exports=(e,t)=>{const r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}}}},{package:"semver",file:"node_modules/semver/functions/prerelease.js"}],[5542,{"./compare":5528},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./compare");t.exports=(e,t,r)=>n(t,e,r)}}},{package:"semver",file:"node_modules/semver/functions/rcompare.js"}],[5543,{"./compare-build":5526},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./compare-build");t.exports=(e,t)=>e.sort(((e,r)=>n(r,e,t)))}}},{package:"semver",file:"node_modules/semver/functions/rsort.js"}],[5544,{"../classes/range":5521},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/range");t.exports=(e,t,r)=>{try{t=new n(t,r)}catch(e){return!1}return t.test(e)}}}},{package:"semver",file:"node_modules/semver/functions/satisfies.js"}],[5545,{"./compare-build":5526},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./compare-build");t.exports=(e,t)=>e.sort(((e,r)=>n(e,r,t)))}}},{package:"semver",file:"node_modules/semver/functions/sort.js"}],[5546,{"./parse":5539},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./parse");t.exports=(e,t)=>{const r=n(e,t);return r?r.version:null}}}},{package:"semver",file:"node_modules/semver/functions/valid.js"}],[5547,{"./classes/comparator":5520,"./classes/range":5521,"./classes/semver":5522,"./functions/clean":5523,"./functions/cmp":5524,"./functions/coerce":5525,"./functions/compare":5528,"./functions/compare-build":5526,"./functions/compare-loose":5527,"./functions/diff":5529,"./functions/eq":5530,"./functions/gt":5531,"./functions/gte":5532,"./functions/inc":5533,"./functions/lt":5534,"./functions/lte":5535,"./functions/major":5536,"./functions/minor":5537,"./functions/neq":5538,"./functions/parse":5539,"./functions/patch":5540,"./functions/prerelease":5541,"./functions/rcompare":5542,"./functions/rsort":5543,"./functions/satisfies":5544,"./functions/sort":5545,"./functions/valid":5546,"./internal/constants":5548,"./internal/identifiers":5550,"./internal/re":5553,"./ranges/gtr":5554,"./ranges/intersects":5555,"./ranges/ltr":5556,"./ranges/max-satisfying":5557,"./ranges/min-satisfying":5558,"./ranges/min-version":5559,"./ranges/outside":5560,"./ranges/simplify":5561,"./ranges/subset":5562,"./ranges/to-comparators":5563,"./ranges/valid":5564},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./internal/re"),o=e("./internal/constants"),i=e("./classes/semver"),s=e("./internal/identifiers"),a=e("./functions/parse"),c=e("./functions/valid"),u=e("./functions/clean"),l=e("./functions/inc"),f=e("./functions/diff"),d=e("./functions/major"),h=e("./functions/minor"),p=e("./functions/patch"),m=e("./functions/prerelease"),_=e("./functions/compare"),g=e("./functions/rcompare"),E=e("./functions/compare-loose"),A=e("./functions/compare-build"),T=e("./functions/sort"),b=e("./functions/rsort"),y=e("./functions/gt"),v=e("./functions/lt"),I=e("./functions/eq"),N=e("./functions/neq"),w=e("./functions/gte"),S=e("./functions/lte"),O=e("./functions/cmp"),R=e("./functions/coerce"),C=e("./classes/comparator"),M=e("./classes/range"),P=e("./functions/satisfies"),L=e("./ranges/to-comparators"),k=e("./ranges/max-satisfying"),x=e("./ranges/min-satisfying"),D=e("./ranges/min-version"),j=e("./ranges/valid"),U=e("./ranges/outside"),B=e("./ranges/gtr"),H=e("./ranges/ltr"),F=e("./ranges/intersects"),G=e("./ranges/simplify"),K=e("./ranges/subset");t.exports={parse:a,valid:c,clean:u,inc:l,diff:f,major:d,minor:h,patch:p,prerelease:m,compare:_,rcompare:g,compareLoose:E,compareBuild:A,sort:T,rsort:b,gt:y,lt:v,eq:I,neq:N,gte:w,lte:S,cmp:O,coerce:R,Comparator:C,Range:M,satisfies:P,toComparators:L,maxSatisfying:k,minSatisfying:x,minVersion:D,validRange:j,outside:U,gtr:B,ltr:H,intersects:F,simplifyRange:G,subset:K,SemVer:i,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:o.SEMVER_SPEC_VERSION,RELEASE_TYPES:o.RELEASE_TYPES,compareIdentifiers:s.compareIdentifiers,rcompareIdentifiers:s.rcompareIdentifiers}}}},{package:"semver",file:"node_modules/semver/index.js"}],[5548,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=Number.MAX_SAFE_INTEGER||9007199254740991;t.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:n,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}}}},{package:"semver",file:"node_modules/semver/internal/constants.js"}],[5549,{_process:5008},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(e){(function(){const r=("object"==typeof e&&e.env,()=>{});t.exports=r}).call(this)}).call(this,e("_process"))}}},{package:"semver",file:"node_modules/semver/internal/debug.js"}],[555,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.version=void 0,r.version="random/5.7.0"}}},{package:"ethers>@ethersproject/random",file:"node_modules/@ethersproject/random/lib/_version.js"}],[5550,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=/^[0-9]+$/,o=(e,t)=>{const r=n.test(e),o=n.test(t);return r&&o&&(e=+e,t=+t),e===t?0:r&&!o?-1:o&&!r?1:e<t?-1:1};t.exports={compareIdentifiers:o,rcompareIdentifiers:(e,t)=>o(t,e)}}}},{package:"semver",file:"node_modules/semver/internal/identifiers.js"}],[5551,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);return t===undefined?undefined:(this.map.delete(e),this.map.set(e,t),t)}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==undefined){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}}}},{package:"semver",file:"node_modules/semver/internal/lrucache.js"}],[5552,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=Object.freeze({loose:!0}),o=Object.freeze({});t.exports=e=>e?"object"!=typeof e?n:e:o}}},{package:"semver",file:"node_modules/semver/internal/parse-options.js"}],[5553,{"./constants":5548,"./debug":5549},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:o,MAX_LENGTH:i}=e("./constants"),s=e("./debug"),a=(r=t.exports={}).re=[],c=r.safeRe=[],u=r.src=[],l=r.t={};let f=0;const d="[a-zA-Z0-9-]",h=[["\\s",1],["\\d",i],[d,o]],p=(e,t,r)=>{const n=(e=>{for(const[t,r]of h)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e})(t),o=f++;s(e,o,t),l[e]=o,u[o]=t,a[o]=new RegExp(t,r?"g":undefined),c[o]=new RegExp(n,r?"g":undefined)};p("NUMERICIDENTIFIER","0|[1-9]\\d*"),p("NUMERICIDENTIFIERLOOSE","\\d+"),p("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),p("MAINVERSION",`(${u[l.NUMERICIDENTIFIER]})\\.(${u[l.NUMERICIDENTIFIER]})\\.(${u[l.NUMERICIDENTIFIER]})`),p("MAINVERSIONLOOSE",`(${u[l.NUMERICIDENTIFIERLOOSE]})\\.(${u[l.NUMERICIDENTIFIERLOOSE]})\\.(${u[l.NUMERICIDENTIFIERLOOSE]})`),p("PRERELEASEIDENTIFIER",`(?:${u[l.NUMERICIDENTIFIER]}|${u[l.NONNUMERICIDENTIFIER]})`),p("PRERELEASEIDENTIFIERLOOSE",`(?:${u[l.NUMERICIDENTIFIERLOOSE]}|${u[l.NONNUMERICIDENTIFIER]})`),p("PRERELEASE",`(?:-(${u[l.PRERELEASEIDENTIFIER]}(?:\\.${u[l.PRERELEASEIDENTIFIER]})*))`),p("PRERELEASELOOSE",`(?:-?(${u[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[l.PRERELEASEIDENTIFIERLOOSE]})*))`),p("BUILDIDENTIFIER",`${d}+`),p("BUILD",`(?:\\+(${u[l.BUILDIDENTIFIER]}(?:\\.${u[l.BUILDIDENTIFIER]})*))`),p("FULLPLAIN",`v?${u[l.MAINVERSION]}${u[l.PRERELEASE]}?${u[l.BUILD]}?`),p("FULL",`^${u[l.FULLPLAIN]}$`),p("LOOSEPLAIN",`[v=\\s]*${u[l.MAINVERSIONLOOSE]}${u[l.PRERELEASELOOSE]}?${u[l.BUILD]}?`),p("LOOSE",`^${u[l.LOOSEPLAIN]}$`),p("GTLT","((?:<|>)?=?)"),p("XRANGEIDENTIFIERLOOSE",`${u[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),p("XRANGEIDENTIFIER",`${u[l.NUMERICIDENTIFIER]}|x|X|\\*`),p("XRANGEPLAIN",`[v=\\s]*(${u[l.XRANGEIDENTIFIER]})(?:\\.(${u[l.XRANGEIDENTIFIER]})(?:\\.(${u[l.XRANGEIDENTIFIER]})(?:${u[l.PRERELEASE]})?${u[l.BUILD]}?)?)?`),p("XRANGEPLAINLOOSE",`[v=\\s]*(${u[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})(?:${u[l.PRERELEASELOOSE]})?${u[l.BUILD]}?)?)?`),p("XRANGE",`^${u[l.GTLT]}\\s*${u[l.XRANGEPLAIN]}$`),p("XRANGELOOSE",`^${u[l.GTLT]}\\s*${u[l.XRANGEPLAINLOOSE]}$`),p("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),p("COERCE",`${u[l.COERCEPLAIN]}(?:$|[^\\d])`),p("COERCEFULL",u[l.COERCEPLAIN]+`(?:${u[l.PRERELEASE]})?`+`(?:${u[l.BUILD]})?(?:$|[^\\d])`),p("COERCERTL",u[l.COERCE],!0),p("COERCERTLFULL",u[l.COERCEFULL],!0),p("LONETILDE","(?:~>?)"),p("TILDETRIM",`(\\s*)${u[l.LONETILDE]}\\s+`,!0),r.tildeTrimReplace="$1~",p("TILDE",`^${u[l.LONETILDE]}${u[l.XRANGEPLAIN]}$`),p("TILDELOOSE",`^${u[l.LONETILDE]}${u[l.XRANGEPLAINLOOSE]}$`),p("LONECARET","(?:\\^)"),p("CARETTRIM",`(\\s*)${u[l.LONECARET]}\\s+`,!0),r.caretTrimReplace="$1^",p("CARET",`^${u[l.LONECARET]}${u[l.XRANGEPLAIN]}$`),p("CARETLOOSE",`^${u[l.LONECARET]}${u[l.XRANGEPLAINLOOSE]}$`),p("COMPARATORLOOSE",`^${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]})$|^$`),p("COMPARATOR",`^${u[l.GTLT]}\\s*(${u[l.FULLPLAIN]})$|^$`),p("COMPARATORTRIM",`(\\s*)${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]}|${u[l.XRANGEPLAIN]})`,!0),r.comparatorTrimReplace="$1$2$3",p("HYPHENRANGE",`^\\s*(${u[l.XRANGEPLAIN]})\\s+-\\s+(${u[l.XRANGEPLAIN]})\\s*$`),p("HYPHENRANGELOOSE",`^\\s*(${u[l.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[l.XRANGEPLAINLOOSE]})\\s*$`),p("STAR","(<|>)?=?\\s*\\*"),p("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),p("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}}},{package:"semver",file:"node_modules/semver/internal/re.js"}],[5554,{"./outside":5560},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./outside");t.exports=(e,t,r)=>n(e,t,">",r)}}},{package:"semver",file:"node_modules/semver/ranges/gtr.js"}],[5555,{"../classes/range":5521},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/range");t.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r))}}},{package:"semver",file:"node_modules/semver/ranges/intersects.js"}],[5556,{"./outside":5560},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./outside");t.exports=(e,t,r)=>n(e,t,"<",r)}}},{package:"semver",file:"node_modules/semver/ranges/ltr.js"}],[5557,{"../classes/range":5521,"../classes/semver":5522},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/semver"),o=e("../classes/range");t.exports=(e,t,r)=>{let i=null,s=null,a=null;try{a=new o(t,r)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(i&&-1!==s.compare(e)||(i=e,s=new n(i,r)))})),i}}}},{package:"semver",file:"node_modules/semver/ranges/max-satisfying.js"}],[5558,{"../classes/range":5521,"../classes/semver":5522},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/semver"),o=e("../classes/range");t.exports=(e,t,r)=>{let i=null,s=null,a=null;try{a=new o(t,r)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(i&&1!==s.compare(e)||(i=e,s=new n(i,r)))})),i}}}},{package:"semver",file:"node_modules/semver/ranges/min-satisfying.js"}],[5559,{"../classes/range":5521,"../classes/semver":5522,"../functions/gt":5531},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/semver"),o=e("../classes/range"),i=e("../functions/gt");t.exports=(e,t)=>{e=new o(e,t);let r=new n("0.0.0");if(e.test(r))return r;if(r=new n("0.0.0-0"),e.test(r))return r;r=null;for(let t=0;t<e.set.length;++t){const o=e.set[t];let s=null;o.forEach((e=>{const t=new n(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":s&&!i(t,s)||(s=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!s||r&&!i(r,s)||(r=s)}return r&&e.test(r)?r:null}}}},{package:"semver",file:"node_modules/semver/ranges/min-version.js"}],[556,{"./_version":555,"@ethersproject/bytes":500,"@ethersproject/logger":528},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.randomBytes=void 0;var n=e("@ethersproject/bytes"),o=e("@ethersproject/logger"),i=e("./_version"),s=new o.Logger(i.version);var a=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("unable to locate global object")}(),c=a.crypto||a.msCrypto;c&&c.getRandomValues||(s.warn("WARNING: Missing strong random number source"),c={getRandomValues:function(e){return s.throwError("no secure random source avaialble",o.Logger.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}}),r.randomBytes=function(e){(e<=0||e>1024||e%1||e!=e)&&s.throwArgumentError("invalid length","length",e);var t=new Uint8Array(e);return c.getRandomValues(t),(0,n.arrayify)(t)}}}},{package:"ethers>@ethersproject/random",file:"node_modules/@ethersproject/random/lib/browser-random.js"}],[5560,{"../classes/comparator":5520,"../classes/range":5521,"../classes/semver":5522,"../functions/gt":5531,"../functions/gte":5532,"../functions/lt":5534,"../functions/lte":5535,"../functions/satisfies":5544},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/semver"),o=e("../classes/comparator"),{ANY:i}=o,s=e("../classes/range"),a=e("../functions/satisfies"),c=e("../functions/gt"),u=e("../functions/lt"),l=e("../functions/lte"),f=e("../functions/gte");t.exports=(e,t,r,d)=>{let h,p,m,_,g;switch(e=new n(e,d),t=new s(t,d),r){case">":h=c,p=l,m=u,_=">",g=">=";break;case"<":h=u,p=f,m=c,_="<",g="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(a(e,t,d))return!1;for(let r=0;r<t.set.length;++r){const n=t.set[r];let s=null,a=null;if(n.forEach((e=>{e.semver===i&&(e=new o(">=0.0.0")),s=s||e,a=a||e,h(e.semver,s.semver,d)?s=e:m(e.semver,a.semver,d)&&(a=e)})),s.operator===_||s.operator===g)return!1;if((!a.operator||a.operator===_)&&p(e,a.semver))return!1;if(a.operator===g&&m(e,a.semver))return!1}return!0}}}},{package:"semver",file:"node_modules/semver/ranges/outside.js"}],[5561,{"../functions/compare.js":5528,"../functions/satisfies.js":5544},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../functions/satisfies.js"),o=e("../functions/compare.js");t.exports=(e,t,r)=>{const i=[];let s=null,a=null;const c=e.sort(((e,t)=>o(e,t,r)));for(const e of c){n(e,t,r)?(a=e,s||(s=e)):(a&&i.push([s,a]),a=null,s=null)}s&&i.push([s,null]);const u=[];for(const[e,t]of i)e===t?u.push(e):t||e!==c[0]?t?e===c[0]?u.push(`<=${t}`):u.push(`${e} - ${t}`):u.push(`>=${e}`):u.push("*");const l=u.join(" || "),f="string"==typeof t.raw?t.raw:String(t);return l.length<f.length?l:t}}}},{package:"semver",file:"node_modules/semver/ranges/simplify.js"}],[5562,{"../classes/comparator.js":5520,"../classes/range.js":5521,"../functions/compare.js":5528,"../functions/satisfies.js":5544},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/range.js"),o=e("../classes/comparator.js"),{ANY:i}=o,s=e("../functions/satisfies.js"),a=e("../functions/compare.js"),c=[new o(">=0.0.0-0")],u=[new o(">=0.0.0")],l=(e,t,r)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===i){if(1===t.length&&t[0].semver===i)return!0;e=r.includePrerelease?c:u}if(1===t.length&&t[0].semver===i){if(r.includePrerelease)return!0;t=u}const n=new Set;let o,l,h,p,m,_,g;for(const t of e)">"===t.operator||">="===t.operator?o=f(o,t,r):"<"===t.operator||"<="===t.operator?l=d(l,t,r):n.add(t.semver);if(n.size>1)return null;if(o&&l){if(h=a(o.semver,l.semver,r),h>0)return null;if(0===h&&(">="!==o.operator||"<="!==l.operator))return null}for(const e of n){if(o&&!s(e,String(o),r))return null;if(l&&!s(e,String(l),r))return null;for(const n of t)if(!s(e,String(n),r))return!1;return!0}let E=!(!l||r.includePrerelease||!l.semver.prerelease.length)&&l.semver,A=!(!o||r.includePrerelease||!o.semver.prerelease.length)&&o.semver;E&&1===E.prerelease.length&&"<"===l.operator&&0===E.prerelease[0]&&(E=!1);for(const e of t){if(g=g||">"===e.operator||">="===e.operator,_=_||"<"===e.operator||"<="===e.operator,o)if(A&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===A.major&&e.semver.minor===A.minor&&e.semver.patch===A.patch&&(A=!1),">"===e.operator||">="===e.operator){if(p=f(o,e,r),p===e&&p!==o)return!1}else if(">="===o.operator&&!s(o.semver,String(e),r))return!1;if(l)if(E&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===E.major&&e.semver.minor===E.minor&&e.semver.patch===E.patch&&(E=!1),"<"===e.operator||"<="===e.operator){if(m=d(l,e,r),m===e&&m!==l)return!1}else if("<="===l.operator&&!s(l.semver,String(e),r))return!1;if(!e.operator&&(l||o)&&0!==h)return!1}return!(o&&_&&!l&&0!==h)&&(!(l&&g&&!o&&0!==h)&&(!A&&!E))},f=(e,t,r)=>{if(!e)return t;const n=a(e.semver,t.semver,r);return n>0?e:n<0||">"===t.operator&&">="===e.operator?t:e},d=(e,t,r)=>{if(!e)return t;const n=a(e.semver,t.semver,r);return n<0?e:n>0||"<"===t.operator&&"<="===e.operator?t:e};t.exports=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let o=!1;e:for(const n of e.set){for(const e of t.set){const t=l(n,e,r);if(o=o||null!==t,t)continue e}if(o)return!1}return!0}}}},{package:"semver",file:"node_modules/semver/ranges/subset.js"}],[5563,{"../classes/range":5521},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/range");t.exports=(e,t)=>new n(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))}}},{package:"semver",file:"node_modules/semver/ranges/to-comparators.js"}],[5564,{"../classes/range":5521},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/range");t.exports=(e,t)=>{try{return new n(e,t).range||"*"}catch(e){return null}}}}},{package:"semver",file:"node_modules/semver/ranges/valid.js"}],[5565,{"define-data-property":4229,"es-errors/type":4270,"get-intrinsic":4479,gopd:4492,"has-property-descriptors":4614},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("get-intrinsic"),o=e("define-data-property"),i=e("has-property-descriptors")(),s=e("gopd"),a=e("es-errors/type"),c=n("%Math.floor%");t.exports=function(e,t){if("function"!=typeof e)throw new a("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||c(t)!==t)throw new a("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,u=!0;if("length"in e&&s){var l=s(e,"length");l&&!l.configurable&&(n=!1),l&&!l.writable&&(u=!1)}return(n||u||!r)&&(i?o(e,"length",t,!0,!0):o(e,"length",t)),e}}}},{package:"string.prototype.matchall>call-bind>set-function-length",file:"node_modules/set-function-length/index.js"}],[5567,{timers:5602},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(e){(function(){t.exports="function"==typeof e?e:function(){var e=[].slice.apply(arguments);e.splice(1,0,0),setTimeout.apply(null,e)}}).call(this)}).call(this,e("timers").setImmediate)}}},{package:"promise-to-callback>set-immediate-shim",file:"node_modules/set-immediate-shim/index.js"}],[5568,{"safe-buffer":5514},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("safe-buffer").Buffer;function o(e,t){this._block=n.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}o.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=n.from(e,t));for(var r=this._block,o=this._blockSize,i=e.length,s=this._len,a=0;a<i;){for(var c=s%o,u=Math.min(i-a,o-c),l=0;l<u;l++)r[c+l]=e[a+l];a+=u,(s+=u)%o==0&&this._update(r)}return this._len+=i,this},o.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,o=(r-n)/4294967296;this._block.writeUInt32BE(o,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var i=this._hash();return e?i.toString(e):i},o.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=o}}},{package:"addons-linter>sha.js",file:"node_modules/sha.js/hash.js"}],[5569,{"./sha":5570,"./sha1":5571,"./sha224":5572,"./sha256":5573,"./sha384":5574,"./sha512":5575},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(r=t.exports=function(e){e=e.toLowerCase();var t=r[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t}).sha=e("./sha"),r.sha1=e("./sha1"),r.sha224=e("./sha224"),r.sha256=e("./sha256"),r.sha384=e("./sha384"),r.sha512=e("./sha512")}}},{package:"addons-linter>sha.js",file:"node_modules/sha.js/index.js"}],[557,{"./random":556,"./shuffle":558},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.shuffled=r.randomBytes=void 0;var n=e("./random");Object.defineProperty(r,"randomBytes",{enumerable:!0,get:function(){return n.randomBytes}});var o=e("./shuffle");Object.defineProperty(r,"shuffled",{enumerable:!0,get:function(){return o.shuffled}})}}},{package:"ethers>@ethersproject/random",file:"node_modules/@ethersproject/random/lib/index.js"}],[5570,{"./hash":5568,inherits:4650,"safe-buffer":5514},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("inherits"),o=e("./hash"),i=e("safe-buffer").Buffer,s=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function c(){this.init(),this._w=a,o.call(this,64,56)}function u(e){return e<<30|e>>>2}function l(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(c,o),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,o=0|this._b,i=0|this._c,a=0|this._d,c=0|this._e,f=0;f<16;++f)r[f]=e.readInt32BE(4*f);for(;f<80;++f)r[f]=r[f-3]^r[f-8]^r[f-14]^r[f-16];for(var d=0;d<80;++d){var h=~~(d/20),p=0|((t=n)<<5|t>>>27)+l(h,o,i,a)+c+r[d]+s[h];c=a,a=i,i=u(o),o=n,n=p}this._a=n+this._a|0,this._b=o+this._b|0,this._c=i+this._c|0,this._d=a+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var e=i.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=c}}},{package:"addons-linter>sha.js",file:"node_modules/sha.js/sha.js"}],[5571,{"./hash":5568,inherits:4650,"safe-buffer":5514},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("inherits"),o=e("./hash"),i=e("safe-buffer").Buffer,s=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function c(){this.init(),this._w=a,o.call(this,64,56)}function u(e){return e<<5|e>>>27}function l(e){return e<<30|e>>>2}function f(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(c,o),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,o=0|this._b,i=0|this._c,a=0|this._d,c=0|this._e,d=0;d<16;++d)r[d]=e.readInt32BE(4*d);for(;d<80;++d)r[d]=(t=r[d-3]^r[d-8]^r[d-14]^r[d-16])<<1|t>>>31;for(var h=0;h<80;++h){var p=~~(h/20),m=u(n)+f(p,o,i,a)+c+r[h]+s[p]|0;c=a,a=i,i=l(o),o=n,n=m}this._a=n+this._a|0,this._b=o+this._b|0,this._c=i+this._c|0,this._d=a+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var e=i.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=c}}},{package:"addons-linter>sha.js",file:"node_modules/sha.js/sha1.js"}],[5572,{"./hash":5568,"./sha256":5573,inherits:4650,"safe-buffer":5514},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("inherits"),o=e("./sha256"),i=e("./hash"),s=e("safe-buffer").Buffer,a=new Array(64);function c(){this.init(),this._w=a,i.call(this,64,56)}n(c,o),c.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},c.prototype._hash=function(){var e=s.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},t.exports=c}}},{package:"addons-linter>sha.js",file:"node_modules/sha.js/sha224.js"}],[5573,{"./hash":5568,inherits:4650,"safe-buffer":5514},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("inherits"),o=e("./hash"),i=e("safe-buffer").Buffer,s=[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],a=new Array(64);function c(){this.init(),this._w=a,o.call(this,64,56)}function u(e,t,r){return r^e&(t^r)}function l(e,t,r){return e&t|r&(e|t)}function f(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function d(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function h(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}n(c,o),c.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},c.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,o=0|this._b,i=0|this._c,a=0|this._d,c=0|this._e,p=0|this._f,m=0|this._g,_=0|this._h,g=0;g<16;++g)r[g]=e.readInt32BE(4*g);for(;g<64;++g)r[g]=0|(((t=r[g-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+r[g-7]+h(r[g-15])+r[g-16];for(var E=0;E<64;++E){var A=_+d(c)+u(c,p,m)+s[E]+r[E]|0,T=f(n)+l(n,o,i)|0;_=m,m=p,p=c,c=a+A|0,a=i,i=o,o=n,n=A+T|0}this._a=n+this._a|0,this._b=o+this._b|0,this._c=i+this._c|0,this._d=a+this._d|0,this._e=c+this._e|0,this._f=p+this._f|0,this._g=m+this._g|0,this._h=_+this._h|0},c.prototype._hash=function(){var e=i.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},t.exports=c}}},{package:"addons-linter>sha.js",file:"node_modules/sha.js/sha256.js"}],[5574,{"./hash":5568,"./sha512":5575,inherits:4650,"safe-buffer":5514},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("inherits"),o=e("./sha512"),i=e("./hash"),s=e("safe-buffer").Buffer,a=new Array(160);function c(){this.init(),this._w=a,i.call(this,128,112)}n(c,o),c.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},c.prototype._hash=function(){var e=s.allocUnsafe(48);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},t.exports=c}}},{package:"addons-linter>sha.js",file:"node_modules/sha.js/sha384.js"}],[5575,{"./hash":5568,inherits:4650,"safe-buffer":5514},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("inherits"),o=e("./hash"),i=e("safe-buffer").Buffer,s=[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],a=new Array(160);function c(){this.init(),this._w=a,o.call(this,128,112)}function u(e,t,r){return r^e&(t^r)}function l(e,t,r){return e&t|r&(e|t)}function f(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function d(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function h(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function _(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function g(e,t){return e>>>0<t>>>0?1:0}n(c,o),c.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},c.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,o=0|this._ch,i=0|this._dh,a=0|this._eh,c=0|this._fh,E=0|this._gh,A=0|this._hh,T=0|this._al,b=0|this._bl,y=0|this._cl,v=0|this._dl,I=0|this._el,N=0|this._fl,w=0|this._gl,S=0|this._hl,O=0;O<32;O+=2)t[O]=e.readInt32BE(4*O),t[O+1]=e.readInt32BE(4*O+4);for(;O<160;O+=2){var R=t[O-30],C=t[O-30+1],M=h(R,C),P=p(C,R),L=m(R=t[O-4],C=t[O-4+1]),k=_(C,R),x=t[O-14],D=t[O-14+1],j=t[O-32],U=t[O-32+1],B=P+D|0,H=M+x+g(B,P)|0;H=(H=H+L+g(B=B+k|0,k)|0)+j+g(B=B+U|0,U)|0,t[O]=H,t[O+1]=B}for(var F=0;F<160;F+=2){H=t[F],B=t[F+1];var G=l(r,n,o),K=l(T,b,y),$=f(r,T),W=f(T,r),V=d(a,I),Y=d(I,a),q=s[F],z=s[F+1],X=u(a,c,E),Z=u(I,N,w),J=S+Y|0,Q=A+V+g(J,S)|0;Q=(Q=(Q=Q+X+g(J=J+Z|0,Z)|0)+q+g(J=J+z|0,z)|0)+H+g(J=J+B|0,B)|0;var ee=W+K|0,te=$+G+g(ee,W)|0;A=E,S=w,E=c,w=N,c=a,N=I,a=i+Q+g(I=v+J|0,v)|0,i=o,v=y,o=n,y=b,n=r,b=T,r=Q+te+g(T=J+ee|0,J)|0}this._al=this._al+T|0,this._bl=this._bl+b|0,this._cl=this._cl+y|0,this._dl=this._dl+v|0,this._el=this._el+I|0,this._fl=this._fl+N|0,this._gl=this._gl+w|0,this._hl=this._hl+S|0,this._ah=this._ah+r+g(this._al,T)|0,this._bh=this._bh+n+g(this._bl,b)|0,this._ch=this._ch+o+g(this._cl,y)|0,this._dh=this._dh+i+g(this._dl,v)|0,this._eh=this._eh+a+g(this._el,I)|0,this._fh=this._fh+c+g(this._fl,N)|0,this._gh=this._gh+E+g(this._gl,w)|0,this._hh=this._hh+A+g(this._hl,S)|0},c.prototype._hash=function(){var e=i.allocUnsafe(64);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},t.exports=c}}},{package:"addons-linter>sha.js",file:"node_modules/sha.js/sha512.js"}],[5576,{"es-errors/type":4270,"object-inspect":4963},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("object-inspect"),o=e("es-errors/type"),i=function(e,t,r){for(var n,o=e;null!=(n=o.next);o=n)if(n.key===t)return o.next=n.next,r||(n.next=e.next,e.next=n),n};t.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new o("Side channel does not contain "+n(e))},delete:function(t){var r=e&&e.next,n=function(e,t){if(e)return i(e,t,!0)}(e,t);return n&&r&&r===n&&(e=void undefined),!!n},get:function(t){return function(e,t){if(e){var r=i(e,t);return r&&r.value}undefined}(e,t)},has:function(t){return function(e,t){return!!e&&!!i(e,t)}(e,t)},set:function(t,r){e||(e={next:void undefined}),function(e,t,r){var n=i(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(e,t,r)}};return t}}}},{package:"string.prototype.matchall>side-channel>side-channel-list",file:"node_modules/side-channel-list/index.js"}],[5577,{"call-bound":4091,"es-errors/type":4270,"get-intrinsic":4479,"object-inspect":4963},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("get-intrinsic"),o=e("call-bound"),i=e("object-inspect"),s=e("es-errors/type"),a=n("%Map%",!0),c=o("Map.prototype.get",!0),u=o("Map.prototype.set",!0),l=o("Map.prototype.has",!0),f=o("Map.prototype.delete",!0),d=o("Map.prototype.size",!0);t.exports=!!a&&function(){var e,t={assert:function(e){if(!t.has(e))throw new s("Side channel does not contain "+i(e))},delete:function(t){if(e){var r=f(e,t);return 0===d(e)&&(e=void undefined),r}return!1},get:function(t){if(e)return c(e,t)},has:function(t){return!!e&&l(e,t)},set:function(t,r){e||(e=new a),u(e,t,r)}};return t}}}},{package:"string.prototype.matchall>side-channel>side-channel-map",file:"node_modules/side-channel-map/index.js"}],[5578,{"call-bound":4091,"es-errors/type":4270,"get-intrinsic":4479,"object-inspect":4963,"side-channel-map":5577},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("get-intrinsic"),o=e("call-bound"),i=e("object-inspect"),s=e("side-channel-map"),a=e("es-errors/type"),c=n("%WeakMap%",!0),u=o("WeakMap.prototype.get",!0),l=o("WeakMap.prototype.set",!0),f=o("WeakMap.prototype.has",!0),d=o("WeakMap.prototype.delete",!0);t.exports=c?function(){var e,t,r={assert:function(e){if(!r.has(e))throw new a("Side channel does not contain "+i(e))},delete:function(r){if(c&&r&&("object"==typeof r||"function"==typeof r)){if(e)return d(e,r)}else if(s&&t)return t.delete(r);return!1},get:function(r){return c&&r&&("object"==typeof r||"function"==typeof r)&&e?u(e,r):t&&t.get(r)},has:function(r){return c&&r&&("object"==typeof r||"function"==typeof r)&&e?f(e,r):!!t&&t.has(r)},set:function(r,n){c&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new c),l(e,r,n)):s&&(t||(t=s()),t.set(r,n))}};return r}:s}}},{package:"string.prototype.matchall>side-channel>side-channel-weakmap",file:"node_modules/side-channel-weakmap/index.js"}],[5579,{"es-errors/type":4270,"object-inspect":4963,"side-channel-list":5576,"side-channel-map":5577,"side-channel-weakmap":5578},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("es-errors/type"),o=e("object-inspect"),i=e("side-channel-list"),s=e("side-channel-map"),a=e("side-channel-weakmap")||s||i;t.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n("Side channel does not contain "+o(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,r){e||(e=a()),e.set(t,r)}};return t}}}},{package:"string.prototype.matchall>side-channel",file:"node_modules/side-channel/index.js"}],[558,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.shuffled=void 0,r.shuffled=function(e){for(var t=(e=e.slice()).length-1;t>0;t--){var r=Math.floor(Math.random()*(t+1)),n=e[t];e[t]=e[r],e[r]=n}return e}}}},{package:"ethers>@ethersproject/random",file:"node_modules/@ethersproject/random/lib/shuffle.js"}],[5580,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=[{payable:!0,stateMutability:"payable",type:"fallback"},{constant:!0,inputs:[{name:"user",type:"address"},{name:"token",type:"address"}],name:"tokenBalance",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"users",type:"address[]"},{name:"tokens",type:"address[]"}],name:"balances",outputs:[{name:"",type:"uint256[]"}],payable:!1,stateMutability:"view",type:"function"}]}}},{package:"single-call-balance-checker-abi",file:"node_modules/single-call-balance-checker-abi/index.js"}],[5581,{"./ethersCompat":5582,"./types":5584,"./utils":5585,"@spruceid/siwe-parser":5587,"valid-url":5678},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t},s=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(r,"__esModule",{value:!0}),r.SiweMessage=void 0;const a=e("@spruceid/siwe-parser"),c=i(e("valid-url")),u=e("./ethersCompat"),l=e("./types"),f=e("./utils");r.SiweMessage=class{constructor(e){if("string"==typeof e){const t=new a.ParsedMessage(e);this.scheme=t.scheme,this.domain=t.domain,this.address=t.address,this.statement=t.statement,this.uri=t.uri,this.version=t.version,this.nonce=t.nonce,this.issuedAt=t.issuedAt,this.expirationTime=t.expirationTime,this.notBefore=t.notBefore,this.requestId=t.requestId,this.chainId=t.chainId,this.resources=t.resources}else this.scheme=null==e?void 0:e.scheme,this.domain=e.domain,this.address=e.address,this.statement=null==e?void 0:e.statement,this.uri=e.uri,this.version=e.version,this.chainId=e.chainId,this.nonce=e.nonce,this.issuedAt=null==e?void 0:e.issuedAt,this.expirationTime=null==e?void 0:e.expirationTime,this.notBefore=null==e?void 0:e.notBefore,this.requestId=null==e?void 0:e.requestId,this.resources=null==e?void 0:e.resources,"string"==typeof this.chainId&&(this.chainId=(0,a.parseIntegerNumber)(this.chainId));this.nonce=this.nonce||(0,f.generateNonce)(),this.validateMessage()}toMessage(){this.validateMessage();const e=`${this.scheme?`${this.scheme}://${this.domain}`:this.domain} wants you to sign in with your Ethereum account:`,t=`URI: ${this.uri}`;let r=[e,this.address].join("\n");const n=`Version: ${this.version}`;this.nonce||(this.nonce=(0,f.generateNonce)());const o=[t,n,"Chain ID: "+this.chainId||"1",`Nonce: ${this.nonce}`];if(this.issuedAt=this.issuedAt||(new Date).toISOString(),o.push(`Issued At: ${this.issuedAt}`),this.expirationTime){const e=`Expiration Time: ${this.expirationTime}`;o.push(e)}this.notBefore&&o.push(`Not Before: ${this.notBefore}`),this.requestId&&o.push(`Request ID: ${this.requestId}`),this.resources&&o.push(["Resources:",...this.resources.map((e=>`- ${e}`))].join("\n"));const i=o.join("\n");return r=[r,this.statement].join("\n\n"),this.statement&&(r+="\n"),[r,i].join("\n")}prepareMessage(){let e;return this.version,e=this.toMessage(),e}validate(e,t){return s(this,void 0,void 0,(function*(){return console.warn("validate() has been deprecated, please update your code to use verify(). validate() may be removed in future versions."),this.verify({signature:e},{provider:t,suppressExceptions:!1}).then((({data:e})=>e)).catch((({error:e})=>{throw e}))}))}verify(e,t={suppressExceptions:!1}){return s(this,void 0,void 0,(function*(){return new Promise(((r,n)=>{var o,i,s;const a=e=>t.suppressExceptions?r(e):n(e),c=(0,f.checkInvalidKeys)(e,l.VerifyParamsKeys);c.length>0&&a({success:!1,data:this,error:new Error(`${c.join(", ")} is/are not valid key(s) for VerifyParams.`)});const d=(0,f.checkInvalidKeys)(t,l.VerifyOptsKeys);c.length>0&&a({success:!1,data:this,error:new Error(`${d.join(", ")} is/are not valid key(s) for VerifyOpts.`)});const{signature:h,scheme:p,domain:m,nonce:_,time:g}=e;p&&p!==this.scheme&&a({success:!1,data:this,error:new l.SiweError(l.SiweErrorType.SCHEME_MISMATCH,p,this.scheme)}),m&&m!==this.domain&&a({success:!1,data:this,error:new l.SiweError(l.SiweErrorType.DOMAIN_MISMATCH,m,this.domain)}),_&&_!==this.nonce&&a({success:!1,data:this,error:new l.SiweError(l.SiweErrorType.NONCE_MISMATCH,_,this.nonce)});const E=new Date(g||new Date);if(this.expirationTime){const e=new Date(this.expirationTime);E.getTime()>=e.getTime()&&a({success:!1,data:this,error:new l.SiweError(l.SiweErrorType.EXPIRED_MESSAGE,`${E.toISOString()} < ${e.toISOString()}`,`${E.toISOString()} >= ${e.toISOString()}`)})}if(this.notBefore){const e=new Date(this.notBefore);E.getTime()<e.getTime()&&a({success:!1,data:this,error:new l.SiweError(l.SiweErrorType.NOT_YET_VALID_MESSAGE,`${E.toISOString()} >= ${e.toISOString()}`,`${E.toISOString()} < ${e.toISOString()}`)})}let A,T;try{A=this.prepareMessage()}catch(e){a({success:!1,data:this,error:e})}try{T=(0,u.verifyMessage)(A,h)}catch(e){console.error(e)}if(T===this.address)return r({success:!0,data:this});{const n=(0,f.checkContractWalletSignature)(this,h,t.provider).then((e=>e?{success:!0,data:this}:{success:!1,data:this,error:new l.SiweError(l.SiweErrorType.INVALID_SIGNATURE,T,`Resolved address to be ${this.address}`)})).catch((e=>({success:!1,data:this,error:e})));Promise.all([n,null===(s=null===(i=null===(o=null==t?void 0:t.verificationFallback)||void 0===o?void 0:o.call(t,e,t,this,n))||void 0===i?void 0:i.then((e=>e)))||void 0===s?void 0:s.catch((e=>e))]).then((([e,t])=>{if(t){if(t.success)return r(t);a(t)}else{if(e.success)return r(e);a(e)}}))}}))}))}validateMessage(...e){var t;if(e.length>0)throw new l.SiweError(l.SiweErrorType.UNABLE_TO_PARSE,"Unexpected argument in the validateMessage function.");if(!this.domain||0===this.domain.length||!/[^#?]*/.test(this.domain))throw new l.SiweError(l.SiweErrorType.INVALID_DOMAIN,`${this.domain} to be a valid domain.`);if(!(0,a.isEIP55Address)(this.address))throw new l.SiweError(l.SiweErrorType.INVALID_ADDRESS,(0,u.getAddress)(this.address),this.address);if(!c.isUri(this.uri))throw new l.SiweError(l.SiweErrorType.INVALID_URI,`${this.uri} to be a valid uri.`);if("1"!==this.version)throw new l.SiweError(l.SiweErrorType.INVALID_MESSAGE_VERSION,"1",this.version);const r=null===(t=null==this?void 0:this.nonce)||void 0===t?void 0:t.match(/[a-zA-Z0-9]{8,}/);if(!r||this.nonce.length<8||r[0]!==this.nonce)throw new l.SiweError(l.SiweErrorType.INVALID_NONCE,`Length > 8 (${r.length}). Alphanumeric.`,this.nonce);if(this.issuedAt&&!(0,f.isValidISO8601Date)(this.issuedAt))throw new Error(l.SiweErrorType.INVALID_TIME_FORMAT);if(this.expirationTime&&!(0,f.isValidISO8601Date)(this.expirationTime))throw new Error(l.SiweErrorType.INVALID_TIME_FORMAT);if(this.notBefore&&!(0,f.isValidISO8601Date)(this.notBefore))throw new Error(l.SiweErrorType.INVALID_TIME_FORMAT)}}}}},{package:"@metamask/profile-sync-controller>siwe",file:"node_modules/siwe/dist/client.js"}],[5582,{ethers:4366},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getAddress=r.hashMessage=r.verifyMessage=void 0;const n=e("ethers");let o=null,i=null,s=null;try{o=n.ethers.utils.verifyMessage,i=n.ethers.utils.hashMessage,s=n.ethers.utils.getAddress}catch(e){o=n.ethers.verifyMessage,i=n.ethers.hashMessage,s=n.ethers.getAddress}r.verifyMessage=o,r.hashMessage=i,r.getAddress=s}}},{package:"@metamask/profile-sync-controller>siwe",file:"node_modules/siwe/dist/ethersCompat.js"}],[5583,{"./client":5581,"./types":5584,"./utils":5585},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),o(e("./client"),r),o(e("./types"),r),o(e("./utils"),r)}}},{package:"@metamask/profile-sync-controller>siwe",file:"node_modules/siwe/dist/siwe.js"}],[5584,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.SiweErrorType=r.SiweError=r.VerifyOptsKeys=r.VerifyParamsKeys=void 0,r.VerifyParamsKeys=["signature","scheme","domain","nonce","time"],r.VerifyOptsKeys=["provider","suppressExceptions","verificationFallback"];r.SiweError=class{constructor(e,t,r){this.type=e,this.expected=t,this.received=r}},function(e){e.EXPIRED_MESSAGE="Expired message.",e.INVALID_DOMAIN="Invalid domain.",e.SCHEME_MISMATCH="Scheme does not match provided scheme for verification.",e.DOMAIN_MISMATCH="Domain does not match provided domain for verification.",e.NONCE_MISMATCH="Nonce does not match provided nonce for verification.",e.INVALID_ADDRESS="Invalid address.",e.INVALID_URI="URI does not conform to RFC 3986.",e.INVALID_NONCE="Nonce size smaller then 8 characters or is not alphanumeric.",e.NOT_YET_VALID_MESSAGE="Message is not valid yet.",e.INVALID_SIGNATURE="Signature does not match address of the message.",e.INVALID_TIME_FORMAT="Invalid time format.",e.INVALID_MESSAGE_VERSION="Invalid message version.",e.UNABLE_TO_PARSE="Unable to parse the message."}(r.SiweErrorType||(r.SiweErrorType={}))}}},{package:"@metamask/profile-sync-controller>siwe",file:"node_modules/siwe/dist/types.js"}],[5585,{"./ethersCompat":5582,"@stablelib/random":3252,ethers:4366},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(r,"__esModule",{value:!0}),r.checkInvalidKeys=r.isValidISO8601Date=r.generateNonce=r.checkContractWalletSignature=void 0;const o=e("@stablelib/random"),i=e("ethers"),s=e("./ethersCompat"),a=["function isValidSignature(bytes32 _message, bytes _signature) public view returns (bytes4)"],c=/^(?<date>[0-9]{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]))[Tt]([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(.[0-9]+)?(([Zz])|([+|-]([01][0-9]|2[0-3]):[0-5][0-9]))$/;r.checkContractWalletSignature=(e,t,r)=>n(void 0,void 0,void 0,(function*(){if(!r)return!1;const n=new i.Contract(e.address,a,r),o=(0,s.hashMessage)(e.prepareMessage());return"0x1626ba7e"===(yield n.isValidSignature(o,t))}));r.generateNonce=()=>{const e=(0,o.randomStringForEntropy)(96);if(!e||e.length<8)throw new Error("Error during nonce creation.");return e};r.isValidISO8601Date=e=>{const t=c.exec(e);if(!e)return!1;const r=new Date(t.groups.date).toISOString(),n=c.exec(r);return t.groups.date===n.groups.date};r.checkInvalidKeys=(e,t)=>{const r=[];return Object.keys(e).forEach((e=>{t.includes(e)||r.push(e)})),r}}}},{package:"@metamask/profile-sync-controller>siwe",file:"node_modules/siwe/dist/utils.js"}],[5586,{"./utils":5588,"apg-js/src/apg-api/api":3871,"apg-js/src/apg-lib/node-exports":3889},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.ParsedMessage=void 0;const i=o(e("apg-js/src/apg-api/api")),s=o(e("apg-js/src/apg-lib/node-exports")),a=e("./utils");class c{static generateApi(){const e=new i.default('\nsign-in-with-ethereum =\n [ scheme "://" ] domain %s" wants you to sign in with your Ethereum account:" LF\n address LF\n LF\n [ statement LF ]\n LF\n %s"URI: " URI LF\n %s"Version: " version LF\n %s"Chain ID: " chain-id LF\n %s"Nonce: " nonce LF\n %s"Issued At: " issued-at\n [ LF %s"Expiration Time: " expiration-time ]\n [ LF %s"Not Before: " not-before ]\n [ LF %s"Request ID: " request-id ]\n [ LF %s"Resources:"\n resources ]\n\ndomain = authority\n\naddress = "0x" 40*40HEXDIG\n ; Must also conform to captilization\n ; checksum encoding specified in EIP-55\n ; where applicable (EOAs).\n\nstatement = 1*( reserved / unreserved / " " )\n ; The purpose is to exclude LF (line breaks).\n\nversion = "1"\n\nnonce = 8*( ALPHA / DIGIT )\n\nissued-at = date-time\nexpiration-time = date-time\nnot-before = date-time\n\nrequest-id = *pchar\n\nchain-id = 1*DIGIT\n ; See EIP-155 for valid CHAIN_IDs.\n\nresources = *( LF resource )\n\nresource = "- " URI\n\n; ------------------------------------------------------------------------------\n; RFC 3986\n\nURI = scheme ":" hier-part [ "?" query ] [ "#" fragment ]\n\nhier-part = "//" authority path-abempty\n / path-absolute\n / path-rootless\n / path-empty\n\nscheme = ALPHA *( ALPHA / DIGIT / "+" / "-" / "." )\n\nauthority = [ userinfo "@" ] host [ ":" port ]\nuserinfo = *( unreserved / pct-encoded / sub-delims / ":" )\nhost = IP-literal / IPv4address / reg-name\nport = *DIGIT\n\nIP-literal = "[" ( IPv6address / IPvFuture ) "]"\n\nIPvFuture = "v" 1*HEXDIG "." 1*( unreserved / sub-delims / ":" )\n\nIPv6address = 6( h16 ":" ) ls32\n / "::" 5( h16 ":" ) ls32\n / [ h16 ] "::" 4( h16 ":" ) ls32\n / [ *1( h16 ":" ) h16 ] "::" 3( h16 ":" ) ls32\n / [ *2( h16 ":" ) h16 ] "::" 2( h16 ":" ) ls32\n / [ *3( h16 ":" ) h16 ] "::" h16 ":" ls32\n / [ *4( h16 ":" ) h16 ] "::" ls32\n / [ *5( h16 ":" ) h16 ] "::" h16\n / [ *6( h16 ":" ) h16 ] "::"\n\nh16 = 1*4HEXDIG\nls32 = ( h16 ":" h16 ) / IPv4address\nIPv4address = dec-octet "." dec-octet "." dec-octet "." dec-octet\ndec-octet = DIGIT ; 0-9\n / %x31-39 DIGIT ; 10-99\n / "1" 2DIGIT ; 100-199\n / "2" %x30-34 DIGIT ; 200-249\n / "25" %x30-35 ; 250-255\n\nreg-name = *( unreserved / pct-encoded / sub-delims )\n\npath-abempty = *( "/" segment )\npath-absolute = "/" [ segment-nz *( "/" segment ) ]\npath-rootless = segment-nz *( "/" segment )\npath-empty = 0pchar\n\nsegment = *pchar\nsegment-nz = 1*pchar\n\npchar = unreserved / pct-encoded / sub-delims / ":" / "@"\n\nquery = *( pchar / "/" / "?" )\n\nfragment = *( pchar / "/" / "?" )\n\npct-encoded = "%" HEXDIG HEXDIG\n\nunreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"\nreserved = gen-delims / sub-delims\ngen-delims = ":" / "/" / "?" / "#" / "[" / "]" / "@"\nsub-delims = "!" / "$" / "&" / "\'" / "(" / ")"\n / "*" / "+" / "," / ";" / "="\n\n; ------------------------------------------------------------------------------\n; RFC 3339\n\ndate-fullyear = 4DIGIT\ndate-month = 2DIGIT ; 01-12\ndate-mday = 2DIGIT ; 01-28, 01-29, 01-30, 01-31 based on\n ; month/year\ntime-hour = 2DIGIT ; 00-23\ntime-minute = 2DIGIT ; 00-59\ntime-second = 2DIGIT ; 00-58, 00-59, 00-60 based on leap second\n ; rules\ntime-secfrac = "." 1*DIGIT\ntime-numoffset = ("+" / "-") time-hour ":" time-minute\ntime-offset = "Z" / time-numoffset\n\npartial-time = time-hour ":" time-minute ":" time-second\n [time-secfrac]\nfull-date = date-fullyear "-" date-month "-" date-mday\nfull-time = partial-time time-offset\n\ndate-time = full-date "T" full-time\n\n; ------------------------------------------------------------------------------\n; RFC 5234\n\nALPHA = %x41-5A / %x61-7A ; A-Z / a-z\nLF = %x0A\n ; linefeed\nDIGIT = %x30-39\n ; 0-9\nHEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"\n');if(e.generate(),e.errors.length)throw console.error(e.errorsToAscii()),console.error(e.linesToAscii()),console.log(e.displayAttributeErrors()),new Error("ABNF grammar has errors");return e.toObject()}}n=c,c.grammarObj=n.generateApi();r.ParsedMessage=class{constructor(e){const t=new s.default.parser;t.ast=new s.default.ast;const r=s.default.ids;t.ast.callbacks.scheme=function(e,t,n,o,i){const a=r.SEM_OK;return e===r.SEM_PRE&&0===n&&(i.scheme=s.default.utils.charsToString(t,n,o)),a};t.ast.callbacks.domain=function(e,t,n,o,i){const a=r.SEM_OK;return e===r.SEM_PRE&&(i.domain=s.default.utils.charsToString(t,n,o)),a};t.ast.callbacks.address=function(e,t,n,o,i){const a=r.SEM_OK;return e===r.SEM_PRE&&(i.address=s.default.utils.charsToString(t,n,o)),a};t.ast.callbacks.statement=function(e,t,n,o,i){const a=r.SEM_OK;return e===r.SEM_PRE&&(i.statement=s.default.utils.charsToString(t,n,o)),a};t.ast.callbacks.uri=function(e,t,n,o,i){const a=r.SEM_OK;return e===r.SEM_PRE&&(i.uri||(i.uri=s.default.utils.charsToString(t,n,o))),a};t.ast.callbacks.version=function(e,t,n,o,i){const a=r.SEM_OK;return e===r.SEM_PRE&&(i.version=s.default.utils.charsToString(t,n,o)),a};t.ast.callbacks["chain-id"]=function(e,t,n,o,i){const c=r.SEM_OK;return e===r.SEM_PRE&&(i.chainId=(0,a.parseIntegerNumber)(s.default.utils.charsToString(t,n,o))),c};t.ast.callbacks.nonce=function(e,t,n,o,i){const a=r.SEM_OK;return e===r.SEM_PRE&&(i.nonce=s.default.utils.charsToString(t,n,o)),a};t.ast.callbacks["issued-at"]=function(e,t,n,o,i){const a=r.SEM_OK;return e===r.SEM_PRE&&(i.issuedAt=s.default.utils.charsToString(t,n,o)),a};t.ast.callbacks["expiration-time"]=function(e,t,n,o,i){const a=r.SEM_OK;return e===r.SEM_PRE&&(i.expirationTime=s.default.utils.charsToString(t,n,o)),a};t.ast.callbacks["not-before"]=function(e,t,n,o,i){const a=r.SEM_OK;return e===r.SEM_PRE&&(i.notBefore=s.default.utils.charsToString(t,n,o)),a};t.ast.callbacks["request-id"]=function(e,t,n,o,i){const a=r.SEM_OK;return e===r.SEM_PRE&&(i.requestId=s.default.utils.charsToString(t,n,o)),a};t.ast.callbacks.resources=function(e,t,n,o,i){const a=r.SEM_OK;return e===r.SEM_PRE&&(i.resources=s.default.utils.charsToString(t,n,o).slice(3).split("\n- ")),a};const n=t.parse(c.grammarObj,"sign-in-with-ethereum",e);if(!n.success)throw new Error(`Invalid message: ${JSON.stringify(n)}`);const o={};t.ast.translate(o);for(const[e,t]of Object.entries(o))this[e]=t;if(0===this.domain.length)throw new Error("Domain cannot be empty.");if(!(0,a.isEIP55Address)(this.address))throw new Error("Address not conformant to EIP-55.")}}}}},{package:"@metamask/profile-sync-controller>siwe>@spruceid/siwe-parser",file:"node_modules/siwe/node_modules/@spruceid/siwe-parser/dist/abnf.js"}],[5587,{"./abnf":5586,"./utils":5588},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),r.ParsedMessage=void 0;const i=e("./abnf");Object.defineProperty(r,"ParsedMessage",{enumerable:!0,get:function(){return i.ParsedMessage}}),o(e("./utils"),r)}}},{package:"@metamask/profile-sync-controller>siwe>@spruceid/siwe-parser",file:"node_modules/siwe/node_modules/@spruceid/siwe-parser/dist/parsers.js"}],[5588,{"@noble/hashes/sha3":3001,"@noble/hashes/utils":3003},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.parseIntegerNumber=r.isEIP55Address=void 0;const n=e("@noble/hashes/sha3"),o=e("@noble/hashes/utils");r.isEIP55Address=e=>{if(42!=e.length)return!1;const t=`${e}`.toLowerCase().replace("0x",""),r=(0,o.bytesToHex)((0,n.keccak_256)(t));let i="0x";for(let e=0;e<t.length;e++)parseInt(r[e],16)>=8?i+=t[e].toUpperCase():i+=t[e];return e===i};r.parseIntegerNumber=e=>{const t=parseInt(e);if(isNaN(t))throw new Error("Invalid number.");if(t===Infinity)throw new Error("Invalid number.");return t}}}},{package:"@metamask/profile-sync-controller>siwe>@spruceid/siwe-parser",file:"node_modules/siwe/node_modules/@spruceid/siwe-parser/dist/utils.js"}],[559,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.version=void 0,r.version="rlp/5.7.0"}}},{package:"ethers>@ethersproject/rlp",file:"node_modules/@ethersproject/rlp/lib/_version.js"}],[5591,{events:4399,inherits:4650,"readable-stream/lib/_stream_duplex.js":5261,"readable-stream/lib/_stream_passthrough.js":5262,"readable-stream/lib/_stream_readable.js":5263,"readable-stream/lib/_stream_transform.js":5264,"readable-stream/lib/_stream_writable.js":5265,"readable-stream/lib/internal/streams/end-of-stream.js":5269,"readable-stream/lib/internal/streams/pipeline.js":5271},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=o;var n=e("events").EventEmitter;function o(){n.call(this)}e("inherits")(o,n),o.Readable=e("readable-stream/lib/_stream_readable.js"),o.Writable=e("readable-stream/lib/_stream_writable.js"),o.Duplex=e("readable-stream/lib/_stream_duplex.js"),o.Transform=e("readable-stream/lib/_stream_transform.js"),o.PassThrough=e("readable-stream/lib/_stream_passthrough.js"),o.finished=e("readable-stream/lib/internal/streams/end-of-stream.js"),o.pipeline=e("readable-stream/lib/internal/streams/pipeline.js"),o.Stream=o,o.prototype.pipe=function(e,t){var r=this;function o(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function i(){r.readable&&r.resume&&r.resume()}r.on("data",o),e.on("drain",i),e._isStdio||t&&!1===t.end||(r.on("end",a),r.on("close",c));var s=!1;function a(){s||(s=!0,e.end())}function c(){s||(s=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(l(),0===n.listenerCount(this,"error"))throw e}function l(){r.removeListener("data",o),e.removeListener("drain",i),r.removeListener("end",a),r.removeListener("close",c),r.removeListener("error",u),e.removeListener("error",u),r.removeListener("end",l),r.removeListener("close",l),e.removeListener("close",l)}return r.on("error",u),e.on("error",u),r.on("end",l),r.on("close",l),e.on("close",l),e.emit("pipe",r),e}}}},{package:"stream-browserify",file:"node_modules/stream-browserify/index.js"}],[5592,{"./lib/request":5594,"./lib/response":5595,"builtin-status-codes":4082,url:5639,xtend:5702},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("./lib/request"),o=e("./lib/response"),i=e("xtend"),s=e("builtin-status-codes"),a=e("url"),c=r;c.request=function(e,t){e="string"==typeof e?a.parse(e):i(e);var r=-1===global.location.protocol.search(/^https?:$/)?"http:":"",o=e.protocol||r,s=e.hostname||e.host,c=e.port,u=e.path||"/";s&&-1!==s.indexOf(":")&&(s="["+s+"]"),e.url=(s?o+"//"+s:"")+(c?":"+c:"")+u,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var l=new n(e);return t&&l.on("response",t),l},c.get=function(e,t){var r=c.request(e,t);return r.end(),r},c.ClientRequest=n,c.IncomingMessage=o.IncomingMessage,c.Agent=function(){},c.Agent.defaultMaxSockets=4,c.globalAgent=new c.Agent,c.STATUS_CODES=s,c.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}}},{package:"stream-http",file:"node_modules/stream-http/index.js"}],[5593,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n;function o(){if(n!==undefined)return n;if(global.XMLHttpRequest){n=new global.XMLHttpRequest;try{n.open("GET",global.XDomainRequest?"/":"https://example.com")}catch(e){n=null}}else n=null;return n}function i(e){var t=o();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}function s(e){return"function"==typeof e}r.fetch=s(global.fetch)&&s(global.ReadableStream),r.writableStream=s(global.WritableStream),r.abortController=s(global.AbortController),r.arraybuffer=r.fetch||i("arraybuffer"),r.msstream=!r.fetch&&i("ms-stream"),r.mozchunkedarraybuffer=!r.fetch&&i("moz-chunked-arraybuffer"),r.overrideMimeType=r.fetch||!!o()&&s(o().overrideMimeType),n=null}}},{package:"stream-http",file:"node_modules/stream-http/lib/capability.js"}],[5594,{"./capability":5593,"./response":5595,_process:5008,buffer:4074,inherits:4650,"readable-stream":5274},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(r,n){(function(){var o=e("./capability"),i=e("inherits"),s=e("./response"),a=e("readable-stream"),c=s.IncomingMessage,u=s.readyStates;var l=t.exports=function(e){var t,r=this;a.Writable.call(r),r._opts=e,r._body=[],r._headers={},e.auth&&r.setHeader("Authorization","Basic "+n.from(e.auth).toString("base64")),Object.keys(e.headers).forEach((function(t){r.setHeader(t,e.headers[t])}));var i=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!o.abortController)i=!1,t=!0;else if("prefer-streaming"===e.mode)t=!1;else if("allow-wrong-content-type"===e.mode)t=!o.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");t=!0}r._mode=function(e,t){return o.fetch&&t?"fetch":o.mozchunkedarraybuffer?"moz-chunked-arraybuffer":o.msstream?"ms-stream":o.arraybuffer&&e?"arraybuffer":"text"}(t,i),r._fetchTimer=null,r._socketTimeout=null,r._socketTimer=null,r.on("finish",(function(){r._onFinish()}))};i(l,a.Writable),l.prototype.setHeader=function(e,t){var r=e.toLowerCase();-1===f.indexOf(r)&&(this._headers[r]={name:e,value:t})},l.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},l.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},l.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t=e._opts;"timeout"in t&&0!==t.timeout&&e.setTimeout(t.timeout);var n=e._headers,i=null;"GET"!==t.method&&"HEAD"!==t.method&&(i=new Blob(e._body,{type:(n["content-type"]||{}).value||""}));var s=[];if(Object.keys(n).forEach((function(e){var t=n[e].name,r=n[e].value;Array.isArray(r)?r.forEach((function(e){s.push([t,e])})):s.push([t,r])})),"fetch"===e._mode){var a=null;if(o.abortController){var c=new AbortController;a=c.signal,e._fetchAbortController=c,"requestTimeout"in t&&0!==t.requestTimeout&&(e._fetchTimer=global.setTimeout((function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()}),t.requestTimeout))}global.fetch(e._opts.url,{method:e._opts.method,headers:s,body:i||undefined,mode:"cors",credentials:t.withCredentials?"include":"same-origin",signal:a}).then((function(t){e._fetchResponse=t,e._resetTimers(!1),e._connect()}),(function(t){e._resetTimers(!0),e._destroyed||e.emit("error",t)}))}else{var l=e._xhr=new global.XMLHttpRequest;try{l.open(e._opts.method,e._opts.url,!0)}catch(t){return void r.nextTick((function(){e.emit("error",t)}))}"responseType"in l&&(l.responseType=e._mode),"withCredentials"in l&&(l.withCredentials=!!t.withCredentials),"text"===e._mode&&"overrideMimeType"in l&&l.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in t&&(l.timeout=t.requestTimeout,l.ontimeout=function(){e.emit("requestTimeout")}),s.forEach((function(e){l.setRequestHeader(e[0],e[1])})),e._response=null,l.onreadystatechange=function(){switch(l.readyState){case u.LOADING:case u.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(l.onprogress=function(){e._onXHRProgress()}),l.onerror=function(){e._destroyed||(e._resetTimers(!0),e.emit("error",new Error("XHR error")))};try{l.send(i)}catch(t){return void r.nextTick((function(){e.emit("error",t)}))}}}},l.prototype._onXHRProgress=function(){var e=this;e._resetTimers(!1),function(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}}(e._xhr)&&!e._destroyed&&(e._response||e._connect(),e._response._onXHRProgress(e._resetTimers.bind(e)))},l.prototype._connect=function(){var e=this;e._destroyed||(e._response=new c(e._xhr,e._fetchResponse,e._mode,e._resetTimers.bind(e)),e._response.on("error",(function(t){e.emit("error",t)})),e.emit("response",e._response))},l.prototype._write=function(e,t,r){this._body.push(e),r()},l.prototype._resetTimers=function(e){var t=this;global.clearTimeout(t._socketTimer),t._socketTimer=null,e?(global.clearTimeout(t._fetchTimer),t._fetchTimer=null):t._socketTimeout&&(t._socketTimer=global.setTimeout((function(){t.emit("timeout")}),t._socketTimeout))},l.prototype.abort=l.prototype.destroy=function(e){var t=this;t._destroyed=!0,t._resetTimers(!0),t._response&&(t._response._destroyed=!0),t._xhr?t._xhr.abort():t._fetchAbortController&&t._fetchAbortController.abort(),e&&t.emit("error",e)},l.prototype.end=function(e,t,r){"function"==typeof e&&(r=e,e=undefined),a.Writable.prototype.end.call(this,e,t,r)},l.prototype.setTimeout=function(e,t){var r=this;t&&r.once("timeout",t),r._socketTimeout=e,r._resetTimers(!1)},l.prototype.flushHeaders=function(){},l.prototype.setNoDelay=function(){},l.prototype.setSocketKeepAlive=function(){};var f=["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"]}).call(this)}).call(this,e("_process"),e("buffer").Buffer)}}},{package:"stream-http",file:"node_modules/stream-http/lib/request.js"}],[5595,{"./capability":5593,_process:5008,buffer:4074,inherits:4650,"readable-stream":5274},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t,n){(function(){var o=e("./capability"),i=e("inherits"),s=e("readable-stream"),a=r.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},c=r.IncomingMessage=function(e,r,i,a){var c=this;if(s.Readable.call(c),c._mode=i,c.headers={},c.rawHeaders=[],c.trailers={},c.rawTrailers=[],c.on("end",(function(){t.nextTick((function(){c.emit("close")}))})),"fetch"===i){if(c._fetchResponse=r,c.url=r.url,c.statusCode=r.status,c.statusMessage=r.statusText,r.headers.forEach((function(e,t){c.headers[t.toLowerCase()]=e,c.rawHeaders.push(t,e)})),o.writableStream){var u=new WritableStream({write:function(e){return a(!1),new Promise((function(t,r){c._destroyed?r():c.push(n.from(e))?t():c._resumeFetch=t}))},close:function(){a(!0),c._destroyed||c.push(null)},abort:function(e){a(!0),c._destroyed||c.emit("error",e)}});try{return void r.body.pipeTo(u).catch((function(e){a(!0),c._destroyed||c.emit("error",e)}))}catch(p){}}var l=r.body.getReader();function h(){l.read().then((function(e){c._destroyed||(a(e.done),e.done?c.push(null):(c.push(n.from(e.value)),h()))})).catch((function(e){a(!0),c._destroyed||c.emit("error",e)}))}h()}else{if(c._xhr=e,c._pos=0,c.url=e.responseURL,c.statusCode=e.status,c.statusMessage=e.statusText,e.getAllResponseHeaders().split(/\r?\n/).forEach((function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var r=t[1].toLowerCase();"set-cookie"===r?(c.headers[r]===undefined&&(c.headers[r]=[]),c.headers[r].push(t[2])):c.headers[r]!==undefined?c.headers[r]+=", "+t[2]:c.headers[r]=t[2],c.rawHeaders.push(t[1],t[2])}})),c._charset="x-user-defined",!o.overrideMimeType){var f=c.rawHeaders["mime-type"];if(f){var d=f.match(/;\s*charset=([^;])(;|$)/);d&&(c._charset=d[1].toLowerCase())}c._charset||(c._charset="utf-8")}}};i(c,s.Readable),c.prototype._read=function(){var e=this._resumeFetch;e&&(this._resumeFetch=null,e())},c.prototype._onXHRProgress=function(e){var t=this,r=t._xhr,o=null;switch(t._mode){case"text":if((o=r.responseText).length>t._pos){var i=o.substr(t._pos);if("x-user-defined"===t._charset){for(var s=n.alloc(i.length),c=0;c<i.length;c++)s[c]=255&i.charCodeAt(c);t.push(s)}else t.push(i,t._charset);t._pos=o.length}break;case"arraybuffer":if(r.readyState!==a.DONE||!r.response)break;o=r.response,t.push(n.from(new Uint8Array(o)));break;case"moz-chunked-arraybuffer":if(o=r.response,r.readyState!==a.LOADING||!o)break;t.push(n.from(new Uint8Array(o)));break;case"ms-stream":if(o=r.response,r.readyState!==a.LOADING)break;var u=new global.MSStreamReader;u.onprogress=function(){u.result.byteLength>t._pos&&(t.push(n.from(new Uint8Array(u.result.slice(t._pos)))),t._pos=u.result.byteLength)},u.onload=function(){e(!0),t.push(null)},u.readAsArrayBuffer(o)}t._xhr.readyState===a.DONE&&"ms-stream"!==t._mode&&(e(!0),t.push(null))}}).call(this)}).call(this,e("_process"),e("buffer").Buffer)}}},{package:"stream-http",file:"node_modules/stream-http/lib/response.js"}],[5597,{"safe-buffer":5514},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("safe-buffer").Buffer,o=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===o||!o(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=u,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=l,this.end=f,t=3;break;default:return this.write=d,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function s(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"<22>";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"<22>";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"<22>"}}(this,e);return r!==undefined?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function l(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}r.StringDecoder=i,i.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if((t=this.fillLast(e))===undefined)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},i.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"<22>":t},i.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var o=s(t[n]);if(o>=0)return o>0&&(e.lastNeed=o-1),o;if(--n<r||-2===o)return 0;if(o=s(t[n]),o>=0)return o>0&&(e.lastNeed=o-2),o;if(--n<r||-2===o)return 0;if(o=s(t[n]),o>=0)return o>0&&(2===o?o=0:e.lastNeed=o-3),o;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},i.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}}}},{package:"browserify>string_decoder",file:"node_modules/string_decoder/lib/string_decoder.js"}],[5598,{"is-hex-prefixed":4662},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("is-hex-prefixed");t.exports=function(e){return"string"!=typeof e?e:n(e)?e.slice(2):e}}}},{package:"eth-method-registry>@metamask/ethjs-query>@metamask/ethjs-format>strip-hex-prefix",file:"node_modules/strip-hex-prefix/src/index.js"}],[5599,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=/^[-+]?0x[a-fA-F0-9]+$/,o=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);const i={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};t.exports=function(e,t={}){if(t=Object.assign({},i,t),!e||"string"!=typeof e)return e;let r=e.trim();if(t.skipLike!==undefined&&t.skipLike.test(r))return e;if(t.hex&&n.test(r))return Number.parseInt(r,16);{const n=o.exec(r);if(n){const o=n[1],i=n[2];let s=function(e){if(e&&-1!==e.indexOf("."))return"."===(e=e.replace(/0+$/,""))?e="0":"."===e[0]?e="0"+e:"."===e[e.length-1]&&(e=e.substr(0,e.length-1)),e;return e}(n[3]);const a=n[4]||n[6];if(!t.leadingZeros&&i.length>0&&o&&"."!==r[2])return e;if(!t.leadingZeros&&i.length>0&&!o&&"."!==r[1])return e;{const n=Number(r),c=""+n;return-1!==c.search(/[eE]/)||a?t.eNotation?n:e:-1!==r.indexOf(".")?"0"===c&&""===s||c===s||o&&c==="-"+s?n:e:i?s===c||o+s===c?n:e:r===c||r===o+c?n:e}}return e}}}}},{package:"@metamask/snaps-utils>fast-xml-parser>strnum",file:"node_modules/strnum/strnum.js"}],[560,{"./_version":559,"@ethersproject/bytes":500,"@ethersproject/logger":528},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.decode=r.encode=void 0;var n=e("@ethersproject/bytes"),o=e("@ethersproject/logger"),i=e("./_version"),s=new o.Logger(i.version);function a(e){for(var t=[];e;)t.unshift(255&e),e>>=8;return t}function c(e,t,r){for(var n=0,o=0;o<r;o++)n=256*n+e[t+o];return n}function u(e){if(Array.isArray(e)){var t=[];if(e.forEach((function(e){t=t.concat(u(e))})),t.length<=55)return t.unshift(192+t.length),t;var r=a(t.length);return r.unshift(247+r.length),r.concat(t)}(0,n.isBytesLike)(e)||s.throwArgumentError("RLP object must be BytesLike","object",e);var o=Array.prototype.slice.call((0,n.arrayify)(e));if(1===o.length&&o[0]<=127)return o;if(o.length<=55)return o.unshift(128+o.length),o;var i=a(o.length);return i.unshift(183+i.length),i.concat(o)}function l(e,t,r,n){for(var i=[];r<t+1+n;){var a=f(e,r);i.push(a.result),(r+=a.consumed)>t+1+n&&s.throwError("child data too short",o.Logger.errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:i}}function f(e,t){if(0===e.length&&s.throwError("data too short",o.Logger.errors.BUFFER_OVERRUN,{}),e[t]>=248){t+1+(a=e[t]-247)>e.length&&s.throwError("data short segment too short",o.Logger.errors.BUFFER_OVERRUN,{});var r=c(e,t+1,a);return t+1+a+r>e.length&&s.throwError("data long segment too short",o.Logger.errors.BUFFER_OVERRUN,{}),l(e,t,t+1+a,a+r)}if(e[t]>=192){var i=e[t]-192;return t+1+i>e.length&&s.throwError("data array too short",o.Logger.errors.BUFFER_OVERRUN,{}),l(e,t,t+1,i)}if(e[t]>=184){var a;t+1+(a=e[t]-183)>e.length&&s.throwError("data array too short",o.Logger.errors.BUFFER_OVERRUN,{});var u=c(e,t+1,a);return t+1+a+u>e.length&&s.throwError("data array too short",o.Logger.errors.BUFFER_OVERRUN,{}),{consumed:1+a+u,result:(0,n.hexlify)(e.slice(t+1+a,t+1+a+u))}}if(e[t]>=128){var f=e[t]-128;return t+1+f>e.length&&s.throwError("data too short",o.Logger.errors.BUFFER_OVERRUN,{}),{consumed:1+f,result:(0,n.hexlify)(e.slice(t+1,t+1+f))}}return{consumed:1,result:(0,n.hexlify)(e[t])}}r.encode=function(e){return(0,n.hexlify)(u(e))},r.decode=function(e){var t=(0,n.arrayify)(e),r=f(t,0);return r.consumed!==t.length&&s.throwArgumentError("invalid rlp data","data",e),r.result}}}},{package:"ethers>@ethersproject/rlp",file:"node_modules/@ethersproject/rlp/lib/index.js"}],[5602,{"process/browser.js":5008,timers:5602},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t,n){(function(){var o=e("process/browser.js").nextTick,i=Function.prototype.apply,s=Array.prototype.slice,a={},c=0;function u(e,t){this._id=e,this._clearFn=t}r.setTimeout=function(){return new u(i.call(setTimeout,window,arguments),clearTimeout)},r.setInterval=function(){return new u(i.call(setInterval,window,arguments),clearInterval)},r.clearTimeout=r.clearInterval=function(e){e.close()},u.prototype.unref=u.prototype.ref=function(){},u.prototype.close=function(){this._clearFn.call(window,this._id)},r.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},r.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},r._unrefActive=r.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},r.setImmediate="function"==typeof t?t:function(e){var t=c++,n=!(arguments.length<2)&&s.call(arguments,1);return a[t]=!0,o((function(){a[t]&&(n?e.apply(null,n):e.call(null),r.clearImmediate(t))})),t},r.clearImmediate="function"==typeof n?n:function(e){delete a[e]}}).call(this)}).call(this,e("timers").setImmediate,e("timers").clearImmediate)}}},{package:"browserify>timers-browserify",file:"node_modules/timers-browserify/main.js"}],[5608,{"./mixin-tracking":5610,"./util":5614},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.decorate=r.getDecoratorsForClass=r.directDecoratorSearch=r.deepDecoratorSearch=void 0;const n=e("./util"),o=e("./mixin-tracking"),i=(e,t)=>{var r,o;const i=(0,n.unique)([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),s={};for(let a of i)s[a]=(0,n.unique)([...null!==(r=null==e?void 0:e[a])&&void 0!==r?r:[],...null!==(o=null==t?void 0:t[a])&&void 0!==o?o:[]]);return s},s=(e,t)=>{var r,n,o,s;return{property:i(null!==(r=null==e?void 0:e.property)&&void 0!==r?r:{},null!==(n=null==t?void 0:t.property)&&void 0!==n?n:{}),method:i(null!==(o=null==e?void 0:e.method)&&void 0!==o?o:{},null!==(s=null==t?void 0:t.method)&&void 0!==s?s:{})}},a=(e,t)=>{var r,o,i,a,c,u;return{class:(0,n.unique)([...null!==(r=null==e?void 0:e.class)&&void 0!==r?r:[],...null!==(o=null==t?void 0:t.class)&&void 0!==o?o:[]]),static:s(null!==(i=null==e?void 0:e.static)&&void 0!==i?i:{},null!==(a=null==t?void 0:t.static)&&void 0!==a?a:{}),instance:s(null!==(c=null==e?void 0:e.instance)&&void 0!==c?c:{},null!==(u=null==t?void 0:t.instance)&&void 0!==u?u:{})}},c=new Map;r.deepDecoratorSearch=(...e)=>{const t=((...e)=>{var t;const r=new Set,i=new Set([...e]);for(;i.size>0;)for(let e of i){const s=[...(0,n.protoChain)(e.prototype).map((e=>e.constructor)),...null!==(t=(0,o.getMixinsForClass)(e))&&void 0!==t?t:[]].filter((e=>!r.has(e)));for(let e of s)i.add(e);r.add(e),i.delete(e)}return[...r]})(...e).map((e=>c.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>a(e,t)))};r.directDecoratorSearch=(...e)=>{const t=e.map((e=>(0,r.getDecoratorsForClass)(e)));return 0===t.length?{}:1===t.length?t[0]:t.reduce(((e,t)=>a(e,t)))};r.getDecoratorsForClass=e=>{let t=c.get(e);return t||(t={},c.set(e,t)),t};r.decorate=e=>(...t)=>1===t.length?(e=>t=>{const n=(0,r.getDecoratorsForClass)(t);let o=n.class;return o||(o=[],n.class=o),o.push(e),e(t)})(e)(t[0]):(e=>(t,n,...o)=>{var i,s,a;const c="function"==typeof t?"static":"instance",u="function"==typeof t[n]?"method":"property",l="static"===c?t:t.constructor,f=(0,r.getDecoratorsForClass)(l),d=null!==(i=null==f?void 0:f[c])&&void 0!==i?i:{};f[c]=d;let h=null!==(s=null==d?void 0:d[u])&&void 0!==s?s:{};d[u]=h;let p=null!==(a=null==h?void 0:h[n])&&void 0!==a?a:[];return h[n]=p,p.push(e),e(t,n,...o)})(e)(...t)}}},{package:"ts-mixer",file:"node_modules/ts-mixer/dist/cjs/decorator.js"}],[5609,{"./decorator":5608,"./mixin-tracking":5610,"./mixins":5611,"./settings":5613},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.hasMixin=r.decorate=r.settings=r.mix=r.Mixin=void 0;var n=e("./mixins");Object.defineProperty(r,"Mixin",{enumerable:!0,get:function(){return n.Mixin}}),Object.defineProperty(r,"mix",{enumerable:!0,get:function(){return n.mix}});var o=e("./settings");Object.defineProperty(r,"settings",{enumerable:!0,get:function(){return o.settings}});var i=e("./decorator");Object.defineProperty(r,"decorate",{enumerable:!0,get:function(){return i.decorate}});var s=e("./mixin-tracking");Object.defineProperty(r,"hasMixin",{enumerable:!0,get:function(){return s.hasMixin}})}}},{package:"ts-mixer",file:"node_modules/ts-mixer/dist/cjs/index.js"}],[561,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.version=void 0,r.version="sha2/5.7.0"}}},{package:"ethers>@ethersproject/sha2",file:"node_modules/@ethersproject/sha2/lib/_version.js"}],[5610,{"./util":5614},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.hasMixin=r.registerMixins=r.getMixinsForClass=void 0;const n=e("./util"),o=new WeakMap;r.getMixinsForClass=e=>o.get(e);r.registerMixins=(e,t)=>o.set(e,t);r.hasMixin=(e,t)=>{if(e instanceof t)return!0;const r=e.constructor,i=new Set;let s=new Set;for(s.add(r);s.size>0;){if(s.has(t))return!0;s.forEach((e=>i.add(e)));const e=new Set;s.forEach((t=>{var r;const a=null!==(r=o.get(t))&&void 0!==r?r:(0,n.protoChain)(t.prototype).map((e=>e.constructor)).filter((e=>null!==e));a&&a.forEach((t=>{i.has(t)||s.has(t)||e.add(t)}))})),s=e}return!1}}}},{package:"ts-mixer",file:"node_modules/ts-mixer/dist/cjs/mixin-tracking.js"}],[5611,{"./decorator":5608,"./mixin-tracking":5610,"./proxy":5612,"./settings":5613,"./util":5614},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.mix=r.Mixin=void 0;const n=e("./proxy"),o=e("./settings"),i=e("./util"),s=e("./decorator"),a=e("./mixin-tracking");function c(...e){var t,r,c;const l=e.map((e=>e.prototype)),f=o.settings.initFunction;if(null!==f){const e=l.map((e=>e[f])).filter((e=>"function"==typeof e)),t={[f]:function(...t){for(let r of e)r.apply(this,t)}};l.push(t)}function d(...t){for(const r of e)(0,i.copyProps)(this,new r(...t));null!==f&&"function"==typeof this[f]&&this[f].apply(this,t)}d.prototype="copy"===o.settings.prototypeStrategy?(0,i.hardMixProtos)(l,d):(0,n.softMixProtos)(l,d),Object.setPrototypeOf(d,"copy"===o.settings.staticsStrategy?(0,i.hardMixProtos)(e,null,["prototype"]):(0,n.proxyMix)(e,Function.prototype));let h=d;if("none"!==o.settings.decoratorInheritance){const n="deep"===o.settings.decoratorInheritance?(0,s.deepDecoratorSearch)(...e):(0,s.directDecoratorSearch)(...e);for(let e of null!==(t=null==n?void 0:n.class)&&void 0!==t?t:[]){const t=e(h);t&&(h=t)}u(null!==(r=null==n?void 0:n.static)&&void 0!==r?r:{},h),u(null!==(c=null==n?void 0:n.instance)&&void 0!==c?c:{},h.prototype)}return(0,a.registerMixins)(h,e),h}r.Mixin=c;const u=(e,t)=>{const r=e.property,n=e.method;if(r)for(let e in r)for(let n of r[e])n(t,e);if(n)for(let e in n)for(let r of n[e])r(t,e,Object.getOwnPropertyDescriptor(t,e))};r.mix=(...e)=>t=>{const r=c(...e.concat([t]));return Object.defineProperty(r,"name",{value:t.name,writable:!1}),r}}}},{package:"ts-mixer",file:"node_modules/ts-mixer/dist/cjs/mixins.js"}],[5612,{"./util":5614},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.softMixProtos=r.proxyMix=r.getIngredientWithProp=void 0;const n=e("./util");r.getIngredientWithProp=(e,t)=>{const r=t.map((e=>(0,n.protoChain)(e)));let o=0,i=!0;for(;i;){i=!1;for(let n=t.length-1;n>=0;n--){const t=r[n][o];if(t!==undefined&&null!==t&&(i=!0,Object.getOwnPropertyDescriptor(t,e)!=undefined))return r[n][0]}o++}return undefined};r.proxyMix=(e,t=Object.prototype)=>new Proxy({},{getPrototypeOf:()=>t,setPrototypeOf(){throw Error("Cannot set prototype of Proxies created by ts-mixer")},getOwnPropertyDescriptor:(t,n)=>Object.getOwnPropertyDescriptor((0,r.getIngredientWithProp)(n,e)||{},n),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(n,o)=>(0,r.getIngredientWithProp)(o,e)!==undefined||t[o]!==undefined,get:(n,o)=>((0,r.getIngredientWithProp)(o,e)||t)[o],set(t,n,o){const i=(0,r.getIngredientWithProp)(n,e);if(i===undefined)throw new Error("Cannot set new properties on Proxies created by ts-mixer");return i[n]=o,!0},deleteProperty(){throw new Error("Cannot delete properties on Proxies created by ts-mixer")},ownKeys:()=>e.map(Object.getOwnPropertyNames).reduce(((e,t)=>t.concat(e.filter((e=>t.indexOf(e)<0)))))});r.softMixProtos=(e,t)=>(0,r.proxyMix)([...e,{constructor:t}])}}},{package:"ts-mixer",file:"node_modules/ts-mixer/dist/cjs/proxy.js"}],[5613,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.settings=void 0,r.settings={initFunction:null,staticsStrategy:"copy",prototypeStrategy:"copy",decoratorInheritance:"deep"}}}},{package:"ts-mixer",file:"node_modules/ts-mixer/dist/cjs/settings.js"}],[5614,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.flatten=r.unique=r.hardMixProtos=r.nearestCommonProto=r.protoChain=r.copyProps=void 0;r.copyProps=(e,t,r=[])=>{const n=Object.getOwnPropertyDescriptors(t);for(let e of r)delete n[e];Object.defineProperties(e,n)};r.protoChain=(e,t=[e])=>{const n=Object.getPrototypeOf(e);return null===n?t:(0,r.protoChain)(n,[...t,n])};r.nearestCommonProto=(...e)=>{if(0===e.length)return undefined;let t=undefined;const n=e.map((e=>(0,r.protoChain)(e)));for(;n.every((e=>e.length>0));){const e=n.map((e=>e.pop())),r=e[0];if(!e.every((e=>e===r)))break;t=r}return t};r.hardMixProtos=(e,t,n=[])=>{var o;const i=null!==(o=(0,r.nearestCommonProto)(...e))&&void 0!==o?o:Object.prototype,s=Object.create(i),a=(0,r.protoChain)(i);for(let t of e){let e=(0,r.protoChain)(t);for(let t=e.length-1;t>=0;t--){let o=e[t];-1===a.indexOf(o)&&((0,r.copyProps)(s,o,["constructor",...n]),a.push(o))}}return s.constructor=t,s};r.unique=e=>e.filter(((t,r)=>e.indexOf(t)==r));r.flatten=e=>0===e.length?[]:1===e.length?e[0]:e.reduce(((e,t)=>[...e,...t]))}}},{package:"ts-mixer",file:"node_modules/ts-mixer/dist/cjs/util.js"}],[5615,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,o,i,s,a,c,u,l,f,d,h,p,m,_,g,E,A,T,b,y,v,I,N,w,S,O,R,C,M,P,L;!function(e){var r="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:{};function n(e,t){return e!==r&&("function"==typeof Object.create?Object.defineProperty(e,"__esModule",{value:!0}):e.__esModule=!0),function(r,n){return e[r]=t?t(r,n):n}}"function"==typeof define&&define.amd?define("tslib",["exports"],(function(t){e(n(r,n(t)))})):"object"==typeof t&&"object"==typeof t.exports?e(n(r,n(t.exports))):e(n(r))}((function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])};n=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)},o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},s=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},a=function(e,t){return function(r,n){t(r,n,e)}},c=function(e,t,r,n,o,i){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var a,c=n.kind,u="getter"===c?"get":"setter"===c?"set":"value",l=!t&&e?n.static?e:e.prototype:null,f=t||(l?Object.getOwnPropertyDescriptor(l,n.name):{}),d=!1,h=r.length-1;h>=0;h--){var p={};for(var m in n)p[m]="access"===m?{}:n[m];for(var m in n.access)p.access[m]=n.access[m];p.addInitializer=function(e){if(d)throw new TypeError("Cannot add initializers after decoration has completed");i.push(s(e||null))};var _=(0,r[h])("accessor"===c?{get:f.get,set:f.set}:f[u],p);if("accessor"===c){if(void 0===_)continue;if(null===_||"object"!=typeof _)throw new TypeError("Object expected");(a=s(_.get))&&(f.get=a),(a=s(_.set))&&(f.set=a),(a=s(_.init))&&o.unshift(a)}else(a=s(_))&&("field"===c?o.unshift(a):f[u]=a)}l&&Object.defineProperty(l,n.name,f),d=!0},u=function(e,t,r){for(var n=arguments.length>2,o=0;o<t.length;o++)r=n?t[o].call(e,r):t[o].call(e);return n?r:void 0},l=function(e){return"symbol"==typeof e?e:"".concat(e)},f=function(e,t,r){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})},d=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},h=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))},p=function(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,n=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}},m=function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||M(t,e,r)},M=Object.create?function(e,t,r,n){n===undefined&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]},_=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},g=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s},E=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e},A=function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,o++)n[o]=i[s];return n},T=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},b=function(e){return this instanceof b?(this.v=e,this):new b(e)},y=function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),i=[];return n={},s("next"),s("throw"),s("return",(function(e){return function(t){return Promise.resolve(t).then(e,u)}})),n[Symbol.asyncIterator]=function(){return this},n;function s(e,t){o[e]&&(n[e]=function(t){return new Promise((function(r,n){i.push([e,t,r,n])>1||a(e,t)}))},t&&(n[e]=t(n[e])))}function a(e,t){try{(r=o[e](t)).value instanceof b?Promise.resolve(r.value.v).then(c,u):l(i[0][2],r)}catch(e){l(i[0][3],e)}var r}function c(e){a("next",e)}function u(e){a("throw",e)}function l(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}},v=function(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:b(e[n](t)),done:!1}:o?o(t):t}:o}},I=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=_(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}},N=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e};var r=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};w=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&M(t,e,n);return r(t,e),t},S=function(e){return e&&e.__esModule?e:{default:e}},O=function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)},R=function(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r},C=function(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)},P=function(e,t,r){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n,o;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(o=n)}if("function"!=typeof n)throw new TypeError("Object not disposable.");o&&(n=function(){try{o.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t};var k="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};L=function(e){function t(t){e.error=e.hasError?new k(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}return function r(){for(;e.stack.length;){var n=e.stack.pop();try{var o=n.dispose&&n.dispose.call(n.value);if(n.async)return Promise.resolve(o).then(r,(function(e){return t(e),r()}))}catch(e){t(e)}}if(e.hasError)throw e.error}()},e("__extends",n),e("__assign",o),e("__rest",i),e("__decorate",s),e("__param",a),e("__esDecorate",c),e("__runInitializers",u),e("__propKey",l),e("__setFunctionName",f),e("__metadata",d),e("__awaiter",h),e("__generator",p),e("__exportStar",m),e("__createBinding",M),e("__values",_),e("__read",g),e("__spread",E),e("__spreadArrays",A),e("__spreadArray",T),e("__await",b),e("__asyncGenerator",y),e("__asyncDelegator",v),e("__asyncValues",I),e("__makeTemplateObject",N),e("__importStar",w),e("__importDefault",S),e("__classPrivateFieldGet",O),e("__classPrivateFieldSet",R),e("__classPrivateFieldIn",C),e("__addDisposableResource",P),e("__disposeResources",L)}))}}},{package:"tslib",file:"node_modules/tslib/tslib.js"}],[5616,{crypto:4039},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){!function(t){var r=function(e){var t,r=new Float64Array(16);if(e)for(t=0;t<e.length;t++)r[t]=e[t];return r},n=function(){throw new Error("no PRNG")},o=new Uint8Array(16),i=new Uint8Array(32);i[0]=9;var s=r(),a=r([1]),c=r([56129,1]),u=r([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),l=r([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),f=r([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),d=r([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),h=r([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function p(e,t,r,n){e[t]=r>>24&255,e[t+1]=r>>16&255,e[t+2]=r>>8&255,e[t+3]=255&r,e[t+4]=n>>24&255,e[t+5]=n>>16&255,e[t+6]=n>>8&255,e[t+7]=255&n}function m(e,t,r,n,o){var i,s=0;for(i=0;i<o;i++)s|=e[t+i]^r[n+i];return(1&s-1>>>8)-1}function _(e,t,r,n){return m(e,t,r,n,16)}function g(e,t,r,n){return m(e,t,r,n,32)}function E(e,t,r,n){!function(e,t,r,n){for(var o,i=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,s=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,a=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,c=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,u=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&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,d=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,h=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,p=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,m=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,_=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,E=255&r[24]|(255&r[25])<<8|(255&r[26])<<16|(255&r[27])<<24,A=255&r[28]|(255&r[29])<<8|(255&r[30])<<16|(255&r[31])<<24,T=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,b=i,y=s,v=a,I=c,N=u,w=l,S=f,O=d,R=h,C=p,M=m,P=_,L=g,k=E,x=A,D=T,j=0;j<20;j+=2)b^=(o=(L^=(o=(R^=(o=(N^=(o=b+L|0)<<7|o>>>25)+b|0)<<9|o>>>23)+N|0)<<13|o>>>19)+R|0)<<18|o>>>14,w^=(o=(y^=(o=(k^=(o=(C^=(o=w+y|0)<<7|o>>>25)+w|0)<<9|o>>>23)+C|0)<<13|o>>>19)+k|0)<<18|o>>>14,M^=(o=(S^=(o=(v^=(o=(x^=(o=M+S|0)<<7|o>>>25)+M|0)<<9|o>>>23)+x|0)<<13|o>>>19)+v|0)<<18|o>>>14,D^=(o=(P^=(o=(O^=(o=(I^=(o=D+P|0)<<7|o>>>25)+D|0)<<9|o>>>23)+I|0)<<13|o>>>19)+O|0)<<18|o>>>14,b^=(o=(I^=(o=(v^=(o=(y^=(o=b+I|0)<<7|o>>>25)+b|0)<<9|o>>>23)+y|0)<<13|o>>>19)+v|0)<<18|o>>>14,w^=(o=(N^=(o=(O^=(o=(S^=(o=w+N|0)<<7|o>>>25)+w|0)<<9|o>>>23)+S|0)<<13|o>>>19)+O|0)<<18|o>>>14,M^=(o=(C^=(o=(R^=(o=(P^=(o=M+C|0)<<7|o>>>25)+M|0)<<9|o>>>23)+P|0)<<13|o>>>19)+R|0)<<18|o>>>14,D^=(o=(x^=(o=(k^=(o=(L^=(o=D+x|0)<<7|o>>>25)+D|0)<<9|o>>>23)+L|0)<<13|o>>>19)+k|0)<<18|o>>>14;b=b+i|0,y=y+s|0,v=v+a|0,I=I+c|0,N=N+u|0,w=w+l|0,S=S+f|0,O=O+d|0,R=R+h|0,C=C+p|0,M=M+m|0,P=P+_|0,L=L+g|0,k=k+E|0,x=x+A|0,D=D+T|0,e[0]=b>>>0&255,e[1]=b>>>8&255,e[2]=b>>>16&255,e[3]=b>>>24&255,e[4]=y>>>0&255,e[5]=y>>>8&255,e[6]=y>>>16&255,e[7]=y>>>24&255,e[8]=v>>>0&255,e[9]=v>>>8&255,e[10]=v>>>16&255,e[11]=v>>>24&255,e[12]=I>>>0&255,e[13]=I>>>8&255,e[14]=I>>>16&255,e[15]=I>>>24&255,e[16]=N>>>0&255,e[17]=N>>>8&255,e[18]=N>>>16&255,e[19]=N>>>24&255,e[20]=w>>>0&255,e[21]=w>>>8&255,e[22]=w>>>16&255,e[23]=w>>>24&255,e[24]=S>>>0&255,e[25]=S>>>8&255,e[26]=S>>>16&255,e[27]=S>>>24&255,e[28]=O>>>0&255,e[29]=O>>>8&255,e[30]=O>>>16&255,e[31]=O>>>24&255,e[32]=R>>>0&255,e[33]=R>>>8&255,e[34]=R>>>16&255,e[35]=R>>>24&255,e[36]=C>>>0&255,e[37]=C>>>8&255,e[38]=C>>>16&255,e[39]=C>>>24&255,e[40]=M>>>0&255,e[41]=M>>>8&255,e[42]=M>>>16&255,e[43]=M>>>24&255,e[44]=P>>>0&255,e[45]=P>>>8&255,e[46]=P>>>16&255,e[47]=P>>>24&255,e[48]=L>>>0&255,e[49]=L>>>8&255,e[50]=L>>>16&255,e[51]=L>>>24&255,e[52]=k>>>0&255,e[53]=k>>>8&255,e[54]=k>>>16&255,e[55]=k>>>24&255,e[56]=x>>>0&255,e[57]=x>>>8&255,e[58]=x>>>16&255,e[59]=x>>>24&255,e[60]=D>>>0&255,e[61]=D>>>8&255,e[62]=D>>>16&255,e[63]=D>>>24&255}(e,t,r,n)}function A(e,t,r,n){!function(e,t,r,n){for(var o,i=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,s=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,a=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,c=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,u=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&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,d=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,h=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,p=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,m=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,_=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,E=255&r[24]|(255&r[25])<<8|(255&r[26])<<16|(255&r[27])<<24,A=255&r[28]|(255&r[29])<<8|(255&r[30])<<16|(255&r[31])<<24,T=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,b=0;b<20;b+=2)i^=(o=(g^=(o=(h^=(o=(u^=(o=i+g|0)<<7|o>>>25)+i|0)<<9|o>>>23)+u|0)<<13|o>>>19)+h|0)<<18|o>>>14,l^=(o=(s^=(o=(E^=(o=(p^=(o=l+s|0)<<7|o>>>25)+l|0)<<9|o>>>23)+p|0)<<13|o>>>19)+E|0)<<18|o>>>14,m^=(o=(f^=(o=(a^=(o=(A^=(o=m+f|0)<<7|o>>>25)+m|0)<<9|o>>>23)+A|0)<<13|o>>>19)+a|0)<<18|o>>>14,T^=(o=(_^=(o=(d^=(o=(c^=(o=T+_|0)<<7|o>>>25)+T|0)<<9|o>>>23)+c|0)<<13|o>>>19)+d|0)<<18|o>>>14,i^=(o=(c^=(o=(a^=(o=(s^=(o=i+c|0)<<7|o>>>25)+i|0)<<9|o>>>23)+s|0)<<13|o>>>19)+a|0)<<18|o>>>14,l^=(o=(u^=(o=(d^=(o=(f^=(o=l+u|0)<<7|o>>>25)+l|0)<<9|o>>>23)+f|0)<<13|o>>>19)+d|0)<<18|o>>>14,m^=(o=(p^=(o=(h^=(o=(_^=(o=m+p|0)<<7|o>>>25)+m|0)<<9|o>>>23)+_|0)<<13|o>>>19)+h|0)<<18|o>>>14,T^=(o=(A^=(o=(E^=(o=(g^=(o=T+A|0)<<7|o>>>25)+T|0)<<9|o>>>23)+g|0)<<13|o>>>19)+E|0)<<18|o>>>14;e[0]=i>>>0&255,e[1]=i>>>8&255,e[2]=i>>>16&255,e[3]=i>>>24&255,e[4]=l>>>0&255,e[5]=l>>>8&255,e[6]=l>>>16&255,e[7]=l>>>24&255,e[8]=m>>>0&255,e[9]=m>>>8&255,e[10]=m>>>16&255,e[11]=m>>>24&255,e[12]=T>>>0&255,e[13]=T>>>8&255,e[14]=T>>>16&255,e[15]=T>>>24&255,e[16]=f>>>0&255,e[17]=f>>>8&255,e[18]=f>>>16&255,e[19]=f>>>24&255,e[20]=d>>>0&255,e[21]=d>>>8&255,e[22]=d>>>16&255,e[23]=d>>>24&255,e[24]=h>>>0&255,e[25]=h>>>8&255,e[26]=h>>>16&255,e[27]=h>>>24&255,e[28]=p>>>0&255,e[29]=p>>>8&255,e[30]=p>>>16&255,e[31]=p>>>24&255}(e,t,r,n)}var T=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function b(e,t,r,n,o,i,s){var a,c,u=new Uint8Array(16),l=new Uint8Array(64);for(c=0;c<16;c++)u[c]=0;for(c=0;c<8;c++)u[c]=i[c];for(;o>=64;){for(E(l,u,s,T),c=0;c<64;c++)e[t+c]=r[n+c]^l[c];for(a=1,c=8;c<16;c++)a=a+(255&u[c])|0,u[c]=255&a,a>>>=8;o-=64,t+=64,n+=64}if(o>0)for(E(l,u,s,T),c=0;c<o;c++)e[t+c]=r[n+c]^l[c];return 0}function y(e,t,r,n,o){var i,s,a=new Uint8Array(16),c=new Uint8Array(64);for(s=0;s<16;s++)a[s]=0;for(s=0;s<8;s++)a[s]=n[s];for(;r>=64;){for(E(c,a,o,T),s=0;s<64;s++)e[t+s]=c[s];for(i=1,s=8;s<16;s++)i=i+(255&a[s])|0,a[s]=255&i,i>>>=8;r-=64,t+=64}if(r>0)for(E(c,a,o,T),s=0;s<r;s++)e[t+s]=c[s];return 0}function v(e,t,r,n,o){var i=new Uint8Array(32);A(i,n,o,T);for(var s=new Uint8Array(8),a=0;a<8;a++)s[a]=n[a+16];return y(e,t,r,s,i)}function I(e,t,r,n,o,i,s){var a=new Uint8Array(32);A(a,i,s,T);for(var c=new Uint8Array(8),u=0;u<8;u++)c[u]=i[u+16];return b(e,t,r,n,o,c,a)}var N=function(e){var t,r,n,o,i,s,a,c;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,t=255&e[0]|(255&e[1])<<8,this.r[0]=8191&t,r=255&e[2]|(255&e[3])<<8,this.r[1]=8191&(t>>>13|r<<3),n=255&e[4]|(255&e[5])<<8,this.r[2]=7939&(r>>>10|n<<6),o=255&e[6]|(255&e[7])<<8,this.r[3]=8191&(n>>>7|o<<9),i=255&e[8]|(255&e[9])<<8,this.r[4]=255&(o>>>4|i<<12),this.r[5]=i>>>1&8190,s=255&e[10]|(255&e[11])<<8,this.r[6]=8191&(i>>>14|s<<2),a=255&e[12]|(255&e[13])<<8,this.r[7]=8065&(s>>>11|a<<5),c=255&e[14]|(255&e[15])<<8,this.r[8]=8191&(a>>>8|c<<8),this.r[9]=c>>>5&127,this.pad[0]=255&e[16]|(255&e[17])<<8,this.pad[1]=255&e[18]|(255&e[19])<<8,this.pad[2]=255&e[20]|(255&e[21])<<8,this.pad[3]=255&e[22]|(255&e[23])<<8,this.pad[4]=255&e[24]|(255&e[25])<<8,this.pad[5]=255&e[26]|(255&e[27])<<8,this.pad[6]=255&e[28]|(255&e[29])<<8,this.pad[7]=255&e[30]|(255&e[31])<<8};function w(e,t,r,n,o,i){var s=new N(i);return s.update(r,n,o),s.finish(e,t),0}function S(e,t,r,n,o,i){var s=new Uint8Array(16);return w(s,0,r,n,o,i),_(e,t,s,0)}function O(e,t,r,n,o){var i;if(r<32)return-1;for(I(e,0,t,0,r,n,o),w(e,16,e,32,r-32,e),i=0;i<16;i++)e[i]=0;return 0}function R(e,t,r,n,o){var i,s=new Uint8Array(32);if(r<32)return-1;if(v(s,0,32,n,o),0!==S(t,16,t,32,r-32,s))return-1;for(I(e,0,t,0,r,n,o),i=0;i<32;i++)e[i]=0;return 0}function C(e,t){var r;for(r=0;r<16;r++)e[r]=0|t[r]}function M(e){var t,r,n=1;for(t=0;t<16;t++)r=e[t]+n+65535,n=Math.floor(r/65536),e[t]=r-65536*n;e[0]+=n-1+37*(n-1)}function P(e,t,r){for(var n,o=~(r-1),i=0;i<16;i++)n=o&(e[i]^t[i]),e[i]^=n,t[i]^=n}function L(e,t){var n,o,i,s=r(),a=r();for(n=0;n<16;n++)a[n]=t[n];for(M(a),M(a),M(a),o=0;o<2;o++){for(s[0]=a[0]-65517,n=1;n<15;n++)s[n]=a[n]-65535-(s[n-1]>>16&1),s[n-1]&=65535;s[15]=a[15]-32767-(s[14]>>16&1),i=s[15]>>16&1,s[14]&=65535,P(a,s,1-i)}for(n=0;n<16;n++)e[2*n]=255&a[n],e[2*n+1]=a[n]>>8}function k(e,t){var r=new Uint8Array(32),n=new Uint8Array(32);return L(r,e),L(n,t),g(r,0,n,0)}function x(e){var t=new Uint8Array(32);return L(t,e),1&t[0]}function D(e,t){var r;for(r=0;r<16;r++)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}function j(e,t,r){for(var n=0;n<16;n++)e[n]=t[n]+r[n]}function U(e,t,r){for(var n=0;n<16;n++)e[n]=t[n]-r[n]}function B(e,t,r){var n,o,i=0,s=0,a=0,c=0,u=0,l=0,f=0,d=0,h=0,p=0,m=0,_=0,g=0,E=0,A=0,T=0,b=0,y=0,v=0,I=0,N=0,w=0,S=0,O=0,R=0,C=0,M=0,P=0,L=0,k=0,x=0,D=r[0],j=r[1],U=r[2],B=r[3],H=r[4],F=r[5],G=r[6],K=r[7],$=r[8],W=r[9],V=r[10],Y=r[11],q=r[12],z=r[13],X=r[14],Z=r[15];i+=(n=t[0])*D,s+=n*j,a+=n*U,c+=n*B,u+=n*H,l+=n*F,f+=n*G,d+=n*K,h+=n*$,p+=n*W,m+=n*V,_+=n*Y,g+=n*q,E+=n*z,A+=n*X,T+=n*Z,s+=(n=t[1])*D,a+=n*j,c+=n*U,u+=n*B,l+=n*H,f+=n*F,d+=n*G,h+=n*K,p+=n*$,m+=n*W,_+=n*V,g+=n*Y,E+=n*q,A+=n*z,T+=n*X,b+=n*Z,a+=(n=t[2])*D,c+=n*j,u+=n*U,l+=n*B,f+=n*H,d+=n*F,h+=n*G,p+=n*K,m+=n*$,_+=n*W,g+=n*V,E+=n*Y,A+=n*q,T+=n*z,b+=n*X,y+=n*Z,c+=(n=t[3])*D,u+=n*j,l+=n*U,f+=n*B,d+=n*H,h+=n*F,p+=n*G,m+=n*K,_+=n*$,g+=n*W,E+=n*V,A+=n*Y,T+=n*q,b+=n*z,y+=n*X,v+=n*Z,u+=(n=t[4])*D,l+=n*j,f+=n*U,d+=n*B,h+=n*H,p+=n*F,m+=n*G,_+=n*K,g+=n*$,E+=n*W,A+=n*V,T+=n*Y,b+=n*q,y+=n*z,v+=n*X,I+=n*Z,l+=(n=t[5])*D,f+=n*j,d+=n*U,h+=n*B,p+=n*H,m+=n*F,_+=n*G,g+=n*K,E+=n*$,A+=n*W,T+=n*V,b+=n*Y,y+=n*q,v+=n*z,I+=n*X,N+=n*Z,f+=(n=t[6])*D,d+=n*j,h+=n*U,p+=n*B,m+=n*H,_+=n*F,g+=n*G,E+=n*K,A+=n*$,T+=n*W,b+=n*V,y+=n*Y,v+=n*q,I+=n*z,N+=n*X,w+=n*Z,d+=(n=t[7])*D,h+=n*j,p+=n*U,m+=n*B,_+=n*H,g+=n*F,E+=n*G,A+=n*K,T+=n*$,b+=n*W,y+=n*V,v+=n*Y,I+=n*q,N+=n*z,w+=n*X,S+=n*Z,h+=(n=t[8])*D,p+=n*j,m+=n*U,_+=n*B,g+=n*H,E+=n*F,A+=n*G,T+=n*K,b+=n*$,y+=n*W,v+=n*V,I+=n*Y,N+=n*q,w+=n*z,S+=n*X,O+=n*Z,p+=(n=t[9])*D,m+=n*j,_+=n*U,g+=n*B,E+=n*H,A+=n*F,T+=n*G,b+=n*K,y+=n*$,v+=n*W,I+=n*V,N+=n*Y,w+=n*q,S+=n*z,O+=n*X,R+=n*Z,m+=(n=t[10])*D,_+=n*j,g+=n*U,E+=n*B,A+=n*H,T+=n*F,b+=n*G,y+=n*K,v+=n*$,I+=n*W,N+=n*V,w+=n*Y,S+=n*q,O+=n*z,R+=n*X,C+=n*Z,_+=(n=t[11])*D,g+=n*j,E+=n*U,A+=n*B,T+=n*H,b+=n*F,y+=n*G,v+=n*K,I+=n*$,N+=n*W,w+=n*V,S+=n*Y,O+=n*q,R+=n*z,C+=n*X,M+=n*Z,g+=(n=t[12])*D,E+=n*j,A+=n*U,T+=n*B,b+=n*H,y+=n*F,v+=n*G,I+=n*K,N+=n*$,w+=n*W,S+=n*V,O+=n*Y,R+=n*q,C+=n*z,M+=n*X,P+=n*Z,E+=(n=t[13])*D,A+=n*j,T+=n*U,b+=n*B,y+=n*H,v+=n*F,I+=n*G,N+=n*K,w+=n*$,S+=n*W,O+=n*V,R+=n*Y,C+=n*q,M+=n*z,P+=n*X,L+=n*Z,A+=(n=t[14])*D,T+=n*j,b+=n*U,y+=n*B,v+=n*H,I+=n*F,N+=n*G,w+=n*K,S+=n*$,O+=n*W,R+=n*V,C+=n*Y,M+=n*q,P+=n*z,L+=n*X,k+=n*Z,T+=(n=t[15])*D,s+=38*(y+=n*U),a+=38*(v+=n*B),c+=38*(I+=n*H),u+=38*(N+=n*F),l+=38*(w+=n*G),f+=38*(S+=n*K),d+=38*(O+=n*$),h+=38*(R+=n*W),p+=38*(C+=n*V),m+=38*(M+=n*Y),_+=38*(P+=n*q),g+=38*(L+=n*z),E+=38*(k+=n*X),A+=38*(x+=n*Z),i=(n=(i+=38*(b+=n*j))+(o=1)+65535)-65536*(o=Math.floor(n/65536)),s=(n=s+o+65535)-65536*(o=Math.floor(n/65536)),a=(n=a+o+65535)-65536*(o=Math.floor(n/65536)),c=(n=c+o+65535)-65536*(o=Math.floor(n/65536)),u=(n=u+o+65535)-65536*(o=Math.floor(n/65536)),l=(n=l+o+65535)-65536*(o=Math.floor(n/65536)),f=(n=f+o+65535)-65536*(o=Math.floor(n/65536)),d=(n=d+o+65535)-65536*(o=Math.floor(n/65536)),h=(n=h+o+65535)-65536*(o=Math.floor(n/65536)),p=(n=p+o+65535)-65536*(o=Math.floor(n/65536)),m=(n=m+o+65535)-65536*(o=Math.floor(n/65536)),_=(n=_+o+65535)-65536*(o=Math.floor(n/65536)),g=(n=g+o+65535)-65536*(o=Math.floor(n/65536)),E=(n=E+o+65535)-65536*(o=Math.floor(n/65536)),A=(n=A+o+65535)-65536*(o=Math.floor(n/65536)),T=(n=T+o+65535)-65536*(o=Math.floor(n/65536)),i=(n=(i+=o-1+37*(o-1))+(o=1)+65535)-65536*(o=Math.floor(n/65536)),s=(n=s+o+65535)-65536*(o=Math.floor(n/65536)),a=(n=a+o+65535)-65536*(o=Math.floor(n/65536)),c=(n=c+o+65535)-65536*(o=Math.floor(n/65536)),u=(n=u+o+65535)-65536*(o=Math.floor(n/65536)),l=(n=l+o+65535)-65536*(o=Math.floor(n/65536)),f=(n=f+o+65535)-65536*(o=Math.floor(n/65536)),d=(n=d+o+65535)-65536*(o=Math.floor(n/65536)),h=(n=h+o+65535)-65536*(o=Math.floor(n/65536)),p=(n=p+o+65535)-65536*(o=Math.floor(n/65536)),m=(n=m+o+65535)-65536*(o=Math.floor(n/65536)),_=(n=_+o+65535)-65536*(o=Math.floor(n/65536)),g=(n=g+o+65535)-65536*(o=Math.floor(n/65536)),E=(n=E+o+65535)-65536*(o=Math.floor(n/65536)),A=(n=A+o+65535)-65536*(o=Math.floor(n/65536)),T=(n=T+o+65535)-65536*(o=Math.floor(n/65536)),i+=o-1+37*(o-1),e[0]=i,e[1]=s,e[2]=a,e[3]=c,e[4]=u,e[5]=l,e[6]=f,e[7]=d,e[8]=h,e[9]=p,e[10]=m,e[11]=_,e[12]=g,e[13]=E,e[14]=A,e[15]=T}function H(e,t){B(e,t,t)}function F(e,t){var n,o=r();for(n=0;n<16;n++)o[n]=t[n];for(n=253;n>=0;n--)H(o,o),2!==n&&4!==n&&B(o,o,t);for(n=0;n<16;n++)e[n]=o[n]}function G(e,t){var n,o=r();for(n=0;n<16;n++)o[n]=t[n];for(n=250;n>=0;n--)H(o,o),1!==n&&B(o,o,t);for(n=0;n<16;n++)e[n]=o[n]}function K(e,t,n){var o,i,s=new Uint8Array(32),a=new Float64Array(80),u=r(),l=r(),f=r(),d=r(),h=r(),p=r();for(i=0;i<31;i++)s[i]=t[i];for(s[31]=127&t[31]|64,s[0]&=248,D(a,n),i=0;i<16;i++)l[i]=a[i],d[i]=u[i]=f[i]=0;for(u[0]=d[0]=1,i=254;i>=0;--i)P(u,l,o=s[i>>>3]>>>(7&i)&1),P(f,d,o),j(h,u,f),U(u,u,f),j(f,l,d),U(l,l,d),H(d,h),H(p,u),B(u,f,u),B(f,l,h),j(h,u,f),U(u,u,f),H(l,u),U(f,d,p),B(u,f,c),j(u,u,d),B(f,f,u),B(u,d,p),B(d,l,a),H(l,h),P(u,l,o),P(f,d,o);for(i=0;i<16;i++)a[i+16]=u[i],a[i+32]=f[i],a[i+48]=l[i],a[i+64]=d[i];var m=a.subarray(32),_=a.subarray(16);return F(m,m),B(_,_,m),L(e,_),0}function $(e,t){return K(e,t,i)}function W(e,t){return n(t,32),$(e,t)}function V(e,t,r){var n=new Uint8Array(32);return K(n,r,t),A(e,o,n,T)}N.prototype.blocks=function(e,t,r){for(var n,o,i,s,a,c,u,l,f,d,h,p,m,_,g,E,A,T,b,y=this.fin?0:2048,v=this.h[0],I=this.h[1],N=this.h[2],w=this.h[3],S=this.h[4],O=this.h[5],R=this.h[6],C=this.h[7],M=this.h[8],P=this.h[9],L=this.r[0],k=this.r[1],x=this.r[2],D=this.r[3],j=this.r[4],U=this.r[5],B=this.r[6],H=this.r[7],F=this.r[8],G=this.r[9];r>=16;)d=f=0,d+=(v+=8191&(n=255&e[t+0]|(255&e[t+1])<<8))*L,d+=(I+=8191&(n>>>13|(o=255&e[t+2]|(255&e[t+3])<<8)<<3))*(5*G),d+=(N+=8191&(o>>>10|(i=255&e[t+4]|(255&e[t+5])<<8)<<6))*(5*F),d+=(w+=8191&(i>>>7|(s=255&e[t+6]|(255&e[t+7])<<8)<<9))*(5*H),f=(d+=(S+=8191&(s>>>4|(a=255&e[t+8]|(255&e[t+9])<<8)<<12))*(5*B))>>>13,d&=8191,d+=(O+=a>>>1&8191)*(5*U),d+=(R+=8191&(a>>>14|(c=255&e[t+10]|(255&e[t+11])<<8)<<2))*(5*j),d+=(C+=8191&(c>>>11|(u=255&e[t+12]|(255&e[t+13])<<8)<<5))*(5*D),d+=(M+=8191&(u>>>8|(l=255&e[t+14]|(255&e[t+15])<<8)<<8))*(5*x),h=f+=(d+=(P+=l>>>5|y)*(5*k))>>>13,h+=v*k,h+=I*L,h+=N*(5*G),h+=w*(5*F),f=(h+=S*(5*H))>>>13,h&=8191,h+=O*(5*B),h+=R*(5*U),h+=C*(5*j),h+=M*(5*D),f+=(h+=P*(5*x))>>>13,h&=8191,p=f,p+=v*x,p+=I*k,p+=N*L,p+=w*(5*G),f=(p+=S*(5*F))>>>13,p&=8191,p+=O*(5*H),p+=R*(5*B),p+=C*(5*U),p+=M*(5*j),m=f+=(p+=P*(5*D))>>>13,m+=v*D,m+=I*x,m+=N*k,m+=w*L,f=(m+=S*(5*G))>>>13,m&=8191,m+=O*(5*F),m+=R*(5*H),m+=C*(5*B),m+=M*(5*U),_=f+=(m+=P*(5*j))>>>13,_+=v*j,_+=I*D,_+=N*x,_+=w*k,f=(_+=S*L)>>>13,_&=8191,_+=O*(5*G),_+=R*(5*F),_+=C*(5*H),_+=M*(5*B),g=f+=(_+=P*(5*U))>>>13,g+=v*U,g+=I*j,g+=N*D,g+=w*x,f=(g+=S*k)>>>13,g&=8191,g+=O*L,g+=R*(5*G),g+=C*(5*F),g+=M*(5*H),E=f+=(g+=P*(5*B))>>>13,E+=v*B,E+=I*U,E+=N*j,E+=w*D,f=(E+=S*x)>>>13,E&=8191,E+=O*k,E+=R*L,E+=C*(5*G),E+=M*(5*F),A=f+=(E+=P*(5*H))>>>13,A+=v*H,A+=I*B,A+=N*U,A+=w*j,f=(A+=S*D)>>>13,A&=8191,A+=O*x,A+=R*k,A+=C*L,A+=M*(5*G),T=f+=(A+=P*(5*F))>>>13,T+=v*F,T+=I*H,T+=N*B,T+=w*U,f=(T+=S*j)>>>13,T&=8191,T+=O*D,T+=R*x,T+=C*k,T+=M*L,b=f+=(T+=P*(5*G))>>>13,b+=v*G,b+=I*F,b+=N*H,b+=w*B,f=(b+=S*U)>>>13,b&=8191,b+=O*j,b+=R*D,b+=C*x,b+=M*k,v=d=8191&(f=(f=((f+=(b+=P*L)>>>13)<<2)+f|0)+(d&=8191)|0),I=h+=f>>>=13,N=p&=8191,w=m&=8191,S=_&=8191,O=g&=8191,R=E&=8191,C=A&=8191,M=T&=8191,P=b&=8191,t+=16,r-=16;this.h[0]=v,this.h[1]=I,this.h[2]=N,this.h[3]=w,this.h[4]=S,this.h[5]=O,this.h[6]=R,this.h[7]=C,this.h[8]=M,this.h[9]=P},N.prototype.finish=function(e,t){var r,n,o,i,s=new Uint16Array(10);if(this.leftover){for(i=this.leftover,this.buffer[i++]=1;i<16;i++)this.buffer[i]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(r=this.h[1]>>>13,this.h[1]&=8191,i=2;i<10;i++)this.h[i]+=r,r=this.h[i]>>>13,this.h[i]&=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,s[0]=this.h[0]+5,r=s[0]>>>13,s[0]&=8191,i=1;i<10;i++)s[i]=this.h[i]+r,r=s[i]>>>13,s[i]&=8191;for(s[9]-=8192,n=(1^r)-1,i=0;i<10;i++)s[i]&=n;for(n=~n,i=0;i<10;i++)this.h[i]=this.h[i]&n|s[i];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),o=this.h[0]+this.pad[0],this.h[0]=65535&o,i=1;i<8;i++)o=(this.h[i]+this.pad[i]|0)+(o>>>16)|0,this.h[i]=65535&o;e[t+0]=this.h[0]>>>0&255,e[t+1]=this.h[0]>>>8&255,e[t+2]=this.h[1]>>>0&255,e[t+3]=this.h[1]>>>8&255,e[t+4]=this.h[2]>>>0&255,e[t+5]=this.h[2]>>>8&255,e[t+6]=this.h[3]>>>0&255,e[t+7]=this.h[3]>>>8&255,e[t+8]=this.h[4]>>>0&255,e[t+9]=this.h[4]>>>8&255,e[t+10]=this.h[5]>>>0&255,e[t+11]=this.h[5]>>>8&255,e[t+12]=this.h[6]>>>0&255,e[t+13]=this.h[6]>>>8&255,e[t+14]=this.h[7]>>>0&255,e[t+15]=this.h[7]>>>8&255},N.prototype.update=function(e,t,r){var n,o;if(this.leftover){for((o=16-this.leftover)>r&&(o=r),n=0;n<o;n++)this.buffer[this.leftover+n]=e[t+n];if(r-=o,t+=o,this.leftover+=o,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(r>=16&&(o=r-r%16,this.blocks(e,t,o),t+=o,r-=o),r){for(n=0;n<r;n++)this.buffer[this.leftover+n]=e[t+n];this.leftover+=r}};var Y=O,q=R;var z=[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 X(e,t,r,n){for(var o,i,s,a,c,u,l,f,d,h,p,m,_,g,E,A,T,b,y,v,I,N,w,S,O,R,C=new Int32Array(16),M=new Int32Array(16),P=e[0],L=e[1],k=e[2],x=e[3],D=e[4],j=e[5],U=e[6],B=e[7],H=t[0],F=t[1],G=t[2],K=t[3],$=t[4],W=t[5],V=t[6],Y=t[7],q=0;n>=128;){for(y=0;y<16;y++)v=8*y+q,C[y]=r[v+0]<<24|r[v+1]<<16|r[v+2]<<8|r[v+3],M[y]=r[v+4]<<24|r[v+5]<<16|r[v+6]<<8|r[v+7];for(y=0;y<80;y++)if(o=P,i=L,s=k,a=x,c=D,u=j,l=U,B,d=H,h=F,p=G,m=K,_=$,g=W,E=V,Y,w=65535&(N=Y),S=N>>>16,O=65535&(I=B),R=I>>>16,w+=65535&(N=($>>>14|D<<18)^($>>>18|D<<14)^(D>>>9|$<<23)),S+=N>>>16,O+=65535&(I=(D>>>14|$<<18)^(D>>>18|$<<14)^($>>>9|D<<23)),R+=I>>>16,w+=65535&(N=$&W^~$&V),S+=N>>>16,O+=65535&(I=D&j^~D&U),R+=I>>>16,I=z[2*y],w+=65535&(N=z[2*y+1]),S+=N>>>16,O+=65535&I,R+=I>>>16,I=C[y%16],S+=(N=M[y%16])>>>16,O+=65535&I,R+=I>>>16,O+=(S+=(w+=65535&N)>>>16)>>>16,w=65535&(N=b=65535&w|S<<16),S=N>>>16,O=65535&(I=T=65535&O|(R+=O>>>16)<<16),R=I>>>16,w+=65535&(N=(H>>>28|P<<4)^(P>>>2|H<<30)^(P>>>7|H<<25)),S+=N>>>16,O+=65535&(I=(P>>>28|H<<4)^(H>>>2|P<<30)^(H>>>7|P<<25)),R+=I>>>16,S+=(N=H&F^H&G^F&G)>>>16,O+=65535&(I=P&L^P&k^L&k),R+=I>>>16,f=65535&(O+=(S+=(w+=65535&N)>>>16)>>>16)|(R+=O>>>16)<<16,A=65535&w|S<<16,w=65535&(N=m),S=N>>>16,O=65535&(I=a),R=I>>>16,S+=(N=b)>>>16,O+=65535&(I=T),R+=I>>>16,L=o,k=i,x=s,D=a=65535&(O+=(S+=(w+=65535&N)>>>16)>>>16)|(R+=O>>>16)<<16,j=c,U=u,B=l,P=f,F=d,G=h,K=p,$=m=65535&w|S<<16,W=_,V=g,Y=E,H=A,y%16==15)for(v=0;v<16;v++)I=C[v],w=65535&(N=M[v]),S=N>>>16,O=65535&I,R=I>>>16,I=C[(v+9)%16],w+=65535&(N=M[(v+9)%16]),S+=N>>>16,O+=65535&I,R+=I>>>16,T=C[(v+1)%16],w+=65535&(N=((b=M[(v+1)%16])>>>1|T<<31)^(b>>>8|T<<24)^(b>>>7|T<<25)),S+=N>>>16,O+=65535&(I=(T>>>1|b<<31)^(T>>>8|b<<24)^T>>>7),R+=I>>>16,T=C[(v+14)%16],S+=(N=((b=M[(v+14)%16])>>>19|T<<13)^(T>>>29|b<<3)^(b>>>6|T<<26))>>>16,O+=65535&(I=(T>>>19|b<<13)^(b>>>29|T<<3)^T>>>6),R+=I>>>16,R+=(O+=(S+=(w+=65535&N)>>>16)>>>16)>>>16,C[v]=65535&O|R<<16,M[v]=65535&w|S<<16;w=65535&(N=H),S=N>>>16,O=65535&(I=P),R=I>>>16,I=e[0],S+=(N=t[0])>>>16,O+=65535&I,R+=I>>>16,R+=(O+=(S+=(w+=65535&N)>>>16)>>>16)>>>16,e[0]=P=65535&O|R<<16,t[0]=H=65535&w|S<<16,w=65535&(N=F),S=N>>>16,O=65535&(I=L),R=I>>>16,I=e[1],S+=(N=t[1])>>>16,O+=65535&I,R+=I>>>16,R+=(O+=(S+=(w+=65535&N)>>>16)>>>16)>>>16,e[1]=L=65535&O|R<<16,t[1]=F=65535&w|S<<16,w=65535&(N=G),S=N>>>16,O=65535&(I=k),R=I>>>16,I=e[2],S+=(N=t[2])>>>16,O+=65535&I,R+=I>>>16,R+=(O+=(S+=(w+=65535&N)>>>16)>>>16)>>>16,e[2]=k=65535&O|R<<16,t[2]=G=65535&w|S<<16,w=65535&(N=K),S=N>>>16,O=65535&(I=x),R=I>>>16,I=e[3],S+=(N=t[3])>>>16,O+=65535&I,R+=I>>>16,R+=(O+=(S+=(w+=65535&N)>>>16)>>>16)>>>16,e[3]=x=65535&O|R<<16,t[3]=K=65535&w|S<<16,w=65535&(N=$),S=N>>>16,O=65535&(I=D),R=I>>>16,I=e[4],S+=(N=t[4])>>>16,O+=65535&I,R+=I>>>16,R+=(O+=(S+=(w+=65535&N)>>>16)>>>16)>>>16,e[4]=D=65535&O|R<<16,t[4]=$=65535&w|S<<16,w=65535&(N=W),S=N>>>16,O=65535&(I=j),R=I>>>16,I=e[5],S+=(N=t[5])>>>16,O+=65535&I,R+=I>>>16,R+=(O+=(S+=(w+=65535&N)>>>16)>>>16)>>>16,e[5]=j=65535&O|R<<16,t[5]=W=65535&w|S<<16,w=65535&(N=V),S=N>>>16,O=65535&(I=U),R=I>>>16,I=e[6],S+=(N=t[6])>>>16,O+=65535&I,R+=I>>>16,R+=(O+=(S+=(w+=65535&N)>>>16)>>>16)>>>16,e[6]=U=65535&O|R<<16,t[6]=V=65535&w|S<<16,w=65535&(N=Y),S=N>>>16,O=65535&(I=B),R=I>>>16,I=e[7],S+=(N=t[7])>>>16,O+=65535&I,R+=I>>>16,R+=(O+=(S+=(w+=65535&N)>>>16)>>>16)>>>16,e[7]=B=65535&O|R<<16,t[7]=Y=65535&w|S<<16,q+=128,n-=128}return n}function Z(e,t,r){var n,o=new Int32Array(8),i=new Int32Array(8),s=new Uint8Array(256),a=r;for(o[0]=1779033703,o[1]=3144134277,o[2]=1013904242,o[3]=2773480762,o[4]=1359893119,o[5]=2600822924,o[6]=528734635,o[7]=1541459225,i[0]=4089235720,i[1]=2227873595,i[2]=4271175723,i[3]=1595750129,i[4]=2917565137,i[5]=725511199,i[6]=4215389547,i[7]=327033209,X(o,i,t,r),r%=128,n=0;n<r;n++)s[n]=t[a-r+n];for(s[r]=128,s[(r=256-128*(r<112?1:0))-9]=0,p(s,r-8,a/536870912|0,a<<3),X(o,i,s,r),n=0;n<8;n++)p(e,8*n,o[n],i[n]);return 0}function J(e,t){var n=r(),o=r(),i=r(),s=r(),a=r(),c=r(),u=r(),f=r(),d=r();U(n,e[1],e[0]),U(d,t[1],t[0]),B(n,n,d),j(o,e[0],e[1]),j(d,t[0],t[1]),B(o,o,d),B(i,e[3],t[3]),B(i,i,l),B(s,e[2],t[2]),j(s,s,s),U(a,o,n),U(c,s,i),j(u,s,i),j(f,o,n),B(e[0],a,c),B(e[1],f,u),B(e[2],u,c),B(e[3],a,f)}function Q(e,t,r){var n;for(n=0;n<4;n++)P(e[n],t[n],r)}function ee(e,t){var n=r(),o=r(),i=r();F(i,t[2]),B(n,t[0],i),B(o,t[1],i),L(e,o),e[31]^=x(n)<<7}function te(e,t,r){var n,o;for(C(e[0],s),C(e[1],a),C(e[2],a),C(e[3],s),o=255;o>=0;--o)Q(e,t,n=r[o/8|0]>>(7&o)&1),J(t,e),J(e,e),Q(e,t,n)}function re(e,t){var n=[r(),r(),r(),r()];C(n[0],f),C(n[1],d),C(n[2],a),B(n[3],f,d),te(e,n,t)}function ne(e,t,o){var i,s=new Uint8Array(64),a=[r(),r(),r(),r()];for(o||n(t,32),Z(s,t,32),s[0]&=248,s[31]&=127,s[31]|=64,re(a,s),ee(e,a),i=0;i<32;i++)t[i+32]=e[i];return 0}var oe=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 ie(e,t){var r,n,o,i;for(n=63;n>=32;--n){for(r=0,o=n-32,i=n-12;o<i;++o)t[o]+=r-16*t[n]*oe[o-(n-32)],r=Math.floor((t[o]+128)/256),t[o]-=256*r;t[o]+=r,t[n]=0}for(r=0,o=0;o<32;o++)t[o]+=r-(t[31]>>4)*oe[o],r=t[o]>>8,t[o]&=255;for(o=0;o<32;o++)t[o]-=r*oe[o];for(n=0;n<32;n++)t[n+1]+=t[n]>>8,e[n]=255&t[n]}function se(e){var t,r=new Float64Array(64);for(t=0;t<64;t++)r[t]=e[t];for(t=0;t<64;t++)e[t]=0;ie(e,r)}function ae(e,t,n,o){var i,s,a=new Uint8Array(64),c=new Uint8Array(64),u=new Uint8Array(64),l=new Float64Array(64),f=[r(),r(),r(),r()];Z(a,o,32),a[0]&=248,a[31]&=127,a[31]|=64;var d=n+64;for(i=0;i<n;i++)e[64+i]=t[i];for(i=0;i<32;i++)e[32+i]=a[32+i];for(Z(u,e.subarray(32),n+32),se(u),re(f,u),ee(e,f),i=32;i<64;i++)e[i]=o[i];for(Z(c,e,n+64),se(c),i=0;i<64;i++)l[i]=0;for(i=0;i<32;i++)l[i]=u[i];for(i=0;i<32;i++)for(s=0;s<32;s++)l[i+s]+=c[i]*a[s];return ie(e.subarray(32),l),d}function ce(e,t,n,o){var i,c=new Uint8Array(32),l=new Uint8Array(64),f=[r(),r(),r(),r()],d=[r(),r(),r(),r()];if(n<64)return-1;if(function(e,t){var n=r(),o=r(),i=r(),c=r(),l=r(),f=r(),d=r();return C(e[2],a),D(e[1],t),H(i,e[1]),B(c,i,u),U(i,i,e[2]),j(c,e[2],c),H(l,c),H(f,l),B(d,f,l),B(n,d,i),B(n,n,c),G(n,n),B(n,n,i),B(n,n,c),B(n,n,c),B(e[0],n,c),H(o,e[0]),B(o,o,c),k(o,i)&&B(e[0],e[0],h),H(o,e[0]),B(o,o,c),k(o,i)?-1:(x(e[0])===t[31]>>7&&U(e[0],s,e[0]),B(e[3],e[0],e[1]),0)}(d,o))return-1;for(i=0;i<n;i++)e[i]=t[i];for(i=0;i<32;i++)e[i+32]=o[i];if(Z(l,e,n),se(l),te(f,d,l),re(d,t.subarray(32)),J(f,d),ee(c,f),n-=64,g(t,0,c,0)){for(i=0;i<n;i++)e[i]=0;return-1}for(i=0;i<n;i++)e[i]=t[i+64];return n}var ue=16,le=64,fe=32,de=64;function he(e,t){if(32!==e.length)throw new Error("bad key size");if(24!==t.length)throw new Error("bad nonce size")}function pe(){for(var e=0;e<arguments.length;e++)if(!(arguments[e]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function me(e){for(var t=0;t<e.length;t++)e[t]=0}t.lowlevel={crypto_core_hsalsa20:A,crypto_stream_xor:I,crypto_stream:v,crypto_stream_salsa20_xor:b,crypto_stream_salsa20:y,crypto_onetimeauth:w,crypto_onetimeauth_verify:S,crypto_verify_16:_,crypto_verify_32:g,crypto_secretbox:O,crypto_secretbox_open:R,crypto_scalarmult:K,crypto_scalarmult_base:$,crypto_box_beforenm:V,crypto_box_afternm:Y,crypto_box:function(e,t,r,n,o,i){var s=new Uint8Array(32);return V(s,o,i),Y(e,t,r,n,s)},crypto_box_open:function(e,t,r,n,o,i){var s=new Uint8Array(32);return V(s,o,i),q(e,t,r,n,s)},crypto_box_keypair:W,crypto_hash:Z,crypto_sign:ae,crypto_sign_keypair:ne,crypto_sign_open:ce,crypto_secretbox_KEYBYTES:32,crypto_secretbox_NONCEBYTES:24,crypto_secretbox_ZEROBYTES:32,crypto_secretbox_BOXZEROBYTES:ue,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:le,crypto_sign_PUBLICKEYBYTES:fe,crypto_sign_SECRETKEYBYTES:de,crypto_sign_SEEDBYTES:32,crypto_hash_BYTES:64,gf:r,D:u,L:oe,pack25519:L,unpack25519:D,M:B,A:j,S:H,Z:U,pow2523:G,add:J,set25519:C,modL:ie,scalarmult:te,scalarbase:re},t.randomBytes=function(e){var t=new Uint8Array(e);return n(t,e),t},t.secretbox=function(e,t,r){pe(e,t,r),he(r,t);for(var n=new Uint8Array(32+e.length),o=new Uint8Array(n.length),i=0;i<e.length;i++)n[i+32]=e[i];return O(o,n,n.length,t,r),o.subarray(ue)},t.secretbox.open=function(e,t,r){pe(e,t,r),he(r,t);for(var n=new Uint8Array(ue+e.length),o=new Uint8Array(n.length),i=0;i<e.length;i++)n[i+ue]=e[i];return n.length<32||0!==R(o,n,n.length,t,r)?null:o.subarray(32)},t.secretbox.keyLength=32,t.secretbox.nonceLength=24,t.secretbox.overheadLength=ue,t.scalarMult=function(e,t){if(pe(e,t),32!==e.length)throw new Error("bad n size");if(32!==t.length)throw new Error("bad p size");var r=new Uint8Array(32);return K(r,e,t),r},t.scalarMult.base=function(e){if(pe(e),32!==e.length)throw new Error("bad n size");var t=new Uint8Array(32);return $(t,e),t},t.scalarMult.scalarLength=32,t.scalarMult.groupElementLength=32,t.box=function(e,r,n,o){var i=t.box.before(n,o);return t.secretbox(e,r,i)},t.box.before=function(e,t){pe(e,t),function(e,t){if(32!==e.length)throw new Error("bad public key size");if(32!==t.length)throw new Error("bad secret key size")}(e,t);var r=new Uint8Array(32);return V(r,e,t),r},t.box.after=t.secretbox,t.box.open=function(e,r,n,o){var i=t.box.before(n,o);return t.secretbox.open(e,r,i)},t.box.open.after=t.secretbox.open,t.box.keyPair=function(){var e=new Uint8Array(32),t=new Uint8Array(32);return W(e,t),{publicKey:e,secretKey:t}},t.box.keyPair.fromSecretKey=function(e){if(pe(e),32!==e.length)throw new Error("bad secret key size");var t=new Uint8Array(32);return $(t,e),{publicKey:t,secretKey:new Uint8Array(e)}},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(e,t){if(pe(e,t),t.length!==de)throw new Error("bad secret key size");var r=new Uint8Array(le+e.length);return ae(r,e,e.length,t),r},t.sign.open=function(e,t){if(pe(e,t),t.length!==fe)throw new Error("bad public key size");var r=new Uint8Array(e.length),n=ce(r,e,e.length,t);if(n<0)return null;for(var o=new Uint8Array(n),i=0;i<o.length;i++)o[i]=r[i];return o},t.sign.detached=function(e,r){for(var n=t.sign(e,r),o=new Uint8Array(le),i=0;i<o.length;i++)o[i]=n[i];return o},t.sign.detached.verify=function(e,t,r){if(pe(e,t,r),t.length!==le)throw new Error("bad signature size");if(r.length!==fe)throw new Error("bad public key size");var n,o=new Uint8Array(le+e.length),i=new Uint8Array(le+e.length);for(n=0;n<le;n++)o[n]=t[n];for(n=0;n<e.length;n++)o[n+le]=e[n];return ce(i,o,o.length,r)>=0},t.sign.keyPair=function(){var e=new Uint8Array(fe),t=new Uint8Array(de);return ne(e,t),{publicKey:e,secretKey:t}},t.sign.keyPair.fromSecretKey=function(e){if(pe(e),e.length!==de)throw new Error("bad secret key size");for(var t=new Uint8Array(fe),r=0;r<t.length;r++)t[r]=e[32+r];return{publicKey:t,secretKey:new Uint8Array(e)}},t.sign.keyPair.fromSeed=function(e){if(pe(e),32!==e.length)throw new Error("bad seed size");for(var t=new Uint8Array(fe),r=new Uint8Array(de),n=0;n<32;n++)r[n]=e[n];return ne(t,r,!0),{publicKey:t,secretKey:r}},t.sign.publicKeyLength=fe,t.sign.secretKeyLength=de,t.sign.seedLength=32,t.sign.signatureLength=le,t.hash=function(e){pe(e);var t=new Uint8Array(64);return Z(t,e,e.length),t},t.hash.hashLength=64,t.verify=function(e,t){return pe(e,t),0!==e.length&&0!==t.length&&(e.length===t.length&&0===m(e,0,t,0,e.length))},t.setPRNG=function(e){n=e},function(){var r="undefined"!=typeof self?self.crypto||self.msCrypto:null;if(r&&r.getRandomValues){t.setPRNG((function(e,t){var n,o=new Uint8Array(t);for(n=0;n<t;n+=65536)r.getRandomValues(o.subarray(n,n+Math.min(t-n,65536)));for(n=0;n<t;n++)e[n]=o[n];me(o)}))}else void 0!==e&&(r=e("crypto"))&&r.randomBytes&&t.setPRNG((function(e,t){var n,o=r.randomBytes(t);for(n=0;n<t;n++)e[n]=o[n];me(o)}))}()}(void 0!==t&&t.exports?t.exports:self.nacl=self.nacl||{})}}},{package:"@metamask/eth-sig-util>tweetnacl",file:"node_modules/tweetnacl/nacl-fast.js"}],[5618,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){!function(e,n){var o="function",i="undefined",s="object",a="string",c="major",u="model",l="name",f="type",d="vendor",h="version",p="architecture",m="console",_="mobile",g="tablet",E="smarttv",A="wearable",T="embedded",b="Amazon",y="Apple",v="ASUS",I="BlackBerry",N="Browser",w="Chrome",S="Firefox",O="Google",R="Huawei",C="LG",M="Microsoft",P="Motorola",L="Opera",k="Samsung",x="Sharp",D="Sony",j="Xiaomi",U="Zebra",B="Facebook",H="Chromium OS",F="Mac OS",G=function(e){for(var t={},r=0;r<e.length;r++)t[e[r].toUpperCase()]=e[r];return t},K=function(e,t){return typeof e===a&&-1!==$(t).indexOf($(e))},$=function(e){return e.toLowerCase()},W=function(e,t){if(typeof e===a)return e=e.replace(/^\s\s*/,""),typeof t===i?e:e.substring(0,500)},V=function(e,t){for(var r,i,a,c,u,l,f=0;f<t.length&&!u;){var d=t[f],h=t[f+1];for(r=i=0;r<d.length&&!u&&d[r];)if(u=d[r++].exec(e))for(a=0;a<h.length;a++)l=u[++i],typeof(c=h[a])===s&&c.length>0?2===c.length?typeof c[1]==o?this[c[0]]=c[1].call(this,l):this[c[0]]=c[1]:3===c.length?typeof c[1]!==o||c[1].exec&&c[1].test?this[c[0]]=l?l.replace(c[1],c[2]):n:this[c[0]]=l?c[1].call(this,l,c[2]):n:4===c.length&&(this[c[0]]=l?c[3].call(this,l.replace(c[1],c[2])):n):this[c]=l||n;f+=2}},Y=function(e,t){for(var r in t)if(typeof t[r]===s&&t[r].length>0){for(var o=0;o<t[r].length;o++)if(K(t[r][o],e))return"?"===r?n:r}else if(K(t[r],e))return"?"===r?n:r;return e},q={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},z={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[h,[l,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[h,[l,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[l,h],[/opios[\/ ]+([\w\.]+)/i],[h,[l,L+" Mini"]],[/\bopr\/([\w\.]+)/i],[h,[l,L]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[h,[l,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[l,h],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[h,[l,"UC"+N]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[h,[l,"WeChat"]],[/konqueror\/([\w\.]+)/i],[h,[l,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[h,[l,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[h,[l,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[h,[l,"Smart Lenovo "+N]],[/(avast|avg)\/([\w\.]+)/i],[[l,/(.+)/,"$1 Secure "+N],h],[/\bfocus\/([\w\.]+)/i],[h,[l,S+" Focus"]],[/\bopt\/([\w\.]+)/i],[h,[l,L+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[h,[l,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[h,[l,"Dolphin"]],[/coast\/([\w\.]+)/i],[h,[l,L+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[h,[l,"MIUI "+N]],[/fxios\/([-\w\.]+)/i],[h,[l,S]],[/\bqihu|(qi?ho?o?|360)browser/i],[[l,"360 "+N]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[l,/(.+)/,"$1 "+N],h],[/samsungbrowser\/([\w\.]+)/i],[h,[l,k+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[l,/_/g," "],h],[/metasr[\/ ]?([\d\.]+)/i],[h,[l,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[l,"Sogou Mobile"],h],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[l,h],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[l],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[l,B],h],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[l,h],[/\bgsa\/([\w\.]+) .*safari\//i],[h,[l,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[h,[l,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[h,[l,w+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[l,w+" WebView"],h],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[h,[l,"Android "+N]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[l,h],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[h,[l,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[h,l],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[l,[h,Y,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[l,h],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[l,"Netscape"],h],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[h,[l,S+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[l,h],[/(cobalt)\/([\w\.]+)/i],[l,[h,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[p,"amd64"]],[/(ia32(?=;))/i],[[p,$]],[/((?:i[346]|x)86)[;\)]/i],[[p,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[p,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[p,"armhf"]],[/windows (ce|mobile); ppc;/i],[[p,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[p,/ower/,"",$]],[/(sun4\w)[;\)]/i],[[p,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[p,$]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[u,[d,k],[f,g]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[u,[d,k],[f,_]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[u,[d,y],[f,_]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[u,[d,y],[f,g]],[/(macintosh);/i],[u,[d,y]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[u,[d,x],[f,_]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[u,[d,R],[f,g]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[u,[d,R],[f,_]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[u,/_/g," "],[d,j],[f,_]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[u,/_/g," "],[d,j],[f,g]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[u,[d,"OPPO"],[f,_]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[u,[d,"Vivo"],[f,_]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[u,[d,"Realme"],[f,_]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[u,[d,P],[f,_]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[u,[d,P],[f,g]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[u,[d,C],[f,g]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[u,[d,C],[f,_]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[u,[d,"Lenovo"],[f,g]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[u,/_/g," "],[d,"Nokia"],[f,_]],[/(pixel c)\b/i],[u,[d,O],[f,g]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[u,[d,O],[f,_]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[u,[d,D],[f,_]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[u,"Xperia Tablet"],[d,D],[f,g]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[u,[d,"OnePlus"],[f,_]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[u,[d,b],[f,g]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[u,/(.+)/g,"Fire Phone $1"],[d,b],[f,_]],[/(playbook);[-\w\),; ]+(rim)/i],[u,d,[f,g]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[u,[d,I],[f,_]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[u,[d,v],[f,g]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[u,[d,v],[f,_]],[/(nexus 9)/i],[u,[d,"HTC"],[f,g]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[d,[u,/_/g," "],[f,_]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[u,[d,"Acer"],[f,g]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[u,[d,"Meizu"],[f,_]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[u,[d,"Ulefone"],[f,_]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[d,u,[f,_]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[d,u,[f,g]],[/(surface duo)/i],[u,[d,M],[f,g]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[u,[d,"Fairphone"],[f,_]],[/(u304aa)/i],[u,[d,"AT&T"],[f,_]],[/\bsie-(\w*)/i],[u,[d,"Siemens"],[f,_]],[/\b(rct\w+) b/i],[u,[d,"RCA"],[f,g]],[/\b(venue[\d ]{2,7}) b/i],[u,[d,"Dell"],[f,g]],[/\b(q(?:mv|ta)\w+) b/i],[u,[d,"Verizon"],[f,g]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[u,[d,"Barnes & Noble"],[f,g]],[/\b(tm\d{3}\w+) b/i],[u,[d,"NuVision"],[f,g]],[/\b(k88) b/i],[u,[d,"ZTE"],[f,g]],[/\b(nx\d{3}j) b/i],[u,[d,"ZTE"],[f,_]],[/\b(gen\d{3}) b.+49h/i],[u,[d,"Swiss"],[f,_]],[/\b(zur\d{3}) b/i],[u,[d,"Swiss"],[f,g]],[/\b((zeki)?tb.*\b) b/i],[u,[d,"Zeki"],[f,g]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[d,"Dragon Touch"],u,[f,g]],[/\b(ns-?\w{0,9}) b/i],[u,[d,"Insignia"],[f,g]],[/\b((nxa|next)-?\w{0,9}) b/i],[u,[d,"NextBook"],[f,g]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[d,"Voice"],u,[f,_]],[/\b(lvtel\-)?(v1[12]) b/i],[[d,"LvTel"],u,[f,_]],[/\b(ph-1) /i],[u,[d,"Essential"],[f,_]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[u,[d,"Envizen"],[f,g]],[/\b(trio[-\w\. ]+) b/i],[u,[d,"MachSpeed"],[f,g]],[/\btu_(1491) b/i],[u,[d,"Rotor"],[f,g]],[/(shield[\w ]+) b/i],[u,[d,"Nvidia"],[f,g]],[/(sprint) (\w+)/i],[d,u,[f,_]],[/(kin\.[onetw]{3})/i],[[u,/\./g," "],[d,M],[f,_]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[u,[d,U],[f,g]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[u,[d,U],[f,_]],[/smart-tv.+(samsung)/i],[d,[f,E]],[/hbbtv.+maple;(\d+)/i],[[u,/^/,"SmartTV"],[d,k],[f,E]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,C],[f,E]],[/(apple) ?tv/i],[d,[u,y+" TV"],[f,E]],[/crkey/i],[[u,w+"cast"],[d,O],[f,E]],[/droid.+aft(\w+)( bui|\))/i],[u,[d,b],[f,E]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[u,[d,x],[f,E]],[/(bravia[\w ]+)( bui|\))/i],[u,[d,D],[f,E]],[/(mitv-\w{5}) bui/i],[u,[d,j],[f,E]],[/Hbbtv.*(technisat) (.*);/i],[d,u,[f,E]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[d,W],[u,W],[f,E]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[f,E]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[d,u,[f,m]],[/droid.+; (shield) bui/i],[u,[d,"Nvidia"],[f,m]],[/(playstation [345portablevi]+)/i],[u,[d,D],[f,m]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[u,[d,M],[f,m]],[/((pebble))app/i],[d,u,[f,A]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[u,[d,y],[f,A]],[/droid.+; (glass) \d/i],[u,[d,O],[f,A]],[/droid.+; (wt63?0{2,3})\)/i],[u,[d,U],[f,A]],[/(quest( 2| pro)?)/i],[u,[d,B],[f,A]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[f,T]],[/(aeobc)\b/i],[u,[d,b],[f,T]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[u,[f,_]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[u,[f,g]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[f,g]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[f,_]],[/(android[-\w\. ]{0,9});.+buil/i],[u,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[h,[l,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[h,[l,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[l,h],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[h,l]],os:[[/microsoft (windows) (vista|xp)/i],[l,h],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[l,[h,Y,q]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[h,Y,q],[l,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[h,/_/g,"."],[l,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[l,F],[h,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[h,l],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[l,h],[/\(bb(10);/i],[h,[l,I]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[h,[l,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[h,[l,S+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[h,[l,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[h,[l,"watchOS"]],[/crkey\/([\d\.]+)/i],[h,[l,w+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[l,H],h],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[l,h],[/(sunos) ?([\w\.\d]*)/i],[[l,"Solaris"],h],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[l,h]]},X=function(t,r){if(typeof t===s&&(r=t,t=n),!(this instanceof X))return new X(t,r).getResult();var m=typeof e!==i&&e.navigator?e.navigator:n,E=t||(m&&m.userAgent?m.userAgent:""),A=m&&m.userAgentData?m.userAgentData:n,T=r?function(e,t){var r={};for(var n in e)t[n]&&t[n].length%2==0?r[n]=t[n].concat(e[n]):r[n]=e[n];return r}(z,r):z,b=m&&m.userAgent==E;return this.getBrowser=function(){var e,t={};return t[l]=n,t[h]=n,V.call(t,E,T.browser),t[c]=typeof(e=t[h])===a?e.replace(/[^\d\.]/g,"").split(".")[0]:n,b&&m&&m.brave&&typeof m.brave.isBrave==o&&(t[l]="Brave"),t},this.getCPU=function(){var e={};return e[p]=n,V.call(e,E,T.cpu),e},this.getDevice=function(){var e={};return e[d]=n,e[u]=n,e[f]=n,V.call(e,E,T.device),b&&!e[f]&&A&&A.mobile&&(e[f]=_),b&&"Macintosh"==e[u]&&m&&typeof m.standalone!==i&&m.maxTouchPoints&&m.maxTouchPoints>2&&(e[u]="iPad",e[f]=g),e},this.getEngine=function(){var e={};return e[l]=n,e[h]=n,V.call(e,E,T.engine),e},this.getOS=function(){var e={};return e[l]=n,e[h]=n,V.call(e,E,T.os),b&&!e[l]&&A&&"Unknown"!=A.platform&&(e[l]=A.platform.replace(/chrome os/i,H).replace(/macos/i,F)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return E},this.setUA=function(e){return E=typeof e===a&&e.length>500?W(e,500):e,this},this.setUA(E),this};X.VERSION="1.0.37",X.BROWSER=G([l,h,c]),X.CPU=G([p]),X.DEVICE=G([u,d,f,m,_,E,g,A,T]),X.ENGINE=X.OS=G([l,h]),typeof r!==i?(typeof t!==i&&t.exports&&(r=t.exports=X),r.UAParser=X):typeof define===o&&define.amd?define((function(){return X})):typeof e!==i&&(e.UAParser=X);var Z=typeof e!==i&&(e.jQuery||e.Zepto);if(Z&&!Z.ua){var J=new X;Z.ua=J.getResult(),Z.ua.get=function(){return J.getUA()},Z.ua.set=function(e){J.setUA(e);var t=J.getResult();for(var r in t)Z.ua[r]=t[r]}}}("object"==typeof window?window:this)}}},{package:"@trezor/connect-web>@trezor/connect-common>@trezor/env-utils>ua-parser-js",file:"node_modules/ua-parser-js/src/ua-parser.js"}],[562,{"./_version":561,"./types":564,"@ethersproject/bytes":500,"@ethersproject/logger":528,"hash.js":4619},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.computeHmac=r.sha512=r.sha256=r.ripemd160=void 0;var o=n(e("hash.js")),i=e("@ethersproject/bytes"),s=e("./types"),a=e("@ethersproject/logger"),c=e("./_version"),u=new a.Logger(c.version);r.ripemd160=function(e){return"0x"+o.default.ripemd160().update((0,i.arrayify)(e)).digest("hex")},r.sha256=function(e){return"0x"+o.default.sha256().update((0,i.arrayify)(e)).digest("hex")},r.sha512=function(e){return"0x"+o.default.sha512().update((0,i.arrayify)(e)).digest("hex")},r.computeHmac=function(e,t,r){return s.SupportedAlgorithm[e]||u.throwError("unsupported algorithm "+e,a.Logger.errors.UNSUPPORTED_OPERATION,{operation:"hmac",algorithm:e}),"0x"+o.default.hmac(o.default[e],(0,i.arrayify)(t)).update((0,i.arrayify)(r)).digest("hex")}}}},{package:"ethers>@ethersproject/sha2",file:"node_modules/@ethersproject/sha2/lib/browser-sha2.js"}],[5623,{crypto:5624},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){!function(e,n){"object"==typeof r&&void 0!==t?n(r):"function"==typeof define&&define.amd?define(["exports"],n):n(e.ULID={})}(this,(function(t){function r(e){var t=new Error(e);return t.source="ulid",t}var n="0123456789ABCDEFGHJKMNPQRSTVWXYZ",o=n.length,i=Math.pow(2,48)-1;function s(e,t,r){return t>e.length-1?e:e.substr(0,t)+r+e.substr(t+1)}function a(e){for(var t=undefined,i=e.length,a=void 0,c=void 0,u=o-1;!t&&i-- >=0;){if(a=e[i],-1===(c=n.indexOf(a)))throw r("incorrectly encoded string");c!==u?t=s(e,i,n[c+1]):e=s(e,i,n[0])}if("string"==typeof t)return t;throw r("cannot increment this string")}function c(e){var t=Math.floor(e()*o);return t===o&&(t=o-1),n.charAt(t)}function u(e,t){if(isNaN(e))throw new Error(e+" must be a number");if(e>i)throw r("cannot encode time greater than "+i);if(e<0)throw r("time must be positive");if(!1===Number.isInteger(e))throw r("time must be an integer");for(var s=void 0,a="";t>0;t--)s=e%o,a=n.charAt(s)+a,e=(e-s)/o;return a}function l(e,t){for(var r="";e>0;e--)r=c(t)+r;return r}function f(){var t=arguments.length>0&&arguments[0]!==undefined&&arguments[0],n=arguments[1];n||(n="undefined"!=typeof window?window:null);var o=n&&(n.crypto||n.msCrypto);if(o)return function(){var e=new Uint8Array(1);return o.getRandomValues(e),e[0]/255};try{var i=e("crypto");return function(){return i.randomBytes(1).readUInt8()/255}}catch(e){}if(t){try{console.error("secure crypto unusable, falling back to insecure Math.random()!")}catch(e){}return function(){return Math.random()}}throw r("secure crypto unusable, insecure Math.random not allowed")}function d(e){return e||(e=f()),function(t){return isNaN(t)&&(t=Date.now()),u(t,10)+l(16,e)}}var h=d();t.replaceCharAt=s,t.incrementBase32=a,t.randomChar=c,t.encodeTime=u,t.encodeRandom=l,t.decodeTime=function(e){if(26!==e.length)throw r("malformed ulid");var t=e.substr(0,10).split("").reverse().reduce((function(e,t,i){var s=n.indexOf(t);if(-1===s)throw r("invalid character found: "+t);return e+s*Math.pow(o,i)}),0);if(t>i)throw r("malformed ulid, timestamp too large");return t},t.detectPrng=f,t.factory=d,t.monotonicFactory=function(e){e||(e=f());var t=0,r=void 0;return function(n){if(isNaN(n)&&(n=Date.now()),n<=t){var o=r=a(r);return u(t,10)+o}t=n;var i=r=l(16,e);return u(n,10)+i}},t.ulid=h,Object.defineProperty(t,"__esModule",{value:!0})}))}}},{package:"@metamask/keyring-controller>ulid",file:"node_modules/ulid/dist/index.umd.js"}],[5624,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){}}},{package:"@metamask/keyring-controller>ulid",file:"node_modules/ulid/stubs/crypto.js"}],[563,{"./sha2":562,"./types":564},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.SupportedAlgorithm=r.sha512=r.sha256=r.ripemd160=r.computeHmac=void 0;var n=e("./sha2");Object.defineProperty(r,"computeHmac",{enumerable:!0,get:function(){return n.computeHmac}}),Object.defineProperty(r,"ripemd160",{enumerable:!0,get:function(){return n.ripemd160}}),Object.defineProperty(r,"sha256",{enumerable:!0,get:function(){return n.sha256}}),Object.defineProperty(r,"sha512",{enumerable:!0,get:function(){return n.sha512}});var o=e("./types");Object.defineProperty(r,"SupportedAlgorithm",{enumerable:!0,get:function(){return o.SupportedAlgorithm}})}}},{package:"ethers>@ethersproject/sha2",file:"node_modules/@ethersproject/sha2/lib/index.js"}],[5638,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){
/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
!function(e,n){"object"==typeof r&&void 0!==t?n(r):"function"==typeof define&&define.amd?define(["exports"],n):n(e.URI=e.URI||{})}(this,(function(e){function t(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(t.length>1){t[0]=t[0].slice(0,-1);for(var n=t.length-1,o=1;o<n;++o)t[o]=t[o].slice(1,-1);return t[n]=t[n].slice(1),t.join("")}return t[0]}function r(e){return"(?:"+e+")"}function n(e){return e===undefined?"undefined":null===e?"null":Object.prototype.toString.call(e).split(" ").pop().split("]").shift().toLowerCase()}function o(e){return e.toUpperCase()}function i(e){var n="[A-Za-z]",o="[0-9]",i=t(o,"[A-Fa-f]"),s=r(r("%[EFef]"+i+"%"+i+i+"%"+i+i)+"|"+r("%[89A-Fa-f]"+i+"%"+i+i)+"|"+r("%"+i+i)),a="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",c=t("[\\:\\/\\?\\#\\[\\]\\@]",a),u=e?"[\\uE000-\\uF8FF]":"[]",l=t(n,o,"[\\-\\.\\_\\~]",e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]"),f=r(n+t(n,o,"[\\+\\-\\.]")+"*"),d=r(r(s+"|"+t(l,a,"[\\:]"))+"*"),h=(r(r("25[0-5]")+"|"+r("2[0-4]"+o)+"|"+r("1"+o+o)+"|"+r("[1-9]"+o)+"|"+o),r(r("25[0-5]")+"|"+r("2[0-4]"+o)+"|"+r("1"+o+o)+"|"+r("0?[1-9]"+o)+"|0?0?"+o)),p=r(h+"\\."+h+"\\."+h+"\\."+h),m=r(i+"{1,4}"),_=r(r(m+"\\:"+m)+"|"+p),g=r(r(m+"\\:")+"{6}"+_),E=r("\\:\\:"+r(m+"\\:")+"{5}"+_),A=r(r(m)+"?\\:\\:"+r(m+"\\:")+"{4}"+_),T=r(r(r(m+"\\:")+"{0,1}"+m)+"?\\:\\:"+r(m+"\\:")+"{3}"+_),b=r(r(r(m+"\\:")+"{0,2}"+m)+"?\\:\\:"+r(m+"\\:")+"{2}"+_),y=r(r(r(m+"\\:")+"{0,3}"+m)+"?\\:\\:"+m+"\\:"+_),v=r(r(r(m+"\\:")+"{0,4}"+m)+"?\\:\\:"+_),I=r(r(r(m+"\\:")+"{0,5}"+m)+"?\\:\\:"+m),N=r(r(r(m+"\\:")+"{0,6}"+m)+"?\\:\\:"),w=r([g,E,A,T,b,y,v,I,N].join("|")),S=r(r(l+"|"+s)+"+"),O=(r(w+"\\%25"+S),r(w+r("\\%25|\\%(?!"+i+"{2})")+S)),R=r("[vV]"+i+"+\\."+t(l,a,"[\\:]")+"+"),C=r("\\["+r(O+"|"+w+"|"+R)+"\\]"),M=r(r(s+"|"+t(l,a))+"*"),P=r(C+"|"+p+"(?!"+M+")|"+M),L=r(o+"*"),k=r(r(d+"@")+"?"+P+r("\\:"+L)+"?"),x=r(s+"|"+t(l,a,"[\\:\\@]")),D=r(x+"*"),j=r(x+"+"),U=r(r(s+"|"+t(l,a,"[\\@]"))+"+"),B=r(r("\\/"+D)+"*"),H=r("\\/"+r(j+B)+"?"),F=r(U+B),G=r(j+B),K="(?!"+x+")",$=(r(B+"|"+H+"|"+F+"|"+G+"|"+K),r(r(x+"|"+t("[\\/\\?]",u))+"*")),W=r(r(x+"|[\\/\\?]")+"*"),V=r(r("\\/\\/"+k+B)+"|"+H+"|"+G+"|"+K),Y=r(f+"\\:"+V+r("\\?"+$)+"?"+r("\\#"+W)+"?"),q=r(r("\\/\\/"+k+B)+"|"+H+"|"+F+"|"+K),z=r(q+r("\\?"+$)+"?"+r("\\#"+W)+"?");r(Y+"|"+z),r(f+"\\:"+V+r("\\?"+$)+"?"),r(r("\\/\\/("+r("("+d+")@")+"?("+P+")"+r("\\:("+L+")")+"?)")+"?("+B+"|"+H+"|"+G+"|"+K+")"),r("\\?("+$+")"),r("\\#("+W+")"),r(r("\\/\\/("+r("("+d+")@")+"?("+P+")"+r("\\:("+L+")")+"?)")+"?("+B+"|"+H+"|"+F+"|"+K+")"),r("\\?("+$+")"),r("\\#("+W+")"),r(r("\\/\\/("+r("("+d+")@")+"?("+P+")"+r("\\:("+L+")")+"?)")+"?("+B+"|"+H+"|"+G+"|"+K+")"),r("\\?("+$+")"),r("\\#("+W+")"),r("("+d+")@"),r("\\:("+L+")");return{NOT_SCHEME:new RegExp(t("[^]",n,o,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(t("[^\\%\\:]",l,a),"g"),NOT_HOST:new RegExp(t("[^\\%\\[\\]\\:]",l,a),"g"),NOT_PATH:new RegExp(t("[^\\%\\/\\:\\@]",l,a),"g"),NOT_PATH_NOSCHEME:new RegExp(t("[^\\%\\/\\@]",l,a),"g"),NOT_QUERY:new RegExp(t("[^\\%]",l,a,"[\\:\\@\\/\\?]",u),"g"),NOT_FRAGMENT:new RegExp(t("[^\\%]",l,a,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(t("[^]",l,a),"g"),UNRESERVED:new RegExp(l,"g"),OTHER_CHARS:new RegExp(t("[^\\%]",l,c),"g"),PCT_ENCODED:new RegExp(s,"g"),IPV4ADDRESS:new RegExp("^("+p+")$"),IPV6ADDRESS:new RegExp("^\\[?("+w+")"+r(r("\\%25|\\%(?!"+i+"{2})")+"("+S+")")+"?\\]?$")}}var s=i(!1),a=i(!0),c=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,o=!1,i=undefined;try{for(var s,a=e[Symbol.iterator]();!(n=(s=a.next()).done)&&(r.push(s.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(o)throw i}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},u=2147483647,l=36,f=/^xn--/,d=/[^\0-\x7E]/,h=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},m=Math.floor,_=String.fromCharCode;function g(e){throw new RangeError(p[e])}function E(e,t){var r=e.split("@"),n="";r.length>1&&(n=r[0]+"@",e=r[1]);var o=function(e,t){for(var r=[],n=e.length;n--;)r[n]=t(e[n]);return r}((e=e.replace(h,".")).split("."),t).join(".");return n+o}function A(e){for(var t=[],r=0,n=e.length;r<n;){var o=e.charCodeAt(r++);if(o>=55296&&o<=56319&&r<n){var i=e.charCodeAt(r++);56320==(64512&i)?t.push(((1023&o)<<10)+(1023&i)+65536):(t.push(o),r--)}else t.push(o)}return t}var T=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},b=function(e,t,r){var n=0;for(e=r?m(e/700):e>>1,e+=m(e/t);e>455;n+=l)e=m(e/35);return m(n+36*e/(e+38))},y=function(e){var t,r=[],n=e.length,o=0,i=128,s=72,a=e.lastIndexOf("-");a<0&&(a=0);for(var c=0;c<a;++c)e.charCodeAt(c)>=128&&g("not-basic"),r.push(e.charCodeAt(c));for(var f=a>0?a+1:0;f<n;){for(var d=o,h=1,p=l;;p+=l){f>=n&&g("invalid-input");var _=(t=e.charCodeAt(f++))-48<10?t-22:t-65<26?t-65:t-97<26?t-97:l;(_>=l||_>m((u-o)/h))&&g("overflow"),o+=_*h;var E=p<=s?1:p>=s+26?26:p-s;if(_<E)break;var A=l-E;h>m(u/A)&&g("overflow"),h*=A}var T=r.length+1;s=b(o-d,T,0==d),m(o/T)>u-i&&g("overflow"),i+=m(o/T),o%=T,r.splice(o++,0,i)}return String.fromCodePoint.apply(String,r)},v=function(e){var t=[],r=(e=A(e)).length,n=128,o=0,i=72,s=!0,a=!1,c=undefined;try{for(var f,d=e[Symbol.iterator]();!(s=(f=d.next()).done);s=!0){var h=f.value;h<128&&t.push(_(h))}}catch(e){a=!0,c=e}finally{try{!s&&d.return&&d.return()}finally{if(a)throw c}}var p=t.length,E=p;for(p&&t.push("-");E<r;){var y=u,v=!0,I=!1,N=undefined;try{for(var w,S=e[Symbol.iterator]();!(v=(w=S.next()).done);v=!0){var O=w.value;O>=n&&O<y&&(y=O)}}catch(e){I=!0,N=e}finally{try{!v&&S.return&&S.return()}finally{if(I)throw N}}var R=E+1;y-n>m((u-o)/R)&&g("overflow"),o+=(y-n)*R,n=y;var C=!0,M=!1,P=undefined;try{for(var L,k=e[Symbol.iterator]();!(C=(L=k.next()).done);C=!0){var x=L.value;if(x<n&&++o>u&&g("overflow"),x==n){for(var D=o,j=l;;j+=l){var U=j<=i?1:j>=i+26?26:j-i;if(D<U)break;var B=D-U,H=l-U;t.push(_(T(U+B%H,0))),D=m(B/H)}t.push(_(T(D,0))),i=b(o,R,E==p),o=0,++E}}}catch(e){M=!0,P=e}finally{try{!C&&k.return&&k.return()}finally{if(M)throw P}}++o,++n}return t.join("")},I={version:"2.1.0",ucs2:{decode:A,encode:function(e){return String.fromCodePoint.apply(String,function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}(e))}},decode:y,encode:v,toASCII:function(e){return E(e,(function(e){return d.test(e)?"xn--"+v(e):e}))},toUnicode:function(e){return E(e,(function(e){return f.test(e)?y(e.slice(4).toLowerCase()):e}))}},N={};function w(e){var t=e.charCodeAt(0);return t<16?"%0"+t.toString(16).toUpperCase():t<128?"%"+t.toString(16).toUpperCase():t<2048?"%"+(t>>6|192).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase():"%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase()}function S(e){for(var t="",r=0,n=e.length;r<n;){var o=parseInt(e.substr(r+1,2),16);if(o<128)t+=String.fromCharCode(o),r+=3;else if(o>=194&&o<224){if(n-r>=6){var i=parseInt(e.substr(r+4,2),16);t+=String.fromCharCode((31&o)<<6|63&i)}else t+=e.substr(r,6);r+=6}else if(o>=224){if(n-r>=9){var s=parseInt(e.substr(r+4,2),16),a=parseInt(e.substr(r+7,2),16);t+=String.fromCharCode((15&o)<<12|(63&s)<<6|63&a)}else t+=e.substr(r,9);r+=9}else t+=e.substr(r,3),r+=3}return t}function O(e,t){function r(e){var r=S(e);return r.match(t.UNRESERVED)?r:e}return e.scheme&&(e.scheme=String(e.scheme).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_SCHEME,"")),e.userinfo!==undefined&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,r).replace(t.NOT_USERINFO,w).replace(t.PCT_ENCODED,o)),e.host!==undefined&&(e.host=String(e.host).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_HOST,w).replace(t.PCT_ENCODED,o)),e.path!==undefined&&(e.path=String(e.path).replace(t.PCT_ENCODED,r).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,w).replace(t.PCT_ENCODED,o)),e.query!==undefined&&(e.query=String(e.query).replace(t.PCT_ENCODED,r).replace(t.NOT_QUERY,w).replace(t.PCT_ENCODED,o)),e.fragment!==undefined&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,r).replace(t.NOT_FRAGMENT,w).replace(t.PCT_ENCODED,o)),e}function R(e){return e.replace(/^0*(.*)/,"$1")||"0"}function C(e,t){var r=e.match(t.IPV4ADDRESS)||[],n=c(r,2)[1];return n?n.split(".").map(R).join("."):e}function M(e,t){var r=e.match(t.IPV6ADDRESS)||[],n=c(r,3),o=n[1],i=n[2];if(o){for(var s=o.toLowerCase().split("::").reverse(),a=c(s,2),u=a[0],l=a[1],f=l?l.split(":").map(R):[],d=u.split(":").map(R),h=t.IPV4ADDRESS.test(d[d.length-1]),p=h?7:8,m=d.length-p,_=Array(p),g=0;g<p;++g)_[g]=f[g]||d[m+g]||"";h&&(_[p-1]=C(_[p-1],t));var E=_.reduce((function(e,t,r){if(!t||"0"===t){var n=e[e.length-1];n&&n.index+n.length===r?n.length++:e.push({index:r,length:1})}return e}),[]).sort((function(e,t){return t.length-e.length}))[0],A=void 0;if(E&&E.length>1){var T=_.slice(0,E.index),b=_.slice(E.index+E.length);A=T.join(":")+"::"+b.join(":")}else A=_.join(":");return i&&(A+="%"+i),A}return e}var P=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,L="".match(/(){0}/)[1]===undefined;function k(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},r={},n=!1!==t.iri?a:s;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var o=e.match(P);if(o){L?(r.scheme=o[1],r.userinfo=o[3],r.host=o[4],r.port=parseInt(o[5],10),r.path=o[6]||"",r.query=o[7],r.fragment=o[8],isNaN(r.port)&&(r.port=o[5])):(r.scheme=o[1]||undefined,r.userinfo=-1!==e.indexOf("@")?o[3]:undefined,r.host=-1!==e.indexOf("//")?o[4]:undefined,r.port=parseInt(o[5],10),r.path=o[6]||"",r.query=-1!==e.indexOf("?")?o[7]:undefined,r.fragment=-1!==e.indexOf("#")?o[8]:undefined,isNaN(r.port)&&(r.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?o[4]:undefined)),r.host&&(r.host=M(C(r.host,n),n)),r.scheme!==undefined||r.userinfo!==undefined||r.host!==undefined||r.port!==undefined||r.path||r.query!==undefined?r.scheme===undefined?r.reference="relative":r.fragment===undefined?r.reference="absolute":r.reference="uri":r.reference="same-document",t.reference&&"suffix"!==t.reference&&t.reference!==r.reference&&(r.error=r.error||"URI is not a "+t.reference+" reference.");var i=N[(t.scheme||r.scheme||"").toLowerCase()];if(t.unicodeSupport||i&&i.unicodeSupport)O(r,n);else{if(r.host&&(t.domainHost||i&&i.domainHost))try{r.host=I.toASCII(r.host.replace(n.PCT_ENCODED,S).toLowerCase())}catch(e){r.error=r.error||"Host's domain name can not be converted to ASCII via punycode: "+e}O(r,s)}i&&i.parse&&i.parse(r,t)}else r.error=r.error||"URI can not be parsed.";return r}var x=/^\.\.?\//,D=/^\/\.(\/|$)/,j=/^\/\.\.(\/|$)/,U=/^\/?(?:.|\n)*?(?=\/|$)/;function B(e){for(var t=[];e.length;)if(e.match(x))e=e.replace(x,"");else if(e.match(D))e=e.replace(D,"/");else if(e.match(j))e=e.replace(j,"/"),t.pop();else if("."===e||".."===e)e="";else{var r=e.match(U);if(!r)throw new Error("Unexpected dot segment condition");var n=r[0];e=e.slice(n.length),t.push(n)}return t.join("")}function H(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},r=t.iri?a:s,n=[],o=N[(t.scheme||e.scheme||"").toLowerCase()];if(o&&o.serialize&&o.serialize(e,t),e.host)if(r.IPV6ADDRESS.test(e.host));else if(t.domainHost||o&&o.domainHost)try{e.host=t.iri?I.toUnicode(e.host):I.toASCII(e.host.replace(r.PCT_ENCODED,S).toLowerCase())}catch(r){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+r}O(e,r),"suffix"!==t.reference&&e.scheme&&(n.push(e.scheme),n.push(":"));var i=function(e,t){var r=!1!==t.iri?a:s,n=[];return e.userinfo!==undefined&&(n.push(e.userinfo),n.push("@")),e.host!==undefined&&n.push(M(C(String(e.host),r),r).replace(r.IPV6ADDRESS,(function(e,t,r){return"["+t+(r?"%25"+r:"")+"]"}))),"number"!=typeof e.port&&"string"!=typeof e.port||(n.push(":"),n.push(String(e.port))),n.length?n.join(""):undefined}(e,t);if(i!==undefined&&("suffix"!==t.reference&&n.push("//"),n.push(i),e.path&&"/"!==e.path.charAt(0)&&n.push("/")),e.path!==undefined){var c=e.path;t.absolutePath||o&&o.absolutePath||(c=B(c)),i===undefined&&(c=c.replace(/^\/\//,"/%2F")),n.push(c)}return e.query!==undefined&&(n.push("?"),n.push(e.query)),e.fragment!==undefined&&(n.push("#"),n.push(e.fragment)),n.join("")}function F(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{},n={};return arguments[3]||(e=k(H(e,r),r),t=k(H(t,r),r)),!(r=r||{}).tolerant&&t.scheme?(n.scheme=t.scheme,n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=B(t.path||""),n.query=t.query):(t.userinfo!==undefined||t.host!==undefined||t.port!==undefined?(n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=B(t.path||""),n.query=t.query):(t.path?("/"===t.path.charAt(0)?n.path=B(t.path):(e.userinfo===undefined&&e.host===undefined&&e.port===undefined||e.path?e.path?n.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:n.path=t.path:n.path="/"+t.path,n.path=B(n.path)),n.query=t.query):(n.path=e.path,t.query!==undefined?n.query=t.query:n.query=e.query),n.userinfo=e.userinfo,n.host=e.host,n.port=e.port),n.scheme=e.scheme),n.fragment=t.fragment,n}function G(e,t){return e&&e.toString().replace(t&&t.iri?a.PCT_ENCODED:s.PCT_ENCODED,S)}var K={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){var r="https"===String(e.scheme).toLowerCase();return e.port!==(r?443:80)&&""!==e.port||(e.port=undefined),e.path||(e.path="/"),e}},$={scheme:"https",domainHost:K.domainHost,parse:K.parse,serialize:K.serialize};function W(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}var V={scheme:"ws",domainHost:!0,parse:function(e,t){var r=e;return r.secure=W(r),r.resourceName=(r.path||"/")+(r.query?"?"+r.query:""),r.path=undefined,r.query=undefined,r},serialize:function(e,t){if(e.port!==(W(e)?443:80)&&""!==e.port||(e.port=undefined),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=undefined),e.resourceName){var r=e.resourceName.split("?"),n=c(r,2),o=n[0],i=n[1];e.path=o&&"/"!==o?o:undefined,e.query=i,e.resourceName=undefined}return e.fragment=undefined,e}},Y={scheme:"wss",domainHost:V.domainHost,parse:V.parse,serialize:V.serialize},q={},z="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",X="[0-9A-Fa-f]",Z=r(r("%[EFef]"+X+"%"+X+X+"%"+X+X)+"|"+r("%[89A-Fa-f]"+X+"%"+X+X)+"|"+r("%"+X+X)),J=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),Q=new RegExp(z,"g"),ee=new RegExp(Z,"g"),te=new RegExp(t("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',J),"g"),re=new RegExp(t("[^]",z,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),ne=re;function oe(e){var t=S(e);return t.match(Q)?t:e}var ie={scheme:"mailto",parse:function(e,t){var r=e,n=r.to=r.path?r.path.split(","):[];if(r.path=undefined,r.query){for(var o=!1,i={},s=r.query.split("&"),a=0,c=s.length;a<c;++a){var u=s[a].split("=");switch(u[0]){case"to":for(var l=u[1].split(","),f=0,d=l.length;f<d;++f)n.push(l[f]);break;case"subject":r.subject=G(u[1],t);break;case"body":r.body=G(u[1],t);break;default:o=!0,i[G(u[0],t)]=G(u[1],t)}}o&&(r.headers=i)}r.query=undefined;for(var h=0,p=n.length;h<p;++h){var m=n[h].split("@");if(m[0]=G(m[0]),t.unicodeSupport)m[1]=G(m[1],t).toLowerCase();else try{m[1]=I.toASCII(G(m[1],t).toLowerCase())}catch(e){r.error=r.error||"Email address's domain name can not be converted to ASCII via punycode: "+e}n[h]=m.join("@")}return r},serialize:function(e,t){var r,n=e,i=(r=e.to)!==undefined&&null!==r?r instanceof Array?r:"number"!=typeof r.length||r.split||r.setInterval||r.call?[r]:Array.prototype.slice.call(r):[];if(i){for(var s=0,a=i.length;s<a;++s){var c=String(i[s]),u=c.lastIndexOf("@"),l=c.slice(0,u).replace(ee,oe).replace(ee,o).replace(te,w),f=c.slice(u+1);try{f=t.iri?I.toUnicode(f):I.toASCII(G(f,t).toLowerCase())}catch(e){n.error=n.error||"Email address's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+e}i[s]=l+"@"+f}n.path=i.join(",")}var d=e.headers=e.headers||{};e.subject&&(d.subject=e.subject),e.body&&(d.body=e.body);var h=[];for(var p in d)d[p]!==q[p]&&h.push(p.replace(ee,oe).replace(ee,o).replace(re,w)+"="+d[p].replace(ee,oe).replace(ee,o).replace(ne,w));return h.length&&(n.query=h.join("&")),n}},se=/^([^\:]+)\:(.*)/,ae={scheme:"urn",parse:function(e,t){var r=e.path&&e.path.match(se),n=e;if(r){var o=t.scheme||n.scheme||"urn",i=r[1].toLowerCase(),s=r[2],a=o+":"+(t.nid||i),c=N[a];n.nid=i,n.nss=s,n.path=undefined,c&&(n=c.parse(n,t))}else n.error=n.error||"URN can not be parsed.";return n},serialize:function(e,t){var r=t.scheme||e.scheme||"urn",n=e.nid,o=r+":"+(t.nid||n),i=N[o];i&&(e=i.serialize(e,t));var s=e,a=e.nss;return s.path=(n||t.nid)+":"+a,s}},ce=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,ue={scheme:"urn:uuid",parse:function(e,t){var r=e;return r.uuid=r.nss,r.nss=undefined,t.tolerant||r.uuid&&r.uuid.match(ce)||(r.error=r.error||"UUID is not valid."),r},serialize:function(e,t){var r=e;return r.nss=(e.uuid||"").toLowerCase(),r}};N[K.scheme]=K,N[$.scheme]=$,N[V.scheme]=V,N[Y.scheme]=Y,N[ie.scheme]=ie,N[ae.scheme]=ae,N[ue.scheme]=ue,e.SCHEMES=N,e.pctEncChar=w,e.pctDecChars=S,e.parse=k,e.removeDotSegments=B,e.serialize=H,e.resolveComponents=F,e.resolve=function(e,t,r){var n=function(e,t){var r=e;if(t)for(var n in t)r[n]=t[n];return r}({scheme:"null"},r);return H(F(k(e,n),k(t,n),n,!0),n)},e.normalize=function(e,t){return"string"==typeof e?e=H(k(e,t),t):"object"===n(e)&&(e=k(H(e,t),t)),e},e.equal=function(e,t,r){return"string"==typeof e?e=H(k(e,r),r):"object"===n(e)&&(e=H(e,r)),"string"==typeof t?t=H(k(t,r),r):"object"===n(t)&&(t=H(t,r)),e===t},e.escapeComponent=function(e,t){return e&&e.toString().replace(t&&t.iri?a.ESCAPE:s.ESCAPE,w)},e.unescapeComponent=G,Object.defineProperty(e,"__esModule",{value:!0})}))}}},{package:"uri-js",file:"node_modules/uri-js/dist/es5/uri.all.js"}],[5639,{punycode:4075,qs:5075},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("punycode");function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var i=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,a=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(c),l=["%","/","?",";","#"].concat(u),f=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,p={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},_={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},g=e("qs");function E(e,t,r){if(e&&"object"==typeof e&&e instanceof o)return e;var n=new o;return n.parse(e,t,r),n}o.prototype.parse=function(e,t,r){if("string"!=typeof e)throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),s=-1!==o&&o<e.indexOf("#")?"?":"#",c=e.split(s);c[0]=c[0].replace(/\\/g,"/");var E=e=c.join(s);if(E=E.trim(),!r&&1===e.split("#").length){var A=a.exec(E);if(A)return this.path=E,this.href=E,this.pathname=A[1],A[2]?(this.search=A[2],this.query=t?g.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var T=i.exec(E);if(T){var b=(T=T[0]).toLowerCase();this.protocol=b,E=E.substr(T.length)}if(r||T||E.match(/^\/\/[^@/]+@[^@/]+/)){var y="//"===E.substr(0,2);!y||T&&m[T]||(E=E.substr(2),this.slashes=!0)}if(!m[T]&&(y||T&&!_[T])){for(var v,I,N=-1,w=0;w<f.length;w++){-1!==(S=E.indexOf(f[w]))&&(-1===N||S<N)&&(N=S)}-1!==(I=-1===N?E.lastIndexOf("@"):E.lastIndexOf("@",N))&&(v=E.slice(0,I),E=E.slice(I+1),this.auth=decodeURIComponent(v)),N=-1;for(w=0;w<l.length;w++){var S;-1!==(S=E.indexOf(l[w]))&&(-1===N||S<N)&&(N=S)}-1===N&&(N=E.length),this.host=E.slice(0,N),E=E.slice(N),this.parseHost(),this.hostname=this.hostname||"";var O="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!O)for(var R=this.hostname.split(/\./),C=(w=0,R.length);w<C;w++){var M=R[w];if(M&&!M.match(d)){for(var P="",L=0,k=M.length;L<k;L++)M.charCodeAt(L)>127?P+="x":P+=M[L];if(!P.match(d)){var x=R.slice(0,w),D=R.slice(w+1),j=M.match(h);j&&(x.push(j[1]),D.unshift(j[2])),D.length&&(E="/"+D.join(".")+E),this.hostname=x.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),O||(this.hostname=n.toASCII(this.hostname));var U=this.port?":"+this.port:"",B=this.hostname||"";this.host=B+U,this.href+=this.host,O&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==E[0]&&(E="/"+E))}if(!p[b])for(w=0,C=u.length;w<C;w++){var H=u[w];if(-1!==E.indexOf(H)){var F=encodeURIComponent(H);F===H&&(F=escape(H)),E=E.split(H).join(F)}}var G=E.indexOf("#");-1!==G&&(this.hash=E.substr(G),E=E.slice(0,G));var K=E.indexOf("?");if(-1!==K?(this.search=E.substr(K),this.query=E.substr(K+1),t&&(this.query=g.parse(this.query)),E=E.slice(0,K)):t&&(this.search="",this.query={}),E&&(this.pathname=E),_[b]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){U=this.pathname||"";var $=this.search||"";this.path=U+$}return this.href=this.format(),this},o.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",o=!1,i="";this.host?o=e+this.host:this.hostname&&(o=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&"object"==typeof this.query&&Object.keys(this.query).length&&(i=g.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var s=this.search||i&&"?"+i||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||_[t])&&!1!==o?(o="//"+(o||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):o||(o=""),n&&"#"!==n.charAt(0)&&(n="#"+n),s&&"?"!==s.charAt(0)&&(s="?"+s),t+o+(r=r.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(s=s.replace("#","%23"))+n},o.prototype.resolve=function(e){return this.resolveObject(E(e,!1,!0)).format()},o.prototype.resolveObject=function(e){if("string"==typeof e){var t=new o;t.parse(e,!1,!0),e=t}for(var r=new o,n=Object.keys(this),i=0;i<n.length;i++){var s=n[i];r[s]=this[s]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var a=Object.keys(e),c=0;c<a.length;c++){var u=a[c];"protocol"!==u&&(r[u]=e[u])}return _[r.protocol]&&r.hostname&&!r.pathname&&(r.pathname="/",r.path=r.pathname),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!_[e.protocol]){for(var l=Object.keys(e),f=0;f<l.length;f++){var d=l[f];r[d]=e[d]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||m[e.protocol])r.pathname=e.pathname;else{for(var h=(e.pathname||"").split("/");h.length&&!(e.host=h.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==h[0]&&h.unshift(""),h.length<2&&h.unshift(""),r.pathname=h.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var p=r.pathname||"",g=r.search||"";r.path=p+g}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var E=r.pathname&&"/"===r.pathname.charAt(0),A=e.host||e.pathname&&"/"===e.pathname.charAt(0),T=A||E||r.host&&e.pathname,b=T,y=r.pathname&&r.pathname.split("/")||[],v=(h=e.pathname&&e.pathname.split("/")||[],r.protocol&&!_[r.protocol]);if(v&&(r.hostname="",r.port=null,r.host&&(""===y[0]?y[0]=r.host:y.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===h[0]?h[0]=e.host:h.unshift(e.host)),e.host=null),T=T&&(""===h[0]||""===y[0])),A)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,y=h;else if(h.length)y||(y=[]),y.pop(),y=y.concat(h),r.search=e.search,r.query=e.query;else if(null!=e.search){if(v)r.host=y.shift(),r.hostname=r.host,(O=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=O.shift(),r.hostname=O.shift(),r.host=r.hostname);return r.search=e.search,r.query=e.query,null===r.pathname&&null===r.search||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!y.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var I=y.slice(-1)[0],N=(r.host||e.host||y.length>1)&&("."===I||".."===I)||""===I,w=0,S=y.length;S>=0;S--)"."===(I=y[S])?y.splice(S,1):".."===I?(y.splice(S,1),w++):w&&(y.splice(S,1),w--);if(!T&&!b)for(;w--;w)y.unshift("..");!T||""===y[0]||y[0]&&"/"===y[0].charAt(0)||y.unshift(""),N&&"/"!==y.join("/").substr(-1)&&y.push("");var O,R=""===y[0]||y[0]&&"/"===y[0].charAt(0);v&&(r.hostname=R?"":y.length?y.shift():"",r.host=r.hostname,(O=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=O.shift(),r.hostname=O.shift(),r.host=r.hostname));return(T=T||r.host&&y.length)&&!R&&y.unshift(""),y.length>0?r.pathname=y.join("/"):(r.pathname=null,r.path=null),null===r.pathname&&null===r.search||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},o.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},r.parse=E,r.resolve=function(e,t){return E(e,!1,!0).resolve(t)},r.resolveObject=function(e,t){return e?E(e,!1,!0).resolveObject(t):t},r.format=function(e){return"string"==typeof e&&(e=E(e)),e instanceof o?e.format():o.prototype.format.call(e)},r.Url=o}}},{package:"browserify>url",file:"node_modules/url/url.js"}],[564,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.SupportedAlgorithm=void 0,function(e){e.sha256="sha256",e.sha512="sha512"}(r.SupportedAlgorithm||(r.SupportedAlgorithm={}))}}},{package:"ethers>@ethersproject/sha2",file:"node_modules/@ethersproject/sha2/lib/types.js"}],[5640,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.assignRef=void 0,r.assignRef=function(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}}}},{package:"react-focus-lock>use-callback-ref",file:"node_modules/use-callback-ref/dist/es5/assignRef.js"}],[5641,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.createCallbackRef=void 0,r.createCallbackRef=function(e){var t=null;return{get current(){return t},set current(r){var n=t;n!==r&&(t=r,e(r,n))}}}}}},{package:"react-focus-lock>use-callback-ref",file:"node_modules/use-callback-ref/dist/es5/createRef.js"}],[5642,{"./assignRef":5640,"./createRef":5641,"./mergeRef":5643,"./refToCallback":5644,"./transformRef":5645,"./useMergeRef":5646,"./useRef":5647,"./useTransformRef":5648},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.useRefToCallback=r.refToCallback=r.transformRef=r.useTransformRef=r.useMergeRefs=r.mergeRefs=r.createCallbackRef=r.useCallbackRef=r.assignRef=void 0;var n=e("./assignRef");Object.defineProperty(r,"assignRef",{enumerable:!0,get:function(){return n.assignRef}});var o=e("./useRef");Object.defineProperty(r,"useCallbackRef",{enumerable:!0,get:function(){return o.useCallbackRef}});var i=e("./createRef");Object.defineProperty(r,"createCallbackRef",{enumerable:!0,get:function(){return i.createCallbackRef}});var s=e("./mergeRef");Object.defineProperty(r,"mergeRefs",{enumerable:!0,get:function(){return s.mergeRefs}});var a=e("./useMergeRef");Object.defineProperty(r,"useMergeRefs",{enumerable:!0,get:function(){return a.useMergeRefs}});var c=e("./useTransformRef");Object.defineProperty(r,"useTransformRef",{enumerable:!0,get:function(){return c.useTransformRef}});var u=e("./transformRef");Object.defineProperty(r,"transformRef",{enumerable:!0,get:function(){return u.transformRef}});var l=e("./refToCallback");Object.defineProperty(r,"refToCallback",{enumerable:!0,get:function(){return l.refToCallback}}),Object.defineProperty(r,"useRefToCallback",{enumerable:!0,get:function(){return l.useRefToCallback}})}}},{package:"react-focus-lock>use-callback-ref",file:"node_modules/use-callback-ref/dist/es5/index.js"}],[5643,{"./assignRef":5640,"./createRef":5641},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.mergeRefs=void 0;var n=e("./assignRef"),o=e("./createRef");r.mergeRefs=function(e){return(0,o.createCallbackRef)((function(t){return e.forEach((function(e){return(0,n.assignRef)(e,t)}))}))}}}},{package:"react-focus-lock>use-callback-ref",file:"node_modules/use-callback-ref/dist/es5/mergeRef.js"}],[5644,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){function n(e){return function(t){"function"==typeof e?e(t):e&&(e.current=t)}}Object.defineProperty(r,"__esModule",{value:!0}),r.useRefToCallback=r.refToCallback=void 0,r.refToCallback=n;var o=function(){return null},i=new WeakMap;r.useRefToCallback=function(e){return function(e){var t=e||o,r=i.get(t);if(r)return r;var s=n(t);return i.set(t,s),s}(e)}}}},{package:"react-focus-lock>use-callback-ref",file:"node_modules/use-callback-ref/dist/es5/refToCallback.js"}],[5645,{"./assignRef":5640,"./createRef":5641},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.transformRef=void 0;var n=e("./assignRef"),o=e("./createRef");r.transformRef=function(e,t){return(0,o.createCallbackRef)((function(r){return(0,n.assignRef)(e,t(r))}))}}}},{package:"react-focus-lock>use-callback-ref",file:"node_modules/use-callback-ref/dist/es5/transformRef.js"}],[5646,{"./assignRef":5640,"./useRef":5647},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.useMergeRefs=void 0;var n=e("./assignRef"),o=e("./useRef");r.useMergeRefs=function(e,t){return(0,o.useCallbackRef)(t||null,(function(t){return e.forEach((function(e){return(0,n.assignRef)(e,t)}))}))}}}},{package:"react-focus-lock>use-callback-ref",file:"node_modules/use-callback-ref/dist/es5/useMergeRef.js"}],[5647,{react:5259},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.useCallbackRef=void 0;var n=e("react");r.useCallbackRef=function(e,t){var r=(0,n.useState)((function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(e){var t=r.value;t!==e&&(r.value=e,r.callback(e,t))}}}}))[0];return r.callback=t,r.facade}}}},{package:"react-focus-lock>use-callback-ref",file:"node_modules/use-callback-ref/dist/es5/useRef.js"}],[5648,{"./assignRef":5640,"./useRef":5647},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.useTransformRef=void 0;var n=e("./assignRef"),o=e("./useRef");r.useTransformRef=function(e,t){return(0,o.useCallbackRef)(null,(function(r){return(0,n.assignRef)(e,t(r))}))}}}},{package:"react-focus-lock>use-callback-ref",file:"node_modules/use-callback-ref/dist/es5/useTransformRef.js"}],[565,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.version=void 0,r.version="signing-key/5.7.0"}}},{package:"ethers>@ethersproject/signing-key",file:"node_modules/@ethersproject/signing-key/lib/_version.js"}],[5650,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.setConfig=r.config=void 0,r.config={onError:function(e){return console.error(e)}};r.setConfig=function(e){Object.assign(r.config,e)}}}},{package:"react-focus-lock>use-sidecar",file:"node_modules/use-sidecar/dist/es5/config.js"}],[5651,{"detect-node-es":4238},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.env=void 0;var n=e("detect-node-es");r.env={isNode:n.isNode,forceCache:!1}}}},{package:"react-focus-lock>use-sidecar",file:"node_modules/use-sidecar/dist/es5/env.js"}],[5652,{react:5259,tslib:5615},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.exportSidecar=void 0;var n=e("tslib"),o=n.__importStar(e("react")),i=function(e){var t=e.sideCar,r=n.__rest(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return o.createElement(i,n.__assign({},r))};i.isSideCarExport=!0,r.exportSidecar=function(e,t){return e.useMedium(t),i}}}},{package:"react-focus-lock>use-sidecar",file:"node_modules/use-sidecar/dist/es5/exports.js"}],[5653,{"./hook":5654,react:5259,tslib:5615},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.sidecar=void 0;var n=e("tslib"),o=n.__importStar(e("react")),i=e("./hook");r.sidecar=function(e,t){var r=function(){return t};return function(s){var a=(0,i.useSidecar)(e,s.sideCar),c=a[0];return a[1]&&t?r:c?o.createElement(c,n.__assign({},s)):null}}}}},{package:"react-focus-lock>use-sidecar",file:"node_modules/use-sidecar/dist/es5/hoc.js"}],[5654,{"./env":5651,react:5259},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.useSidecar=void 0;var n=e("react"),o=e("./env"),i=new WeakMap,s={};r.useSidecar=function(e,t){var r=t&&t.options||s;return o.env.isNode&&!r.ssr?[null,null]:function(e,t){var r=t&&t.options||s,a=o.env.forceCache||o.env.isNode&&!!r.ssr||!r.async,c=(0,n.useState)(a?function(){return i.get(e)}:undefined),u=c[0],l=c[1],f=(0,n.useState)(null),d=f[0],h=f[1];return(0,n.useEffect)((function(){u||e().then((function(r){var n,o=t?t.read():r.default||r;if(!o)throw console.error("Sidecar error: with importer",e),t?(console.error("Sidecar error: with medium",t),n=new Error("Sidecar medium was not found")):n=new Error("Sidecar was not found in exports"),h((function(){return n})),n;i.set(e,o),l((function(){return o}))}),(function(e){return h((function(){return e}))}))}),[]),[u,d]}(e,t)}}}},{package:"react-focus-lock>use-sidecar",file:"node_modules/use-sidecar/dist/es5/hook.js"}],[5655,{"./config":5650,"./exports":5652,"./hoc":5653,"./hook":5654,"./medium":5656,"./renderProp":5657},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.exportSidecar=r.renderCar=r.createSidecarMedium=r.createMedium=r.setConfig=r.useSidecar=r.sidecar=void 0;var n=e("./hoc");Object.defineProperty(r,"sidecar",{enumerable:!0,get:function(){return n.sidecar}});var o=e("./hook");Object.defineProperty(r,"useSidecar",{enumerable:!0,get:function(){return o.useSidecar}});var i=e("./config");Object.defineProperty(r,"setConfig",{enumerable:!0,get:function(){return i.setConfig}});var s=e("./medium");Object.defineProperty(r,"createMedium",{enumerable:!0,get:function(){return s.createMedium}}),Object.defineProperty(r,"createSidecarMedium",{enumerable:!0,get:function(){return s.createSidecarMedium}});var a=e("./renderProp");Object.defineProperty(r,"renderCar",{enumerable:!0,get:function(){return a.renderCar}});var c=e("./exports");Object.defineProperty(r,"exportSidecar",{enumerable:!0,get:function(){return c.exportSidecar}})}}},{package:"react-focus-lock>use-sidecar",file:"node_modules/use-sidecar/dist/es5/index.js"}],[5656,{tslib:5615},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.createSidecarMedium=r.createMedium=void 0;var n=e("tslib");function o(e){return e}function i(e,t){void 0===t&&(t=o);var r=[],n=!1;return{read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(e){var o=t(e,n);return r.push(o),function(){r=r.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(n=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){n=!0;var t=[];if(r.length){var o=r;r=[],o.forEach(e),t=r}var i=function(){var r=t;t=[],r.forEach(e)},s=function(){return Promise.resolve().then(i)};s(),r={push:function(e){t.push(e),s()},filter:function(e){return t=t.filter(e),r}}}}}r.createMedium=function(e,t){return void 0===t&&(t=o),i(e,t)},r.createSidecarMedium=function(e){void 0===e&&(e={});var t=i(null);return t.options=n.__assign({async:!0,ssr:!1},e),t}}}},{package:"react-focus-lock>use-sidecar",file:"node_modules/use-sidecar/dist/es5/medium.js"}],[5657,{react:5259,tslib:5615},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.renderCar=void 0;var n=e("tslib"),o=n.__importStar(e("react")),i=e("react");r.renderCar=function(e,t){function r(t){var r=t.stateRef,s=t.props,a=(0,i.useCallback)((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,i.useLayoutEffect)((function(){r.current(e)})),null}),[]);return o.createElement(e,n.__assign({},s,{children:a}))}var s=o.memo((function(e){var t=e.stateRef,r=e.defaultState,n=e.children,o=(0,i.useState)(r.current),s=o[0],a=o[1];return(0,i.useEffect)((function(){t.current=a}),[]),n.apply(void 0,s)}),(function(){return!0}));return function(e){var n=o.useRef(t(e)),i=o.useRef((function(e){return n.current=e}));return o.createElement(o.Fragment,null,o.createElement(r,{stateRef:i,props:e}),o.createElement(s,{stateRef:i,defaultState:n,children:e.children}))}}}}},{package:"react-focus-lock>use-sidecar",file:"node_modules/use-sidecar/dist/es5/renderProp.js"}],[5658,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){!function(e){var t,r,n,o=String.fromCharCode;function i(e){for(var t,r,n=[],o=0,i=e.length;o<i;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<i?56320==(64512&(r=e.charCodeAt(o++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),o--):n.push(t);return n}function s(e){if(e>=55296&&e<=57343)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value")}function a(e,t){return o(e>>t&63|128)}function c(e){if(!(4294967168&e))return o(e);var t="";return 4294965248&e?4294901760&e?4292870144&e||(t=o(e>>18&7|240),t+=a(e,12),t+=a(e,6)):(s(e),t=o(e>>12&15|224),t+=a(e,6)):t=o(e>>6&31|192),t+=o(63&e|128)}function u(){if(n>=r)throw Error("Invalid byte index");var e=255&t[n];if(n++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}function l(){var e,o;if(n>r)throw Error("Invalid byte index");if(n==r)return!1;if(e=255&t[n],n++,!(128&e))return e;if(192==(224&e)){if((o=(31&e)<<6|u())>=128)return o;throw Error("Invalid continuation byte")}if(224==(240&e)){if((o=(15&e)<<12|u()<<6|u())>=2048)return s(o),o;throw Error("Invalid continuation byte")}if(240==(248&e)&&(o=(7&e)<<18|u()<<12|u()<<6|u())>=65536&&o<=1114111)return o;throw Error("Invalid UTF-8 detected")}e.version="3.0.0",e.encode=function(e){for(var t=i(e),r=t.length,n=-1,o="";++n<r;)o+=c(t[n]);return o},e.decode=function(e){t=i(e),r=t.length,n=0;for(var s,a=[];!1!==(s=l());)a.push(s);return function(e){for(var t,r=e.length,n=-1,i="";++n<r;)(t=e[n])>65535&&(i+=o((t-=65536)>>>10&1023|55296),t=56320|1023&t),i+=o(t);return i}(a)}}(void 0===r?this.utf8={}:r)}}},{package:"@metamask/keyring-controller>ethereumjs-wallet>utf8",file:"node_modules/utf8/utf8.js"}],[5659,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){function n(e){try{if(!global.localStorage)return!1}catch(e){return!1}var t=global.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}t.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}}}},{package:"readable-stream>util-deprecate",file:"node_modules/util-deprecate/browser.js"}],[566,{elliptic:4248},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.EC=void 0;var o=n(e("elliptic")).default.ec;r.EC=o}}},{package:"ethers>@ethersproject/signing-key",file:"node_modules/@ethersproject/signing-key/lib/elliptic.js"}],[5660,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}}}},{package:"browserify>util",file:"node_modules/util/support/isBufferBrowser.js"}],[5661,{"is-arguments":4653,"is-generator-function":4661,"is-typed-array":4674,"which-typed-array":5700},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("is-arguments"),o=e("is-generator-function"),i=e("which-typed-array"),s=e("is-typed-array");function a(e){return e.call.bind(e)}var c="undefined"!=typeof BigInt,u="undefined"!=typeof Symbol,l=a(Object.prototype.toString),f=a(Number.prototype.valueOf),d=a(String.prototype.valueOf),h=a(Boolean.prototype.valueOf);if(c)var p=a(BigInt.prototype.valueOf);if(u)var m=a(Symbol.prototype.valueOf);function _(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function g(e){return"[object Map]"===l(e)}function E(e){return"[object Set]"===l(e)}function A(e){return"[object WeakMap]"===l(e)}function T(e){return"[object WeakSet]"===l(e)}function b(e){return"[object ArrayBuffer]"===l(e)}function y(e){return"undefined"!=typeof ArrayBuffer&&(b.working?b(e):e instanceof ArrayBuffer)}function v(e){return"[object DataView]"===l(e)}function I(e){return"undefined"!=typeof DataView&&(v.working?v(e):e instanceof DataView)}r.isArgumentsObject=n,r.isGeneratorFunction=o,r.isTypedArray=s,r.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},r.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):s(e)||I(e)},r.isUint8Array=function(e){return"Uint8Array"===i(e)},r.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===i(e)},r.isUint16Array=function(e){return"Uint16Array"===i(e)},r.isUint32Array=function(e){return"Uint32Array"===i(e)},r.isInt8Array=function(e){return"Int8Array"===i(e)},r.isInt16Array=function(e){return"Int16Array"===i(e)},r.isInt32Array=function(e){return"Int32Array"===i(e)},r.isFloat32Array=function(e){return"Float32Array"===i(e)},r.isFloat64Array=function(e){return"Float64Array"===i(e)},r.isBigInt64Array=function(e){return"BigInt64Array"===i(e)},r.isBigUint64Array=function(e){return"BigUint64Array"===i(e)},g.working="undefined"!=typeof Map&&g(new Map),r.isMap=function(e){return"undefined"!=typeof Map&&(g.working?g(e):e instanceof Map)},E.working="undefined"!=typeof Set&&E(new Set),r.isSet=function(e){return"undefined"!=typeof Set&&(E.working?E(e):e instanceof Set)},A.working="undefined"!=typeof WeakMap&&A(new WeakMap),r.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(A.working?A(e):e instanceof WeakMap)},T.working="undefined"!=typeof WeakSet&&T(new WeakSet),r.isWeakSet=function(e){return T(e)},b.working="undefined"!=typeof ArrayBuffer&&b(new ArrayBuffer),r.isArrayBuffer=y,v.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&v(new DataView(new ArrayBuffer(1),0,1)),r.isDataView=I;var N="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:undefined;function w(e){return"[object SharedArrayBuffer]"===l(e)}function S(e){return void 0!==N&&(void 0===w.working&&(w.working=w(new N)),w.working?w(e):e instanceof N)}function O(e){return _(e,f)}function R(e){return _(e,d)}function C(e){return _(e,h)}function M(e){return c&&_(e,p)}function P(e){return u&&_(e,m)}r.isSharedArrayBuffer=S,r.isAsyncFunction=function(e){return"[object AsyncFunction]"===l(e)},r.isMapIterator=function(e){return"[object Map Iterator]"===l(e)},r.isSetIterator=function(e){return"[object Set Iterator]"===l(e)},r.isGeneratorObject=function(e){return"[object Generator]"===l(e)},r.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===l(e)},r.isNumberObject=O,r.isStringObject=R,r.isBooleanObject=C,r.isBigIntObject=M,r.isSymbolObject=P,r.isBoxedPrimitive=function(e){return O(e)||R(e)||C(e)||M(e)||P(e)},r.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(y(e)||S(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(r,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))}}},{package:"browserify>util",file:"node_modules/util/support/types.js"}],[5662,{"./support/isBuffer":5660,"./support/types":5661,_process:5008,inherits:4650},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t){(function(){var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},o=/%[sdj%]/g;r.format=function(e){if(!g(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(a(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,i=n.length,s=String(e).replace(o,(function(e){if("%%"===e)return"%";if(r>=i)return e;switch(e){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 e}})),c=n[r];r<i;c=n[++r])m(c)||!T(c)?s+=" "+c:s+=" "+a(c);return s},r.deprecate=function(e,n){if(void 0!==t&&!0===t.noDeprecation)return e;if(void 0===t)return function(){return r.deprecate(e,n).apply(this,arguments)};var o=!1;return function(){if(!o){if(t.throwDeprecation)throw new Error(n);t.traceDeprecation?console.trace(n):console.error(n),o=!0}return e.apply(this,arguments)}};var i={},s=/^$/;function a(e,t){var n={seen:[],stylize:u};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),p(t)?n.showHidden=t:t&&r._extend(n,t),E(n.showHidden)&&(n.showHidden=!1),E(n.depth)&&(n.depth=2),E(n.colors)&&(n.colors=!1),E(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=c),l(n,e,n.depth)}function c(e,t){var r=a.styles[t];return r?"["+a.colors[r][0]+"m"+e+"["+a.colors[r][1]+"m":e}function u(e,t){return e}function l(e,t,n){if(e.customInspect&&t&&v(t.inspect)&&t.inspect!==r.inspect&&(!t.constructor||t.constructor.prototype!==t)){var o=t.inspect(n,e);return g(o)||(o=l(e,o,n)),o}var i=function(e,t){if(E(t))return e.stylize("undefined","undefined");if(g(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(_(t))return e.stylize(""+t,"number");if(p(t))return e.stylize(""+t,"boolean");if(m(t))return e.stylize("null","null")}(e,t);if(i)return i;var s=Object.keys(t),a=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(t)),y(t)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return f(t);if(0===s.length){if(v(t)){var c=t.name?": "+t.name:"";return e.stylize("[Function"+c+"]","special")}if(A(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(b(t))return e.stylize(Date.prototype.toString.call(t),"date");if(y(t))return f(t)}var u,T="",I=!1,N=["{","}"];(h(t)&&(I=!0,N=["[","]"]),v(t))&&(T=" [Function"+(t.name?": "+t.name:"")+"]");return A(t)&&(T=" "+RegExp.prototype.toString.call(t)),b(t)&&(T=" "+Date.prototype.toUTCString.call(t)),y(t)&&(T=" "+f(t)),0!==s.length||I&&0!=t.length?n<0?A(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),u=I?function(e,t,r,n,o){for(var i=[],s=0,a=t.length;s<a;++s)S(t,String(s))?i.push(d(e,t,r,n,String(s),!0)):i.push("");return o.forEach((function(o){o.match(/^\d+$/)||i.push(d(e,t,r,n,o,!0))})),i}(e,t,n,a,s):s.map((function(r){return d(e,t,n,a,r,I)})),e.seen.pop(),function(e,t,r){var n=e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);if(n>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(u,T,N)):N[0]+T+N[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,r,n,o,i){var s,a,c;if((c=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?a=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(a=e.stylize("[Setter]","special")),S(n,o)||(s="["+o+"]"),a||(e.seen.indexOf(c.value)<0?(a=m(r)?l(e,c.value,null):l(e,c.value,r-1)).indexOf("\n")>-1&&(a=i?a.split("\n").map((function(e){return" "+e})).join("\n").slice(2):"\n"+a.split("\n").map((function(e){return" "+e})).join("\n")):a=e.stylize("[Circular]","special")),E(s)){if(i&&o.match(/^\d+$/))return a;(s=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.slice(1,-1),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function h(e){return Array.isArray(e)}function p(e){return"boolean"==typeof e}function m(e){return null===e}function _(e){return"number"==typeof e}function g(e){return"string"==typeof e}function E(e){return void 0===e}function A(e){return T(e)&&"[object RegExp]"===I(e)}function T(e){return"object"==typeof e&&null!==e}function b(e){return T(e)&&"[object Date]"===I(e)}function y(e){return T(e)&&("[object Error]"===I(e)||e instanceof Error)}function v(e){return"function"==typeof e}function I(e){return Object.prototype.toString.call(e)}function N(e){return e<10?"0"+e.toString(10):e.toString(10)}r.debuglog=function(e){if(e=e.toUpperCase(),!i[e])if(s.test(e)){var n=t.pid;i[e]=function(){var t=r.format.apply(r,arguments);console.error("%s %d: %s",e,n,t)}}else i[e]=function(){};return i[e]},r.inspect=a,a.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]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},r.types=e("./support/types"),r.isArray=h,r.isBoolean=p,r.isNull=m,r.isNullOrUndefined=function(e){return null==e},r.isNumber=_,r.isString=g,r.isSymbol=function(e){return"symbol"==typeof e},r.isUndefined=E,r.isRegExp=A,r.types.isRegExp=A,r.isObject=T,r.isDate=b,r.types.isDate=b,r.isError=y,r.types.isNativeError=y,r.isFunction=v,r.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},r.isBuffer=e("./support/isBuffer");var w=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function S(e,t){return Object.prototype.hasOwnProperty.call(e,t)}r.log=function(){var e,t;console.log("%s - %s",(e=new Date,t=[N(e.getHours()),N(e.getMinutes()),N(e.getSeconds())].join(":"),[e.getDate(),w[e.getMonth()],t].join(" ")),r.format.apply(r,arguments))},r.inherits=e("inherits"),r._extend=function(e,t){if(!t||!T(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var O="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):undefined;function R(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}r.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(O&&e[O]){var t;if("function"!=typeof(t=e[O]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,O,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise((function(e,n){t=e,r=n})),o=[],i=0;i<arguments.length;i++)o.push(arguments[i]);o.push((function(e,n){e?r(e):t(n)}));try{e.apply(this,o)}catch(e){r(e)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),O&&Object.defineProperty(t,O,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,n(e))},r.promisify.custom=O,r.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function r(){for(var r=[],n=0;n<arguments.length;n++)r.push(arguments[n]);var o=r.pop();if("function"!=typeof o)throw new TypeError("The last argument must be of type Function");var i=this,s=function(){return o.apply(i,arguments)};e.apply(this,r).then((function(e){t.nextTick(s.bind(null,null,e))}),(function(e){t.nextTick(R.bind(null,e,s))}))}return Object.setPrototypeOf(r,Object.getPrototypeOf(e)),Object.defineProperties(r,n(e)),r}}).call(this)}).call(this,e("_process"))}}},{package:"browserify>util",file:"node_modules/util/util.js"}],[5663,{"./nil.js":5665,"./parse.js":5666,"./stringify.js":5670,"./v1.js":5671,"./v3.js":5672,"./v4.js":5674,"./v5.js":5675,"./validate.js":5676,"./version.js":5677},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"v1",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(r,"v3",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(r,"v4",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(r,"v5",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(r,"NIL",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(r,"version",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(r,"validate",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(r,"stringify",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(r,"parse",{enumerable:!0,get:function(){return f.default}});var n=d(e("./v1.js")),o=d(e("./v3.js")),i=d(e("./v4.js")),s=d(e("./v5.js")),a=d(e("./nil.js")),c=d(e("./version.js")),u=d(e("./validate.js")),l=d(e("./stringify.js")),f=d(e("./parse.js"));function d(e){return e&&e.__esModule?e:{default:e}}}}},{package:"uuid",file:"node_modules/uuid/dist/index.js"}],[5664,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){function n(e){return 14+(e+64>>>9<<4)+1}function o(e,t){const r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function i(e,t,r,n,i,s){return o((a=o(o(t,e),o(n,s)))<<(c=i)|a>>>32-c,r);var a,c}function s(e,t,r,n,o,s,a){return i(t&r|~t&n,e,t,o,s,a)}function a(e,t,r,n,o,s,a){return i(t&n|r&~n,e,t,o,s,a)}function c(e,t,r,n,o,s,a){return i(t^r^n,e,t,o,s,a)}function u(e,t,r,n,o,s,a){return i(r^(t|~n),e,t,o,s,a)}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var l=function(e){if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}return function(e){const t=[],r=32*e.length,n="0123456789abcdef";for(let o=0;o<r;o+=8){const r=e[o>>5]>>>o%32&255,i=parseInt(n.charAt(r>>>4&15)+n.charAt(15&r),16);t.push(i)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[n(t)-1]=t;let r=1732584193,i=-271733879,l=-1732584194,f=271733878;for(let t=0;t<e.length;t+=16){const n=r,d=i,h=l,p=f;r=s(r,i,l,f,e[t],7,-680876936),f=s(f,r,i,l,e[t+1],12,-389564586),l=s(l,f,r,i,e[t+2],17,606105819),i=s(i,l,f,r,e[t+3],22,-1044525330),r=s(r,i,l,f,e[t+4],7,-176418897),f=s(f,r,i,l,e[t+5],12,1200080426),l=s(l,f,r,i,e[t+6],17,-1473231341),i=s(i,l,f,r,e[t+7],22,-45705983),r=s(r,i,l,f,e[t+8],7,1770035416),f=s(f,r,i,l,e[t+9],12,-1958414417),l=s(l,f,r,i,e[t+10],17,-42063),i=s(i,l,f,r,e[t+11],22,-1990404162),r=s(r,i,l,f,e[t+12],7,1804603682),f=s(f,r,i,l,e[t+13],12,-40341101),l=s(l,f,r,i,e[t+14],17,-1502002290),i=s(i,l,f,r,e[t+15],22,1236535329),r=a(r,i,l,f,e[t+1],5,-165796510),f=a(f,r,i,l,e[t+6],9,-1069501632),l=a(l,f,r,i,e[t+11],14,643717713),i=a(i,l,f,r,e[t],20,-373897302),r=a(r,i,l,f,e[t+5],5,-701558691),f=a(f,r,i,l,e[t+10],9,38016083),l=a(l,f,r,i,e[t+15],14,-660478335),i=a(i,l,f,r,e[t+4],20,-405537848),r=a(r,i,l,f,e[t+9],5,568446438),f=a(f,r,i,l,e[t+14],9,-1019803690),l=a(l,f,r,i,e[t+3],14,-187363961),i=a(i,l,f,r,e[t+8],20,1163531501),r=a(r,i,l,f,e[t+13],5,-1444681467),f=a(f,r,i,l,e[t+2],9,-51403784),l=a(l,f,r,i,e[t+7],14,1735328473),i=a(i,l,f,r,e[t+12],20,-1926607734),r=c(r,i,l,f,e[t+5],4,-378558),f=c(f,r,i,l,e[t+8],11,-2022574463),l=c(l,f,r,i,e[t+11],16,1839030562),i=c(i,l,f,r,e[t+14],23,-35309556),r=c(r,i,l,f,e[t+1],4,-1530992060),f=c(f,r,i,l,e[t+4],11,1272893353),l=c(l,f,r,i,e[t+7],16,-155497632),i=c(i,l,f,r,e[t+10],23,-1094730640),r=c(r,i,l,f,e[t+13],4,681279174),f=c(f,r,i,l,e[t],11,-358537222),l=c(l,f,r,i,e[t+3],16,-722521979),i=c(i,l,f,r,e[t+6],23,76029189),r=c(r,i,l,f,e[t+9],4,-640364487),f=c(f,r,i,l,e[t+12],11,-421815835),l=c(l,f,r,i,e[t+15],16,530742520),i=c(i,l,f,r,e[t+2],23,-995338651),r=u(r,i,l,f,e[t],6,-198630844),f=u(f,r,i,l,e[t+7],10,1126891415),l=u(l,f,r,i,e[t+14],15,-1416354905),i=u(i,l,f,r,e[t+5],21,-57434055),r=u(r,i,l,f,e[t+12],6,1700485571),f=u(f,r,i,l,e[t+3],10,-1894986606),l=u(l,f,r,i,e[t+10],15,-1051523),i=u(i,l,f,r,e[t+1],21,-2054922799),r=u(r,i,l,f,e[t+8],6,1873313359),f=u(f,r,i,l,e[t+15],10,-30611744),l=u(l,f,r,i,e[t+6],15,-1560198380),i=u(i,l,f,r,e[t+13],21,1309151649),r=u(r,i,l,f,e[t+4],6,-145523070),f=u(f,r,i,l,e[t+11],10,-1120210379),l=u(l,f,r,i,e[t+2],15,718787259),i=u(i,l,f,r,e[t+9],21,-343485551),r=o(r,n),i=o(i,d),l=o(l,h),f=o(f,p)}return[r,i,l,f]}(function(e){if(0===e.length)return[];const t=8*e.length,r=new Uint32Array(n(t));for(let n=0;n<t;n+=8)r[n>>5]|=(255&e[n/8])<<n%32;return r}(e),8*e.length))};r.default=l}}},{package:"uuid",file:"node_modules/uuid/dist/md5-browser.js"}],[5665,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;r.default="00000000-0000-0000-0000-000000000000"}}},{package:"uuid",file:"node_modules/uuid/dist/nil.js"}],[5666,{"./validate.js":5676},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=e("./validate.js"))&&n.__esModule?n:{default:n};var i=function(e){if(!(0,o.default)(e))throw TypeError("Invalid UUID");let t;const r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r};r.default=i}}},{package:"uuid",file:"node_modules/uuid/dist/parse.js"}],[5667,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;r.default=/^(?:[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}}},{package:"uuid",file:"node_modules/uuid/dist/regex.js"}],[5668,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){let n;Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(){if(!n&&(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),!n))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(o)};const o=new Uint8Array(16)}}},{package:"uuid",file:"node_modules/uuid/dist/rng-browser.js"}],[5669,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){function n(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:case 3:return t^r^n;case 2:return t&r^t&n^r&n}}function o(e,t){return e<<t|e>>>32-t}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=function(e){const t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);const i=e.length/4+2,s=Math.ceil(i/16),a=new Array(s);for(let t=0;t<s;++t){const r=new Uint32Array(16);for(let n=0;n<16;++n)r[n]=e[64*t+4*n]<<24|e[64*t+4*n+1]<<16|e[64*t+4*n+2]<<8|e[64*t+4*n+3];a[t]=r}a[s-1][14]=8*(e.length-1)/Math.pow(2,32),a[s-1][14]=Math.floor(a[s-1][14]),a[s-1][15]=8*(e.length-1)&4294967295;for(let e=0;e<s;++e){const i=new Uint32Array(80);for(let t=0;t<16;++t)i[t]=a[e][t];for(let e=16;e<80;++e)i[e]=o(i[e-3]^i[e-8]^i[e-14]^i[e-16],1);let s=r[0],c=r[1],u=r[2],l=r[3],f=r[4];for(let e=0;e<80;++e){const r=Math.floor(e/20),a=o(s,5)+n(r,c,u,l)+f+t[r]+i[e]>>>0;f=l,l=u,u=o(c,30)>>>0,c=s,s=a}r[0]=r[0]+s>>>0,r[1]=r[1]+c>>>0,r[2]=r[2]+u>>>0,r[3]=r[3]+l>>>0,r[4]=r[4]+f>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]};r.default=i}}},{package:"uuid",file:"node_modules/uuid/dist/sha1-browser.js"}],[567,{"./_version":565,"./elliptic":566,"@ethersproject/bytes":500,"@ethersproject/logger":528,"@ethersproject/properties":534},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.computePublicKey=r.recoverPublicKey=r.SigningKey=void 0;var n=e("./elliptic"),o=e("@ethersproject/bytes"),i=e("@ethersproject/properties"),s=e("@ethersproject/logger"),a=e("./_version"),c=new s.Logger(a.version),u=null;function l(){return u||(u=new n.EC("secp256k1")),u}var f=function(){function e(e){(0,i.defineReadOnly)(this,"curve","secp256k1"),(0,i.defineReadOnly)(this,"privateKey",(0,o.hexlify)(e)),32!==(0,o.hexDataLength)(this.privateKey)&&c.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");var t=l().keyFromPrivate((0,o.arrayify)(this.privateKey));(0,i.defineReadOnly)(this,"publicKey","0x"+t.getPublic(!1,"hex")),(0,i.defineReadOnly)(this,"compressedPublicKey","0x"+t.getPublic(!0,"hex")),(0,i.defineReadOnly)(this,"_isSigningKey",!0)}return e.prototype._addPoint=function(e){var t=l().keyFromPublic((0,o.arrayify)(this.publicKey)),r=l().keyFromPublic((0,o.arrayify)(e));return"0x"+t.pub.add(r.pub).encodeCompressed("hex")},e.prototype.signDigest=function(e){var t=l().keyFromPrivate((0,o.arrayify)(this.privateKey)),r=(0,o.arrayify)(e);32!==r.length&&c.throwArgumentError("bad digest length","digest",e);var n=t.sign(r,{canonical:!0});return(0,o.splitSignature)({recoveryParam:n.recoveryParam,r:(0,o.hexZeroPad)("0x"+n.r.toString(16),32),s:(0,o.hexZeroPad)("0x"+n.s.toString(16),32)})},e.prototype.computeSharedSecret=function(e){var t=l().keyFromPrivate((0,o.arrayify)(this.privateKey)),r=l().keyFromPublic((0,o.arrayify)(d(e)));return(0,o.hexZeroPad)("0x"+t.derive(r.getPublic()).toString(16),32)},e.isSigningKey=function(e){return!(!e||!e._isSigningKey)},e}();function d(e,t){var r=(0,o.arrayify)(e);if(32===r.length){var n=new f(r);return t?"0x"+l().keyFromPrivate(r).getPublic(!0,"hex"):n.publicKey}return 33===r.length?t?(0,o.hexlify)(r):"0x"+l().keyFromPublic(r).getPublic(!1,"hex"):65===r.length?t?"0x"+l().keyFromPublic(r).getPublic(!0,"hex"):(0,o.hexlify)(r):c.throwArgumentError("invalid public or private key","key","[REDACTED]")}r.SigningKey=f,r.recoverPublicKey=function(e,t){var r=(0,o.splitSignature)(t),n={r:(0,o.arrayify)(r.r),s:(0,o.arrayify)(r.s)};return"0x"+l().recoverPubKey((0,o.arrayify)(e),n,r.recoveryParam).encode("hex",!1)},r.computePublicKey=d}}},{package:"ethers>@ethersproject/signing-key",file:"node_modules/@ethersproject/signing-key/lib/index.js"}],[5670,{"./validate.js":5676},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=e("./validate.js"))&&n.__esModule?n:{default:n};const i=[];for(let e=0;e<256;++e)i.push((e+256).toString(16).substr(1));var s=function(e,t=0){const r=(i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]).toLowerCase();if(!(0,o.default)(r))throw TypeError("Stringified UUID is invalid");return r};r.default=s}}},{package:"uuid",file:"node_modules/uuid/dist/stringify.js"}],[5671,{"./rng.js":5668,"./stringify.js":5670},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=i(e("./rng.js")),o=i(e("./stringify.js"));function i(e){return e&&e.__esModule?e:{default:e}}let s,a,c=0,u=0;var l=function(e,t,r){let i=t&&r||0;const l=t||new Array(16);let f=(e=e||{}).node||s,d=e.clockseq!==undefined?e.clockseq:a;if(null==f||null==d){const t=e.random||(e.rng||n.default)();null==f&&(f=s=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==d&&(d=a=16383&(t[6]<<8|t[7]))}let h=e.msecs!==undefined?e.msecs:Date.now(),p=e.nsecs!==undefined?e.nsecs:u+1;const m=h-c+(p-u)/1e4;if(m<0&&e.clockseq===undefined&&(d=d+1&16383),(m<0||h>c)&&e.nsecs===undefined&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");c=h,u=p,a=d,h+=122192928e5;const _=(1e4*(268435455&h)+p)%4294967296;l[i++]=_>>>24&255,l[i++]=_>>>16&255,l[i++]=_>>>8&255,l[i++]=255&_;const g=h/4294967296*1e4&268435455;l[i++]=g>>>8&255,l[i++]=255&g,l[i++]=g>>>24&15|16,l[i++]=g>>>16&255,l[i++]=d>>>8|128,l[i++]=255&d;for(let e=0;e<6;++e)l[i+e]=f[e];return t||(0,o.default)(l)};r.default=l}}},{package:"uuid",file:"node_modules/uuid/dist/v1.js"}],[5672,{"./md5.js":5664,"./v35.js":5673},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=i(e("./v35.js")),o=i(e("./md5.js"));function i(e){return e&&e.__esModule?e:{default:e}}var s=(0,n.default)("v3",48,o.default);r.default=s}}},{package:"uuid",file:"node_modules/uuid/dist/v3.js"}],[5673,{"./parse.js":5666,"./stringify.js":5670},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,t,r){function i(e,i,s,a){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}(e)),"string"==typeof i&&(i=(0,o.default)(i)),16!==i.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let c=new Uint8Array(16+e.length);if(c.set(i),c.set(e,i.length),c=r(c),c[6]=15&c[6]|t,c[8]=63&c[8]|128,s){a=a||0;for(let e=0;e<16;++e)s[a+e]=c[e];return s}return(0,n.default)(c)}try{i.name=e}catch(e){}return i.DNS=s,i.URL=a,i},r.URL=r.DNS=void 0;var n=i(e("./stringify.js")),o=i(e("./parse.js"));function i(e){return e&&e.__esModule?e:{default:e}}const s="6ba7b810-9dad-11d1-80b4-00c04fd430c8";r.DNS=s;const a="6ba7b811-9dad-11d1-80b4-00c04fd430c8";r.URL=a}}},{package:"uuid",file:"node_modules/uuid/dist/v35.js"}],[5674,{"./rng.js":5668,"./stringify.js":5670},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=i(e("./rng.js")),o=i(e("./stringify.js"));function i(e){return e&&e.__esModule?e:{default:e}}var s=function(e,t,r){const i=(e=e||{}).random||(e.rng||n.default)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=i[e];return t}return(0,o.default)(i)};r.default=s}}},{package:"uuid",file:"node_modules/uuid/dist/v4.js"}],[5675,{"./sha1.js":5669,"./v35.js":5673},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=i(e("./v35.js")),o=i(e("./sha1.js"));function i(e){return e&&e.__esModule?e:{default:e}}var s=(0,n.default)("v5",80,o.default);r.default=s}}},{package:"uuid",file:"node_modules/uuid/dist/v5.js"}],[5676,{"./regex.js":5667},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=e("./regex.js"))&&n.__esModule?n:{default:n};var i=function(e){return"string"==typeof e&&o.default.test(e)};r.default=i}}},{package:"uuid",file:"node_modules/uuid/dist/validate.js"}],[5677,{"./validate.js":5676},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=e("./validate.js"))&&n.__esModule?n:{default:n};var i=function(e){if(!(0,o.default)(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)};r.default=i}}},{package:"uuid",file:"node_modules/uuid/dist/version.js"}],[5678,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){!function(e){e.exports.is_uri=r,e.exports.is_http_uri=n,e.exports.is_https_uri=o,e.exports.is_web_uri=i,e.exports.isUri=r,e.exports.isHttpUri=n,e.exports.isHttpsUri=o,e.exports.isWebUri=i;var t=function(e){return e.match(/(?:([^:\/?#]+):)?(?:\/\/([^\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?/)};function r(e){if(e&&!/[^a-z0-9\:\/\?\#\[\]\@\!\$\&\'\(\)\*\+\,\;\=\.\-\_\~\%]/i.test(e)&&!/%[^0-9a-f]/i.test(e)&&!/%[0-9a-f](:?[^0-9a-f]|$)/i.test(e)){var r,n,o,i,s,a="",c="";if(a=(r=t(e))[1],n=r[2],o=r[3],i=r[4],s=r[5],a&&a.length&&o.length>=0){if(n&&n.length){if(0!==o.length&&!/^\//.test(o))return}else if(/^\/\//.test(o))return;if(/^[a-z][a-z0-9\+\-\.]*$/.test(a.toLowerCase()))return c+=a+":",n&&n.length&&(c+="//"+n),c+=o,i&&i.length&&(c+="?"+i),s&&s.length&&(c+="#"+s),c}}}function n(e,n){if(r(e)){var o,i,s,a,c="",u="",l="",f="";if(c=(o=t(e))[1],u=o[2],i=o[3],s=o[4],a=o[5],c){if(n){if("https"!=c.toLowerCase())return}else if("http"!=c.toLowerCase())return;if(u)return/:(\d+)$/.test(u)&&(l=u.match(/:(\d+)$/)[0],u=u.replace(/:\d+$/,"")),f+=c+":",f+="//"+u,l&&(f+=l),f+=i,s&&s.length&&(f+="?"+s),a&&a.length&&(f+="#"+a),f}}}function o(e){return n(e,!0)}function i(e){return n(e)||o(e)}}(t)}}},{package:"@metamask/controller-utils>@spruceid/siwe-parser>valid-url",file:"node_modules/valid-url/index.js"}],[5679,{builtins:4083},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$"),o=e("builtins"),i=["node_modules","favicon.ico"];var s=function(e,t){var r={validForNewPackages:0===t.length&&0===e.length,validForOldPackages:0===t.length,warnings:e,errors:t};return r.warnings.length||delete r.warnings,r.errors.length||delete r.errors,r};t.exports=function(e){var t=[],r=[];if(null===e)return r.push("name cannot be null"),s(t,r);if(e===undefined)return r.push("name cannot be undefined"),s(t,r);if("string"!=typeof e)return r.push("name must be a string"),s(t,r);if(e.length||r.push("name length must be greater than zero"),e.match(/^\./)&&r.push("name cannot start with a period"),e.match(/^_/)&&r.push("name cannot start with an underscore"),e.trim()!==e&&r.push("name cannot contain leading or trailing spaces"),i.forEach((function(t){e.toLowerCase()===t&&r.push(t+" is a blacklisted name")})),o({version:"*"}).forEach((function(r){e.toLowerCase()===r&&t.push(r+" is a core module name")})),e.length>214&&t.push("name can no longer contain more than 214 characters"),e.toLowerCase()!==e&&t.push("name can no longer contain capital letters"),/[~'!()*]/.test(e.split("/").slice(-1)[0])&&t.push('name can no longer contain special characters ("~\'!()*")'),encodeURIComponent(e)!==e){var a=e.match(n);if(a){var c=a[1],u=a[2];if(encodeURIComponent(c)===c&&encodeURIComponent(u)===u)return s(t,r)}r.push("name can only contain URL-friendly characters")}return s(t,r)}}}},{package:"@metamask/snaps-utils>validate-npm-package-name",file:"node_modules/validate-npm-package-name/lib/index.js"}],[568,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.version=void 0,r.version="solidity/5.7.0"}}},{package:"ethers>@ethersproject/solidity",file:"node_modules/@ethersproject/solidity/lib/_version.js"}],[569,{"./_version":568,"@ethersproject/bignumber":498,"@ethersproject/bytes":500,"@ethersproject/keccak256":526,"@ethersproject/logger":528,"@ethersproject/sha2":563,"@ethersproject/strings":573},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.sha256=r.keccak256=r.pack=void 0;var n=e("@ethersproject/bignumber"),o=e("@ethersproject/bytes"),i=e("@ethersproject/keccak256"),s=e("@ethersproject/sha2"),a=e("@ethersproject/strings"),c=new RegExp("^bytes([0-9]+)$"),u=new RegExp("^(u?int)([0-9]*)$"),l=new RegExp("^(.*)\\[([0-9]*)\\]$"),f="0000000000000000000000000000000000000000000000000000000000000000",d=e("@ethersproject/logger"),h=e("./_version"),p=new d.Logger(h.version);function m(e,t,r){switch(e){case"address":return r?(0,o.zeroPad)(t,32):(0,o.arrayify)(t);case"string":return(0,a.toUtf8Bytes)(t);case"bytes":return(0,o.arrayify)(t);case"bool":return t=t?"0x01":"0x00",r?(0,o.zeroPad)(t,32):(0,o.arrayify)(t)}var i=e.match(u);if(i){var s=parseInt(i[2]||"256");return(i[2]&&String(s)!==i[2]||s%8!=0||0===s||s>256)&&p.throwArgumentError("invalid number type","type",e),r&&(s=256),t=n.BigNumber.from(t).toTwos(s),(0,o.zeroPad)(t,s/8)}if(i=e.match(c)){s=parseInt(i[1]);return(String(s)!==i[1]||0===s||s>32)&&p.throwArgumentError("invalid bytes type","type",e),(0,o.arrayify)(t).byteLength!==s&&p.throwArgumentError("invalid value for "+e,"value",t),r?(0,o.arrayify)((t+f).substring(0,66)):t}if((i=e.match(l))&&Array.isArray(t)){var d=i[1];parseInt(i[2]||String(t.length))!=t.length&&p.throwArgumentError("invalid array length for "+e,"value",t);var h=[];return t.forEach((function(e){h.push(m(d,e,!0))})),(0,o.concat)(h)}return p.throwArgumentError("invalid type","type",e)}function _(e,t){e.length!=t.length&&p.throwArgumentError("wrong number of values; expected ${ types.length }","values",t);var r=[];return e.forEach((function(e,n){r.push(m(e,t[n]))})),(0,o.hexlify)((0,o.concat)(r))}r.pack=_,r.keccak256=function(e,t){return(0,i.keccak256)(_(e,t))},r.sha256=function(e,t){return(0,s.sha256)(_(e,t))}}}},{package:"ethers>@ethersproject/solidity",file:"node_modules/@ethersproject/solidity/lib/index.js"}],[5693,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=function(e){if(Object.keys)return Object.keys(e);var t=[];for(var r in e)t.push(r);return t},o=function(e,t){if(e.forEach)return e.forEach(t);for(var r=0;r<e.length;r++)t(e[r],r,e)},i=function(){try{return Object.defineProperty({},"_",{}),function(e,t,r){Object.defineProperty(e,t,{writable:!0,enumerable:!1,configurable:!0,value:r})}}catch(e){return function(e,t,r){e[t]=r}}}(),s=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function a(){}a.prototype={};var c=r.Script=function(e){if(!(this instanceof c))return new c(e);this.code=e};c.prototype.runInContext=function(e){if(!(e instanceof a))throw new TypeError("needs a 'context' argument.");var t=document.createElement("iframe");t.style||(t.style={}),t.style.display="none",document.body.appendChild(t);var r=t.contentWindow,c=r.eval,u=r.execScript;!c&&u&&(u.call(r,"null"),c=r.eval),o(n(e),(function(t){r[t]=e[t]})),o(s,(function(t){e[t]&&(r[t]=e[t])}));var l=n(r),f=c.call(r,this.code);return o(n(r),(function(t){(t in e||-1===function(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0;r<e.length;r++)if(e[r]===t)return r;return-1}(l,t))&&(e[t]=r[t])})),o(s,(function(t){t in e||i(e,t,r[t])})),document.body.removeChild(t),f},c.prototype.runInThisContext=function(){return(0,eval)(this.code)},c.prototype.runInNewContext=function(e){var t=c.createContext(e),r=this.runInContext(t);return e&&o(n(t),(function(r){e[r]=t[r]})),r},o(n(c.prototype),(function(e){r[e]=c[e]=function(t){var r=c(t);return r[e].apply(r,[].slice.call(arguments,1))}})),r.isContext=function(e){return e instanceof a},r.createScript=function(e){return r.Script(e)},r.createContext=c.createContext=function(e){var t=new a;return"object"==typeof e&&o(n(e),(function(r){t[r]=e[r]})),t}}}},{package:"browserify>vm-browserify",file:"node_modules/vm-browserify/index.js"}],[5694,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=function(){};t.exports=n}}},{package:"react-popper>warning",file:"node_modules/warning/warning.js"}],[5696,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){!function(e,n){if("function"==typeof define&&define.amd)define("webextension-polyfill",["module"],n);else if(void 0!==r)n(t);else{var o={exports:{}};n(o),e.browser=o.exports}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:this,(function(e){if("undefined"==typeof browser||Object.getPrototypeOf(browser)!==Object.prototype){const t="The message port closed before a response was received.",r="Returning a Promise is the preferred way to send a reply from an onMessage/onMessageExternal listener, as the sendResponse will be removed from the specs (See https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/API/runtime/onMessage)",n=e=>{const n={alarms:{clear:{minArgs:0,maxArgs:1},clearAll:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getAll:{minArgs:0,maxArgs:0}},bookmarks:{create:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},getChildren:{minArgs:1,maxArgs:1},getRecent:{minArgs:1,maxArgs:1},getSubTree:{minArgs:1,maxArgs:1},getTree:{minArgs:0,maxArgs:0},move:{minArgs:2,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeTree:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}},browserAction:{disable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},enable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},getBadgeBackgroundColor:{minArgs:1,maxArgs:1},getBadgeText:{minArgs:1,maxArgs:1},getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},openPopup:{minArgs:0,maxArgs:0},setBadgeBackgroundColor:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setBadgeText:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},browsingData:{remove:{minArgs:2,maxArgs:2},removeCache:{minArgs:1,maxArgs:1},removeCookies:{minArgs:1,maxArgs:1},removeDownloads:{minArgs:1,maxArgs:1},removeFormData:{minArgs:1,maxArgs:1},removeHistory:{minArgs:1,maxArgs:1},removeLocalStorage:{minArgs:1,maxArgs:1},removePasswords:{minArgs:1,maxArgs:1},removePluginData:{minArgs:1,maxArgs:1},settings:{minArgs:0,maxArgs:0}},commands:{getAll:{minArgs:0,maxArgs:0}},contextMenus:{remove:{minArgs:1,maxArgs:1},removeAll:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},cookies:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:1,maxArgs:1},getAllCookieStores:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},devtools:{inspectedWindow:{eval:{minArgs:1,maxArgs:2,singleCallbackArg:!1}},panels:{create:{minArgs:3,maxArgs:3,singleCallbackArg:!0},elements:{createSidebarPane:{minArgs:1,maxArgs:1}}}},downloads:{cancel:{minArgs:1,maxArgs:1},download:{minArgs:1,maxArgs:1},erase:{minArgs:1,maxArgs:1},getFileIcon:{minArgs:1,maxArgs:2},open:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},pause:{minArgs:1,maxArgs:1},removeFile:{minArgs:1,maxArgs:1},resume:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},extension:{isAllowedFileSchemeAccess:{minArgs:0,maxArgs:0},isAllowedIncognitoAccess:{minArgs:0,maxArgs:0}},history:{addUrl:{minArgs:1,maxArgs:1},deleteAll:{minArgs:0,maxArgs:0},deleteRange:{minArgs:1,maxArgs:1},deleteUrl:{minArgs:1,maxArgs:1},getVisits:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1}},i18n:{detectLanguage:{minArgs:1,maxArgs:1},getAcceptLanguages:{minArgs:0,maxArgs:0}},identity:{launchWebAuthFlow:{minArgs:1,maxArgs:1}},idle:{queryState:{minArgs:1,maxArgs:1}},management:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},getSelf:{minArgs:0,maxArgs:0},setEnabled:{minArgs:2,maxArgs:2},uninstallSelf:{minArgs:0,maxArgs:1}},notifications:{clear:{minArgs:1,maxArgs:1},create:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:0},getPermissionLevel:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},pageAction:{getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},hide:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},permissions:{contains:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},request:{minArgs:1,maxArgs:1}},runtime:{getBackgroundPage:{minArgs:0,maxArgs:0},getPlatformInfo:{minArgs:0,maxArgs:0},openOptionsPage:{minArgs:0,maxArgs:0},requestUpdateCheck:{minArgs:0,maxArgs:0},sendMessage:{minArgs:1,maxArgs:3},sendNativeMessage:{minArgs:2,maxArgs:2},setUninstallURL:{minArgs:1,maxArgs:1}},sessions:{getDevices:{minArgs:0,maxArgs:1},getRecentlyClosed:{minArgs:0,maxArgs:1},restore:{minArgs:0,maxArgs:1}},storage:{local:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},managed:{get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1}},sync:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}}},tabs:{captureVisibleTab:{minArgs:0,maxArgs:2},create:{minArgs:1,maxArgs:1},detectLanguage:{minArgs:0,maxArgs:1},discard:{minArgs:0,maxArgs:1},duplicate:{minArgs:1,maxArgs:1},executeScript:{minArgs:1,maxArgs:2},get:{minArgs:1,maxArgs:1},getCurrent:{minArgs:0,maxArgs:0},getZoom:{minArgs:0,maxArgs:1},getZoomSettings:{minArgs:0,maxArgs:1},goBack:{minArgs:0,maxArgs:1},goForward:{minArgs:0,maxArgs:1},highlight:{minArgs:1,maxArgs:1},insertCSS:{minArgs:1,maxArgs:2},move:{minArgs:2,maxArgs:2},query:{minArgs:1,maxArgs:1},reload:{minArgs:0,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeCSS:{minArgs:1,maxArgs:2},sendMessage:{minArgs:2,maxArgs:3},setZoom:{minArgs:1,maxArgs:2},setZoomSettings:{minArgs:1,maxArgs:2},update:{minArgs:1,maxArgs:2}},topSites:{get:{minArgs:0,maxArgs:0}},webNavigation:{getAllFrames:{minArgs:1,maxArgs:1},getFrame:{minArgs:1,maxArgs:1}},webRequest:{handlerBehaviorChanged:{minArgs:0,maxArgs:0}},windows:{create:{minArgs:0,maxArgs:1},get:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:1},getCurrent:{minArgs:0,maxArgs:1},getLastFocused:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}}};if(0===Object.keys(n).length)throw new Error("api-metadata.json has not been included in browser-polyfill");class o extends WeakMap{constructor(e,t=undefined){super(t),this.createItem=e}get(e){return this.has(e)||this.set(e,this.createItem(e)),super.get(e)}}const i=(t,r)=>(...n)=>{e.runtime.lastError?t.reject(new Error(e.runtime.lastError.message)):r.singleCallbackArg||n.length<=1&&!1!==r.singleCallbackArg?t.resolve(n[0]):t.resolve(n)},s=e=>1==e?"argument":"arguments",a=(e,t,r)=>new Proxy(t,{apply:(t,n,o)=>r.call(n,e,...o)});let c=Function.call.bind(Object.prototype.hasOwnProperty);const u=(e,t={},r={})=>{let n=Object.create(null),o={has:(t,r)=>r in e||r in n,get(o,l,f){if(l in n)return n[l];if(!(l in e))return undefined;let d=e[l];if("function"==typeof d)if("function"==typeof t[l])d=a(e,e[l],t[l]);else if(c(r,l)){let t=((e,t)=>function(r,...n){if(n.length<t.minArgs)throw new Error(`Expected at least ${t.minArgs} ${s(t.minArgs)} for ${e}(), got ${n.length}`);if(n.length>t.maxArgs)throw new Error(`Expected at most ${t.maxArgs} ${s(t.maxArgs)} for ${e}(), got ${n.length}`);return new Promise(((o,s)=>{if(t.fallbackToNoCallback)try{r[e](...n,i({resolve:o,reject:s},t))}catch(i){console.warn(`${e} API method doesn't seem to support the callback parameter, falling back to call it without a callback: `,i),r[e](...n),t.fallbackToNoCallback=!1,t.noCallback=!0,o()}else t.noCallback?(r[e](...n),o()):r[e](...n,i({resolve:o,reject:s},t))}))})(l,r[l]);d=a(e,e[l],t)}else d=d.bind(e);else if("object"==typeof d&&null!==d&&(c(t,l)||c(r,l)))d=u(d,t[l],r[l]);else{if(!c(r,"*"))return Object.defineProperty(n,l,{configurable:!0,enumerable:!0,get:()=>e[l],set(t){e[l]=t}}),d;d=u(d,t[l],r["*"])}return n[l]=d,d},set:(t,r,o,i)=>(r in n?n[r]=o:e[r]=o,!0),defineProperty:(e,t,r)=>Reflect.defineProperty(n,t,r),deleteProperty:(e,t)=>Reflect.deleteProperty(n,t)},l=Object.create(e);return new Proxy(l,o)},l=e=>({addListener(t,r,...n){t.addListener(e.get(r),...n)},hasListener:(t,r)=>t.hasListener(e.get(r)),removeListener(t,r){t.removeListener(e.get(r))}}),f=new o((e=>"function"!=typeof e?e:function(t){const r=u(t,{},{getContent:{minArgs:0,maxArgs:0}});e(r)}));let d=!1;const h=new o((e=>"function"!=typeof e?e:function(t,n,o){let i,s,a=!1,c=new Promise((e=>{i=function(t){d||(console.warn(r,(new Error).stack),d=!0),a=!0,e(t)}}));try{s=e(t,n,i)}catch(e){s=Promise.reject(e)}const u=!0!==s&&((l=s)&&"object"==typeof l&&"function"==typeof l.then);var l;if(!0!==s&&!u&&!a)return!1;const f=e=>{e.then((e=>{o(e)}),(e=>{let t;t=e&&(e instanceof Error||"string"==typeof e.message)?e.message:"An unexpected error occurred",o({__mozWebExtensionPolyfillReject__:!0,message:t})})).catch((e=>{console.error("Failed to send onMessage rejected reply",e)}))};return f(u?s:c),!0})),p=({reject:r,resolve:n},o)=>{e.runtime.lastError?e.runtime.lastError.message===t?n():r(new Error(e.runtime.lastError.message)):o&&o.__mozWebExtensionPolyfillReject__?r(new Error(o.message)):n(o)},m=(e,t,r,...n)=>{if(n.length<t.minArgs)throw new Error(`Expected at least ${t.minArgs} ${s(t.minArgs)} for ${e}(), got ${n.length}`);if(n.length>t.maxArgs)throw new Error(`Expected at most ${t.maxArgs} ${s(t.maxArgs)} for ${e}(), got ${n.length}`);return new Promise(((e,t)=>{const o=p.bind(null,{resolve:e,reject:t});n.push(o),r.sendMessage(...n)}))},_={devtools:{network:{onRequestFinished:l(f)}},runtime:{onMessage:l(h),onMessageExternal:l(h),sendMessage:m.bind(null,"sendMessage",{minArgs:1,maxArgs:3})},tabs:{sendMessage:m.bind(null,"sendMessage",{minArgs:2,maxArgs:3})}},g={clear:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}};return n.privacy={network:{"*":g},services:{"*":g},websites:{"*":g}},u(e,_,n)};if("object"!=typeof chrome||!chrome||!chrome.runtime||!chrome.runtime.id)throw new Error("This script should only be loaded in a browser extension.");e.exports=n(chrome)}else e.exports=browser}))}}},{package:"webextension-polyfill",file:"node_modules/webextension-polyfill/dist/browser-polyfill.js"}],[5697,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){!function(e,n){"object"==typeof r&&void 0!==t?n(r):"function"==typeof define&&define.amd?define(["exports"],n):n(e.WHATWGFetch={})}(this,(function(e){var t="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||"undefined"!=typeof global&&global||{},r="URLSearchParams"in t,n="Symbol"in t&&"iterator"in Symbol,o="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(e){return!1}}(),i="FormData"in t,s="ArrayBuffer"in t;if(s)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(e){return e&&a.indexOf(Object.prototype.toString.call(e))>-1};function u(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function l(e){return"string"!=typeof e&&(e=String(e)),e}function f(e){var t={next:function(){var t=e.shift();return{done:t===undefined,value:t}}};return n&&(t[Symbol.iterator]=function(){return t}),t}function d(e){this.map={},e instanceof d?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function h(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function p(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function m(e){var t=new FileReader,r=p(t);return t.readAsArrayBuffer(e),r}function _(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function g(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:o&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:i&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:r&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():s&&o&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=_(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(e)||c(e))?this._bodyArrayBuffer=_(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var e=h(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=h(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(o)return this.blob().then(m);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,r,n,o,i=h(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=p(t),n=/charset=([A-Za-z0-9_-]+)/.exec(e.type),o=n?n[1]:"utf-8",t.readAsText(e,o),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(T)}),this.json=function(){return this.text().then(JSON.parse)},this}d.prototype.append=function(e,t){e=u(e),t=l(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},d.prototype.delete=function(e){delete this.map[u(e)]},d.prototype.get=function(e){return e=u(e),this.has(e)?this.map[e]:null},d.prototype.has=function(e){return this.map.hasOwnProperty(u(e))},d.prototype.set=function(e,t){this.map[u(e)]=l(t)},d.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},d.prototype.keys=function(){var e=[];return this.forEach((function(t,r){e.push(r)})),f(e)},d.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),f(e)},d.prototype.entries=function(){var e=[];return this.forEach((function(t,r){e.push([r,t])})),f(e)},n&&(d.prototype[Symbol.iterator]=d.prototype.entries);var E=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function A(e,r){if(!(this instanceof A))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,o,i=(r=r||{}).body;if(e instanceof A){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,r.headers||(this.headers=new d(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=r.credentials||this.credentials||"same-origin",!r.headers&&this.headers||(this.headers=new d(r.headers)),this.method=(n=r.method||this.method||"GET",o=n.toUpperCase(),E.indexOf(o)>-1?o:n),this.mode=r.mode||this.mode||null,this.signal=r.signal||this.signal||function(){if("AbortController"in t)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==r.cache&&"no-cache"!==r.cache)){var s=/([?&])_=[^&]*/;if(s.test(this.url))this.url=this.url.replace(s,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function T(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(o))}})),t}function b(e,t){if(!(this instanceof b))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=t.status===undefined?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText===undefined?"":""+t.statusText,this.headers=new d(t.headers),this.url=t.url||"",this._initBody(e)}A.prototype.clone=function(){return new A(this,{body:this._bodyInit})},g.call(A.prototype),g.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},b.error=function(){var e=new b(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var y=[301,302,303,307,308];b.redirect=function(e,t){if(-1===y.indexOf(t))throw new RangeError("Invalid status code");return new b(null,{status:t,headers:{location:e}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function v(r,n){return new Promise((function(i,a){var c=new A(r,n);if(c.signal&&c.signal.aborted)return a(new e.DOMException("Aborted","AbortError"));var f=new XMLHttpRequest;function h(){f.abort()}if(f.onload=function(){var e,t,r={statusText:f.statusText,headers:(e=f.getAllResponseHeaders()||"",t=new d,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var r=e.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();try{t.append(n,o)}catch(e){console.warn("Response "+e.message)}}})),t)};0===c.url.indexOf("file://")&&(f.status<200||f.status>599)?r.status=200:r.status=f.status,r.url="responseURL"in f?f.responseURL:r.headers.get("X-Request-URL");var n="response"in f?f.response:f.responseText;setTimeout((function(){i(new b(n,r))}),0)},f.onerror=function(){setTimeout((function(){a(new TypeError("Network request failed"))}),0)},f.ontimeout=function(){setTimeout((function(){a(new TypeError("Network request timed out"))}),0)},f.onabort=function(){setTimeout((function(){a(new e.DOMException("Aborted","AbortError"))}),0)},f.open(c.method,function(e){try{return""===e&&t.location.href?t.location.href:e}catch(t){return e}}(c.url),!0),"include"===c.credentials?f.withCredentials=!0:"omit"===c.credentials&&(f.withCredentials=!1),"responseType"in f&&(o?f.responseType="blob":s&&(f.responseType="arraybuffer")),n&&"object"==typeof n.headers&&!(n.headers instanceof d||t.Headers&&n.headers instanceof t.Headers)){var p=[];Object.getOwnPropertyNames(n.headers).forEach((function(e){p.push(u(e)),f.setRequestHeader(e,l(n.headers[e]))})),c.headers.forEach((function(e,t){-1===p.indexOf(t)&&f.setRequestHeader(t,e)}))}else c.headers.forEach((function(e,t){f.setRequestHeader(t,e)}));c.signal&&(c.signal.addEventListener("abort",h),f.onreadystatechange=function(){4===f.readyState&&c.signal.removeEventListener("abort",h)}),f.send(void 0===c._bodyInit?null:c._bodyInit)}))}v.polyfill=!0,t.fetch||(t.fetch=v,t.Headers=d,t.Request=A,t.Response=b),e.Headers=d,e.Request=A,e.Response=b,e.fetch=v,Object.defineProperty(e,"__esModule",{value:!0})}))}}},{package:"@open-rpc/test-coverage>isomorphic-fetch>whatwg-fetch",file:"node_modules/whatwg-fetch/dist/fetch.umd.js"}],[570,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.version=void 0,r.version="strings/5.7.0"}}},{package:"ethers>@ethersproject/strings",file:"node_modules/@ethersproject/strings/lib/_version.js"}],[5700,{"available-typed-arrays":3916,"call-bind":4090,"call-bind/callBound":4089,"for-each":4474,gopd:4492,"has-tostringtag/shams":4617},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("for-each"),o=e("available-typed-arrays"),i=e("call-bind"),s=e("call-bind/callBound"),a=e("gopd"),c=s("Object.prototype.toString"),u=e("has-tostringtag/shams")(),l="undefined"==typeof globalThis?global:globalThis,f=o(),d=s("String.prototype.slice"),h=Object.getPrototypeOf,p=s("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return-1},m={__proto__:null};n(f,u&&a&&h?function(e){var t=new l[e];if(Symbol.toStringTag in t){var r=h(t),n=a(r,Symbol.toStringTag);if(!n){var o=h(r);n=a(o,Symbol.toStringTag)}m["$"+e]=i(n.get)}}:function(e){var t=new l[e],r=t.slice||t.set;r&&(m["$"+e]=i(r))});t.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!u){var t=d(c(e),8,-1);return p(f,t)>-1?t:"Object"===t&&function(e){var t=!1;return n(m,(function(r,n){if(!t)try{r(e),t=d(n,1)}catch(e){}})),t}(e)}return a?function(e){var t=!1;return n(m,(function(r,n){if(!t)try{"$"+r(e)===n&&(t=d(n,1))}catch(e){}})),t}(e):null}}}},{package:"browserify>util>which-typed-array",file:"node_modules/which-typed-array/index.js"}],[5701,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function e(t,r){if(t&&r)return e(t)(r);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach((function(e){n[e]=t[e]})),n;function n(){for(var e=new Array(arguments.length),r=0;r<e.length;r++)e[r]=arguments[r];var n=t.apply(this,e),o=e[e.length-1];return"function"==typeof n&&n!==o&&Object.keys(o).forEach((function(e){n[e]=o[e]})),n}}}}},{package:"@metamask/object-multiplex>once>wrappy",file:"node_modules/wrappy/wrappy.js"}],[5702,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var o in r)n.call(r,o)&&(e[o]=r[o])}return e};var n=Object.prototype.hasOwnProperty}}},{package:"watchify>xtend",file:"node_modules/xtend/immutable.js"}],[571,{"./utf8":574,"@ethersproject/bytes":500,"@ethersproject/constants":504},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.parseBytes32String=r.formatBytes32String=void 0;var n=e("@ethersproject/constants"),o=e("@ethersproject/bytes"),i=e("./utf8");r.formatBytes32String=function(e){var t=(0,i.toUtf8Bytes)(e);if(t.length>31)throw new Error("bytes32 string must be less than 32 bytes");return(0,o.hexlify)((0,o.concat)([t,n.HashZero]).slice(0,32))},r.parseBytes32String=function(e){var t=(0,o.arrayify)(e);if(32!==t.length)throw new Error("invalid bytes32 - not 32 bytes long");if(0!==t[31])throw new Error("invalid bytes32 string - no null terminator");for(var r=31;0===t[r-1];)r--;return(0,i.toUtf8String)(t.slice(0,r))}}}},{package:"ethers>@ethersproject/strings",file:"node_modules/@ethersproject/strings/lib/bytes32.js"}],[5717,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Web3ShimUsageAlertStates=r.TOGGLEABLE_ALERT_TYPES=r.AlertTypes=void 0;let n=r.AlertTypes=function(e){return e.unconnectedAccount="unconnectedAccount",e.web3ShimUsage="web3ShimUsage",e.invalidCustomNetwork="invalidCustomNetwork",e.smartTransactionsMigration="smartTransactionsMigration",e}({});r.TOGGLEABLE_ALERT_TYPES=[n.unconnectedAccount,n.web3ShimUsage,n.smartTransactionsMigration];r.Web3ShimUsageAlertStates=function(e){return e[e.recorded=1]="recorded",e[e.dismissed=2]="dismissed",e}({})}}},{package:"$root$",file:"shared/constants/alerts.ts"}],[5719,{"./permissions":5738,"@metamask/snaps-rpc-methods":2700},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.UNKNOWN_TICKER_SYMBOL=r.TRACE_ENABLED_SIGN_METHODS=r.SNAP_MANAGE_ACCOUNTS_CONFIRMATION_TYPES=r.SMART_TRANSACTION_CONFIRMATION_TYPES=r.POLLING_TOKEN_ENVIRONMENT_TYPES=r.PLATFORM_OPERA=r.PLATFORM_FIREFOX=r.PLATFORM_EDGE=r.PLATFORM_CHROME=r.PLATFORM_BRAVE=r.ORIGIN_METAMASK=r.METAMASK_PROD_CHROME_ID=r.METAMASK_MMI_PROD_CHROME_ID=r.METAMASK_MMI_BETA_CHROME_ID=r.METAMASK_FLASK_CHROME_ID=r.METAMASK_BETA_CHROME_ID=r.MESSAGE_TYPE=r.FIREFOX_BUILD_IDS=r.EXTENSION_MESSAGES=r.ENVIRONMENT_TYPE_POPUP=r.ENVIRONMENT_TYPE_NOTIFICATION=r.ENVIRONMENT_TYPE_FULLSCREEN=r.ENVIRONMENT_TYPE_BACKGROUND=r.CHROME_BUILD_IDS=void 0;var n=e("@metamask/snaps-rpc-methods"),o=e("./permissions");const i=r.ENVIRONMENT_TYPE_POPUP="popup",s=r.ENVIRONMENT_TYPE_NOTIFICATION="notification",a=r.ENVIRONMENT_TYPE_FULLSCREEN="fullscreen",c=r.ENVIRONMENT_TYPE_BACKGROUND="background",u=(r.PLATFORM_BRAVE="Brave",r.PLATFORM_CHROME="Chrome",r.PLATFORM_EDGE="Edge",r.PLATFORM_FIREFOX="Firefox",r.PLATFORM_OPERA="Opera",r.MESSAGE_TYPE={ADD_ETHEREUM_CHAIN:"wallet_addEthereumChain",ETH_ACCOUNTS:o.RestrictedMethods.eth_accounts,ETH_DECRYPT:"eth_decrypt",ETH_CHAIN_ID:"eth_chainId",ETH_GET_ENCRYPTION_PUBLIC_KEY:"eth_getEncryptionPublicKey",ETH_GET_BLOCK_BY_NUMBER:"eth_getBlockByNumber",ETH_REQUEST_ACCOUNTS:"eth_requestAccounts",ETH_SEND_TRANSACTION:"eth_sendTransaction",ETH_SEND_RAW_TRANSACTION:"eth_sendRawTransaction",ETH_SIGN_TRANSACTION:"eth_signTransaction",ETH_SIGN_TYPED_DATA:"eth_signTypedData",ETH_SIGN_TYPED_DATA_V1:"eth_signTypedData_v1",ETH_SIGN_TYPED_DATA_V3:"eth_signTypedData_v3",ETH_SIGN_TYPED_DATA_V4:"eth_signTypedData_v4",GET_PROVIDER_STATE:"metamask_getProviderState",LOG_WEB3_SHIM_USAGE:"metamask_logWeb3ShimUsage",PERSONAL_SIGN:"personal_sign",SEND_METADATA:"metamask_sendDomainMetadata",SWITCH_ETHEREUM_CHAIN:"wallet_switchEthereumChain",TRANSACTION:"transaction",WALLET_CREATE_SESSION:"wallet_createSession",WALLET_GET_CALLS_STATUS:"wallet_getCallsStatus",WALLET_GET_CAPABILITIES:"wallet_getCapabilities",WALLET_GET_SESSION:"wallet_getSession",WALLET_INVOKE_METHOD:"wallet_invokeMethod",WALLET_REQUEST_PERMISSIONS:"wallet_requestPermissions",WALLET_REVOKE_SESSION:"wallet_revokeSession",WALLET_SEND_CALLS:"wallet_sendCalls",WALLET_SESSION_CHANGED:"wallet_sessionChanged",WATCH_ASSET:"wallet_watchAsset",WATCH_ASSET_LEGACY:"metamask_watchAsset",SNAP_DIALOG_ALERT:n.DIALOG_APPROVAL_TYPES.alert,SNAP_DIALOG_CONFIRMATION:n.DIALOG_APPROVAL_TYPES.confirmation,SNAP_DIALOG_PROMPT:n.DIALOG_APPROVAL_TYPES.prompt,SNAP_DIALOG_DEFAULT:n.DIALOG_APPROVAL_TYPES.default}),l=(r.SNAP_MANAGE_ACCOUNTS_CONFIRMATION_TYPES={confirmAccountCreation:"snap_manageAccounts:confirmAccountCreation",confirmAccountRemoval:"snap_manageAccounts:confirmAccountRemoval",showSnapAccountRedirect:"snap_manageAccounts:showSnapAccountRedirect",showNameSnapAccount:"snap_manageAccounts:showNameSnapAccount"},r.SMART_TRANSACTION_CONFIRMATION_TYPES={showSmartTransactionStatusPage:"smartTransaction:showSmartTransactionStatusPage"},r.EXTENSION_MESSAGES={CONNECTION_READY:"CONNECTION_READY",READY:"METAMASK_EXTENSION_READY"},r.POLLING_TOKEN_ENVIRONMENT_TYPES={[i]:"popupGasPollTokens",[s]:"notificationGasPollTokens",[a]:"fullScreenGasPollTokens",[c]:"none"},r.ORIGIN_METAMASK="metamask",r.METAMASK_BETA_CHROME_ID="pbbkamfgmaedccnfkmjcofcecjhfgldn"),f=r.METAMASK_PROD_CHROME_ID="nkbihfbeogaeaoehlefnkodbefgpgknn",d=r.METAMASK_FLASK_CHROME_ID="ljfoeinjpaedjfecbmggjgodbgkmjkjk",h=r.METAMASK_MMI_BETA_CHROME_ID="kmbhbcbadohhhgdgihejcicbgcehoaeg",p=r.METAMASK_MMI_PROD_CHROME_ID="ikkihjamdhfiojpdbnfllpjigpneipbc";r.CHROME_BUILD_IDS=[l,f,d,h,p],r.FIREFOX_BUILD_IDS=["webextension-beta@metamask.io","webextension@metamask.io","webextension-flask@metamask.io"],r.UNKNOWN_TICKER_SYMBOL="UNKNOWN",r.TRACE_ENABLED_SIGN_METHODS=[u.ETH_SIGN_TYPED_DATA,u.ETH_SIGN_TYPED_DATA_V1,u.ETH_SIGN_TYPED_DATA_V3,u.ETH_SIGN_TYPED_DATA_V4,u.PERSONAL_SIGN]}}},{package:"$root$",file:"shared/constants/app.ts"}],[572,{"./utf8":574},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.nameprep=r._nameprepTableC=r._nameprepTableB2=r._nameprepTableA1=void 0;var n=e("./utf8");function o(e,t){t||(t=function(e){return[parseInt(e,16)]});var r=0,n={};return e.split(",").forEach((function(e){var o=e.split(":");r+=parseInt(o[0],16),n[r]=t(o[1])})),n}function i(e){var t=0;return e.split(",").map((function(e){var r=e.split("-");return 1===r.length?r[1]="0":""===r[1]&&(r[1]="1"),{l:t+parseInt(r[0],16),h:t=parseInt(r[1],16)}}))}function s(e,t){for(var r=0,n=0;n<t.length;n++){var o=t[n];if(e>=(r+=o.l)&&e<=r+o.h&&(e-r)%(o.d||1)==0){if(o.e&&-1!==o.e.indexOf(e-r))continue;return o}}return null}var a=i("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),c="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map((function(e){return parseInt(e,16)})),u=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}],l=o("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),f=o("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),d=o("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",(function(e){if(e.length%4!=0)throw new Error("bad data");for(var t=[],r=0;r<e.length;r+=4)t.push(parseInt(e.substring(r,r+4),16));return t})),h=i("80-20,2a0-,39c,32,f71,18e,7f2-f,19-7,30-4,7-5,f81-b,5,a800-20ff,4d1-1f,110,fa-6,d174-7,2e84-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,2,1f-5f,ff7f-20001");function p(e){return!!s(e,a)}function m(e){var t=s(e,u);if(t)return[e+t.s];var r=l[e];if(r)return r;var n=f[e];if(n)return[e+n[0]];var o=d[e];return o||null}function _(e){return!!s(e,h)}r._nameprepTableA1=p,r._nameprepTableB2=m,r._nameprepTableC=_,r.nameprep=function(e){if(e.match(/^[a-z0-9-]*$/i)&&e.length<=59)return e.toLowerCase();var t,r=(0,n.toUtf8CodePoints)(e);t=r.map((function(e){if(c.indexOf(e)>=0)return[];if(e>=65024&&e<=65039)return[];var t=m(e);return t||[e]})),r=t.reduce((function(e,t){return t.forEach((function(t){e.push(t)})),e}),[]),(r=(0,n.toUtf8CodePoints)((0,n._toUtf8String)(r),n.UnicodeNormalizationForm.NFKC)).forEach((function(e){if(_(e))throw new Error("STRINGPREP_CONTAINS_PROHIBITED")})),r.forEach((function(e){if(p(e))throw new Error("STRINGPREP_CONTAINS_UNASSIGNED")}));var o=(0,n._toUtf8String)(r);if("-"===o.substring(0,1)||"--"===o.substring(2,4)||"-"===o.substring(o.length-1))throw new Error("invalid hyphen");return o}}}},{package:"ethers>@ethersproject/strings",file:"node_modules/@ethersproject/strings/lib/idna.js"}],[5720,{"./multichain/networks":5733,"./network":5734,"@metamask/bridge-controller":1390,"@metamask/multichain-network-controller":2092},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.STATIC_METAMASK_BASE_URL=r.SOLANA_USDC_ASSET=r.NETWORK_TO_SHORT_NETWORK_NAME_MAP=r.ETH_USDT_ADDRESS=r.BRIDGE_API_BASE_URL=r.ALLOWED_BRIDGE_CHAIN_IDS=void 0;var n=e("@metamask/multichain-network-controller"),o=e("@metamask/bridge-controller"),i=e("./multichain/networks"),s=e("./network");const a=[],c=[s.CHAIN_IDS.MAINNET,s.CHAIN_IDS.BSC,s.CHAIN_IDS.POLYGON,s.CHAIN_IDS.ZKSYNC_ERA,s.CHAIN_IDS.AVALANCHE,s.CHAIN_IDS.OPTIMISM,s.CHAIN_IDS.ARBITRUM,s.CHAIN_IDS.LINEA_MAINNET,s.CHAIN_IDS.BASE];r.ALLOWED_BRIDGE_CHAIN_IDS=[...a,...c,s.CHAIN_IDS.LINEA_MAINNET,s.CHAIN_IDS.BASE],c.map(n.toEvmCaipChainId).concat(a),r.BRIDGE_API_BASE_URL=o.BRIDGE_PROD_API_BASE_URL,r.ETH_USDT_ADDRESS="0xdac17f958d2ee523a2206206994597c13d831ec7",r.NETWORK_TO_SHORT_NETWORK_NAME_MAP={[s.CHAIN_IDS.MAINNET]:"Ethereum",[s.CHAIN_IDS.LINEA_MAINNET]:"Linea",[s.CHAIN_IDS.POLYGON]:s.NETWORK_TO_NAME_MAP[s.CHAIN_IDS.POLYGON],[s.CHAIN_IDS.AVALANCHE]:"Avalanche",[s.CHAIN_IDS.BSC]:s.NETWORK_TO_NAME_MAP[s.CHAIN_IDS.BSC],[s.CHAIN_IDS.ARBITRUM]:s.NETWORK_TO_NAME_MAP[s.CHAIN_IDS.ARBITRUM],[s.CHAIN_IDS.OPTIMISM]:s.NETWORK_TO_NAME_MAP[s.CHAIN_IDS.OPTIMISM],[s.CHAIN_IDS.ZKSYNC_ERA]:"ZkSync Era",[s.CHAIN_IDS.BASE]:"Base",[(0,n.toEvmCaipChainId)(s.CHAIN_IDS.BASE)]:"Base",[(0,n.toEvmCaipChainId)(s.CHAIN_IDS.LINEA_MAINNET)]:"Linea",[(0,n.toEvmCaipChainId)(s.CHAIN_IDS.POLYGON)]:s.NETWORK_TO_NAME_MAP[s.CHAIN_IDS.POLYGON],[(0,n.toEvmCaipChainId)(s.CHAIN_IDS.AVALANCHE)]:"Avalanche",[(0,n.toEvmCaipChainId)(s.CHAIN_IDS.BSC)]:s.NETWORK_TO_NAME_MAP[s.CHAIN_IDS.BSC],[(0,n.toEvmCaipChainId)(s.CHAIN_IDS.ARBITRUM)]:s.NETWORK_TO_NAME_MAP[s.CHAIN_IDS.ARBITRUM],[(0,n.toEvmCaipChainId)(s.CHAIN_IDS.OPTIMISM)]:s.NETWORK_TO_NAME_MAP[s.CHAIN_IDS.OPTIMISM],[(0,n.toEvmCaipChainId)(s.CHAIN_IDS.ZKSYNC_ERA)]:"ZkSync Era",[(0,n.toEvmCaipChainId)(s.CHAIN_IDS.BASE)]:"Base"},r.STATIC_METAMASK_BASE_URL="https://static.cx.metamask.io",r.SOLANA_USDC_ASSET={address:"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp/token:EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",symbol:"USDC",decimals:6,image:"https://static.cx.metamask.io/api/v2/tokenIcons/assets/solana/5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp/token/EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v.png",chainId:i.MultichainNetworks.SOLANA}}}},{package:"$root$",file:"shared/constants/bridge.ts"}],[5721,{"./network":5734},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.EtherDenomination=r.CHAINID_DEFAULT_BLOCK_EXPLORER_URL_MAP=r.CHAINID_DEFAULT_BLOCK_EXPLORER_HUMAN_READABLE_URL_MAP=void 0;var n=e("./network");r.EtherDenomination=function(e){return e.ETH="ETH",e.GWEI="GWEI",e.WEI="WEI",e}({});r.CHAINID_DEFAULT_BLOCK_EXPLORER_URL_MAP={[n.CHAIN_IDS.BSC]:"https://bscscan.com/",[n.CHAIN_IDS.MAINNET]:"https://etherscan.io/",[n.CHAIN_IDS.POLYGON]:"https://polygonscan.com/",[n.CHAIN_IDS.GOERLI]:"https://goerli.etherscan.io/",[n.CHAIN_IDS.AVALANCHE]:"https://snowtrace.io/",[n.CHAIN_IDS.OPTIMISM]:"https://optimistic.etherscan.io/",[n.CHAIN_IDS.ARBITRUM]:"https://arbiscan.io/",[n.CHAIN_IDS.ZKSYNC_ERA]:"https://explorer.zksync.io/",[n.CHAIN_IDS.LINEA_MAINNET]:"https://lineascan.build/",[n.CHAIN_IDS.BASE]:"https://basescan.org/"},r.CHAINID_DEFAULT_BLOCK_EXPLORER_HUMAN_READABLE_URL_MAP={[n.CHAIN_IDS.BSC]:"BscScan",[n.CHAIN_IDS.MAINNET]:"Etherscan",[n.CHAIN_IDS.POLYGON]:"PolygonScan",[n.CHAIN_IDS.GOERLI]:"Goerli Etherscan",[n.CHAIN_IDS.AVALANCHE]:"Snowtrace",[n.CHAIN_IDS.OPTIMISM]:"Optimism Explorer",[n.CHAIN_IDS.ARBITRUM]:"ArbiScan",[n.CHAIN_IDS.ZKSYNC_ERA]:"Zksync Explorer",[n.CHAIN_IDS.LINEA_MAINNET]:"LineaScan",[n.CHAIN_IDS.BASE]:"BaseScan"}}}},{package:"$root$",file:"shared/constants/common.ts"}],[5724,{"./network":5734},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.FIRST_PARTY_CONTRACT_NAMES=r.EXPERIENCES_TYPE=void 0;var n=e("./network");let o=r.EXPERIENCES_TYPE=function(e){return e.METAMASK_VALIDATOR_STAKING="MetaMask Validator Staking",e.METAMASK_POOLED_STAKING="MetaMask Pooled Staking",e.METAMASK_THIRD_PARTY_STAKING="MetaMask Third Party Staking",e.METAMASK_POOLED_STAKING_V1="MetaMask Pool Staking (v1)",e.METAMASK_BRIDGE="MetaMask Bridge",e.METAMASK_SWAPS="MetaMask Swaps",e}({});r.FIRST_PARTY_CONTRACT_NAMES={[o.METAMASK_VALIDATOR_STAKING]:{[n.CHAIN_IDS.MAINNET]:"0xDc71aFFC862fceB6aD32BE58E098423A7727bEbd"},[o.METAMASK_POOLED_STAKING]:{[n.CHAIN_IDS.MAINNET]:"0x4FEF9D741011476750A243aC70b9789a63dd47Df"},[o.METAMASK_THIRD_PARTY_STAKING]:{[n.CHAIN_IDS.MAINNET]:"0x1f6692E78dDE07FF8da75769B6d7c716215bC7D0"},[o.METAMASK_POOLED_STAKING_V1]:{[n.CHAIN_IDS.MAINNET]:"0xc7bE520a13dC023A1b34C03F4Abdab8A43653F7B"},[o.METAMASK_BRIDGE]:{[n.CHAIN_IDS.MAINNET]:"0x0439e60F02a8900a951603950d8D4527f400C3f1",[n.CHAIN_IDS.OPTIMISM]:"0xB90357f2b86dbfD59c3502215d4060f71DF8ca0e",[n.CHAIN_IDS.BSC]:"0xaEc23140408534b378bf5832defc426dF8604B59",[n.CHAIN_IDS.POLYGON]:"0x3A0b42cE6166abB05d30DdF12E726c95a83D7a16",[n.CHAIN_IDS.ZKSYNC_ERA]:"0x357B5935482AD8a4A2e181e0132aBd1882E16520",[n.CHAIN_IDS.BASE]:"0xa20ECbC821fB54064aa7B5C6aC81173b8b34Df71",[n.CHAIN_IDS.ARBITRUM]:"0x23981fC34e69eeDFE2BD9a0a9fCb0719Fe09DbFC",[n.CHAIN_IDS.AVALANCHE]:"0x29106d08382d3c73bF477A94333C61Db1142E1B6",[n.CHAIN_IDS.LINEA_MAINNET]:"0xE3d0d2607182Af5B24f5C3C2E4990A053aDd64e3"},[o.METAMASK_SWAPS]:{[n.CHAIN_IDS.MAINNET]:"0x881D40237659C251811CEC9c364ef91dC08D300C",[n.CHAIN_IDS.BSC]:"0x1a1ec25DC08e98e5E93F1104B5e5cdD298707d31",[n.CHAIN_IDS.POLYGON]:"0x1a1ec25DC08e98e5E93F1104B5e5cdD298707d31",[n.CHAIN_IDS.AVALANCHE]:"0x1a1ec25DC08e98e5E93F1104B5e5cdD298707d31",[n.CHAIN_IDS.ARBITRUM]:"0x9dDA6Ef3D919c9bC8885D5560999A3640431e8e6",[n.CHAIN_IDS.OPTIMISM]:"0x9dDA6Ef3D919c9bC8885D5560999A3640431e8e6",[n.CHAIN_IDS.ZKSYNC_ERA]:"0xf504c1fe13d14DF615E66dcd0ABF39e60c697f34",[n.CHAIN_IDS.LINEA_MAINNET]:"0x9dDA6Ef3D919c9bC8885D5560999A3640431e8e6"}}}}},{package:"$root$",file:"shared/constants/first-party-contracts.ts"}],[5725,{"ethereumjs-util":4327},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.PriorityLevels=r.NetworkCongestionThresholds=r.MIN_GAS_LIMIT_HEX=r.GasRecommendations=r.GasEstimateTypes=r.GAS_LIMITS=r.EditGasModes=r.CUSTOM_GAS_ESTIMATE=void 0;var n=e("ethereumjs-util");const o=r.MIN_GAS_LIMIT_HEX=parseInt("21000",10).toString(16);r.GAS_LIMITS={SIMPLE:(0,n.addHexPrefix)(o),BASE_TOKEN_ESTIMATE:(0,n.addHexPrefix)(1e5.toString(16))};r.GasEstimateTypes=function(e){return e.feeMarket="fee-market",e.legacy="legacy",e.ethGasPrice="eth_gasPrice",e.none="none",e}({}),r.GasRecommendations=function(e){return e.low="low",e.medium="medium",e.high="high",e}({}),r.PriorityLevels=function(e){return e.tenPercentIncreased="tenPercentIncreased",e.low="low",e.medium="medium",e.high="high",e.custom="custom",e.dAppSuggested="dappSuggested",e.dappSuggestedHigh="dappSuggestedHigh",e}({});r.CUSTOM_GAS_ESTIMATE="custom";r.EditGasModes=function(e){return e.speedUp="speed-up",e.cancel="cancel",e.modifyInPlace="modify-in-place",e.swaps="swaps",e}({}),r.NetworkCongestionThresholds=function(e){return e[e.notBusy=0]="notBusy",e[e.stable=.33]="stable",e[e.busy=.9]="busy",e}({})}}},{package:"$root$",file:"shared/constants/gas.ts"}],[5726,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.WebHIDConnectedStatuses=r.LedgerTransportTypes=r.LEDGER_USB_VENDOR_ID=r.HardwareTransportStates=r.HardwareKeyringType=r.HardwareKeyringNames=r.HardwareDeviceNames=r.HardwareAffiliateTutorialLinks=r.HardwareAffiliateLinks=void 0;r.HardwareKeyringType=function(e){return e.ledger="Ledger Hardware",e.trezor="Trezor Hardware",e.oneKey="OneKey Hardware",e.lattice="Lattice Hardware",e.qr="QR Hardware Wallet Device",e}({}),r.HardwareKeyringNames=function(e){return e.ledger="Ledger",e.trezor="Trezor",e.oneKey="OneKey",e.lattice="Lattice1",e.qr="QR",e}({}),r.HardwareDeviceNames=function(e){return e.ledger="ledger",e.trezor="trezor",e.oneKey="oneKey",e.lattice="lattice",e.qr="QR Hardware",e}({}),r.HardwareTransportStates=function(e){return e.none="NONE",e.verified="VERIFIED",e.deviceOpenFailure="DEVICE_OPEN_FAILURE",e.unknownFailure="UNKNOWN_FAILURE",e}({}),r.HardwareAffiliateLinks=function(e){return e.ledger="https://shop.ledger.com/?r=17c4991a03fa",e.gridplus="https://gridplus.io/?afmc=7p",e.trezor="https://shop.trezor.io/product/trezor-one-black?offer_id=35&aff_id=11009",e.keystone="https://keyst.one/metamask?rfsn=6088257.656b3e9&utm_source=refersion&utm_medium=affiliate&utm_campaign=6088257.656b3e9",e.airgap="https://airgap.it/",e.coolwallet="https://www.coolwallet.io/",e.dcent="https://dcentwallet.com/",e.ngrave="https://shop.ngrave.io/",e.imtoken="https://token.im/",e.onekey="https://onekey.so/products/onekey-pro-hardware-wallet/",e}({}),r.HardwareAffiliateTutorialLinks=function(e){return e.ledger="https://support.ledger.com/hc/en-us/articles/4404366864657-Set-up-and-use-MetaMask-to-access-your-Ledger-Ethereum-ETH-account?docs=true",e.gridplus="https://docs.gridplus.io/setup/metamask",e.trezor="https://wiki.trezor.io/Apps:MetaMask",e.keystone="https://support.keyst.one/3rd-party-wallets/eth-and-web3-wallets-keystone/bind-metamask-with-keystone",e.airgap="https://support.airgap.it/guides/metamask/",e.coolwallet="https://www.coolwallet.io/metamask-step-by-step-guides/",e.dcent="https://medium.com/dcentwallet/dcent-wallet-now-supports-qr-based-protocol-to-link-with-metamask-57555f02603f",e.ngrave="https://ngrave.io/zero",e.imtoken="https://support.token.im/hc/en-us/articles/24652624775961/",e.onekey="https://help.onekey.so/hc/articles/9426592069903",e}({}),r.LedgerTransportTypes=function(e){return e.webhid="webhid",e.u2f="u2f",e}({}),r.WebHIDConnectedStatuses=function(e){return e.connected="connected",e.notConnected="notConnected",e.unknown="unknown",e}({});r.LEDGER_USB_VENDOR_ID="0x2c97"}}},{package:"$root$",file:"shared/constants/hardware-wallets.ts"}],[5727,{"./hardware-wallets":5726},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.SnapKeyringType=r.KeyringType=r.InternalKeyringType=void 0;var n=e("./hardware-wallets");let o=r.InternalKeyringType=function(e){return e.hdKeyTree="HD Key Tree",e.imported="Simple Key Pair",e}({}),i=r.SnapKeyringType=function(e){return e.snap="Snap Keyring",e}({});r.KeyringType={...n.HardwareKeyringType,...o,...i}}}},{package:"$root$",file:"shared/constants/keyring.ts"}],[5728,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TRUNCATED_NAME_CHAR_LIMIT=r.TRUNCATED_ADDRESS_START_CHARS=r.TRUNCATED_ADDRESS_END_CHARS=void 0;r.TRUNCATED_NAME_CHAR_LIMIT=11,r.TRUNCATED_ADDRESS_START_CHARS=7,r.TRUNCATED_ADDRESS_END_CHARS=5}}},{package:"$root$",file:"shared/constants/labels.ts"}],[573,{"./bytes32":571,"./idna":572,"./utf8":574},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.nameprep=r.parseBytes32String=r.formatBytes32String=r.UnicodeNormalizationForm=r.Utf8ErrorReason=r.Utf8ErrorFuncs=r.toUtf8String=r.toUtf8CodePoints=r.toUtf8Bytes=r._toEscapedUtf8String=void 0;var n=e("./bytes32");Object.defineProperty(r,"formatBytes32String",{enumerable:!0,get:function(){return n.formatBytes32String}}),Object.defineProperty(r,"parseBytes32String",{enumerable:!0,get:function(){return n.parseBytes32String}});var o=e("./idna");Object.defineProperty(r,"nameprep",{enumerable:!0,get:function(){return o.nameprep}});var i=e("./utf8");Object.defineProperty(r,"_toEscapedUtf8String",{enumerable:!0,get:function(){return i._toEscapedUtf8String}}),Object.defineProperty(r,"toUtf8Bytes",{enumerable:!0,get:function(){return i.toUtf8Bytes}}),Object.defineProperty(r,"toUtf8CodePoints",{enumerable:!0,get:function(){return i.toUtf8CodePoints}}),Object.defineProperty(r,"toUtf8String",{enumerable:!0,get:function(){return i.toUtf8String}}),Object.defineProperty(r,"UnicodeNormalizationForm",{enumerable:!0,get:function(){return i.UnicodeNormalizationForm}}),Object.defineProperty(r,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return i.Utf8ErrorFuncs}}),Object.defineProperty(r,"Utf8ErrorReason",{enumerable:!0,get:function(){return i.Utf8ErrorReason}})}}},{package:"ethers>@ethersproject/strings",file:"node_modules/@ethersproject/strings/lib/index.js"}],[5730,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.REJECT_NOTIFICATION_CLOSE_SIG=r.REJECT_NOTIFICATION_CLOSE=r.QueueType=r.MetaMetricsUserTrait=r.MetaMetricsTransactionEventSource=r.MetaMetricsTokenEventSource=r.MetaMetricsSwapsEventSource=r.MetaMetricsNetworkEventSource=r.MetaMetricsEventUiCustomization=r.MetaMetricsEventTransactionEstimateType=r.MetaMetricsEventName=r.MetaMetricsEventLocation=r.MetaMetricsEventLinkType=r.MetaMetricsEventKeyType=r.MetaMetricsEventErrorType=r.MetaMetricsEventCategory=r.MetaMetricsEventAccountType=r.MetaMetricsEventAccountImportType=r.MetaMetricsContextProp=r.METAMETRICS_BACKGROUND_PAGE_OBJECT=r.METAMETRICS_ANONYMOUS_ID=r.DeleteRegulationStatus=void 0;r.MetaMetricsUserTrait=function(e){return e.IsMetricsOptedIn="is_metrics_opted_in",e.HasMarketingConsent="has_marketing_consent",e.AddressBookEntries="address_book_entries",e.InstallDateExt="install_date_ext",e.LedgerConnectionType="ledger_connection_type",e.NetworksAdded="networks_added",e.NetworksWithoutTicker="networks_without_ticker",e.NftAutodetectionEnabled="nft_autodetection_enabled",e.NumberOfAccounts="number_of_accounts",e.NumberOfNftCollections="number_of_nft_collections",e.NumberOfNfts="number_of_nfts",e.NumberOfTokens="number_of_tokens",e.NumberOfHDEntropies="number_of_hd_entropies",e.OpenSeaApiEnabled="opensea_api_enabled",e.Theme="theme",e.ThreeBoxEnabled="three_box_enabled",e.TokenDetectionEnabled="token_detection_enabled",e.ShowNativeTokenAsMainBalance="show_native_token_as_main_balance",e.SecurityProviders="security_providers",e.PetnameAddressCount="petname_addresses_count",e.CurrentCurrency="current_currency",e.TokenSortPreference="token_sort_preference",e.PrivacyModeEnabled="privacy_mode_toggle",e.NetworkFilterPreference="selected_network_filter",e.ProfileId="profile_id",e}({});r.METAMETRICS_ANONYMOUS_ID="0x0000000000000000",r.METAMETRICS_BACKGROUND_PAGE_OBJECT={path:"/background-process",title:"Background Process",url:"/background-process"},r.REJECT_NOTIFICATION_CLOSE="Cancel Via Notification Close",r.REJECT_NOTIFICATION_CLOSE_SIG="Cancel Sig Request Via Notification Close";r.MetaMetricsEventName=function(e){return e.AccountAdded="Account Added",e.AccountAddSelected="Account Add Selected",e.AccountAddFailed="Account Add Failed",e.AccountDetailsOpened="Account Details Opened",e.AccountPasswordCreated="Account Password Created",e.AccountReset="Account Reset",e.AccountRenamed="Account Renamed",e.AccountsSyncAdded="Accounts Sync Added",e.AccountsSyncNameUpdated="Accounts Sync Name Updated",e.AccountsSyncErroneousSituation="Accounts Sync Erroneous Situation",e.ActivityDetailsOpened="Activity Details Opened",e.ActivityDetailsClosed="Activity Details Closed",e.AnalyticsPreferenceSelected="Analytics Preference Selected",e.AppInstalled="App Installed",e.AppOpened="App Opened",e.AppUnlocked="App Unlocked",e.AppUnlockedFailed="App Unlocked Failed",e.AppLocked="App Locked",e.AppWindowExpanded="App Window Expanded",e.BannerDisplay="Banner Display",e.BannerCloseAll="Banner Close All",e.BannerSelect="Banner Select",e.BannerNavigated="Banner Navigated",e.BridgeLinkClicked="Bridge Link Clicked",e.BitcoinSupportToggled="Bitcoin Support Toggled",e.BitcoinTestnetSupportToggled="Bitcoin Testnet Support Toggled",e.CurrentCurrency="Current Currency",e.DappViewed="Dapp Viewed",e.DecryptionApproved="Decryption Approved",e.DecryptionRejected="Decryption Rejected",e.DecryptionRequested="Decryption Requested",e.DisablingNotifications="Notifications Disabled",e.EmptyBuyBannerDisplayed="Empty Buy Banner Displayed",e.EmptyBuyBannerClosed="Empty Buy Banner Closed",e.EmptyBuyBannerClicked="Empty Buy Banner Clicked",e.EmptyReceiveBannerDisplayed="Empty Receive Banner Displayed",e.EmptyReceiveBannerClicked="Empty Receive Banner Clicked",e.EmptyNftsBannerDisplayed="Empty NFTs Banner Displayed",e.EmptyNftsBannerClicked="Empty NFTs Banner Clicked",e.EnablingNotifications="Notifications Enabled",e.EncryptionPublicKeyApproved="Encryption Approved",e.EncryptionPublicKeyRejected="Encryption Rejected",e.EncryptionPublicKeyRequested="Encryption Requested",e.ErrorOccured="Error occured",e.ExternalLinkClicked="External Link Clicked",e.ImportSecretRecoveryPhraseClicked="Import Secret Recovery Phrase Clicked",e.KeyExportSelected="Key Export Selected",e.KeyExportRequested="Key Export Requested",e.KeyExportFailed="Key Export Failed",e.KeyExportCanceled="Key Export Canceled",e.KeyExportRevealed="Key Material Revealed",e.KeyExportCopied="Key Material Copied",e.KeyTokenDetectionSelected="Key Token Detection Selected",e.KeyGlobalSecurityToggleSelected="Key Global Security/Privacy Settings",e.KeyBalanceTokenPriceChecker="Key Show Balance and Token Price Checker Settings",e.KeyGasFeeEstimationBuySwapTokens="Key Show Gas Fee Estimation, Buy Crypto and Swap Tokens",e.KeyAutoDetectTokens="Key Autodetect tokens",e.KeyBatchAccountBalanceRequests="Key Batch account balance requests",e.MarkAllNotificationsRead="Notifications Marked All as Read",e.MetricsOptIn="Metrics Opt In",e.MetricsOptOut="Metrics Opt Out",e.MetricsDataDeletionRequest="Delete MetaMetrics Data Request Submitted",e.NavAccountMenuOpened="Account Menu Opened",e.NavConnectedSitesOpened="Connected Sites Opened",e.NavMainMenuOpened="Main Menu Opened",e.NavPermissionsOpened="Permissions Opened",e.UpdatePermissionedNetworks="Update Permissioned Networks",e.UpdatePermissionedAccounts="Update Permissioned Accounts",e.ViewPermissionedNetworks="View Permissioned Networks",e.ViewPermissionedAccounts="View Permissioned Accounts",e.NavNetworkMenuOpened="Network Menu Opened",e.NavSettingsOpened="Settings Opened",e.NavAccountSwitched="Account Switched",e.NavNetworkSwitched="Network Switched",e.NavBuyButtonClicked="Buy Button Clicked",e.NavSendButtonClicked="Send Button Clicked",e.NavSwapButtonClicked="Swap Button Clicked",e.NavReceiveButtonClicked="Receive Button Clicked",e.NftAdded="NFT Added",e.OnboardingWalletCreationStarted="Wallet Setup Selected",e.OnboardingWalletImportStarted="Wallet Import Started",e.OnboardingWalletCreationAttempted="Wallet Password Created",e.OnboardingWalletSecurityStarted="SRP Backup Selected",e.OnboardingWalletSecuritySkipInitiated="SRP Skip Backup Selected",e.OnboardingWalletSecuritySkipConfirmed="SRP Backup Skipped",e.OnboardingWalletSecuritySkipCanceled="SRP Skip Backup Canceled",e.OnboardingWalletSecurityPhraseRevealed="SRP Revealed",e.OnboardingWalletSecurityPhraseWrittenDown="SRP Backup Confirm Display",e.OnboardingWalletSecurityPhraseConfirmed="SRP Backup Confirmed",e.OnboardingWalletCreationComplete="Wallet Created",e.OnboardingWalletAdvancedSettings="Settings Updated",e.OnboardingWalletImportAttempted="Wallet Import Attempted",e.OnboardingWalletVideoPlay="SRP Intro Video Played",e.OnboardingTwitterClick="External Link Clicked",e.OnboardingWalletSetupComplete="Wallet Setup Complete",e.OnrampProviderSelected="On-ramp Provider Selected",e.PermissionsApproved="Permissions Approved",e.PermissionsRejected="Permissions Rejected",e.PermissionsRequested="Permissions Requested",e.PetnameCreated="Petname Created",e.PetnameDeleted="Petname Deleted",e.PetnameDisplayed="Petname Displayed",e.PetnameModalOpened="Petname Modal Opened",e.PetnameUpdated="Petname Updated",e.PhishingPageDisplayed="Phishing Page Displayed",e.ProceedAnywayClicked="Proceed Anyway Clicked",e.PortfolioLinkClicked="Portfolio Link Clicked",e.ProviderMethodCalled="Provider Method Called",e.PublicAddressCopied="Public Address Copied",e.QuoteError="Quote Error",e.SecretRecoveryPhrasePickerClicked="Secret Recovery Phrase Picker Clicked",e.SecretRecoveryPhrasePickerDetailsClicked="Secret Recovery Phrase Details Clicked",e.SecretRecoveryPhrasePickerSelected="Secret Recovery Phrase Picker Selected",e.SettingsUpdated="Settings Updated",e.SignatureApproved="Signature Approved",e.SignatureFailed="Signature Failed",e.SignatureRejected="Signature Rejected",e.SignatureRequested="Signature Requested",e.SignatureApprovedAnon="Signature Approved Anon",e.SignatureRejectedAnon="Signature Rejected Anon",e.SignatureRequestedAnon="Signature Requested Anon",e.SimulationFails="Simulation Fails",e.SimulationIncompleteAssetDisplayed="Incomplete Asset Displayed",e.SrpRevealStarted="Reveal SRP Initiated",e.SrpRevealClicked="Clicked Reveal Secret Recovery",e.SrpRevealViewed="Views Reveal Secret Recovery",e.SrpRevealBackButtonClicked="Clicked Back on Reveal SRP Password Page",e.SrpRevealCancelled="Reveal SRP Cancelled",e.SrpRevealCancelButtonClicked="Clicks Cancel on Reveal Secret Recovery Phrase Page",e.SrpRevealCloseClicked="Clicks CLOSE with SRP",e.SrpRevealNextClicked="Clicks Next on Reveal Secret Recovery Phrase",e.SrpHoldToRevealClickStarted="Reveal SRP Click Started",e.SrpHoldToRevealCloseClicked="Closes Hold To Reveal SRP",e.SrpHoldToRevealCompleted="Reveal SRP Completed",e.SrpViewsSrpQR="Views SRP QR Code",e.SrpViewSrpText="Views SRP",e.SrpCopiedToClipboard="Copies SRP to clipboard",e.SrpToConfirmBackup="SRP Backup Confirm Displayed",e.StakingEntryPointClicked="Stake Button Clicked",e.SurveyToast="Survey Toast",e.SupportLinkClicked="Support Link Clicked",e.TermsOfUseShown="Terms of Use Shown",e.TermsOfUseAccepted="Terms of Use Accepted",e.TokenImportButtonClicked="Import Token Button Clicked",e.TokenScreenOpened="Token Screen Opened",e.TokenAdded="Token Added",e.TokenRemoved="Token Removed",e.TokenSortPreference="Token Sort Preference",e.TokenListRefreshed="Token List Refreshed",e.NFTRemoved="NFT Removed",e.TokenDetected="Token Detected",e.TokenHidden="Token Hidden",e.TokenImportCanceled="Token Import Canceled",e.TokenImportClicked="Token Import Clicked",e.ShowNativeTokenAsMainBalance="Show native token as main balance",e.WalletSetupStarted="Wallet Setup Selected",e.WalletSetupCanceled="Wallet Setup Canceled",e.WalletSetupFailed="Wallet Setup Failed",e.WalletCreated="Wallet Created",e.WatchEthereumAccountsToggled="Watch Ethereum Accounts Toggled",e.AccountDetailMenuOpened="Account Details Menu Opened",e.BlockExplorerLinkClicked="Block Explorer Clicked",e.AccountRemoved="Account Removed",e.AccountRemoveFailed="Account Remove Failed",e.TestNetworksDisplayed="Test Networks Displayed",e.AddNetworkButtonClick="Add Network Button Clicked",e.CustomNetworkAdded="Custom Network Added",e.TokenDetailsOpened="Token Details Opened",e.NftScreenOpened="NFT Screen Opened",e.NftDetailsOpened="NFT Details Opened",e.ActivityScreenOpened="Activity Screen Opened",e.WhatsNewViewed="What's New Viewed",e.WhatsNewClicked="What's New Link Clicked",e.PrepareSwapPageLoaded="Prepare Swap Page Loaded",e.QuotesRequested="Quotes Requested",e.QuotesReceived="Quotes Received",e.BestQuoteReviewed="Best Quote Reviewed",e.AllAvailableQuotesOpened="All Available Quotes Opened",e.SwapStarted="Swap Started",e.TransactionAdded="Transaction Added",e.TransactionSubmitted="Transaction Submitted",e.TransactionApproved="Transaction Approved",e.SwapCompleted="Swap Completed",e.TransactionFinalized="Transaction Finalized",e.ConfirmationQueued="Confirmation Queued",e.ExitedSwaps="Exited Swaps",e.MakeAnotherSwap="Make Another Swap",e.SwapError="Swap Error",e.SwapFailed="Swap Failed",e.SnapInstallStarted="Snap Install Started",e.SnapInstallFailed="Snap Install Failed",e.SnapInstallRejected="Snap Install Rejected",e.SnapInstalled="Snap Installed",e.SnapUninstalled="Snap Uninstalled",e.SnapUpdateStarted="Snap Update Started",e.SnapUpdateRejected="Snap Update Rejected",e.SnapUpdateFailed="Snap Update Failed",e.SnapUpdated="Snap Updated",e.SnapExportUsed="Snap Export Used",e.InsightSnapViewed="Insight Snap Viewed",e.AddSnapAccountEnabled="Add Snap Account Enabled",e.AddSnapAccountViewed="Add Snap Account Viewed",e.AddSnapAccountConfirmed="Add Snap Account Confirmed",e.AddSnapAccountCanceled="Add Snap Account Canceled",e.AddSnapAccountSuccessViewed="Add Snap Account Success Viewed",e.AddSnapAccountSuccessClicked="Add Snap Account Success Clicked",e.RemoveSnapAccountViewed="Remove Snap Account Viewed",e.RemoveSnapAccountConfirmed="Remove Snap Account Confirmed",e.RemoveSnapAccountCanceled="Remove Snap Account Canceled",e.RemoveSnapAccountSuccessViewed="Remove Snap Account Success Viewed",e.RemoveSnapAccountSuccessClicked="Remove Snap Account Success Clicked",e.SnapAccountTransactionLoadingViewed="Snap Account Transaction Loading Viewed",e.SnapAccountTransactionFinalizeViewed="Snap Account Transaction Finalize Viewed",e.SnapAccountTransactionFinalizeRedirectGoToSiteClicked='Snap Account Transaction Finalize Redirect "Go To Site" Clicked',e.SnapAccountTransactionFinalizeRedirectSnapUrlClicked='Snap Account Transaction Finalize Redirect "Snap URL" Clicked',e.SnapAccountTransactionFinalizeClosed="Snap Account Transaction Finalize Closed",e.TurnOnMetaMetrics="MetaMetrics Turned On",e.TurnOffMetaMetrics="MetaMetrics Turned Off",e.NotificationClicked="Notification Clicked",e.NotificationDetailClicked="Notification Detail Clicked",e.NotificationsMenuOpened="Notifications Menu Opened",e.NotificationsSettingsUpdated="Notifications Settings Updated",e.NotificationsActivated="Notifications Activated",e.PushNotificationReceived="Push Notification Received",e.PushNotificationClicked="Push Notification Clicked",e.sendAssetSelected="Send Asset Selected",e.sendFlowExited="Send Flow Exited",e.sendRecipientSelected="Send Recipient Selected",e.sendSwapQuoteError="Send Swap Quote Error",e.sendSwapQuoteRequested="Send Swap Quote Requested",e.sendSwapQuoteReceived="Send Swap Quote Received",e.sendTokenModalOpened="Send Token Modal Opened",e.ActionCompleted="Action Completed",e.ActionFailed="Action Failed",e.ActionOpened="Action Opened",e.ActionSubmitted="Action Submitted",e.AllQuotesOpened="All Quotes Opened",e.AllQuotesSorted="All Quotes Sorted",e.InputChanged="Input Changed",e.InputSourceDestinationFlipped="Source and Destination Flipped",e.CrossChainSwapsQuoteError="Cross-chain Quote Error",e.QuoteSelected="Quote Selected",e.CrossChainSwapsQuotesReceived="Cross-chain Quotes Received",e.CrossChainSwapsQuotesRequested="Cross-chain Quotes Requested",e.Wallet5792Called="EIP-5792 API Called",e}({}),r.MetaMetricsEventAccountType=function(e){return e.Default="metamask",e.Hardware="hardware",e.Imported="imported",e.Snap="snap",e}({}),r.QueueType=function(e){return e.NavigationHeader="navigation_header",e.QueueController="queue_controller",e}({}),r.MetaMetricsEventAccountImportType=function(e){return e.Json="json",e.PrivateKey="private_key",e.Srp="srp",e}({}),r.MetaMetricsEventCategory=function(e){return e.Accounts="Accounts",e.App="App",e.Auth="Auth",e.Background="Background",e.Banner="Banner",e.Error="Error",e.Footer="Footer",e.Home="Home",e.InpageProvider="inpage_provider",e.Keys="Keys",e.Messages="Messages",e.Navigation="Navigation",e.Network="Network",e.Onboarding="Onboarding",e.NotificationInteraction="Notification Interaction",e.NotificationsActivationFlow="Notifications Activation Flow",e.NotificationSettings="Notification Settings",e.Petnames="Petnames",e.Permissions="Permissions",e.Phishing="Phishing",e.ProfileSyncing="Profile Syncing",e.PushNotifications="Notifications",e.Retention="Retention",e.Send="Send",e.Settings="Settings",e.Feedback="Feedback",e.Snaps="Snaps",e.Swaps="Swaps",e.Tokens="Tokens",e.Transactions="Transactions",e.Wallet="Wallet",e.Confirmations="Confirmations",e.CrossChainSwaps="Cross Chain Swaps",e}({}),r.MetaMetricsEventLinkType=function(e){return e.AccountTracker="Account Tracker",e.BlockExplorer="Block Explorer",e.TokenTracker="Token Tracker",e.TransactionBlockExplorer="Transaction Block Explorer",e}({}),r.MetaMetricsEventKeyType=function(e){return e.Pkey="private_key",e.Srp="srp",e}({}),r.MetaMetricsEventErrorType=function(e){return e.InsufficientGas="insufficient_gas",e.GasTimeout="gas_timeout",e}({}),r.MetaMetricsNetworkEventSource=function(e){return e.CustomNetworkForm="custom_network_form",e.PopularNetworkList="popular_network_list",e.Dapp="dapp",e.DeprecatedNetworkModal="deprecated_network_modal",e.NewAddNetworkFlow="new_add_network_flow",e.Bridge="bridge",e}({}),r.MetaMetricsSwapsEventSource=function(e){return e.MainView="Main View",e.TokenView="Token View",e}({}),r.MetaMetricsTokenEventSource=function(e){return e.Custom="custom",e.Dapp="dapp",e.Detected="detected",e.List="list",e}({}),r.MetaMetricsTransactionEventSource=function(e){return e.Dapp="dapp",e.User="user",e}({}),r.MetaMetricsEventLocation=function(e){return e.AlertFrictionModal="alert_friction_modal",e.Confirmation="confirmation",e.OriginThrottleModal="origin_throttle_modal",e.SignatureConfirmation="signature_confirmation",e.TokenDetails="token_details",e.TokenDetection="token_detection",e.TokenMenu="token_menu",e.Transaction="transaction",e}({}),r.MetaMetricsEventUiCustomization=function(e){return e.FlaggedAsMalicious="flagged_as_malicious",e.FlaggedAsSafetyUnknown="flagged_as_safety_unknown",e.FlaggedAsWarning="flagged_as_warning",e.GasEstimationFailed="gas_estimation_failed",e.Order="order",e.RedesignedConfirmation="redesigned_confirmation",e.SecurityAlertError="security_alert_error",e.Siwe="sign_in_with_ethereum",e.Permit="permit",e}({}),r.MetaMetricsContextProp=function(e){return e.PageTitle="location",e}({}),r.DeleteRegulationStatus=function(e){return e.Failed="FAILED",e.Finished="FINISHED",e.Initialized="INITIALIZED",e.Invalid="INVALID",e.NotSupported="NOT_SUPPORTED",e.PartialSuccess="PARTIAL_SUCCESS",e.Running="RUNNING",e.Unknown="UNKNOWN",e}({}),r.MetaMetricsEventTransactionEstimateType=function(e){return e.DappProposed="dapp_proposed",e.DefaultEstimate="default_estimate",e}({})}}},{package:"$root$",file:"shared/constants/metametrics.ts"}],[5732,{"./networks":5733},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.MultichainNativeAssets=r.MULTICHAIN_NETWORK_TO_ASSET_TYPES=r.MULTICHAIN_NATIVE_CURRENCY_TO_CAIP19=void 0;var n=e("./networks");r.MULTICHAIN_NATIVE_CURRENCY_TO_CAIP19={BTC:`${n.MultichainNetworks.BITCOIN}/slip44:0`,SOL:`${n.MultichainNetworks.SOLANA}/slip44:501`};let o=r.MultichainNativeAssets=function(e){return e.BITCOIN=`${n.MultichainNetworks.BITCOIN}/slip44:0`,e.BITCOIN_TESTNET=`${n.MultichainNetworks.BITCOIN_TESTNET}/slip44:0`,e.SOLANA=`${n.MultichainNetworks.SOLANA}/slip44:501`,e.SOLANA_DEVNET=`${n.MultichainNetworks.SOLANA_DEVNET}/slip44:501`,e.SOLANA_TESTNET=`${n.MultichainNetworks.SOLANA_TESTNET}/slip44:501`,e}({});r.MULTICHAIN_NETWORK_TO_ASSET_TYPES={[n.MultichainNetworks.SOLANA]:[o.SOLANA],[n.MultichainNetworks.SOLANA_TESTNET]:[o.SOLANA_TESTNET],[n.MultichainNetworks.SOLANA_DEVNET]:[o.SOLANA_DEVNET],[n.MultichainNetworks.BITCOIN]:[o.BITCOIN],[n.MultichainNetworks.BITCOIN_TESTNET]:[o.BITCOIN_TESTNET]}}}},{package:"$root$",file:"shared/constants/multichain/assets.ts"}],[5733,{"../../lib/multichain/accounts":5767,"@metamask/keyring-api":1983},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.SOLANA_TOKEN_IMAGE_URL=r.SOLANA_BLOCK_EXPLORER_URL=r.MultichainNetworks=r.MULTICHAIN_TOKEN_IMAGE_MAP=r.MULTICHAIN_PROVIDER_CONFIGS=r.MULTICHAIN_NETWORK_TO_NICKNAME=r.MULTICHAIN_NETWORK_BLOCK_EXPLORER_FORMAT_URLS_MAP=r.MULTICHAIN_ACCOUNT_TYPE_TO_MAINNET=r.BITCOIN_TOKEN_IMAGE_URL=r.BITCOIN_TESTNET_TOKEN_IMAGE_URL=r.BITCOIN_BLOCK_EXPLORER_URL=void 0;var n=e("@metamask/keyring-api"),o=e("../../lib/multichain/accounts");let i=r.MultichainNetworks=function(e){return e.BITCOIN="bip122:000000000019d6689c085ae165831e93",e.BITCOIN_TESTNET="bip122:000000000933ea01ad0ee984209779ba",e.SOLANA="solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",e.SOLANA_DEVNET="solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1",e.SOLANA_TESTNET="solana:4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z",e}({});r.MULTICHAIN_ACCOUNT_TYPE_TO_MAINNET={[n.BtcAccountType.P2wpkh]:i.BITCOIN,[n.SolAccountType.DataAccount]:i.SOLANA},r.MULTICHAIN_NETWORK_TO_NICKNAME={[i.BITCOIN]:"Bitcoin",[i.BITCOIN_TESTNET]:"Bitcoin (testnet)",[i.SOLANA]:"Solana",[i.SOLANA_DEVNET]:"Solana (devnet)",[i.SOLANA_TESTNET]:"Solana (testnet)"};const s=r.BITCOIN_TOKEN_IMAGE_URL="./images/bitcoin-logo.svg",a=r.BITCOIN_TESTNET_TOKEN_IMAGE_URL="./images/bitcoin-testnet-logo.svg",c=r.SOLANA_TOKEN_IMAGE_URL="./images/solana-logo.svg",u=r.BITCOIN_BLOCK_EXPLORER_URL="https://mempool.space",l=r.SOLANA_BLOCK_EXPLORER_URL="https://solscan.io",f=r.MULTICHAIN_NETWORK_BLOCK_EXPLORER_FORMAT_URLS_MAP={[i.BITCOIN]:{url:u,address:`${u}/address/{address}`,transaction:`${u}/tx/{txId}`},[i.BITCOIN_TESTNET]:{url:u,address:`${u}/testnet/address/{address}`,transaction:`${u}/testnet/tx/{txId}`},[i.SOLANA]:{url:l,address:`${l}/account/{address}`,transaction:`${l}/tx/{txId}`},[i.SOLANA_DEVNET]:{url:l,address:`${l}/account/{address}?cluster=devnet`,transaction:`${l}/tx/{txId}?cluster=devnet`},[i.SOLANA_TESTNET]:{url:l,address:`${l}/account/{address}?cluster=testnet`,transaction:`${l}/tx/{txId}?cluster=testnet`}},d=r.MULTICHAIN_TOKEN_IMAGE_MAP={[i.BITCOIN]:s,[i.BITCOIN_TESTNET]:a,[i.SOLANA]:c};r.MULTICHAIN_PROVIDER_CONFIGS={[i.BITCOIN]:{chainId:i.BITCOIN,rpcUrl:"",ticker:"BTC",nickname:"Bitcoin",id:"btc-mainnet",type:"rpc",decimals:8,rpcPrefs:{imageUrl:d[i.BITCOIN],blockExplorerUrl:f[i.BITCOIN].url},blockExplorerFormatUrls:f[i.BITCOIN],isAddressCompatible:o.isBtcMainnetAddress},[i.BITCOIN_TESTNET]:{chainId:i.BITCOIN_TESTNET,rpcUrl:"",ticker:"BTC",nickname:"Bitcoin (testnet)",id:"btc-testnet",type:"rpc",decimals:8,rpcPrefs:{imageUrl:d[i.BITCOIN_TESTNET],blockExplorerUrl:f[i.BITCOIN_TESTNET].url},blockExplorerFormatUrls:f[i.BITCOIN_TESTNET],isAddressCompatible:o.isBtcTestnetAddress},[i.SOLANA]:{chainId:i.SOLANA,rpcUrl:"",ticker:"SOL",nickname:"Solana",id:"solana-mainnet",type:"rpc",decimals:5,rpcPrefs:{imageUrl:d[i.SOLANA],blockExplorerUrl:f[i.SOLANA].url},blockExplorerFormatUrls:f[i.SOLANA],isAddressCompatible:o.isSolanaAddress},[i.SOLANA_DEVNET]:{chainId:i.SOLANA_DEVNET,rpcUrl:"",ticker:"SOL",nickname:"Solana (devnet)",id:"solana-devnet",type:"rpc",decimals:5,rpcPrefs:{imageUrl:d[i.SOLANA],blockExplorerUrl:f[i.SOLANA_DEVNET].url},blockExplorerFormatUrls:f[i.SOLANA_DEVNET],isAddressCompatible:o.isSolanaAddress},[i.SOLANA_TESTNET]:{chainId:i.SOLANA_TESTNET,rpcUrl:"",ticker:"SOL",nickname:"Solana (testnet)",id:"solana-testnet",type:"rpc",decimals:5,rpcPrefs:{imageUrl:d[i.SOLANA],blockExplorerUrl:f[i.SOLANA_TESTNET].url},blockExplorerFormatUrls:f[i.SOLANA_TESTNET],isAddressCompatible:o.isSolanaAddress}}}}},{package:"$root$",file:"shared/constants/multichain/networks.ts"}],[5734,{"@metamask/network-controller":2176,lodash:4855},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.LOCALHOST_RPC_URL=r.LOCALHOST_DISPLAY_NAME=r.LISK_SEPOLIA_IMAGE_URL=r.LISK_SEPOLIA_DISPLAY_NAME=r.LISK_IMAGE_URL=r.LISK_DISPLAY_NAME=r.LINEA_SEPOLIA_TOKEN_IMAGE_URL=r.LINEA_SEPOLIA_RPC_URL=r.LINEA_SEPOLIA_DISPLAY_NAME=r.LINEA_MAINNET_TOKEN_IMAGE_URL=r.LINEA_MAINNET_RPC_URL=r.LINEA_MAINNET_DISPLAY_NAME=r.LINEA_GOERLI_TOKEN_IMAGE_URL=r.LINEA_GOERLI_RPC_URL=r.LINEA_GOERLI_DISPLAY_NAME=r.LIGHT_LINK_IMAGE_URL=r.LENS_NATIVE_TOKEN_IMAGE_URL=r.LENS_IMAGE_URL=r.LENS_DISPLAY_NAME=r.KROMA_MAINNET_IMAGE_URL=r.KCC_MAINNET_IMAGE_URL=r.KAIA_MAINNET_IMAGE_URL=r.IPFS_DEFAULT_GATEWAY_URL=r.IOTEX_TOKEN_IMAGE_URL=r.IOTEX_MAINNET_IMAGE_URL=r.INK_SEPOLIA_IMAGE_URL=r.INK_SEPOLIA_DISPLAY_NAME=r.INK_IMAGE_URL=r.INK_DISPLAY_NAME=r.INFURA_PROVIDER_TYPES=r.INFURA_BLOCKED_KEY=r.HARMONY_ONE_TOKEN_IMAGE_URL=r.HARMONY_DISPLAY_NAME=r.HAQQ_NETWORK_IMAGE_URL=r.GRAVITY_ALPHA_TESTNET_SEPOLIA_IMAGE_URL=r.GRAVITY_ALPHA_MAINNET_IMAGE_URL=r.GOERLI_RPC_URL=r.GOERLI_DISPLAY_NAME=r.GNOSIS_TOKEN_IMAGE_URL=r.GNOSIS_DISPLAY_NAME=r.FUSE_GOLD_MAINNET_IMAGE_URL=r.FUNKICHAIN_IMAGE_URL=r.FTM_TOKEN_IMAGE_URL=r.FLARE_MAINNET_IMAGE_URL=r.FILECOIN_MAINNET_IMAGE_URL=r.FEATURED_RPCS=r.FEATURED_NETWORK_CHAIN_IDS=r.FANTOM_DISPLAY_NAME=r.EVMOS_IMAGE_URL=r.ETH_TOKEN_IMAGE_URL=r.ETHERSCAN_SUPPORTED_NETWORKS=r.ETHEREUM_CLASSIC_MAINNET_IMAGE_URL=r.ENDURANCE_SMART_CHAIN_MAINNET_IMAGE_URL=r.DOGECHAIN_IMAGE_URL=r.DFK_CHAIN_IMAGE_URL=r.DEXALOT_SUBNET_IMAGE_URL=r.DEPRECATED_NETWORKS=r.DEFAULT_CUSTOM_TESTNET_MAP=r.CURRENCY_SYMBOLS=r.CRONOS_IMAGE_URL=r.CRONOS_DISPLAY_NAME=r.CORE_BLOCKCHAIN_MAINNET_IMAGE_URL=r.CONFLUX_ESPACE_IMAGE_URL=r.CHAIN_SPEC_URL=r.CHAIN_ID_TO_TYPE_MAP=r.CHAIN_ID_TO_RPC_URL_MAP=r.CHAIN_ID_TO_NETWORK_IMAGE_URL_MAP=r.CHAIN_ID_TO_GAS_LIMIT_BUFFER_MAP=r.CHAIN_ID_TO_ETHERS_NETWORK_NAME_MAP=r.CHAIN_ID_TO_CURRENCY_SYMBOL_MAP_NETWORK_COLLISION=r.CHAIN_ID_TO_CURRENCY_SYMBOL_MAP=r.CHAIN_ID_TOKEN_IMAGE_MAP=r.CHAIN_ID_PROFOLIO_LANDING_PAGE_URL_MAP=r.CHAIN_IDS=r.CHAINLIST_CURRENCY_SYMBOLS_MAP_NETWORK_COLLISION=r.CHAINLIST_CHAIN_IDS_MAP=r.CELO_TOKEN_IMAGE_URL=r.CELO_DISPLAY_NAME=r.CANTO_IMAGE_URL=r.BUILT_IN_NETWORKS=r.BUILT_IN_INFURA_NETWORKS=r.BSC_DISPLAY_NAME=r.BNB_TOKEN_IMAGE_URL=r.BNB_DISPLAY_NAME=r.BLACKFORT_IMAGE_URL=r.BERACHAIN_DISPLAY_NAME=r.BASE_TOKEN_IMAGE_URL=r.BASE_DISPLAY_NAME=r.BAHAMUT_IMAGE_URL=r.B3_IMAGE_URL=r.AVAX_TOKEN_IMAGE_URL=r.AVALANCHE_DISPLAY_NAME=r.AURORA_DISPLAY_NAME=r.ASTAR_IMAGE_URL=r.ARBITRUM_NOVA_IMAGE_URL=r.ARBITRUM_DISPLAY_NAME=r.APE_TOKEN_IMAGE_URL=r.APE_IMAGE_URL=r.AETH_TOKEN_IMAGE_URL=r.ACALA_TOKEN_IMAGE_URL=void 0,r.infuraProjectId=r.infuraChainIdsTestNets=r.getRpcUrl=r.allowedInfuraHosts=r.ZORA_MAINNET_IMAGE_URL=r.ZK_SYNC_ERA_TOKEN_IMAGE_URL=r.ZK_SYNC_ERA_DISPLAY_NAME=r.ZKEVM_MAINNET_IMAGE_URL=r.ZKATANA_MAINNET_IMAGE_URL=r.VELAS_EVM_MAINNET_IMAGE_URL=r.UNSUPPORTED_RPC_METHODS=r.UNICHAIN_IMAGE_URL=r.TEST_NETWORK_TICKER_MAP=r.TEST_NETWORK_IDS=r.TEST_NETWORKS=r.TEST_ETH_TOKEN_IMAGE_URL=r.TEST_CHAINS=r.TENET_MAINNET_IMAGE_URL=r.TELOS_EVM_MAINNET_IMAGE_URL=r.STEP_NETWORK_IMAGE_URL=r.SONIC_MAINNET_IMAGE_URL=r.SONGBIRD_MAINNET_IMAGE_URL=r.SONEIUM_IMAGE_URL=r.SONEIUM_DISPLAY_NAME=r.SHIB_MAINNET_IMAGE_URL=r.SHARDEUM_SPHINX_1X_IMAGE_URL=r.SHARDEUM_LIBERTY_2X_IMAGE_URL=r.SHAPE_SEPOLIA_IMAGE_URL=r.SHAPE_SEPOLIA_DISPLAY_NAME=r.SHAPE_IMAGE_URL=r.SHAPE_DISPLAY_NAME=r.SEPOLIA_RPC_URL=r.SEPOLIA_DISPLAY_NAME=r.SEI_IMAGE_URL=r.SCROLL_SEPOLIA_DISPLAY_NAME=r.SCROLL_IMAGE_URL=r.SCROLL_DISPLAY_NAME=r.PULSECHAIN_MAINNET_IMAGE_URL=r.POL_TOKEN_IMAGE_URL=r.POLYGON_ZKEVM_DISPLAY_NAME=r.POLYGON_DISPLAY_NAME=r.PGN_MAINNET_IMAGE_URL=r.PALM_TOKEN_IMAGE_URL=r.PALM_DISPLAY_NAME=r.OP_BNB_DISPLAY_NAME=r.OPTIMISM_TOKEN_IMAGE_URL=r.OPTIMISM_DISPLAY_NAME=r.OKXCHAIN_MAINNET_IMAGE_URL=r.OASYS_MAINNET_IMAGE_URL=r.NetworkStatus=r.NUMBERS_TOKEN_IMAGE_URL=r.NUMBERS_MAINNET_IMAGE_URL=r.NON_EVM_CURRENCY_SYMBOLS=r.NETWORK_TYPES=r.NETWORK_TO_NAME_MAP=r.NETWORK_NAMES=r.NEBULA_MAINNET_IMAGE_URL=r.NEAR_IMAGE_URL=r.NEAR_AURORA_MAINNET_IMAGE_URL=r.MOONRIVER_TOKEN_IMAGE_URL=r.MOONRIVER_IMAGE_URL=r.MOONRIVER_DISPLAY_NAME=r.MOONBEAM_TOKEN_IMAGE_URL=r.MOONBEAM_IMAGE_URL=r.MOONBEAM_DISPLAY_NAME=r.MODE_SEPOLIA_IMAGE_URL=r.MODE_SEPOLIA_DISPLAY_NAME=r.MODE_IMAGE_URL=r.MODE_DISPLAY_NAME=r.METACHAIN_ONE_DISPLAY_NAME=r.MEGAETH_TESTNET_RPC_URL=r.MEGAETH_TESTNET_IMAGE_URL=r.MEGAETH_TESTNET_DISPLAY_NAME=r.MAX_SAFE_CHAIN_ID=r.MANTLE_MAINNET_IMAGE_URL=r.MANTA_PACIFIC_MAINNET_IMAGE_URL=r.MAINNET_RPC_URL=r.MAINNET_DISPLAY_NAME=r.MAINNET_CHAINS=void 0;var n=e("@metamask/network-controller"),o=e("lodash");const i=r.NETWORK_TYPES={GOERLI:"goerli",LOCALHOST:"localhost",MAINNET:"mainnet",RPC:"rpc",SEPOLIA:"sepolia",LINEA_GOERLI:"linea-goerli",LINEA_SEPOLIA:"linea-sepolia",LINEA_MAINNET:"linea-mainnet",MEGAETH_TESTNET:"megaeth-testnet"},s=r.NETWORK_NAMES={HOMESTEAD:"homestead"},a=(r.CHAIN_SPEC_URL="https://chainid.network/chains.json",r.CHAIN_IDS={MAINNET:"0x1",GOERLI:"0x5",LOCALHOST:"0x539",BSC:"0x38",BSC_TESTNET:"0x61",OPTIMISM:"0xa",OPTIMISM_TESTNET:"0xaa37dc",OPTIMISM_GOERLI:"0x1a4",BASE:"0x2105",BASE_TESTNET:"0x14a33",OPBNB:"0xcc",OPBNB_TESTNET:"0x15eb",POLYGON:"0x89",POLYGON_TESTNET:"0x13881",AVALANCHE:"0xa86a",AVALANCHE_TESTNET:"0xa869",FANTOM:"0xfa",FANTOM_TESTNET:"0xfa2",CELO:"0xa4ec",ARBITRUM:"0xa4b1",HARMONY:"0x63564c40",PALM:"0x2a15c308d",SEPOLIA:"0xaa36a7",HOLESKY:"0x4268",LINEA_GOERLI:"0xe704",LINEA_SEPOLIA:"0xe705",AMOY:"0x13882",BASE_SEPOLIA:"0x14a34",BLAST_SEPOLIA:"0xa0c71fd",OPTIMISM_SEPOLIA:"0xaa37dc",PALM_TESTNET:"0x2a15c3083",CELO_TESTNET:"0xaef3",ZK_SYNC_ERA_TESTNET:"0x12c",MANTA_SEPOLIA:"0x138b",UNICHAIN:"0x82",UNICHAIN_SEPOLIA:"0x515",LINEA_MAINNET:"0xe708",AURORA:"0x4e454152",MOONBEAM:"0x504",MOONBEAM_TESTNET:"0x507",MOONRIVER:"0x505",CRONOS:"0x19",GNOSIS:"0x64",ZKSYNC_ERA:"0x144",TEST_ETH:"0x539",ARBITRUM_GOERLI:"0x66eed",BLAST:"0x13e31",FILECOIN:"0x13a",POLYGON_ZKEVM:"0x44d",SCROLL:"0x82750",SCROLL_SEPOLIA:"0x8274f",WETHIO:"0x4e",CHZ:"0x15b38",NUMBERS:"0x290b",SEI:"0x531",APE_TESTNET:"0x8157",APE_MAINNET:"0x8173",BERACHAIN:"0x138d5",METACHAIN_ONE:"0x1b6e6",ARBITRUM_SEPOLIA:"0x66eee",NEAR:"0x18d",NEAR_TESTNET:"0x18e",B3:"0x208d",B3_TESTNET:"0x7c9",GRAVITY_ALPHA_MAINNET:"0x659",GRAVITY_ALPHA_TESTNET_SEPOLIA:"0x34c1",LISK:"0x46f",LISK_SEPOLIA:"0x106a",INK_SEPOLIA:"0xba5eD",INK:"0xdef1",MODE_SEPOLIA:"0x397",MODE:"0x868b",MEGAETH_TESTNET:"0x18c6",LENS:"0xe8"}),c=r.CHAINLIST_CHAIN_IDS_MAP={...a,SCROLL:"0x82750",TAIKO_JOLNIR_L2_MAINNET:"0x28c5f",FANTOM_OPERA:"0xfa",CELO_MAINNET:"0xa4ec",KAVA_EVM:"0x8ae",HARMONY_MAINNET_SHARD_0:"0x63564c40",CRONOS_MAINNET_BETA:"0x19",Q_MAINNET:"0x8a71",HUOBI_ECO_CHAIN_MAINNET:"0x80",ACALA_NETWORK:"0x313",ARBITRUM_NOVA:"0xa4ba",ASTAR:"0x250",BAHAMUT_MAINNET:"0x142d",BLACKFORT_EXCHANGE_NETWORK:"0x1387",CANTO:"0x1e14",CONFLUX_ESPACE:"0x406",CORE_BLOCKCHAIN_MAINNET:"0x45c",DEXALOT_SUBNET:"0x6984c",DFK_CHAIN:"0xd2af",DOGECHAIN_MAINNET:"0x7d0",ENDURANCE_SMART_CHAIN_MAINNET:"0x288",ETHEREUM_CLASSIC_MAINNET:"0x3d",EVMOS:"0x2329",FLARE_MAINNET:"0xe",FUSE_GOLD_MAINNET:"0x7a",HAQQ_NETWORK:"0x2be3",IOTEX_MAINNET:"0x1251",KCC_MAINNET:"0x141",KAIA_MAINNET:"0x2019",FUNKICHAIN:"0x84bb",KROMA_MAINNET:"0xff",LIGHTLINK_PHOENIX_MAINNET:"0x762",MANTA_PACIFIC_MAINNET:"0xa9",MANTLE:"0x1388",NEAR_AURORA_MAINNET:"0x4e454152",NEBULA_MAINNET:"0x585eb4b1",OASYS_MAINNET:"0xf8",OKXCHAIN_MAINNET:"0x42",PGN_PUBLIC_GOODS_NETWORK:"0x1a8",PULSECHAIN_MAINNET:"0x171",SHARDEUM_LIBERTY_2X:"0x1f91",SHARDEUM_SPHINX_1X:"0x1f92",SHIB_MAINNET:"0x1b",SONGBIRD_CANARY_NETWORK:"0x13",STEP_NETWORK:"0x4d2",TELOS_EVM_MAINNET:"0x28",TENET:"0x617",VELAS_EVM_MAINNET:"0x6a",ZKATANA:"0x133e40",ZORA_MAINNET:"0x76adf1",FILECOIN:"0x13a",NUMBERS:"0x290b",B3:"0x208d",B3_TESTNET:"0x7c9",APE:"0x8173",GRAVITY_ALPHA_MAINNET:"0x659",GRAVITY_ALPHA_TESTNET_SEPOLIA:"0x34c1",INK_SEPOLIA:"0xba5ed",INK:"0xdef1",SONIC_MAINNET:"0x92",SONEIUM_MAINNET:"0x74c",SONEIUM_TESTNET:"0x79a",MODE_SEPOLIA:"0x397",MODE:"0x868b",SHAPE_SEPOLIA:"0x2b03",SHAPE:"0x168"},u=(r.DEPRECATED_NETWORKS=[a.GOERLI,a.ARBITRUM_GOERLI,a.OPTIMISM_GOERLI,a.POLYGON_TESTNET,a.LINEA_GOERLI],r.MAX_SAFE_CHAIN_ID=0xfffffffffffec,r.MAINNET_DISPLAY_NAME="Ethereum Mainnet"),l=r.GOERLI_DISPLAY_NAME="Goerli",f=r.SEPOLIA_DISPLAY_NAME="Sepolia",d=r.LINEA_GOERLI_DISPLAY_NAME="Linea Goerli",h=r.LINEA_SEPOLIA_DISPLAY_NAME="Linea Sepolia",p=r.LINEA_MAINNET_DISPLAY_NAME="Linea Mainnet",m=r.LOCALHOST_DISPLAY_NAME="Localhost 8545",_=r.BSC_DISPLAY_NAME="Binance Smart Chain",g=r.POLYGON_DISPLAY_NAME="Polygon",E=r.AVALANCHE_DISPLAY_NAME="Avalanche Network C-Chain",A=r.ARBITRUM_DISPLAY_NAME="Arbitrum One",T=(r.BNB_DISPLAY_NAME="BNB Chain",r.OPTIMISM_DISPLAY_NAME="OP Mainnet"),b=(r.FANTOM_DISPLAY_NAME="Fantom Opera",r.HARMONY_DISPLAY_NAME="Harmony Mainnet Shard 0",r.PALM_DISPLAY_NAME="Palm",r.CELO_DISPLAY_NAME="Celo Mainnet",r.GNOSIS_DISPLAY_NAME="Gnosis",r.ZK_SYNC_ERA_DISPLAY_NAME="zkSync Era Mainnet"),y=r.BASE_DISPLAY_NAME="Base Mainnet",v=(r.AURORA_DISPLAY_NAME="Aurora Mainnet",r.CRONOS_DISPLAY_NAME="Cronos",r.POLYGON_ZKEVM_DISPLAY_NAME="Polygon zkEVM",r.MOONBEAM_DISPLAY_NAME="Moonbeam",r.MOONRIVER_DISPLAY_NAME="Moonriver",r.SCROLL_DISPLAY_NAME="Scroll"),I=r.SCROLL_SEPOLIA_DISPLAY_NAME="Scroll Sepolia",N=r.OP_BNB_DISPLAY_NAME="opBNB",w=r.BERACHAIN_DISPLAY_NAME="Berachain Artio",S=r.METACHAIN_ONE_DISPLAY_NAME="Metachain One Mainnet",O=r.MEGAETH_TESTNET_DISPLAY_NAME="Mega Testnet",R=r.LISK_DISPLAY_NAME="Lisk",C=r.LISK_SEPOLIA_DISPLAY_NAME="Lisk Sepolia",M=(r.INK_SEPOLIA_DISPLAY_NAME="Ink Sepolia",r.INK_DISPLAY_NAME="Ink Mainnet",r.SONEIUM_DISPLAY_NAME="Soneium Mainnet",r.MODE_SEPOLIA_DISPLAY_NAME="Mode Sepolia",r.MODE_DISPLAY_NAME="Mode Mainnet",r.SHAPE_SEPOLIA_DISPLAY_NAME="Shape Sepolia",r.SHAPE_DISPLAY_NAME="Shape",r.LENS_DISPLAY_NAME="Lens"),P=r.infuraProjectId="b6bf7d3508c941499b10025c0776eaf8",L=({network:e,excludeProjectId:t=!1})=>`https://${e}.infura.io/v3/${t?"":P}`;r.getRpcUrl=L;const k=r.MAINNET_RPC_URL=L({network:i.MAINNET}),x=r.GOERLI_RPC_URL=L({network:i.GOERLI}),D=r.SEPOLIA_RPC_URL=L({network:i.SEPOLIA}),j=r.LINEA_GOERLI_RPC_URL=L({network:i.LINEA_GOERLI}),U=r.LINEA_SEPOLIA_RPC_URL=L({network:i.LINEA_SEPOLIA}),B=r.LINEA_MAINNET_RPC_URL=L({network:i.LINEA_MAINNET}),H=r.LOCALHOST_RPC_URL="http://localhost:8545",F=r.MEGAETH_TESTNET_RPC_URL="https://carrot.megaeth.com/rpc",G=r.CURRENCY_SYMBOLS={ARBITRUM:"ETH",AVALANCHE:"AVAX",BNB:"BNB",BUSD:"BUSD",CELO:"CELO",DAI:"DAI",GNOSIS:"XDAI",ETH:"ETH",FANTOM:"FTM",HARMONY:"ONE",PALM:"PALM",MATIC:"MATIC",POL:"POL",TEST_ETH:"TESTETH",USDC:"USDC",USDT:"USDT",WETH:"WETH",OPTIMISM:"ETH",CRONOS:"CRO",GLIMMER:"GLMR",MOONRIVER:"MOVR",ONE:"ONE",LENS:"GHO"},K=r.NON_EVM_CURRENCY_SYMBOLS={BTC:"BTC",SOL:"SOL"},$={...G,...K,BASE:"ETH",LINEA_MAINNET:"ETH",OPBNB:"BNB",ZKSYNC_ERA:"ETH",SCROLL:"ETH",ZORA_MAINNET:"ETH",TAIKO_JOLNIR_L2_MAINNET:"ETH",POLYGON_ZKEVM:"ETH",FANTOM_OPERA:"FTM",CELO_MAINNET:"CELO",ARBITRUM_NOVA:"ETH",MANTLE:"MNT",CORE_BLOCKCHAIN_MAINNET:"CORE",MANTA_PACIFIC_MAINNET:"ETH",PULSECHAIN_MAINNET:"PLS",MOONBEAM:"GLMR",FUSE_GOLD_MAINNET:"FUSE",KAVA_EVM:"KAVA",DFK_CHAIN:"JEWEL",HARMONY_MAINNET_SHARD_0:"ONE",PGN_PUBLIC_GOODS_NETWORK:"ETH",LIGHTLINK_PHOENIX_MAINNET:"ETH",NEAR_AURORA_MAINNET:"ETH",KROMA_MAINNET:"ETH",NEBULA_MAINNET:"sFUEL",KAIA_MAINNET:"KAIA",FUNKICHAIN:"ETH",ENDURANCE_SMART_CHAIN_MAINNET:"ACE",CRONOS_MAINNET_BETA:"CRO",FLARE_MAINNET:"FLR",KCC_MAINNET:"KCS",SHARDEUM_SPHINX_1X:"SHM",ETHEREUM_CLASSIC_MAINNET:"ETC",HAQQ_NETWORK:"ISLM",SHARDEUM_LIBERTY_2X:"SHM",BLACKFORT_EXCHANGE_NETWORK:"BXN",CONFLUX_ESPACE:"CFX",CANTO:"CANTO",SHIB_MAINNET:"SHIB",OKXCHAIN_MAINNET:"OKT",ZKATANA:"ETH",DEXALOT_SUBNET:"ALOT",ASTAR:"ASTR",EVMOS:"EVMOS",BAHAMUT_MAINNET:"FTN",SONGBIRD_CANARY_NETWORK:"SGB",STEP_NETWORK:"FITFI",VELAS_EVM_MAINNET:"VLX",Q_MAINNET:"QGOV",TELOS_EVM_MAINNET:"TLOS",TENET:"TENET",DOGECHAIN_MAINNET:"DOGE",OASYS_MAINNET:"OAS",HUOBI_ECO_CHAIN_MAINNET:"HT",ACALA_NETWORK:"ACA",IOTEX_MAINNET:"IOTX",APE:"APE",SONIC_MAINNET:"S",LISK:"ETH",SONEIUM_MAINNET:"ETH",SONEIUM_TESTNET:"ETH",MODE:"ETH",SHAPE:"ETH",SHAPE_SEPOLIA:"ETH"},W=r.CHAINLIST_CURRENCY_SYMBOLS_MAP_NETWORK_COLLISION={WETHIO:"ZYN",CHZ:"CHZ"},V=r.ETH_TOKEN_IMAGE_URL="./images/eth_logo.svg",Y=r.LINEA_GOERLI_TOKEN_IMAGE_URL="./images/linea-logo-testnet.png",q=r.LINEA_SEPOLIA_TOKEN_IMAGE_URL="./images/linea-logo-testnet.png",z=r.LINEA_MAINNET_TOKEN_IMAGE_URL="./images/linea-logo-mainnet.svg",X=r.TEST_ETH_TOKEN_IMAGE_URL="./images/black-eth-logo.svg",Z=r.BNB_TOKEN_IMAGE_URL="./images/bnb.svg",J=r.POL_TOKEN_IMAGE_URL="./images/pol-token.svg",Q=r.AVAX_TOKEN_IMAGE_URL="./images/avax-token.svg",ee=r.AETH_TOKEN_IMAGE_URL="./images/arbitrum.svg",te=r.FTM_TOKEN_IMAGE_URL="./images/fantom-opera.svg",re=r.HARMONY_ONE_TOKEN_IMAGE_URL="./images/harmony-one.svg",ne=r.OPTIMISM_TOKEN_IMAGE_URL="./images/optimism.svg",oe=r.PALM_TOKEN_IMAGE_URL="./images/palm.svg",ie=r.CELO_TOKEN_IMAGE_URL="./images/celo.svg",se=r.GNOSIS_TOKEN_IMAGE_URL="./images/gnosis.svg",ae=r.ZK_SYNC_ERA_TOKEN_IMAGE_URL="./images/zk-sync.svg",ce=r.BASE_TOKEN_IMAGE_URL="./images/base.svg",ue=r.ACALA_TOKEN_IMAGE_URL="./images/acala-network-logo.svg",le=r.ARBITRUM_NOVA_IMAGE_URL="./images/arbitrum-nova-logo.svg",fe=r.ASTAR_IMAGE_URL="./images/astar-logo.svg",de=r.BAHAMUT_IMAGE_URL="./images/bahamut.png",he=r.BLACKFORT_IMAGE_URL="./images/blackfort.png",pe=r.CANTO_IMAGE_URL="./images/canto.svg",me=r.CONFLUX_ESPACE_IMAGE_URL="./images/conflux.svg",_e=r.CORE_BLOCKCHAIN_MAINNET_IMAGE_URL="./images/core.svg",ge=r.CRONOS_IMAGE_URL="./images/cronos.svg",Ee=r.DEXALOT_SUBNET_IMAGE_URL="./images/dexalut-subnet.svg",Ae=r.DFK_CHAIN_IMAGE_URL="./images/dfk.png",Te=r.DOGECHAIN_IMAGE_URL="./images/dogechain.jpeg",be=r.ENDURANCE_SMART_CHAIN_MAINNET_IMAGE_URL="./images/endurance-smart-chain-mainnet.png",ye=r.ETHEREUM_CLASSIC_MAINNET_IMAGE_URL="./images/eth_classic.svg",ve=r.EVMOS_IMAGE_URL="./images/evmos.svg",Ie=r.FLARE_MAINNET_IMAGE_URL="./images/flare-mainnet.svg",Ne=r.FUSE_GOLD_MAINNET_IMAGE_URL="./images/fuse-mainnet.jpg",we=r.HAQQ_NETWORK_IMAGE_URL="./images/haqq.svg",Se=r.IOTEX_MAINNET_IMAGE_URL="./images/iotex.svg",Oe=r.IOTEX_TOKEN_IMAGE_URL="./images/iotex-token.svg",Re=r.APE_TOKEN_IMAGE_URL="./images/ape-token.svg",Ce=r.KCC_MAINNET_IMAGE_URL="./images/kcc-mainnet.svg",Me=r.KAIA_MAINNET_IMAGE_URL="./images/kaia.svg",Pe=r.FUNKICHAIN_IMAGE_URL="./images/funkichain.svg",Le=r.KROMA_MAINNET_IMAGE_URL="./images/kroma.svg",ke=r.LIGHT_LINK_IMAGE_URL="./images/lightlink.svg",xe=r.MANTA_PACIFIC_MAINNET_IMAGE_URL="./images/manta.svg",De=r.MANTLE_MAINNET_IMAGE_URL="./images/mantle.svg",je=r.MOONBEAM_IMAGE_URL="./images/moonbeam.svg",Ue=r.MOONRIVER_IMAGE_URL="./images/moonriver.svg",Be=r.MOONBEAM_TOKEN_IMAGE_URL="./images/moonbeam-token.svg",He=r.MOONRIVER_TOKEN_IMAGE_URL="./images/moonriver-token.svg",Fe=r.NEAR_AURORA_MAINNET_IMAGE_URL="./images/near-aurora.svg",Ge=r.NEBULA_MAINNET_IMAGE_URL="./images/nebula.svg",Ke=r.OASYS_MAINNET_IMAGE_URL="./images/oasys.svg",$e=r.OKXCHAIN_MAINNET_IMAGE_URL="./images/okx.svg",We=r.PGN_MAINNET_IMAGE_URL="./images/pgn.svg",Ve=r.ZKEVM_MAINNET_IMAGE_URL="./images/polygon-zkevm.svg",Ye=r.PULSECHAIN_MAINNET_IMAGE_URL="./images/pulse.svg",qe=r.SHARDEUM_LIBERTY_2X_IMAGE_URL="./images/shardeum-2.svg",ze=r.SHARDEUM_SPHINX_1X_IMAGE_URL="./images/shardeum-1.svg",Xe=r.SHIB_MAINNET_IMAGE_URL="./images/shiba.svg",Ze=r.SONGBIRD_MAINNET_IMAGE_URL="./images/songbird.svg",Je=r.STEP_NETWORK_IMAGE_URL="./images/step.svg",Qe=r.TELOS_EVM_MAINNET_IMAGE_URL="./images/telos.svg",et=r.TENET_MAINNET_IMAGE_URL="./images/tenet.svg",tt=r.VELAS_EVM_MAINNET_IMAGE_URL="./images/velas.svg",rt=r.ZKATANA_MAINNET_IMAGE_URL="./images/zkatana.png",nt=r.ZORA_MAINNET_IMAGE_URL="./images/zora.svg",ot=r.FILECOIN_MAINNET_IMAGE_URL="./images/filecoin.svg",it=r.SCROLL_IMAGE_URL="./images/scroll.svg",st=r.NUMBERS_MAINNET_IMAGE_URL="./images/numbers-mainnet.svg",at=r.NUMBERS_TOKEN_IMAGE_URL="./images/numbers-token.png",ct=r.SEI_IMAGE_URL="./images/sei.svg",ut=r.NEAR_IMAGE_URL="./images/near.svg",lt=r.B3_IMAGE_URL="./images/b3.svg",ft=r.APE_IMAGE_URL="./images/ape.svg",dt=r.GRAVITY_ALPHA_MAINNET_IMAGE_URL="./images/gravity.svg",ht=r.GRAVITY_ALPHA_TESTNET_SEPOLIA_IMAGE_URL="./images/gravity.svg",pt=r.LISK_IMAGE_URL="./images/lisk.svg",mt=r.LISK_SEPOLIA_IMAGE_URL="./images/lisk_sepolia.svg",_t=r.INK_SEPOLIA_IMAGE_URL="./images/ink-sepolia.svg",gt=r.INK_IMAGE_URL="./images/ink.svg",Et=r.SONIC_MAINNET_IMAGE_URL="./images/sonic.svg",At=r.SONEIUM_IMAGE_URL="./images/soneium.svg",Tt=r.MODE_SEPOLIA_IMAGE_URL="./images/mode-sepolia.svg",bt=r.MODE_IMAGE_URL="./images/mode.svg",yt=r.SHAPE_SEPOLIA_IMAGE_URL="./images/shape-sepolia.svg",vt=r.SHAPE_IMAGE_URL="./images/shape.svg",It=r.UNICHAIN_IMAGE_URL="./images/unichain.svg",Nt=r.MEGAETH_TESTNET_IMAGE_URL="./images/MegaETH-logo-testnet.png",wt=r.LENS_IMAGE_URL="./images/lens.png",St=r.LENS_NATIVE_TOKEN_IMAGE_URL="./images/lens-native.svg",Ot=r.INFURA_PROVIDER_TYPES=[i.MAINNET,i.SEPOLIA,i.LINEA_SEPOLIA,i.LINEA_MAINNET],Rt=(r.TEST_CHAINS=[a.SEPOLIA,a.LINEA_SEPOLIA,a.LOCALHOST,a.MEGAETH_TESTNET],r.MAINNET_CHAINS=[{chainId:a.MAINNET,rpcUrl:k},{chainId:a.LINEA_MAINNET,rpcUrl:B}],e=>(0,o.capitalize)(e)),Ct=r.TEST_NETWORK_TICKER_MAP={[i.GOERLI]:`${Rt(i.GOERLI)}${G.ETH}`,[i.SEPOLIA]:`${Rt(i.SEPOLIA)}${G.ETH}`,[i.LINEA_GOERLI]:`Linea${G.ETH}`,[i.LINEA_SEPOLIA]:`Linea${G.ETH}`,[i.MEGAETH_TESTNET]:"MegaETH"},Mt=r.BUILT_IN_NETWORKS={[i.SEPOLIA]:{chainId:a.SEPOLIA,ticker:Ct[i.SEPOLIA],blockExplorerUrl:`https://${i.SEPOLIA}.etherscan.io`},[i.LINEA_SEPOLIA]:{chainId:a.LINEA_SEPOLIA,ticker:Ct[i.LINEA_SEPOLIA],blockExplorerUrl:"https://sepolia.lineascan.build"},[i.MAINNET]:{chainId:a.MAINNET,blockExplorerUrl:"https://etherscan.io",ticker:G.ETH},[i.LINEA_MAINNET]:{chainId:a.LINEA_MAINNET,blockExplorerUrl:"https://lineascan.build",ticker:G.ETH},[i.LOCALHOST]:{chainId:a.LOCALHOST},[i.MEGAETH_TESTNET]:{chainId:a.MEGAETH_TESTNET,ticker:Ct[i.MEGAETH_TESTNET],blockExplorerUrl:"https://megaexplorer.xyz"}},Pt=(r.BUILT_IN_INFURA_NETWORKS=(0,o.pick)(Mt,Ot),r.NETWORK_TO_NAME_MAP={[i.GOERLI]:l,[i.MAINNET]:u,[i.LINEA_GOERLI]:d,[i.LINEA_SEPOLIA]:h,[i.LINEA_MAINNET]:p,[i.LOCALHOST]:m,[i.SEPOLIA]:f,[i.MEGAETH_TESTNET]:O,[a.ARBITRUM]:A,[a.AVALANCHE]:E,[a.BSC]:_,[a.BASE]:y,[a.GOERLI]:l,[a.MAINNET]:u,[a.LINEA_GOERLI]:d,[a.LINEA_MAINNET]:p,[a.LINEA_SEPOLIA]:h,[a.LOCALHOST]:m,[a.OPTIMISM]:T,[a.POLYGON]:g,[a.SCROLL]:v,[a.SCROLL_SEPOLIA]:I,[a.SEPOLIA]:f,[a.OPBNB]:N,[a.ZKSYNC_ERA]:b,[a.BERACHAIN]:w,[a.METACHAIN_ONE]:S,[a.LISK]:R,[a.LISK_SEPOLIA]:C,[a.MEGAETH_TESTNET]:O,[a.LENS]:M},r.CHAIN_ID_TO_CURRENCY_SYMBOL_MAP={[c.AVALANCHE]:$.AVALANCHE,[c.APE]:$.APE,[c.BSC]:$.BNB,[c.BASE]:$.BASE,[c.ARBITRUM]:$.ARBITRUM,[c.LINEA_MAINNET]:$.LINEA_MAINNET,[c.MAINNET]:$.ETH,[c.OPBNB]:$.OPBNB,[c.OPTIMISM]:$.OPTIMISM,[c.POLYGON]:$.POL,[c.ZKSYNC_ERA]:$.ZKSYNC_ERA,[c.GOERLI]:Ct[i.GOERLI],[c.SEPOLIA]:Ct[i.SEPOLIA],[c.LINEA_GOERLI]:Ct[i.LINEA_GOERLI],[c.LINEA_SEPOLIA]:Ct[i.LINEA_SEPOLIA],[c.SCROLL]:$.SCROLL,[c.ZORA_MAINNET]:$.ZORA_MAINNET,[c.TAIKO_JOLNIR_L2_MAINNET]:$.TAIKO_JOLNIR_L2_MAINNET,[c.POLYGON_ZKEVM]:$.POLYGON_ZKEVM,[c.FANTOM_OPERA]:$.FANTOM_OPERA,[c.CELO_MAINNET]:$.CELO_MAINNET,[c.ARBITRUM_NOVA]:$.ARBITRUM_NOVA,[c.MANTLE]:$.MANTLE,[c.GNOSIS]:$.GNOSIS,[c.CORE_BLOCKCHAIN_MAINNET]:$.CORE_BLOCKCHAIN_MAINNET,[c.MANTA_PACIFIC_MAINNET]:$.MANTA_PACIFIC_MAINNET,[c.PULSECHAIN_MAINNET]:$.PULSECHAIN_MAINNET,[c.MOONBEAM]:$.MOONBEAM,[c.FUSE_GOLD_MAINNET]:$.FUSE_GOLD_MAINNET,[c.KAVA_EVM]:$.KAVA_EVM,[c.DFK_CHAIN]:$.DFK_CHAIN,[c.HARMONY_MAINNET_SHARD_0]:$.HARMONY_MAINNET_SHARD_0,[c.PGN_PUBLIC_GOODS_NETWORK]:$.PGN_PUBLIC_GOODS_NETWORK,[c.LIGHTLINK_PHOENIX_MAINNET]:$.LIGHTLINK_PHOENIX_MAINNET,[c.NEAR_AURORA_MAINNET]:$.NEAR_AURORA_MAINNET,[c.KROMA_MAINNET]:$.KROMA_MAINNET,[c.NEBULA_MAINNET]:$.NEBULA_MAINNET,[c.KAIA_MAINNET]:$.KAIA_MAINNET,[c.FUNKICHAIN]:$.FUNKICHAIN,[c.MOONRIVER]:$.MOONRIVER,[c.ENDURANCE_SMART_CHAIN_MAINNET]:$.ENDURANCE_SMART_CHAIN_MAINNET,[c.CRONOS_MAINNET_BETA]:$.CRONOS_MAINNET_BETA,[c.FLARE_MAINNET]:$.FLARE_MAINNET,[c.KCC_MAINNET]:$.KCC_MAINNET,[c.SHARDEUM_SPHINX_1X]:$.SHARDEUM_SPHINX_1X,[c.ETHEREUM_CLASSIC_MAINNET]:$.ETHEREUM_CLASSIC_MAINNET,[c.HAQQ_NETWORK]:$.HAQQ_NETWORK,[c.SHARDEUM_LIBERTY_2X]:$.SHARDEUM_LIBERTY_2X,[c.BLACKFORT_EXCHANGE_NETWORK]:$.BLACKFORT_EXCHANGE_NETWORK,[c.CONFLUX_ESPACE]:$.CONFLUX_ESPACE,[c.CANTO]:$.CANTO,[c.SHIB_MAINNET]:$.SHIB_MAINNET,[c.OKXCHAIN_MAINNET]:$.OKXCHAIN_MAINNET,[c.ZKATANA]:$.ZKATANA,[c.DEXALOT_SUBNET]:$.DEXALOT_SUBNET,[c.ASTAR]:$.ASTAR,[c.EVMOS]:$.EVMOS,[c.BAHAMUT_MAINNET]:$.BAHAMUT_MAINNET,[c.SONGBIRD_CANARY_NETWORK]:$.SONGBIRD_CANARY_NETWORK,[c.STEP_NETWORK]:$.STEP_NETWORK,[c.VELAS_EVM_MAINNET]:$.VELAS_EVM_MAINNET,[c.Q_MAINNET]:$.Q_MAINNET,[c.TELOS_EVM_MAINNET]:$.TELOS_EVM_MAINNET,[c.TENET]:$.TENET,[c.DOGECHAIN_MAINNET]:$.DOGECHAIN_MAINNET,[c.OASYS_MAINNET]:$.OASYS_MAINNET,[c.HUOBI_ECO_CHAIN_MAINNET]:$.HUOBI_ECO_CHAIN_MAINNET,[c.ACALA_NETWORK]:$.ACALA_NETWORK,[c.IOTEX_MAINNET]:$.IOTEX_MAINNET,[c.SONIC_MAINNET]:$.SONIC_MAINNET,[c.SONEIUM_MAINNET]:$.SONEIUM_MAINNET,[c.SONEIUM_TESTNET]:$.SONEIUM_TESTNET,[c.SHAPE]:$.SHAPE,[c.SHAPE_SEPOLIA]:$.SHAPE_SEPOLIA,[c.MEGAETH_TESTNET]:Ct[i.MEGAETH_TESTNET],[a.LENS]:G.LENS},r.CHAIN_ID_TO_CURRENCY_SYMBOL_MAP_NETWORK_COLLISION={[c.CHZ]:[{currencySymbol:W.CHZ}],[c.WETHIO]:[{currencySymbol:W.WETHIO}]},r.CHAIN_ID_TO_TYPE_MAP={[a.MAINNET]:i.MAINNET,[a.GOERLI]:i.GOERLI,[a.SEPOLIA]:i.SEPOLIA,[a.LINEA_GOERLI]:i.LINEA_GOERLI,[a.LINEA_SEPOLIA]:i.LINEA_SEPOLIA,[a.LINEA_MAINNET]:i.LINEA_MAINNET,[a.LOCALHOST]:i.LOCALHOST,[a.MEGAETH_TESTNET]:i.MEGAETH_TESTNET}),Lt=(r.CHAIN_ID_TO_RPC_URL_MAP={[a.GOERLI]:x,[a.SEPOLIA]:D,[a.LINEA_GOERLI]:j,[a.LINEA_SEPOLIA]:U,[a.MAINNET]:k,[a.LINEA_MAINNET]:B,[a.LOCALHOST]:H,[a.MEGAETH_TESTNET]:F},r.CHAIN_ID_TO_NETWORK_IMAGE_URL_MAP={[a.MAINNET]:V,[a.LINEA_GOERLI]:Y,[a.LINEA_SEPOLIA]:q,[a.LINEA_MAINNET]:z,[a.AVALANCHE]:Q,[a.BSC]:Z,[a.POLYGON]:J,[a.ARBITRUM]:ee,[a.FANTOM]:te,[a.HARMONY]:re,[a.OPTIMISM]:ne,[a.PALM]:oe,[a.CELO]:ie,[a.GNOSIS]:se,[a.ZKSYNC_ERA]:ae,[a.MEGAETH_TESTNET]:Nt,[a.NEAR]:ut,[a.NEAR_TESTNET]:ut,[c.ACALA_NETWORK]:ue,[c.ARBITRUM_NOVA]:le,[c.ASTAR]:fe,[c.BAHAMUT_MAINNET]:de,[c.BLACKFORT_EXCHANGE_NETWORK]:he,[c.CANTO]:pe,[c.CONFLUX_ESPACE]:me,[c.CORE_BLOCKCHAIN_MAINNET]:_e,[a.CRONOS]:ge,[c.DEXALOT_SUBNET]:Ee,[c.DFK_CHAIN]:Ae,[c.DOGECHAIN_MAINNET]:Te,[c.ENDURANCE_SMART_CHAIN_MAINNET]:be,[c.ETHEREUM_CLASSIC_MAINNET]:ye,[c.EVMOS]:ve,[c.FLARE_MAINNET]:Ie,[c.FUSE_GOLD_MAINNET]:Ne,[c.IOTEX_MAINNET]:Se,[c.HAQQ_NETWORK]:we,[c.KCC_MAINNET]:Ce,[c.KAIA_MAINNET]:Me,[c.FUNKICHAIN]:Pe,[c.KROMA_MAINNET]:Le,[c.LIGHTLINK_PHOENIX_MAINNET]:ke,[c.MANTA_PACIFIC_MAINNET]:xe,[c.MANTLE]:De,[c.MOONBEAM]:je,[c.MOONRIVER]:Ue,[c.NEAR_AURORA_MAINNET]:Fe,[c.NEBULA_MAINNET]:Ge,[c.OASYS_MAINNET]:Ke,[c.OKXCHAIN_MAINNET]:$e,[c.PGN_PUBLIC_GOODS_NETWORK]:We,[c.POLYGON_ZKEVM]:Ve,[c.PULSECHAIN_MAINNET]:Ye,[c.SHARDEUM_LIBERTY_2X]:qe,[c.SHARDEUM_SPHINX_1X]:ze,[c.SHIB_MAINNET]:Xe,[c.SONGBIRD_CANARY_NETWORK]:Ze,[c.STEP_NETWORK]:Je,[c.TELOS_EVM_MAINNET]:Qe,[c.TENET]:et,[c.VELAS_EVM_MAINNET]:tt,[c.ZKATANA]:rt,[c.ZORA_MAINNET]:nt,[c.FILECOIN]:ot,[c.APE_TESTNET]:ft,[c.APE_MAINNET]:ft,[c.BASE]:ce,[c.NUMBERS]:st,[c.SEI]:ct,[c.B3]:lt,[c.B3_TESTNET]:lt,[c.GRAVITY_ALPHA_MAINNET]:dt,[c.GRAVITY_ALPHA_TESTNET_SEPOLIA]:ht,[c.LISK]:pt,[c.LISK_SEPOLIA]:mt,[c.INK_SEPOLIA]:_t,[c.INK]:gt,[c.SONIC_MAINNET]:Et,[c.SONEIUM_MAINNET]:At,[c.SONEIUM_TESTNET]:At,[c.MODE_SEPOLIA]:Tt,[c.MODE]:bt,[c.SHAPE]:vt,[c.SHAPE_SEPOLIA]:yt,[c.UNICHAIN]:It,[c.UNICHAIN_SEPOLIA]:It,[a.LENS]:wt},r.CHAIN_ID_TO_ETHERS_NETWORK_NAME_MAP={[a.GOERLI]:i.GOERLI,[a.SEPOLIA]:i.SEPOLIA,[a.LINEA_GOERLI]:i.LINEA_GOERLI,[a.LINEA_SEPOLIA]:i.LINEA_SEPOLIA,[a.MAINNET]:s.HOMESTEAD,[a.LINEA_MAINNET]:i.LINEA_MAINNET,[a.MEGAETH_TESTNET]:i.MEGAETH_TESTNET},r.CHAIN_ID_TOKEN_IMAGE_MAP={[a.MAINNET]:V,[a.TEST_ETH]:X,[a.ARBITRUM]:V,[a.BASE]:V,[a.LINEA_MAINNET]:V,[a.BSC]:Z,[a.POLYGON]:J,[a.AVALANCHE]:Q,[a.OPTIMISM]:V,[a.CELO]:ie,[a.GNOSIS]:se,[a.FANTOM]:te,[a.FILECOIN]:ot,[a.SCROLL]:it,[a.SCROLL_SEPOLIA]:it,[a.NUMBERS]:at,[a.SEI]:ct,[a.NEAR]:ut,[a.NEAR_TESTNET]:ut,[a.MOONRIVER]:He,[a.MOONBEAM]:Be,[a.MEGAETH_TESTNET]:Nt,[c.IOTEX_MAINNET]:Oe,[a.B3]:lt,[a.B3_TESTNET]:lt,[c.APE_MAINNET]:Re,[a.GRAVITY_ALPHA_MAINNET]:dt,[a.GRAVITY_ALPHA_TESTNET_SEPOLIA]:ht,[c.ZORA_MAINNET]:V,[a.INK]:V,[c.SONIC_MAINNET]:Et,[a.MODE]:V,[c.FUNKICHAIN]:V,[c.SHAPE]:V,[c.SHAPE_SEPOLIA]:X,[c.UNICHAIN]:V,[c.UNICHAIN_SEPOLIA]:V,[a.LENS]:St},r.CHAIN_ID_PROFOLIO_LANDING_PAGE_URL_MAP={[a.LINEA_MAINNET]:"https://portfolio.metamask.io/explore/networks/linea"},r.INFURA_BLOCKED_KEY="countryBlocked","etherscan.io"),kt="api",xt=(r.ETHERSCAN_SUPPORTED_NETWORKS={[a.GOERLI]:{domain:Lt,subdomain:`${kt}-${Pt[a.GOERLI]}`},[a.MAINNET]:{domain:Lt,subdomain:kt},[a.SEPOLIA]:{domain:Lt,subdomain:`${kt}-${Pt[a.SEPOLIA]}`},[a.LINEA_GOERLI]:{domain:"lineascan.build",subdomain:"goerli"},[a.LINEA_SEPOLIA]:{domain:"lineascan.build",subdomain:"sepolia"},[a.LINEA_MAINNET]:{domain:"lineascan.build",subdomain:kt},[a.BSC]:{domain:"bscscan.com",subdomain:kt},[a.BSC_TESTNET]:{domain:"bscscan.com",subdomain:`${kt}-testnet`},[a.OPTIMISM]:{domain:Lt,subdomain:`${kt}-optimistic`},[a.OPTIMISM_TESTNET]:{domain:Lt,subdomain:`${kt}-sepolia-optimistic`},[a.POLYGON]:{domain:"polygonscan.com",subdomain:kt},[a.POLYGON_TESTNET]:{domain:"polygonscan.com",subdomain:`${kt}-mumbai`},[a.AVALANCHE]:{domain:"snowtrace.io",subdomain:kt},[a.AVALANCHE_TESTNET]:{domain:"snowtrace.io",subdomain:`${kt}-testnet`},[a.FANTOM]:{domain:"ftmscan.com",subdomain:kt},[a.FANTOM_TESTNET]:{domain:"ftmscan.com",subdomain:`${kt}-testnet`},[a.MOONBEAM]:{domain:"moonscan.io",subdomain:`${kt}-moonbeam`},[a.MOONBEAM_TESTNET]:{domain:"moonscan.io",subdomain:`${kt}-moonbase`},[a.MOONRIVER]:{domain:"moonscan.io",subdomain:`${kt}-moonriver`},[a.GNOSIS]:{domain:"gnosisscan.io",subdomain:`${kt}-gnosis`}},r.CHAIN_ID_TO_GAS_LIMIT_BUFFER_MAP={[a.OPTIMISM]:1,[a.OPTIMISM_TESTNET]:1},r.UNSUPPORTED_RPC_METHODS=new Set(["eth_signTransaction"]),r.IPFS_DEFAULT_GATEWAY_URL="dweb.link",r.FEATURED_RPCS=[{chainId:a.LINEA_MAINNET,name:p,nativeCurrency:G.ETH,rpcEndpoints:[{url:`https://linea-mainnet.infura.io/v3/${P}`,type:n.RpcEndpointType.Custom}],defaultRpcEndpointIndex:0,blockExplorerUrls:["https://lineascan.build/"],defaultBlockExplorerUrlIndex:0},{chainId:a.ARBITRUM,name:A,nativeCurrency:G.ARBITRUM,rpcEndpoints:[{url:`https://arbitrum-mainnet.infura.io/v3/${P}`,type:n.RpcEndpointType.Custom}],defaultRpcEndpointIndex:0,blockExplorerUrls:["https://explorer.arbitrum.io"],defaultBlockExplorerUrlIndex:0},{chainId:a.AVALANCHE,name:E,nativeCurrency:G.AVALANCHE,rpcEndpoints:[{url:`https://avalanche-mainnet.infura.io/v3/${P}`,type:n.RpcEndpointType.Custom}],defaultRpcEndpointIndex:0,blockExplorerUrls:["https://snowtrace.io/"],defaultBlockExplorerUrlIndex:0},{chainId:a.BSC,name:_,nativeCurrency:G.BNB,rpcEndpoints:[{url:"https://bsc-dataseed.binance.org/",type:n.RpcEndpointType.Custom}],defaultRpcEndpointIndex:0,blockExplorerUrls:["https://bscscan.com/"],defaultBlockExplorerUrlIndex:0},{chainId:a.OPTIMISM,name:T,nativeCurrency:G.ETH,rpcEndpoints:[{url:`https://optimism-mainnet.infura.io/v3/${P}`,type:n.RpcEndpointType.Custom}],defaultRpcEndpointIndex:0,blockExplorerUrls:["https://optimistic.etherscan.io/"],defaultBlockExplorerUrlIndex:0},{chainId:a.POLYGON,name:`${g} ${(0,o.capitalize)(i.MAINNET)}`,nativeCurrency:G.POL,rpcEndpoints:[{url:`https://polygon-mainnet.infura.io/v3/${P}`,type:n.RpcEndpointType.Custom}],defaultRpcEndpointIndex:0,blockExplorerUrls:["https://polygonscan.com/"],defaultBlockExplorerUrlIndex:0},{chainId:a.ZKSYNC_ERA,name:b,nativeCurrency:G.ETH,rpcEndpoints:[{url:"https://mainnet.era.zksync.io",type:n.RpcEndpointType.Custom}],defaultRpcEndpointIndex:0,blockExplorerUrls:["https://explorer.zksync.io/"],defaultBlockExplorerUrlIndex:0},{chainId:a.BASE,name:y,nativeCurrency:G.ETH,rpcEndpoints:[{url:`https://base-mainnet.infura.io/v3/${P}`,type:n.RpcEndpointType.Custom}],defaultRpcEndpointIndex:0,blockExplorerUrls:["https://basescan.org"],defaultBlockExplorerUrlIndex:0}]);r.FEATURED_NETWORK_CHAIN_IDS=[a.MAINNET,...xt.map((e=>e.chainId))],r.DEFAULT_CUSTOM_TESTNET_MAP={[a.MEGAETH_TESTNET]:{chainId:a.MEGAETH_TESTNET,name:O,nativeCurrency:Ct[i.MEGAETH_TESTNET],blockExplorerUrls:["https://megaexplorer.xyz"],defaultRpcEndpointIndex:0,defaultBlockExplorerUrlIndex:0,rpcEndpoints:[{networkClientId:"megaeth-testnet",url:"https://carrot.megaeth.com/rpc",type:n.RpcEndpointType.Custom}]}},r.infuraChainIdsTestNets=[a.SEPOLIA,a.HOLESKY,a.LINEA_SEPOLIA,a.AMOY,a.BASE_SEPOLIA,a.OPTIMISM_SEPOLIA,a.ARBITRUM_SEPOLIA,a.PALM_TESTNET,a.AVALANCHE_TESTNET,a.CELO_TESTNET,a.ZK_SYNC_ERA_TESTNET,a.BSC_TESTNET,a.MANTA_SEPOLIA,a.OPBNB_TESTNET,a.SCROLL_SEPOLIA,a.UNICHAIN_SEPOLIA],r.allowedInfuraHosts=["mainnet.infura.io","linea-mainnet.infura.io","polygon-mainnet.infura.io","base-mainnet.infura.io","blast-mainnet.infura.io","optimism-mainnet.infura.io","arbitrum-mainnet.infura.io","palm-mainnet.infura.io","avalanche-mainnet.infura.io","celo-mainnet.infura.io","zksync-mainnet.infura.io","bsc-mainnet.infura.io","mantle-mainnet.infura.io","opbnb-mainnet.infura.io","scroll-mainnet.infura.io"];r.NetworkStatus=function(e){return e.Unknown="unknown",e.Available="available",e.Unavailable="unavailable",e.Blocked="blocked",e}({});r.TEST_NETWORKS=[l,f,d,h,O],r.TEST_NETWORK_IDS=[a.GOERLI,a.SEPOLIA,a.LINEA_GOERLI,a.LINEA_SEPOLIA,a.ARBITRUM_SEPOLIA,a.MEGAETH_TESTNET]}}},{package:"$root$",file:"shared/constants/network.ts"}],[5735,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.NOTIFICATION_WIDTH=r.NOTIFICATION_HEIGHT=void 0;r.NOTIFICATION_HEIGHT=620,r.NOTIFICATION_WIDTH=360}}},{package:"$root$",file:"shared/constants/notifications.ts"}],[5736,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TrezorAction=r.OffscreenCommunicationTarget=r.OffscreenCommunicationEvents=r.OFFSCREEN_LOAD_TIMEOUT=r.OFFSCREEN_LEDGER_INIT_TIMEOUT=r.LedgerAction=r.KnownOrigins=void 0;const n=r.OFFSCREEN_LEDGER_INIT_TIMEOUT=4e3;r.OFFSCREEN_LOAD_TIMEOUT=n+1e3;r.OffscreenCommunicationTarget=function(e){return e.trezorOffscreen="trezor-offscreen",e.ledgerOffscreen="ledger-offscreen",e.latticeOffscreen="lattice-offscreen",e.extension="extension-offscreen",e.extensionMain="extension",e}({}),r.OffscreenCommunicationEvents=function(e){return e.trezorDeviceConnect="trezor-device-connect",e.ledgerDeviceConnect="ledger-device-connect",e.metamaskBackgroundReady="metamask-background-ready",e}({}),r.TrezorAction=function(e){return e.init="trezor-init",e.dispose="trezor-dispose",e.getPublicKey="trezor-get-public-key",e.signTransaction="trezor-sign-transaction",e.signMessage="trezor-sign-message",e.signTypedData="trezor-sign-typed-data",e}({}),r.LedgerAction=function(e){return e.makeApp="ledger-make-app",e.updateTransport="ledger-update-transport",e.unlock="ledger-unlock",e.getPublicKey="ledger-unlock",e.signTransaction="ledger-sign-transaction",e.signPersonalMessage="ledger-sign-personal-message",e.signTypedData="ledger-sign-typed-data",e}({}),r.KnownOrigins=function(e){return e.lattice="https://lattice.gridplus.io",e.ledger="https://metamask.github.io",e}({})}}},{package:"$root$",file:"shared/constants/offscreen-communication.ts"}],[5737,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.FirstTimeFlowType=void 0;r.FirstTimeFlowType=function(e){return e.import="import",e.create="create",e.restore="restore",e}({})}}},{package:"$root$",file:"shared/constants/onboarding.ts"}],[5738,{"./snaps/permissions":5744},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n={CaveatTypes:!0,EndowmentTypes:!0,RestrictedEthMethods:!0,RestrictedMethods:!0,ConnectionPermission:!0,PermissionWeightThreshold:!0,MinPermissionAbstractionDisplayCount:!0,PermissionsAbstractionThreshold:!0,PermissionWeight:!0};r.RestrictedMethods=r.RestrictedEthMethods=r.PermissionsAbstractionThreshold=r.PermissionWeightThreshold=r.PermissionWeight=r.MinPermissionAbstractionDisplayCount=r.EndowmentTypes=r.ConnectionPermission=r.CaveatTypes=void 0;var o=e("./snaps/permissions");Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in r&&r[e]===o[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return o[e]}}))}));r.CaveatTypes=Object.freeze({restrictReturnedAccounts:"restrictReturnedAccounts",restrictNetworkSwitching:"restrictNetworkSwitching"}),r.EndowmentTypes=Object.freeze({permittedChains:"endowment:permitted-chains"}),r.RestrictedEthMethods=Object.freeze({eth_accounts:"eth_accounts"}),r.RestrictedMethods=Object.freeze({eth_accounts:"eth_accounts",snap_dialog:"snap_dialog",snap_notify:"snap_notify",snap_manageState:"snap_manageState",snap_getBip32PublicKey:"snap_getBip32PublicKey",snap_getBip32Entropy:"snap_getBip32Entropy",snap_getBip44Entropy:"snap_getBip44Entropy",snap_getEntropy:"snap_getEntropy",snap_getLocale:"snap_getLocale",snap_getPreferences:"snap_getPreferences",wallet_snap:"wallet_snap",snap_manageAccounts:"snap_manageAccounts"}),r.ConnectionPermission=Object.freeze({connection_permission:"connection_permission"}),r.PermissionWeightThreshold=Object.freeze({snapInstall:3,snapUpdateApprovedPermissions:3}),r.MinPermissionAbstractionDisplayCount=3,r.PermissionsAbstractionThreshold=3,r.PermissionWeight=Object.freeze({eth_accounts:3,permittedChains:3,snap_dialog:4,snap_notify:4,snap_getBip32PublicKey:3,snap_getBip32Entropy:1,snap_getBip44Entropy:1,snap_getEntropy:3,snap_manageState:4,snap_getLocale:4,wallet_snap:4,endowment_networkAccess:3,endowment_assets:3,endowment_protocol:3,endowment_webassembly:4,endowment_transactionInsight:4,endowment_cronjob:4,endowment_ethereumProvider:4,endowment_rpc:4,endowment_lifecycleHooks:4,endowment_pageHome:4,snap_manageAccounts:3,endowment_keyring:4,endowment_nameLookup:3,endowment_signatureInsight:4,connection_permission:3,unknown_permission:3})}}},{package:"$root$",file:"shared/constants/permissions.ts"}],[5739,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ThemeType=r.DEFAULT_AUTO_LOCK_TIME_LIMIT=void 0;r.ThemeType=function(e){return e.light="light",e.dark="dark",e.os="os",e}({});r.DEFAULT_AUTO_LOCK_TIME_LIMIT=0}}},{package:"$root$",file:"shared/constants/preferences.ts"}],[574,{"./_version":570,"@ethersproject/bytes":500,"@ethersproject/logger":528},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.toUtf8CodePoints=r.toUtf8String=r._toUtf8String=r._toEscapedUtf8String=r.toUtf8Bytes=r.Utf8ErrorFuncs=r.Utf8ErrorReason=r.UnicodeNormalizationForm=void 0;var n,o,i=e("@ethersproject/bytes"),s=e("@ethersproject/logger"),a=e("./_version"),c=new s.Logger(a.version);function u(e,t,r,n,i){if(e===o.BAD_PREFIX||e===o.UNEXPECTED_CONTINUE){for(var s=0,a=t+1;a<r.length&&r[a]>>6==2;a++)s++;return s}return e===o.OVERRUN?r.length-t-1:0}function l(e,t){null==t&&(t=r.Utf8ErrorFuncs.error),e=(0,i.arrayify)(e);for(var n=[],s=0;s<e.length;){var a=e[s++];if(a>>7){var c=null,u=null;if(192==(224&a))c=1,u=127;else if(224==(240&a))c=2,u=2047;else{if(240!=(248&a)){s+=t(128==(192&a)?o.UNEXPECTED_CONTINUE:o.BAD_PREFIX,s-1,e,n);continue}c=3,u=65535}if(s-1+c>=e.length)s+=t(o.OVERRUN,s-1,e,n);else{for(var l=a&(1<<8-c-1)-1,f=0;f<c;f++){var d=e[s];if(128!=(192&d)){s+=t(o.MISSING_CONTINUE,s,e,n),l=null;break}l=l<<6|63&d,s++}null!==l&&(l>1114111?s+=t(o.OUT_OF_RANGE,s-1-c,e,n,l):l>=55296&&l<=57343?s+=t(o.UTF16_SURROGATE,s-1-c,e,n,l):l<=u?s+=t(o.OVERLONG,s-1-c,e,n,l):n.push(l))}}else n.push(a)}return n}function f(e,t){void 0===t&&(t=n.current),t!=n.current&&(c.checkNormalize(),e=e.normalize(t));for(var r=[],o=0;o<e.length;o++){var s=e.charCodeAt(o);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)){o++;var a=e.charCodeAt(o);if(o>=e.length||56320!=(64512&a))throw new Error("invalid utf-8 string");var u=65536+((1023&s)<<10)+(1023&a);r.push(u>>18|240),r.push(u>>12&63|128),r.push(u>>6&63|128),r.push(63&u|128)}else r.push(s>>12|224),r.push(s>>6&63|128),r.push(63&s|128)}return(0,i.arrayify)(r)}function d(e){var t="0000"+e.toString(16);return"\\u"+t.substring(t.length-4)}function h(e){return e.map((function(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10&1023),56320+(1023&e)))})).join("")}!function(e){e.current="",e.NFC="NFC",e.NFD="NFD",e.NFKC="NFKC",e.NFKD="NFKD"}(n=r.UnicodeNormalizationForm||(r.UnicodeNormalizationForm={})),function(e){e.UNEXPECTED_CONTINUE="unexpected continuation byte",e.BAD_PREFIX="bad codepoint prefix",e.OVERRUN="string overrun",e.MISSING_CONTINUE="missing continuation byte",e.OUT_OF_RANGE="out of UTF-8 range",e.UTF16_SURROGATE="UTF-16 surrogate",e.OVERLONG="overlong representation"}(o=r.Utf8ErrorReason||(r.Utf8ErrorReason={})),r.Utf8ErrorFuncs=Object.freeze({error:function(e,t,r,n,o){return c.throwArgumentError("invalid codepoint at offset "+t+"; "+e,"bytes",r)},ignore:u,replace:function(e,t,r,n,i){return e===o.OVERLONG?(n.push(i),0):(n.push(65533),u(e,t,r))}}),r.toUtf8Bytes=f,r._toEscapedUtf8String=function(e,t){return'"'+l(e,t).map((function(e){if(e<256){switch(e){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 13:return"\\r";case 34:return'\\"';case 92:return"\\\\"}if(e>=32&&e<127)return String.fromCharCode(e)}return e<=65535?d(e):d(55296+((e-=65536)>>10&1023))+d(56320+(1023&e))})).join("")+'"'},r._toUtf8String=h,r.toUtf8String=function(e,t){return h(l(e,t))},r.toUtf8CodePoints=function(e,t){return void 0===t&&(t=n.current),l(f(e,t))}}}},{package:"ethers>@ethersproject/strings",file:"node_modules/@ethersproject/strings/lib/utf8.js"}],[5741,{"@metamask/transaction-controller":2905},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.SecurityProvider=r.SecurityAlertSource=r.SECURITY_PROVIDER_UTM_SOURCE=r.SECURITY_PROVIDER_EXCLUDED_TRANSACTION_TYPES=r.SECURITY_PROVIDER_CONFIG=r.LOADING_SECURITY_ALERT_RESPONSE=r.FALSE_POSITIVE_REPORT_BASE_URL=r.BlockaidResultType=r.BlockaidReason=void 0;var n=e("@metamask/transaction-controller");let o=r.SecurityProvider=function(e){return e.Blockaid="blockaid",e}({});r.SECURITY_PROVIDER_CONFIG={[o.Blockaid]:{tKeyName:"blockaid",url:"https://blockaid.io/"}};let i=r.BlockaidReason=function(e){return e.approvalFarming="approval_farming",e.blurFarming="blur_farming",e.maliciousDomain="malicious_domain",e.permitFarming="permit_farming",e.rawNativeTokenTransfer="raw_native_token_transfer",e.rawSignatureFarming="raw_signature_farming",e.seaportFarming="seaport_farming",e.setApprovalForAll="set_approval_for_all",e.tradeOrderFarming="trade_order_farming",e.transferFarming="transfer_farming",e.transferFromFarming="transfer_from_farming",e.other="other",e.errored="Error",e.notApplicable="NotApplicable",e.inProgress="validation_in_progress",e}({}),s=r.BlockaidResultType=function(e){return e.Malicious="Malicious",e.Warning="Warning",e.Benign="Benign",e.Errored="Error",e.NotApplicable="NotApplicable",e.Loading="loading",e}({});r.FALSE_POSITIVE_REPORT_BASE_URL="https://blockaid-false-positive-portal.metamask.io",r.SECURITY_PROVIDER_UTM_SOURCE="metamask-ppom",r.SECURITY_PROVIDER_EXCLUDED_TRANSACTION_TYPES=[n.TransactionType.swap,n.TransactionType.swapApproval,n.TransactionType.swapAndSend,n.TransactionType.bridgeApproval,n.TransactionType.bridge],r.LOADING_SECURITY_ALERT_RESPONSE={result_type:s.Loading,reason:i.inProgress};r.SecurityAlertSource=function(e){return e.API="api",e.Local="local",e}({})}}},{package:"$root$",file:"shared/constants/security-provider.ts"}],[5742,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.PrimaryTypePermit=r.PrimaryTypeOrder=r.PrimaryType=r.PRIMARY_TYPES_PERMIT=r.PRIMARY_TYPES_ORDER=r.PRIMARY_TYPES=void 0;let n=r.PrimaryTypeOrder=function(e){return e.Order="Order",e.OrderComponents="OrderComponents",e}({}),o=r.PrimaryTypePermit=function(e){return e.Permit="Permit",e.PermitBatch="PermitBatch",e.PermitBatchTransferFrom="PermitBatchTransferFrom",e.PermitSingle="PermitSingle",e.PermitTransferFrom="PermitTransferFrom",e.PermitWitnessTransferFrom="PermitWitnessTransferFrom",e}({});const i=r.PrimaryType={...n,...o};r.PRIMARY_TYPES_ORDER=Object.values(n),r.PRIMARY_TYPES_PERMIT=Object.values(o),r.PRIMARY_TYPES=Object.values(i)}}},{package:"$root$",file:"shared/constants/signatures.ts"}],[5743,{"../modules/environment":5783,"./network":5734,"./time":5747},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getAllowedSmartTransactionsChainIds=r.SMART_TRANSACTIONS_LEARN_MORE_URL=r.SKIP_STX_RPC_URL_CHECK_CHAIN_IDS=r.FALLBACK_SMART_TRANSACTIONS_REFRESH_TIME=r.FALLBACK_SMART_TRANSACTIONS_MAX_FEE_MULTIPLIER=r.FALLBACK_SMART_TRANSACTIONS_MAX_DEADLINE=r.FALLBACK_SMART_TRANSACTIONS_EXPECTED_DEADLINE=r.FALLBACK_SMART_TRANSACTIONS_DEADLINE=r.CANCEL_GAS_LIMIT_DEC=void 0;var n=e("../modules/environment"),o=e("./time"),i=e("./network");r.FALLBACK_SMART_TRANSACTIONS_REFRESH_TIME=10*o.SECOND,r.FALLBACK_SMART_TRANSACTIONS_DEADLINE=180,r.FALLBACK_SMART_TRANSACTIONS_EXPECTED_DEADLINE=45,r.FALLBACK_SMART_TRANSACTIONS_MAX_DEADLINE=150,r.FALLBACK_SMART_TRANSACTIONS_MAX_FEE_MULTIPLIER=2;const s=[i.CHAIN_IDS.MAINNET,i.CHAIN_IDS.SEPOLIA,i.CHAIN_IDS.BSC,i.CHAIN_IDS.BASE,i.CHAIN_IDS.LINEA_MAINNET,i.CHAIN_IDS.LINEA_SEPOLIA],a=[i.CHAIN_IDS.MAINNET,i.CHAIN_IDS.BSC];r.getAllowedSmartTransactionsChainIds=()=>(0,n.isProduction)()?a:s;r.SKIP_STX_RPC_URL_CHECK_CHAIN_IDS=[i.CHAIN_IDS.SEPOLIA],r.CANCEL_GAS_LIMIT_DEC=21e3,r.SMART_TRANSACTIONS_LEARN_MORE_URL="https://support.metamask.io/transactions-and-gas/transactions/smart-transactions/"}}},{package:"$root$",file:"shared/constants/smartTransactions.ts"}],[5744,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ExcludedSnapPermissions=r.ExcludedSnapEndowments=r.EndowmentPermissions=r.DynamicSnapPermissions=void 0;r.EndowmentPermissions=Object.freeze({"endowment:network-access":"endowment:network-access","endowment:transaction-insight":"endowment:transaction-insight","endowment:cronjob":"endowment:cronjob","endowment:ethereum-provider":"endowment:ethereum-provider","endowment:rpc":"endowment:rpc","endowment:webassembly":"endowment:webassembly","endowment:lifecycle-hooks":"endowment:lifecycle-hooks","endowment:page-home":"endowment:page-home","endowment:page-settings":"endowment:page-settings","endowment:signature-insight":"endowment:signature-insight","endowment:name-lookup":"endowment:name-lookup","endowment:assets":"endowment:assets","endowment:protocol":"endowment:protocol","endowment:keyring":"endowment:keyring"}),r.ExcludedSnapPermissions=Object.freeze({}),r.ExcludedSnapEndowments=Object.freeze({"endowment:caip25":"eth_accounts is disabled. For more information please see https://github.com/MetaMask/snaps/issues/990."}),r.DynamicSnapPermissions=Object.freeze(["endowment:caip25"])}}},{package:"$root$",file:"shared/constants/snaps/permissions.ts"}],[5745,{"./multichain/assets":5732,"./multichain/networks":5733,"./network":5734},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ZKSYNC_ERA_SWAPS_TOKEN_OBJECT=r.ZKSYNC_ERA=r.WMATIC_CONTRACT_ADDRESS=r.WETH_ZKSYNC_ERA_CONTRACT_ADDRESS=r.WETH_OPTIMISM_CONTRACT_ADDRESS=r.WETH_LINEA_CONTRACT_ADDRESS=r.WETH_GOERLI_CONTRACT_ADDRESS=r.WETH_CONTRACT_ADDRESS=r.WETH_BASE_CONTRACT_ADDRESS=r.WETH_ARBITRUM_CONTRACT_ADDRESS=r.WBNB_CONTRACT_ADDRESS=r.WAVAX_CONTRACT_ADDRESS=r.TokenBucketPriority=r.TOKEN_API_BASE_URL=r.TEST_ETH_SWAPS_TOKEN_OBJECT=r.Slippage=r.SWAP_FAILED_ERROR=r.SWAPS_WRAPPED_TOKENS_ADDRESSES=r.SWAPS_QUOTE_MAX_RETURN_DIFFERENCE_PERCENTAGE=r.SWAPS_FETCH_ORDER_CONFLICT=r.SWAPS_DEV_API_V2_BASE_URL=r.SWAPS_CLIENT_ID=r.SWAPS_CHAINID_DEFAULT_TOKEN_MAP=r.SWAPS_CHAINID_CONTRACT_ADDRESS_MAP=r.SWAPS_CHAINID_COMMON_TOKEN_PAIR=r.SWAPS_API_V2_BASE_URL=r.SLIPPAGE_VERY_HIGH_ERROR=r.SLIPPAGE_NEGATIVE_ERROR=r.SLIPPAGE_LOW_ERROR=r.SLIPPAGE_HIGH_ERROR=r.SEPOLIA_SWAPS_TOKEN_OBJECT=r.QUOTES_NOT_AVAILABLE_ERROR=r.QUOTES_EXPIRED_ERROR=r.POLYGON=r.OPTIMISM_SWAPS_TOKEN_OBJECT=r.OPTIMISM=r.OFFLINE_FOR_MAINTENANCE=r.MAX_ALLOWED_SLIPPAGE=r.MATIC_SWAPS_TOKEN_OBJECT=r.LINEA_SWAPS_TOKEN_OBJECT=r.LINEA=r.GOERLI_SWAPS_TOKEN_OBJECT=r.GOERLI=r.GAS_DEV_API_BASE_URL=r.GAS_API_BASE_URL=r.ETH_SWAPS_TOKEN_OBJECT=r.ETHEREUM=r.ERROR_FETCHING_QUOTES=r.DEFAULT_ERC20_APPROVE_GAS=r.CONTRACT_DATA_DISABLED_ERROR=r.BSC=r.BNB_SWAPS_TOKEN_OBJECT=r.BASE_SWAPS_TOKEN_OBJECT=r.BASE=r.AVAX_SWAPS_TOKEN_OBJECT=r.AVALANCHE=r.ARBITRUM_SWAPS_TOKEN_OBJECT=r.ARBITRUM=r.ALLOWED_SMART_TRANSACTIONS_CHAIN_IDS=r.ALLOWED_PROD_SWAPS_CHAIN_IDS=r.ALLOWED_DEV_SWAPS_CHAIN_IDS=r.ALLOWED_CONTRACT_ADDRESSES=void 0;var n=e("./multichain/assets"),o=e("./multichain/networks"),i=e("./network");r.QUOTES_EXPIRED_ERROR="quotes-expired",r.SWAP_FAILED_ERROR="swap-failed-error",r.ERROR_FETCHING_QUOTES="error-fetching-quotes",r.QUOTES_NOT_AVAILABLE_ERROR="quotes-not-avilable",r.CONTRACT_DATA_DISABLED_ERROR="contract-data-disabled",r.OFFLINE_FOR_MAINTENANCE="offline-for-maintenance",r.SWAPS_FETCH_ORDER_CONFLICT="swaps-fetch-order-conflict",r.SLIPPAGE_VERY_HIGH_ERROR="slippage-very-high",r.SLIPPAGE_HIGH_ERROR="slippage-high",r.SLIPPAGE_LOW_ERROR="slippage-low",r.SLIPPAGE_NEGATIVE_ERROR="slippage-negative",r.MAX_ALLOWED_SLIPPAGE=15,r.SWAPS_QUOTE_MAX_RETURN_DIFFERENCE_PERCENTAGE=.35;const s="0x0000000000000000000000000000000000000000",a=r.ETH_SWAPS_TOKEN_OBJECT={symbol:i.CURRENCY_SYMBOLS.ETH,name:"Ether",address:s,decimals:18,iconUrl:i.ETH_TOKEN_IMAGE_URL},c=r.BNB_SWAPS_TOKEN_OBJECT={symbol:i.CURRENCY_SYMBOLS.BNB,name:"Binance Coin",address:s,decimals:18,iconUrl:i.BNB_TOKEN_IMAGE_URL},u=r.MATIC_SWAPS_TOKEN_OBJECT={symbol:i.CURRENCY_SYMBOLS.POL,name:"Polygon",address:s,decimals:18,iconUrl:i.POL_TOKEN_IMAGE_URL},l=r.AVAX_SWAPS_TOKEN_OBJECT={symbol:i.CURRENCY_SYMBOLS.AVALANCHE,name:"Avalanche",address:s,decimals:18,iconUrl:i.AVAX_TOKEN_IMAGE_URL},f=r.TEST_ETH_SWAPS_TOKEN_OBJECT={symbol:i.CURRENCY_SYMBOLS.TEST_ETH,name:"Test Ether",address:s,decimals:18,iconUrl:i.TEST_ETH_TOKEN_IMAGE_URL},d=r.GOERLI_SWAPS_TOKEN_OBJECT={symbol:i.CURRENCY_SYMBOLS.ETH,name:"Ether",address:s,decimals:18,iconUrl:i.TEST_ETH_TOKEN_IMAGE_URL},h=(r.SEPOLIA_SWAPS_TOKEN_OBJECT={symbol:i.CURRENCY_SYMBOLS.ETH,name:"Ether",address:s,decimals:18,iconUrl:i.TEST_ETH_TOKEN_IMAGE_URL},r.ARBITRUM_SWAPS_TOKEN_OBJECT={...a}),p=r.OPTIMISM_SWAPS_TOKEN_OBJECT={...a},m=r.ZKSYNC_ERA_SWAPS_TOKEN_OBJECT={...a},_=r.LINEA_SWAPS_TOKEN_OBJECT={...a},g=r.BASE_SWAPS_TOKEN_OBJECT={...a},E={symbol:"SOL",name:"Solana",address:n.MULTICHAIN_NATIVE_CURRENCY_TO_CAIP19.SOL,decimals:9,iconUrl:o.MULTICHAIN_TOKEN_IMAGE_MAP[o.MultichainNetworks.SOLANA]},A=(r.DEFAULT_ERC20_APPROVE_GAS="0x1d4c0","0x881d40237659c251811cec9c364ef91dc08d300c"),T=r.WETH_CONTRACT_ADDRESS="0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",b=r.WETH_GOERLI_CONTRACT_ADDRESS="0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6",y=r.WBNB_CONTRACT_ADDRESS="0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c",v=r.WMATIC_CONTRACT_ADDRESS="0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270",I=r.WAVAX_CONTRACT_ADDRESS="0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7",N=r.WETH_OPTIMISM_CONTRACT_ADDRESS="0x4200000000000000000000000000000000000006",w=r.WETH_ARBITRUM_CONTRACT_ADDRESS="0x82af49447d8a07e3bd95bd0d56f35241523fbab1",S=r.WETH_ZKSYNC_ERA_CONTRACT_ADDRESS="0x5AEa5775959fBC2557Cc8789bC1bf90A239D9a91",O=r.WETH_LINEA_CONTRACT_ADDRESS="0xe5D7C2a44FfDDf6b295A15c148167daaAf5Cf34f",R=r.WETH_BASE_CONTRACT_ADDRESS="0x4200000000000000000000000000000000000006",C="0x539",M=(r.SWAPS_API_V2_BASE_URL="https://swap.api.cx.metamask.io",r.SWAPS_DEV_API_V2_BASE_URL="https://swap.dev-api.cx.metamask.io",r.TOKEN_API_BASE_URL="https://tokens.api.cx.metamask.io",r.GAS_API_BASE_URL="https://gas.api.cx.metamask.io",r.GAS_DEV_API_BASE_URL="https://gas.uat-api.cx.metamask.io",r.ALLOWED_PROD_SWAPS_CHAIN_IDS=[i.CHAIN_IDS.MAINNET,C,i.CHAIN_IDS.BSC,i.CHAIN_IDS.POLYGON,i.CHAIN_IDS.AVALANCHE,i.CHAIN_IDS.OPTIMISM,i.CHAIN_IDS.ARBITRUM,i.CHAIN_IDS.ZKSYNC_ERA,i.CHAIN_IDS.LINEA_MAINNET,i.CHAIN_IDS.BASE]),P=(r.ALLOWED_DEV_SWAPS_CHAIN_IDS=[...M,i.CHAIN_IDS.GOERLI],r.ALLOWED_SMART_TRANSACTIONS_CHAIN_IDS=[i.CHAIN_IDS.MAINNET,i.CHAIN_IDS.GOERLI],r.SWAPS_CHAINID_CONTRACT_ADDRESS_MAP={[i.CHAIN_IDS.MAINNET]:"0x881d40237659c251811cec9c364ef91dc08d300c",[C]:A,[i.CHAIN_IDS.BSC]:"0x1a1ec25dc08e98e5e93f1104b5e5cdd298707d31",[i.CHAIN_IDS.POLYGON]:"0x1a1ec25dc08e98e5e93f1104b5e5cdd298707d31",[i.CHAIN_IDS.GOERLI]:A,[i.CHAIN_IDS.AVALANCHE]:"0x1a1ec25dc08e98e5e93f1104b5e5cdd298707d31",[i.CHAIN_IDS.OPTIMISM]:"0x9dda6ef3d919c9bc8885d5560999a3640431e8e6",[i.CHAIN_IDS.ARBITRUM]:"0x9dda6ef3d919c9bc8885d5560999a3640431e8e6",[i.CHAIN_IDS.ZKSYNC_ERA]:"0xf504c1fe13d14df615e66dcd0abf39e60c697f34",[i.CHAIN_IDS.LINEA_MAINNET]:"0x9dda6ef3d919c9bc8885d5560999a3640431e8e6",[i.CHAIN_IDS.BASE]:"0x9dda6ef3d919c9bc8885d5560999a3640431e8e6"}),L=r.SWAPS_WRAPPED_TOKENS_ADDRESSES={[i.CHAIN_IDS.MAINNET]:T,[C]:T,[i.CHAIN_IDS.BSC]:y,[i.CHAIN_IDS.POLYGON]:v,[i.CHAIN_IDS.GOERLI]:b,[i.CHAIN_IDS.AVALANCHE]:I,[i.CHAIN_IDS.OPTIMISM]:N,[i.CHAIN_IDS.ARBITRUM]:w,[i.CHAIN_IDS.ZKSYNC_ERA]:S,[i.CHAIN_IDS.LINEA_MAINNET]:O,[i.CHAIN_IDS.BASE]:R};r.ALLOWED_CONTRACT_ADDRESSES={[i.CHAIN_IDS.MAINNET]:[P[i.CHAIN_IDS.MAINNET],L[i.CHAIN_IDS.MAINNET]],[C]:[P[C],L[C]],[i.CHAIN_IDS.GOERLI]:[P[i.CHAIN_IDS.GOERLI],L[i.CHAIN_IDS.GOERLI]],[i.CHAIN_IDS.BSC]:[P[i.CHAIN_IDS.BSC],L[i.CHAIN_IDS.BSC]],[i.CHAIN_IDS.POLYGON]:[P[i.CHAIN_IDS.POLYGON],L[i.CHAIN_IDS.POLYGON]],[i.CHAIN_IDS.AVALANCHE]:[P[i.CHAIN_IDS.AVALANCHE],L[i.CHAIN_IDS.AVALANCHE]],[i.CHAIN_IDS.OPTIMISM]:[P[i.CHAIN_IDS.OPTIMISM],L[i.CHAIN_IDS.OPTIMISM]],[i.CHAIN_IDS.ARBITRUM]:[P[i.CHAIN_IDS.ARBITRUM],L[i.CHAIN_IDS.ARBITRUM]],[i.CHAIN_IDS.ZKSYNC_ERA]:[P[i.CHAIN_IDS.ZKSYNC_ERA],L[i.CHAIN_IDS.ZKSYNC_ERA]],[i.CHAIN_IDS.LINEA_MAINNET]:[P[i.CHAIN_IDS.LINEA_MAINNET],L[i.CHAIN_IDS.LINEA_MAINNET]],[i.CHAIN_IDS.BASE]:[P[i.CHAIN_IDS.BASE],L[i.CHAIN_IDS.BASE]]},r.SWAPS_CHAINID_DEFAULT_TOKEN_MAP={[i.CHAIN_IDS.MAINNET]:a,[C]:f,[i.CHAIN_IDS.BSC]:c,[i.CHAIN_IDS.POLYGON]:u,[i.CHAIN_IDS.GOERLI]:d,[i.CHAIN_IDS.SEPOLIA]:d,[i.CHAIN_IDS.AVALANCHE]:l,[i.CHAIN_IDS.OPTIMISM]:p,[i.CHAIN_IDS.ARBITRUM]:h,[i.CHAIN_IDS.ZKSYNC_ERA]:m,[i.CHAIN_IDS.LINEA_MAINNET]:_,[i.CHAIN_IDS.BASE]:g,[o.MultichainNetworks.SOLANA]:E},r.ETHEREUM="ethereum",r.POLYGON="polygon",r.BSC="bsc",r.GOERLI="goerli",r.AVALANCHE="avalanche",r.OPTIMISM="optimism",r.ARBITRUM="arbitrum",r.ZKSYNC_ERA="zksync",r.LINEA="linea",r.BASE="base",r.SWAPS_CLIENT_ID="extension";r.TokenBucketPriority=function(e){return e.owned="owned",e.top="top",e}({}),r.Slippage=function(e){return e[e.default=2]="default",e[e.high=3]="high",e}({});const k={symbol:i.CURRENCY_SYMBOLS.USDC,name:"USD Coin",address:"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",decimals:6,iconUrl:"https://static.cx.metamask.io/api/v1/tokenIcons/1/0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48.png"},x={symbol:i.CURRENCY_SYMBOLS.USDT,name:"Tether USD",address:"0x55d398326f99059ff775485246999027b3197955",decimals:18,iconUrl:"https://static.cx.metamask.io/api/v1/tokenIcons/56/0x55d398326f99059ff775485246999027b3197955.png"},D={symbol:i.CURRENCY_SYMBOLS.USDT,name:"Tether USD",address:"0xc2132d05d31c914a87c6611c10748aeb04b58e8f",decimals:6,iconUrl:"https://static.cx.metamask.io/api/v1/tokenIcons/137/0xc2132d05d31c914a87c6611c10748aeb04b58e8f.png"},j={symbol:i.CURRENCY_SYMBOLS.USDC,name:"USD Coin",address:"0xaf88d065e77c8cc2239327c5edb3a432268e5831",decimals:6,iconUrl:"https://static.cx.metamask.io/api/v1/tokenIcons/42161/0xaf88d065e77c8cc2239327c5edb3a432268e5831.png"},U={symbol:i.CURRENCY_SYMBOLS.USDC,name:"USD Coin",address:"0xb97ef9ef8734c71904d8002f8b6bc66dd9c48a6e",decimals:6,iconUrl:"https://static.cx.metamask.io/api/v1/tokenIcons/43114/0xb97ef9ef8734c71904d8002f8b6bc66dd9c48a6e.png"},B={symbol:i.CURRENCY_SYMBOLS.WETH,name:"Wrapped Ether",address:"0x4200000000000000000000000000000000000006",decimals:18,iconUrl:"https://static.cx.metamask.io/api/v1/tokenIcons/10/0x4200000000000000000000000000000000000006.png"},H={symbol:i.CURRENCY_SYMBOLS.USDC,name:"USD Coin",address:"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",decimals:6,iconUrl:"https://static.cx.metamask.io/api/v1/tokenIcons/8453/0x833589fcd6edb6e08f4c7c32d4f71b54bda02913.png"},F={symbol:i.CURRENCY_SYMBOLS.USDC,name:"USD Coin",address:"0x176211869ca2b568f2a7d4ee941e073a821ee1ff",decimals:6,iconUrl:"https://static.cx.metamask.io/api/v1/tokenIcons/59144/0x176211869ca2b568f2a7d4ee941e073a821ee1ff.png"},G={symbol:i.CURRENCY_SYMBOLS.USDT,name:"USD Coin",address:"0x493257fd37edb34451f62edf8d2a0c418852ba4c",decimals:6,iconUrl:"https://static.cx.metamask.io/api/v1/tokenIcons/324/0x493257fd37edb34451f62edf8d2a0c418852ba4c.png"};r.SWAPS_CHAINID_COMMON_TOKEN_PAIR={[i.CHAIN_IDS.MAINNET]:k,[i.CHAIN_IDS.BSC]:x,[i.CHAIN_IDS.POLYGON]:D,[i.CHAIN_IDS.ARBITRUM]:j,[i.CHAIN_IDS.AVALANCHE]:U,[i.CHAIN_IDS.OPTIMISM]:B,[i.CHAIN_IDS.BASE]:H,[i.CHAIN_IDS.LINEA_MAINNET]:F,[i.CHAIN_IDS.ZKSYNC_ERA]:G}}}},{package:"$root$",file:"shared/constants/swaps.ts"}],[5746,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TERMS_OF_USE_LINK=r.TERMS_OF_USE_LAST_UPDATED=void 0;r.TERMS_OF_USE_LINK="https://consensys.io/terms-of-use/",r.TERMS_OF_USE_LAST_UPDATED="2023-03-25"}}},{package:"$root$",file:"shared/constants/terms.js"}],[5747,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.SECOND=r.MINUTE=r.MILLISECOND=r.HOUR=r.DAY=void 0;const n=r.MILLISECOND=1,o=r.SECOND=1e3*n,i=r.MINUTE=60*o,s=r.HOUR=60*i;r.DAY=24*s}}},{package:"$root$",file:"shared/constants/time.ts"}],[5748,{"@metamask/contract-metadata":1471,"bignumber.js":3978},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TOKEN_API_METASWAP_CODEFI_URL=r.STATIC_MAINNET_TOKEN_LIST=r.NUM_W_OPT_DECIMAL_COMMA_OR_DOT_REGEX=r.MAX_TOKEN_ALLOWANCE_AMOUNT=r.LISTED_CONTRACT_ADDRESSES=r.DECIMAL_REGEX=void 0;var n=i(e("@metamask/contract-metadata")),o=i(e("bignumber.js"));function i(e){return e&&e.__esModule?e:{default:e}}r.LISTED_CONTRACT_ADDRESSES=Object.keys(n.default).map((e=>e.toLowerCase())),r.STATIC_MAINNET_TOKEN_LIST=Object.keys(n.default).reduce(((e,t)=>{const{logo:r,...o}=n.default[t];return{...e,[t.toLowerCase()]:{...o,address:t.toLowerCase(),iconUrl:`images/contract/${r}`,aggregators:[]}}}),{}),r.TOKEN_API_METASWAP_CODEFI_URL="https://token.api.cx.metamask.io/tokens/",r.MAX_TOKEN_ALLOWANCE_AMOUNT=new o.default(2).pow(256).minus(1).toString(10),r.NUM_W_OPT_DECIMAL_COMMA_OR_DOT_REGEX=/^[0-9]{1,}([,.][0-9]{1,})?$/u,r.DECIMAL_REGEX=/\.(\d*)/u}}},{package:"$root$",file:"shared/constants/tokens.js"}],[5749,{"@metamask/transaction-controller":2905},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TransactionMetaMetricsEvent=r.TransactionGroupStatus=r.TransactionGroupCategory=r.TransactionApprovalAmountType=r.TokenStandard=r.TX_SENTINEL_URL=r.SmartTransactionStatus=r.SIGNING_METHODS=r.IN_PROGRESS_TRANSACTION_STATUSES=r.EIP5792ErrorCode=r.AssetType=r.AnonymousTransactionMetaMetricsEvent=void 0;var n=e("@metamask/transaction-controller");r.IN_PROGRESS_TRANSACTION_STATUSES=[n.TransactionStatus.unapproved,n.TransactionStatus.approved,n.TransactionStatus.signed,n.TransactionStatus.submitted],r.SIGNING_METHODS=Object.freeze(["eth_signTypedData","eth_signTypedData_v1","eth_signTypedData_v3","eth_signTypedData_v4","personal_sign"]);r.TransactionGroupStatus=function(e){return e.cancelled="cancelled",e.pending="pending",e}({}),r.SmartTransactionStatus=function(e){return e.cancelled="cancelled",e.pending="pending",e.success="success",e}({}),r.TransactionApprovalAmountType=function(e){return e.custom="custom",e.revoke="revoke",e.dappProposed="dapp_proposed",e}({}),r.TransactionGroupCategory=function(e){return e.approval="approval",e.interaction="interaction",e.receive="receive",e.send="send",e.signatureRequest="signature-request",e.swap="swap",e.swapAndSend="swapAndSend",e.bridge="bridge",e.redeposit="redeposit",e}({}),r.TransactionMetaMetricsEvent=function(e){return e.added="Transaction Added",e.approved="Transaction Approved",e.finalized="Transaction Finalized",e.rejected="Transaction Rejected",e.submitted="Transaction Submitted",e}({}),r.AnonymousTransactionMetaMetricsEvent=function(e){return e.added="Transaction Added Anon",e.approved="Transaction Approved Anon",e.finalized="Transaction Finalized Anon",e.rejected="Transaction Rejected Anon",e.submitted="Transaction Submitted Anon",e}({}),r.AssetType=function(e){return e.native="NATIVE",e.token="TOKEN",e.NFT="NFT",e.unknown="UNKNOWN",e}({}),r.TokenStandard=function(e){return e.ERC20="ERC20",e.ERC721="ERC721",e.ERC1155="ERC1155",e.none="NONE",e}({});r.TX_SENTINEL_URL="https://tx-sentinel-ethereum-mainnet.api.cx.metamask.io";r.EIP5792ErrorCode=function(e){return e[e.UnsupportedNonOptionalCapability=5700]="UnsupportedNonOptionalCapability",e[e.UnsupportedChainId=5710]="UnsupportedChainId",e[e.UnknownBundleId=5730]="UnknownBundleId",e[e.RejectedUpgrade=5750]="RejectedUpgrade",e}({})}}},{package:"$root$",file:"shared/constants/transaction.ts"}],[575,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.version=void 0,r.version="transactions/5.7.0"}}},{package:"ethers>@ethersproject/transactions",file:"node_modules/@ethersproject/transactions/lib/_version.js"}],[5750,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.SurveyUrl=r.BaseUrl=void 0;r.BaseUrl=function(e){return e.Portfolio="https://portfolio.metamask.io",e}({}),r.SurveyUrl=function(e){return e.BtcSupport="https://www.getfeedback.com/r/yG6FbiW5",e}({})}}},{package:"$root$",file:"shared/constants/urls.ts"}],[5752,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getUniqueAccountName=function(e,t){let r=1,n=t;const o=t=>e.some((e=>e.metadata.name===t));for(;o(n);)r+=1,n=`${t} ${r}`;return n}}}},{package:"$root$",file:"shared/lib/accounts/accounts.ts"}],[5753,{"@metamask/bitcoin-wallet-snap/dist/preinstalled-snap.json":1384},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.BITCOIN_WALLET_SNAP_ID=r.BITCOIN_WALLET_NAME=void 0;var n,o=(n=e("@metamask/bitcoin-wallet-snap/dist/preinstalled-snap.json"))&&n.__esModule?n:{default:n};r.BITCOIN_WALLET_SNAP_ID=o.default.snapId,r.BITCOIN_WALLET_NAME=o.default.manifest.proposedName}}},{package:"$root$",file:"shared/lib/accounts/bitcoin-wallet-snap.ts"}],[5754,{"./accounts":5752,"./bitcoin-wallet-snap":5753,"./snaps":5755,"./solana-wallet-snap":5756},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("./accounts");Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===n[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return n[e]}}))}));var o=e("./bitcoin-wallet-snap");Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===o[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return o[e]}}))}));var i=e("./snaps");Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===i[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return i[e]}}))}));var s=e("./solana-wallet-snap");Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===s[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return s[e]}}))}))}}},{package:"$root$",file:"shared/lib/accounts/index.ts"}],[5755,{"./bitcoin-wallet-snap":5753,"./solana-wallet-snap":5756},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.isMultichainWalletSnap=function(e){return i.includes(e)};var n=e("./bitcoin-wallet-snap"),o=e("./solana-wallet-snap");const i=[n.BITCOIN_WALLET_SNAP_ID,o.SOLANA_WALLET_SNAP_ID]}}},{package:"$root$",file:"shared/lib/accounts/snaps.ts"}],[5756,{"@metamask/solana-wallet-snap/dist/preinstalled-snap.json":2870},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.SOLANA_WALLET_SNAP_ID=r.SOLANA_WALLET_NAME=void 0;var n,o=(n=e("@metamask/solana-wallet-snap/dist/preinstalled-snap.json"))&&n.__esModule?n:{default:n};r.SOLANA_WALLET_SNAP_ID=o.default.snapId,r.SOLANA_WALLET_NAME=o.default.manifest.proposedName}}},{package:"$root$",file:"shared/lib/accounts/solana-wallet-snap.ts"}],[5757,{"../constants/time":5747,"../modules/conversion.utils":5782,"./fetch-with-cache":5763,"@metamask/controller-utils":1474,"@metamask/multichain-network-controller":2092,"@metamask/multichain-transactions-controller":2098,"@metamask/utils":2950},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.toAssetId=r.getAssetImageUrl=r.fetchAssetMetadata=void 0;var n,o=e("@metamask/utils"),i=e("@metamask/multichain-network-controller"),s=e("@metamask/multichain-transactions-controller"),a=e("@metamask/controller-utils"),c=e("../constants/time"),u=e("../modules/conversion.utils"),l=(n=e("./fetch-with-cache"))&&n.__esModule?n:{default:n};const f=(e,t)=>(0,o.isCaipAssetType)(e)?e:t===s.MultichainNetwork.Solana?o.CaipAssetTypeStruct.create(`${t}/token:${e}`):(0,o.isStrictHexString)(e)?o.CaipAssetTypeStruct.create(`${t}/erc20:${e}`):undefined;r.toAssetId=f;const d=(e,t)=>{const r=(0,o.isCaipChainId)(t)?t:(0,i.toEvmCaipChainId)(t),n=f(e,r);return n?`https://static.cx.metamask.io/api/v2/tokenIcons/assets/${n.replaceAll(":","/")}.png`:undefined};r.getAssetImageUrl=d;r.fetchAssetMetadata=async(e,t,r)=>{const n=(0,o.isCaipChainId)(t)?t:(0,i.toEvmCaipChainId)(t),h=f(e,n);if(!h)return undefined;try{const[i]=await(0,l.default)({url:`https://tokens.api.cx.metamask.io/v3/assets?assetIds=${h}`,fetchOptions:{method:"GET",headers:{"X-Client-Id":"extension"},signal:r},cacheOptions:{cacheRefreshTime:c.MINUTE},functionName:"fetchAssetMetadata"}),f={symbol:i.symbol,decimals:i.decimals,image:d(h,n),assetId:h};if(t===s.MultichainNetwork.Solana&&h){const{assetReference:e}=(0,o.parseCaipAssetType)(h);return{...f,address:e,assetId:h,chainId:t}}const{reference:p}=(0,o.parseCaipChainId)(n);return{...f,address:(0,a.toHex)(e),chainId:(0,u.decimalToPrefixedHex)(p)}}catch(e){return undefined}}}}},{package:"$root$",file:"shared/lib/asset-utils.ts"}],[5758,{"../../../app/scripts/lib/bridge-status/metrics-utils":101,"../../../ui/helpers/utils/hardware":6801,"../../../ui/hooks/bridge/events/types":6824,"../../../ui/pages/bridge/utils/quote":6968,"../../../ui/selectors":7485,"../../modules/selectors":5798,"@metamask/bridge-controller":1390},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getCommonProperties=void 0;var n=e("@metamask/bridge-controller"),o=e("../../../app/scripts/lib/bridge-status/metrics-utils"),i=e("../../../ui/helpers/utils/hardware"),s=e("../../../ui/hooks/bridge/events/types"),a=e("../../../ui/pages/bridge/utils/quote"),c=e("../../../ui/selectors"),u=e("../../modules/selectors");r.getCommonProperties=(e,t)=>{var r,l,f;const d=(0,c.getCurrentKeyring)(t),h=(0,i.isHardwareKeyring)(d.type)??!1,p=(0,n.formatChainIdToCaip)(e.quote.srcChainId),m=(0,n.formatChainIdToCaip)(e.quote.destChainId),_=(0,o.getHexGasTotalUsd)({bridgeHistoryItem:e,state:t})??0,g=Number(null===(r=e.pricingData)||void 0===r?void 0:r.quotedReturnInUsd),E=Number(null===(l=e.pricingData)||void 0===l?void 0:l.quotedGasInUsd),A=e.quote.srcChainId!==e.quote.destChainId;return{action_type:s.ActionType.CROSSCHAIN_V1,slippage_limit:e.slippagePercentage,custom_slippage:e.slippagePercentage!==n.BRIDGE_DEFAULT_SLIPPAGE,chain_id_source:p,chain_id_destination:m,token_address_source:e.quote.srcAsset.address,token_address_destination:e.quote.destAsset.address,token_symbol_source:e.quote.srcAsset.symbol,token_symbol_destination:e.quote.destAsset.symbol,stx_enabled:(0,u.getIsSmartTransaction)(t),is_hardware_wallet:h,provider:(0,a.formatProviderLabel)(e.quote),quoted_time_minutes:e.estimatedProcessingTimeInSeconds?e.estimatedProcessingTimeInSeconds/60:0,actual_time_minutes:e.completionTime&&e.startTime?(e.completionTime-e.startTime)/1e3/60:0,swap_type:A?s.ActionType.CROSSCHAIN_V1:s.ActionType.SWAPBRIDGE_V1,usd_amount_source:Number(null===(f=e.pricingData)||void 0===f?void 0:f.amountSentInUsd),usd_actual_gas:_,usd_quoted_return:g,usd_quoted_gas:E,gas_included:!1}}}}},{package:"$root$",file:"shared/lib/bridge-status/metrics.ts"}],[576,{"./_version":575,"@ethersproject/address":491,"@ethersproject/bignumber":498,"@ethersproject/bytes":500,"@ethersproject/constants":504,"@ethersproject/keccak256":526,"@ethersproject/logger":528,"@ethersproject/properties":534,"@ethersproject/rlp":560,"@ethersproject/signing-key":567},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t};Object.defineProperty(r,"__esModule",{value:!0}),r.parse=r.serialize=r.accessListify=r.recoverAddress=r.computeAddress=r.TransactionTypes=void 0;var s=e("@ethersproject/address"),a=e("@ethersproject/bignumber"),c=e("@ethersproject/bytes"),u=e("@ethersproject/constants"),l=e("@ethersproject/keccak256"),f=e("@ethersproject/properties"),d=i(e("@ethersproject/rlp")),h=e("@ethersproject/signing-key"),p=e("@ethersproject/logger"),m=e("./_version"),_=new p.Logger(m.version);function g(e){return"0x"===e?null:(0,s.getAddress)(e)}function E(e){return"0x"===e?u.Zero:a.BigNumber.from(e)}!function(e){e[e.legacy=0]="legacy",e[e.eip2930=1]="eip2930",e[e.eip1559=2]="eip1559"}(r.TransactionTypes||(r.TransactionTypes={}));var A=[{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"}],T={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function b(e){var t=(0,h.computePublicKey)(e);return(0,s.getAddress)((0,c.hexDataSlice)((0,l.keccak256)((0,c.hexDataSlice)(t,1)),12))}function y(e,t){return b((0,h.recoverPublicKey)((0,c.arrayify)(e),t))}function v(e,t){var r=(0,c.stripZeros)(a.BigNumber.from(e).toHexString());return r.length>32&&_.throwArgumentError("invalid length for "+t,"transaction:"+t,e),r}function I(e,t){return{address:(0,s.getAddress)(e),storageKeys:(t||[]).map((function(t,r){return 32!==(0,c.hexDataLength)(t)&&_.throwArgumentError("invalid access list storageKey","accessList["+e+":"+r+"]",t),t.toLowerCase()}))}}function N(e){if(Array.isArray(e))return e.map((function(e,t){return Array.isArray(e)?(e.length>2&&_.throwArgumentError("access list expected to be [ address, storageKeys[] ]","value["+t+"]",e),I(e[0],e[1])):I(e.address,e.storageKeys)}));var t=Object.keys(e).map((function(t){var r=e[t].reduce((function(e,t){return e[t]=!0,e}),{});return I(t,Object.keys(r).sort())}));return t.sort((function(e,t){return e.address.localeCompare(t.address)})),t}function w(e){return N(e).map((function(e){return[e.address,e.storageKeys]}))}function S(e,t){if(null!=e.gasPrice){var r=a.BigNumber.from(e.gasPrice),n=a.BigNumber.from(e.maxFeePerGas||0);r.eq(n)||_.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:r,maxFeePerGas:n})}var o=[v(e.chainId||0,"chainId"),v(e.nonce||0,"nonce"),v(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),v(e.maxFeePerGas||0,"maxFeePerGas"),v(e.gasLimit||0,"gasLimit"),null!=e.to?(0,s.getAddress)(e.to):"0x",v(e.value||0,"value"),e.data||"0x",w(e.accessList||[])];if(t){var i=(0,c.splitSignature)(t);o.push(v(i.recoveryParam,"recoveryParam")),o.push((0,c.stripZeros)(i.r)),o.push((0,c.stripZeros)(i.s))}return(0,c.hexConcat)(["0x02",d.encode(o)])}function O(e,t){var r=[v(e.chainId||0,"chainId"),v(e.nonce||0,"nonce"),v(e.gasPrice||0,"gasPrice"),v(e.gasLimit||0,"gasLimit"),null!=e.to?(0,s.getAddress)(e.to):"0x",v(e.value||0,"value"),e.data||"0x",w(e.accessList||[])];if(t){var n=(0,c.splitSignature)(t);r.push(v(n.recoveryParam,"recoveryParam")),r.push((0,c.stripZeros)(n.r)),r.push((0,c.stripZeros)(n.s))}return(0,c.hexConcat)(["0x01",d.encode(r)])}function R(e,t,r){try{var n=E(t[0]).toNumber();if(0!==n&&1!==n)throw new Error("bad recid");e.v=n}catch(e){_.throwArgumentError("invalid v for transaction type: 1","v",t[0])}e.r=(0,c.hexZeroPad)(t[1],32),e.s=(0,c.hexZeroPad)(t[2],32);try{var o=(0,l.keccak256)(r(e));e.from=y(o,{r:e.r,s:e.s,recoveryParam:e.v})}catch(e){}}r.computeAddress=b,r.recoverAddress=y,r.accessListify=N,r.serialize=function(e,t){if(null==e.type||0===e.type)return null!=e.accessList&&_.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",e),function(e,t){(0,f.checkProperties)(e,T);var r=[];A.forEach((function(t){var n=e[t.name]||[],o={};t.numeric&&(o.hexPad="left"),n=(0,c.arrayify)((0,c.hexlify)(n,o)),t.length&&n.length!==t.length&&n.length>0&&_.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,n),t.maxLength&&(n=(0,c.stripZeros)(n)).length>t.maxLength&&_.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,n),r.push((0,c.hexlify)(n))}));var n=0;if(null!=e.chainId?"number"!=typeof(n=e.chainId)&&_.throwArgumentError("invalid transaction.chainId","transaction",e):t&&!(0,c.isBytesLike)(t)&&t.v>28&&(n=Math.floor((t.v-35)/2)),0!==n&&(r.push((0,c.hexlify)(n)),r.push("0x"),r.push("0x")),!t)return d.encode(r);var o=(0,c.splitSignature)(t),i=27+o.recoveryParam;return 0!==n?(r.pop(),r.pop(),r.pop(),i+=2*n+8,o.v>28&&o.v!==i&&_.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t)):o.v!==i&&_.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t),r.push((0,c.hexlify)(i)),r.push((0,c.stripZeros)((0,c.arrayify)(o.r))),r.push((0,c.stripZeros)((0,c.arrayify)(o.s))),d.encode(r)}(e,t);switch(e.type){case 1:return O(e,t);case 2:return S(e,t)}return _.throwError("unsupported transaction type: "+e.type,p.Logger.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:e.type})},r.parse=function(e){var t=(0,c.arrayify)(e);if(t[0]>127)return function(e){var t=d.decode(e);9!==t.length&&6!==t.length&&_.throwArgumentError("invalid raw transaction","rawTransaction",e);var r={nonce:E(t[0]).toNumber(),gasPrice:E(t[1]),gasLimit:E(t[2]),to:g(t[3]),value:E(t[4]),data:t[5],chainId:0};if(6===t.length)return r;try{r.v=a.BigNumber.from(t[6]).toNumber()}catch(e){return r}if(r.r=(0,c.hexZeroPad)(t[7],32),r.s=(0,c.hexZeroPad)(t[8],32),a.BigNumber.from(r.r).isZero()&&a.BigNumber.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,o=t.slice(0,6);0!==r.chainId&&(o.push((0,c.hexlify)(r.chainId)),o.push("0x"),o.push("0x"),n-=2*r.chainId+8);var i=(0,l.keccak256)(d.encode(o));try{r.from=y(i,{r:(0,c.hexlify)(r.r),s:(0,c.hexlify)(r.s),recoveryParam:n})}catch(e){}r.hash=(0,l.keccak256)(e)}return r.type=null,r}(t);switch(t[0]){case 1:return function(e){var t=d.decode(e.slice(1));8!==t.length&&11!==t.length&&_.throwArgumentError("invalid component count for transaction type: 1","payload",(0,c.hexlify)(e));var r={type:1,chainId:E(t[0]).toNumber(),nonce:E(t[1]).toNumber(),gasPrice:E(t[2]),gasLimit:E(t[3]),to:g(t[4]),value:E(t[5]),data:t[6],accessList:N(t[7])};return 8===t.length||(r.hash=(0,l.keccak256)(e),R(r,t.slice(8),O)),r}(t);case 2:return function(e){var t=d.decode(e.slice(1));9!==t.length&&12!==t.length&&_.throwArgumentError("invalid component count for transaction type: 2","payload",(0,c.hexlify)(e));var r=E(t[2]),n=E(t[3]),o={type:2,chainId:E(t[0]).toNumber(),nonce:E(t[1]).toNumber(),maxPriorityFeePerGas:r,maxFeePerGas:n,gasPrice:null,gasLimit:E(t[4]),to:g(t[5]),value:E(t[6]),data:t[7],accessList:N(t[8])};return 9===t.length||(o.hash=(0,l.keccak256)(e),R(o,t.slice(9),S)),o}(t)}return _.throwError("unsupported transaction type: "+t[0],p.Logger.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:t[0]})}}}},{package:"ethers>@ethersproject/transactions",file:"node_modules/@ethersproject/transactions/lib/index.js"}],[5761,{"@metamask/controller-utils":1474,"@metamask/transaction-controller":2905},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.isCorrectDeveloperTransactionType=u,r.isCorrectSignatureApprovalType=c,r.shouldUseRedesignForSignatures=function({approvalType:e}){return c(e)},r.shouldUseRedesignForTransactions=function({transactionMetadataType:e}){return function(e){return function(e){if(!e)return!1;return s.includes(e)}(e)}(e)||function(e){return u(e)}(e)};var n=e("@metamask/transaction-controller"),o=e("@metamask/controller-utils");const i=[o.ApprovalType.EthSignTypedData,o.ApprovalType.PersonalSign],s=[n.TransactionType.batch,n.TransactionType.contractInteraction,n.TransactionType.deployContract,n.TransactionType.revokeDelegation,n.TransactionType.tokenMethodApprove,n.TransactionType.tokenMethodIncreaseAllowance,n.TransactionType.tokenMethodSetApprovalForAll,n.TransactionType.tokenMethodTransfer,n.TransactionType.tokenMethodTransferFrom,n.TransactionType.tokenMethodSafeTransferFrom,n.TransactionType.simpleSend],a=[...s];function c(e){return!!e&&i.includes(e)}function u(e){return!!e&&a.includes(e)}}}},{package:"$root$",file:"shared/lib/confirmation.utils.ts"}],[5763,{"../constants/time":5747,"../modules/fetch-with-timeout":5786,"./storage-helpers":5769},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=e("../constants/time"),i=(n=e("../modules/fetch-with-timeout"))&&n.__esModule?n:{default:n},s=e("./storage-helpers");r.default=async({url:e,fetchOptions:t={},cacheOptions:{cacheRefreshTime:r=6*o.MINUTE,timeout:n=30*o.SECOND}={},functionName:a="",allowStale:c=!1})=>{if(t.body||t.method&&"GET"!==t.method)throw new Error("fetchWithCache only supports GET requests");if(t.headers instanceof window.Headers||(t.headers=new window.Headers(t.headers)),t.headers.has("Content-Type")&&"application/json"!==t.headers.get("Content-Type"))throw new Error("fetchWithCache only supports JSON responses");const u=Date.now(),l=`cachedFetch:${e}`,{cachedResponse:f,cachedTime:d}=await(0,s.getStorageItem)(l)||{};if(f&&u-d<r)return f;t.headers.set("Content-Type","application/json");const h=(0,i.default)(n),p=await h(e,{referrerPolicy:"no-referrer-when-downgrade",body:null,method:"GET",mode:"cors",...t});if(!p.ok){const e=`Fetch with cache failed within function ${a} with status'${p.status}': '${p.statusText}'`;if(c)return console.debug(`${e}. Returning cached result`),f;throw new Error(`Fetch with cache failed within function ${a} with status'${p.status}': '${p.statusText}'`)}const m=204===p.status?undefined:await p.json(),_={cachedResponse:m,cachedTime:u};return await(0,s.setStorageItem)(l,_),m}}}},{package:"$root$",file:"shared/lib/fetch-with-cache.ts"}],[5764,{"../modules/hexstring-utils":5788,"../modules/transaction.utils":5804,"./fetch-with-cache":5763,"eth-method-registry":4297},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getMethodDataAsync=async function(e,t,r){try{let n=null;if(t&&(n=await c(e).catch((e=>(console.error(e),null)))),u||(u=new o.MethodRegistry({provider:r??global.ethereumProvider})),!n)return{};const i=u.parse(n);return{name:i.name,params:i.args}}catch(e){return console.error(e),{}}},r.getMethodFrom4Byte=c;var n,o=e("eth-method-registry"),i=e("../modules/transaction.utils"),s=e("../modules/hexstring-utils"),a=(n=e("./fetch-with-cache"))&&n.__esModule?n:{default:n};async function c(e){var t,r;if(!(0,i.hasTransactionData)(e)||(null===(t=(0,s.stripHexPrefix)(e))||void 0===t?void 0:t.length)<8)return undefined;const n=await(0,a.default)({url:`https://www.4byte.directory/api/v1/signatures/?hex_signature=${e}`,fetchOptions:{referrerPolicy:"no-referrer-when-downgrade",body:null,method:"GET",mode:"cors"},functionName:"getMethodFrom4Byte"});return null!==(r=n.results)&&void 0!==r&&r.length?(n.results.sort(((e,t)=>new Date(e.created_at).getTime()<new Date(t.created_at).getTime()?-1:1)),n.results[0].text_signature):undefined}let u}}},{package:"$root$",file:"shared/lib/four-byte.ts"}],[5765,{"webextension-polyfill":5696},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getManifestFlags=function(){if("undefined"===undefined||!o.default.runtime.getManifest)return{};return o.default.runtime.getManifest()._flags||{}};var n,o=(n=e("webextension-polyfill"))&&n.__esModule?n:{default:n}}}},{package:"$root$",file:"shared/lib/manifestFlags.ts"}],[5766,{"@metamask/transaction-controller":2905},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getTokenValueParam=function(e={}){var t,r;return(null==e?void 0:e.name)===n.TransactionType.tokenMethodIncreaseAllowance?null==e||null===(r=e.args)||void 0===r||null===(r=r.increment)||void 0===r?void 0:r.toString():null==e||null===(t=e.args)||void 0===t||null===(t=t._value)||void 0===t?void 0:t.toString()};var n=e("@metamask/transaction-controller")}}},{package:"$root$",file:"shared/lib/metamask-controller-utils.js"}],[5767,{"@metamask/keyring-api":1983,"@metamask/utils":2950,"@solana/addresses":3238,"bitcoin-address-validation":3979},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getCaipNamespaceFromAddress=l,r.isBtcMainnetAddress=a,r.isBtcTestnetAddress=c,r.isCurrentChainCompatibleWithAccount=function(e,t){if(!e)return!1;if((0,n.isCaipChainId)(e)){const{namespace:r}=(0,n.parseCaipChainId)(e);return r===l(t.address)}return(0,s.isEvmAccountType)(t.type)},r.isSolanaAddress=u;var n=e("@metamask/utils"),o=e("bitcoin-address-validation"),i=e("@solana/addresses"),s=e("@metamask/keyring-api");function a(e){return(0,o.validate)(e,o.Network.mainnet)}function c(e){return(0,o.validate)(e,o.Network.testnet)}function u(e){return(0,i.isAddress)(e)}function l(e){return a(e)||c(e)?n.KnownCaipNamespace.Bip122:u(e)?n.KnownCaipNamespace.Solana:n.KnownCaipNamespace.Eip155}}}},{package:"$root$",file:"shared/lib/multichain/accounts.ts"}],[5769,{localforage:4710},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getStorageItem=async function(e){try{const t=await o.default.getItem(e);return null===t?undefined:JSON.parse(t)}catch(e){return undefined}},r.setStorageItem=async function(e,t){try{const r=JSON.stringify(t);await o.default.setItem(e,r)}catch(e){console.warn(e)}};var n,o=(n=e("localforage"))&&n.__esModule?n:{default:n}}}},{package:"$root$",file:"shared/lib/storage-helpers.js"}],[577,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.version=void 0,r.version="units/5.7.0"}}},{package:"ethers>@ethersproject/units",file:"node_modules/@ethersproject/units/lib/_version.js"}],[5770,{"../../app/scripts/lib/util":187,"../constants/network":5734,"../constants/swaps":5745,"../constants/time":5747,"../modules/conversion.utils":5782,"../modules/hexstring-utils":5788,"../modules/string-utils":5802,"./fetch-with-cache":5763,"bignumber.js":3978,loglevel:4863},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.QUOTE_VALIDATORS=void 0,r.addHexPrefixToObjectValues=N,r.calcTokenValue=v,r.calculateMaxGasLimit=function(e,t=p,r,o){const i=new n.default(e||0,16).round(0).toString(16),s=new n.default(i,16).times(t,10).round(0).toString(16),a=e?s:`0x${(0,f.decimalToHex)(r||0)}`;return o||a},r.constructTxParams=w,r.fetchTradesInfo=async function({slippage:e,sourceToken:t,sourceDecimals:r,destinationToken:n,value:o,fromAddress:i,exchangeList:s,enableGasIncludedQuotes:c},{chainId:u}){const l={destinationToken:n,sourceToken:t,sourceAmount:v(o,r).toString(10),slippage:e,timeout:10*a.SECOND,walletAddress:i,enableGasIncludedQuotes:c};s&&(l.exchangeList=s);I(u,t,n)&&(l.enableDirectWrapping=!0);const h=new URLSearchParams(l).toString(),p=`${y("trade",u)}${h}`,m=await(0,d.default)({url:p,fetchOptions:{method:"GET",headers:_},cacheOptions:{cacheRefreshTime:0,timeout:15*a.SECOND},functionName:"fetchTradesInfo"});return m.reduce(((t,r)=>{if(r.trade&&!r.error&&T(b,r,p)){const n=w({to:r.trade.to,from:r.trade.from,data:r.trade.data,amount:(0,f.decimalToHex)(r.trade.value),gas:(0,f.decimalToHex)(r.maxGas)});let{approvalNeeded:o}=r;return o&&(o=w({...o})),{...t,[r.aggregator]:{...r,slippage:e,trade:n,approvalNeeded:o}}}return t}),{})},r.validHex=r.truthyString=r.truthyDigitString=r.shouldEnableDirectWrapping=r.getBaseApi=void 0,r.validateData=T;var n=h(e("bignumber.js")),o=h(e("loglevel")),i=e("../constants/network"),s=e("../constants/swaps"),a=e("../constants/time"),c=e("../modules/hexstring-utils"),u=e("../modules/string-utils"),l=e("../../app/scripts/lib/util"),f=e("../modules/conversion.utils"),d=h(e("./fetch-with-cache"));function h(e){return e&&e.__esModule?e:{default:e}}const p=1.5,m=[i.CHAIN_IDS.GOERLI,i.CHAIN_IDS.LOCALHOST],_={"X-Client-Id":s.SWAPS_CLIENT_ID},g=e=>Boolean(null==e?void 0:e.match(/^0x[a-f0-9]+$/u));r.validHex=g;const E=e=>Boolean(null==e?void 0:e.length);r.truthyString=E;const A=e=>E(e)&&Boolean(e.match(/^\d+$/u));function T(e,t,r,n=!0){return e.every((({property:e,type:i,validator:s})=>{const a=i.split("|").some((r=>typeof t[e]===r))&&(!s||s(t[e]));return!a&&n&&o.default.error(`response to GET ${r} invalid for property ${e}; value was:`,t[e],"| type was: ",typeof t[e]),a}))}r.truthyDigitString=A;const b=r.QUOTE_VALIDATORS=[{property:"trade",type:"object",validator:e=>e&&g(e.data)&&(0,c.isValidHexAddress)(e.to,{allowNonPrefixed:!1})&&(0,c.isValidHexAddress)(e.from,{allowNonPrefixed:!1})&&E(e.value)},{property:"approvalNeeded",type:"object",validator:e=>null===e||e&&g(e.data)&&(0,c.isValidHexAddress)(e.to,{allowNonPrefixed:!1})&&(0,c.isValidHexAddress)(e.from,{allowNonPrefixed:!1})},{property:"sourceAmount",type:"string",validator:A},{property:"destinationAmount",type:"string",validator:A},{property:"sourceToken",type:"string",validator:e=>(0,c.isValidHexAddress)(e,{allowNonPrefixed:!1})},{property:"destinationToken",type:"string",validator:e=>(0,c.isValidHexAddress)(e,{allowNonPrefixed:!1})},{property:"aggregator",type:"string",validator:E},{property:"aggType",type:"string",validator:E},{property:"error",type:"object",validator:e=>null===e||"object"==typeof e},{property:"averageGas",type:"number"},{property:"maxGas",type:"number"},{property:"gasEstimate",type:"number|undefined",validator:e=>e===undefined||e>0},{property:"fee",type:"number"}],y=function(e,t){const r=m.includes(t)?i.CHAIN_IDS.MAINNET:t,n=((e,t)=>{const r=s.SWAPS_API_V2_BASE_URL,n=s.GAS_API_BASE_URL,o=s.TOKEN_API_BASE_URL;if(["refreshTime"].includes(e))return r;const i=t&&parseInt(t,16);return["gasPrices"].includes(e)?`${n}/networks/${i}`:["blockedTokens"].includes(e)?`${o}/blocklist?chainId=${i}`:`${r}/networks/${i}`})(e,r);if(!n)throw new Error(`Swaps API calls are disabled for chainId: ${r}`);switch(e){case"trade":return`${n}/trades?`;case"tokens":return`${n}/tokens?includeBlockedTokens=true`;case"token":return`${n}/token`;case"topAssets":return`${n}/topAssets`;case"aggregatorMetadata":return`${n}/aggregatorMetadata`;case"gasPrices":return`${n}/gasPrices`;case"blockedTokens":return`${n}&region=global`;case"network":return n;default:throw new Error("getBaseApi requires an api call type")}};function v(e,t){const r=new n.default(10).pow(new n.default(t));return new n.default(String(e)).times(r)}r.getBaseApi=y;const I=(e,t,r)=>{var n;if(!t||!r)return!1;const o=s.SWAPS_WRAPPED_TOKENS_ADDRESSES[e],i=null===(n=s.SWAPS_CHAINID_DEFAULT_TOKEN_MAP[e])||void 0===n?void 0:n.address;return(0,u.isEqualCaseInsensitive)(t,o)&&(0,u.isEqualCaseInsensitive)(r,i)||(0,u.isEqualCaseInsensitive)(t,i)&&(0,u.isEqualCaseInsensitive)(r,o)};function N(e){return Object.keys(e).reduce(((t,r)=>({...t,[r]:(0,l.addHexPrefix)(e[r])})),{})}function w({sendToken:e,data:t,to:r,amount:n,from:o,gas:i,gasPrice:s}){const a={data:t,from:o,value:"0",gas:i,gasPrice:s};return e||(a.value=n,a.to=r),N(a)}r.shouldEnableDirectWrapping=I}}},{package:"$root$",file:"shared/lib/swaps-utils.js"}],[5771,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;r.default=e=>{document.documentElement.dir="auto"===e?"ltr":e}}}},{package:"$root$",file:"shared/lib/switch-direction.js"}],[5772,{"@ethersproject/contracts":507,"@ethersproject/providers":545,"@metamask/metamask-eth-abis":2089},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.fetchERC1155Balance=async function(e,t,r,s){if(!t||!r)return null;const a=new i.Web3Provider(s),c=new o.Contract(e,n.abiERC1155,a),u=c?c.balanceOf(t,r):Promise.resolve();return await u},r.fetchTokenBalance=async function(e,t,r){const s=new i.Web3Provider(r),a=new o.Contract(e,n.abiERC20,s),c=a?a.balanceOf(t):Promise.resolve();return await c},r.getTokenIdParam=function(e={}){var t,r;return(null==e||null===(t=e.args)||void 0===t||null===(t=t._tokenId)||void 0===t?void 0:t.toString())??(null==e||null===(r=e.args)||void 0===r||null===(r=r.id)||void 0===r?void 0:r.toString())};var n=e("@metamask/metamask-eth-abis"),o=e("@ethersproject/contracts"),i=e("@ethersproject/providers")}}},{package:"$root$",file:"shared/lib/token-util.ts"}],[5773,{"../../app/scripts/lib/setupSentry":160,"@metamask/utils":2950},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TraceName=void 0,r.endTrace=function(e){const{name:t,timestamp:r}=e,n=f(e),o=d(e),s=c.get(o);if(!s)return void i("No pending trace found",t,n);s.end(r),c.delete(o);const{request:a,startTime:u}=s,p=r??h();l(a,u,p)},r.trace=function(e,t){if(!t)return function(e){const{name:t,startTime:r}=e,n=r??h(),o=f(e),s=r=>{const s=e=>{null==r||r.end(e)};r&&p(r,e);const a={end:s,request:e,startTime:n},u=d(e);return c.set(u,a),i("Started trace",t,o,e),r};return u(e,(e=>function(e,t){var r;const n=null===(r=globalThis.sentry)||void 0===r?void 0:r.startSpanManual;if(!n)return t(null);return n(e,t)}(e,s)))}(e);return function(e,t){const{name:r}=e,n=n=>{i("Starting trace",r,e);const o=Date.now();let s;return n&&p(n,e),function(e,t,r){let n=!1;try{const o=e();return o instanceof Promise?(n=!0,o.catch(t).finally(r)):o}catch(e){n||t(e)}finally{n||r()}return undefined}((()=>t(n)),(e=>{throw s=e,e}),(()=>{const t=Date.now();l(e,o,t,s)}))};return u(e,(e=>function(e,t){var r;const n=null===(r=globalThis.sentry)||void 0===r?void 0:r.startSpan;if(!n)return t(null);return n(e,t)}(e,n)))}(e,t)};var n=e("@metamask/utils"),o=e("../../app/scripts/lib/setupSentry");r.TraceName=function(e){return e.AccountList="Account List",e.AccountOverviewAssetListTab="Account Overview Asset List Tab",e.AccountOverviewNftsTab="Account Overview Nfts Tab",e.AccountOverviewActivityTab="Account Overview Activity Tab",e.BackgroundConnect="Background Connect",e.DeveloperTest="Developer Test",e.FirstRender="First Render",e.GetState="Get State",e.InitialActions="Initial Actions",e.LazyLoadComponent="Lazy Load Component",e.LoadScripts="Load Scripts",e.Middleware="Middleware",e.NestedTest1="Nested Test 1",e.NestedTest2="Nested Test 2",e.NotificationDisplay="Notification Display",e.PPOMValidation="PPOM Validation",e.SetupStore="Setup Store",e.Signature="Signature",e.Transaction="Transaction",e.UIStartup="UI Startup",e}({});const i=(0,n.createModuleLogger)(o.log,"trace"),s="default",a="custom",c=new Map;function u(e,t){const{data:r,name:n,parentContext:o,startTime:i}=e,s={attributes:r,name:n,op:a,parentSpan:o??null,startTime:i};return function(e){var t;const r=null===(t=globalThis.sentry)||void 0===t?void 0:t.withIsolationScope;if(!r){return e({setTag:()=>{}})}return r(e)}((r=>(function(e,t){const r=t.tags??{};for(const[t,n]of Object.entries(r))"number"!=typeof n&&e.setTag(t,n)}(r,e),t(s))))}function l(e,t,r,n){const o=r-t,{name:s}=e;i("Finished trace",s,o,{request:e,error:n})}function f(e){return e.id??s}function d(e){const{name:t}=e;return[t,f(e)].join(":")}function h(){return performance.timeOrigin+performance.now()}function p(e,t){const r=t.tags??{};for(const[e,t]of Object.entries(r))"number"==typeof t&&m(e,t,"none")}function m(e,t,r){var n;const o=null===(n=globalThis.sentry)||void 0===n?void 0:n.setMeasurement;o&&o(e,t,r)}}}},{package:"$root$",file:"shared/lib/trace.ts"}],[5774,{"../../ui/helpers/utils/confirm-tx.util":6797},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.calcHexGasTotal=void 0;var n=e("../../ui/helpers/utils/confirm-tx.util");r.calcHexGasTotal=e=>{const{txParams:{gas:t,gasPrice:r}={},txReceipt:{gasUsed:o,effectiveGasPrice:i}={}}=e,s="string"==typeof o?o:t,a=r||i;return s&&a&&(0,n.getHexGasTotal)({gasLimit:s,gasPrice:a})||"0x0"}}}},{package:"$root$",file:"shared/lib/transaction-breakdown-utils.ts"}],[5775,{"../constants/common":5721,"../modules/Numeric":5777,"../modules/swaps.utils":5803,"@metamask/transaction-controller":2905,"bignumber.js":3978},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TRANSFER_SINFLE_LOG_TOPIC_HASH=r.TRANSACTION_NO_CONTRACT_ERROR_KEY=r.TRANSACTION_ENVELOPE_TYPE_NAMES=r.TOKEN_TRANSFER_LOG_TOPIC_HASH=r.TEN_SECONDS_IN_MILLISECONDS=void 0,r.calcGasTotal=l,r.calcTokenAmount=d,r.getSwapsTokensReceivedFromTxMeta=function(e,t,r,n,o,h,p,m=6){var _;const g=(null==t?void 0:t.swapAndSendRecipient)??n,E=null==t?void 0:t.txReceipt,A=(null==t||null===(_=t.txReceipt)||void 0===_?void 0:_.type)===i.TransactionEnvelopeType.feeMarket;if((0,c.isSwapsDefaultTokenSymbol)(e,p)){if(!(E&&t&&t.postTxBalance&&t.preTxBalance))return null;if(t.swapMetaData&&t.preTxBalance===t.postTxBalance)return t.swapMetaData.token_to_amount;let e=new a.Numeric("0x0",16);h&&h.txReceipt&&(e=new a.Numeric(l(h.txReceipt.gasUsed,A?h.txReceipt.effectiveGasPrice:h.txParams.gasPrice),16));const r=l(E.gasUsed,A?E.effectiveGasPrice:t.txParams.gasPrice),n=new a.Numeric(r,16).add(e),o=new a.Numeric(t.preTxBalance,16).minus(n),i=new a.Numeric(t.postTxBalance,16,s.EtherDenomination.WEI).minus(o).toDenomination(s.EtherDenomination.ETH).toBase(10);return(null===m?i:i.round(m)).toFixed()}const T=null==E?void 0:E.logs;if(T&&"0x0"!==(null==E?void 0:E.status)){const e=T.find((e=>{const t=e.topics&&e.topics[0]===u,n=e.address===r,o=e.topics&&e.topics[2]&&e.topics[2].match(null==g?void 0:g.slice(2));return t&&n&&o}));if(e){const t=d(e.data,o);return null===m?t.toFixed():f(t,m)}return""}return null},r.toPrecisionWithoutTrailingZeros=f;var n,o=(n=e("bignumber.js"))&&n.__esModule?n:{default:n},i=e("@metamask/transaction-controller"),s=e("../constants/common"),a=e("../modules/Numeric"),c=e("../modules/swaps.utils");const u=r.TOKEN_TRANSFER_LOG_TOPIC_HASH="0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef";r.TRANSACTION_NO_CONTRACT_ERROR_KEY="transactionErrorNoContract",r.TRANSFER_SINFLE_LOG_TOPIC_HASH="0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62",r.TEN_SECONDS_IN_MILLISECONDS=1e4;function l(e="0",t="0"){return new a.Numeric(e,16).times(new a.Numeric(t,16)).toString()}function f(e,t){return new o.default(e).toPrecision(t).replace(/(\.[0-9]*[1-9])0*|(\.0*)/u,"$1")}function d(e,t){const r=new o.default(10).pow(t??0);return new o.default(String(e)).div(r)}r.TRANSACTION_ENVELOPE_TYPE_NAMES={FEE_MARKET:"fee-market",LEGACY:"legacy"}}}},{package:"$root$",file:"shared/lib/transactions-controller-utils.js"}],[5777,{"../constants/common":5721,"./hexstring-utils":5788,"@metamask/utils":2950,"bignumber.js":3978,"bn.js":4026,"ethereumjs-util":4327},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Numeric=void 0;var n,o=e("bignumber.js"),i=(n=e("bn.js"))&&n.__esModule?n:{default:n},s=e("@metamask/utils"),a=e("ethereumjs-util"),c=e("../constants/common"),u=e("./hexstring-utils");function l(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(e){return(0,s.isHexString)(e.replace("-",""))||(0,s.isHexString)(e)}function d(e,t){if("string"!=typeof e)throw new Error(`Value of type ${typeof e} passed to stringToBigNumber`);if(16===t&&(f(e)||function(e){const t=e.split(".");return 1!==t.length&&t.every((e=>f(e)))}(e)))return function(e){const t="number"==typeof e?`${e}`:e,r="-"===(0,u.stripHexPrefix)(t)[0],n=t.replace("-",""),i=new o.BigNumber((0,u.stripHexPrefix)(n),16);return r?i.negated():i}(e);if(10===t&&(isFinite(parseInt(e,10))||isFinite(parseFloat(e))))return function(e){return new o.BigNumber(String(e),10)}(e);throw new Error(`String provided to stringToBigNumber is not a hexadecimal or decimal string: ${e}, ${t}`)}function h(e,t){if("string"==typeof e)return d(e,t);if("number"==typeof e&&!1===isNaN(e))return function(e,t){if("number"!=typeof e)throw new Error(`Value of type ${typeof e} passed to numberToBigNumber`);return 16===t&&(0,s.isHexString)(`${e}`)?new o.BigNumber(`${e}`,16):new o.BigNumber(e,10)}(e,t);throw new Error(`Value: ${e} is not a string, number, BigNumber or BN. Type is: ${typeof e}.`)}o.BigNumber.config({DECIMAL_PLACES:36});const p=new o.BigNumber("1000000000000000000"),m=new o.BigNumber("1000000000"),_=new o.BigNumber("1"),g={WEI:e=>e.div(p),GWEI:e=>e.div(m),ETH:e=>e.div(_)},E={WEI:e=>e.times(p).round(),GWEI:e=>e.times(m).round(9),ETH:e=>e.times(_).round(9)};function A(e,t){return void 0!==t.denomination&&e.denomination!==t.denomination?t.toDenomination(e.denomination):t}class T{constructor(e,t,r){if(l(this,"value",void 0),l(this,"base",void 0),l(this,"denomination",void 0),this.base=t,this.denomination=r,e instanceof o.BigNumber)this.value=e;else if(e instanceof i.default)this.value=function(e){if(e instanceof i.default==0)throw new Error("value passed to bnToBigNumber is not a BN. Received type "+typeof e);return new o.BigNumber(e.toString(16),16)}(e);else if((0,s.isNullOrUndefined)(e)||"number"==typeof e&&isNaN(e)||"string"==typeof e&&""===e)this.value=new o.BigNumber("0",10),this.base=10;else{if(!t)throw new Error("You must specify the base of the provided number if the value is not already a BigNumber");this.value=h(e,t)}}static from(e,t,r){if(e instanceof T){if(t||r)throw new Error(`Numeric.from was called with a value (${e.toString()}) that is already a Numeric but a base and/or denomination was provided. Only supply base or denomination when creating a new Numeric`);return e}return new T(e,t,r)}toBase(e){return this.base!==e?new T(this.value,e,this.denomination):this}toDenomination(e){if(e&&this.denomination!==e){return new T(E[e]((t=this).denomination===c.EtherDenomination.ETH||void 0===t.denomination?t.value:g[t.denomination](t.value)),this.base,e)}var t;return this}shiftedBy(e){const t=new T(Math.pow(10,e),10);return this.divide(t)}applyConversionRate(e,t){if(void 0===e)return this;let r=new T(e,10);return t&&(r=new T(new o.BigNumber(1)).divide(r)),this.times(r)}round(e,t=o.BigNumber.ROUND_HALF_DOWN){return"number"==typeof e?new T(this.value.round(e,t),this.base,this.denomination):this}add(e,t,r){const n=T.from(e,t,r);return new T(this.value.add(A(this,n).value),this.base,this.denomination)}minus(e,t,r){const n=T.from(e,t,r);return new T(this.value.minus(A(this,n).value),this.base,this.denomination)}times(e,t,r){const n=T.from(e,t,r);return new T(this.value.times(A(this,n).value),this.base,this.denomination)}divide(e,t,r){return new T(this.value.div(A(this,T.from(e,t,r)).value),this.base,this.denomination)}abs(){return new T(this.value.abs(),this.base,this.denomination)}isZero(){return this.value.isZero()}greaterThan(e,t,r){return this.value.greaterThan(T.from(e,t,r).value)}greaterThanOrEqualTo(e,t,r){return this.value.greaterThanOrEqualTo(T.from(e,t,r).value)}lessThan(e,t,r){return this.value.lessThan(T.from(e,t,r).value)}lessThanOrEqualTo(e,t,r){return this.value.lessThanOrEqualTo(T.from(e,t,r).value)}isNegative(){return this.value.isNegative()}isPositive(){return!1===this.isNegative()}isFloat(){return this.value.decimalPlaces()>0}toPrefixedHexString(){return(0,a.addHexPrefix)(this.value.toString(16))}toString(){return this.value.toString(this.base)}toFixed(e){return this.value.toFixed(e)}toNumber(){return this.value.toNumber()}}r.Numeric=T}}},{package:"$root$",file:"shared/modules/Numeric.ts"}],[5779,{"../../ui/helpers/constants/common":6768,bowser:4037,loglevel:4863,"webextension-polyfill":5696},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.checkForLastError=c,r.checkForLastErrorAndLog=function(){const e=c();e&&i.default.error(e);return e},r.checkForLastErrorAndWarn=function(){const e=c();e&&console.warn(e);return e},r.getIsBrowserPrerenderBroken=function(e=n.default.getParser(window.navigator.userAgent)){return(e.satisfies(s.BROKEN_PRERENDER_BROWSER_VERSIONS)&&!e.satisfies(s.FIXED_PRERENDER_BROWSER_VERSIONS))??!1};var n=a(e("bowser")),o=a(e("webextension-polyfill")),i=a(e("loglevel")),s=e("../../ui/helpers/constants/common");function a(e){return e&&e.__esModule?e:{default:e}}function c(){const{lastError:e}=o.default.runtime;return e?e.stack&&e.message?e:new Error(e.message):undefined}}}},{package:"$root$",file:"shared/modules/browser-runtime.utils.js"}],[578,{"./_version":577,"@ethersproject/bignumber":498,"@ethersproject/logger":528},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.parseEther=r.formatEther=r.parseUnits=r.formatUnits=r.commify=void 0;var n=e("@ethersproject/bignumber"),o=e("@ethersproject/logger"),i=e("./_version"),s=new o.Logger(i.version),a=["wei","kwei","mwei","gwei","szabo","finney","ether"];function c(e,t){if("string"==typeof t){var r=a.indexOf(t);-1!==r&&(t=3*r)}return(0,n.formatFixed)(e,null!=t?t:18)}function u(e,t){if("string"!=typeof e&&s.throwArgumentError("value must be a string","value",e),"string"==typeof t){var r=a.indexOf(t);-1!==r&&(t=3*r)}return(0,n.parseFixed)(e,null!=t?t:18)}r.commify=function(e){var t=String(e).split(".");(t.length>2||!t[0].match(/^-?[0-9]*$/)||t[1]&&!t[1].match(/^[0-9]*$/)||"."===e||"-."===e)&&s.throwArgumentError("invalid value","value",e);var r=t[0],n="";for("-"===r.substring(0,1)&&(n="-",r=r.substring(1));"0"===r.substring(0,1);)r=r.substring(1);""===r&&(r="0");var o="";for(2===t.length&&(o="."+(t[1]||"0"));o.length>2&&"0"===o[o.length-1];)o=o.substring(0,o.length-1);for(var i=[];r.length;){if(r.length<=3){i.unshift(r);break}var a=r.length-3;i.unshift(r.substring(a)),r=r.substring(0,a)}return n+i.join(",")+o},r.formatUnits=c,r.parseUnits=u,r.formatEther=function(e){return c(e,18)},r.parseEther=function(e){return u(e,18)}}}},{package:"ethers>@ethersproject/units",file:"node_modules/@ethersproject/units/lib/index.js"}],[5781,{"ethereumjs-util":4327},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.readAddressAsContract=void 0;var n=e("ethereumjs-util");r.readAddressAsContract=async(e,t)=>{let r=null;try{const o=await e.request({method:"eth_getCode",params:[t,"latest"]});r=(0,n.addHexPrefix)((0,n.padToEven)(o.slice(2)))}catch(e){r=null}return{contractCode:r,isContractAddress:!!r&&("0x"!==r&&"0x0"!==r)}}}}},{package:"$root$",file:"shared/modules/contract-utils.ts"}],[5782,{"../constants/common":5721,"./Numeric":5777,"bignumber.js":3978,"ethereumjs-util":4327},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.addHexes=function(e,t){return new s.Numeric(e,16).add(new s.Numeric(t,16)).round(6,n.BigNumber.ROUND_HALF_DOWN).toString()},r.bnToHex=function(e){return(0,o.addHexPrefix)(e.toString(16))},r.decEthToConvertedCurrency=function(e,t,r){let n=new s.Numeric(e,10,i.EtherDenomination.ETH);t!==i.EtherDenomination.ETH&&(n=n.applyConversionRate(r));return n.round(2)},r.decGWEIToHexWEI=function(e){return new s.Numeric(e,10,i.EtherDenomination.GWEI).toBase(16).toDenomination(i.EtherDenomination.WEI).toString()},r.decWEIToDecETH=function(e){return new s.Numeric(e,10,i.EtherDenomination.WEI).toDenomination(i.EtherDenomination.ETH).toString()},r.decimalToHex=function(e){return new s.Numeric(e,10).toBase(16).toString()},r.decimalToPrefixedHex=function(e){return new s.Numeric(e,10).toPrefixedHexString()},r.getEthConversionFromWeiHex=function({value:e,fromCurrency:t=i.EtherDenomination.ETH,conversionRate:r,numberOfDecimals:n=6}){const o=[i.EtherDenomination.ETH,i.EtherDenomination.GWEI,i.EtherDenomination.WEI];let s;for(let i=0;i<o.length;i++){const c=a({value:e,conversionRate:r,fromCurrency:t,toCurrency:t,numberOfDecimals:n,toDenomination:o[i]});if("0"!==c||i===o.length-1){s=`${c} ${o[i]}`;break}}return s},r.getValueFromWeiHex=a,r.getWeiHexFromDecimalValue=function({value:e,conversionRate:t=1,fromDenomination:r,fromCurrency:n,invertConversionRate:o=!1}){let a=new s.Numeric(e,10,r);n!==i.EtherDenomination.ETH&&(a=a.applyConversionRate(t,o));return a.toBase(16).toDenomination(i.EtherDenomination.WEI).toString()},r.hexToDecimal=function(e){return new s.Numeric(e,16).toBase(10).toString()},r.hexWEIToDecETH=function(e){return new s.Numeric(e,16,i.EtherDenomination.WEI).toDenomination(i.EtherDenomination.ETH).toBase(10).toString()},r.hexWEIToDecGWEI=function(e){return new s.Numeric(e,16,i.EtherDenomination.WEI).toBase(10).toDenomination(i.EtherDenomination.GWEI).toString()},r.multiplyHexes=function(e,t){return new s.Numeric(e,16).times(new s.Numeric(t,16)).round(6,n.BigNumber.ROUND_HALF_DOWN).toString()},r.subtractHexes=function(e,t){return new s.Numeric(e,16).minus(new s.Numeric(t,16)).round(6,n.BigNumber.ROUND_HALF_DOWN).toString()},r.sumDecimals=function(e,...t){const r=new s.Numeric(e,10);return t.reduce(((e,t)=>e.add(new s.Numeric(t,10))),r)},r.sumHexes=function(e,...t){const r=new s.Numeric(e,16);return t.reduce(((e,t)=>e.add(new s.Numeric(t,16))),r).toPrefixedHexString()};var n=e("bignumber.js"),o=e("ethereumjs-util"),i=e("../constants/common"),s=e("./Numeric");function a({value:e,fromCurrency:t=i.EtherDenomination.ETH,toCurrency:r,conversionRate:o,numberOfDecimals:a,toDenomination:c=i.EtherDenomination.ETH}){let u=new s.Numeric(e,16,i.EtherDenomination.WEI);return t!==r&&(u=u.applyConversionRate(o)),u.toBase(10).toDenomination(c).round(a,n.BigNumber.ROUND_HALF_DOWN).toString()}}}},{package:"$root$",file:"shared/modules/conversion.utils.ts"}],[5783,{"../../development/build/constants":369},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.isProduction=void 0;var n=e("../../development/build/constants");r.isProduction=()=>"production"!==n.ENVIRONMENT.DEVELOPMENT&&"production"!==n.ENVIRONMENT.TESTING}}},{package:"$root$",file:"shared/modules/environment.ts"}],[5784,{"@metamask/utils":2950,loglevel:4863},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getErrorMessage=s,Object.defineProperty(r,"isErrorWithMessage",{enumerable:!0,get:function(){return i.isErrorWithMessage}}),r.logErrorWithMessage=function(e){o.default.error((0,i.isErrorWithMessage)(e)?s(e):e)};var n,o=(n=e("loglevel"))&&n.__esModule?n:{default:n},i=e("@metamask/utils");function s(e){return(0,i.isErrorWithMessage)(e)&&(0,i.hasProperty)(e,"cause")&&(0,i.isObject)(e.cause)&&(0,i.hasProperty)(e.cause,"message")&&"string"==typeof e.cause.message?e.cause.message:(0,i.getErrorMessage)(e)}}}},{package:"$root$",file:"shared/modules/error.ts"}],[5785,{"../constants/network":5734},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getNetworkNameByChainId=void 0;var n=e("../constants/network"),o=function(e){return e.Ethereum="ethereum",e.Polygon="polygon",e.Bsc="bsc",e.Avalanche="avalanche",e.Optimism="optimism",e.Arbitrum="arbitrum",e.ZkSyncEra="zksync",e.Linea="linea",e}(o||{});r.getNetworkNameByChainId=e=>{switch(e){case n.CHAIN_IDS.MAINNET:case n.CHAIN_IDS.GOERLI:case n.CHAIN_IDS.SEPOLIA:return o.Ethereum;case n.CHAIN_IDS.BSC:return o.Bsc;case n.CHAIN_IDS.POLYGON:return o.Polygon;case n.CHAIN_IDS.AVALANCHE:return o.Avalanche;case n.CHAIN_IDS.OPTIMISM:return o.Optimism;case n.CHAIN_IDS.ARBITRUM:return o.Arbitrum;case n.CHAIN_IDS.ZKSYNC_ERA:return o.ZkSyncEra;case n.CHAIN_IDS.LINEA_MAINNET:return o.Linea;default:return""}}}}},{package:"$root$",file:"shared/modules/feature-flags.ts"}],[5786,{"../constants/time":5747,lodash:4855},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=e("lodash"),o=e("../constants/time");const i=(0,n.memoize)(((e=30*o.SECOND)=>{if(!Number.isInteger(e)||e<1)throw new Error("Must specify positive integer timeout.");return async function(t,r){const n=new window.AbortController,o=[n.signal];null!=r&&r.signal&&o.push(r.signal);const i=new AbortController,s=()=>i.abort();o.forEach((e=>e.addEventListener("abort",s)));const a=window.fetch(t,{...r,signal:i.signal}),c=setTimeout((()=>n.abort()),e);try{return await a}finally{clearTimeout(c),o.forEach((e=>e.removeEventListener("abort",s)))}}}));r.default=i}}},{package:"$root$",file:"shared/modules/fetch-with-timeout.ts"}],[5787,{"./Numeric":5777},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getMaximumGasTotalInHexWei=o,r.getMinimumGasTotalInHexWei=function({gasLimitNoBuffer:e="0x0",gasPrice:t,maxPriorityFeePerGas:r,maxFeePerGas:i,baseFeePerGas:s}={}){const a=Boolean(i||r||s);if(a&&t)throw new Error("getMinimumGasTotalInHexWei expects either gasPrice OR the EIP-1559 gas fields, but both were provided");if(!1===a&&!t)throw new Error("getMinimumGasTotalInHexWei expects either gasPrice OR the EIP-1559 gas fields, but neither were provided");if(a&&!s)throw new Error("getMinimumGasTotalInHexWei requires baseFeePerGas be provided when calculating EIP-1559 totals");if(a&&(!i||!r))throw new Error("getMinimumGasTotalInHexWei requires maxFeePerGas and maxPriorityFeePerGas be provided when calculating EIP-1559 totals");if(!1===a)return o({gasLimit:e,gasPrice:t});const c=new n.Numeric(s,16).add(new n.Numeric(r,16)).toString();if(new n.Numeric(c,16).greaterThan(i,16))return o({gasLimit:e,maxFeePerGas:i});return new n.Numeric(e,16).times(new n.Numeric(c,16)).toPrefixedHexString()};var n=e("./Numeric");function o({gasLimit:e="0x0",gasPrice:t,maxFeePerGas:r}={}){if(r)return new n.Numeric(e,16).times(new n.Numeric(r,16)).toPrefixedHexString();if(!t)throw new Error("getMaximumGasTotalInHexWei requires gasPrice be provided to calculate legacy gas total");return new n.Numeric(e,16).times(new n.Numeric(t,16)).toPrefixedHexString()}}}},{package:"$root$",file:"shared/modules/gas.utils.js"}],[5788,{"ethereumjs-util":4327},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.BURN_ADDRESS=void 0,r.isBurnAddress=function(e){return e===o},r.isEmptyHexString=function(e){return[undefined,null,"0x","0x0","0x0000000000000000000000000000000000000000000000000000000000000000"].includes(e)},r.isPossibleAddress=function(e){return/^(0x)?[0-9a-fA-F]{40}$/iu.test(e)},r.isValidHexAddress=function(e,{allowNonPrefixed:t=!0,mixedCaseUseChecksum:r=!1}={}){const o=t?(0,n.addHexPrefix)(e):e;if(!(0,n.isHexString)(o))return!1;if(r){const e=o.slice(2),t=e.toLowerCase(),r=e.toUpperCase();if(!(e===t||e===r))return(0,n.isValidChecksumAddress)(o)}return(0,n.isValidAddress)(o)},r.stripHexPrefix=function(e){if("string"!=typeof e)return e;return(0,n.isHexPrefixed)(e)?e.slice(2):e},r.toChecksumHexAddress=function(e){if(!e)return"";const t=(0,n.addHexPrefix)(e);if(!(0,n.isHexString)(t))return t;return(0,n.toChecksumAddress)(t)};var n=e("ethereumjs-util");const o=r.BURN_ADDRESS=(0,n.zeroAddress)()}}},{package:"$root$",file:"shared/modules/hexstring-utils.ts"}],[5789,{"./fetch-with-timeout":5786,loglevel:4863},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.FALLBACK_LOCALE=void 0,r.clearCaches=function(){Object.keys(a).forEach((e=>{delete a[e]})),Object.keys(c).forEach((e=>{delete c[e]})),Object.keys(u).forEach((e=>{delete u[e]})),l.clear()},r.fetchLocale=async function(e){try{const t=await i(`../_locales/${e}/messages.json`);return await t.json()}catch(t){return n.default.error(`failed to fetch ${e} locale because of ${t}`),{}}},r.getMessage=void 0,r.loadRelativeTimeFormatLocaleData=async function(e){const t=e.split("_")[0];if(Intl.RelativeTimeFormat&&"function"==typeof Intl.RelativeTimeFormat.__addLocaleData&&!l.has(t)){const e=await async function(e){const t=await i(`./intl/${e}/relative-time-format-data.json`);return await t.json()}(t);Intl.RelativeTimeFormat.__addLocaleData(e),l.add(t)}};var n=o(e("loglevel"));function o(e){return e&&e.__esModule?e:{default:e}}const i=(0,o(e("./fetch-with-timeout")).default)(),s=r.FALLBACK_LOCALE="en",a={},c={},u={},l=new Set;r.getMessage=(e,t,r,o,i,l)=>{if(!t)return null;const f=t[r];if(!f)return function(e,t,r){var o;if(t===s&&!c[e]){const o=new Error(`Unable to find value of key "${e}" for locale "${t}"`);c[e]=o,null==r||r(o),n.default.error(o)}if(t===s||null!==(o=a[t])&&void 0!==o&&o[e])return;a[t]=a[t]??{},a[t][e]=!0,n.default.warn(`Translator - Unable to find value of key "${e}" for locale "${t}"`)}(r,e,i),null;const d=f.message,h=function(e){return((null==e?void 0:e.length)??0)>0}(o)?function(e,t,r,o,i){const s=e.split(/(\$\d)/gu);return s.map((e=>{const s=e.match(/\$(\d)/u);if(!s)return e;const a=Number(s[1])-1,c=t[a];return null!==c&&c!==undefined||function(e,t,r){var o;if(null!==(o=u[t])&&void 0!==o&&o[e])return;u[t]=u[t]??{},u[t][e]=!0;const i=new Error(`Insufficient number of substitutions for key "${e}" with locale "${t}"`);n.default.error(i),null==r||r(i)}(r,o,i),null==t?void 0:t[a]}))}(d,o,r,e,i):[d];return l?l(h):h.join("")}}}},{package:"$root$",file:"shared/modules/i18n.ts"}],[579,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.version=void 0,r.version="wallet/5.7.0"}}},{package:"@ethersproject/wallet",file:"node_modules/@ethersproject/wallet/lib/_version.js"}],[5791,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,o,i;const s=(null===(n=global.chrome)||void 0===n?void 0:n.runtime.getManifest())||(null===(o=global.browser)||void 0===o?void 0:o.runtime.getManifest()),a=!s||3===s.manifest_version,c=Boolean(null===(i=global.chrome)||void 0===i?void 0:i.offscreen),u=a&&!c;t.exports={isManifestV3:a,isOffscreenAvailable:c,isMv3ButOffscreenDocIsMissing:u}}}},{package:"$root$",file:"shared/modules/mv3.utils.js"}],[5792,{"../constants/multichain/networks":5733,"../constants/network":5734,"@metamask/controller-utils":1474,"@metamask/utils":2950},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.convertCaipToHexChainId=a,r.convertNetworkId=function(e){if("number"==typeof e&&Number.isInteger(e)&&e>=0)return`${e}`;if((0,n.isStrictHexString)(e))return`${(0,o.convertHexToDecimal)(e)}`;if("string"==typeof e&&/^\d+$/u.test(e))return e;return null},r.getRpcDataByChainId=r.getNetworkIcon=void 0,r.isPrefixedFormattedHexString=function(e){if("string"!=typeof e)return!1;return/^0x[1-9a-f]+[0-9a-f]*$/iu.test(e)},r.isSafeChainId=function(e){return t=e,Number.isSafeInteger(t)&&e>0&&e<=i.MAX_SAFE_CHAIN_ID;var t},r.isTokenDetectionEnabledForNetwork=function(e){switch(e){case i.CHAIN_IDS.MAINNET:case i.CHAIN_IDS.BSC:case i.CHAIN_IDS.POLYGON:case i.CHAIN_IDS.AVALANCHE:case i.CHAIN_IDS.LINEA_GOERLI:case i.CHAIN_IDS.LINEA_SEPOLIA:case i.CHAIN_IDS.LINEA_MAINNET:case i.CHAIN_IDS.ARBITRUM:case i.CHAIN_IDS.OPTIMISM:case i.CHAIN_IDS.BASE:case i.CHAIN_IDS.ZKSYNC_ERA:case i.CHAIN_IDS.CRONOS:case i.CHAIN_IDS.CELO:case i.CHAIN_IDS.GNOSIS:case i.CHAIN_IDS.FANTOM:case i.CHAIN_IDS.POLYGON_ZKEVM:case i.CHAIN_IDS.MOONBEAM:case i.CHAIN_IDS.MOONRIVER:return!0;default:return!1}},r.sortNetworks=void 0;var n=e("@metamask/utils"),o=e("@metamask/controller-utils"),i=e("../constants/network"),s=e("../constants/multichain/networks");function a(e){const{namespace:t,reference:r}=(0,n.parseCaipChainId)(e);if(t===n.KnownCaipNamespace.Eip155)return(0,n.add0x)(parseInt(r,10).toString(16));throw new Error(`Unsupported CAIP chain ID namespace: ${t}. Only eip155 is supported.`)}r.sortNetworks=(e,t)=>Object.values(e).sort(((e,r)=>t.findIndex((({networkId:t})=>t===e.chainId))-t.findIndex((({networkId:e})=>e===r.chainId))));r.getNetworkIcon=e=>e.isEvm?i.CHAIN_ID_TO_NETWORK_IMAGE_URL_MAP[a(e.chainId)]:s.MULTICHAIN_TOKEN_IMAGE_MAP[e.chainId];r.getRpcDataByChainId=(e,t)=>{const r=a(e);if(!t[r])throw new Error(`Network configuration not found for chain ID: ${e} (${r})`);const n=t[r],{rpcEndpoints:o,defaultRpcEndpointIndex:i}=n;return{rpcEndpoints:o,defaultRpcEndpoint:o[i]}}}}},{package:"$root$",file:"shared/modules/network.utils.ts"}],[5793,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.AllProperties=void 0,r.maskObject=function e(t,r){let o=!1;if(Object.keys(r).includes(n)){if(Object.keys(r).length>1)throw new Error("AllProperties mask key does not support sibling keys");o=!0}return Object.keys(t).reduce(((i,s)=>{const a=o?r[n]:r[s];if(!0===a)i[s]=t[s];else if(a&&"object"==typeof a)i[s]=e(t[s],a);else{if(a!==undefined&&!1!==a)throw new Error(`Unsupported mask entry: ${a}`);i[s]=null===t[s]?null:typeof t[s]}return i}),{})};const n=r.AllProperties=Symbol("*")}}},{package:"$root$",file:"shared/modules/object.utils.js"}],[5794,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(){return o%=n,o++};const n=Number.MAX_SAFE_INTEGER;let o=Math.round(Math.random()*n)}}},{package:"$root$",file:"shared/modules/random-id.js"}],[5795,{"./fetch-with-timeout":5786,buffer:4074},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t){(function(){var n;Object.defineProperty(r,"__esModule",{value:!0}),r.jsonRpcRequest=async function(e,r,n=[]){let i=e;const s={"Content-Type":"application/json"},{origin:a,pathname:c,username:u,password:l,search:f}=new URL(e);if(u&&l){const e=t.from(`${u}:${l}`).toString("base64");s.Authorization=`Basic ${e}`,i=`${a}${c}${f}`}const d=await o(i,{method:"POST",body:JSON.stringify({id:Date.now().toString(),jsonrpc:"2.0",method:r,params:n}),headers:s,cache:"default"}).then((e=>e.json()));if(!d||Array.isArray(d)||"object"!=typeof d)throw new Error(`RPC endpoint ${e} returned non-object response.`);const{error:h,result:p}=d;if(h)throw new Error((null==h?void 0:h.message)||h);return p};const o=(0,((n=e("./fetch-with-timeout"))&&n.__esModule?n:{default:n}).default)()}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"$root$",file:"shared/modules/rpc.utils.js"}],[5796,{"../../../ui/selectors/selectors":7494},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isHardwareWallet",{enumerable:!0,get:function(){return n.isHardwareWallet}});var n=e("../../../ui/selectors/selectors")}}},{package:"$root$",file:"shared/modules/selectors/account.ts"}],[5797,{"../feature-flags":5785,"./networks":5799},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getFeatureFlagsByChainId=function(e){var t;const r=(0,o.getCurrentChainId)(e),i=(0,n.getNetworkNameByChainId)(r),s=null===(t=e.metamask.swapsState)||void 0===t?void 0:t.swapsFeatureFlags;if(null==s||!s[i])return null;return{smartTransactions:{...s.smartTransactions,...s[i].smartTransactions}}};var n=e("../feature-flags"),o=e("./networks")}}},{package:"$root$",file:"shared/modules/selectors/feature-flags.ts"}],[5798,{"../../../ui/selectors/selectors":7494,"./account":5796,"./feature-flags":5797,"./smart-transactions":5800},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n={getHardwareWalletType:!0};Object.defineProperty(r,"getHardwareWalletType",{enumerable:!0,get:function(){return o.getHardwareWalletType}});var o=e("../../../ui/selectors/selectors"),i=e("./smart-transactions");Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in r&&r[e]===i[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return i[e]}}))}));var s=e("./feature-flags");Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in r&&r[e]===s[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return s[e]}}))}));var a=e("./account");Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in r&&r[e]===a[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return a[e]}}))}))}}},{package:"$root$",file:"shared/modules/selectors/index.ts"}],[5799,{"../../constants/network":5734,"./util":5801,"@metamask/network-controller":2176,reselect:5284},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getCurrentChainId=function(e){const{chainId:t}=u(e);return t},r.getInfuraBlocked=function(e){return e.metamask.networksMetadata[c(e)].status===i.NetworkStatus.Blocked},r.getNetworkConfigurations=function(e){return e.metamask.networkConfigurations},r.getProviderConfig=r.getNetworkConfigurationsByChainId=void 0,r.getSelectedNetworkClientId=c,r.isNetworkLoading=function(e){const t=c(e);return t&&e.metamask.networksMetadata[t].status!==i.NetworkStatus.Available};var n=e("@metamask/network-controller"),o=e("reselect"),i=e("../../constants/network"),s=e("./util");const a=r.getNetworkConfigurationsByChainId=(0,s.createDeepEqualSelector)((e=>e.metamask.networkConfigurationsByChainId),(e=>e));function c(e){return e.metamask.selectedNetworkClientId}const u=r.getProviderConfig=(0,o.createSelector)((e=>a(e)),c,((e,t)=>{for(const o of Object.values(e))for(const e of o.rpcEndpoints)if(e.networkClientId===t){var r;const t=o.defaultBlockExplorerUrlIndex===undefined?undefined:null===(r=o.blockExplorerUrls)||void 0===r?void 0:r[o.defaultBlockExplorerUrlIndex];return{chainId:o.chainId,ticker:o.nativeCurrency,rpcPrefs:{...t&&{blockExplorerUrl:t}},type:e.type===n.RpcEndpointType.Custom?"rpc":e.networkClientId,...e.type===n.RpcEndpointType.Custom&&{id:e.networkClientId,nickname:o.name,rpcUrl:e.url}}}throw new Error("Provider configuration not found")}))}}},{package:"$root$",file:"shared/modules/selectors/networks.ts"}],[580,{"./_version":579,"@ethersproject/abstract-provider":487,"@ethersproject/abstract-signer":489,"@ethersproject/address":491,"@ethersproject/bytes":500,"@ethersproject/hash":513,"@ethersproject/hdnode":518,"@ethersproject/json-wallets":521,"@ethersproject/keccak256":526,"@ethersproject/logger":528,"@ethersproject/properties":534,"@ethersproject/random":557,"@ethersproject/signing-key":567,"@ethersproject/transactions":576},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))},s=this&&this.__generator||function(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.verifyTypedData=r.verifyMessage=r.Wallet=void 0;var a=e("@ethersproject/address"),c=e("@ethersproject/abstract-provider"),u=e("@ethersproject/abstract-signer"),l=e("@ethersproject/bytes"),f=e("@ethersproject/hash"),d=e("@ethersproject/hdnode"),h=e("@ethersproject/keccak256"),p=e("@ethersproject/properties"),m=e("@ethersproject/random"),_=e("@ethersproject/signing-key"),g=e("@ethersproject/json-wallets"),E=e("@ethersproject/transactions"),A=e("@ethersproject/logger"),T=e("./_version"),b=new A.Logger(T.version);var y=function(e){function t(t,r){var n,o=e.call(this)||this;if(null!=(n=t)&&(0,l.isHexString)(n.privateKey,32)&&null!=n.address){var i=new _.SigningKey(t.privateKey);if((0,p.defineReadOnly)(o,"_signingKey",(function(){return i})),(0,p.defineReadOnly)(o,"address",(0,E.computeAddress)(o.publicKey)),o.address!==(0,a.getAddress)(t.address)&&b.throwArgumentError("privateKey/address mismatch","privateKey","[REDACTED]"),function(e){var t=e.mnemonic;return t&&t.phrase}(t)){var s=t.mnemonic;(0,p.defineReadOnly)(o,"_mnemonic",(function(){return{phrase:s.phrase,path:s.path||d.defaultPath,locale:s.locale||"en"}}));var u=o.mnemonic,f=d.HDNode.fromMnemonic(u.phrase,null,u.locale).derivePath(u.path);(0,E.computeAddress)(f.privateKey)!==o.address&&b.throwArgumentError("mnemonic/address mismatch","privateKey","[REDACTED]")}else(0,p.defineReadOnly)(o,"_mnemonic",(function(){return null}))}else{if(_.SigningKey.isSigningKey(t))"secp256k1"!==t.curve&&b.throwArgumentError("unsupported curve; must be secp256k1","privateKey","[REDACTED]"),(0,p.defineReadOnly)(o,"_signingKey",(function(){return t}));else{"string"==typeof t&&t.match(/^[0-9a-f]*$/i)&&64===t.length&&(t="0x"+t);var h=new _.SigningKey(t);(0,p.defineReadOnly)(o,"_signingKey",(function(){return h}))}(0,p.defineReadOnly)(o,"_mnemonic",(function(){return null})),(0,p.defineReadOnly)(o,"address",(0,E.computeAddress)(o.publicKey))}return r&&!c.Provider.isProvider(r)&&b.throwArgumentError("invalid provider","provider",r),(0,p.defineReadOnly)(o,"provider",r||null),o}return o(t,e),Object.defineProperty(t.prototype,"mnemonic",{get:function(){return this._mnemonic()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"privateKey",{get:function(){return this._signingKey().privateKey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"publicKey",{get:function(){return this._signingKey().publicKey},enumerable:!1,configurable:!0}),t.prototype.getAddress=function(){return Promise.resolve(this.address)},t.prototype.connect=function(e){return new t(this,e)},t.prototype.signTransaction=function(e){var t=this;return(0,p.resolveProperties)(e).then((function(r){null!=r.from&&((0,a.getAddress)(r.from)!==t.address&&b.throwArgumentError("transaction from address mismatch","transaction.from",e.from),delete r.from);var n=t._signingKey().signDigest((0,h.keccak256)((0,E.serialize)(r)));return(0,E.serialize)(r,n)}))},t.prototype.signMessage=function(e){return i(this,void 0,void 0,(function(){return s(this,(function(t){return[2,(0,l.joinSignature)(this._signingKey().signDigest((0,f.hashMessage)(e)))]}))}))},t.prototype._signTypedData=function(e,t,r){return i(this,void 0,void 0,(function(){var n,o=this;return s(this,(function(i){switch(i.label){case 0:return[4,f._TypedDataEncoder.resolveNames(e,t,r,(function(e){return null==o.provider&&b.throwError("cannot resolve ENS names without a provider",A.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resolveName",value:e}),o.provider.resolveName(e)}))];case 1:return n=i.sent(),[2,(0,l.joinSignature)(this._signingKey().signDigest(f._TypedDataEncoder.hash(n.domain,t,n.value)))]}}))}))},t.prototype.encrypt=function(e,t,r){if("function"!=typeof t||r||(r=t,t={}),r&&"function"!=typeof r)throw new Error("invalid callback");return t||(t={}),(0,g.encryptKeystore)(this,e,t,r)},t.createRandom=function(e){var r=(0,m.randomBytes)(16);e||(e={}),e.extraEntropy&&(r=(0,l.arrayify)((0,l.hexDataSlice)((0,h.keccak256)((0,l.concat)([r,e.extraEntropy])),0,16)));var n=(0,d.entropyToMnemonic)(r,e.locale);return t.fromMnemonic(n,e.path,e.locale)},t.fromEncryptedJson=function(e,r,n){return(0,g.decryptJsonWallet)(e,r,n).then((function(e){return new t(e)}))},t.fromEncryptedJsonSync=function(e,r){return new t((0,g.decryptJsonWalletSync)(e,r))},t.fromMnemonic=function(e,r,n){return r||(r=d.defaultPath),new t(d.HDNode.fromMnemonic(e,null,n).derivePath(r))},t}(u.Signer);r.Wallet=y,r.verifyMessage=function(e,t){return(0,E.recoverAddress)((0,f.hashMessage)(e),t)},r.verifyTypedData=function(e,t,r,n){return(0,E.recoverAddress)(f._TypedDataEncoder.hash(e,t,r),n)}}}},{package:"@ethersproject/wallet",file:"node_modules/@ethersproject/wallet/lib/index.js"}],[5800,{"../../../ui/selectors/selectors":7494,"../../constants/smartTransactions":5743,"../environment":5783,"./feature-flags":5797,"./networks":5799,reselect:5284},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getSmartTransactionsPreferenceEnabled=r.getSmartTransactionsOptInStatusInternal=r.getSmartTransactionsOptInStatusForMetrics=r.getSmartTransactionsMigrationAppliedInternal=r.getSmartTransactionsEnabled=r.getIsSmartTransaction=r.getCurrentChainSupportsSmartTransactions=void 0;var n=e("reselect"),o=e("../../constants/smartTransactions"),i=e("../../../ui/selectors/selectors"),s=e("../environment"),a=e("./feature-flags"),c=e("./networks");const u=r.getSmartTransactionsOptInStatusInternal=(0,n.createSelector)(i.getPreferences,(e=>(null==e?void 0:e.smartTransactionsOptInStatus)??!0)),l=(r.getSmartTransactionsMigrationAppliedInternal=(0,n.createSelector)(i.getPreferences,(e=>(null==e?void 0:e.smartTransactionsMigrationApplied)??!1)),r.getSmartTransactionsOptInStatusForMetrics=(0,n.createSelector)(u,(e=>e)),r.getSmartTransactionsPreferenceEnabled=(0,n.createSelector)(u,(e=>e??!0))),f=e=>{const t=(0,c.getCurrentChainId)(e);return(0,o.getAllowedSmartTransactionsChainIds)().includes(t)};r.getCurrentChainSupportsSmartTransactions=f;const d=e=>{var t,r;const n=(0,i.accountSupportsSmartTx)(e),u=(0,a.getFeatureFlagsByChainId)(e),l=null==u||null===(t=u.smartTransactions)||void 0===t?void 0:t.extensionActive,d=null===(r=e.metamask.smartTransactionsState)||void 0===r?void 0:r.liveness;return Boolean(f(e)&&(e=>{var t;const r=(0,c.getCurrentChainId)(e);if(!(0,s.isProduction)()||o.SKIP_STX_RPC_URL_CHECK_CHAIN_IDS.includes(r))return!0;const n=null===(t=(0,i.getCurrentNetwork)(e))||void 0===t?void 0:t.rpcUrl;if(!n)return!1;const{hostname:a}=new URL(n);return!!a&&(a.endsWith(".infura.io")||a.endsWith(".binance.org"))})(e)&&n&&l&&d)};r.getSmartTransactionsEnabled=d;r.getIsSmartTransaction=e=>{const t=l(e),r=d(e);return Boolean(t&&r)}}}},{package:"$root$",file:"shared/modules/selectors/smart-transactions.ts"}],[5801,{"@metamask/transaction-controller":2905,lodash:4855,reselect:5284},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.filterAndShapeUnapprovedTransactions=r.createDeepEqualSelector=void 0;var n=e("@metamask/transaction-controller"),o=e("lodash"),i=e("reselect");r.createDeepEqualSelector=(0,i.createSelectorCreator)(i.lruMemoize,o.isEqual);r.filterAndShapeUnapprovedTransactions=e=>e.filter((({status:e})=>e===n.TransactionStatus.unapproved)).reduce(((e,t)=>(e[t.id]=t,e)),{})}}},{package:"$root$",file:"shared/modules/selectors/util.js"}],[5802,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.isEqualCaseInsensitive=function(e,t){if("string"!=typeof e||"string"!=typeof t)return!1;return e.toLowerCase()===t.toLowerCase()},r.prependZero=function(e,t){return e.toString().padStart(t,"0")}}}},{package:"$root$",file:"shared/modules/string-utils.ts"}],[5803,{"../constants/swaps":5745},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.isSwapsDefaultTokenAddress=function(e,t){var r;if(!e||!t)return!1;return e===(null===(r=n.SWAPS_CHAINID_DEFAULT_TOKEN_MAP[t])||void 0===r?void 0:r.address)},r.isSwapsDefaultTokenSymbol=function(e,t){var r;if(!e||!t)return!1;return e===(null===(r=n.SWAPS_CHAINID_DEFAULT_TOKEN_MAP[t])||void 0===r?void 0:r.symbol)};var n=e("../constants/swaps")}}},{package:"$root$",file:"shared/modules/swaps.utils.js"}],[5804,{"../constants/transaction":5749,"./contract-utils":5781,"./string-utils":5802,"@ethersproject/abi":484,"@metamask/metamask-eth-abis":2089,"@metamask/transaction-controller":2905,"bignumber.js":3978,"ethereumjs-util":4327,loglevel:4863},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.determineTransactionAssetType=async function(e,t,r){let n=e.type;if(e.type&&!h.includes(e.type)){const r=await A(e.txParams,t);n=r.type}if([c.TransactionType.tokenMethodApprove,c.TransactionType.tokenMethodSetApprovalForAll,c.TransactionType.tokenMethodTransfer,c.TransactionType.tokenMethodTransferFrom,c.TransactionType.tokenMethodIncreaseAllowance].find((e=>e===n))||n===c.TransactionType.contractInteraction)try{const t=await r(e.txParams.to);if(t.standard)return{assetType:t.standard===l.TokenStandard.ERC20?l.AssetType.token:l.AssetType.NFT,tokenStandard:t.standard}}catch{}if(n===c.TransactionType.contractInteraction)return{assetType:l.AssetType.unknown,tokenStandard:l.TokenStandard.none};return{assetType:l.AssetType.native,tokenStandard:l.TokenStandard.none}},r.determineTransactionType=A,r.hasTransactionData=function(e){var t;return Boolean((null==e?void 0:e.length)&&"0x"!==(null==e||null===(t=e.toLowerCase)||void 0===t?void 0:t.call(e)))},r.isEIP1559Transaction=function(e){var t,r;return(0,o.isHexString)((null==e||null===(t=e.txParams)||void 0===t?void 0:t.maxFeePerGas)??"")&&(0,o.isHexString)((null==e||null===(r=e.txParams)||void 0===r?void 0:r.maxPriorityFeePerGas)??"")},r.isLegacyTransaction=function(e){return void 0===e.txParams.maxFeePerGas&&void 0===e.txParams.maxPriorityFeePerGas&&(void 0===e.txParams.gasPrice||(0,o.isHexString)(e.txParams.gasPrice))},r.parseApprovalTransactionData=function(e){const t=E(e),{args:r,name:n}=t??{};if(!["approve","increaseAllowance","setApprovalForAll"].includes(n??""))return undefined;const o=(null==r?void 0:r._value)??(null==r?void 0:r.increment),i=o?new u.BigNumber(null==o?void 0:o.toString()):undefined,s="setApprovalForAll"===n&&!0===(null==r?void 0:r._approved),a="setApprovalForAll"===n&&!1===(null==r?void 0:r._approved);return{amountOrTokenId:i,isApproveAll:s,isRevokeAll:a}},r.parseStandardTokenTransactionData=E,r.parseTypedDataMessage=void 0,r.txParamsAreDappSuggested=function(e){var t,r,n;const{gasPrice:o,maxPriorityFeePerGas:i,maxFeePerGas:s}=(null==e?void 0:e.txParams)||{};return Boolean(o&&o===(null==e||null===(t=e.dappSuggestedGasFees)||void 0===t?void 0:t.gasPrice)||i&&s&&(null==e||null===(r=e.dappSuggestedGasFees)||void 0===r?void 0:r.maxPriorityFeePerGas)===i&&(null==e||null===(n=e.dappSuggestedGasFees)||void 0===n?void 0:n.maxFeePerGas)===s)};var n,o=e("ethereumjs-util"),i=e("@ethersproject/abi"),s=e("@metamask/metamask-eth-abis"),a=(n=e("loglevel"))&&n.__esModule?n:{default:n},c=e("@metamask/transaction-controller"),u=e("bignumber.js"),l=e("../constants/transaction"),f=e("./contract-utils"),d=e("./string-utils");const h=[c.TransactionType.tokenMethodApprove,c.TransactionType.tokenMethodSetApprovalForAll,c.TransactionType.tokenMethodTransfer,c.TransactionType.tokenMethodTransferFrom,c.TransactionType.tokenMethodIncreaseAllowance,c.TransactionType.contractInteraction,c.TransactionType.simpleSend],p=new i.Interface(s.abiERC20),m=new i.Interface(s.abiERC721),_=new i.Interface(s.abiERC1155),g=new i.Interface(s.abiFiatTokenV2);function E(e){try{return p.parseTransaction({data:e})}catch{}try{return m.parseTransaction({data:e})}catch{}try{return _.parseTransaction({data:e})}catch{}try{return g.parseTransaction({data:e})}catch{}return undefined}async function A(e,t){const{data:r,to:n}=e;let o;if(r&&!n)return{type:c.TransactionType.deployContract,getCodeResponse:o};if(n){const{contractCode:i,isContractAddress:s}=await(0,f.readAddressAsContract)(t,n);if(o=i,s){const t=e.value&&0!==Number(e.value);let n="";try{const e=r?E(r):undefined;null!=e&&e.name&&(n=e.name)}catch(e){a.default.debug("Failed to parse transaction data.",e,r)}const i=[c.TransactionType.tokenMethodApprove,c.TransactionType.tokenMethodSetApprovalForAll,c.TransactionType.tokenMethodTransfer,c.TransactionType.tokenMethodTransferFrom,c.TransactionType.tokenMethodIncreaseAllowance,c.TransactionType.tokenMethodSafeTransferFrom].find((e=>(0,d.isEqualCaseInsensitive)(e,n)));return{type:r&&i&&!t?i:c.TransactionType.contractInteraction,getCodeResponse:o}}}return{type:c.TransactionType.simpleSend,getCodeResponse:o}}const T=/"message"\s*:\s*\{[^}]*"value"\s*:\s*(\d{15,})/u;r.parseTypedDataMessage=e=>{var t;const r=JSON.parse(e),n=function(e){var t;return"string"!=typeof e?undefined:null===(t=e.match(T))||void 0===t?void 0:t[1]}(e);return null!==(t=r.message)&&void 0!==t&&t.value&&(r.message.value=n||String(r.message.value)),r}}}},{package:"$root$",file:"shared/modules/transaction.utils.ts"}],[5806,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.UI_NOTIFICATIONS=r.NOTIFICATION_SOLANA_ON_METAMASK=void 0;const n=r.NOTIFICATION_SOLANA_ON_METAMASK=26;r.UI_NOTIFICATIONS={[n]:{id:Number(n),date:null}}}}},{package:"$root$",file:"shared/notifications/index.ts"}],[5807,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.StatusTypes=r.FeeType=r.BridgeStatusAction=r.BridgeId=r.ActionTypes=void 0;r.StatusTypes=function(e){return e.UNKNOWN="UNKNOWN",e.FAILED="FAILED",e.PENDING="PENDING",e.COMPLETE="COMPLETE",e}({}),r.BridgeId=function(e){return e.HOP="hop",e.CELER="celer",e.CELERCIRCLE="celercircle",e.CONNEXT="connext",e.POLYGON="polygon",e.AVALANCHE="avalanche",e.MULTICHAIN="multichain",e.AXELAR="axelar",e.ACROSS="across",e.STARGATE="stargate",e}({}),r.FeeType=function(e){return e.METABRIDGE="metabridge",e.REFUEL="refuel",e}({}),r.ActionTypes=function(e){return e.BRIDGE="bridge",e.SWAP="swap",e.REFUEL="refuel",e}({}),r.BridgeStatusAction=function(e){return e.START_POLLING_FOR_BRIDGE_TX_STATUS="startPollingForBridgeTxStatus",e.WIPE_BRIDGE_STATUS="wipeBridgeStatus",e.GET_STATE="getState",e}({})}}},{package:"$root$",file:"shared/types/bridge-status.ts"}],[5809,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.DecodedTransactionDataSource=void 0;r.DecodedTransactionDataSource=function(e){return e.Uniswap="Uniswap",e.Sourcify="Sourcify",e.FourByte="FourByte",e}({})}}},{package:"$root$",file:"shared/types/transaction-decode.ts"}],[581,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.version=void 0,r.version="web/5.7.1"}}},{package:"@ethersproject/providers>@ethersproject/web",file:"node_modules/@ethersproject/web/lib/_version.js"}],[582,{"@ethersproject/bytes":500},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.getUrl=void 0;var i=e("@ethersproject/bytes");r.getUrl=function(e,t){return n(this,void 0,void 0,(function(){var r,n,s,a,c;return o(this,(function(o){switch(o.label){case 0:return null==t&&(t={}),r={method:t.method||"GET",headers:t.headers||{},body:t.body||undefined},!0!==t.skipFetchSetup&&(r.mode="cors",r.cache="no-cache",r.credentials="same-origin",r.redirect="follow",r.referrer="client"),null!=t.fetchOptions&&((n=t.fetchOptions).mode&&(r.mode=n.mode),n.cache&&(r.cache=n.cache),n.credentials&&(r.credentials=n.credentials),n.redirect&&(r.redirect=n.redirect),n.referrer&&(r.referrer=n.referrer)),[4,fetch(e,r)];case 1:return[4,(s=o.sent()).arrayBuffer()];case 2:return a=o.sent(),c={},s.headers.forEach?s.headers.forEach((function(e,t){c[t.toLowerCase()]=e})):s.headers.keys().forEach((function(e){c[e.toLowerCase()]=s.headers.get(e)})),[2,{headers:c,statusCode:s.status,statusMessage:s.statusText,body:(0,i.arrayify)(new Uint8Array(a))}]}}))}))}}}},{package:"@ethersproject/providers>@ethersproject/web",file:"node_modules/@ethersproject/web/lib/browser-geturl.js"}],[583,{"./_version":581,"./geturl":582,"@ethersproject/base64":493,"@ethersproject/bytes":500,"@ethersproject/logger":528,"@ethersproject/properties":534,"@ethersproject/strings":573},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.poll=r.fetchJson=r._fetchData=void 0;var i=e("@ethersproject/base64"),s=e("@ethersproject/bytes"),a=e("@ethersproject/properties"),c=e("@ethersproject/strings"),u=e("@ethersproject/logger"),l=e("./_version"),f=new u.Logger(l.version),d=e("./geturl");function h(e){return new Promise((function(t){setTimeout(t,e)}))}function p(e,t){if(null==e)return null;if("string"==typeof e)return e;if((0,s.isBytesLike)(e)){if(t&&("text"===t.split("/")[0]||"application/json"===t.split(";")[0].trim()))try{return(0,c.toUtf8String)(e)}catch(e){}return(0,s.hexlify)(e)}return e}function m(e,t,r){var s="object"==typeof e&&null!=e.throttleLimit?e.throttleLimit:12;f.assertArgument(s>0&&s%1==0,"invalid connection throttle limit","connection.throttleLimit",s);var l="object"==typeof e?e.throttleCallback:null,m="object"==typeof e&&"number"==typeof e.throttleSlotInterval?e.throttleSlotInterval:100;f.assertArgument(m>0&&m%1==0,"invalid connection throttle slot interval","connection.throttleSlotInterval",m);var _="object"==typeof e&&!!e.errorPassThrough,g={},E=null,A={method:"GET"},T=!1,b=12e4;if("string"==typeof e)E=e;else if("object"==typeof e){if(null!=e&&null!=e.url||f.throwArgumentError("missing URL","connection.url",e),E=e.url,"number"==typeof e.timeout&&e.timeout>0&&(b=e.timeout),e.headers)for(var y in e.headers)g[y.toLowerCase()]={key:y,value:String(e.headers[y])},["if-none-match","if-modified-since"].indexOf(y.toLowerCase())>=0&&(T=!0);if(A.allowGzip=!!e.allowGzip,null!=e.user&&null!=e.password){"https:"!==E.substring(0,6)&&!0!==e.allowInsecureAuthentication&&f.throwError("basic authentication requires a secure https url",u.Logger.errors.INVALID_ARGUMENT,{argument:"url",url:E,user:e.user,password:"[REDACTED]"});var v=e.user+":"+e.password;g.authorization={key:"Authorization",value:"Basic "+(0,i.encode)((0,c.toUtf8Bytes)(v))}}null!=e.skipFetchSetup&&(A.skipFetchSetup=!!e.skipFetchSetup),null!=e.fetchOptions&&(A.fetchOptions=(0,a.shallowCopy)(e.fetchOptions))}var I,N=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),w=E?E.match(N):null;if(w)try{var S={statusCode:200,statusMessage:"OK",headers:{"content-type":w[1]||"text/plain"},body:w[2]?(0,i.decode)(w[3]):(I=w[3],(0,c.toUtf8Bytes)(I.replace(/%([0-9a-f][0-9a-f])/gi,(function(e,t){return String.fromCharCode(parseInt(t,16))}))))},O=S.body;return r&&(O=r(S.body,S)),Promise.resolve(O)}catch(e){f.throwError("processing response error",u.Logger.errors.SERVER_ERROR,{body:p(w[1],w[2]),error:e,requestBody:null,requestMethod:"GET",url:E})}t&&(A.method="POST",A.body=t,null==g["content-type"]&&(g["content-type"]={key:"Content-Type",value:"application/octet-stream"}),null==g["content-length"]&&(g["content-length"]={key:"Content-Length",value:String(t.length)}));var R={};Object.keys(g).forEach((function(e){var t=g[e];R[t.key]=t.value})),A.headers=R;var C,M=(C=null,{promise:new Promise((function(e,t){b&&(C=setTimeout((function(){null!=C&&(C=null,t(f.makeError("timeout",u.Logger.errors.TIMEOUT,{requestBody:p(A.body,R["content-type"]),requestMethod:A.method,timeout:b,url:E})))}),b))})),cancel:function(){null!=C&&(clearTimeout(C),C=null)}}),P=function(){return n(this,void 0,void 0,(function(){var e,t,n,i,a,c,g,b,y;return o(this,(function(o){switch(o.label){case 0:e=0,o.label=1;case 1:if(!(e<s))return[3,20];t=null,o.label=2;case 2:return o.trys.push([2,9,,10]),[4,(0,d.getUrl)(E,A)];case 3:return t=o.sent(),e<s?301!==t.statusCode&&302!==t.statusCode?[3,4]:(n=t.headers.location||"","GET"===A.method&&n.match(/^https:/)?(E=t.headers.location,[3,19]):[3,8]):[3,8];case 4:return 429!==t.statusCode?[3,8]:(y=!0,l?[4,l(e,E)]:[3,6]);case 5:y=o.sent(),o.label=6;case 6:return y?(0,i=t.headers["retry-after"],[4,h("string"==typeof i&&i.match(/^[1-9][0-9]*$/)?1e3*parseInt(i):m*parseInt(String(Math.random()*Math.pow(2,e))))]):[3,8];case 7:return o.sent(),[3,19];case 8:return[3,10];case 9:return a=o.sent(),null==(t=a.response)&&(M.cancel(),f.throwError("missing response",u.Logger.errors.SERVER_ERROR,{requestBody:p(A.body,R["content-type"]),requestMethod:A.method,serverError:a,url:E})),[3,10];case 10:if(c=t.body,T&&304===t.statusCode?c=null:!_&&(t.statusCode<200||t.statusCode>=300)&&(M.cancel(),f.throwError("bad response",u.Logger.errors.SERVER_ERROR,{status:t.statusCode,headers:t.headers,body:p(c,t.headers?t.headers["content-type"]:null),requestBody:p(A.body,R["content-type"]),requestMethod:A.method,url:E})),!r)return[3,18];o.label=11;case 11:return o.trys.push([11,13,,18]),[4,r(c,t)];case 12:return g=o.sent(),M.cancel(),[2,g];case 13:return(b=o.sent()).throttleRetry&&e<s?(y=!0,l?[4,l(e,E)]:[3,15]):[3,17];case 14:y=o.sent(),o.label=15;case 15:return y?[4,h(m*parseInt(String(Math.random()*Math.pow(2,e))))]:[3,17];case 16:return o.sent(),[3,19];case 17:return M.cancel(),f.throwError("processing response error",u.Logger.errors.SERVER_ERROR,{body:p(c,t.headers?t.headers["content-type"]:null),error:b,requestBody:p(A.body,R["content-type"]),requestMethod:A.method,url:E}),[3,18];case 18:return M.cancel(),[2,c];case 19:return e++,[3,1];case 20:return[2,f.throwError("failed response",u.Logger.errors.SERVER_ERROR,{requestBody:p(A.body,R["content-type"]),requestMethod:A.method,url:E})]}}))}))}();return Promise.race([M.promise,P])}r._fetchData=m,r.fetchJson=function(e,t,r){var n=null;if(null!=t){n=(0,c.toUtf8Bytes)(t);var o="string"==typeof e?{url:e}:(0,a.shallowCopy)(e);if(o.headers)0!==Object.keys(o.headers).filter((function(e){return"content-type"===e.toLowerCase()})).length||(o.headers=(0,a.shallowCopy)(o.headers),o.headers["content-type"]="application/json");else o.headers={"content-type":"application/json"};e=o}return m(e,n,(function(e,t){var n=null;if(null!=e)try{n=JSON.parse((0,c.toUtf8String)(e))}catch(t){f.throwError("invalid JSON",u.Logger.errors.SERVER_ERROR,{body:e,error:t})}return r&&(n=r(n,t)),n}))},r.poll=function(e,t){return t||(t={}),null==(t=(0,a.shallowCopy)(t)).floor&&(t.floor=0),null==t.ceiling&&(t.ceiling=1e4),null==t.interval&&(t.interval=250),new Promise((function(r,n){var o=null,i=!1,s=function(){return!i&&(i=!0,o&&clearTimeout(o),!0)};t.timeout&&(o=setTimeout((function(){s()&&n(new Error("timeout"))}),t.timeout));var a=t.retryLimit,c=0;!function o(){return e().then((function(e){if(e!==undefined)s()&&r(e);else if(t.oncePoll)t.oncePoll.once("poll",o);else if(t.onceBlock)t.onceBlock.once("block",o);else if(!i){if(++c>a)return void(s()&&n(new Error("retry limit reached")));var u=t.interval*parseInt(String(Math.random()*Math.pow(2,c)));u<t.floor&&(u=t.floor),u>t.ceiling&&(u=t.ceiling),setTimeout(o,u)}return null}),(function(e){s()&&n(e)}))}()}))}}}},{package:"@ethersproject/providers>@ethersproject/web",file:"node_modules/@ethersproject/web/lib/index.js"}],[584,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.version=void 0,r.version="wordlists/5.7.0"}}},{package:"ethers>@ethersproject/wordlists",file:"node_modules/@ethersproject/wordlists/lib/_version.js"}],[585,{"./wordlist":594,"./wordlists":595},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.wordlists=r.Wordlist=r.logger=void 0;var n=e("./wordlist");Object.defineProperty(r,"logger",{enumerable:!0,get:function(){return n.logger}}),Object.defineProperty(r,"Wordlist",{enumerable:!0,get:function(){return n.Wordlist}});var o=e("./wordlists");Object.defineProperty(r,"wordlists",{enumerable:!0,get:function(){return o.wordlists}})}}},{package:"ethers>@ethersproject/wordlists",file:"node_modules/@ethersproject/wordlists/lib/index.js"}]],[],{});