1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ab3d9c56-d78e-4694-97f9-9af7ffaa416f",e._sentryDebugIdIdentifier="sentry-dbid-ab3d9c56-d78e-4694-97f9-9af7ffaa416f")}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2563],{398489:(e,t,r)=>{r.d(t,{A:()=>a,o:()=>o});var n=r(874519),i=r(564370),s=r(419948);let o="\x19Ethereum Signed Message:\n";function a(e){return"string"==typeof e&&(e=(0,s.YW)(e)),(0,i.keccak256)((0,n.concat)([(0,s.YW)(o),(0,s.YW)(String(e.length)),e]))}},456579:(e,t,r)=>{r.r(t),r.d(t,{BaseContract:()=>b,Contract:()=>L,ContractFactory:()=>S});var n=r(296443),i=r(742201),s=r(945659),o=r(597811),a=r(621871),l=r(932301),d=r(874519),c=r(834705),h=r(4201),u=r(408735),g=function(e,t,r,n){return new(r||(r=Promise))(function(i,s){function o(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};let f=new u.Logger("contracts/5.8.0"),p={chainId:!0,data:!0,from:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0,customData:!0,ccipReadEnabled:!0};function v(e,t){return g(this,void 0,void 0,function*(){let r=yield t;"string"!=typeof r&&f.throwArgumentError("invalid address or ENS name","name",r);try{return(0,a.getAddress)(r)}catch(e){}e||f.throwError("a provider or signer is needed to resolve ENS names",u.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resolveName"});let n=yield e.resolveName(r);return null==n&&f.throwArgumentError("resolver or addr is not configured for ENS name","name",r),n})}function y(e,t,r){return g(this,void 0,void 0,function*(){return Array.isArray(r)?yield Promise.all(r.map((r,n)=>y(e,Array.isArray(t)?t[n]:t[r.name],r))):"address"===r.type?yield v(e,t):"tuple"===r.type?yield y(e,t,r.components):"array"===r.baseType?Array.isArray(t)?yield Promise.all(t.map(t=>y(e,t,r.arrayChildren))):Promise.reject(f.makeError("invalid value for array",u.Logger.errors.INVALID_ARGUMENT,{argument:"value",value:t})):t})}function m(e,t,r){return g(this,void 0,void 0,function*(){let n={};r.length===t.inputs.length+1&&"object"==typeof r[r.length-1]&&(n=(0,c.shallowCopy)(r.pop())),f.checkArgumentCount(r.length,t.input
1s.length,"passed to contract"),e.signer?n.from?n.from=(0,c.resolveProperties)({override:v(e.signer,n.from),signer:e.signer.getAddress()}).then(e=>g(this,void 0,void 0,function*(){return(0,a.getAddress)(e.signer)!==e.override&&f.throwError("Contract with a Signer cannot override from",u.Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides.from"}),e.override})):n.from=e.signer.getAddress():n.from&&(n.from=v(e.provider,n.from));let i=yield(0,c.resolveProperties)({args:y(e.signer||e.provider,r,t.inputs),address:e.resolvedAddress,overrides:(0,c.resolveProperties)(n)||{}}),s=e.interface.encodeFunctionData(t,i.args),o={data:s,to:i.address},p=i.overrides;if(null!=p.nonce&&(o.nonce=l.gH.from(p.nonce).toNumber()),null!=p.gasLimit&&(o.gasLimit=l.gH.from(p.gasLimit)),null!=p.gasPrice&&(o.gasPrice=l.gH.from(p.gasPrice)),null!=p.maxFeePerGas&&(o.maxFeePerGas=l.gH.from(p.maxFeePerGas)),null!=p.maxPriorityFeePerGas&&(o.maxPriorityFeePerGas=l.gH.from(p.maxPriorityFeePerGas)),null!=p.from&&(o.from=p.from),null!=p.type&&(o.type=p.type),null!=p.accessList&&(o.accessList=(0,h.accessListify)(p.accessList)),null==o.gasLimit&&null!=t.gas){let e=21e3,r=(0,d.arrayify)(s);for(let t=0;t<r.length;t++)e+=4,r[t]&&(e+=64);o.gasLimit=l.gH.from(t.gas).add(e)}if(p.value){let e=l.gH.from(p.value);e.isZero()||t.payable||f.throwError("non-payable method cannot override value",u.Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:n.value}),o.value=e}p.customData&&(o.customData=(0,c.shallowCopy)(p.customData)),p.ccipReadEnabled&&(o.ccipReadEnabled=!!p.ccipReadEnabled),delete n.nonce,delete n.gasLimit,delete n.gasPrice,delete n.from,delete n.value,delete n.type,delete n.accessList,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas,delete n.customData,delete n.ccipReadEnabled;let m=Object.keys(n).filter(e=>null!=n[e]);return m.length&&f.throwError(`cannot override ${m.map(e=>JSON.stringify(e)).join(",")}`,u.Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides",overrides:m}),o})}function E(e,t){let r=t.wait.bind(t);t.wait=t=>r(t).then(t=>(t.events=t.logs.map(r=>{let n=(0,c.deepCopy)(r),i=null;try{i=e.interface.parseLog(r)}catch(e){}return i&&(n.args=i.args,n.decode=(t,r)=>e.interface.decodeEventLog(i.eventFragment,t,r),n.event=i.name,n.eventSignature=i.signature),n.removeListener=()=>e.provider,n.getBlock=()=>e.provider.getBlock(t.blockHash),n.getTransaction=()=>e.provider.getTransaction(t.transactionHash),n.getTransactionReceipt=()=>Promise.resolve(t),n}),t))}function R(e,t,r){let n=e.signer||e.provider;return function(...i){return g(this,void 0,void 0,function*(){let s;if(i.length===t.inputs.length+1&&"object"==typeof i[i.length-1]){let e=(0,c.shallowCopy)(i.pop());null!=e.blockTag&&(s=yield e.blockTag),delete e.blockTag,i.push(e)}null!=e.deployTransaction&&(yield e._deployed(s));let o=yield m(e,t,i),a=yield n.call(o,s);try{let n=e.interface.decodeFunctionResult(t,a);return r&&1===t.outputs.length&&(n=n[0]),n}catch(t){throw t.code===u.Logger.errors.CALL_EXCEPTION&&(t.address=e.address,t.args=i,t.transaction=o),t}})}}function O(e,t,r){return t.constant?R(e,t,r):function(...r){return g(this,void 0,void 0,function*(){e.signer||f.throwError("sending a transaction requires a signer",u.Logger.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction"}),null!=e.deployTransaction&&(yield e._deployed());let n=yield m(e,t,r),i=yield e.signer.sendTransaction(n);return E(e,i),i})}}function _(e){return e.address&&(null==e.topics||0===e.topics.length)?"*":(e.address||"*")+"@"+(e.topics?e.topics.map(e=>Array.isArray(e)?e.join("|"):e).join(":"):"")}class w{constructor(e,t){(0,c.defineReadOnly)(this,"tag",e),(0,c.defineReadOnly)(this,"filter",t),this._listeners=[]}addListener(e,t){this._listeners.push({listener:e,once:t})}removeListener(e){let t=!1;this._listeners=this._listeners.filter(r=>!!t||r.listener!==e||(t=!0,!1))}removeAllListeners(){this._listeners=[]}listeners(){return this._listeners.map(e=>e.listener)}listenerCount(){return this._listeners.length}run(e){let t=this.listenerCount();return this._listeners=this._listeners.filter(t=>{let r=e.slice();return setTimeout(()=>{t.listener.apply(this,r)},0),!t.once}),t}prepareEvent(e){}getEmit(e){return[e]}}class P extends w{constructor(){super("error",null)}}class T extends w{constructor(e,t,r,n){let i={address:e},s=t.getEventTopic(r);n?(s!==n[0]&&f.throwArgumentError("topic mismatch","topics",n),i.topics=n.slice()):i.topics=[s],super(_(i),i),(0,c.defineReadOnly)(this,"address",e),(0,c.defineReadOnly)(this,"interface",t),(0,c.defineReadOnly)(this,"fragment",r)}prepareEvent(e){super.prepareEvent(e),e.event=this.fragment.name,e.eventSignature=this.fragment.format(),e.decode=(e,t)=>this.interface.decodeEventLog(this.fragment,e,t);try{e.args=this.interface.decodeEventLog(this.fragment,e.data,e.topics)}catch(t){e.args=null,e.decodeError=t}}getEmit(e){let t=(0,n.$v)(e.args);if(t.length)throw t[0].error;let r=(e.args||[]).slice();return r.push(e),r}}class A extends w{constructor(e,t){super("*",{address:e}),(0,c.defineReadOnly)(this,"address",e),(0,c.defineReadOnly)(this,"interface",t)}prepareEvent(e){super.prepareEvent(e);try{let t=this.interface.parseLog(e);e.event=t.name,e.eventSignature=t.signature,e.decode=(e,r)=>this.interface.decodeEventLog(t.eventFragment,e,r),e.args=t.args}catch(e){}}}class b{constructor(e,t,r){(0,c.defineReadOnly)(this,"interface",(0,c.getStatic)(new.target,"getInterface")(t)),null==r?((0,c.defineReadOnly)(this,"provider",null),(0,c.defineReadOnly)(this,"signer",null)):o.Signer.isSigner(r)?((0,c.defineReadOnly)(this,"provider",r.provider||null),(0,c.defineReadOnly)(this,"signer",r)):s.Provider.isProvider(r)?((0,c.defineReadOnly)(this,"provider",r),(0,c.defineReadOnly)(this,"signer",null)):f.throwArgumentError("invalid signer or provider","signerOrProvider",r),(0,c.defineReadOnly)(this,"callStatic",{}),(0,c.defineReadOnly)(this,"estimateGas",{}),(0,c.defineReadOnly)(this,"functions",{}),(0,c.defineReadOnly)(this,"populateTransaction",{}),(0,c.defineReadOnly)(this,"filters",{});{let e={};
1Object.keys(this.interface.events).forEach(t=>{let r=this.interface.events[t];(0,c.defineReadOnly)(this.filters,t,(...e)=>({address:this.address,topics:this.interface.encodeFilterTopics(r,e)})),e[r.name]||(e[r.name]=[]),e[r.name].push(t)}),Object.keys(e).forEach(t=>{let r=e[t];1===r.length?(0,c.defineReadOnly)(this.filters,t,this.filters[r[0]]):f.warn(`Duplicate definition of ${t} (${r.join(", ")})`)})}if((0,c.defineReadOnly)(this,"_runningEvents",{}),(0,c.defineReadOnly)(this,"_wrappedEmits",{}),null==e&&f.throwArgumentError("invalid contract address or ENS name","addressOrName",e),(0,c.defineReadOnly)(this,"address",e),this.provider)(0,c.defineReadOnly)(this,"resolvedAddress",v(this.provider,e));else try{(0,c.defineReadOnly)(this,"resolvedAddress",Promise.resolve((0,a.getAddress)(e)))}catch(e){f.throwError("provider is required to use ENS name as contract address",u.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new Contract"})}this.resolvedAddress.catch(e=>{});let n={},i={};Object.keys(this.interface.functions).forEach(e=>{var t;let r=this.interface.functions[e];if(i[e])return void f.warn(`Duplicate ABI entry for ${JSON.stringify(e)}`);i[e]=!0;{let t=r.name;n[`%${t}`]||(n[`%${t}`]=[]),n[`%${t}`].push(e)}null==this[e]&&(0,c.defineReadOnly)(this,e,O(this,r,!0)),null==this.functions[e]&&(0,c.defineReadOnly)(this.functions,e,O(this,r,!1)),null==this.callStatic[e]&&(0,c.defineReadOnly)(this.callStatic,e,R(this,r,!0)),null==this.populateTransaction[e]&&(0,c.defineReadOnly)(this.populateTransaction,e,(t=this,function(...e){return m(t,r,e)})),null==this.estimateGas[e]&&(0,c.defineReadOnly)(this.estimateGas,e,function(e,t){let r=e.signer||e.provider;return function(...n){return g(this,void 0,void 0,function*(){r||f.throwError("estimate require a provider or signer",u.Logger.errors.UNSUPPORTED_OPERATION,{operation:"estimateGas"});let i=yield m(e,t,n);return yield r.estimateGas(i)})}}(this,r))}),Object.keys(n).forEach(e=>{let t=n[e];if(t.length>1)return;e=e.substring(1);let r=t[0];try{null==this[e]&&(0,c.defineReadOnly)(this,e,this[r])}catch(e){}null==this.functions[e]&&(0,c.defineReadOnly)(this.functions,e,this.functions[r]),null==this.callStatic[e]&&(0,c.defineReadOnly)(this.callStatic,e,this.callStatic[r]),null==this.populateTransaction[e]&&(0,c.defineReadOnly)(this.populateTransaction,e,this.populateTransaction[r]),null==this.estimateGas[e]&&(0,c.defineReadOnly)(this.estimateGas,e,this.estimateGas[r])})}static getContractAddress(e){return(0,a.getContractAddress)(e)}static getInterface(e){return i.KA.isInterface(e)?e:new i.KA(e)}deployed(){return this._deployed()}_deployed(e){return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then(()=>this):this._deployedPromise=this.provider.getCode(this.address,e).then(e=>("0x"===e&&f.throwError("contract not deployed",u.Logger.errors.UNSUPPORTED_OPERATION,{contractAddress:this.address,operation:"getDeployed"}),this))),this._deployedPromise}fallback(e){this.signer||f.throwError("sending a transactions require a signer",u.Logger.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});let t=(0,c.shallowCopy)(e||{});return["from","to"].forEach(function(e){null!=t[e]&&f.throwError("cannot override "+e,u.Logger.errors.UNSUPPORTED_OPERATION,{operation:e})}),t.to=this.resolvedAddress,this.deployed().then(()=>this.signer.sendTransaction(t))}connect(e){"string"==typeof e&&(e=new o.VoidSigner(e,this.provider));let t=new this.constructor(this.address,this.interface,e);return this.deployTransaction&&(0,c.defineReadOnly)(t,"deployTransaction",this.deployTransaction),t}attach(e){return new this.constructor(e,this.interface,this.signer||this.provider)}static isIndexed(e){return i.wu.isIndexed(e)}_normalizeRunningEvent(e){return this._runningEvents[e.tag]?this._runningEvents[e.tag]:e}_getRunningEvent(e){if("string"==typeof e){if("error"===e)return this._normalizeRunningEvent(new P);if("event"===e)return this._normalizeRunningEvent(new w("event",null));if("*"===e)return this._normalizeRunningEvent(new A(this.address,this.interface));let t=this.interface.getEvent(e);return this._normalizeRunningEvent(new T(this.address,this.interface,t))}if(e.topics&&e.topics.length>0){try{let t=e.topics[0];if("string"!=typeof t)throw Error("invalid topic");let r=this.interface.getEvent(t);return this._normalizeRunningEvent(new T(this.address,this.interface,r,e.topics))}catch(e){}let t={address:this.address,topics:e.topics};return this._normalizeRunningEvent(new w(_(t),t))}return this._normalizeRunningEvent(new A(this.address,this.interface))}_checkRunningEvents(e){if(0===e.listenerCount()){delete this._runningEvents[e.tag];let t=this._wrappedEmits[e.tag];t&&e.filter&&(this.provider.off(e.filter,t),delete this._wrappedEmits[e.tag])}}_wrapEvent(e,t,r){let n=(0,c.deepCopy)(t);return n.removeListener=()=>{r&&(e.removeListener(r),this._checkRunningEvents(e))},n.getBlock=()=>this.provider.getBlock(t.blockHash),n.getTransaction=()=>this.provider.getTransaction(t.transactionHash),n.getTransactionReceipt=()=>this.provider.getTransactionReceipt(t.transactionHash),e.prepareEvent(n),n}_addEventListener(e,t,r){if(this.provider||f.throwError("events require a provider or a signer with a provider",u.
1Logger.errors.UNSUPPORTED_OPERATION,{operation:"once"}),e.addListener(t,r),this._runningEvents[e.tag]=e,!this._wrappedEmits[e.tag]){let r=r=>{let n=this._wrapEvent(e,r,t);if(null==n.decodeError)try{let t=e.getEmit(n);this.emit(e.filter,...t)}catch(e){n.decodeError=e.error}null!=e.filter&&this.emit("event",n),null!=n.decodeError&&this.emit("error",n.decodeError,n)};this._wrappedEmits[e.tag]=r,null!=e.filter&&this.provider.on(e.filter,r)}}queryFilter(e,t,r){let n=this._getRunningEvent(e),i=(0,c.shallowCopy)(n.filter);return"string"==typeof t&&(0,d.isHexString)(t,32)?(null!=r&&f.throwArgumentError("cannot specify toBlock with blockhash","toBlock",r),i.blockHash=t):(i.fromBlock=null!=t?t:0,i.toBlock=null!=r?r:"latest"),this.provider.getLogs(i).then(e=>e.map(e=>this._wrapEvent(n,e,null)))}on(e,t){return this._addEventListener(this._getRunningEvent(e),t,!1),this}once(e,t){return this._addEventListener(this._getRunningEvent(e),t,!0),this}emit(e,...t){if(!this.provider)return!1;let r=this._getRunningEvent(e),n=r.run(t)>0;return this._checkRunningEvents(r),n}listenerCount(e){return this.provider?null==e?Object.keys(this._runningEvents).reduce((e,t)=>e+this._runningEvents[t].listenerCount(),0):this._getRunningEvent(e).listenerCount():0}listeners(e){if(!this.provider)return[];if(null==e){let e=[];for(let t in this._runningEvents)this._runningEvents[t].listeners().forEach(t=>{e.push(t)});return e}return this._getRunningEvent(e).listeners()}removeAllListeners(e){if(!this.provider)return this;if(null==e){for(let e in this._runningEvents){let t=this._runningEvents[e];t.removeAllListeners(),this._checkRunningEvents(t)}return this}let t=this._getRunningEvent(e);return t.removeAllListeners(),this._checkRunningEvents(t),this}off(e,t){if(!this.provider)return this;let r=this._getRunningEvent(e);return r.removeListener(t),this._checkRunningEvents(r),this}removeListener(e,t){return this.off(e,t)}}class L extends b{}class S{constructor(e,t,r){let n=null;"0x"!==(n="string"==typeof t?t:(0,d.isBytes)(t)?(0,d.hexlify)(t):t&&"string"==typeof t.object?t.object:"!").substring(0,2)&&(n="0x"+n),(!(0,d.isHexString)(n)||n.length%2)&&f.throwArgumentError("invalid bytecode","bytecode",t),r&&!o.Signer.isSigner(r)&&f.throwArgumentError("invalid signer","signer",r),(0,c.defineReadOnly)(this,"bytecode",n),(0,c.defineReadOnly)(this,"interface",(0,c.getStatic)(new.target,"getInterface")(e)),(0,c.defineReadOnly)(this,"signer",r||null)}getDeployTransaction(...e){let t={};if(e.length===this.interface.deploy.inputs.length+1&&"object"==typeof e[e.length-1]){for(let r in t=(0,c.shallowCopy)(e.pop()))if(!p[r])throw Error("unknown transaction override "+r)}return["data","from","to"].forEach(e=>{null!=t[e]&&f.throwError("cannot override "+e,u.Logger.errors.UNSUPPORTED_OPERATION,{operation:e})}),t.value&&(l.gH.from(t.value).isZero()||this.interface.deploy.payable||f.throwError("non-payable constructor cannot override value",u.Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:t.value})),f.checkArgumentCount(e.length,this.interface.deploy.inputs.length," in Contract constructor"),t.data=(0,d.hexlify)((0,d.concat)([this.bytecode,this.interface.encodeDeploy(e)])),t}deploy(...e){return g(this,void 0,void 0,function*(){let t={};e.length===this.interface.deploy.inputs.length+1&&(t=e.pop()),f.checkArgumentCount(e.length,this.interface.deploy.inputs.length," in Contract constructor");let r=yield y(this.signer,e,this.interface.deploy.inputs);r.push(t);let n=this.getDeployTransaction(...r),i=yield this.signer.sendTransaction(n),s=(0,c.getStatic)(this.constructor,"getContractAddress")(i),o=(0,c.getStatic)(this.constructor,"getContract")(s,this.interface,this.signer);return E(o,i),(0,c.defineReadOnly)(o,"deployTransaction",i),o})}attach(e){return this.constructor.getContract(e,this.interface,this.signer)}connect(e){return new this.constructor(this.interface,this.bytecode,e)}static fromSolidity(e,t){null==e&&f.throwError("missing compiler output",u.Logger.errors.MISSING_ARGUMENT,{argument:"compilerOutput"}),"string"==typeof e&&(e=JSON.parse(e));let r=e.abi,n=null;return e.bytecode?n=e.bytecode:e.evm&&e.evm.bytecode&&(n=e.evm.bytecode),new this(r,n,t)}static getInterface(e){return L.getInterface(e)}static getContractAddress(e){return(0,a.getContractAddress)(e)}static getContract(e,t,r){return new L(e,t,r)}}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.